/* SwimBossi, Stil „Bilderbuch“. Schriften liegen in /fonts, keine externen Ressourcen. */

@font-face { font-family: "Fredoka"; src: url(../fonts/fredoka-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-latin-wght-normal.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --creme: #FFF6EE;
  --creme-dunkel: #FBEBD9;
  --lagune: #7FD6CE;
  --lagune-hell: #C9F0EC;
  --lagune-text: #17766F;   /* Türkis für Text, ausreichend Kontrast */
  --tief: #1E4D5C;
  --tief-dunkel: #163A46;
  --rosa: #FFB4A2;
  --sonne: #FFD66E;
  --minze: #BDEBC8;
  --flieder: #D5CCFF;
  --seerose: #7CC98B;
  --rot: #B83A26;
  --grau: #4A6F7A;
  --radius: 24px;
  --kopf-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tief);
  background: var(--creme);
}
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: inherit; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--tief); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--kopf-h) + 1rem); }

.wrap { width: min(1100px, 100% - 2rem); margin-inline: auto; }
.mitte { text-align: center; }
.mitte p { margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--sonne); color: var(--tief); padding: .6rem 1rem; font-weight: 800; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; }

.eyebrow {
  display: inline-block; margin-bottom: .9rem; padding: .25rem .85rem; border-radius: 999px;
  background: var(--lagune-hell); color: var(--lagune-text);
  font: 600 .95rem "Fredoka", sans-serif; letter-spacing: .01em;
}

/* Gekritzelte Unterstreichung unter einem Wort */
.krakel { position: relative; white-space: nowrap; }
.krakel svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .35em; pointer-events: none; }

/* --- Knöpfe ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border: 3px solid var(--tief); border-radius: 999px;
  background: var(--tief); color: #fff;
  font: 600 1.1rem "Fredoka", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: scale(1.04) rotate(-1deg); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-hell, .btn-ghost { background: #fff; color: var(--tief); }
.btn-sonne { background: var(--sonne); border-color: var(--tief); color: var(--tief); }
.btn-dark { background: var(--tief); color: #fff; }
.btn-small { padding: .5rem 1.1rem; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* --- Kopfzeile ------------------------------------------------------------------ */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,247,238,.92); backdrop-filter: blur(10px); }
.kopf > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--kopf-h); }
.marke { display: flex; align-items: center; gap: .55rem; font: 600 1.5rem "Fredoka", sans-serif; color: var(--tief); text-decoration: none; }
.marke img { width: 42px; height: 42px; display: block; }
.marke-hell { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: none; gap: 1.5rem; }
.nav-link { font-weight: 800; text-decoration: none; color: var(--tief); }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--rosa); }
.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 3px solid var(--tief); border-radius: 50%; background: #fff; color: var(--tief); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] .i-open, .nav-toggle[aria-expanded="false"] .i-close { display: none; }
.no-js .nav-toggle { display: none; }
.mobile-menu { max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .35s ease, opacity .25s ease, visibility 0s .35s; }
.mobile-menu > .wrap { padding: .5rem 0 1.5rem; }
.mobile-menu.open { max-height: calc(100vh - var(--kopf-h)); overflow-y: auto; opacity: 1; visibility: visible; transition: max-height .35s ease, opacity .25s ease, visibility 0s; }
.mobile-menu a { display: block; padding: .75rem 0; font: 600 1.25rem "Fredoka", sans-serif; text-decoration: none; border-bottom: 2px dashed var(--creme-dunkel); }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu, .mobile-menu.open { display: none; }
}
@media (max-width: 420px) {
  .kopf .marke { font-size: 1.25rem; gap: .4rem; }
  .kopf .marke img { width: 36px; height: 36px; }
  .kopf .nav { gap: .6rem; }
  .kopf .btn-small { padding: .4rem .8rem; font-size: .92rem; }
  .nav-toggle { width: 42px; height: 42px; }
}

