:root {
    --blue: #1A2A47;
    --green: #5CA387;
    --white: #FFFFFF;
    --gray: #6E7C8C;
    --aqua: #00BFAE;
    --bg: #F5F8FA;
    --line: #E3EAF0;
    --dark: #101827;
    --soft: #EEF7F4;
    --danger: #D94F4F;
    --warning: #D99A2B;
    --radius: 24px;
    --shadow: 0 20px 60px rgba(26, 42, 71, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--blue);
    background: var(--bg);
}

body.theme-dark {
    --blue: #E7EEF7;
    --green: #7FC4A8;
    --white: #152033;
    --gray: #AAB8C8;
    --aqua: #38D8C7;
    --bg: #0B1220;
    --line: #26344A;
    --dark: #F5F8FA;
    --soft: #182F32;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

body.theme-dark {
    color: var(--blue);
    background: var(--bg);
}

body.theme-dark .site-top {
    background: rgba(11, 18, 32, 0.92);
}

body.theme-dark .hero {
    background: radial-gradient(circle at top right, rgba(56, 216, 199, 0.14), transparent 34%), linear-gradient(140deg, #0B1220 0%, #132235 100%);
}

body.theme-dark .btn.ghost {
    color: var(--blue);
    background: rgba(21, 32, 51, 0.72);
}

body.theme-dark .mock-phone {
    background: #070D18;
}

body.theme-dark .mock-screen,
body.theme-dark .user-empty-state,
body.theme-dark .account-form input[readonly] {
    background: var(--bg);
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    color: var(--blue);
    background: #101A2B;
    border-color: var(--line);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #718197;
}

body.theme-dark.account-body {
    background: radial-gradient(circle at top right, rgba(56, 216, 199, 0.14), transparent 30%), var(--bg);
}

body.theme-dark .account-section-title {
    background: linear-gradient(135deg, rgba(127, 196, 168, 0.12), rgba(56, 216, 199, 0.08));
}

body.theme-dark .badge.danger {
    background: rgba(217, 79, 79, 0.18);
}

body.theme-dark .badge.warning {
    background: rgba(217, 154, 43, 0.18);
}

body.theme-dark .site-footer {
    color: var(--blue);
    background: #070D18;
}

body.theme-dark .site-footer p,
body.theme-dark .site-footer a {
    color: var(--gray);
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--gray);
    line-height: 1.7;
}

.site-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(16px, 4vw, 64px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand strong {
    display: block;
    color: var(--blue);
    font-size: 18px;
    letter-spacing: 0.02em;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--gray);
    font-size: 12px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-nav a {
    padding: 10px 14px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
}

.top-nav a:hover {
    color: var(--white);
    background: var(--blue);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: var(--blue);
    border-radius: 12px;
    padding: 10px 12px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: center;
    padding: clamp(42px, 7vw, 96px) clamp(18px, 4vw, 64px);
    background: radial-gradient(circle at top right, rgba(0, 191, 174, 0.16), transparent 34%), linear-gradient(140deg, #FFFFFF 0%, #EEF7F4 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--blue);
    line-height: 1.08;
}

h1 {
    max-width: 900px;
    margin-top: 18px;
    font-size: clamp(42px, 7vw, 82px);
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 21px;
}

.lead {
    max-width: 720px;
    font-size: clamp(18px, 2vw, 22px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    font-weight: 800;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
}

.btn.primary {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.btn.dark {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

.btn.ghost {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.74);
}

.hero-panel,
.card,
.stat-card,
.form-card,
.table-card,
.swipe-card,
.status-banner {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 24px;
}

.mock-phone {
    overflow: hidden;
    max-width: 430px;
    margin: 0 auto;
    padding: 14px;
    background: var(--blue);
    border-radius: 36px;
}

.mock-screen {
    padding: 18px;
    background: var(--white);
    border-radius: 26px;
}

.section {
    padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 64px);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.stat-card,
.form-card,
.table-card {
    padding: 24px;
}

.card-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 18px;
    color: var(--blue);
    font-weight: 900;
    background: var(--soft);
    border-radius: 16px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card span,
.stat-card small {
    display: block;
    color: var(--gray);
}

.stat-card strong {
    display: block;
    margin: 10px 0 4px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.app-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    padding: 24px clamp(18px, 4vw, 64px) 64px;
}

.side-nav {
    position: sticky;
    top: 98px;
    align-self: start;
    display: grid;
    gap: 8px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.side-nav a {
    padding: 12px 14px;
    color: var(--gray);
    font-weight: 750;
    border-radius: 14px;
}

.side-nav a.active,
.side-nav a:hover {
    color: var(--white);
    background: var(--blue);
}

.dashboard-main {
    display: grid;
    gap: 22px;
}

.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 12px;
    scrollbar-width: thin;
}

.tabs a {
    white-space: nowrap;
    padding: 11px 15px;
    color: var(--gray);
    font-weight: 800;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.tabs a.active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.status-banner h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    background: var(--green);
    border-radius: 50%;
}

.status-banner.warning .status-dot {
    background: var(--warning);
}

.status-banner.danger .status-dot {
    background: var(--danger);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 18px;
}

.swipe-card {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    padding: 26px;
    background: linear-gradient(155deg, var(--blue), #243B63);
    color: var(--white);
}

.swipe-card h2,
.swipe-card h3,
.swipe-card p {
    color: var(--white);
}

.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin: 22px 0;
    color: var(--white);
    font-size: 26px;
    font-weight: 900;
    background: var(--green);
    border-radius: 50%;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    background: var(--soft);
    border-radius: 999px;
}

.table-card {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--gray);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.field {
    display: grid;
    gap: 8px;
}

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

label {
    color: var(--blue);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--blue);
    font: inherit;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 4px rgba(0, 191, 174, 0.14);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(18px, 4vw, 64px);
    color: var(--white);
    background: var(--blue);
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links {
    display: flex;
    gap: 16px;
}

@media (max-width: 1050px) {
    .hero,
    .split,
    .app-layout {
        grid-template-columns: 1fr;
    }

    .side-nav {
        position: static;
        display: flex;
        overflow-x: auto;
    }

    .grid.three,
    .grid.four,
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-top {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .top-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .top-nav.open {
        display: flex;
    }

    .top-nav a {
        border-radius: 14px;
    }

    .hero,
    .section,
    .app-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-head,
    .status-banner,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .grid.three,
    .grid.four,
    .stat-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .brand small {
        display: none;
    }

    .btn {
        width: 100%;
    }

    .swipe-card {
        min-height: 380px;
    }
}

.sys-usage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.sys-usage-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.sys-usage-list span {
    opacity: 0.72;
    font-size: 0.9rem;
}

.sys-usage-list strong {
    font-size: 0.95rem;
    text-align: right;
}

.user-table-card {
    display: grid;
    gap: 22px;
}

.user-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.user-table-head h3 {
    margin: 0;
}

.user-table-head p {
    margin: 8px 0 0;
}

.user-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(140px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.user-filter-reset .btn {
    min-height: 48px;
}

.user-table {
    min-width: 1080px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell strong,
.user-cell small {
    display: block;
}

.user-cell small {
    margin-top: 3px;
    color: var(--gray);
    font-size: 13px;
}

.user-avatar {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--blue);
    font-weight: 900;
    background: var(--soft);
    border-radius: 16px;
}

.badge.success {
    color: var(--green);
    background: var(--soft);
}

.badge.danger {
    color: var(--danger);
    background: rgba(217, 79, 79, 0.12);
}

.badge.warning {
    color: var(--warning);
    background: rgba(217, 154, 43, 0.14);
}

.badge.primary {
    color: var(--white);
    background: var(--blue);
}

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

.btn.small {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 13px;
}

.btn.danger {
    color: var(--danger);
    background: rgba(217, 79, 79, 0.10);
    border-color: rgba(217, 79, 79, 0.18);
}

.user-empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    background: var(--bg);
    border: 1px dashed var(--line);
    border-radius: 18px;
}

.user-empty-state p {
    margin: 8px 0 0;
}

@media (max-width: 1250px) {
    .user-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .user-table-head {
        flex-direction: column;
    }

    .user-filter-grid {
        grid-template-columns: 1fr;
    }
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    margin: 0;
    flex: 0 0 20px;
    accent-color: var(--green);
    cursor: pointer;
}

.field label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
}

.field label:has(input[type="checkbox"]) input {
    order: -1;
}

.account-body {
    background: radial-gradient(circle at top right, rgba(0, 191, 174, 0.16), transparent 30%), var(--bg);
}

.account-page {
    display: grid;
    gap: 24px;
    padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 64px) clamp(52px, 7vw, 86px);
}

.account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 22px;
    align-items: stretch;
}

.account-hero-copy,
.account-profile-card,
.account-info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.account-hero-copy {
    padding: clamp(26px, 4vw, 42px);
}

.account-hero-copy h1 {
    max-width: 780px;
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 64px);
}

.account-hero-copy p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 17px;
}

.account-profile-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    padding: 30px;
    text-align: center;
}

