/* ==========================================================================
   Zauberbaum – Unterseiten (Spielecke, Kontakt)
   Gemeinsame Basis: Tokens, Typografie, Hero, Buttons, Karten, Reveal
   Navigation & Footer-Styles bleiben in den Seiten selbst.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --primary: #7fc099;
    --primary-light: #a8d9bc;
    --primary-dark: #5a9a75;
    --coral: #ff8a7a;
    --yellow: #ffd26a;
    --purple: #c4a8ff;
    --blue: #7ac7ff;
    --pink: #ffb3d9;
    --cream: #fff9f0;
    --dark: #2d3436;

    --text: hsl(200 8% 20%);
    --text-muted: hsl(200 6% 40%);
    --surface: hsl(0 0% 100%);
    --surface-tint: hsl(36 100% 97%);
    --surface-green: hsl(146 40% 95%);
    --border: hsl(30 25% 90%);
    --accent: hsl(146 32% 38%);

    --radius-s: 12px;
    --radius-m: 20px;
    --radius-l: 28px;
    --shadow-s: 0 1px 2px hsl(30 20% 20% / 0.05), 0 4px 12px hsl(30 20% 20% / 0.05);
    --shadow-m: 0 2px 4px hsl(30 20% 20% / 0.04), 0 16px 40px hsl(30 20% 20% / 0.08);

    --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
}

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

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

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; line-height: 1.15; letter-spacing: -0.02em; }

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1100px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

.section { padding-block: var(--space-9); position: relative; }
.section--tint { background: var(--surface-tint); }
.section--green { background: var(--surface-green); }
.section--white { background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
    padding: clamp(120px, 16vw, 168px) 24px clamp(56px, 8vw, 88px);
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, hsl(146 45% 94%) 0%, hsl(36 100% 96%) 70%, var(--cream) 100%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--pink); top: -140px; right: -80px; }
.hero::after { width: 340px; height: 340px; background: var(--blue); bottom: -120px; left: -80px; }

.hero-content { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-s);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: var(--space-4);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, hsl(330 80% 72%), hsl(260 75% 72%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 58ch;
    margin: 0 auto var(--space-6);
    line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

.fact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-7);
}

.fact {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: hsl(0 0% 100% / 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 28px;
    border-radius: 999px;
    font-family: 'Baloo 2', cursive;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 20px hsl(146 32% 38% / 0.28);
}
.btn-primary:hover { background: hsl(146 32% 33%); box-shadow: 0 10px 28px hsl(146 32% 38% / 0.34); }

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary-dark); }

.btn-block { width: 100%; }

/* ---------- Section Header ---------- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--surface-green);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: var(--space-3);
}

.section-header h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Karten ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-s);
    padding: var(--space-6);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }

/* ---------- Reveal ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { transform: none; transition: opacity 0.3s ease; }
    .btn, .btn:hover, .btn:active, .card, .card--lift:hover { transition: none; transform: none; }
}

@media (max-width: 640px) {
    .section { padding-block: var(--space-8); }
}
