/* ---------------------------------- */
/* DESIGN-SYSTEM: "Wealth Horizon"    */
/* ---------------------------------- */

/* ----- VARIABLES ----- */
:root {
    /* Color Palette */
    --primary: #1e40af;
    --secondary: #16a34a;
    --accent: #eab308;
    --background: #f8fafc;
    --surface: #ffffff;
    --card: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --success: #22c55e;
    --danger: #dc2626;
    --gradient-hero: linear-gradient(160deg, #1e3a5f 0%, #1e40af 50%, #16a34a 100%);
    --white: #ffffff;
    --dark-footer: #0f172a;

    /* Typography */
    --font-headings: 'Sora', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    /* UI Elements */
    --box-shadow: 0 2px 16px rgba(30, 64, 175, 0.08);
    --border-radius-card: 12px;
    --border-radius-btn: 8px;
}

/* ----- BASE & TYPOGRAPHY ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem; /* 17px */
    line-height: 1.75;
    color: var(--text);
    background-color: var(--surface);
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; line-height: 1.2; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.375rem; line-height: 1.3; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--secondary); }
ul { list-style: none; }

/* ----- LAYOUT ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--background);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    h1 { font-size: 3.25rem; }
    h2 { font-size: 2.25rem; }
    .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-headings);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text);
}
.btn-primary:hover {
    background-color: #d99f07;
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ----- HEADER ----- */
#header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
    transition: box-shadow 0.3s ease;
}

#header.scrolled {
    box-shadow: var(--box-shadow);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
}
.logo-icon { color: var(--primary); margin-right: 0.5rem; }
.logo:hover { color: var(--primary); }

#nav-menu ul {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-weight: 500;
    color: var(--text);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--primary);
}

#mobile-menu-toggle { display: none; }

@media (max-width: 992px) {
    .btn-cta { display: none; }
}

@media (max-width: 768px) {
    #nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--surface);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        padding: 2rem;
    }
    #nav-menu.active { right: 0; }
    #nav-menu ul { flex-direction: column; gap: 1.5rem; }
    .nav-link { font-size: 1.2rem; }
    #mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text);
    }
}

/* ----- HERO (SECTION 1) ----- */
#hero {
    position: relative;
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-hero);
    opacity: 0.9;
}
.hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
#hero h1 { color: var(--white); }
#hero p { font-size: 1.2rem; max-width: 700px; margin: 1.5rem auto 2.5rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.trust-badges { margin-top: 2rem; display: flex; justify-content: center; gap: 1.5rem; opacity: 0.8; }
.trust-badges span { display: flex; align-items: center; gap: 0.5rem; }
.trust-badges i { font-size: 1.2rem; }

.section-divider {
    background-color: var(--surface);
    line-height: 0;
}
.section-divider svg {
    width: 100%;
    height: 80px;
    fill: var(--background);
}
#hero + .section-divider svg { fill: var(--surface); }

/* ----- STATS (SECTION 2) ----- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--card);
    border-radius: var(--border-radius-card);
}
.stat-value {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-feature-settings: "tnum";
}
.stat-value i {
    font-size: 1.8rem;
    color: var(--secondary);
}
.stat-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}
.text-columns {
    column-count: 1;
    column-gap: 3rem;
}
@media (min-width: 768px) {
    .text-columns { column-count: 2; }
}

/* ----- CARDS (SECTIONS 3, 8) ----- */
.info-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30,64,175,0.12);
}
.info-card h3 { color: var(--primary); }
.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: block;
}
.info-card p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ----- TABLES (SECTIONS 4, 12) ----- */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow);
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
thead {
    background-color: var(--card);
}
th {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: var(--background); }
.disclaimer {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* ----- SPARPLAN RECHNER (SECTION 5) ----- */
#rechner .grid-2 {
    background-color: var(--surface);
    padding: 3rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow);
}
.rechner-controls .form-group {
    margin-bottom: 1.5rem;
}
.rechner-controls label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.rechner-controls input[type="range"] {
    width: 100%;
    accent-color: var(--secondary);
}
.rechner-controls span {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--primary);
    float: right;
}
.rechner-result {
    text-align: center;
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.result-summary p { margin-bottom: 0; color: var(--muted); }
.result-summary h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.chart {
    display: flex;
    height: 150px;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 1.5rem;
}
.chart .bar {
    width: 50%;
    background-color: var(--primary);
    transition: height 0.5s ease-out;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 0.5rem;
}
.chart #gained-bar { background-color: var(--secondary); }
.chart .label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    bottom: 10px;
    opacity: 0;
    transition: opacity 0.5s;
}
.bar:hover .label { opacity: 1; }
.result-details p { margin-bottom: 0.25rem; }
.result-details strong { font-family: var(--font-headings); }
.example { font-style: italic; color: var(--muted); margin-top: 1rem; }

