/* --- BRIGHT LEARNING DESIGN SYSTEM --- */

/* 1. VARIABLES & SETUP */
:root {
    /* Colors */
    --primary: #0891b2;      /* Cyan */
    --secondary: #6366f1;    /* Indigo */
    --accent: #f97316;       /* Orange */
    --background: #f0f9ff;   /* Sehr helles Himmelblau */
    --surface: #ffffff;
    --card: #e0f2fe;         /* Helles Cyan */
    --text: #0c4a6e;         /* Tiefes Ozeanblau */
    --muted: #64748b;

    /* Typography */
    --font-headings: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sizing */
    --h1-size: 2.75rem;
    --h2-size: 1.875rem;
    --h3-size: 1.25rem;
    --body-size: 1rem;
    --line-height: 1.75;
    --border-radius: 12px;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--line-height);
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
table { width: 100%; border-collapse: collapse; }

/* 2. LAYOUT & HELPERS */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}
.section--card-bg {
    background-color: var(--card);
}

.section__title {
    margin-bottom: 1.5rem;
}
.section__intro {
    max-width: 700px;
    margin: -1rem auto 3rem auto;
    color: var(--muted);
    font-size: 1.1rem;
}

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

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.two-columns--vertical-center {
    align-items: center;
}

/* 3. COMPONENTS */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px; /* Pill-shape */
    font-family: var(--font-headings);
    font-weight: 700;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn--primary {
    background-color: var(--accent);
    color: white;
}
.btn--primary:hover {
    background-color: #fb923c;
    color: white;
}

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

.card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 25px -10px rgba(8, 145, 178, 0.2); /* Sanfter blauer Schatten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px -8px rgba(8, 145, 178, 0.3);
}

.info-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 5px solid var(--accent);
    background-color: var(--card);
}
.info-box--tip { border-left-color: #22c55e; } /* Green */
.info-box--warn { border-left-color: #ef4444; } /* Red */

/* 4. HEADER */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(240, 249, 255, 0.8);
    backdrop-filter: blur(10px);
}
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}
.header__logo i { color: var(--accent); }

.header__menu {
    display: flex;
    gap: 2rem;
}
.header__menu a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}
.header__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.header__menu a:hover::after {
    width: 100%;
}

.header__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* 5. SECTIONS */

/* HERO */
.hero {
    background-color: var(--background);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}
.hero::before {
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    top: -100px;
    left: -150px;
}
.hero::after {
    width: 300px;
    height: 300px;
    background-color: var(--secondary);
    bottom: -100px;
    right: -100px;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero__title { margin-bottom: 1.5rem; }
.hero__subtitle {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--muted);
}
.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.hero__image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(8, 145, 178, 0.2);
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.card--stat {
    text-align: center;
    background-color: var(--card);
    padding: 2rem 1.5rem;
}
.stat__number {
    display: block;
    font-size: 3rem;
    font-family: var(--font-headings);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* LEARNING PATH */
.learning-path {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
}
.learning-path::before {
    content: '';
    position: absolute;
    top: 35px; /* Aligns with center of icon */
    left: 5%;
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 0;
    border-radius: 2px;
}
.path-station {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
    z-index: 1;
    border: 2px solid var(--primary);
}
.path-station__icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    margin: -3.5rem auto 1rem auto;
    background-color: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary);
}
.path-station__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.path-station p {
    font-size: 0.9rem;
    color: var(--muted);
    min-height: 50px;
}
.path-station__status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--card);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.section__image {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* BUDGET */
.three-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.card ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}
.card li { margin-bottom: 0.5rem; }
.card__tag {
    display: inline-block;
    font-size: 0.8rem;
    background-color: var(--card);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: var(--primary);
}

.budget-table-wrapper {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}
.budget-table-wrapper h3 { margin-bottom: 1.5rem; }
.budget-table { text-align: left; }
.budget-table th, .budget-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--card);
}
.budget-table th { font-family: var(--font-headings); }
.budget-table tfoot {
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
}

