* {
    box-sizing: border-box;
}

:root {
    --bg: #071018;
    --bg-soft: #0c1824;
    --panel: rgba(13, 25, 36, 0.92);
    --panel-border: rgba(116, 202, 255, 0.16);
    --text: #e6eef7;
    --muted: #8ea4b8;
    --accent: #2d8cff;
    --accent-soft: rgba(45, 140, 255, 0.16);
    --green: #38d996;
    --danger: #ff5d73;
    --code: #00c8ff;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(30, 120, 160, 0.15), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(40, 200, 150, 0.08), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

.hero {
    height: 255px;
    background:
        linear-gradient(90deg, rgba(4, 9, 14, 0.88), rgba(4, 9, 14, 0.2), rgba(4, 9, 14, 0.92)),
        url("../images/header.png") center/cover no-repeat;
    border-bottom: 1px solid var(--panel-border);
}

.hero-overlay {
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 0 56px;
    background: linear-gradient(180deg, transparent, rgba(7, 16, 24, 0.2));
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 0 48px;
}

.hero-brand {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.32em;
    color: #edf5fc;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.hero-brand-word {
    white-space: nowrap;
}

.hero-brand-initial {
    color: #27a8ff;
    font-size: 1.18em;
    text-shadow:
        0 0 8px rgba(39, 168, 255, 0.9),
        0 0 24px rgba(39, 168, 255, 0.55);
}

.hero-tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    color: #68d8ff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 174, 255, 0.25);
}

.hero-tagline-separator {
    color: rgba(107, 220, 255, 0.65);
    letter-spacing: 0;
}

.hero-breadcrumb {
    position: absolute;
    left: 0;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #dce7f1;
}

.hero-breadcrumb-home,
.hero-breadcrumb-tcc {
    color: #35baff;
}

.hero-breadcrumb-home {
    font-size: 18px;
    line-height: 1;
}

.hero-breadcrumb-tcc {
    font-weight: 600;
}

.hero-breadcrumb-arrow {
    color: var(--muted);
}

.hero-breadcrumb-page {
    color: #e6eef7;
}

.app-shell {
    padding: 34px 48px 28px;
}

.grid-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(540px, 1.3fr);
    gap: 28px;
    align-items: stretch;
}

.panel,
.alert-card,
.login-card {
    background: linear-gradient(180deg, rgba(17, 32, 46, 0.95), rgba(9, 18, 27, 0.95));
    border: 1px solid var(--panel-border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.panel {
    padding: 26px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.panel-header h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.14em;
}

.panel-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.badge {
    border: 1px solid rgba(107, 220, 255, 0.22);
    background: rgba(70, 160, 220, 0.09);
    color: #a7dfff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
}

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

.module-list {
    border: 1px solid rgba(116, 202, 255, 0.14);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(3, 10, 16, 0.35);
}

.module-row {
    display: grid;
    grid-template-columns: 24px 1fr 34px;
    align-items: center;
    min-height: 35px;
    padding: 0 12px;
    color: #d9e8f5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.module-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.module-row:hover {
    background: rgba(45, 140, 255, 0.08);
}

.module-row.selected {
    background: rgba(45, 140, 255, 0.13);
}

.module-row input {
    accent-color: var(--accent);
}

.module-link {
    appearance: none;
    width: 100%;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.module-link:hover {
    color: #ffffff;
}

.order-number {
    color: var(--green);
    font-weight: 700;
    text-align: right;
}

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

button {
    font: inherit;
}

.primary-button,
.secondary-button {
    border-radius: 8px;
    padding: 13px 18px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.primary-button {
    background: linear-gradient(135deg, #1f6feb, #164a8d);
    color: white;
    border: 1px solid rgba(117, 190, 255, 0.34);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.035);
    color: #d8e6f2;
    border: 1px solid rgba(150, 190, 220, 0.22);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 220, 255, 0.55);
}

.output-panel textarea {
    width: 100%;
    height: 540px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(116, 202, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35)),
        #020812;
    color: var(--code);
    padding: 20px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.45;
    outline: none;
    box-shadow: inset 0 0 35px rgba(0, 190, 255, 0.04);
}

.footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 22px;
    align-items: center;
    border-top: 1px solid var(--panel-border);
    padding: 18px 48px 24px;
    color: var(--muted);
    font-size: 13px;
}

.footer a {
    color: #c8d8e8;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.version {
    text-align: right;
}

.alert-card {
    padding: 28px;
    border-color: rgba(255, 93, 115, 0.32);
}

.alert-card h2 {
    color: var(--danger);
    margin-top: 0;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(4, 9, 14, 0.9), rgba(4, 9, 14, 0.55)),
        url("../images/header.png") center/cover no-repeat,
        var(--bg);
}

