/* ═══════════════════════════════════════ */
/* DESIGN-SYSTEM ("Shield & Trust")        */
/* ═══════════════════════════════════════ */

:root {
    /* Farbpalette */
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --secondary: #0891b2;
    --accent: #f97316;
    --background: #faf5ff;
    --surface: #ffffff;
    --card: #f3e8ff;
    --text: #1e1b4b;
    --muted: #a7a2d4;
    --success: #10b981;
    --danger: #ef4444;

    /* Typografie */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing & Radii */
    --border-radius: 12px;
    --card-shadow: 0 8px 24px -10px hsla(262, 83%, 58%, 0.2);
    --pill-radius: 999px;
}

/* ═══════════════════════════════════════ */
/* GRUNDLAGEN & RESET                      */
/* ═══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: 2.625rem; }
h2 { font-size: 1.875rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--primary); }

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

/* ═══════════════════════════════════════ */
/* LAYOUT & KOMPONENTEN                    */
/* ═══════════════════════════════════════ */

/* Header */
.site-header {
    background-color: rgba(250, 245, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.05);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}
.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

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

/* CTA Button */
.cta-button {
    display: inline-block;
    font-family: var(--font-headings);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--pill-radius);
    background: linear-gradient(90deg, var(--accent), #fd9843);
    color: white;
    box-shadow: 0 4px 15px -5px var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -5px var(--accent);
    color: white;
}
.cta-button.primary {
    background: linear-gradient(90deg, var(--primary), #a274f8);
    box-shadow: 0 4px 15px -5px var(--primary);
}
.cta-button.primary:hover {
    box-shadow: 0 6px 20px -5px var(--primary);
}
.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: none;
}
.cta-button.secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* Generic Card Style */
.card-base {
    background-color: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -10px hsla(262, 83%, 58%, 0.3);
}

/* ═══════════════════════════════════════ */
/* SEKTIONEN                               */
/* ═══════════════════════════════════════ */

/* Section 1: Hero */
.hero-section {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}
.hero-content {
    max-width: 750px;
    margin: 0 auto 3rem auto;
}
.hero-content .subtitle {
    font-size: 1.1rem;
    color: #4a4483;
    margin-top: 1.5rem;
}
.hero-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Section 2: Info */
.info-section { background-color: var(--surface); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.stat-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}
.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}
.stat-card p {
    margin-bottom: 0;
    color: var(--text);
    font-weight: 500;
}
.info-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Section 3: Check */
.check-section { background-color: var(--card); }
.intro-text { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; }
.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.checklist-category h4 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.checklist-category ul li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    font-weight: 500;
}
.shield-check {
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-family: 'Outfit', sans-serif;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.prio-green .shield-check { background-color: var(--success); }
.prio-blue .shield-check { background-color: var(--secondary); }
.prio-yellow .shield-check { background-color: var(--accent); }
.prio-red .shield-check { background-color: var(--danger); }

/* Section 4: Types */
.types-section { background-color: var(--surface); }
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.type-card {
    background-color: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
}
.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -10px hsla(262, 83%, 58%, 0.3);
}
.type-card .priority {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--muted);
}
.type-card .stars { color: var(--accent); }

/* Section 5 & 6: Detail */
.detail-section { background-color: var(--card); }
.detail-section.bg-surface { background-color: var(--surface); }
.two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.example-box, .tips-box {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
}
.example-box ul, .tips-box ul { padding-left: 1.5rem; }
.example-box li, .tips-box li {
    list-style: '✓';
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}
.warning-box {
    background-color: #fffbeb;
    color: #b45309;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #fde68a;
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Section 7: Calculator */
.calculator-section { background-color: var(--card); }
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.calculator-form .form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(262, 83%, 58%, 0.2);
}
.checkbox-group { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-group label { margin-bottom: 0; }
input[type="checkbox"] { width: auto; }
.calculator-results { border-left: 1px solid #e5e7eb; padding-left: 3rem; }
.calculator-results ul { list-style: '🛡️'; padding-left: 1.5rem; margin-bottom: 1rem; }
.calculator-results .spar-potenzial {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: var(--pill-radius);
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}
.calculator-results .hinweis { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }


/* Section 8: Savings */
.savings-section { background-color: var(--surface); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.step-card {
    position: relative;
    padding: 2rem;
    background-color: var(--card);
    border-radius: var(--border-radius);
}
.step-number {
    position: absolute;
    top: -1.25rem;
    left: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
}
.savings-tips {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f0fdf4;
    border-color: var(--success);
}
.savings-tips li { list-style: none; }

/* Section 9: KI */
.ki-section { background-color: var(--card); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card { text-align: center; }
.feature-card .feature-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
}

/* Section 10: Errors */
.errors-section { background-color: var(--surface); }
.errors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.error-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--danger);
    box-shadow: var(--card-shadow);
}
.error-card h4 { color: var(--danger); }
.error-card:nth-child(5) { grid-column: 1 / -1; }

/* Section 11: Cancellation */
.cancellation-section { background-color: var(--card); }
pre {
    background-color: #1e1b4b;
    color: #e0e7ff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #d1d5db;
}
thead th {
    background-color: var(--primary);
    color: white;
    font-family: var(--font-headings);
}
tbody tr:nth-child(odd) { background-color: var(--surface); }

/* Section 12: Groups */
.groups-section { background-color: var(--surface); }
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.group-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border-bottom: 4px solid var(--secondary);
}

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

/* Section 14: Contact */
.contact-section { background-color: var(--surface); }
.contact-info address { font-style: normal; margin-bottom: 1rem; }
.map-container { margin-top: 2rem; }
.contact-form button { width: 100%; margin-top: 1rem; }

/* Section 15: Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: #e0e7ff;
    padding-top: 5rem;
    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: 60px;
}
.footer-wave .shape-fill { fill: var(--background); }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a {
    color: var(--muted);
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col a:hover {
    color: white;
    padding-left: 5px;
}
.footer-logo { color: white; margin-bottom: 0.5rem; }
.footer-logo .logo-icon { color: white; }
.footer-logo span { color: white; }
.slogan { color: var(--secondary); font-style: italic; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom .muted { color: var(--muted); }

/* Animation on Scroll */
.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);
}

/* ═══════════════════════════════════════ */
/* RESPONSIVE DESIGN                       */
/* ═══════════════════════════════════════ */
@media (max-width: 992px) {
    .main-nav { display: none; /* For simplicity, hiding on mobile. A JS solution would be needed for a menu toggle */ }
    .stats-grid, .features-grid { grid-template-columns: 1fr; }
    .two-columns, .calculator-grid, .errors-grid { grid-template-columns: 1fr; }
    .calculator-results { border-left: none; padding-left: 0; border-top: 1px solid #e5e7eb; padding-top: 2rem; margin-top: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    section { padding: 3rem 0; }
    .hero-section { padding-top: 4rem; padding-bottom: 4rem; }
    .hero-cta { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}