/* =====================================================
   F4 SOCIETY - STYLE.CSS
   Struktur bereinigt ohne funktionelle Änderungen.
===================================================== */

:root {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --black-soft: rgba(0,0,0,0.7);

    --topbar-height: 70px;
    --topbar-padding-y: 6px;
    --topbar-logo-size: 58px;
}


/* =====================================================
   GLOBAL
===================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: white;

    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.65)),
        url('f4bg.jpg') center top / cover no-repeat fixed;
}

/* =====================================================
   TOPBAR
===================================================== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: var(--topbar-height);
    padding: var(--topbar-padding-y) 20px;

    background: #000;
    border-bottom: 1px solid var(--gold);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-logo {
    width: min(var(--topbar-logo-size), calc(var(--topbar-height) - (2 * var(--topbar-padding-y))));
    height: min(var(--topbar-logo-size), calc(var(--topbar-height) - (2 * var(--topbar-padding-y))));
    object-fit: contain;
    flex-shrink: 0;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topnav a,
.topnav a:visited {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 14px;
}

.topnav a.btn,
.topnav a.btn:visited {
    color: black;
}

.topnav a:hover {
    color: var(--gold);
}

.topnav a.btn:hover {
    color: black;
}

/* =====================================================
   PAGE WRAPPER
===================================================== */
.page {
    min-height: 100vh;
    padding: 110px 40px 20px;
}

/* =====================================================
   BASIC LANDING / LEGACY BLOCKS
===================================================== */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.features {
    display: flex;
    gap: 20px;
    padding: 30px;
}

/* =====================================================
   MEMBER LAYOUT / DASHBOARD
===================================================== */
.layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;

}