.account-profile-card strong,
.account-profile-card span {
    display: block;
}

.account-profile-card strong {
    font-size: 22px;
}

.account-profile-card span {
    margin-top: 6px;
    color: var(--gray);
    font-weight: 800;
}

.account-avatar {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: var(--white);
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 28px;
    box-shadow: 0 18px 36px rgba(26, 42, 71, 0.18);
}

.account-message {
    margin: 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 14px;
}

.account-info-card {
    padding: 20px;
}

.account-info-card span,
.account-info-card small {
    display: block;
    color: var(--gray);
}

.account-info-card strong {
    display: block;
    overflow: hidden;
    margin: 8px 0 4px;
    font-size: 21px;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.account-form-card {
    padding: clamp(22px, 3vw, 34px);
}

.account-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.account-form-head h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.account-form-head p {
    margin: 10px 0 0;
}

.account-form input[readonly] {
    color: var(--gray);
    background: var(--bg);
    cursor: not-allowed;
}

.account-form .field small {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
}

.account-section-title {
    margin-top: 10px;
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, rgba(92, 163, 135, 0.12), rgba(0, 191, 174, 0.08));
    border: 1px solid var(--line);
    border-radius: 18px;
}

.account-section-title:first-of-type {
    margin-top: 0;
}

.account-section-title h3 {
    font-size: 22px;
}

