﻿:root {
    /* =========================
       New Color Theme (Dark + Green)
       ========================= */
    /* Base backgrounds */
    --bg: #242424; /* main background (dark gray) */
    --bg-2: #1f1f1f; /* slightly darker for depth */
    --text: #ffffff; /* default text on dark */
    /* Sidebar + accents */
    --sidebar: #b9efb0; /* light green */
    --sidebar-dark: #a6e49c; /* hover/active green */
    /* Panels / surfaces */
    --panel: rgba(255,255,255,0.06); /* subtle light overlay on dark */
    --panel-strong: rgba(255,255,255,0.10);
    /* Borders (subtle on dark) */
    --border: rgba(255,255,255,0.18);
    --border-strong: rgba(255,255,255,0.28);
    /* Inputs */
    --input-bg: rgba(255,255,255,0.10);
    --input-bg-disabled: rgba(255,255,255,0.06);
    --input-border: rgba(255,255,255,0.22);
    /* Headings / labels (green chips) */
    --chip-bg: #b9efb0;
    --chip-text: #0b0f14; /* black-ish */
    --chip-border: rgba(0,0,0,0.35);
    /* Buttons */
    --btn-bg: #b9efb0;
    --btn-text: #0b0f14;
    --btn-border: rgba(0,0,0,0.35);
    /* Info icon */
    --info-bg: #b9efb0;
    --info-text: #0b0f14;
    /* Table group headers */
    --grp-gen: #3a3a3a;
    --grp-av: #2f4a34; /* green-ish dark */
    --grp-etf: #3f2f44; /* violet-ish dark */
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* =========================================================
   App Layout
   ========================================================= */
.app-shell {
    height: 100vh;
    width: 100vw;
    display: flex !important;
    background: var(--bg); /* sicherstellen, dass nur Content dunkel ist */
}

.content {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    padding: 26px 28px;
}

.top-right {
    position: absolute;
    top: 18px;
    right: 18px;
}

.top-button {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 2px solid var(--btn-border);
    border-radius: 8px;
    padding: 10px 26px;
    font-size: 18px;
    cursor: pointer;
}

.page-body {
    margin-top: 70px;
    display: flex;
    justify-content: center;
}

.page {
    width: min(1080px, 95%);
    padding-bottom: 60px; /* Luft unten */
}

.page-wide {
    width: min(1800px, 98vw);
    margin: 0 auto;
    padding: 0 12px;
    padding-bottom: 60px; /* Luft unten auch hier */
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.55), 0 10px 24px rgba(0,0,0,0.35);
}

.page-group-label {
    display: table; /* sorgt für horizontale Zentrierung */
    background: var(--chip-bg);
    color: var(--chip-text);
    padding: 0.8rem 2.2rem;
    border-radius: 14px;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
    margin: 1.5rem auto 2rem; /* auto = zentriert */
    border: 2px solid var(--chip-border);
}

/* =========================================================
   Headlines / Forms
   ========================================================= */
.huge-title {
    text-align: center;
    font-size: 80px; /* minimal kleiner = angenehmer */
    font-weight: 800;
    line-height: 1.08; /* GANZ wichtig → kompakter Block */
    letter-spacing: -0.5px; /* statt +0.5 → moderner, cleaner */
    color: #ffffff;
    text-shadow: 0 8px 24px rgba(0,0,0,0.45); /* etwas softer */
}

.subtitle {
    text-align: center;
    font-size: 28px;
    opacity: 0.92;
    margin-bottom: 24px;
    color: #ffffff;
}

.form-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 18px 26px;
    align-items: center;
    font-size: 30px;
}

.input {
    font-size: 28px;
    padding: 10px 14px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: #ffffff;
}

    .input:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        background: var(--input-bg-disabled);
    }