.sidebar {
    width: 200px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content {
    flex: 1;
    padding: 20px;
}


/* =====================================================
   DASHBOARD 2.0
===================================================== */
.dashboard-content {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-sidebar {
    background: rgba(0,0,0,0.34);
    border-right: 1px solid rgba(212,175,55,0.18);
}

.side-link,
.side-link:visited {
    display: block;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.25;
}

.side-link:hover,
.side-link.active {
    color: white;
    background: rgba(212,175,55,0.10);
    border-color: rgba(212,175,55,0.28);
}

.side-link.disabled,
.side-link.disabled:visited {
    color: rgba(255,255,255,0.34);
    pointer-events: none;
}

.side-link.admin-link {
    margin-top: 12px;
    color: var(--gold);
}


.dashboard-layout-clean {
    display: block;
}

.dashboard-content-wide {
    max-width: 1180px;
}

.finance-layout {
    display: flex;
}

.finance-content {
    max-width: 1180px;
}

.finance-head {
    margin-bottom: 22px;
}

.finance-head p {
    color: rgba(255,255,255,0.74);
    line-height: 1.55;
    margin: 10px 0 0;
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

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

.overview-tile:hover {
    transform: none;
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
}

.finance-tile {
    min-height: 260px;
}

.disabled-tile,
.disabled-tile:visited {
    opacity: 0.56;
    pointer-events: none;
}

.finance-note {
    max-width: none;
}

.dashboard-status-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
    line-height: 1.6;
}

.dashboard-status-card h2 {
    margin-top: 8px;
}

.dashboard-kicker {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-welcome h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-tile,
.dashboard-tile:visited {
    min-height: 300px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.dashboard-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
}

.dashboard-tile span,
.dashboard-tile h2,
.dashboard-tile p {
    position: relative;
    z-index: 1;
}

.dashboard-tile span {
    display: block;
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.18em;
    margin-bottom: 30px;
}

.dashboard-tile h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

.dashboard-tile p {
    color: rgba(255,255,255,0.74);
    line-height: 1.55;
    margin: 0;
}

.dashboard-news-card {
    padding: 24px;
    line-height: 1.55;
}

.dashboard-news-card h2 {
    margin: 6px 0 10px;
}

@media (max-width: 1180px) {
    .dashboard-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 18px;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(212,175,55,0.18);
    }

    .side-link,
    .side-link:visited {
        text-align: center;
    }

    .dashboard-main-grid,
    .finance-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-tile {
        min-height: 220px;
    }

    
.dashboard-layout-clean {
    display: block;
}

.dashboard-content-wide {
    max-width: 1180px;
}

.finance-layout {
    display: flex;
}

.finance-content {
    max-width: 1180px;
}

.finance-head {
    margin-bottom: 22px;
}

.finance-head p {
    color: rgba(255,255,255,0.74);
    line-height: 1.55;
    margin: 10px 0 0;
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.finance-tile {
    min-height: 260px;
}

.disabled-tile,
.disabled-tile:visited {
    opacity: 0.56;
    pointer-events: none;
}

.finance-note {
    max-width: none;
}

.dashboard-status-card {
        padding: 22px;
    }
}

/* =====================================================
   CENTERED PAGES: LOGIN / REGISTER / ACCOUNT
===================================================== */
.center {
    min-height: 100vh;
    padding: 90px 20px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* =====================================================
   CARDS
===================================================== */
.card {
    flex: 1;
    background: var(--black-soft);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 20px;
    border-radius: 10px;
}

/* =====================================================
   LOGIN / FORM BOX
===================================================== */
.login-box {
    width: 90%;
    max-width: 400px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 12px;

    border-radius: 5px;
    border: 1px solid rgba(212,175,55,0.3);

    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 16px;
}

.login-box input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* =====================================================
   ACCOUNT PAGE
===================================================== */
.account-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-grid {
    width: 100%;
    max-width: 860px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 24px;
    justify-content: center;
    align-items: stretch;

    margin-bottom: 24px;
}

.account-card {
    width: 100%;
    max-width: 400px;
}

.account-password-card {
    width: 100%;
    max-width: 400px;
}

.account-card p {
    margin: 4px 0;
    line-height: 1.5;
}

.account-card hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(212,175,55,0.25);
    margin: 8px 0;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    padding-right: 45px;
}

.password-field button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .account-card {
        width: 90%;
        max-width: 400px;
    }
}

/* =====================================================
   BUTTONS / NAV BUTTONS / LINKS
===================================================== */
.btn {
    display: inline-block;

    background: var(--gold);
    color: black;

    padding: 10px 15px;
    border: none;
    border-radius: 5px;

    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: var(--gold-dark);
}

.nav-btn {
    min-height: 54px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.account-link,
.account-link:visited {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.account-link:hover {
    color: var(--gold);
}

/* =====================================================
   CANCEL BUTTON
===================================================== */
.cancel-btn {
    background: rgba(255,255,255,0.1);
    color: white;

    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;

    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.cancel-btn:hover {
    background: rgba(255,255,255,0.2);
}


/* =====================================================
   FINANCE FOCUS PAGES: COMPOUND / GLOSSAR
===================================================== */
.finance-focus-page {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
}

.finance-focus-page::before {
    content: "";
    position: fixed;
    inset: var(--topbar-height) 0 0;
    background:
        radial-gradient(circle at center, rgba(212,175,55,0.07), transparent 42%),
        rgba(0,0,0,0.42);
    pointer-events: none;
    z-index: 0;
}

.finance-focus-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.58));
    border: 1px solid rgba(212,175,55,0.18);
    box-shadow: 0 32px 90px rgba(0,0,0,0.72);
}

/* Breiter, einheitlicher Rahmen für die interaktiven Finance-Werkzeuge. */
.finance-tool-page {
    padding-left: 10px;
    padding-right: 10px;
}

.finance-tool-content {
    max-width: none;
    padding: 12px;
}

@media (max-width: 768px) {
    .finance-focus-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .finance-focus-content {
        padding: 18px;
        border-radius: 16px;
    }

    .finance-tool-page {
        padding-left: 6px;
        padding-right: 6px;
    }

    .finance-tool-content {
        padding: 10px;
    }
}

/* =====================================================
   TRADING GLOSSAR
===================================================== */
.glossar-head p {
    margin-bottom: 18px;
}

.glossar-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

#glossarSearch {
    flex: 1;
    min-width: 240px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.3);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 16px;
}

#glossarSearch::placeholder {
    color: rgba(255,255,255,0.55);
}

