/* ============================================================
   Schwimmschule Wally – Stylesheet
   Wal- & Wasser-Thema, kinderfreundlich, responsiv
   ============================================================ */

:root {
    --primary: #0a6fb5;      /* Wal-Blau */
    --primary-dark: #075a95;
    --secondary: #16c0c0;    /* Türkis */
    --accent: #ffb703;       /* Sonne */
    --accent-dark: #f48c06;
    --ink: #173a56;          /* Textblau */
    --ink-soft: #4a6070;
    --bg: #f4fbfe;
    --bg-soft: #e6f6fd;
    --white: #ffffff;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 10px 30px rgba(10, 111, 181, 0.12);
    --shadow-lg: 0 20px 50px rgba(10, 111, 181, 0.18);
    --maxw: 1180px;
    --font: 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
}

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .12em;
    font-size: .8rem; font-weight: 700; color: var(--secondary); margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    background: var(--accent); color: var(--ink); font-weight: 700;
    padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
    font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 8px 20px rgba(255, 183, 3, .35); text-decoration: none;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dark); text-decoration: none; box-shadow: 0 12px 26px rgba(244, 140, 6, .4); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(10, 111, 181, .35); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(7, 90, 149, .4); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; box-shadow: none; border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-lg { padding: 17px 36px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    box-shadow: 0 2px 18px rgba(10, 111, 181, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: auto; height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.brand-slogan { font-size: .78rem; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { color: var(--ink); font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.main-nav a:hover { text-decoration: none; background: var(--bg-soft); }
.main-nav a.is-active { color: var(--primary); background: var(--bg-soft); }
.btn-nav { background: var(--accent); color: var(--ink) !important; padding: 9px 20px !important; box-shadow: 0 6px 14px rgba(255,183,3,.35); }
.btn-nav:hover { background: var(--accent-dark); }
.nav-login { font-size: .9rem; color: var(--ink-soft) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; padding: 90px 0 140px;
    background: linear-gradient(160deg, #2a9fd6 0%, #0a6fb5 55%, #075a95 100%);
    color: #fff;
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-text p { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 46ch; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18);
    padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-figure { position: relative; text-align: center; }
.hero-figure .wally-big {
    width: min(420px, 90%); margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25));
    animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
.hero-bubbles span {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.22);
    animation: rise 7s linear infinite;
}
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0 } 20% { opacity: 1 } 100% { transform: translateY(-260px) scale(1.1); opacity: 0 } }

/* Wellen-Trenner unten am Hero */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Stat-Leiste ---------- */
.stats { background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 2.2rem; color: var(--primary); font-weight: 800; }
.stat span { color: var(--ink-soft); font-weight: 600; }

/* ---------- Karten-Raster ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease; border: 1px solid #eaf4fb;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
    font-size: 2rem; background: var(--bg-soft); margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card .age { display: inline-block; background: var(--secondary); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--primary); }
.card-link::after { content: " →"; }

/* Standort-Karte */
.loc-card { position: relative; overflow: hidden; }
.loc-card .loc-top {
    height: 130px; margin: -30px -30px 20px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; font-size: 3rem;
}
.loc-card .loc-meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: 4px; }
.loc-card .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tag { background: var(--bg-soft); color: var(--primary); font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* ---------- Ablauf / Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 20px; text-align: center; }
.step .step-num {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 1.4rem; font-weight: 800;
    display: grid; place-items: center; box-shadow: var(--shadow);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- CTA-Band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff; border-radius: var(--radius-lg); padding: 54px; text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid #eaf4fb; }
.faq-item summary {
    cursor: pointer; padding: 20px 24px; font-weight: 700; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--secondary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); border: 1px solid #eaf4fb; }
.quote-card .stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 10px; }
.quote-card p { font-style: italic; color: var(--ink); }
.quote-card .who { font-weight: 700; color: var(--primary); font-style: normal; margin-top: 12px; }

/* ---------- Formular ---------- */
.form-wrap { max-width: 760px; margin: 0 auto; background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border: 2px solid #dcecf6; border-radius: 12px;
    font-family: inherit; font-size: 1rem; background: #fbfdff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--secondary); background: #fff; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.form-note { font-size: .9rem; color: var(--ink-soft); }
.required { color: #e5484d; }

.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 22px; font-weight: 600; }
.alert-success { background: #e4f8ee; color: #0a7d47; border: 1px solid #b6e8cf; }
.alert-error { background: #fdeaea; color: #c62828; border: 1px solid #f6c9c9; }

/* ---------- Seiten-Header (Unterseiten) ---------- */
.page-hero {
    background: linear-gradient(160deg, #2a9fd6, #0a6fb5); color: #fff; text-align: center;
    padding: 70px 0 90px; position: relative;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 60ch; margin: 0 auto; font-size: 1.15rem; }
.page-hero .hero-wave { bottom: -1px; }
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.breadcrumb a { color: #fff; }

/* ---------- Info-Box / Detail ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.info-box { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.info-box ul { list-style: none; padding: 0; margin: 0; }
.info-box li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid #eef6fb; }
.info-box li:last-child { border-bottom: none; }
.info-box li::before { content: "🌊"; position: absolute; left: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe0ec; position: relative; margin-top: 40px; }
.wave-top { height: 40px; background: var(--bg); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 56px 22px 30px; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cfe0ec; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-about { color: #9fb8c9; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-size: .9rem; color: #9fb8c9; flex-wrap: wrap; gap: 10px; }
.footer-legal a { color: #9fb8c9; margin-left: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero-figure { order: -1; }
    .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; padding: 16px 22px 24px; gap: 4px; box-shadow: var(--shadow-lg);
        transform: translateY(-140%); transition: transform .25s ease; z-index: 40;
    }
    body.nav-open .main-nav { transform: translateY(0); }
    .main-nav a { padding: 12px 14px; }
}
@media (max-width: 560px) {
    section { padding: 54px 0; }
    .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
    .cta-band, .form-wrap, .info-box { padding: 30px 22px; }
    .brand-slogan { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}