.cta {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-block {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-sub {
    margin-top: 8px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    width: 100%; /* wichtig für mobile */
}

/* Buttons minimal kleiner */
.primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 2px solid var(--btn-border);
    border-radius: 10px;
    padding: 10px 18px; /* kleiner */
    font-size: 20px; /* kleiner */
    cursor: pointer;
}

    .primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* =========================================================
   Standard Table + Note
   ========================================================= */
.table {
    width: 860px;
    border-collapse: collapse;
    background: var(--panel-strong);
    border: 2px solid var(--border-strong);
}

    .table th,
    .table td {
        border: 2px solid rgba(255,255,255,0.10);
        padding: 10px 12px;
        font-size: 22px;
    }

    .table th {
        background: rgba(255,255,255,0.08);
        color: #ffffff;
        font-size: 26px;
    }

.note-box {
    margin: 18px auto 0;
    width: 860px;
    background: rgba(185, 239, 176, 0.16); /* soft green hint */
    border: 2px solid rgba(185,239,176,0.35);
    padding: 16px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

/* =========================================================
   Detailtabelle (groß)
   ========================================================= */
.table-wrap {
    width: 100%;
    overflow-x: auto; /* horizontal */
    overflow-y: auto; /* vertikal (falls nötig) */
    border: 2px solid var(--border-strong);
    background: var(--panel);
    box-sizing: border-box;
}

.big-table {
    --sticky-year: 78px;
    --sticky-phase: 200px;
    --sticky-age: 70px;
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

    .big-table th,
    .big-table td {
        border-right: 2px solid rgba(255,255,255,0.10);
        border-bottom: 2px solid rgba(255,255,255,0.10);
        border-left: 0;
        border-top: 0;
        padding: 10px 12px;
        font-size: 18px;
        box-sizing: border-box;
        color: #ffffff;
    }

    .big-table tr > *:first-child {
        border-left: 2px solid rgba(255,255,255,0.10);
    }

    .big-table thead tr:first-child > * {
        border-top: 2px solid rgba(255,255,255,0.10);
    }

    .big-table thead tr.col-head th:not(.sticky-year):not(.sticky-phase):not(.sticky-age) {
        min-width: 130px;
    }

    .big-table td {
        white-space: nowrap;
    }

    .big-table th {
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: manual;
        text-align: center;
        line-height: 1.15;
    }

    /* Header sticky (grundsätzlich) */
    .big-table thead th {
        position: sticky;
        z-index: 10;
    }

    /* Gruppenzeile oben */
    .big-table thead tr.group-head th {
        top: 0;
        z-index: 40;
        color: #ffffff;
        font-size: 18px;
        line-height: 24px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
        padding: 12px 14px;
        white-space: nowrap;
    }

        .big-table thead tr.group-head th.grp-gen {
            background: var(--grp-gen);
        }

        .big-table thead tr.group-head th.grp-av {
            background: var(--grp-av);
        }

        .big-table thead tr.group-head th.grp-etf {
            background: var(--grp-etf);
        }

    /* Spaltenkopfzeile */
    .big-table thead tr.col-head th {
        top: 48px;
        z-index: 30;
        background: rgba(0,0,0,0.25); /* subtle dark header row */
        color: #ffffff;
    }

        /* Sticky-THs in col-head extra hoch */
        .big-table thead tr.col-head th.sticky-col,
        .big-table thead tr.col-head th.sticky-col-2,
        .big-table thead tr.col-head th.sticky-col-3 {
            z-index: 90;
            background: rgba(0,0,0,0.35);
        }

    /* Spaltenbreiten-Helper */
    .big-table th.col-xs, .big-table td.col-xs {
        width: 78px;
        max-width: 78px;
    }

    .big-table th.col-sm, .big-table td.col-sm {
        width: 110px;
        max-width: 110px;
    }

    .big-table th.col-md, .big-table td.col-md {
        width: 150px;
        max-width: 150px;
    }

    .big-table th.col-lg, .big-table td.col-lg {
        width: 190px;
        max-width: 190px;
    }

    .big-table th.col-xl, .big-table td.col-xl {
        width: 240px;
        max-width: 240px;
    }

    /* Sticky linke Spalten */
    .big-table th.sticky-year, .big-table td.sticky-year {
        width: var(--sticky-year);
        min-width: var(--sticky-year);
        max-width: var(--sticky-year);
    }

    .big-table th.sticky-phase, .big-table td.sticky-phase {
        width: var(--sticky-phase);
        min-width: var(--sticky-phase);
        max-width: var(--sticky-phase);
    }

    .big-table th.sticky-age, .big-table td.sticky-age {
        width: var(--sticky-age);
        min-width: var(--sticky-age);
        max-width: var(--sticky-age);
    }

    /* Sticky Basis */
    .big-table .sticky-col,
    .big-table .sticky-col-2,
    .big-table .sticky-col-3 {
        position: sticky;
        z-index: 20;
        background: rgba(0,0,0,0.55); /* opaque enough */
    }

    .big-table .sticky-col {
        left: 0;
    }

    .big-table .sticky-col-2 {
        left: var(--sticky-year);
    }

    .big-table .sticky-col-3 {
        left: calc(var(--sticky-year) + var(--sticky-phase));
    }

    /* Sticky in Header */
    /* Sticky-Spalten im Header: deckend (Dark Theme) */
    .big-table thead .sticky-col,
    .big-table thead .sticky-col-2,
    .big-table thead .sticky-col-3 {
        z-index: 60;
        background: #2a2a2a; /* <- komplett deckend */
    }

    /* Sticky im Body fetter */
    .big-table tbody .sticky-col,
    .big-table tbody .sticky-col-2,
    .big-table tbody .sticky-col-3 {
        font-weight: 800;
    }

    /* Trennkante nach letzter Sticky-Spalte */
    .big-table td.sticky-col-3,
    .big-table th.sticky-col-3 {
        border-right: 0 !important;
        position: sticky;
    }

        .big-table td.sticky-col-3::after,
        .big-table th.sticky-col-3::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: 3px;
            background: rgba(255,255,255,0.18);
            pointer-events: none;
            z-index: 80;
        }

/* Phasenfarben (Dark) */
.phase-save {
    background: #252525; /* leicht heller als Hauptbg */
}
/* leicht grünlicher Dark-Ton */
.phase-rent {
    background: #223422;
}
/* neutral Dark */

/* Sticky-Zellen in Phasenfarben: DECKEND */
.phase-save td.sticky-col,
.phase-save td.sticky-col-2,
.phase-save td.sticky-col-3 {
    background: #202020; /* etwas dunkler als row */
}

.phase-rent td.sticky-col,
.phase-rent td.sticky-col-2,
.phase-rent td.sticky-col-3 {
    background: #223422;
}

/* Zahlen */
.big-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   Helferklassen
   ========================================================= */
.num {
    text-align: right;
}

.strong {
    font-weight: 900;
}

/* =========================================================
   Ergebnis Kompakttabelle
   ========================================================= */
.table-compact {
    width: min(900px, 92vw);
    margin: 18px auto 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: var(--panel);
    border: 2px solid var(--border-strong);
}

    .table-compact th,
    .table-compact td {
        border: 1px solid rgba(255,255,255,0.12);
        padding: 12px 16px;
        font-size: 20px;
        line-height: 1.25;
        color: #ffffff;
    }

    .table-compact th {
        background: rgba(0,0,0,0.5);
        color: #ffffff;
        text-align: center;
        font-weight: 800;
        line-height: 1.15;
    }

    .table-compact .th-title {
        font-size: 24px;
        font-weight: 900;
    }

    .table-compact .th-sub {
        font-size: 18px;
        font-weight: 700;
        margin-top: 4px;
        opacity: 0.95;
    }

    .table-compact td.num {
        text-align: right;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .table-compact tbody tr:nth-child(even) {
        background: rgba(255,255,255,0.03);
    }

    .table-compact tbody tr:hover {
        background: rgba(185,239,176,0.10);
    }

/* =========================================================
   Premium Info Box (Home)
   ========================================================= */
.premium-info {
    max-width: 1000px;
    margin: 40px auto 24px;
    padding: 22px 28px;
    background: rgba(185,239,176,0.10);
    border: 2px solid rgba(185,239,176,0.28);
    border-radius: 12px;
    font-size: 20px;
    line-height: 1.5;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* =========================================================
   Vorgaben Gruppen
   ========================================================= */
.group {
    margin: 18px auto 22px;
    width: min(1080px, 95%);
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px 16px;
}

.group-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.group-label {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 18px;
    border: 2px solid var(--chip-border);
}

.form-grid-compact {
    grid-template-columns: 1fr 520px;
    font-size: 26px;
}

.hint {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.85;
}

/* =========================================================
   Kinder UI
   ========================================================= */
.kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.kid-card {
    position: relative;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: var(--panel);
    padding: 14px 14px 12px;
    min-height: 120px;
    color: #ffffff;
}

.kid-title {
    font-weight: 900;
    margin-bottom: 10px;
    font-size: 18px;
}

.kid-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    margin-top: 6px;
}

.kid-label {
    opacity: 0.8;
}

.kid-value {
    font-weight: 800;
}

.kid-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

    .kid-remove:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.kid-add-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 2px dashed rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.04);
    padding: 14px;
    cursor: pointer;
    min-height: 120px;
    color: #ffffff;
}

    .kid-add-card:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.kid-add-plus {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 28px;
    font-weight: 900;
    border: 2px solid var(--chip-border);
}

.kid-add-text {
    margin-top: 10px;
    font-weight: 800;
    font-size: 16px;
}

/* Add-Kind-Box deaktiviert (Demo-Modus) */
.kid-add-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

    .kid-add-card.is-disabled .kid-add-plus {
        background: rgba(185,239,176,0.45);
    }

/* =========================================================
   Modal (rv- Prefix wegen Bootstrap Konflikt)
   ========================================================= */
.rv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: grid;
    place-items: center;
    z-index: 9999;
}