#glossarCount {
    color: #cfcfcf;
    font-size: 0.95rem;
    white-space: nowrap;
}

.glossar-az {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.glossar-az button {
    background: rgba(212, 175, 55, 0.12);
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
}

.glossar-az button:hover,
.glossar-az button.active {
    background: var(--gold);
    color: black;
}

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

.glossar-card {
    border-left: 3px solid var(--gold);
}

.glossar-card h3 {
    margin-top: 0;
    color: var(--gold);
}

.glossar-card p {
    line-height: 1.55;
}

.glossar-short {
    display: inline-block;
    color: #cfcfcf;
    font-size: 0.85rem;
    font-weight: normal;
    margin-left: 6px;
}

.glossar-empty {
    text-align: center;
    color: #cfcfcf;
}


/* =====================================================
   COMPOUND RECHNER
===================================================== */
.compound-page {
    font-family: 'Palatino Linotype', Palatino, Georgia, serif;
}

.compound-wrap {
    max-width: none;
    margin: 0 auto;
}

.compound-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    padding-bottom: 18px;
    margin-bottom: 28px;
}

.compound-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 34px;
    margin: 0;
    letter-spacing: 0.01em;
}

.compound-header h2 span {
    color: var(--gold);
}

.compound-sub {
    color: #9a9286;
    font-size: 15px;
    margin: 6px 0 0;
}

.compound-badge {
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    background: rgba(212, 175, 55, 0.06);
}

.compound-panel {
    background: linear-gradient(180deg, rgba(20,18,16,0.96), rgba(12,11,10,0.96));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.26);
}

.compound-inputs {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.compound-field label {
    display: block;
    color: #cfc7b7;
    font-size: 13px;
    margin-bottom: 8px;
}

.compound-input-wrap {
    position: relative;
}

.compound-input-wrap input,
.compound-input-wrap select {
    width: 100%;
    background: #0e0c09;
    color: #edeae0;
    border: 1px solid #2a251c;
    border-radius: 12px;
    padding: 13px 46px 13px 13px;
    font: inherit;
    outline: none;
}

.compound-input-wrap select {
    padding-right: 13px;
}

.compound-input-wrap input:focus,
.compound-input-wrap select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
}

.compound-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b6f1f;
    font-size: 12px;
    pointer-events: none;
}

.compound-hint {
    display: block;
    color: #777065;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 7px;
}

.compound-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.compound-card {
    background: #141210;
    border: 1px solid #2a251c;
    border-radius: 18px;
    padding: 18px;
}

.compound-card.compound-accent {
    border-color: rgba(212, 175, 55, 0.45);
    background: radial-gradient(circle at top left, rgba(212,175,55,0.16), #141210 56%);
}

.compound-label {
    color: #9a9286;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.compound-value {
    color: #edeae0;
    font-size: 22px;
    font-weight: 600;
    word-break: break-word;
}

.compound-accent .compound-value {
    color: var(--gold);
}

.compound-chart-box {
    margin-bottom: 18px;
}

.compound-chart-title,
.compound-table-title {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 14px;
}

.compound-chart-container {
    position: relative;
    height: 360px;
}

.compound-chart-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9286;
    text-align: center;
    border: 1px dashed #2a251c;
    border-radius: 12px;
    padding: 20px;
}

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

.compound-export-btn {
    border: none;
    cursor: pointer;
    font: inherit;
}

.compound-table-scroll {
    overflow-x: auto;
}

.compound-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.compound-table th,
.compound-table td {
    border-bottom: 1px solid #2a251c;
    padding: 11px 9px;
    text-align: right;
    color: #d8d1c3;
    font-size: 14px;
}

.compound-table th:first-child,
.compound-table td:first-child {
    text-align: left;
}

.compound-table th {
    color: #9a9286;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.compound-positive {
    color: #9fbf8e !important;
}

.compound-negative {
    color: #c98e8e !important;
}

.compound-footnote {
    color: #777065;
    font-size: 12px;
    line-height: 1.5;
    margin: 18px 0 0;
}