/* DEBT */
.card--comparison {
    padding: 2rem;
    border: 2px solid;
}
.card--good { border-color: #22c55e; }
.card--bad { border-color: #ef4444; }
.card--comparison h3 {
    margin-bottom: 1rem;
}
.card--comparison ul {
    list-style: none;
}
.card--comparison li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.card--good li::before {
    content: '✓';
    color: #22c55e;
    position: absolute;
    left: 0;
    font-weight: 700;
}
.card--bad li::before {
    content: '✗';
    color: #ef4444;
    position: absolute;
    left: 0;
    font-weight: 700;
}
.info-box-wrapper {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    text-align: center;
}
.info-box-wrapper h3 { margin-bottom: 1rem; }

/* INVEST */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.rule-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-top: 5px solid var(--primary);
}
.rule-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.rule-card h3 span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
}

/* KI-TOOLS */
.card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* QUIZ */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}
.quiz-question {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}
.quiz-question__text {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 700;
}
.quiz-question__options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.quiz-question__options button {
    width: 100%;
    padding: 0.75rem;
    text-align: left;
    background-color: var(--card);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
}
.quiz-question__options button:hover {
    border-color: var(--primary);
}
.quiz-question__options button.correct {
    background-color: #dcfce7; /* green */
    border-color: #22c55e;
}
.quiz-question__options button.incorrect {
    background-color: #fee2e2; /* red */
    border-color: #ef4444;
}
.quiz-result-box {
    background-color: var(--secondary);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}
.quiz-result-box p {
    font-size: 1.25rem;
}
.quiz-result-box button {
    margin-top: 1rem;
    background-color: var(--surface);
    color: var(--secondary);
}

/* RESOURCES */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card--resource {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text);
}
.card--resource h3 {
    margin-bottom: 0.5rem;
}
.card--resource p {
    color: var(--muted);
}

/* TESTIMONIALS */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background-color: var(--surface);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    overflow: hidden;
}
.testimonial-slide {
    display: none;
}
.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
.testimonial__text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--muted);
}
.testimonial__author {
    font-family: var(--font-headings);
    font-weight: 700;
}
.testimonial__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 2rem);
    left: 1rem;
    display: flex;
    justify-content: space-between;
}
.testimonial__nav-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.testimonial__nav-btn:hover {
    background-color: var(--accent);
}

/* NEWSLETTER & COMMUNITY */
.newsletter-box {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem 0;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.community-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--surface);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--primary);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem;
    text-align: left;
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 1.25rem 1.25rem 1.25rem;
}


/* CONTACT */
.map-container {
    margin-top: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.contact-form-wrapper {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: var(--font-body);
}
.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-group--checkbox input {
    width: auto;
}
.form-group--checkbox label {
    margin-bottom: 0;
}

/* 6. FOOTER */
.footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 6rem 0 2rem 0;
    position: relative;
}
.footer__wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.footer__wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}
.footer__wave .shape-fill {
    fill: var(--background);
}
.footer a {
    color: #e0f2fe;
}
.footer a:hover {
    color: var(--surface);
    text-decoration: underline;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer__col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer__col ul li {
    margin-bottom: 0.5rem;
}
.header__logo--footer {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer__slogan {
    font-family: var(--font-headings);
    margin-bottom: 1rem;
}
.footer__bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 7. ANIMATIONS & RESPONSIVENESS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 4rem 0; }
    .two-columns { grid-template-columns: 1fr; }
    .two-columns--vertical-center > div:last-child {
        margin-top: 2rem;
    }
    .learning-path {
        flex-direction: column;
        gap: 2rem;
        padding-top: 35px;
    }
    .learning-path::before {
        top: 35px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: calc(100% - 35px);
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .header__menu.active {
        display: flex;
    }
    .header__menu li { width: 100%; text-align: center; }
    .header__toggle { display: block; }
    .header__cta { display: none; }
    .hero { padding: 4rem 0; }
    .stats-grid, .three-cards-grid, .resource-grid, .rules-grid {
        grid-template-columns: 1fr;
    }
    .footer__grid { grid-template-columns: 1fr; }
}