body {
    font-family: 'Work Sans', Arial, sans-serif;
    font-size: 1rem;
    color: #003052;
    background-color: #f2f6f8;
    margin: 0;
    padding: 0;
}

.dmp-wrapper {
    background-color: #fff;
    margin: 2.5rem 1rem;
    width: auto;
    max-width: 1200px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.dmp-wrapper--auth {
    max-width: 500px;
    margin: 4rem auto;
}
/*
.dmp-wrapper img {
    margin-left: auto;
    display: flex;
}
*/

.dmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dmp-header img {
    display: block;
    margin: 0;
}

.dmp-logout-button {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #003052;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.dmp-logout-button:hover {
    background: #004a7a;
}


.dmp-wrapper h2 {
    font-size: 1.5rem;
    color: #003052;
    margin-bottom: 1.5rem;
    text-align: center;
    hyphens: auto;
}

.dmp-wrapper h1 {
    text-align: center;
    hyphens: auto;
}

.dmp-wrapper h1 ~ h2 {
    text-align: start;
}

.dmp-wrapper input[type="text"],
.dmp-wrapper input[type="date"],
.dmp-wrapper input[type="password"],
.dmp-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #003052;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Work Sans', Arial, sans-serif;
}

.dmp-wrapper div:has(input[type="date"]) {
    width: calc(50% - 3px);
    display: inline-flex;
    flex-direction: column;
}

.dmp-wrapper p {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.25rem;
}

.dmp-wrapper label input[type="radio"],
.dmp-wrapper label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.dmp-wrapper button, .dmp-wrapper .btn {
    background-color: #003052;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: auto;
    margin-top: 1.5rem;
    text-decoration: unset;
    border-radius: 4px;
}

.dmp-wrapper a.btn-secondary {
    background-color: unset;
    color: #e9a400;
    border: 1px solid #e9a400;
    text-decoration: unset;
}

.dmp-wrapper a.btn-secondary:hover {
    background-color: #e9a400;
    color: #fff;
}

.dmp-wrapper button:hover, .dmp-wrapper .btn:hover {
    background-color: #e9a400;
}

.button-row {
    display: flex;
    justify-content: space-between; /* verteilt sie über die volle Breite */
    width: 100%;
}

/* optional: verhindert Umbrüche im Buttontext */
.button-row > * {
    white-space: nowrap;
}


.dmp-wrapper .dmp-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dmp-wrapper .dmp-buttons a {
    margin-top: unset;
    width: fit-content;
}

.dmp-wrapper ul.typo3-messages {
    padding: unset;
    list-style: none;
}

.dmp-wrapper li.alert.alert-danger {
    background-color: #ff00001f;
    border: 1px solid red;
    border-radius: 8px;
    padding: 1rem 2.5rem;
}

.dmp-wrapper h4.alert-title {
    margin: unset;
}

.dmp-wrapper p.alert-message {
    margin: unset;
}

@media screen and (max-width: 767px) {
    body {
        font-size: 1rem;
        line-height: 1.5;
    }

    .dmp-wrapper {
        padding: 1rem;
        margin: 1rem;
    }

    .dmp-wrapper div:has(input[type="date"]) {
        width: 100%;
    }

    .dmp-wrapper input[type="text"],
    .dmp-wrapper input[type="date"],
    .dmp-wrapper textarea,
    .dmp-wrapper button, 
    .dmp-wrapper .btn {
        font-size: 1rem;
    }

    .dmp-wrapper label {
        font-size: 1rem;
    }

    .dmp-wrapper span {
        font-size: 1.1rem;
    }
}

@media screen and (min-width: 768px) {
    body {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .dmp-wrapper {
        width: 80%;
        margin: 5rem auto;
        padding: 2rem;
    }

    .dmp-wrapper input[type="text"],
    .dmp-wrapper input[type="date"],
    .dmp-wrapper input[type="password"],
    .dmp-wrapper textarea {
        font-size: 1.1rem;
    }

    .dmp-wrapper button, .dmp-wrapper .btn {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }
}

@media screen and (min-width: 1024px) {
    .dmp-wrapper {
        width: 50%;
    }
}

/*Tabelle*/
.dmp-wrapper table {
    width: 100%;
    table-layout: fixed;      
    border-collapse: collapse; 
}

.dmp-wrapper table th {
    width: 45%;                
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    padding: 6px 10px;
    vertical-align: top;
    word-wrap: break-word;
    hyphens: auto;
    hyphenate-limit-chars: 3;
}

.dmp-wrapper table td {
    width: 55%;
    padding: 6px 10px;
    vertical-align: top;
    background: #ffffff;
}

.dmp-wrapper table tr:nth-child(even) td {
    background: #f9fafb;
}

.dmp-wrapper table,
.dmp-wrapper table th,
.dmp-wrapper table td {
    border: 1px solid #d1d5db;
}

.dmp-wrapper .dmp-table-wrapper {
    overflow-x: auto;
}

@media (max-width: 767px) {

    .dmp-wrapper table,
    .dmp-wrapper table tbody,
    .dmp-wrapper table tr,
    .dmp-wrapper table th,
    .dmp-wrapper table td {
        display: block;
        width: auto;
        overflow: hidden;
        border: unset;
    }

    .dmp-wrapper table tr {
        margin-bottom: 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        overflow: hidden;
        background: #ffffff;
    }

    .dmp-wrapper table th {
        background: #f3f4f6;
        font-size: 0.95rem;
        padding: 8px 10px;
        border-bottom: 1px solid #e5e7eb;
    }

    .dmp-wrapper table td {
        background: #ffffff;
        padding: 8px 10px 12px;
        font-size: 0.95rem;
    }

    .dmp-wrapper table tr:nth-child(even) td {
        background: #ffffff;
    }

    .dmp-wrapper .dmp-buttons {
        flex-direction: column;
    }
}