.rv-modal {
    position: relative;
    width: min(650px, 92vw);
    background: #1d1d1d; /* dark modal */
    border: 2px solid var(--border-strong);
    border-radius: 16px;
    padding: 14px 14px 12px;
    max-height: 90vh;
    overflow-y: auto;
    color: #ffffff;
}

.rv-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 6px 10px;
}

.rv-modal-title {
    font-size: 20px;
    font-weight: 900;
}

.rv-modal-x {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
}

.rv-modal-body {
    padding: 6px;
}

.rv-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 10px 6px 4px;
}

/* Modal Formular grid + kleine Inputs (für zweistellige Zahlen) */
.form-grid-modal {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px 18px;
    align-items: center;
    font-size: 20px;
}

.input.input-xs {
    width: 120px;
    max-width: 120px;
    padding: 8px 10px;
    font-size: 20px;
}

/* Buttons im Modal etwas kleiner */
.btn-small {
    padding: 10px 16px;
    font-size: 18px;
}

.primary.ghost {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border-color: rgba(255,255,255,0.18);
}

.error-text {
    margin-top: 10px;
    color: #ff8a8a;
    font-weight: 800;
}

/* =========================================================
   Info-Details
   ========================================================= */
.info-details {
    display: inline-block;
    margin-top: 12px;
    border: 2px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 10px 12px;
}

    .info-details summary {
        list-style: none;
        cursor: pointer;
        font-weight: 500;
        font-size: 15px;
        opacity: 0.85;
        display: flex;
        align-items: center;
        gap: 10px;
        user-select: none;
        color: #ffffff;
    }

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