@media (max-width: 1100px) {
    .compound-inputs {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .compound-cards {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .compound-header h2 {
        font-size: 28px;
    }

    .compound-panel {
        padding: 16px;
        border-radius: 14px;
    }

    .compound-inputs,
    .compound-cards {
        grid-template-columns: 1fr;
    }

    .compound-value {
        font-size: 20px;
    }

    .compound-chart-container {
        height: 300px;
    }

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


/* =====================================================
   MESSAGES
===================================================== */
.error-msg {
    color: #ff5c5c;
    text-align: center;
}


/* =====================================================
   FOOTER
===================================================== */
.footer {
    display: flex;
    justify-content: center;
    gap: 25px;

    padding: 20px;
    margin-top: 40px;

    background: rgba(0,0,0,0.85);
    border-top: 1px solid rgba(212,175,55,0.3);

    flex-wrap: wrap;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: var(--gold);
}

/* =====================================================
   LEGAL PAGES
===================================================== */
.legal-page {
    display: flex;
    justify-content: center;
}

.legal-card {
    width: 100%;
    max-width: 900px;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: normal;
}

table th {
    text-align: left;
}

/* =====================================================
   ADMIN QUESTIONNAIRE VIEW
===================================================== */
.admin-answer-block {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212,175,55,0.25);
}

.admin-answer-block p {
    margin: 6px 0;
}

/* =====================================================
   QUESTIONNAIRE FORM
===================================================== */
.questionnaire-box {
    width: 100%;
    max-width: 900px;
}

.question-field {
    margin-bottom: 22px;
}

.question-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.question-field input[type="text"],
.question-field textarea {
    display: block;
    width: 100%;
    padding: 12px;

    border-radius: 5px;
    border: 1px solid rgba(212,175,55,0.3);

    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 16px;
}

.question-field textarea {
    min-height: 110px;
    resize: vertical;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
}

.confirm-label input {
    margin-top: 4px;
}

.form-hint {
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.success-msg {
    color: lightgreen;
    text-align: center;
    font-weight: bold;
}

/* =====================================================
   LANDINGPAGE PREMIUM UPDATE
===================================================== */

.landing-page {
    overflow: hidden;
    padding-top: 70px;
}

.landing-topbar {
    z-index: 1000;
}


.landing-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;

    background:
        radial-gradient(circle at center, rgba(212,175,55,0.16), rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.8) 80%);
}

.hero-content {
    max-width: 950px;
    text-align: center;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 18px;
}

.landing-hero h1 {
    margin: 0;
    font-size: clamp(46px, 8vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-subline {
    max-width: 780px;
    margin: 28px auto 0;
    color: rgba(255,255,255,0.82);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 24px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 5px;
    border: 1px solid rgba(212,175,55,0.45);
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255,255,255,0.06);
}

.btn-secondary:hover {
    background: rgba(212,175,55,0.14);
    color: var(--gold);
}

.section {
    padding: 90px 24px;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading h2,
.about-section h2,
.closing-section h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-heading p {
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.6;
}

.pillar-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pillar-card {
    min-height: 420px;
    padding: 28px;
    border-radius: 18px;
    background: rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.pillar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
}

.pillar-finance::before {
    background: radial-gradient(circle at top right, #d4af37, transparent 45%);
}

.pillar-freedom::before {
    background: radial-gradient(circle at top right, #3da5ff, transparent 45%);
}

.pillar-flow::before {
    background: radial-gradient(circle at top right, #9b5cff, transparent 45%);
}

.pillar-foundation::before {
    background: radial-gradient(circle at top right, #4dff88, transparent 45%);
}

.pillar-number {
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.18em;
    margin-bottom: 32px;
}

.pillar-card h3 {
    margin: 0;
    font-size: 30px;
}

.pillar-card h4 {
    margin: 8px 0 18px;
    color: rgba(255,255,255,0.85);
    font-size: 18px;
}

.pillar-card p {
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
}

.pillar-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.pillar-card li {
    padding: 8px 0;
    color: rgba(255,255,255,0.88);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.motto-line {
    max-width: 1180px;
    margin: 38px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(212,175,55,0.32);
    text-align: center;
    color: var(--gold);
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-section {
    display: flex;
    justify-content: center;
}

.premium-card {
    width: 100%;
    max-width: 980px;
    padding: 56px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(212,175,55,0.12), rgba(255,255,255,0.04)),
        rgba(0,0,0,0.72);
    border: 1px solid rgba(212,175,55,0.32);
    text-align: center;
}

.premium-card p {
    max-width: 760px;
    margin: 22px auto;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.65;
}

.word-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.word-row span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--gold);
    font-weight: bold;
}

.path-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.path-card {
    padding: 28px;
    border-radius: 16px;
    background: rgba(0,0,0,0.62);
    border: 1px solid rgba(255,255,255,0.1);
}

.path-card span {
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 0.15em;
}

.path-card h3 {
    margin: 18px 0 12px;
    font-size: 24px;
}

.path-card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.closing-section {
    padding: 100px 24px;
    text-align: center;
    background:
        linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.78));
}

.closing-section p {
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    margin: 24px 0;
}

/* =====================================================
   TABLET
===================================================== */
@media (max-width: 1050px) {

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

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {

    body {
        background: #000;
        position: relative;
    }

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;

        background:
            linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.80)),
            url('f4bg.jpg') center center / cover no-repeat;
    }

    body > * {
        position: relative;
        z-index: 1;
    }

    .topbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        z-index: 1000;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .topnav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .layout {
        flex-direction: column;
        padding-top: 125px;
    }

    .page {
        padding-top: 145px;
    }

    .center {
        padding-top: 145px;
    }

    .landing-page {
        padding-top: 125px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .features {
        flex-direction: column;
        padding: 20px;
    }

    .sidebar {
        width: 200px;
        align-items: stretch;
    }

    .landing-hero {
        min-height: auto;
        padding: 90px 20px 70px;
    }

    .section {
        padding: 70px 18px;
    }

    .pillar-grid,
    .path-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        min-height: auto;
    }

    .premium-card {
        padding: 34px 22px;
    }

    .motto-line {
        font-size: 16px;
    }
}

/* =====================================================
   FINANCE: STRATEGIEN UND KURSE
===================================================== */
.f4-strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.f4-strategy-card {
    min-height: 290px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 15%, rgba(212,175,55,0.18), transparent 38%),
        rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.f4-strategy-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 22px 56px rgba(0,0,0,0.48);
}

.f4-strategy-number {
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.18em;
}

.f4-strategy-card h2 {
    margin: 0 0 14px;
    font-size: clamp(25px, 2.4vw, 34px);
}

.f4-strategy-card p {
    margin: 0;
    color: rgba(255,255,255,0.76);
    line-height: 1.6;
}

.f4-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.f4-course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.f4-course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 22px 56px rgba(0,0,0,0.48);
}