/* --- Abschnitte ------------------------------------------------------------------ */
.section { padding: 4.5rem 0; }
@media (min-width: 860px) { .section { padding: 6rem 0; } }
.section-weiss { background: #fff; }
.section-lagune { background: var(--lagune); }
.section-rund { border-radius: 48px 48px 0 0; }
.abschnitt-kopf { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.abschnitt-kopf p { margin-inline: auto; font-size: 1.15rem; }

/* --- Startseite: Hero ------------------------------------------------------------------ */
.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { font-size: 1.25rem; max-width: 42ch; margin: 1.25rem auto 0; }
.hero .knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.chips li { background: #fff; border-radius: 999px; padding: .3rem .9rem; font-weight: 800; font-size: .95rem; }
.teich { position: relative; width: min(560px, 100%); margin: 2.5rem auto 0; aspect-ratio: 16 / 10; }
.teich .form { position: absolute; inset: 0; width: 100%; height: 100%; }
.teich .bossi { position: absolute; left: 50%; top: 46%; width: 42%; transform: translate(-50%, -50%); animation: paddeln 5s ease-in-out infinite; }
.teich .seerose { position: absolute; width: 16%; }
.teich .s1 { left: 8%; top: 18%; transform: rotate(-20deg); }
.teich .s2 { right: 6%; bottom: 14%; transform: rotate(30deg); }
.teich .blase { position: absolute; border: 3px solid #fff; border-radius: 50%; opacity: .9; animation: blubb 4s ease-in-out infinite; }
.teich .x1 { width: 22px; height: 22px; right: 22%; top: 16%; }
.teich .x2 { width: 14px; height: 14px; right: 18%; top: 30%; animation-delay: 1.3s; }
.teich .x3 { width: 18px; height: 18px; left: 20%; bottom: 18%; animation-delay: 2.6s; }
/* Ab Tablet-Breite: Text links, Teich rechts */
@media (min-width: 900px) {
  .hero { text-align: left; padding: 3.5rem 0 2rem; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
  .hero h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); margin-inline: 0; }
  .hero .lead { margin-left: 0; }
  .hero .knoepfe, .hero .chips { justify-content: flex-start; }
  .teich { margin: 0; }
}
@keyframes paddeln { 50% { transform: translate(-48%, -52%) rotate(2deg); } }
@keyframes blubb { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .teich .bossi, .teich .blase { animation: none; } }

/* --- Gruppen (Freitagsblöcke) als Blasen ---------------------------------------- */
.gruppen { display: grid; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
@media (min-width: 620px) { .gruppen { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gruppen { grid-template-columns: repeat(4, 1fr); } }
.gruppe {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.75rem 1.25rem 1.5rem; border-radius: 40px 40px 40px 12px; color: var(--tief);
  transition: transform .2s ease;
}
.gruppe:nth-child(even) { border-radius: 40px 40px 12px 40px; }
.gruppe:hover { transform: translateY(-6px) rotate(1deg); }
.gruppe .ikon { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 1rem; }
.gruppe .ikon svg { width: 52px; height: 52px; }
.gruppe .nr { font: 600 .9rem "Fredoka", sans-serif; opacity: .75; }
.gruppe .zeit { font: 600 1.6rem/1.1 "Fredoka", sans-serif; }
.gruppe .bis { font-weight: 700; font-size: .95rem; opacity: .8; }
.gruppe h3 { font-size: 1.2rem; margin: .6rem 0 .2rem; }
.gruppe .ziel { margin: 0 0 1rem; font-weight: 700; opacity: .85; }
.gruppe .hinweis { margin: 0 0 1rem; font-size: .88rem; font-weight: 700; background: rgba(255,255,255,.75); border-radius: 16px; padding: .35rem .8rem; }
.gruppe .mehr { margin-top: auto; font: 600 1rem "Fredoka", sans-serif; background: #fff; border-radius: 999px; padding: .45rem 1.1rem; text-decoration: none; }
.gruppe .mehr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* ganze Karte klickbar */
.g1 { background: var(--sonne); } .g2 { background: var(--rosa); } .g3 { background: var(--flieder); } .g4 { background: var(--minze); }
@media (prefers-reduced-motion: reduce) { .gruppe, .gruppe:hover { transition: none; transform: none; } }
.gruppen-info { text-align: center; margin: 2rem auto 0; }

/* --- Ablauf ------------------------------------------------------------------ */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: s; }
@media (min-width: 860px) { .schritte { grid-template-columns: repeat(3, 1fr); } }
.schritte li { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem 1.5rem; counter-increment: s; }
.schritte li::before {
  content: counter(s); position: absolute; top: -22px; left: 1.5rem;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sonne); border: 3px solid var(--tief); font: 600 1.4rem "Fredoka", sans-serif;
}
.schritte li:nth-child(2)::before { background: var(--rosa); }
.schritte li:nth-child(3)::before { background: var(--minze); }
.schritte p { margin: 0; }

/* --- Kurs-Inhalt und Ort ---------------------------------------------------------- */
.zwei { display: grid; gap: 2rem; }
@media (min-width: 860px) { .zwei { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.karte { background: #fff; border-radius: var(--radius); padding: 1.75rem; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.liste li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--lagune); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--lagune); }
.fakten { display: grid; gap: .9rem; margin: 0; }
.fakten div { display: grid; gap: .1rem; padding: .9rem 1.1rem; border-radius: 18px; background: var(--creme); }
.fakten dt { font: 600 1rem "Fredoka", sans-serif; color: var(--lagune-text); }
.fakten dd { margin: 0; font-weight: 600; }

/* --- Vertrauen ------------------------------------------------------------------ */
.vertrauen .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .vertrauen .wrap { grid-template-columns: 340px 1fr; } }
.blobbild { width: min(300px, 80vw); aspect-ratio: 1; justify-self: center; overflow: hidden; border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; border: 8px solid #fff; background: #fff; }
.blobbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.punkte { display: grid; gap: .9rem; padding: 0; margin: 1.5rem 0; list-style: none; }
@media (min-width: 620px) { .punkte { grid-template-columns: 1fr 1fr; } }
.punkte li { background: #fff; border-radius: 22px; padding: 1rem 1.2rem; font-weight: 700; }
.punkte li span { display: block; font: 600 1.15rem "Fredoka", sans-serif; color: var(--lagune-text); }

/* Foto mit Bildunterschrift */
.foto { margin: 0; border-radius: 32px; overflow: hidden; background: #fff; border: 6px solid #fff; }
.foto img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 26px; }
.foto figcaption { padding: .9rem 1rem .4rem; font-weight: 700; }

/* --- Formulare ------------------------------------------------------------------ */
.form-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.form-box { background: #fff; border-radius: 32px; padding: 1.75rem; }
@media (min-width: 640px) { .form-box { padding: 2.25rem; } }
.form-contact { margin-top: 1.75rem; padding: 1.25rem 1.4rem; border-radius: 22px; background: rgba(255,255,255,.6); }
.form-contact p { margin: 0 0 .3rem; }
.form-contact a { font-weight: 800; }
.form-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 800; }
.field .hint { font-weight: 600; color: var(--grau); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  border: 3px solid var(--creme-dunkel); border-radius: 16px; background: var(--creme);
  color: var(--tief); font: inherit;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--lagune); background: #fff; }
.field input:user-invalid, .field select:user-invalid { border-color: var(--rosa); }
.field textarea { min-height: 8rem; resize: vertical; }
.field-hinweis { margin: .4rem 0 0; font-size: .95rem; color: var(--grau); font-weight: 600; min-height: 1.5em; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: .5rem 0 1.5rem; }
.consent input { margin-top: .3rem; width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--tief); }
.consent label { max-width: 56ch; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .92rem; color: var(--grau); margin: 1rem 0 0; }
.form-msg { margin: 1rem 0 0; padding: .8rem 1.1rem; border-radius: 16px; background: var(--lagune-hell); font-weight: 700; max-width: none; }
.form-msg.fehler { background: #FFE3DD; color: var(--rot); }
.form-msg.ok { background: #DDF4E2; color: #1D6B27; }
.form-erfolg { background: #fff; border-radius: 32px; padding: 2rem; border: 4px solid var(--minze); }
.form-erfolg:focus { outline: none; }

/* --- Kurskarten (Termine & Buchung, erzeugt von kurse.js) ---------------------- */
.kursliste { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .kursliste { grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); justify-content: center; } }
.kurs-leer { padding: 1.5rem 1.75rem; border-radius: 28px; background: #fff; max-width: none; font-weight: 600; }
.kurs-card {
  display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem;
  background: #fff; border-radius: var(--radius); border: 3px solid var(--creme-dunkel);
}
.kurs-kopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1rem; }
.kurs-kopf h3 { margin: 0; font-size: 1.4rem; }
.kurs-meta { margin: 0; color: var(--grau); font-weight: 700; }
.kurs-text { margin: 0; }
.kurs-fakten { display: grid; gap: .35rem; margin: .25rem 0 0; }
.kurs-fakten div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
.kurs-fakten dt { font: 600 1rem "Fredoka", sans-serif; color: var(--lagune-text); }
.kurs-fakten dd { margin: 0; font-weight: 600; }
.kurs-termine summary { cursor: pointer; font: 600 1rem "Fredoka", sans-serif; color: var(--lagune-text); }
.faq summary, .kurs-termine summary, .zusatz summary { list-style: none; }
.faq summary::-webkit-details-marker, .kurs-termine summary::-webkit-details-marker, .zusatz summary::-webkit-details-marker { display: none; }
/* Kleiner Pfeil statt Standard-Dreieck, dreht sich beim Aufklappen nach unten */
.kurs-termine summary::before, .zusatz summary::before { content: ""; display: inline-block; width: .5em; height: .5em; margin: 0 .55em .1em .1em; border-right: .16em solid currentColor; border-bottom: .16em solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
.kurs-termine[open] summary::before, .zusatz[open] summary::before { transform: rotate(45deg); }
.kurs-termine ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.kurs-fuss { margin-top: auto; padding-top: 1rem; border-top: 2px dashed var(--creme-dunkel); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.kurs-preis { margin: 0; }
.kurs-preis strong { font: 600 1.5rem "Fredoka", sans-serif; }
.badge { display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.badge-frei { background: #DDF4E2; color: #1D6B27; }
.badge-knapp { background: #FFF1C9; color: #7A5500; }
.badge-voll { background: #FFE3DD; color: var(--rot); }
.termin-aus { text-decoration: line-through; color: var(--grau); }
.termin-zusatz { display: inline-block; margin-left: .35rem; font-size: .85em; font-weight: 800; text-decoration: none; color: var(--rot); }
li:not(.termin-aus) > .termin-zusatz { color: #1D6B27; }

.mini-steps { list-style: none; counter-reset: s; display: grid; gap: .75rem; margin: 2rem auto 0; padding: 0; max-width: 900px; }
@media (min-width: 760px) { .mini-steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; background: #fff; border-radius: 22px; padding: .9rem 1.1rem; text-align: left; }
.mini-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sonne); border: 3px solid var(--tief); font: 600 1.1rem "Fredoka", sans-serif; }
.mini-steps li:nth-child(2)::before { background: var(--rosa); }
.mini-steps li:nth-child(3)::before { background: var(--minze); }
.mini-steps span { font-size: .95rem; color: var(--grau); font-weight: 600; }

/* --- Unterseiten ------------------------------------------------------------------ */
.seitenkopf { text-align: center; padding: 2.5rem 0 3rem; }
.seitenkopf h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); max-width: 18ch; margin-inline: auto; }
.seitenkopf .lead { font-size: 1.2rem; max-width: 50ch; margin-inline: auto; }
.page { padding: 2.5rem 0 5rem; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.blatt { background: #fff; border-radius: 36px; padding: 2rem 1.5rem; margin-inline: auto; max-width: 820px; }
@media (min-width: 640px) { .blatt { padding: 3rem 3.5rem; } }
.blatt h1 { font-size: clamp(2rem, 5vw, 3rem); }
.about-top { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .about-top { grid-template-columns: 1.4fr .6fr; } }
.about-top > img { width: min(260px, 70%); justify-self: center; }
.about-layout { display: grid; gap: 3rem; }
@media (min-width: 900px) { .about-layout { grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; } }
.portrait { position: relative; justify-self: center; width: min(320px, 100%); margin: 0; }
.portrait .blobbild { width: 100%; }
.portrait .sticker { position: absolute; right: -6%; bottom: -6%; width: 36%; filter: drop-shadow(0 8px 14px rgba(30,77,92,.25)); }
.benefits { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits h3 { color: var(--lagune-text); }

/* Kooperation: Teaser auf der Startseite */
.teaser { display: grid; gap: 1.5rem; align-items: center; border-radius: 40px; padding: 2rem; background: var(--flieder); }
.teaser h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.teaser p:last-child { margin-bottom: 0; }
@media (min-width: 760px) { .teaser { grid-template-columns: 1fr auto; padding: 2.5rem 3rem; } }

.error-page { text-align: center; }
.error-page img { width: min(240px, 60%); margin-bottom: 1.5rem; }
.error-page p { margin-inline: auto; }

.zahl-form { margin-top: 2rem; }

/* --- Fußzeile ------------------------------------------------------------------ */
.fuss p { margin: 0 0 .4rem; }
.fuss .marke { margin-bottom: .75rem; }
.fuss-links { list-style: none; padding: 0; margin: 0; }
.fuss-links li { margin-bottom: .3rem; }
.fuss a:hover { color: var(--sonne); }

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.todo { background: var(--sonne); padding: 0 .25em; border-radius: 4px; }

/* Ergänzungen für Unterseiten */
.seitenkopf .knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.5rem; }
.seitenkopf-bossi { display: block; width: min(200px, 50%); margin: 2rem auto 0; }
.section-weiss .karte { background: var(--creme); }
.benefits + .foto { margin-top: 2rem; }
.blobbild picture { display: block; height: 100%; }
.section-rund { border-radius: 48px; }

/* Foto vom Hotelbecken im Abschnitt „Wo und wann“ */
.foto-ort { margin-bottom: 1.25rem; }
.foto-ort img { aspect-ratio: 3 / 2; }

/* Wettkampffoto auf „Über mich“ */
.foto-laufbahn { margin: 1.75rem 0 .5rem; }

/* Gruppe von der Startseite: Hinweis und markierte Kurse */
.gruppen-hinweis { margin: 0 auto 1.5rem; max-width: 760px; padding: .9rem 1.2rem; border-radius: 18px; background: #fff; border: 3px dashed var(--lagune); font-weight: 700; text-align: center; }
.kurs-markiert { box-shadow: 0 0 0 4px var(--tief); }

/* Benachrichtigung bei neuen Terminen */
.interesse { background: var(--minze); }
.interesse-form { background: #fff; border-radius: 28px; padding: 1.5rem; min-width: min(100%, 340px); }
.interesse-form .consent { font-size: .95rem; }

/* Preis und Ablauf auf der Startseite */
.preis { display: grid; gap: 1.25rem; align-items: center; max-width: 860px; margin: 0 auto 3.5rem; padding: 2rem 1.5rem; background: #fff; border-radius: 36px; border: 4px solid var(--sonne); }
@media (min-width: 760px) { .preis { grid-template-columns: auto 1fr; gap: 3rem; padding: 2.5rem 3rem; } }
.preis-zahl { margin: 0; text-align: center; }
.preis-zahl strong { display: block; font: 600 clamp(3rem, 8vw, 4.5rem)/1 "Fredoka", sans-serif; }
.preis-zahl span { font-weight: 800; color: var(--grau); }
.preis h3 { color: var(--lagune-text); }
.preis .liste li:last-child { margin-bottom: 0; }

/* Fragen und Antworten */
.faq { display: grid; gap: .9rem; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border-radius: 22px; padding: 0 1.4rem; }
.faq summary { cursor: pointer; padding: 1.1rem 0; font: 600 1.15rem "Fredoka", sans-serif; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* Eigenes Plus rechts statt des Standard-Dreiecks (iOS zeigt es als blaues Abspiel-Symbol links neben der Karte) */
.faq summary::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--lagune-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231E4D5C' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 1.1rem no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--lagune-text); }
.faq details p { margin: 0 0 1.2rem; }

/* Team auf „Über uns“ */
.team-greta { display: grid; gap: 1.25rem; align-items: center; margin-top: 1rem; padding: 1.5rem; border-radius: 28px; background: var(--creme); }
@media (min-width: 560px) { .team-greta { grid-template-columns: 140px 1fr; } }
.team-greta img { display: block; width: 140px; height: 140px; justify-self: center; border-radius: 50%; object-fit: cover; border: 5px solid #fff; }
.team-greta p:last-child { margin-bottom: 0; }


/* Freie Plätze live im Hero */
.plaetze-live { display: inline-flex; align-items: center; gap: .5rem; margin: 1.25rem 0 0; padding: .4rem 1rem; border-radius: 999px; background: #FFF1C9; color: #7A5500; font-weight: 800; }
.plaetze-live::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #E0A100; flex: none; }

/* Reservierung: Auswahl als Knöpfe, Nachricht eingeklappt */
.versprechen { padding: .8rem 1.1rem; border-radius: 18px; background: rgba(255,255,255,.75); font-weight: 800; }
.wahl { border: 0; padding: 0; min-width: 0; }
.wahl legend { padding: 0; margin-bottom: .45rem; font-weight: 800; }
.wahl-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl-knoepfe label { position: relative; margin: 0; font-weight: 700; }
.wahl-knoepfe input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.wahl-knoepfe span { display: inline-block; padding: .6rem 1rem; border: 3px solid var(--creme-dunkel); border-radius: 999px; background: var(--creme); cursor: pointer; }
.wahl-knoepfe input:checked + span { border-color: var(--tief); background: var(--tief); color: #fff; }
.wahl-knoepfe input:focus-visible + span { outline: 3px solid var(--lagune); outline-offset: 2px; }
.zusatz summary { cursor: pointer; font-weight: 800; color: var(--lagune-text); }
.zusatz textarea { margin-top: .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buchungsleiste unten auf dem Handy (main.js blendet sie ein und aus) */
.buch-leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(1rem, env(safe-area-inset-right, 0px)) calc(.75rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background: var(--tief); color: #fff; box-shadow: 0 -6px 20px rgba(30,77,92,.2);
}
.buch-leiste p { margin: 0; font-weight: 700; }
.buch-leiste strong { font: 600 1.3rem "Fredoka", sans-serif; }
@media (min-width: 980px) { .buch-leiste { display: none; } }
[hidden] { display: none !important; }

/* Ruhigerer, einheitlicher Look: ein Kartenradius, keine Zusatzrahmen */
.preis { border: 0; border-radius: var(--radius); }
.schritte li, .karte, .faq details, .punkte li, .kurs-leer { border-radius: var(--radius); }
.form-box { border-radius: 28px; }
.hero .eyebrow { margin-bottom: 1.1rem; }

/* Freie Plätze auf den Gruppenkarten (Platz reserviert, damit nichts springt) */
.gruppe-plaetze { min-height: 1.9rem; margin: auto 0 .9rem; }
.gruppe .gruppe-plaetze + .mehr { margin-top: 0; }
.gruppe .badge { background: #fff; }

/* Übergänge: Seitenwechsel als sanfte Überblendung (Safari 18.2+, Chrome 126+), Kopfzeile bleibt stehen */
@view-transition { navigation: auto; }
.kopf { view-transition-name: kopf; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* Bilder erscheinen weich, sobald sie geladen sind */
main img, .bossi-guckt img { transition: opacity .7s ease, filter .7s ease; }
img.laedt { opacity: 0; filter: blur(8px); }

/* Abschnitte unterhalb des Bildschirms gleiten beim Scrollen herein (main.js setzt die Klassen) */
.einblenden { transition: opacity .8s ease, transform .9s cubic-bezier(.22,1,.36,1); }
.vorher { opacity: 0; transform: translateY(18px); }

/* Buchungsleiste fährt weich rein und raus */
.buch-leiste { transition: transform .3s ease, visibility 0s; }
.buch-leiste.weg { transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  img[loading="lazy"], .einblenden, .buch-leiste { transition: none; }
}

/* ================================================================
   Design v2: ruhige, helle Seite mit großen Bildern
   ================================================================ */
.wrap { width: min(1120px, 100% - 3rem); }
@media (max-width: 480px) { .wrap { width: calc(100% - 2rem); } }

.btn { border-width: 2.5px; font-size: 1.1rem; padding: .9rem 1.75rem; }
.btn:hover { transform: translateY(-2px); }
.btn-hell { background: transparent; }
.team .btn-hell { background: #fff; }
.btn-small { padding: .6rem 1.25rem; font-size: 1rem; }
.btn-gross { padding: 1.05rem 2.2rem; font-size: 1.25rem; }
a:hover { color: #2A9D8F; }
.btn:hover, .btn-hell:hover { color: inherit; }
.btn:not(.btn-hell):not(.btn-sonne):hover { color: #fff; }

/* Kopfzeile */
.kopf > .wrap { min-height: 76px; }
.marke { font-size: 1.45rem; gap: .6rem; }
.marke img { width: 40px; height: 40px; border-radius: 10px; }
.nav { gap: 1.5rem; }
.nav-links { gap: 1.5rem; }
.nav-link { font-weight: 700; }

/* Hero mit großem Titelbild */
.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 900px) { .hero { text-align: center; } .hero .wrap { display: flex; } .hero h1 { margin-inline: auto; } }
.hero-start { display: inline-block; margin: 0 0 1.75rem; padding: .5rem 1rem; border-radius: 999px; background: var(--sonne); font-weight: 800; font-size: .95rem; }
.hero h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); line-height: 1.02; letter-spacing: -.01em; max-width: none; margin: 0; }
.markiert { position: relative; display: inline-block; isolation: isolate; }
.markiert::after { content: ""; position: absolute; left: 4%; right: -2%; bottom: -2px; height: 8px; border-radius: 999px; background: var(--rosa); transform: rotate(-1deg); z-index: -1; }
.hero .lead { font-size: 1.2rem; max-width: 520px; margin: 2rem auto 0; }
.hero .knoepfe { justify-content: center; margin-top: 1.9rem; }
.hero-bild { position: relative; width: 100%; max-width: 1000px; margin: 3rem 0 0; }
.hero-bild > picture > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 36px; background: var(--creme-dunkel); }
.hero-bossi { position: absolute; right: -1rem; bottom: -2.25rem; width: clamp(96px, 16vw, 170px); }
@media (max-width: 620px) { .hero-bild > picture > img { border-radius: 24px; aspect-ratio: 4 / 3; } .hero-bossi { right: -.25rem; bottom: -1.5rem; } }

/* Fakten-Leiste */
.fakten-leiste { padding: 2.5rem 0 0; }
.fakten-leiste dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin: 0; padding: 1.4rem; background: #fff; border-radius: 28px; }
.fakten-leiste dl > div { padding: .5rem .9rem; }
.fakten-leiste dt { font: 600 1.9rem/1.15 "Fredoka", sans-serif; }
.fakten-leiste dd { margin: .15rem 0 0; font-size: .95rem; font-weight: 600; color: var(--grau); }

/* Gruppen */
#gruppen { padding-bottom: 2.5rem; }
.gruppen { gap: 1.4rem; }
@media (min-width: 620px) { .gruppen { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.gruppe, .gruppe:nth-child(even) { border-radius: 32px; padding: 1.75rem 1.25rem 1.5rem; min-height: 340px; gap: .25rem; }
.gruppe:hover { transform: translateY(-4px); }
.gruppe .ikon { width: 80px; height: 80px; margin-bottom: .9rem; color: var(--tief); }
.gruppe .ikon svg { width: 40px; height: 40px; }
.gruppe .zeit { font-size: 1.75rem; }
.gruppe h3 { font-size: 1.2rem; margin: 0; }
.gruppe .ziel { margin: 0; font-weight: 600; color: #2F5E6B; opacity: 1; }
.gruppe-text { margin: .75rem auto 0; max-width: 210px; font-size: .9rem; line-height: 1.5; }
.gruppe-plaetze { margin: auto 0 0; padding-top: 1rem; min-height: 2.9rem; }
.gruppe .gruppe-plaetze + .mehr { margin-top: .6rem; }
.gruppe .mehr { font-size: .95rem; padding: .5rem 1.1rem; }
.gruppen-info { font-size: .9rem; color: var(--grau); margin-top: 1.4rem; }

/* Ablauf mit zehn Terminen */
#ablauf { padding-top: 3.5rem; }
.ablauf-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.ablauf-kopf h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); margin: 0; }
.ablauf-kopf p { margin: .75rem 0 0; max-width: 520px; }
.preis-kachel { display: flex; flex-direction: column; margin: 0; padding: 1.1rem 1.5rem; border-radius: 24px; background: var(--tief); color: #fff; }
.preis-kachel span { font-size: .9rem; font-weight: 700; opacity: .85; }
.preis-kachel strong { font: 600 2.1rem/1.1 "Fredoka", sans-serif; }
.termine { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .6rem; }
.termine li { padding: 1rem .5rem; border-radius: 20px; background: #fff; text-align: center; font: 600 1.35rem "Fredoka", sans-serif; font-variant-numeric: tabular-nums; }
.termine li span { display: block; margin-bottom: .2rem; font: 800 .75rem "Nunito", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #2F5E6B; }
.termine .erster { background: var(--sonne); }
.termine .letzter { background: var(--minze); }

/* Team */
.team { background: var(--lagune); border-radius: 48px 48px 0 0; }
.team .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; padding: 5rem 0; }
.team h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.1; margin: 0; }
.team p { margin: 1rem 0 0; }
.team-bilder { display: flex; justify-content: center; align-items: flex-end; }
.team-gill, .team-foto-greta { border: 7px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; }
.team-gill { width: 260px; height: 260px; display: block; background: #fff; }
.team-foto-greta { display: block; width: 170px; height: 170px; }
@media (max-width: 480px) { .team-gill { width: 200px; height: 200px; } .team-foto-greta { width: 130px; height: 130px; } .team-bilder picture + picture { margin-left: -32px; } }
.team .punkte { margin: 1.6rem 0; gap: .75rem; }
.team .punkte li { border-radius: 20px; padding: 1rem 1.1rem; }
.team .punkte li span { font-size: 1.1rem; }

/* Ort */
.ort { background: var(--lagune); }
.ort .wrap { padding-bottom: 5rem; }
.ort-karte { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: center; padding: 2.25rem; border-radius: 36px; background: var(--creme); }
@media (max-width: 480px) { .ort-karte { padding: 1.5rem; } }
.ort-label { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lagune-text); }
.ort-karte h2 { font-size: 2.1rem; margin: .5rem 0 0; }
.ort-karte p { margin: .6rem 0 0; }
.ort-hinweis { font-size: .95rem; color: var(--grau); }
.ort-bild { margin: 0; }
.ort-bild img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; background: var(--creme-dunkel); }

.anmeldung-knopf { margin: 2.75rem 0 0; }

/* Fußzeile */
.fuss { background: var(--tief); color: #DCEFF0; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--sonne); }
.fuss-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 2.5rem 0 1.25rem; }
.fuss-zeile p { margin: 0; }
.fuss .marke { margin: 0; font-size: 1.25rem; }
.fuss .marke img { width: 34px; height: 34px; border-radius: 8px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.fuss-links li { margin: 0; }
.fuss-kontakt { padding: 1.25rem 0 2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; color: #A9CACE; }
.fuss-kontakt p { margin: 0 0 .3rem; max-width: none; }
.fuss-kontakt a { color: #DCEFF0; }
.anmeldung-knopf { max-width: none; text-align: center; }
@media (max-width: 620px) {
  .fakten-leiste dl { grid-template-columns: 1fr 1fr; padding: 1rem; gap: .25rem; }
  .fakten-leiste dl > div { padding: .5rem; }
  .fakten-leiste dt { font-size: 1.35rem; }
  .fakten-leiste dd { font-size: .85rem; }
  .termine { grid-template-columns: repeat(5, 1fr); gap: .4rem; }
  .termine li { padding: .7rem .2rem; font-size: 1rem; border-radius: 14px; }
  .termine li span { font-size: .6rem; letter-spacing: .02em; }
}
.team-greta picture { justify-self: center; }
.team-bilder picture { display: block; flex: none; }
.team-bilder picture + picture { margin-left: -40px; }
.team-bilder img { max-width: none; }

/* Über uns: abwechselnd Text und Bild */
.ueber { padding-top: 1.5rem; }
.zeile { display: grid; gap: 2rem; align-items: center; padding-block: 2.5rem; }
.zeile + .zeile { border-top: 2px dashed var(--creme-dunkel); }
.zeile-text { min-width: 0; max-width: 60ch; }
.zeile-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-top: 0; }
.zeile-text p:last-child, .zeile-text .liste { margin-bottom: 0; }
.zeile-bild { margin: 0; justify-self: center; width: 100%; }
.zeile-bild.portrait { width: min(380px, 80%); }
.zeile-bild.foto img { aspect-ratio: 3 / 2; }
.blobbild-zwei { border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%; }
.bossi-bild { display: grid; place-items: center; width: min(320px, 75%); aspect-ratio: 1; border-radius: 50%; background: var(--lagune-hell); }
.bossi-bild img { width: 70%; }
.zeile-knopf { margin-top: 1.75rem; }
@media (min-width: 860px) {
  .zeile { grid-template-columns: 1fr 1fr; gap: 4rem; padding-block: 3.5rem; }
  .zeile-gedreht .zeile-bild { order: -1; }
}

/* Logo mit Zusatz "Schwimmschule Rösrath" */
.marke span { display: flex; flex-direction: column; line-height: 1.05; }
.marke small { font: 800 .62rem "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.marke-hell small { color: #A9CACE; }
.marke small { white-space: nowrap; }
.hero-start { text-wrap: balance; }
/* Auf schmalen Handys übernimmt die Buchungsleiste unten den Button aus der Kopfzeile */
@media (max-width: 480px) { .kopf .nav > .btn-small { display: none; } }
.hero-start span { white-space: nowrap; }
@media (max-width: 480px) { .hero-start .punkt { display: none; } .hero-start span:not(.punkt) { display: block; } }

/* Hero: am Desktop Text links, Titelbild rechts daneben */
@media (min-width: 900px) {
  .hero { text-align: left; padding: 3rem 0 1.5rem; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
  .hero h1 { font-size: clamp(2.9rem, 5.2vw, 4.5rem); margin-inline: 0; }
  .hero .lead { margin-left: 0; }
  .hero .knoepfe { justify-content: flex-start; }
  .hero-bild { margin: 0; }
  /* Fast das ganze Querformat zeigen, damit der Schwimmer mit beiden Armen zu sehen ist */
  .hero-bild > picture > img { aspect-ratio: 16 / 10; object-position: 65% 50%; }
  .hero-bossi { right: auto; left: -2.5rem; bottom: -1.75rem; }
}

/* Termine und Preis stehen jetzt im Abschnitt "So kommt dein Kind ins Wasser" */
#ablauf .ablauf-kopf { margin-bottom: 2.5rem; }
#ablauf .schritte li { padding: 1.6rem; border-radius: 28px; }
#ablauf .schritte li::before { position: static; display: grid; margin-bottom: 1rem; width: 44px; height: 44px; border: 0; font-size: 1.3rem; }
#ablauf .schritte h3 { font-size: 1.35rem; margin: 0 0 .35rem; }

/* Buchen-Button in der Kopfzeile: auf schmalen Handys kurz */
.kopf .btn-small .kurz { display: none; }
@media (max-width: 480px) {
  .kopf .nav > .btn-small { display: inline-flex; padding: .55rem 1rem; }
  .kopf .btn-small .lang { display: none; }
  .kopf .btn-small .kurz { display: inline; }
}

/* Team: größere Porträts */
.team .wrap { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.team-gill { width: 360px; height: 360px; }
.team-foto-greta { width: 240px; height: 240px; }
.team-bilder picture + picture { margin-left: -60px; }
.team-knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 480px) {
  .team-gill { width: 230px; height: 230px; }
  .team-foto-greta { width: 160px; height: 160px; }
  .team-bilder picture + picture { margin-left: -44px; }
}
/* Faktenleiste mit drei Werten */
@media (max-width: 620px) {
  .fakten-leiste dl { grid-template-columns: repeat(3, 1fr); }
  .fakten-leiste dt { font-size: 1.1rem; }
  .fakten-leiste dd { font-size: .78rem; }
}

/* Bossi spricht: kleiner Frosch mit Sprechblase */
.bossi-sagt { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 640px; margin: -1rem auto 2rem; }
.bossi-sagt img { flex: none; width: 84px; height: auto; transform: rotate(-6deg); }
.sprechblase { position: relative; margin: 0; padding: .9rem 1.2rem; border-radius: 22px; background: #fff; font-weight: 700; line-height: 1.45; }
.sprechblase::before { content: ""; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 3px; }
.bossi-links { justify-content: flex-start; margin: 1.25rem 0 0; }
.section-lagune .sprechblase { background: rgba(255,255,255,.9); }
@media (max-width: 480px) { .bossi-sagt img { width: 64px; } }

/* Bossi guckt über die Fußzeile */
.bossi-guckt { position: relative; height: 46px; overflow: hidden; pointer-events: none; }
.bossi-guckt img { position: absolute; right: 12%; bottom: -52px; width: 120px; height: auto; transition: transform .4s ease; }
.bossi-guckt:hover img { transform: translateY(-6px); }
@media (max-width: 480px) { .bossi-guckt img { right: 8%; width: 96px; bottom: -42px; } .bossi-guckt { height: 38px; } }

/* Kleine Übergänge, damit nichts plötzlich aufspringt */
.kopf { transition: box-shadow .3s ease; }
.kopf.gescrollt { box-shadow: 0 6px 24px rgba(30,77,92,.08); }
@keyframes auftauchen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gruppe-plaetze .badge, .plaetze-live { animation: auftauchen .45s ease both; }
.kurs-card { animation: auftauchen .5s ease both; }
.kurs-card:nth-child(2) { animation-delay: .06s; } .kurs-card:nth-child(3) { animation-delay: .12s; } .kurs-card:nth-child(n+4) { animation-delay: .18s; }
.form-erfolg, .form-msg { animation: auftauchen .4s ease both; }
/* FAQ klappt weich auf (Chrome 131+, Safari 18.4+; ältere Browser öffnen ohne Animation) */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { transition: color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .kopf, .mobile-menu, .mobile-menu.open, main img, .bossi-guckt img, .faq details::details-content { transition: none; }
  .gruppe-plaetze .badge, .plaetze-live, .kurs-card, .form-erfolg, .form-msg { animation: none; }
}

/* Sehr schmale Handys (320–360 px) */
@media (max-width: 360px) {
  .kopf .marke { font-size: 1.1rem; gap: .4rem; }
  .kopf .marke img { width: 32px; height: 32px; }
  .kopf .marke small { font-size: .52rem; letter-spacing: .04em; }
  .kopf .nav { gap: .5rem; }
  .kopf .nav > .btn-small { padding: .45rem .8rem; font-size: .9rem; }
  .nav-toggle { width: 40px; height: 40px; }
}
/* Lange Wörter (z. B. in den Rechtstexten) umbrechen statt überlaufen */
.prose, .blatt, .faq, .zeile-text, .ort-karte { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.kurs-card, .kurs-card > *, .kurs-fakten dd { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 360px) {
  .team-gill { width: 190px; height: 190px; }
  .team-foto-greta { width: 130px; height: 130px; }
  .team-bilder picture + picture { margin-left: -36px; }
  .kurs-card { padding: 1.25rem; }
  .kurs-fakten div { grid-template-columns: 5.5rem 1fr; }
}
.team .wrap { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.ort-karte { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

/* Bossi zum Anfassen (main.js): wackeln beim Drüberfahren, hüpfen beim Antippen */
.bossi-aktiv { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bossi-guckt img.bossi-aktiv { pointer-events: auto; }
/* Bossi im Hero steht still und ohne CSS-Filter: Safari zeichnete ihn mit Schatten und Dauerschaukeln verschwommen. */
.hero-bossi { transform-origin: 50% 90%; transition: none; }
@media (hover: hover) {
  .bossi-aktiv:hover { animation: wackeln .7s ease-in-out; }
  .bossi-guckt img.bossi-aktiv:hover { animation: hochgucken .8s ease-in-out; }
}
@keyframes wackeln {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-8deg) scale(1.04); }
  40% { transform: rotate(7deg) scale(1.04); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(3deg); }
}
@keyframes hochgucken { 0%, 100% { transform: translateY(0); } 40%, 60% { transform: translateY(-22px); } }
.bossi-aktiv.huepft, .bossi-aktiv.huepft:hover { animation: huepfen .9s cubic-bezier(.3,.7,.3,1); }
.bossi-guckt img.bossi-aktiv.huepft { animation: rausspringen 1s cubic-bezier(.3,.7,.3,1); }
@keyframes huepfen {
  0% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(0) scale(1.12, .86); }
  45% { transform: translateY(-38px) scale(.94, 1.08) rotate(-6deg); }
  70% { transform: translateY(0) scale(1.1, .9) rotate(2deg); }
  85% { transform: translateY(-6px) scale(.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes rausspringen { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-56px) rotate(-6deg); } 70% { transform: translateY(-40px) rotate(4deg); } }
.quak {
  position: absolute; z-index: 60; transform: translate(-50%, -100%); pointer-events: none;
  padding: .35rem .8rem; border-radius: 999px; background: #fff; color: var(--tief);
  font: 600 1rem "Fredoka", sans-serif; white-space: nowrap; box-shadow: 0 6px 18px rgba(30,77,92,.18);
  animation: quak-steigt 1.6s ease forwards;
}
@keyframes quak-steigt {
  0% { opacity: 0; transform: translate(-50%, -80%) scale(.6); }
  15% { opacity: 1; transform: translate(-50%, -110%) scale(1.05); }
  70% { opacity: 1; transform: translate(-50%, -150%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(.95); }
}
.luftblase {
  position: absolute; z-index: 59; pointer-events: none; border-radius: 50%;
  border: 2px solid var(--lagune); background: rgba(255,255,255,.6);
  animation: blase-steigt 1.6s ease-out both;
}
@keyframes blase-steigt { 0% { opacity: 0; transform: translateY(0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-bossi, .bossi-aktiv, .bossi-aktiv:hover { animation: none; } }
/* Bossi darf beim Hüpfen über den Rand hinaus, der untere Teil bleibt hinter der Fußzeile */
.bossi-guckt { overflow: visible; z-index: 0; }
.fuss { position: relative; z-index: 1; }
.hero-bild > picture { display: block; }

/* WhatsApp: schwebender Knopf unten rechts, auf dem Handy über der Buchungsleiste */
.wa-knopf {
  position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 8px 22px rgba(30,77,92,.25);
  transition: transform .2s ease, bottom .3s ease;
}
.wa-knopf svg { width: 30px; height: 30px; }
.wa-knopf:hover { color: #fff; transform: scale(1.08); }
html.leiste-da .wa-knopf { bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
body:has([data-keine-buchleiste]) .wa-knopf { display: none; }
.wa-link { display: inline-flex; align-items: center; gap: .45rem; }
.wa-link svg { width: 1.2em; height: 1.2em; color: #1FA855; }
.ort-knopf { margin-top: 1.1rem !important; }
.ort-knopf .btn svg { width: 1.15em; height: 1.15em; }
.kalender-knopf { margin-top: .75rem; padding: .45rem .9rem; border: 2px solid var(--lagune); border-radius: 999px; background: #fff; color: var(--tief); font: 700 .9rem "Nunito", sans-serif; cursor: pointer; }
.kalender-knopf:hover { background: var(--lagune-hell); }
.form-erfolg .btn { margin-top: .5rem; }
@media (prefers-reduced-motion: reduce) { .wa-knopf { transition: none; } }

/* Erster Bildschirm: Titel und Kurzfakten füllen die Fensterhöhe unter der Kopfzeile,
   damit „Welche Gruppe passt?“ erst beim Scrollen auftaucht. */
.erster-blick {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--kopf-hoehe, 76px));
  min-height: calc(100svh - var(--kopf-hoehe, 76px));
  padding-bottom: 2rem;
}
/* Titel mittig im freien Platz, Kurzfakten am unteren Rand des ersten Bildschirms */
.erster-blick > .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* Handy-Feinschliff */
@media (max-width: 620px) {
  /* Frosch am Titelbild links unten wie am Desktop, damit der WhatsApp-Knopf ihn nicht verdeckt */
  .hero-bossi { right: auto; left: -.25rem; }
}
@media (max-width: 480px) {
  /* Kurzfakten untereinander statt drei gequetschte Spalten */
  .fakten-leiste dl { grid-template-columns: 1fr; gap: 0; padding: .4rem 1.1rem; }
  .fakten-leiste dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
  .fakten-leiste dl > div + div { border-top: 1px solid var(--creme-dunkel, #FBEBD9); }
  .fakten-leiste dt { font-size: 1.2rem; white-space: nowrap; }
  .fakten-leiste dd { font-size: .85rem; margin: 0; text-align: right; }
  /* Kursdaten: schmalere Beschriftung, damit „10:30 Uhr“ in einer Zeile bleibt */
  .kurs-fakten div { grid-template-columns: 4.75rem 1fr; }
  /* Lange Wörter in Überschriften nur an den vorgesehenen Stellen (&shy;) mit Trennstrich umbrechen */
  .page h1 { hyphens: manual; }
}
/* Frosch auf der Fehlerseite mittig über dem Text */
.error-page img { display: block; margin-inline: auto; }
/* Schmale Handys: Buchungsleiste bleibt einzeilig, Kopfzeile ohne Überlappung */
@media (max-width: 400px) {
  .buch-leiste { gap: .6rem; }
  .buch-leiste p { font-size: .9rem; white-space: nowrap; }
  .buch-leiste strong { font-size: 1.1rem; }
  .buch-leiste .btn { white-space: nowrap; padding: .55rem .95rem; font-size: .9rem; }
  .kopf .nav { gap: .45rem; }
}
@media (max-width: 340px) {
  .kopf .nav > .btn-small { padding: .4rem .7rem; font-size: .85rem; }
  .kopf .marke small { font-size: .5rem; letter-spacing: .02em; }
  .buch-leiste strong { font-size: 1rem; }
}

/* Zahlungsseite: Wahl der Zahlungsart und Bankverbindung mit GiroCode */
.zahl-wahl { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.zahl-wahl legend { font: 600 1.15rem "Fredoka", sans-serif; color: var(--tief); margin-bottom: .5rem; }
.zahl-option { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 2.5px solid var(--creme-dunkel); border-radius: 18px; background: #fff; cursor: pointer; }
.zahl-option:has(input:checked) { border-color: var(--tief); background: var(--creme); }
.zahl-option input { margin-top: .3rem; accent-color: var(--tief); }
.zahl-option span { display: grid; gap: .1rem; }
.zahl-option span span { font-size: .9rem; color: var(--grau); }
.bank-box { display: grid; gap: 1.25rem; align-items: start; margin: 1.5rem 0; padding: 1.25rem; border-radius: 24px; background: var(--creme); }
@media (min-width: 640px) { .bank-box { grid-template-columns: 200px 1fr; } .bank-box > .form-note { grid-column: 1 / -1; } }
.girocode { margin: 0; text-align: center; }
.girocode img { display: block; width: 180px; height: 180px; margin: 0 auto .5rem; border-radius: 12px; background: #fff; padding: 6px; }
.girocode figcaption { font-size: .85rem; color: var(--grau); }
@media (max-width: 639px) { .girocode { order: 2; } .bank-daten { order: 1; } .bank-box > .form-note { order: 3; } }
.bank-daten { margin: 0; display: grid; gap: .65rem; }
.bank-daten div { display: grid; gap: .1rem; }
.bank-daten dt { font: 600 .95rem "Fredoka", sans-serif; color: var(--lagune-text); }
.bank-daten dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; overflow-wrap: anywhere; }
.bank-daten .wert { font-variant-numeric: tabular-nums; }
.kopieren { border: 2px solid var(--tief); background: #fff; color: var(--tief); border-radius: 999px; padding: .2rem .7rem; font: 800 .8rem "Nunito", sans-serif; cursor: pointer; }
.kopieren:hover, .kopieren:focus-visible { background: var(--tief); color: #fff; }
/* Kurzfakten gleichmäßig im Kasten: jede Spalte mittig */
@media (min-width: 681px) {
  .fakten-leiste dl { grid-template-columns: repeat(3, 1fr); }
  .fakten-leiste dl > div { text-align: center; }
}
/* Bis 680 px untereinander, wie am Handy */
@media (min-width: 481px) and (max-width: 680px) {
  .fakten-leiste dl { grid-template-columns: 1fr; gap: 0; padding: .4rem 1.4rem; }
  .fakten-leiste dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
  .fakten-leiste dl > div + div { border-top: 1px solid var(--creme-dunkel); }
  .fakten-leiste dt { font-size: 1.3rem; white-space: nowrap; }
  .fakten-leiste dd { font-size: .9rem; margin: 0; text-align: right; }
}
@media (min-width: 681px) and (max-width: 800px) {
  .fakten-leiste dt { font-size: clamp(1.15rem, 3.2vw, 1.5rem); }
  .fakten-leiste dd { font-size: .82rem; }
}