.info-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--info-bg);
    color: var(--info-text);
    font-weight: 800;
    font-size: 14px;
    border: 2px solid rgba(0,0,0,0.35);
}

.info-details__body {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.45;
    opacity: 0.95;
    color: #ffffff;
}

/* Bild im Infotext */
.info-image {
    margin: 14px 0;
    text-align: center;
}

    .info-image img {
        max-width: 100%;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    }

.info-image-caption {
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.75;
}

/* =========================================================
   Sidebar Final Design (Dark + Active Green)
   ========================================================= */

.sidebar {
    width: 330px !important;
    flex: 0 0 330px !important;
    background: #1b1b1b !important;
    padding-top: 90px;
    border-right: 2px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}

    /* Links neutralisieren */
    .sidebar a,
    .sidebar a:visited,
    .sidebar a:hover,
    .sidebar a:active {
        text-decoration: none;
        color: inherit;
    }

/* Hauptbereich */
.sidebar-main {
    display: flex;
    flex-direction: column;
}

/* Fortgeschrittene unten */
.sidebar-advanced {
    margin-top: auto;
    padding-top: 18px;
    padding-bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
}

/* Hauptnavigation */
.sidebar .nav-item {
    position: relative;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    user-select: none;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    line-height: 1.15;
    padding: 26px 24px;
    font-size: 28px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .sidebar .nav-item:hover {
        background: rgba(255,255,255,0.05);
    }

    .sidebar .nav-item.active,
    .sidebar .nav-item[aria-current="page"] {
        background: #b9efb0;
        color: #0b0f14;
        font-weight: 800;
    }

        .sidebar .nav-item.active::before,
        .sidebar .nav-item[aria-current="page"]::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 6px;
            background: rgba(0,0,0,0.35);
        }

/* =========================================
   Einheitliches Dark-Field Styling
   (Input + Select identisch)
   ========================================= */

