@font-face {
    font-family: "Helvetica Neue";
    src: url("../assets/fonts/HelveticaNeue/HelveticaNeue-01.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../assets/fonts/HelveticaNeue/HelveticaNeue-Italic-03.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../assets/fonts/HelveticaNeue/HelveticaNeue-Light-08.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../assets/fonts/HelveticaNeue/HelveticaNeue-Thin-13.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../assets/fonts/HelveticaNeue/HelveticaNeue-Medium-11.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../assets/fonts/HelveticaNeue/HelveticaNeue-Bold-02.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("../assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic-04.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Helvetica Neue", sans-serif;
    background: #f5f5f7;
    color: #111827;
}


main {
    padding: 16px;
    width: 90%;
    max-width: 960px;
    margin: 0 auto 40px;
    margin-top: 20px;
}

h2 {
    margin-bottom: 7px;
}

.lede {
    margin: 8px 0 24px;
    color: #4b5563;
    line-height: 1.6;
}

.client-main { max-width: 960px; margin: 0 auto; }

.captive-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 18px;
}

.captive-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 22px 35px -32px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 960px;
    margin-bottom: 18px;
}

.captive-hero {
    position: relative;
    height: 180px;
    background: url("../images/Banner-dark.png");
    background-size: cover;
    background-position: center;
}

.hero-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.8rem;
}

.captive-body {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.portal-meta {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.portal-title {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.meta-actions {
    display: flex;
    gap: 8px;
}

.captive-eyebrow {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1rem;
    color: #111827;
}

.captive-note {
    color: #373737;
    font-size: 0.9rem;
}

.card {
    background: #ffffff;
    border: 1px solid #ece7df;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px -26px rgba(0, 0, 0, 0.35);
}

.card h3 {
    letter-spacing: 0.02em;
}

form {
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.01em;
}

form input {
    background-color: #ffffff;
    border: 1px solid #d9d3c7;
    border-radius: 12px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4rem;
    padding: 0.75rem 0.9rem;
    display: block;
    margin-bottom: 14px;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

button {
    background-color: #0f172a;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35rem;
    padding: 0.85rem 1.6rem;
    text-align: center;
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.85);
    cursor: pointer;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    letter-spacing: 0.01em;
}

button:hover {
    background-color: #111827;
}

button:focus {
    outline: 2px solid rgba(17, 24, 39, 0.1);
    outline-offset: 2px;
}

button:focus-visible {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.client-main h2 {
    margin-bottom: 4px;
}

.client-form {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-field label { margin-bottom: 6px; }
.form-field input { width: 100%; margin: 0; }

.full-width { grid-column: 1 / -1; }

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.form-actions button {
    width: 100%;
    max-width: 240px;
}

.contact-section {
    padding-top: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    padding: 0 18px 18px;
}

.contact-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.25);
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-name {
    font-weight: 700;
    color: #0f172a;
}

.contact-role {
    color: #6b7280;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #374151;
}

.contact-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ghost {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #d7d1c5;
    box-shadow: none;
    padding: 0.55rem 1.2rem;
}

.ghost:hover {
    background: #f3efe6;
}

.ghost.danger {
    border-color: #fca5a5;
    color: #b91c1c;
}

.ghost.small {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: #111827;
    font-size: 0.95rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #111827;
}

.contact-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px 2px;
    margin-bottom: 6px;
}

.contact-details span {
    display: block;
    padding: 4px 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 640px;
    padding: 16px;
    box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.group-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 12px 0 10px;
}

.group-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 6px 16px -18px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.group-card:hover {
    box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.group-card.active {
    border-color: #0f172a;
}

.group-name {
    font-weight: 800;
    letter-spacing: 0.03em;
}

.group-desc {
    color: #6b7280;
    margin-top: 4px;
    font-size: 0.95rem;
}

.group-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.file-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.file-group {
    display: none;
}

.file-group.active-group {
    display: block;
}

.file-group {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 14px 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.25);
}

.file-group-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.file-group-title {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.file-group-note {
    color: #6b7280;
    font-size: 0.95rem;
}

.file-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    box-shadow: 0 6px 16px -18px rgba(0, 0, 0, 0.25);
    flex-wrap: wrap;
    gap: 10px;
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 700;
    color: #0f172a;
}

.file-info {
    color: #6b7280;
    font-size: 0.95rem;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.auswahl{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.auswahl a {
    width: 100%;
    border: 1px solid #e1dacb;
    border-radius: 28px;
    aspect-ratio: 4/1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
}

.auswahl a:hover {
    box-shadow: rgba(0, 0, 0, 0.12) 1.95px 1.95px 2.6px;
}

@media (max-width: 640px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-actions {
        width: 100%;
    }
}
