/* =============================================
   Fahrschule Mariendorf — Shared Design System
   ============================================= */

:root {
    --brand:          #960005;
    --brand-dark:     #6d0004;
    --brand-light:    rgba(150,0,5,0.08);
    --brand-glow:     rgba(150,0,5,0.28);

    --bg:             #f5f4f2;
    --surface:        #ffffff;
    --surface-2:      #fafaf9;
    --text-primary:   #111827;
    --text-secondary: #6b7280;
    --text-muted:     #9ca3af;
    --border:         #e5e7eb;

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-full: 9999px;

    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:    0 20px 50px rgba(0,0,0,0.14);
    --shadow-brand: 0 8px 24px rgba(150,0,5,0.25);

    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.22s;
}

/* ——— Reset ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ——— Header ——— */
header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header .logo img { height: 48px; display: block; }

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header .menu {
    list-style: none;
    display: flex;
    gap: 4px;
    justify-content: center;
    flex: 1;
    margin: 0; padding: 0;
}

header .menu li { margin: 0; }

header .menu a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
    display: block;
}

header .menu a:hover { background: var(--brand-light); color: var(--brand); }

header .menu a.active {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}

header .social-icons {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0; padding: 0;
}

header .social-icons li { margin: 0; }

header .social-icons img {
    height: 28px; width: 28px;
    border-radius: var(--radius-sm);
    display: block;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

header .social-icons img:hover { transform: scale(1.12); opacity: 0.85; }

/* ——— Burger ——— */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease);
}

.burger-menu:hover { background: var(--brand-light); }

.burger-menu span {
    height: 2px; width: 22px;
    background: var(--brand);
    border-radius: 2px; display: block;
    transition: all var(--duration) var(--ease);
}

#navbar { display: flex; align-items: center; width: 100%; }

#navbar.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--brand-light);
    padding: 16px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
}

/* ——— Footer ——— */
footer {
    background: #111827;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: rgba(200,80,85,0.85);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

footer a:hover { color: #fca5a5; }

/* ——— Buttons ——— */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px;
    background: var(--brand); color: #fff;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700;
    text-decoration: none; white-space: nowrap; border: none; cursor: pointer;
    box-shadow: var(--shadow-brand);
    transition: background var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 10px 32px rgba(150,0,5,0.38);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.8);
}

.btn-app {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: var(--brand); color: #fff;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 4px 20px rgba(150,0,5,0.4);
    transition: background var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.btn-app:hover {
    background: var(--brand-dark);
    box-shadow: 0 8px 30px rgba(150,0,5,0.5);
    transform: translateY(-2px);
}

.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: #25d366; color: #fff;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: background var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    box-shadow: 0 8px 28px rgba(37,211,102,0.45);
    transform: translateY(-2px);
}

/* ——— Page Hero (innere Seiten) ——— */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #7a0004 0%, #960005 45%, #b80008 100%);
    padding: 64px 24px 88px;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.page-hero-content {
    position: relative; z-index: 1;
    max-width: 680px; margin: 0 auto;
}

.page-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.92);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 6px 18px; border-radius: var(--radius-full); margin-bottom: 20px;
}

.page-hero h1 {
    font-family: 'Bona Nova SC', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff; line-height: 1.1; margin-bottom: 12px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.page-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
}

.page-hero-wave {
    position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0;
}

.page-hero-wave svg { width: 100%; height: 60px; }

/* ——— App Banner ——— */
.app-banner {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.app-banner::after {
    content: '';
    position: absolute; top: -50px; right: -50px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(150,0,5,0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.app-banner-icon {
    font-size: 3.4rem; flex-shrink: 0; line-height: 1;
    position: relative; z-index: 1;
}

.app-banner-text { flex: 1; position: relative; z-index: 1; }

.app-banner-text h2 {
    font-family: 'Bona Nova SC', serif;
    font-size: 1.8rem; color: #fff; margin-bottom: 10px;
}

.app-banner-text p {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 6px;
}

.app-url {
    color: #fca5a5; font-weight: 700; font-size: 1rem;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.app-url:hover { color: #fecaca; }

.app-banner-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    flex-shrink: 0; position: relative; z-index: 1;
}

/* ——— Section Label ——— */
.section-label {
    text-align: center; margin-bottom: 44px;
}

.section-label .eyebrow {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 8px;
}

.section-label h2 {
    font-family: 'Bona Nova SC', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--text-primary);
}

/* ——— Mobile ——— */
@media screen and (max-width: 768px) {
    .burger-menu { display: flex; }
    #navbar      { display: none; }
    #navbar.active { align-items: flex-start; }

    header ul.menu { flex-direction: column; gap: 2px; width: 100%; }
    header ul.menu a { padding: 12px 16px; border-radius: var(--radius-md); }
    header ul.social-icons {
        flex-direction: row; justify-content: center;
        gap: 16px; margin-top: 10px; padding-top: 12px;
        border-top: 1px solid var(--border); width: 100%;
    }

    .app-banner {
        flex-direction: column; text-align: center;
        padding: 32px 24px; gap: 20px;
    }
    .app-banner::after { display: none; }
    .app-banner-actions { justify-content: center; }

    .page-hero { padding: 52px 20px 72px; }
}