/* Basis-Feld (Input + Select) */
.input,
input,
select,
select.input {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.22);
    padding: 10px 14px;
    font-size: 28px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    /* Hover */
    .input:hover,
    input:hover,
    select:hover {
        background: rgba(255,255,255,0.13);
    }

    /* Focus (kein dunkler Browser-Effekt mehr) */
    .input:focus,
    input:focus,
    select:focus {
        background: rgba(255,255,255,0.13);
        outline: none;
        box-shadow: 0 0 0 2px rgba(185,239,176,0.35);
    }

    /* Disabled */
    .input:disabled,
    input:disabled,
    select:disabled {
        background: rgba(255,255,255,0.06);
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* =========================================
   Dropdown-Liste selbst
   ========================================= */

    select option {
        background: #2a2a2a;
        color: #ffffff;
    }

        /* Ausgewählte Option */
        select option:checked {
            background: #b9efb0;
            color: #0b0f14;
        }

        /* Hover (wird je nach Browser unterstützt) */
        select option:hover {
            background: #b9efb0;
            color: #0b0f14;
        }


    /* =========================================
   Dark Theme Checkbox sichtbar machen
   Checkbox: weiße Fläche, native Häkchen + grüne Accent-Color
   ========================================= */

    input[type="checkbox"].input {
        width: 26px;
        height: 26px;
        /* wichtig: Native Checkbox wiederherstellen */
        appearance: auto;
        -webkit-appearance: auto;
        /* macht Häkchen/Füllung grün */
        accent-color: #b9efb0;
        /* kein eigenes background – das kann das Häkchen "verschlucken" */
        background: transparent !important;
        /* optional: klarer Rahmen */
        border: 2px solid rgba(255,255,255,0.35);
        border-radius: 4px;
        cursor: pointer;
    }

        input[type="checkbox"].input:checked {
            border-color: rgba(185, 239, 176, 0.9);
        }

        input[type="checkbox"].input:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

/* =========================================
   Extrawurst Detailtabelle: 
   Sticky Header (erste 3 Spalten) DECKEND
   ========================================= */

.big-table thead tr.col-head th.sticky-col,
.big-table thead tr.col-head th.sticky-col-2,
.big-table thead tr.col-head th.sticky-col-3 {
    background: #2a2a2a !important; /* komplett deckend */
    z-index: 120 !important; /* höher als Body */
}

/* Falls deine erste Header-Zeile (group-head) auch sticky ist */
.big-table thead tr.group-head th.sticky-col,
.big-table thead tr.group-head th.sticky-col-2,
.big-table thead tr.group-head th.sticky-col-3 {
    background: #2a2a2a !important;
    z-index: 130 !important;
}

.error-banner {
    background: #2b1515;
    border: 1px solid #b94a4a;
    color: #ffd2d2;
    padding: 12px 14px;
    border-radius: 10px;
    margin: 12px 0 18px 0;
}

.error-banner__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.error-banner__title {
    font-weight: 700;
    color: #ffb3b3;
}

.error-banner__close {
    background: transparent;
    border: 0;
    color: #ffb3b3;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    padding: 0 4px;
}

.error-banner__list {
    margin: 0;
    padding-left: 18px;
}

/* Berechne-Button aktualsieren wenn Vorgaben geändert werden */
.primary-dirty {
    font-weight: 700;
    box-shadow: 0 0 0 2px #b9efb0, 0 0 18px rgba(185,239,176,0.55);
}

.update-hint {
    margin-top: 12px;
    text-align: center;
    color: #b9efb0;
    font-size: 16px;
    font-weight: 600;
}

/* Einlogg-Button bzw Registrieren usw oben rechts */
.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 24px 4px 24px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-status__hello {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.user-status__link {
    background: #b9efb0;
    color: #111;
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* Anmelden und Registrieren Dialoge */
.auth-card {
    max-width: 1100px;
    margin: 0 auto;
}

.auth-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px 20px;
    align-items: center;
}

.auth-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.error-text ul {
    margin: 0;
    padding-left: 20px;
}

/* Login Buttons unten rechtsbündig */
.cta-right-align {
    display: flex;
    justify-content: flex-end; 
    gap: 12px;
    flex-wrap: wrap;
}

/*Impressum und son Gedönz*/
.app-footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #2a2a2a;
}

    .app-footer a {
        color: #888;
        text-decoration: none;
        margin: 0 8px;
    }

        .app-footer a:hover {
            color: #ccc;
        }

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 12px 48px;
    color: #e8e8e8;
    line-height: 1.65;
}

    .legal-page h1 {
        margin-bottom: 24px;
        font-size: 2rem;
    }

    .legal-page h2 {
        margin-top: 28px;
        margin-bottom: 10px;
        font-size: 1.15rem;
    }

    .legal-page p {
        margin-bottom: 12px;
        color: #d0d0d0;
    }

    .legal-page a {
        color: #b6e59e;
        text-decoration: none;
    }

        .legal-page a:hover {
            text-decoration: underline;
        }

 /*Nix Steuerberaeter und So - Hinweis Ergebnisseite*/