.login-shell {
    width: min(440px, calc(100vw - 32px));
}

.login-card {
    padding: 34px;
}

.login-brand {
    margin-bottom: 28px;
}

.brand-kicker {
    color: #6bdcff;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

.login-brand h1 {
    margin: 0;
    font-size: 30px;
}

.login-brand p {
    margin: 8px 0 0;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    color: #b7c9d8;
    font-size: 13px;
}

.login-form input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid rgba(116, 202, 255, 0.18);
    background: rgba(2, 8, 18, 0.82);
    color: white;
    outline: none;
}

.login-form input:focus {
    border-color: rgba(107, 220, 255, 0.55);
}

.full-width {
    width: 100%;
    margin-top: 12px;
}

.error-box {
    background: rgba(255, 93, 115, 0.1);
    border: 1px solid rgba(255, 93, 115, 0.25);
    color: #ffb7c2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
}

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

    .hero {
        height: 220px;
    }

    .hero-brand {
        font-size: 36px;
    }

    .hero-tagline {
        gap: 10px;
        font-size: 11px;
        letter-spacing: 0.22em;
    }

    .hero-breadcrumb {
        font-size: 13px;
    }

    .app-shell {
        padding: 24px;
    }

    .footer {
        grid-template-columns: 1fr;
        padding: 18px 24px 24px;
    }

    .version {
        text-align: left;
    }
}

/* Hauptnavigation */
.top-nav {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(6, 14, 22, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.top-nav-inner {
    display: flex;
    gap: 8px;
    padding: 0 48px;
}

.top-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 700;
}

.top-nav-link:hover {
    color: #ffffff;
    background: rgba(45, 140, 255, 0.06);
}

.top-nav-link.active {
    color: #ffffff;
}

.top-nav-link.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(45, 140, 255, 0.75);
}

/* Motivationstabelle */
.motivation-shell {
    display: grid;
    gap: 28px;
}

.motivation-top-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1.2fr);
    gap: 28px;
}

.motivation-settings-form {
    display: grid;
    gap: 12px;
}

.motivation-settings-form label {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr);
    align-items: center;
    gap: 16px;
    color: #c8d8e8;
    font-size: 13px;
}

.motivation-settings-form input,
.motivation-settings-form select,
.balance-input {
    width: 100%;
    border: 1px solid rgba(116, 202, 255, 0.18);
    border-radius: 7px;
    background: rgba(2, 8, 18, 0.76);
    color: var(--text);
    outline: none;
}

.motivation-settings-form input,
.motivation-settings-form select {
    padding: 11px 12px;
}

.motivation-settings-form input:focus,
.motivation-settings-form select:focus,
.balance-input:focus {
    border-color: rgba(107, 220, 255, 0.58);
    box-shadow: 0 0 0 2px rgba(45, 140, 255, 0.08);
}

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

.summary-card {
    min-height: 125px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(17, 32, 46, 0.95), rgba(9, 18, 27, 0.95));
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
}

.summary-card span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.summary-card strong {
    color: #ffffff;
    font-size: clamp(20px, 2vw, 29px);
    font-weight: 600;
}

.motivation-chart-panel canvas {
    width: 100%;
    height: 360px;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(116, 202, 255, 0.14);
    background: #06101a;
}

.motivation-table-panel {
    min-width: 0;
}

.motivation-table-wrap {
    max-height: 720px;
    overflow: auto;
    border: 1px solid rgba(116, 202, 255, 0.14);
    border-radius: 10px;
    background: rgba(3, 10, 16, 0.35);
}

.motivation-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.motivation-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 11px;
    background: #d8a800;
    color: #111820;
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    border-bottom: 1px solid #2b2b2b;
    white-space: nowrap;
}

.motivation-table th:first-child,
.motivation-table th:nth-child(2) {
    text-align: left;
}

.motivation-table td {
    height: 36px;
    padding: 5px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    text-align: right;
    font-size: 12px;
    white-space: nowrap;
}

.motivation-table tbody tr:hover td {
    filter: brightness(1.08);
}

