/* ------------------------- */
/* --- DESIGN-SYSTEM --- */
/* ------------------------- */
:root {
    /* Farbpalette */
    --primary: #7c3aed;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --background: #faf5ff;
    --surface: #ffffff;
    --card: #fdf4ff;
    --text: #3b0764;
    --muted: #6b7280;
    --gradient: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);

    /* Typografie */
    --font-headings: 'Space Grotesk', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Radius */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --radius: 16px;
    --shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.15), 0 4px 6px -2px rgba(124, 58, 237, 0.1);
}

/* ------------------------- */
/* --- GLOBALE STILE --- */
/* ------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-position: -10px -10px;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }

p { margin-bottom: var(--spacing-sm); }
a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary); }

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.text-center { text-align: center; }
.section-intro { max-width: 700px; margin: 0 auto var(--spacing-lg); color: var(--muted); }

/* ------------------------- */
/* --- ANIMATIONEN --- */
/* ------------------------- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

/* ------------------------- */
/* --- HEADER & NAV --- */
/* ------------------------- */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
}
.logo:hover { color: var(--primary); }
.logo i { color: var(--primary); }

.nav {
    display: flex;
    gap: var(--spacing-md);
}
.nav__link {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: var(--spacing-xs) 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}
.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* ------------------------- */
/* --- BUTTONS --- */
/* ------------------------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-headings);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    text-align: center;
}
.btn--gradient {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px -5px var(--secondary);
}
.btn--gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px var(--secondary);
}

/* ------------------------- */
/* --- GRID & LAYOUT --- */
/* ------------------------- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}
.grid-2-col--reverse .image-content { order: -1; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* ------------------------- */
/* --- SECTIONS --- */
/* ------------------------- */

/* HERO */
.hero {
    padding: var(--spacing-xl) 0;
    background-color: var(--background);
    overflow: hidden;
}
.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
}
.hero .subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 500px;
    margin-bottom: var(--spacing-lg);
}
.hero__image img {
    box-shadow: var(--shadow);
}

/* STATS */
.stats-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--surface);
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}
.stat-box {
    text-align: center;
}
.stat-box__number {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--primary);
}
.stat-box__label {
    color: var(--muted);
    font-size: 1rem;
}

/* CARDS */
.card {
    background: var(--surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -8px rgba(124, 58, 237, 0.2);
}
.card__icon {
    display: inline-block;
    padding: var(--spacing-sm);
    background: var(--background);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}
.card__icon i {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}
.card.resource-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card.resource-card h3 { margin-top: auto; }

/* TABLE */
.table-container {
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: var(--spacing-lg);
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--background);
}
thead {
    background-color: var(--card);
}
th {
    font-family: var(--font-headings);
    color: var(--text);
}
td strong {
    color: var(--primary);
}
.note { margin-top: var(--spacing-md); color: var(--muted); }

/* HIGHLIGHT BOX */
.highlight-box {
    background: var(--card);
    border-left: 4px solid var(--accent);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) auto 0;
    border-radius: 8px;
    max-width: 800px;
}
.highlight-box p { margin-bottom: 0; }

/* CHECKLIST */
.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.checklist-group h3 { font-size: 1.2rem; }
.checklist-group ul { list-style: none; padding: 0; }
.checklist-group li { margin-bottom: var(--spacing-xs); }

/* STUNDENSATZ RECHNER */
.text-content-wide { max-width: 800px; margin: 0 auto; text-align: center; }
.calculator-visual {
    max-width: 500px;
    margin: var(--spacing-lg) auto 0;
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
}
.calculator-visual h3 { text-align: center; }
.calculator-visual table { width: 100%; }
.calculator-visual td { border: none; padding: var(--spacing-xs) 0; }
.calculator-visual td:last-child { text-align: right; font-weight: 500; }
.calculator-visual .total { font-weight: bold; border-top: 1px solid var(--card); }
.calculator-visual .result { font-size: 1.25rem; }
.calculator-visual .result td { color: var(--primary); font-weight: 700; }

/* FAQ ACCORDION */
.accordion { max-width: 800px; margin: var(--spacing-lg) auto 0; }
.accordion-item {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}
.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header::after {
    content: '−';
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    margin-bottom: 0;
    color: var(--muted);
}
.accordion-item.active .accordion-content {
    max-height: 300px; /* Adjust as needed */
}

/* KONTAKT */
.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}
.contact-info i { color: var(--primary); }
.map-container { margin-top: var(--spacing-lg); border-radius: var(--radius); overflow: hidden; }

.contact-form .form-group { margin-bottom: var(--spacing-md); }
.contact-form label { display: block; font-weight: 500; margin-bottom: var(--spacing-xs); }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--surface);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.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(124, 58, 237, 0.2);
}
.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.form-group--checkbox input { width: auto; }

/* ------------------------- */
/* --- FOOTER --- */
/* ------------------------- */
.footer {
    background: var(--gradient);
    color: white;
    padding: var(--spacing-xl) 0 0;
}
.footer a { color: white; opacity: 0.8; }
.footer a:hover { opacity: 1; }
.footer .logo span { color: white; }
.footer .logo i { color: white; }

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}
.footer__col h4 {
    font-family: var(--font-headings);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: var(--spacing-xs); }
.slogan { opacity: 0.8; margin-top: var(--spacing-sm); }

.newsletter-form {
    display: flex;
    position: relative;
}
.newsletter-form input {
    width: 100%;
    padding: 0.8rem var(--spacing-md);
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding-right: 50px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: var(--primary);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__legal p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0;
}
.social-links { display: flex; gap: var(--spacing-md); }

/* ------------------------- */
/* --- RESPONSIVE --- */
/* ------------------------- */
@media (max-width: 992px) {
    .grid-2-col, .hero__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .grid-2-col--reverse .image-content { order: 0; }
    .hero__text { text-align: center; }
    .hero .subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom-left-radius: var(--radius);
        border-bottom-right-radius: var(--radius);
    }
    .nav.nav--visible { display: flex; }
    .nav-toggle { display: block; }
    .header .btn { display: none; }

    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__col--brand, .footer__col--newsletter { grid-column: 1 / -1; }
    .footer__bottom { flex-direction: column; gap: var(--spacing-md); text-align: center; }
    
    table thead { display: none; }
    table, table tbody, table tr, table td { display: block; width: 100%; }
    table tr { margin-bottom: var(--spacing-md); }
    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    table td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--spacing-md);
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}