.result-note {
    max-width: 900px;
    margin: 14px auto 0;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #9aa0a6;
}

    .result-note a {
        color: #a7d88d;
        text-decoration: none;
        margin-left: 6px;
    }

        .result-note a:hover {
            text-decoration: underline;
        }

/*Edle Einleitungsseite*/
.intro-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 0 28px;
}

.intro-stage {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 18px;
    align-items: center;
}

.intro-slide-frame {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
}

.intro-slide {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.intro-arrow {
    height: 56px;
    width: 56px;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    background: #1f1f1f;
    color: #f2f2f2;
    font-size: 2rem;
    cursor: pointer;
}

    .intro-arrow:disabled {
        opacity: .35;
        cursor: default;
    }

.intro-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.intro-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: #4b4b4b;
    cursor: pointer;
}

    .intro-dot.active {
        background: #b7e3a1;
    }

.intro-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* =========================================================
   Sidebar Sekundärbereich: Für Fortgeschrittene
   ========================================================= */

.nav-section-title {
    padding: 16px 24px 12px 24px;
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.72);
    line-height: 1.15;
}

.nav-sub-item {
    position: relative;
    padding: 18px 24px 18px 34px;
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    user-select: none;
    line-height: 1.15;
    transition: background 0.2s ease, color 0.2s ease;
}

    .nav-sub-item:hover {
        background: rgba(255,255,255,0.05);
        color: #ffffff;
    }

    .nav-sub-item.active,
    .nav-sub-item[aria-current="page"] {
        background: #b9efb0;
        color: #0b0f14;
        font-weight: 800;
    }

        .nav-sub-item.active::before,
        .nav-sub-item[aria-current="page"]::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 6px;
            background: rgba(0,0,0,0.35);
        }

/*Kleine Scheißerle Laptops*/
@media (max-width: 1400px) {

    .sidebar {
        width: 300px !important;
        flex: 0 0 300px !important;
    }

        .sidebar .nav-item {
            font-size: 26px;
            padding: 26px 20px;
        }

    .nav-sub-item {
        font-size: 20px;
        padding: 22px 20px 22px 36px;
    }

    .nav-section-title {
        font-size: 18px;
        padding: 14px 20px 10px 20px;
    }
}

@media (max-width: 1100px) {

    .sidebar {
        width: 240px !important;
        flex: 0 0 240px !important;
    }

        .sidebar .nav-item {
            font-size: 20px;
            padding: 20px 16px;
        }

    .nav-sub-item {
        font-size: 17px;
        padding: 18px 16px 18px 28px;
    }

    .nav-section-title {
        font-size: 15px;
        padding: 12px 16px 8px 16px;
    }
}

/* =========================================================
   Layout-Umschaltung für Tablets / engere Viewports:
   Sidebar oben statt links, ohne Sticky-/Stretch-Effekt
   ========================================================= */