.account-section-title p {
    margin: 8px 0 0;
}

.required-mark {
    color: var(--danger);
}

.account-checkbox-field {
    align-content: center;
    min-height: 48px;
    padding: 13px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.account-checkbox-field:hover {
    border-color: rgba(0, 191, 174, 0.42);
}

.account-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.account-submit-row .btn {
    min-width: 220px;
}

@media (max-width: 1050px) {
    .account-hero,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .account-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .account-sidebar {
        grid-template-columns: 1fr;
    }

    .account-form-head,
    .account-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .account-submit-row .btn {
        width: 100%;
        min-width: 0;
    }
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mini-list p {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mini-list p:last-child {
    border-bottom: 0;
}

.crm-form {
    margin-top: 18px;
}

.crm-note-card {
    display: grid;
    gap: 14px;
}

.crm-note-card p {
    margin: 0;
}

.table-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions select {
    width: auto;
    min-width: 150px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
}

/* ============================================================
   Kandidatenbereich – Early Access
   ============================================================ */

.candidate-feedback {
    padding: 16px 18px;
    font-weight: 800;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.candidate-feedback.success {
    color: var(--green);
    border-color: var(--green);
}

.candidate-feedback.danger {
    color: var(--danger);
    border-color: var(--danger);
}

.candidate-section-head,
.job-card-head,
.interest-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.candidate-profile-overview {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.candidate-profile-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

.candidate-profile-card.large {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.candidate-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: var(--green);
    border-radius: 22px;
}

.candidate-progress {
    overflow: hidden;
    width: 100%;
    height: 10px;
    background: var(--soft);
    border-radius: 999px;
}

.candidate-progress.large {
    height: 14px;
    margin: 18px 0;
}

.candidate-progress span {
    display: block;
    min-width: 2px;
    height: 100%;
    background: var(--green);
    border-radius: inherit;
}

.candidate-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.candidate-detail-grid > div {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.candidate-detail-grid span,
.candidate-profile-card small {
    color: var(--gray);
}

.candidate-form {
    display: grid;
    gap: 24px;
}

.candidate-form small,
.candidate-fieldset small {
    color: var(--gray);
}

.candidate-fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.candidate-fieldset legend {
    padding: 0 8px;
    color: var(--blue);
    font-weight: 800;
}

.candidate-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.candidate-check-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.candidate-choice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 14px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 750;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 15px;
    cursor: pointer;
}

.candidate-choice-card.wide {
    width: 100%;
}

.candidate-choice-card input {
    order: -1;
}

.candidate-form-actions,
.job-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.candidate-note {
    border-left: 5px solid var(--aqua);
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

button.btn {
    font: inherit;
    cursor: pointer;
}

button.btn:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.job-list,
.interest-list,
.todo-list,
.timeline-list {
    display: grid;
    gap: 16px;
}

.job-card,
.interest-card,
.todo-card,
.empty-state {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.job-card,
.interest-card.detailed {
    display: grid;
    gap: 18px;
}

.job-description {
    margin: 0;
    white-space: normal;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--gray);
    font-size: 14px;
}

.job-meta span {
    display: inline-flex;
    gap: 5px;
}

.interest-list.compact {
    margin-top: 18px;
}

.interest-list.compact .interest-card,
.interest-card:not(.detailed) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    box-shadow: none;
    border-radius: 18px;
}

.interest-card.pending {
    border-color: var(--warning);
}

.candidate-privacy-note {
    margin: 0;
    padding: 12px 14px;
    background: var(--soft);
    border-radius: 14px;
}

.todo-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.todo-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    background: var(--blue);
    border-radius: 15px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 10px;
    text-align: left;
    border-style: dashed;
    box-shadow: none;
}

.empty-state p,
.todo-card p,
.interest-card p {
    margin: 4px 0 0;
}

@media (max-width: 1100px) {
    .candidate-detail-grid,
    .candidate-check-grid,
    .candidate-check-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .candidate-profile-overview,
    .candidate-profile-card.large,
    .candidate-detail-grid,
    .candidate-check-grid,
    .candidate-check-grid.four,
    .todo-card,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .candidate-section-head,
    .job-card-head,
    .interest-head,
    .interest-list.compact .interest-card,
    .interest-card:not(.detailed) {
        align-items: flex-start;
        flex-direction: column;
    }

    .candidate-avatar {
        width: 62px;
        height: 62px;
    }
}

.candidate-choice-select {
    min-width: 0;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.candidate-choice-select label {
    font-size: 14px;
    font-weight: 750;
}

/* ============================================================
   Unternehmensbereich – Early Access
   ============================================================ */

.company-candidate-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.company-match-meta {
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.company-interest-form {
    align-items: end;
    padding-top: 4px;
}

.company-interest-submit {
    justify-content: end;
}

.company-interest-submit .btn {
    width: 100%;
}

@media (max-width: 760px) {
    .company-candidate-head {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

/* Product UI refresh */
html {
    min-width: 0;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 191, 174, 0.28);
    outline-offset: 2px;
}

.site-top {
    min-height: 72px;
    padding: 9px clamp(16px, 3vw, 44px);
    box-shadow: 0 8px 28px rgba(26, 42, 71, 0.05);
}

.brand {
    min-width: 0;
}

.brand img {
    width: 46px;
    height: 46px;
}

.brand strong {
    font-size: 17px;
}

.top-nav {
    min-width: 0;
    gap: 5px;
}

.top-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
}

.top-nav .account-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    padding: 7px 13px;
    background: var(--soft);
}

.top-nav .account-link small {
    color: var(--gray);
    font-size: 10px;
    font-weight: 700;
}

.top-nav .account-link:hover small {
    color: rgba(255, 255, 255, 0.78);
}

.top-nav .logout-link,
.top-nav .login-link {
    border: 1px solid var(--line);
}

.top-nav .register-link {
    color: var(--white);
    background: var(--green);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.app-layout {
    width: min(100%, 1600px);
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 20px;
    margin: 0 auto;
    padding: 20px clamp(14px, 3vw, 40px) 60px;
}

.dashboard-main,
.dashboard-main > *,
.area-content,
.grid > *,
.form-grid > *,
.record-main {
    min-width: 0;
}

.dashboard-main {
    align-content: start;
    gap: 18px;
}

.side-nav {
    top: 90px;
    gap: 5px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(26, 42, 71, 0.06);
}

.side-nav .eyebrow {
    padding: 5px 10px 8px;
    font-size: 11px;
}

.side-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 12px;
}

.tabs {
    position: relative;
    gap: 6px;
    padding: 2px 0 8px;
    overscroll-behavior-inline: contain;
}

.tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    font-size: 13px;
}

.card,
.stat-card,
.form-card,
.table-card,
.status-banner,
.page-head,
.record-card,
.empty-state,
.feedback {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(26, 42, 71, 0.055);
}

.card,
.stat-card,
.form-card,
.table-card {
    padding: clamp(18px, 2.3vw, 26px);
}

.grid {
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
}

.stat-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card strong {
    margin: 8px 0 3px;
    overflow-wrap: anywhere;
    font-size: clamp(25px, 2.5vw, 33px);
}

.stat-card small {
    line-height: 1.4;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(20px, 2.5vw, 30px);
    background: linear-gradient(135deg, var(--white), var(--soft));
}

.page-head h2 {
    margin-top: 8px;
    font-size: clamp(25px, 3vw, 38px);
}

.page-head p {
    max-width: 780px;
    margin: 10px 0 0;
    line-height: 1.55;
}

.status-banner {
    padding: 22px;
}

.status-banner p {
    margin: 8px 0 0;
}

.feedback,
.candidate-feedback {
    padding: 14px 17px;
    font-weight: 750;
}

.feedback.success,
.candidate-feedback.success {
    color: #235f48;
    background: #e9f7f1;
    border-color: #bce4d3;
}

.feedback.danger,
.candidate-feedback.danger {
    color: #8d2f2f;
    background: #fff0f0;
    border-color: #f2c0c0;
}

.record-list {
    display: grid;
    gap: 12px;
}

.record-list > h3 {
    margin: 8px 0 2px;
}

.record-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.record-card.vertical {
    align-items: stretch;
    flex-direction: column;
}

.record-main {
    flex: 1 1 auto;
}

.record-main > p {
    margin: 8px 0;
}

.record-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.record-title-row h3 {
    overflow-wrap: anywhere;
}

.record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 10px;
    color: var(--gray);
    font-size: 13px;
}

.record-meta strong {
    color: var(--blue);
}

.action-row,
.form-actions,
.inline-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.record-card > .action-row {
    justify-content: flex-end;
    flex: 0 0 auto;
}

.inline-form {
    margin: 0;
}

.form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 4px;
}

.form-grid {
    gap: 15px;
}

.compact-form {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.field {
    min-width: 0;
}

.field label,
fieldset legend {
    font-size: 13px;
}

input,
select,
textarea {
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 13px;
}

textarea {
    min-height: 112px;
    line-height: 1.55;
}

fieldset.field {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.check-row,
.check-grid label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 46px;
    padding: 11px 13px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
}

.check-row input,
.check-grid input {
    width: 18px;
    height: 18px;
    min-height: 0;
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.check-row span {
    display: grid;
    gap: 3px;
}

.check-row small {
    color: var(--gray);
    font-weight: 500;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toolbar-card input[type="number"] {
    width: 100px;
}

.portal-split {
    align-items: start;
}

.sticky-card {
    position: sticky;
    top: 90px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-link {
    display: grid;
    gap: 4px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.summary-link:hover strong {
    color: var(--green);
}

.summary-link span {
    color: var(--gray);
    font-size: 13px;
}

.detail-grid,
.candidate-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.detail-grid.compact {
    margin: 14px 0;
}

.detail-grid > div,
.candidate-detail-grid > div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    background: var(--soft);
    border-radius: 13px;
}

.detail-grid span,
.candidate-detail-grid span {
    color: var(--gray);
    font-size: 12px;
}

.detail-grid strong,
.candidate-detail-grid strong {
    overflow-wrap: anywhere;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
}

.tag {
    display: inline-flex;
    padding: 6px 9px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 750;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.candidate-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.candidate-avatar.small {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.candidate-result,
.course-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.candidate-result > .inline-form,
.course-card > .inline-form {
    margin-top: auto;
}

.note-box {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 13px 15px;
    color: var(--blue);
    background: var(--soft);
    border-left: 3px solid var(--green);
    border-radius: 0 12px 12px 0;
}

.note-box small {
    color: var(--gray);
}

.pre-line {
    white-space: pre-line;
}

.clamp-4 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.text-danger {
    color: var(--danger);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    color: var(--gray);
}

.check-list li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--green);
    font-weight: 900;
}

.empty-state {
    padding: clamp(28px, 5vw, 54px);
    text-align: center;
    border-style: dashed;
}

.empty-state p {
    max-width: 620px;
    margin: 10px auto 18px;
}

.btn {
    min-height: 44px;
    padding: 10px 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 42, 71, 0.12);
}

.btn.small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
}

.btn.danger {
    color: var(--danger);
    background: transparent;
    border-color: rgba(217, 79, 79, 0.36);
}

.btn.danger:hover:not(:disabled) {
    color: var(--white);
    background: var(--danger);
}

.btn:disabled,
button[aria-busy="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.badge {
    flex: 0 0 auto;
}

.badge.primary {
    color: var(--blue);
    background: var(--soft);
}

.badge.success {
    color: #235f48;
    background: #daf2e8;
}

.badge.warning {
    color: #815713;
    background: #fff1ce;
}

.badge.danger {
    color: #8d2f2f;
    background: #ffe1e1;
}

.badge.muted {
    color: var(--gray);
    background: var(--bg);
}

.candidate-secondary-action {
    margin-top: 12px;
}

.job-card,
.company-match-card {
    border-radius: 18px;
}

.site-footer {
    padding: 28px clamp(18px, 4vw, 54px);
}

.site-footer p {
    margin: 6px 0 0;
}

body.theme-dark .page-head {
    background: linear-gradient(135deg, var(--white), var(--soft));
}

body.theme-dark .feedback.success,
body.theme-dark .candidate-feedback.success,
body.theme-dark .badge.success {
    color: #a9e5cb;
    background: rgba(92, 163, 135, 0.16);
    border-color: rgba(92, 163, 135, 0.35);
}

body.theme-dark .feedback.danger,
body.theme-dark .candidate-feedback.danger,
body.theme-dark .badge.danger {
    color: #ffb8b8;
    background: rgba(217, 79, 79, 0.16);
    border-color: rgba(217, 79, 79, 0.35);
}

body.theme-dark .badge.warning {
    color: #ffd992;
    background: rgba(217, 154, 43, 0.16);
}

@media (max-width: 1180px) {
    .app-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .app-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 14px;
    }

    .side-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
        overflow: visible;
    }

    .side-nav .eyebrow {
        grid-column: 1 / -1;
    }

    .sticky-card {
        position: static;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-head .btn {
        align-self: flex-start;
    }
}

@media (max-width: 920px) {
    .site-top {
        min-height: 64px;
        align-items: center;
        flex-wrap: nowrap;
        padding: 8px 13px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand small {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .top-nav {
        position: fixed;
        top: 64px;
        right: 10px;
        left: 10px;
        display: none;
        max-height: calc(100vh - 78px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 10px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .top-nav.open {
        display: flex;
    }

    .top-nav a,
    .top-nav .account-link {
        align-items: flex-start;
        justify-content: center;
        min-height: 46px;
        padding: 10px 13px;
        border-radius: 11px;
    }
}

@media (max-width: 760px) {
    .app-layout {
        padding-right: 12px;
        padding-bottom: 42px;
        padding-left: 12px;
    }

    .tabs {
        margin-right: -12px;
        margin-left: -12px;
        padding: 2px 12px 9px;
    }

    .tabs::after {
        width: 8px;
        flex: 0 0 8px;
        content: "";
    }

    .side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 9px;
    }

    .side-nav a {
        justify-content: center;
        padding: 9px 8px;
        text-align: center;
        font-size: 12px;
    }

    .page-head,
    .status-banner,
    .record-card,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .page-head {
        padding: 19px;
    }

    .page-head h2 {
        font-size: 27px;
    }

    .status-banner {
        padding: 18px;
    }

    .grid.two,
    .grid.three,
    .grid.four,
    .stat-grid,
    .form-grid,
    .detail-grid,
    .candidate-detail-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        gap: 9px;
    }

    .stat-card {
        min-height: 104px;
        padding: 17px;
    }

    .stat-card strong {
        font-size: 27px;
    }

    .card,
    .form-card,
    .table-card {
        padding: 18px;
    }

    .record-card {
        padding: 16px;
    }

    .record-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .record-card > .action-row,
    .record-card > .inline-form,
    .form-actions {
        width: 100%;
        justify-content: stretch;
    }

    .record-card > .action-row > *,
    .record-card > .inline-form,
    .form-actions > * {
        flex: 1 1 auto;
    }

    .record-card > .inline-form .btn,
    .record-card > .action-row .btn,
    .form-actions .btn {
        width: 100%;
    }

    .btn {
        width: auto;
        min-height: 44px;
    }

    .page-head > .btn,
    .status-banner > .btn {
        width: 100%;
    }

    .toolbar-card,
    .toolbar-card .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-card input[type="number"] {
        width: 100%;
    }

    .candidate-mini {
        width: 100%;
    }

    .candidate-mini .candidate-avatar {
        flex: 0 0 auto;
    }

    table {
        min-width: 620px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .side-nav {
        grid-template-columns: 1fr;
    }

    .side-nav .eyebrow {
        display: none;
    }

    .brand span {
        max-width: 170px;
    }

    .record-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Public, authentication and legal pages */
.public-notice {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 13px 18px;
    color: #6f4a0d;
    background: #fff7df;
    border: 1px solid #f0d79b;
    border-radius: 14px;
}

.feedback.warning {
    color: #6f4a0d;
    background: #fff7df;
    border-color: #f0d79b;
}

.feature-band {
    padding-top: 8px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 8px;
    color: var(--green);
    font-weight: 800;
}

.text-link::after {
    margin-left: 7px;
    content: "→";
}

.auth-page {
    min-height: calc(100vh - 196px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100%, 570px);
}

.auth-card > p {
    margin-top: -2px;
}

.legal-page {
    display: grid;
    gap: 18px;
}

.legal-page .page-head h1 {
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 46px);
}

.legal-copy {
    max-width: none;
}

.legal-copy h2 {
    margin: 30px 0 8px;
    font-size: 20px;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy p {
    max-width: 920px;
    margin: 0;
}

.legal-address {
    color: var(--gray);
    font-style: normal;
    line-height: 1.75;
}

.legal-address strong {
    color: var(--blue);
}

@media (max-width: 760px) {
    .public-notice {
        margin: 12px 12px 0;
    }

    .auth-page {
        display: block;
        min-height: 0;
        padding-top: 18px;
    }

    .auth-card .form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Support ticket system */
.top-nav a.active {
    color: var(--white);
    background: var(--blue);
}

.ticket-list {
    gap: 14px;
}

.ticket-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(26, 42, 71, 0.055);
}

.ticket-card[open] {
    border-color: rgba(0, 191, 174, 0.35);
}

.ticket-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.ticket-summary::-webkit-details-marker {
    display: none;
}

.ticket-summary-main {
    min-width: 0;
    flex: 1 1 auto;
}

.ticket-summary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.ticket-summary-toggle::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
}

.ticket-card[open] .ticket-summary-toggle::after {
    content: "−";
}

.ticket-body {
    display: grid;
    gap: 18px;
    padding: 0 20px 20px;
    border-top: 1px solid var(--line);
}

.ticket-conversation {
    display: grid;
    gap: 10px;
    padding-top: 18px;
}

.ticket-message {
    width: min(86%, 760px);
    display: grid;
    gap: 8px;
    padding: 13px 15px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 15px 15px 15px 4px;
}

.ticket-message.admin {
    justify-self: end;
    background: #e9f7f1;
    border-color: #bce4d3;
    border-radius: 15px 15px 4px 15px;
}

.ticket-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ticket-message-head strong {
    overflow-wrap: anywhere;
    color: var(--blue);
    font-size: 13px;
}

.ticket-message-head time {
    flex: 0 0 auto;
    color: var(--gray);
    font-size: 11px;
}

.ticket-message p {
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.ticket-reply-box {
    padding: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.ticket-reply-box h4 {
    margin: 0 0 4px;
}

.ticket-actions {
    justify-content: flex-end;
}

.ticket-requester {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 10px;
    padding: 11px 13px;
    background: var(--soft);
    border-radius: 13px;
}

.ticket-requester strong {
    color: var(--blue);
}

.ticket-requester span {
    color: var(--gray);
    font-size: 13px;
}

.admin-ticket-card .ticket-conversation {
    padding-top: 4px;
}

.admin-ticket-reply {
    width: 100%;
}

.support-ticket-form .field label small {
    color: var(--gray);
    font-weight: 500;
}

@media (max-width: 760px) {
    .ticket-summary {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .ticket-summary-toggle {
        justify-content: space-between;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .ticket-body {
        padding: 0 16px 16px;
    }

    .ticket-message {
        width: 100%;
    }

    .ticket-message-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .ticket-actions,
    .ticket-actions .inline-form {
        width: 100%;
    }

    .ticket-actions .btn {
        width: 100%;
    }
}

/* Candidate Soll-Konzept 02.05.2026 */
.tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.tab-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.candidate-next-action {
    margin-bottom: 24px;
    border-inline-start: 4px solid var(--green);
}
.candidate-next-action h2 {
    margin: 5px 0 8px;
}
.candidate-tracker-list {
    display: grid;
    gap: 0;
}
.candidate-tracker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}
.candidate-tracker-row:first-child {
    border-top: 0;
}
.candidate-tracker-row > div {
    min-width: 0;
}
.candidate-tracker-row strong,
.candidate-tracker-row span,
.candidate-tracker-row small {
    display: block;
}
.candidate-tracker-row > div:last-child {
    text-align: right;
}
.candidate-tracker-row small {
    margin-top: 6px;
    color: var(--gray);
}
.candidate-avatar-blurred {
    filter: blur(1.5px);
    user-select: none;
}
.candidate-document-grid {
    align-items: stretch;
}
.candidate-document-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.candidate-file-placeholder,
.candidate-file-drop {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--soft);
    color: var(--gray);
}
.candidate-file-drop input {
    margin-top: 12px;
}
.candidate-path-card {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    align-items: flex-start;
}
.candidate-path-card .btn {
    margin-top: auto;
}
.candidate-status-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}
.candidate-status-track-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.candidate-status-track li {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}
.candidate-status-track li.active {
    border-color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
}
.candidate-status-track strong,
.candidate-status-track small {
    display: block;
}
.candidate-status-track small {
    margin-top: 6px;
    color: var(--gray);
}
.candidate-job-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 14px 0;
}
@media (max-width: 850px) {
    .candidate-status-track,
    .candidate-status-track-six {
        grid-template-columns: 1fr;
    }
    .candidate-job-meta {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .candidate-tracker-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .candidate-tracker-row > div:last-child {
        text-align: left;
    }
}