.motivation-table td:nth-child(1),
.motivation-table td:nth-child(5),
.motivation-table td:nth-child(6),
.motivation-table td:nth-child(7),
.motivation-table td:nth-child(8) {
    background: rgba(255, 232, 161, 0.09);
}

.motivation-table td:nth-child(2),
.motivation-table td:nth-child(3),
.motivation-table td:nth-child(4) {
    background: rgba(173, 196, 232, 0.11);
}

.motivation-table .month-cell,
.motivation-table td:nth-child(2) {
    text-align: left;
}

.month-cell {
    color: #f2d88e;
    font-weight: 600;
}

.plan-cell {
    color: #dbeaff;
}

.actual-cell {
    padding: 3px 6px !important;
}

.balance-input {
    min-width: 126px;
    padding: 7px 9px;
    text-align: right;
    font-size: 12px;
}

.metric.positive {
    color: var(--green);
    font-weight: 700;
}

.metric.negative {
    color: var(--danger);
    font-weight: 700;
}

.save-notice {
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid rgba(56, 217, 150, 0.26);
    border-radius: 8px;
    background: rgba(56, 217, 150, 0.08);
    color: #a9f0cf;
    font-size: 13px;
}

.motivation-alert {
    margin: 0;
}

@media (max-width: 1050px) {
    .top-nav-inner {
        padding: 0 24px;
    }

    .motivation-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .top-nav-inner {
        padding: 0 12px;
    }

    .top-nav-link {
        padding: 0 12px;
        font-size: 11px;
    }

    .motivation-settings-form label {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .motivation-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Modularer Ausbau ab v1.2 */
.top-nav-inner{flex-wrap:wrap}
@media(max-width:640px){.top-nav-inner{gap:0}.top-nav-link{padding-left:9px;padding-right:9px;font-size:10px}}

/* EINHEITLICHE BEREICHS-SUBNAVIGATION */
.section-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-subnav-link {
    padding: 10px 14px;
    border: 1px solid rgba(116, 202, 255, 0.16);
    border-radius: 8px;
    background: rgba(9, 18, 27, 0.8);
    color: #9fb3c7;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-subnav-link:hover {
    color: #fff;
    border-color: rgba(107, 220, 255, 0.34);
}

.section-subnav-link.active {
    color: #fff;
    border-color: rgba(107, 220, 255, 0.5);
    background: rgba(45, 140, 255, 0.14);
}


.empty-list {
    padding: 18px;
    color: var(--muted);
    font-size: 13px;
}

.bot-row {
    grid-template-columns: 24px 1fr 34px;
}

.bot-marker {
    text-align: center;
}


/* Wirtschaftskalender */
.economic-calendar-shell {
    display: grid;
    justify-items: center;
}

.economic-calendar-card {
    width: min(100%, 1180px);
    padding: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.economic-calendar-frame {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(116, 202, 255, 0.12);
    border-radius: 10px;
    background: var(--bg-soft);
}

.economic-calendar-frame iframe {
    display: block;
    width: 100%;
    height: 650px;
    border: 0;
    background: var(--bg-soft);
}

.economic-calendar-source {
    padding: 10px 4px 0;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

.economic-calendar-source a {
    color: #6bdcff;
    text-decoration: none;
}

.economic-calendar-source a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .economic-calendar-card {
        padding: 8px;
        border-radius: 10px;
    }

    .economic-calendar-frame iframe {
        height: 760px;
    }

    .economic-calendar-source {
        text-align: center;
    }
}


/* Motivationstabelle – kompakter Kopfbereich */
.motivation-shell {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.motivation-top-grid-compact {
    grid-template-columns: minmax(700px, 1.55fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: stretch;
}

.motivation-settings-form-compact {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(390px, 1.2fr);
    gap: 14px 18px;
    align-items: start;
}

.motivation-settings-dates,
.motivation-settings-capital {
    display: grid;
    gap: 12px;
}

.motivation-settings-form-compact label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
}

.motivation-settings-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.motivation-setting-full {
    width: 100%;
}

.motivation-save-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
}

.motivation-calculated-panel {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.motivation-calculated-panel .summary-card {
    min-height: 0;
    padding: 20px 22px;
}

.motivation-calculated-panel .summary-card strong {
    font-size: clamp(24px, 2.2vw, 32px);
}

@media (max-width: 1050px) {
    .motivation-top-grid-compact {
        grid-template-columns: 1fr;
    }

    .motivation-calculated-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
}

@media (max-width: 760px) {
    .motivation-settings-form-compact {
        grid-template-columns: 1fr;
    }

    .motivation-settings-pair,
    .motivation-calculated-panel {
        grid-template-columns: 1fr;
    }
}


/* Motivationstabelle – Kopf mit 4 berechneten Ergebnisboxen */
.motivation-top-grid-compact {
    grid-template-columns: minmax(600px, .95fr) minmax(520px, 1.05fr);
    gap: 18px;
    align-items: stretch;
}

.motivation-settings-panel {
    min-width: 0;
}

.motivation-settings-form-compact {
    grid-template-columns: minmax(220px, .78fr) minmax(340px, 1.22fr);
    gap: 12px 16px;
}

.motivation-calculated-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-self: stretch;
}

.motivation-calculated-grid .summary-card {
    min-height: 0;
    padding: 18px 20px;
}

.motivation-result-card strong {
    margin-top: 12px;
    font-size: clamp(21px, 2vw, 29px);
}

.motivation-result-card small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.motivation-result-card small b {
    color: #dce8f3;
    font-weight: 700;
}

@media (max-width: 1120px) {
    .motivation-top-grid-compact {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .motivation-settings-form-compact,
    .motivation-calculated-grid {
        grid-template-columns: 1fr;
    }
}


/* Motivationstabelle – Schönheitskorrekturen */
.motivation-settings-panel,
.motivation-settings-form-compact,
.motivation-settings-dates,
.motivation-settings-capital,
.motivation-settings-pair {
    min-width: 0;
}

.motivation-settings-form-compact {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.motivation-settings-form-compact label,
.motivation-settings-form-compact input,
.motivation-settings-form-compact select {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

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

.motivation-result-card .result-value {
    color: #ffffff;
}

.motivation-result-card .result-plan {
    color: #7fc8ff;
}

.motivation-result-card .result-profit {
    color: #77e0b0;
}

.motivation-result-card .result-progress {
    color: #b79cff;
}

.motivation-result-card .positive {
    color: #67efb5 !important;
}

.motivation-result-card .negative {
    color: #ff7488 !important;
}

.result-deviation-percent {
    font-weight: 700;
}


/* Motivationstabelle – mehr Breite für die untere Tabelle */
.motivation-shell {
    width: min(100%, 1320px);
    max-width: 1320px;
}


/* Motivationstabelle – Kalender-Symbol in Datumsfeldern aufhellen */
.motivation-settings-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.7);
    opacity: 0.8;
    cursor: pointer;
}


/* Ergebnisboxen: lange Werte bleiben innerhalb der Box */
.motivation-result-card {
    min-width: 0;
}
.motivation-result-card .result-value {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

/* Administration */
.admin-shell{width:min(100%,1180px);margin:0 auto;display:grid;gap:18px}
.admin-create-form{display:grid;grid-template-columns:1fr 180px 1fr 1fr auto;gap:12px;align-items:end}
.admin-create-form label,.admin-user-settings label,.admin-password-form label{display:grid;gap:6px;color:#b9cada;font-size:12px}
.admin-create-form input,.admin-create-form select,.admin-user-settings select,.admin-password-form input{width:100%;min-width:0;box-sizing:border-box;padding:10px 11px;border:1px solid rgba(116,202,255,.18);border-radius:7px;background:rgba(2,8,18,.76);color:#e6eef7;outline:none}
.admin-create-form input:focus,.admin-create-form select:focus,.admin-user-settings select:focus,.admin-password-form input:focus{border-color:rgba(107,220,255,.58);box-shadow:0 0 0 2px rgba(45,140,255,.08)}
.admin-users-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.admin-user-card{min-width:0;padding:18px;border:1px solid rgba(116,202,255,.14);border-radius:10px;background:rgba(3,10,16,.38)}
.admin-user-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.admin-user-head>div{display:grid;gap:4px}.admin-user-head strong{font-size:17px;color:#fff}.admin-user-head small,.admin-last-login{color:var(--muted);font-size:11px}
.admin-status{padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.admin-status.active{color:#9ef0ca;border:1px solid rgba(56,217,150,.28);background:rgba(56,217,150,.08)}
.admin-status.inactive{color:#ffabb7;border:1px solid rgba(255,93,115,.3);background:rgba(255,93,115,.08)}
.admin-user-settings{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:end;margin-bottom:14px}
.admin-active-toggle{display:flex!important;align-items:center;gap:8px!important;padding:10px 0}.admin-active-toggle input{accent-color:var(--accent)}
.admin-password-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;padding-top:14px;border-top:1px solid rgba(255,255,255,.05)}
.admin-last-login{margin-top:12px}.admin-last-login strong{color:#c7d6e4}
.admin-notice{padding:12px 14px;border-radius:9px}.admin-notice-error{color:#ffabb7;border:1px solid rgba(255,93,115,.3);background:rgba(255,93,115,.08)}.admin-notice-success{color:#9ef0ca;border:1px solid rgba(56,217,150,.28);background:rgba(56,217,150,.08)}
@media(max-width:1000px){.admin-create-form{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-create-form button{grid-column:1/-1}.admin-users-list{grid-template-columns:1fr}}
@media(max-width:640px){.admin-create-form,.admin-user-settings,.admin-password-form{grid-template-columns:1fr}.admin-create-form button{grid-column:auto}}


/* Administration – kompaktere Darstellung */
.admin-shell{
    width:min(100%,1050px);
}

.admin-create-panel,
.admin-users-panel{
    padding:20px;
}

.admin-create-panel .panel-header,
.admin-users-panel .panel-header{
    margin-bottom:14px;
}

.admin-create-form{
    grid-template-columns:minmax(180px,1.2fr) minmax(140px,.7fr) minmax(180px,1fr) auto;
    gap:10px;
}

.admin-create-form .primary-button{
    min-height:42px;
    padding:10px 16px;
    white-space:nowrap;
}

.admin-users-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.admin-user-card{
    padding:14px;
}

.admin-user-head{
    margin-bottom:12px;
}

.admin-user-settings{
    grid-template-columns:minmax(150px,1fr) auto auto;
    gap:8px;
    margin-bottom:10px;
}

.admin-password-form{
    grid-template-columns:minmax(180px,1fr) auto;
    gap:8px;
    padding-top:10px;
}

.admin-user-settings .secondary-button,
.admin-password-form .secondary-button{
    padding:10px 13px;
    white-space:nowrap;
}

.admin-last-login{
    margin-top:9px;
}

@media(max-width:900px){
    .admin-create-form{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .admin-create-form .primary-button{
        grid-column:1/-1;
    }

    .admin-users-list{
        grid-template-columns:1fr;
    }
}

@media(max-width:560px){
    .admin-create-form,
    .admin-user-settings,
    .admin-password-form{
        grid-template-columns:1fr;
    }

    .admin-create-form .primary-button{
        grid-column:auto;
    }
}


/* Administration – Benutzer löschen */
.admin-delete-form{
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.05);
}

.admin-delete-button{
    border:1px solid rgba(255,93,115,.34);
    border-radius:7px;
    padding:9px 12px;
    background:rgba(255,93,115,.07);
    color:#ff9aaa;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    cursor:pointer;
}

.admin-delete-button:hover{
    border-color:rgba(255,93,115,.62);
    background:rgba(255,93,115,.13);
    color:#ffc0c8;
}


/* Administration – E-Mail und Einladungen */
.admin-create-form{grid-template-columns:minmax(160px,1fr) minmax(210px,1.2fr) minmax(130px,.65fr) minmax(170px,1fr) auto}
.admin-create-actions{display:flex;gap:8px;align-items:end}
.admin-create-actions button{white-space:nowrap;min-height:42px}
.admin-user-settings{grid-template-columns:minmax(210px,1.25fr) minmax(130px,.7fr) auto auto}
.admin-user-settings input[type="email"]{width:100%;min-width:0;box-sizing:border-box;padding:10px 11px;border:1px solid rgba(116,202,255,.18);border-radius:7px;background:rgba(2,8,18,.76);color:#e6eef7;outline:none}
.admin-invite-form{display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.05)}
.admin-invite-form span{color:var(--muted);font-size:11px}
.admin-invite-form .secondary-button{white-space:nowrap}
@media(max-width:1100px){.admin-create-form{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-create-actions{grid-column:1/-1}.admin-user-settings{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.admin-create-form,.admin-user-settings{grid-template-columns:1fr}.admin-create-actions{grid-column:auto;flex-direction:column;align-items:stretch}.admin-invite-form{align-items:stretch;flex-direction:column}}


/* Administration – Benutzer untereinander, mehr Abstand */
.admin-users-list{
    display:grid;
    grid-template-columns:1fr !important;
    gap:18px;
}

.admin-user-card{
    width:100%;
    box-sizing:border-box;
    display:grid;
    grid-template-columns:minmax(180px,.75fr) minmax(420px,1.45fr) minmax(320px,1fr);
    grid-template-areas:
        "head settings password"
        "last settings invite"
        "delete settings invite";
    gap:10px 20px;
    align-items:start;
    padding:18px 20px;
}

.admin-user-head{
    grid-area:head;
    margin:0;
}

.admin-user-settings{
    grid-area:settings;
    margin:0;
}

.admin-password-form{
    grid-area:password;
    margin:0;
    padding:0;
    border-top:0;
}

.admin-invite-form{
    grid-area:invite;
    margin:0;
    padding-top:10px;
}

.admin-delete-form{
    grid-area:delete;
    margin:0;
    padding-top:10px;
}

.admin-last-login{
    grid-area:last;
    margin:0;
}

@media(max-width:1050px){
    .admin-user-card{
        grid-template-columns:1fr 1fr;
        grid-template-areas:
            "head head"
            "settings password"
            "settings invite"
            "last delete";
    }
}

@media(max-width:720px){
    .admin-user-card{
        grid-template-columns:1fr;
        grid-template-areas:
            "head"
            "settings"
            "password"
            "invite"
            "delete"
            "last";
    }

    .admin-user-settings,
    .admin-password-form{
        grid-template-columns:1fr;
    }
}

/* Trading Assistent Downloads */
.download-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
    cursor: default;
}

.download-button {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgba(117, 190, 255, 0.34);
    border-radius: 8px;
    background: linear-gradient(135deg, #1f6feb, #164a8d);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.download-button:hover {
    color: #ffffff;
}


@media (max-width: 640px) {
    .hero-overlay {
        padding: 0 24px;
    }

    .hero-content {
        padding-bottom: 52px;
    }

    .hero-brand {
        font-size: 29px;
        gap: 0.22em;
        letter-spacing: 0.05em;
    }

    .hero-tagline {
        margin-top: 15px;
        gap: 7px;
        font-size: 9px;
        letter-spacing: 0.15em;
    }

    .hero-breadcrumb {
        bottom: 18px;
        gap: 8px;
    }
}


/* Navigations-Dropdowns */
.top-nav-dropdown,
.section-subnav-dropdown {
    position: relative;
}

.top-nav-dropdown-menu,
.section-subnav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: none;
    min-width: 210px;
    padding: 6px;
    border: 1px solid rgba(116, 202, 255, 0.2);
    border-radius: 8px;
    background: rgba(6, 14, 22, 0.98);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.top-nav-dropdown:hover .top-nav-dropdown-menu,
.top-nav-dropdown:focus-within .top-nav-dropdown-menu,
.section-subnav-dropdown:hover .section-subnav-dropdown-menu,
.section-subnav-dropdown:focus-within .section-subnav-dropdown-menu {
    display: block;
}

.top-nav-dropdown-menu a,
.section-subnav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #9fb3c7;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.top-nav-dropdown-menu a:hover,
.section-subnav-dropdown-menu a:hover,
.section-subnav-dropdown-menu a.active {
    color: #fff;
    background: rgba(45, 140, 255, 0.14);
}

.section-subnav-icon {
    min-width: 40px;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Globale Darstellungsdichte
   Browser 100 % soll optisch etwa der bisherigen 75-%-Ansicht entsprechen.
   Zentral gesetzt, damit auch seitenbezogene Stylesheets mitskaliert werden.
   -------------------------------------------------------------------------- */
@media (min-width: 1051px) {
    body {
        zoom: 0.75;
    }
}


/* Goldsignal: zentrales, auf allen Unterseiten identisches Bereichsmenü */
.goldsignal-global-subnav {
    width: 100%;
    padding: 18px 24px 0;
    box-sizing: border-box;
}

.goldsignal-global-subnav .section-subnav {
    width: min(100%, 1400px);
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.goldsignal-global-subnav .section-subnav-link {
    flex: 0 0 auto;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    text-transform: none;
    letter-spacing: 0.05em;
}

.goldsignal-global-subnav .section-subnav-action {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    color: #9fb3c7;
}

.goldsignal-global-subnav .section-subnav-action:hover {
    color: #fff;
}

@media (max-width: 720px) {
    .goldsignal-global-subnav {
        padding-left: 12px;
        padding-right: 12px;
    }
}
