/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500&display=swap');

/* DESIGN SYSTEM VARIABLES */
:root {
    --primary: #0ea5e9; /* Helles Himmelblau */
    --secondary: #22c55e; /* Leuchtendes Grün */
    --accent: #f59e0b; /* Warmes Orange */
    --background: #ffffff;
    --surface: #f0f9ff; /* Sehr helles Blau */
    --card: #ffffff;
    --text: #0c4a6e; /* Dunkelblau */
    --muted: #64748b;

    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --border-radius-lg: 16px;
    --border-radius-pill: 50px;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* 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: 1rem;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--muted); }
p.subtitle { font-size: 1.1rem; color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--text); }

/* LAYOUT & HELPERS */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 60px 0; }
.bg-surface { background-color: var(--surface); }
.centered-content { text-align: center; max-width: 800px; margin: 0 auto; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px auto; }
.section-header p { color: var(--text); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-headings);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-size 0.4s ease;
    background-size: 1% 100%;
}
.btn-primary {
    background-color: var(--accent);
    color: white;
    background-image: linear-gradient(to right, #f97316, var(--accent));
}
.btn-primary:hover {
    background-size: 200% 100%;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-secondary {
    background-color: var(--secondary);
    color: white;
}
.btn.btn-large { font-size: 1.1rem; padding: 16px 40px; }

/* HEADER */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background);
    padding: 15px 0;
    transition: box-shadow 0.3s ease;
}
.main-header.scrolled { box-shadow: var(--shadow-md); }
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; font-family: var(--font-headings); font-weight: 700; font-size: 1.25rem; }
.logo svg { margin-right: 8px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding-bottom: 5px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}
.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.mobile-nav-toggle { display: none; }


/* HERO SECTION */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}
.hero-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-content { flex: 1; }
.hero-image { flex: 1; }
.hero-image img { border-radius: var(--border-radius-lg); }

/* TRUST BAR */
.trust-bar-section { padding: 40px 0; background-color: var(--surface); }
.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.trust-box {
    background-color: var(--card);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.trust-box h3 { font-size: 1.1rem; }
.trust-box p { margin-bottom: 0; font-size: 0.9rem; }

/* CARDS */
.grid-4-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
    background-color: var(--card);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--card-border, var(--primary));
}
.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.card-link {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
    display: inline-block;
}

/* FEATURE SECTIONS (2 cols) */
.grid-2-cols-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.grid-2-cols-feature.reverse .feature-image { order: -1; }
.feature-image img { border-radius: var(--border-radius-lg); }
.simple-table-wrapper {
    margin-top: 20px;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; text-align: left; }
thead { background-color: var(--surface); }
tbody tr:nth-child(even) { background-color: var(--surface); }
th { font-family: var(--font-headings); }

/* PROGRESS BAR */
.progress-bar-container { width: 100%; margin-top: 20px; }
.progress-bar-container span { display: block; margin-bottom: 8px; font-weight: 500; }
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0f2fe;
    border-radius: var(--border-radius-pill);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--secondary);
    border-radius: var(--border-radius-pill);
}

/* INFO CARDS (Section 6) */
.info-card {
    background-color: var(--card);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid #e0f2fe;
}

/* PIE CHART (Section 7) */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}
.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) 0% 50%,
        var(--accent) 50% 80%,
        var(--secondary) 80% 100%
    );
}
.pie-chart-legend {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pie-chart-legend li { display: flex; align-items: center; }
.pie-chart-legend .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
}

/* WARNING BOXES (Section 9) */
.warning-boxes-container { display: flex; flex-direction: column; gap: 15px; }
.warning-box {
    background-color: var(--surface);
    border-left: 5px solid #ef4444;
    padding: 15px 20px;
    border-radius: 8px;
}
.warning-box p { margin-bottom: 0; margin-top: 5px; }

/* LEARNING PATH (Section 10) */
.learning-path {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.path-step { display: flex; align-items: center; flex-direction: column; text-align: center; width: 150px; }
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.step-content h4 { font-size: 1rem; }
.step-content span { font-size: 0.9rem; color: var(--muted); }
.path-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--primary);
    margin-top: 25px;
    min-width: 50px;
}

/* FAQ ACCORDION */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
details {
    background-color: var(--card);
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    padding: 15px 20px;
}
details[open] { border-color: var(--primary); }
details p { padding-top: 15px; border-top: 1px solid #e0f2fe; margin-top: 15px; margin-bottom: 0; }
summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
details[open] summary::after { transform: rotate(45deg); }

/* CONTACT SECTION */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: 40px;
}
.contact-info p { margin-bottom: 1.5rem; }
.map-container { margin-top: 20px; }
.contact-form .form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 5px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group label { margin-bottom: 0; }
.checkbox-group input { width: auto; }

/* FOOTER */
.main-footer {
    background-color: #e0f2fe; /* Hellblau from prompt */
    color: var(--text);
    padding: 60px 0 20px 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { margin-bottom: 15px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--muted); }
.footer-col ul a:hover { color: var(--primary); }
.footer-col-1 .logo { margin-bottom: 15px; }
.footer-col-1 .slogan { font-style: italic; color: var(--muted); }
.footer-col-1 .mission { font-size: 0.9rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
    padding: 10px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    width: 100%;
}
.footer-bottom {
    border-top: 1px solid var(--primary);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}
.footer-bottom .disclaimer { font-style: italic; margin-top: 5px; margin-bottom: 0; }

/* ANIMATIONS */
.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);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .grid-4-cols { grid-template-columns: 1fr 1fr; }
    .grid-2-cols-feature { grid-template-columns: 1fr; }
    .grid-2-cols-feature.reverse .feature-image { order: 1; }
    .hero-layout { flex-direction: column; text-align: center; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-col-1, .footer-col-4 { grid-column: 1 / -1; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .main-nav.active { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 20px; gap: 20px; }
    .main-header .btn { display: none; }
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 25px;
        position: relative;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--text);
        border-radius: 5px;
        transition: transform 0.3s ease, top 0.3s ease;
    }
    .hamburger { top: 11px; }
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }
    .mobile-nav-toggle.active .hamburger { background-color: transparent; }
    .mobile-nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .mobile-nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

    .trust-bar-grid { grid-template-columns: 1fr 1fr; }
    .grid-3-cols { grid-template-columns: 1fr; }
    .learning-path { flex-direction: column; align-items: center; }
    .path-line { display: none; }
}

@media (max-width: 576px) {
    .grid-4-cols { grid-template-columns: 1fr; }
    .trust-bar-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .pie-chart-container { flex-direction: column; }
}