/* ----- STEPPER (SECTION 6) ----- */
.stepper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: 2px;
    background-color: #cbd5e1;
    z-index: -1;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.step-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: grid;
    place-items: center;
    font-family: var(--font-headings);
    font-weight: 700;
    border: 4px solid var(--surface);
}
.step-content p { color: var(--muted); margin-bottom: 0; }

/* ----- WARNING CARDS (SECTION 7) ----- */
.warning-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--danger);
}
.warning-card h4 { color: var(--danger); }

/* ----- PROGRESS BARS (SECTION 9) ----- */
.comparison-chart { padding-top: 1rem; }
.comparison-chart h4 { text-align: center; margin-bottom: 1.5rem; }
.progress-bar-group { margin-bottom: 1.5rem; }
.progress-bar-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.progress-bar {
    width: 100%;
    height: 30px;
    background-color: var(--card);
    border-radius: var(--border-radius-btn);
    overflow: hidden;
}
.progress {
    height: 100%;
    background-color: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    font-weight: 600;
    font-family: var(--font-headings);
}
.comparison-chart .difference {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--danger);
    margin-top: 1rem;
}

/* ----- CHECKLIST (SECTION 10) ----- */
.checklist {
    padding-left: 0;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.checklist i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 5px;
}
.content-image {
    width: 100%;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow);
    object-fit: cover;
}

/* ----- TESTIMONIALS (SECTION 11) ----- */
.testimonial-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow);
    position: relative;
}
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}
.quote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
cite {
    font-weight: 600;
    color: var(--muted);
    font-style: normal;
}

/* ----- FAQ ACCORDION (SECTION 13) ----- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion details {
    background-color: var(--surface);
    margin-bottom: 1rem;
    border-radius: var(--border-radius-btn);
    border: 1px solid #e2e8f0;
    box-shadow: var(--box-shadow);
}
.accordion summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-headings);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion details[open] summary::after {
    transform: rotate(45deg);
}
.accordion p {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 0;
    color: var(--muted);
}

/* ----- CONTACT (SECTION 14) ----- */
.contact-info ul { padding-left: 0; }
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-info i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 4px;
}
.map-embed {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-btn);
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.form-group-checkbox input { width: auto; }
.form-group-checkbox label { margin-bottom: 0; font-size: 0.9rem; }
.contact-form .btn { width: 100%; }

/* ----- FOOTER (SECTION 15) ----- */
#footer {
    background-color: var(--dark-footer);
    color: #e2e8f0;
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-logo {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-logo:hover { color: var(--white); }
.footer-col h4 {
    color: var(--white);
    font-family: var(--font-headings);
    margin-bottom: 1rem;
}
.footer-col p { font-size: 0.9rem; color: var(--muted); }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
    color: var(--muted);
    font-size: 0.95rem;
}
.footer-col ul a:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ----- COOKIE BANNER ----- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-footer);
    color: var(--white);
    padding: 1rem;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
#cookie-banner.visible {
    transform: translateY(0);
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.cookie-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}
.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
}
.btn-cookie-accept {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
}
.btn-cookie-accept:hover {
    background-color: #1d4ed8;
}
.btn-cookie-reject {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.btn-cookie-reject:hover {
    background-color: var(--white);
    color: var(--dark-footer);
}

/* ----- MOBILE ADJUSTMENTS ----- */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    section { padding: 3rem 0; }
    #hero { padding: 6rem 0; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
}