.f4-course-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #080808;
}

.f4-course-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.f4-course-poster-workstation {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(212,175,55,0.18), transparent 52%),
        #080808;
}

.f4-course-poster-workstation img {
    object-fit: contain;
    object-position: center;
}

.f4-course-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.f4-course-body h2 {
    margin: 4px 0 14px;
    font-size: 26px;
}

.f4-course-description,
.f4-course-time {
    color: rgba(255,255,255,0.76);
    line-height: 1.55;
}

.f4-course-description {
    margin: 0 0 12px;
}

.f4-course-time {
    margin: 0 0 20px;
}

.f4-course-link,
.f4-course-link:visited {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--gold);
    color: #080808;
    font-weight: bold;
    text-decoration: none;
}

.f4-course-link:hover {
    background: var(--gold-dark);
}

.f4-course-link + .f4-course-link {
    margin-top: 8px;
}

@media (max-width: 1100px) {
    .f4-strategy-grid,
    .f4-course-grid {
        grid-template-columns: 1fr;
    }

    .f4-course-card {
        display: grid;
        grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    }

    .f4-course-poster {
        height: 100%;
        min-height: 360px;
        aspect-ratio: auto;
    }
}

@media (max-width: 680px) {
    .f4-course-card {
        display: flex;
    }

    .f4-course-poster {
        min-height: 0;
        aspect-ratio: 3 / 4;
    }

    .f4-strategy-card {
        min-height: 240px;
    }
}

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