@media (max-width: 1024px) {
    .app-shell {
        display: block !important;
        height: auto !important;
        width: 100%;
    }

    .sidebar {
        width: 100% !important;
        flex: none !important;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0;
        border-right: none;
        border-bottom: 2px solid rgba(255,255,255,0.08);
    }

    .sidebar-main,
    .sidebar-advanced {
        display: block !important;
        flex: none !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .sidebar,
    .sidebar-main,
    .sidebar-advanced {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
        overflow: visible !important;
        max-height: none !important;
    }

    .sidebar-advanced {
        margin-top: 0 !important;
        padding-top: 0;
        border-top: none;
    }

    .content {
        padding: 16px 16px 24px;
        position: relative;
        z-index: 1;
    }

    .topbar {
        padding: 12px 8px 4px 8px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .app-shell,
    .content,
    .page-body {
        overflow: visible !important;
    }

    .page-body {
        margin-top: 24px;
    }

    .page,
    .group {
        width: 100%;
    }

    .page-wide {
        width: 100%;
        padding: 0;
    }
}

/* =========================================================
   Responsive: Tablet / kleine Screens
   ========================================================= */
@media (max-width: 900px) {
  
    .sidebar .nav-item {
        font-size: 18px;
        padding: 16px 18px;
    }

    .nav-sub-item {
        font-size: 16px;
        padding: 14px 18px 14px 28px;
    }

    .nav-section-title {
        font-size: 15px;
        padding: 12px 18px 8px 18px;
    }

    .page-group-label {
        font-size: 1.2rem;
        padding: 0.65rem 1.2rem;
        margin: 1rem auto 1.4rem;
        text-align: center;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .huge-title {
        font-size: clamp(2.4rem, 8vw, 4.2rem);
        line-height: 1.05;
    }

    .subtitle {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .form-grid,
    .form-grid-compact,
    .form-grid-modal,
    .auth-grid {
        grid-template-columns: 1fr !important;
        gap: 12px 12px;
        font-size: 18px;
    }

    .input,
    input,
    select,
    select.input {
        font-size: 18px;
        padding: 10px 12px;
    }

        .input.input-xs {
            width: 100%;
            max-width: 100%;
            font-size: 18px;
        }

    .group {
        padding: 14px;
        margin: 14px auto 18px;
    }

    .group-label {
        font-size: 16px;
    }

    .table-compact {
        width: 100%;
        margin: 14px auto 0;
    }

        .table-compact th,
        .table-compact td,
        .steuer-matrix th,
        .steuer-matrix td {
            font-size: 16px;
            padding: 10px 12px;
        }

    .premium-info,
    .note-box {
        width: auto;
        max-width: 100%;
        font-size: 18px;
        padding: 16px 18px;
    }

    .auth-card,
    .legal-page,
    .intro-page {
        max-width: 100%;
    }

    .intro-stage {
        grid-template-columns: 40px 1fr 40px;
        gap: 10px;
    }

    .intro-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}

/* =========================================================
   Responsive: Mobile
   ========================================================= */
@media (max-width: 600px) {
    .content {
        padding: 12px 12px 20px;
    }

    .sidebar .nav-item {
        font-size: 16px;
        padding: 14px 14px;
    }

    .nav-sub-item {
        font-size: 14px;
        padding: 12px 14px 12px 24px;
    }

    .nav-section-title {
        font-size: 14px;
        padding: 10px 14px 6px 14px;
    }

    .page-group-label {
        font-size: 1rem;
        padding: 0.55rem 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .huge-title {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .subtitle {
        font-size: 17px;
    }

    .form-grid,
    .form-grid-compact,
    .form-grid-modal,
    .auth-grid {
        font-size: 16px;
    }

    .input,
    input,
    select,
    select.input {
        font-size: 16px;
        padding: 9px 10px;
    }

    .group {
        padding: 12px;
        border-radius: 12px;
    }

    .group-label {
        font-size: 15px;
        padding: 7px 12px;
    }

    .info-details__body {
        font-size: 16px;
    }

    .primary,
    .btn-small,
    .user-status__link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .table-compact th,
    .table-compact td,
    .steuer-matrix th,
    .steuer-matrix td {
        font-size: 14px;
        padding: 8px 10px;
    }

    .kid-card,
    .kid-add-card {
        min-height: 100px;
    }

    .kid-title {
        font-size: 16px;
    }

    .kid-row,
    .kid-add-text {
        font-size: 14px;
    }

    .table-compact .th-title {
        font-size: 16px;
        line-height: 1.05;
    }

    .table-compact .th-sub {
        font-size: 12px;
        line-height: 1.1;
        margin-top: 2px;
    }

    .table-compact th {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .premium-info {
        text-align: center;
    }
}

/* =========================================
   Phone-Landscape: Sidebar trotzdem oben
   Verhindert Desktop-Sidebar auf quer gedrehten Smartphones
   ========================================= */
@media (orientation: landscape) and (max-height: 520px) {
    .app-shell {
        display: block !important;
        height: auto;
        width: 100%;
    }

    .sidebar {
        width: 100% !important;
        flex: none !important;
        padding-top: 0;
        border-right: none;
        border-bottom: 2px solid rgba(255,255,255,0.08);
    }

    .sidebar-main,
    .sidebar-advanced {
        display: block;
    }

    .sidebar,
    .sidebar-main,
    .sidebar-advanced {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
        overflow: visible !important;
        max-height: none !important;
    }

    .sidebar .nav-item {
        font-size: 16px;
        padding: 12px 14px;
    }

    .nav-sub-item {
        font-size: 14px;
        padding: 10px 14px 10px 24px;
    }

    .nav-section-title {
        font-size: 14px;
        padding: 10px 14px 6px 14px;
    }

    .content {
        padding: 12px 12px 20px;
        position: relative;
        z-index: 1;
    }

    .app-shell,
    .content,
    .page-body {
        overflow: visible !important;
    }

    .page-body {
        margin-top: 18px;
    }

    .page,
    .group {
        width: 100%;
    }

    .page-wide {
        width: 100%;
        padding: 0;
    }
}

/* =========================================================
   Tablet / enger Contentbereich:
   Formularspalten etwas entschärfen, ohne auf 1 Spalte zu gehen
   ========================================================= */
@media (max-width: 1250px) and (min-width: 901px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: 16px 20px;
        font-size: 24px;
    }

    .form-grid-compact {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
        font-size: 22px;
    }

        .form-grid > *,
        .form-grid-compact > * {
            min-width: 0;
        }

    .input,
    input,
    select,
    select.input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 22px;
    }
}

/*Danger Button für Acc löschen*/
.danger {
    background: #b94a4a !important;
    color: #ffffff !important;
}

    .danger:hover {
        filter: brightness(1.05);
    }


/*Steuerprognosebild-Poser*/
.steuer-hero-image {
    margin: 22px 0 24px;
    text-align: center;
}

    .steuer-hero-image img {
        display: block;
        width: min(100%, 980px);
        height: auto;
        margin: 0 auto;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    }

/*Steuermatrix-Poser*/
.steuer-matrix th,
.steuer-matrix td {
    white-space: nowrap;
}

    .steuer-matrix th:first-child,
    .steuer-matrix td:first-child {
        text-align: left;
        min-width: 90px;
    }

.steuer-matrix th {
    font-size: 18px;
}

.steuer-matrix td {
    font-size: 18px;
}

.gp-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.gp-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border-radius: 50%;
    border: 1px solid rgba(185,239,176,0.6);
    color: #b9efb0;
    background: rgba(185,239,176,0.08);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

    .gp-hint:hover {
        background: rgba(185,239,176,0.18);
        border-color: rgba(185,239,176,0.9);
    }

.intro-block {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

/*.intro-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}*/

.intro-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 18px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.intro-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 18px;
}

    .intro-text.centered {
        text-align: center;
        max-width: 770px;
        margin: 10px auto 24px auto;
    }

.intro-highlight-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.intro-highlight {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(185,239,176,0.1);
    border: 1px solid rgba(185,239,176,0.3);
    font-weight: 600;
}

.intro-feature-list {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.intro-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 16px;
}

.intro-highlight-card {
    background: linear-gradient(180deg, rgba(185,239,176,0.10), rgba(185,239,176,0.03));
    border: 1px solid rgba(185,239,176,0.25);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.intro-highlight-title {
    font-size: 14px;
    color: #b9efb0;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.intro-highlight-main {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 6px;
}

.intro-highlight-sub {
    font-size: 13px;
    color: #bdbdbd;
}

.intro-highlight-note {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: #cfcfcf;
    opacity: 0.9;
}

.th-with-info {
    position: relative;
}

    .th-with-info .gp-hint {
        position: absolute;
        top: 6px;
        right: 6px;
    }

.faq-article-nav {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*für Startseite*/
.hero-claim {
    margin-top: 22px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: #f3f3f3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: #b9efb0; /* dein Green */
}

.hero-claim + .hero-claim {
    margin-top: 10px;
}

.hero-strong + .hero-claim {
    margin-top: 26px; /* neuer Block beginnt */
}

.hero-subclaim {
    margin-top: 8px;
    margin-bottom: 26px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b9efb0;
}

/*Persönliche Seeite*/
.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 12px 48px;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
}

    .about-page p {
        margin-bottom: 16px;
    }

.about-intro {
    text-align: center;
    max-width: 770px;
    margin: 6px auto 32px auto;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
}