/* Schwimmschule Marco Baldauf – verspielt und hell: türkises Wasser, Sonnengelb, Korallenrot,
   dazu das Violett aus dem Logo (Meerjungfrauen-Flosse) für Schrift und Links.
   Runde Schrift, Wellenkanten zwischen den Abschnitten, Bahnleine aus runden Schwimmern. */

@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Variable.woff") format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Variable.woff") format("woff"); font-weight: 200 1000; font-display: swap; }

:root {
  --sky: #E7F7FB;       /* helles Becken */
  --foam: #FFFFFF;
  --pool: #22B0D8;      /* Türkis */
  --pool-2: #0E8FBF;
  --deep: #2C1A5C;      /* Logo-Aubergine: Überschriften, Fuß */
  --violet: #4A55A8;    /* Logo-Violett: Links, Akzente */
  --sun: #FFC93C;       /* Sonne, Anmelde-Aktionen */
  --coral: #FF7A59;
  --mint: #4FCFA0;
  --ink: #183847;
  --muted: #557886;
  --line: #CBE9F1;
  --ok: #17784D;
  --err: #C0392B;

  --display: "Fredoka", "Baloo 2", "Comic Neue", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.8rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.6vw, 4.4rem);

  --wrap: 72rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --r-lg: 28px;
  --r-md: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 500 var(--step-0)/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); font-weight: 700; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; color: var(--deep); font-weight: 600; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: 65ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--deep); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Kopfzeile ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--foam); }
.top { background: var(--foam); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; box-shadow: 0 2px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 5rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; padding-block: 0.35rem; }
.brand img { height: 68px; width: auto; display: block; }
@media (max-width: 600px) { .brand img { height: 56px; } }
.intern-label { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--deep); border-left: 2px solid var(--line); padding-left: 0.8rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 999px; font-size: 0.98rem; font-weight: 700; white-space: nowrap; }
.nav a:hover { background: var(--sky); color: var(--deep); }
.nav a[aria-current="page"] { background: var(--pool); color: #fff; }
.nav .call { background: var(--sun); color: var(--deep); margin-left: 0.3rem; }
.nav .call:hover { background: #FFD766; }
.menu-btn { display: none; margin-left: auto; background: var(--pool); border: 0; color: #fff; border-radius: 999px; padding: 0.55rem 1.1rem; font: 700 1rem var(--body); cursor: pointer; }

@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--foam); flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter-r) 1.2rem var(--gutter); gap: 0.2rem; box-shadow: 0 14px 24px -14px rgba(10, 85, 119, 0.35); }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 1rem; border-radius: 14px; }
  .nav .call { margin-left: 0; text-align: center; }
}

/* ---------- Wasser-Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #2CC0E4 0%, var(--pool) 45%, var(--pool-2) 100%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; padding-block: 3.4rem 6.5rem; align-items: center; }
.hero h1, .hero h2 { color: #fff; }
.hero h1 { text-shadow: 0 3px 0 rgba(44, 26, 92, 0.22); }
.hero .lead { color: #EFFBFF; font-size: var(--step-1); font-weight: 600; margin-top: 1.1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; z-index: 1; display: block; }
.page-hero .wrap { display: block; padding-block: 2.6rem 5.5rem; }
.page-hero .lead { max-width: 58ch; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.4rem 5.5rem; } }

/* Blasen */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubbles i { position: absolute; bottom: -40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.65); background: rgba(255,255,255,.12); animation: rise linear infinite; }
.bubbles i:nth-child(1) { left: 6%;  width: 18px; height: 18px; animation-duration: 11s; }
.bubbles i:nth-child(2) { left: 18%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: -3s; }
.bubbles i:nth-child(3) { left: 33%; width: 24px; height: 24px; animation-duration: 14s; animation-delay: -6s; }
.bubbles i:nth-child(4) { left: 52%; width: 12px; height: 12px; animation-duration: 9s; animation-delay: -1s; }
.bubbles i:nth-child(5) { left: 68%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: -8s; }
.bubbles i:nth-child(6) { left: 84%; width: 14px; height: 14px; animation-duration: 10s; animation-delay: -4s; }
.bubbles i:nth-child(7) { left: 93%; width: 26px; height: 26px; animation-duration: 15s; animation-delay: -10s; }
@keyframes rise { from { transform: translateY(0); opacity: .9; } to { transform: translateY(-640px); opacity: 0; } }

.sun { position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 18px rgba(255, 201, 60, .25), 0 0 0 38px rgba(255, 201, 60, .12); z-index: 0; }
@media (max-width: 600px) { .sun { width: 110px; height: 110px; right: -35px; top: -35px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 1.45rem; border-radius: 999px; font: 800 1.02rem var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--deep); box-shadow: 0 5px 0 #E0A817; }
.btn-sun:hover { color: var(--deep); box-shadow: 0 7px 0 #E0A817; }
.btn-white { background: #fff; color: var(--pool-2); box-shadow: 0 5px 0 rgba(10, 85, 119, .25); }
.btn-white:hover { color: var(--deep); }
.btn-pool { background: var(--pool); color: #fff; box-shadow: 0 5px 0 var(--pool-2); }
.btn-pool:hover { color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Kursplan im Hero */
.board { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 1.4rem 1.4rem 0.9rem; box-shadow: 0 10px 0 rgba(10, 85, 119, .18); position: relative; }
.board h2 { color: var(--deep); font-size: var(--step-2); display: flex; align-items: center; gap: 0.5rem; }
.board-duck { width: 42px; height: 42px; flex: none; }
.board-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.board-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.75rem 0; border-top: 2px dashed var(--line); }
.board-date { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--sky); display: grid; place-content: center; text-align: center; line-height: 1; font-family: var(--display); color: var(--deep); }
.board-list li:nth-child(4n+1) .board-date { background: #FFF1C9; }
.board-list li:nth-child(4n+2) .board-date { background: #DDF6EC; }
.board-list li:nth-child(4n+3) .board-date { background: #FFE2D9; }
.board-date b { display: block; font-size: 1.35rem; font-weight: 700; }
.board-date span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.board-what { min-width: 0; }
.board-what strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--deep); }
.board-what span { color: var(--muted); font-size: 0.93rem; }
.board-go { font-size: 0.95rem; white-space: nowrap; background: var(--sun); color: var(--deep); text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 999px; }
.board-go:hover { background: #FFD766; color: var(--deep); }
.board-empty { color: var(--muted); padding: 0.8rem 0 1rem; border-top: 2px dashed var(--line); }

/* ---------- Abschnitte ---------- */
.section { padding-block: 3.2rem; }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.prose { display: grid; gap: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; max-width: 65ch; }
.prose h2 { margin-top: 0.8rem; }
.prose h3 { margin-top: 0.5rem; }
.band { background: #fff; position: relative; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 26px; background: #fff;
  -webkit-mask: radial-gradient(18px 14px at 50% 0, transparent 98%, #000) 0 0 / 52px 26px repeat-x;
          mask: radial-gradient(18px 14px at 50% 0, transparent 98%, #000) 0 0 / 52px 26px repeat-x; }
.band::before { top: -25px; transform: scaleY(-1); }
.band::after { bottom: -25px; }

/* Bahnleine aus runden Schwimmern */
.rope { height: 22px; margin-block: 0.5rem;
  background:
    radial-gradient(circle at 11px 11px, var(--coral) 0 9px, transparent 10px) 0 0 / 88px 22px repeat-x,
    radial-gradient(circle at 33px 11px, var(--sun) 0 9px, transparent 10px) 0 0 / 88px 22px repeat-x,
    radial-gradient(circle at 55px 11px, var(--pool) 0 9px, transparent 10px) 0 0 / 88px 22px repeat-x,
    radial-gradient(circle at 77px 11px, var(--mint) 0 9px, transparent 10px) 0 0 / 88px 22px repeat-x,
    linear-gradient(var(--line), var(--line)) 0 10px / 100% 3px no-repeat; }

/* Fakten-Blasen */
.marks { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.mark { background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.6); border-radius: 999px; padding: 0.45rem 1.05rem; display: flex; align-items: baseline; gap: 0.45rem; }
.mark b { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: #fff; font-variant-numeric: tabular-nums; }
.mark span { font-size: 0.95rem; color: #EFFBFF; font-weight: 700; }

/* Kursstufen mit Tierfiguren */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr; } }
.level { background: #fff; border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: 0.9rem; align-content: start; min-width: 0; box-shadow: 0 6px 0 var(--line); }
.level-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #FFF1C9; }
.level:nth-child(2) .level-icon { background: #FFE2D9; }
.level:nth-child(3) .level-icon { background: #DDF6EC; }
.level-icon svg { width: 54px; height: 54px; }
.level h3 { font-size: var(--step-2); }
.level dl { margin: 0; display: grid; gap: 0.6rem; }
.level dt { font-size: 0.85rem; font-weight: 800; color: var(--coral); }
.level dd { margin: 0; }

/* Kursorte */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 900px) { .places { grid-template-columns: 1fr; } }
.place { border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.4rem; display: grid; gap: 0.35rem; text-decoration: none; color: #fff; position: relative; overflow: hidden; min-height: 12.5rem; align-content: start; transition: transform .15s ease; font-weight: 600; }
.place:hover { transform: translateY(-4px) rotate(-0.5deg); color: #fff; }
.place::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: rgba(255,255,255,.22);
  -webkit-mask: radial-gradient(20px 16px at 50% 0, transparent 98%, #000) 0 0 / 56px 34px repeat-x;
          mask: radial-gradient(20px 16px at 50% 0, transparent 98%, #000) 0 0 / 56px 34px repeat-x; }
.place.c1 { background: var(--pool); }
.place.c2 { background: var(--coral); }
.place.c3 { background: var(--violet); }
.place h3 { color: #fff; font-size: var(--step-3); }
.place .meta { opacity: 0.95; }
.place .price { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.place .next { margin-top: 0.4rem; display: inline-block; justify-self: start; background: #fff; color: var(--deep); border-radius: 999px; padding: 0.3rem 0.85rem; font-weight: 800; font-size: 0.92rem; position: relative; z-index: 1; }

/* Zwei Spalten */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Fotos mit runder Welle (Ersatzfläche, falls ein Bild fehlt) */
.photo { border-radius: 44px 44px 44px 12px; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35) 0 14px, transparent 15px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.25) 0 22px, transparent 23px), linear-gradient(160deg, #47CBEA, var(--pool-2));
  box-shadow: 10px 10px 0 var(--sun); }
.photo.alt { box-shadow: -10px 10px 0 var(--coral); border-radius: 44px 44px 12px 44px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.missing img { display: none; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.gallery .photo { box-shadow: 0 6px 0 var(--line); border-radius: 26px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Kurskarten ---------- */
.courses { display: grid; gap: 1.4rem; }
.course { background: #fff; border-radius: var(--r-lg); padding: 1.4rem; display: grid; gap: 0.9rem; min-width: 0; box-shadow: 0 6px 0 var(--line); }
.course-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.course-head h3 { font-size: var(--step-2); }
.course-head .time { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: #fff; background: var(--pool); border-radius: 999px; padding: 0.15rem 0.9rem; font-variant-numeric: tabular-nums; }
.course-head .tag { margin-left: auto; font-size: 0.88rem; font-weight: 800; padding: 0.25rem 0.8rem; border-radius: 999px; background: #DDF6EC; color: var(--ok); }
.course-head .tag.full { background: #FFE2D9; color: var(--err); }
.course .levels-line { color: var(--muted); font-weight: 600; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
@media (max-width: 560px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.day { background: var(--sky); border-radius: var(--r-md); padding: 0.6rem 0.8rem; display: grid; gap: 0.05rem; }
.day small { font-size: 0.8rem; color: var(--coral); font-weight: 800; }
.day b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--deep); font-variant-numeric: tabular-nums; }
.course .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.notice { background: #FFF6DA; border-radius: var(--r-md); padding: 1rem 1.2rem; font-weight: 600; }

/* ---------- Formulare ---------- */
.form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.2rem); display: grid; gap: 1.8rem; box-shadow: 0 6px 0 var(--line); }
.form-body { display: grid; gap: 1.8rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.9rem; min-width: 0; }
.form legend { font-family: var(--display); font-weight: 600; font-size: var(--step-2); color: var(--deep); padding: 0; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.55rem; }
.form legend .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); flex: none; }
.form fieldset:nth-of-type(2) legend .dot { background: var(--coral); }
.form fieldset:nth-of-type(3) legend .dot { background: var(--mint); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.3rem; min-width: 0; }
.field label, .field .label { font-weight: 800; font-size: 0.97rem; }
.field .opt { font-weight: 600; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: 600 1rem var(--body); color: var(--ink); background: var(--sky); border: 2px solid transparent; border-radius: 14px; padding: 0.75rem 0.9rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--pool); background: #fff; }
.form [aria-invalid="true"] { border-color: var(--err); background: #FFF4F2; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; border-radius: 999px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 0.6rem 1.15rem; border-radius: 999px; background: var(--sky); font-weight: 800; }
.choice input:checked + span { background: var(--pool); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.choices[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 4px; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; flex-wrap: wrap; }
.consent > span { flex: 1 1 0; min-width: 0; }
.consent input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; flex: none; accent-color: var(--pool); }
.consent .err-text { flex-basis: 100%; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-msg { border-radius: var(--r-md); padding: 1rem 1.2rem; font-weight: 800; }
.form-msg.ok { background: #DDF6EC; color: var(--ok); }
.form-msg.err { background: #FFE2D9; color: var(--err); }
.err-text { color: var(--err); font-size: 0.9rem; font-weight: 700; }
.spinner { width: 1.3rem; height: 1.3rem; border: 4px solid var(--line); border-top-color: var(--pool); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Kontakt & Fuß ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 800px) { .contact-strip { grid-template-columns: 1fr; } }
.contact-strip.stack { grid-template-columns: 1fr; }
.contact-strip div { background: #fff; border-radius: var(--r-lg); padding: 1.3rem 1.4rem; display: grid; gap: 0.2rem; min-width: 0; overflow-wrap: anywhere; box-shadow: 0 6px 0 var(--line); }
.contact-strip small { color: var(--coral); font-weight: 800; font-size: 0.9rem; }
.contact-strip a, .contact-strip strong { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--deep); text-decoration: none; }

.foot { background: var(--deep); color: #DCD6F0; margin-top: 4rem; }
/* Badesachen-Reihe oben im Fußbereich: Ente, Schwimmring, Fisch, Schwimmflügel, Schwimmbrille */
.foot-rope { margin: 0; height: 66px; border-bottom: 0; background: var(--deep) url("fusszeile.svg") 12px 14px / auto 46px repeat-x; }
@media (max-width: 600px) { .foot-rope { height: 52px; background-size: auto 34px; background-position: 8px 12px; } }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2.6rem 1.6rem; align-items: start; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { height: 92px; width: auto; }
.foot-col { display: grid; gap: 0.4rem; align-content: start; min-width: 0; overflow-wrap: anywhere; font-size: 0.97rem; }
.foot-col strong { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: #fff; margin-bottom: 0.2rem; }
.foot a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.foot a:hover { color: var(--sun); text-decoration-color: currentColor; }
.foot-copy { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1.1rem 1.6rem; font-size: 0.88rem; color: #B9B0DA; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; border-left: 4px dotted var(--pool); }
.timeline li { padding: 0 0 1.15rem 1.3rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: 0.3rem; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--sun); }
.timeline time { display: block; font-weight: 800; color: var(--coral); font-size: 0.92rem; font-variant-numeric: tabular-nums; }

/* Link zu den Kursen in der Schweiz & Deutschland (eigene Website) */
.ext-icon { width: 0.95em; height: 0.95em; flex: none; }
.flags { display: inline-flex; flex: none; }
.flags i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; display: block; box-shadow: 0 0 0 1px var(--line); }
.flags i + i { margin-left: -6px; }
/* Fähnchen als kleine SVG-Bilder: sehen auf allen Handys gleich aus (auch im Dunkelmodus von Android) */
.f-ch { background: #E8202A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%23E8202A'/%3E%3Cpath fill='%23fff' d='M13 7h6v6h6v6h-6v6h-6v-6H7v-6h6z'/%3E%3C/svg%3E") center / cover no-repeat; }
.f-de { background: #DD0000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3' preserveAspectRatio='none'%3E%3Crect width='3' height='1' fill='%23111'/%3E%3Crect y='1' width='3' height='1' fill='%23DD0000'/%3E%3Crect y='2' width='3' height='1' fill='%23FFCE00'/%3E%3C/svg%3E") center / cover no-repeat; }
.nav a.abroad { display: inline-flex; align-items: center; gap: 0.45rem; border: 2px dashed var(--violet); color: var(--violet); padding: 0.35rem 0.75rem 0.35rem 0.45rem; margin-left: 0.3rem; }
.nav a.abroad:hover { background: #EEEFFA; border-style: solid; color: var(--deep); }
@media (max-width: 1180px) { .nav a.abroad { margin: 0.4rem 0 0; justify-content: center; } }

.abroad-banner { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; background: #fff; border: 3px dashed var(--violet); border-radius: var(--r-lg); padding: 1.2rem 1.4rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.abroad-banner:hover { border-style: solid; color: var(--ink); }
.abroad-banner .flags i { width: 34px; height: 34px; border-width: 3px; }
.abroad-banner .flags i + i { margin-left: -10px; }
.abroad-text { display: grid; gap: 0.15rem; flex: 1 1 18rem; min-width: 0; }
.abroad-text strong { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--deep); }
.abroad-go { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--violet); color: #fff; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 800; white-space: nowrap; }

/* Nach-oben-Knopf */
.to-top { position: fixed; z-index: 25;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--deep); box-shadow: 0 5px 0 #E0A817, 0 10px 24px -8px rgba(44, 26, 92, .45);
  transition: transform .2s ease, opacity .2s ease; }
.to-top svg { width: 26px; height: 26px; }
.to-top:hover { transform: translateY(-3px); color: var(--deep); }
.to-top:active { transform: translateY(2px); box-shadow: 0 2px 0 #E0A817; }
.to-top.zeigen { animation: auftauchen .3s ease-out; }
@keyframes auftauchen { from { transform: translateY(20px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .to-top { width: 48px; height: 48px; } }

/* ---------- Länder: Fähnchen, Menü, Kursorte ---------- */
.flag { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; vertical-align: -3px; margin-right: 0.4rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.f-at { background: #ED2939 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3' preserveAspectRatio='none'%3E%3Crect width='3' height='3' fill='%23ED2939'/%3E%3Crect y='1' width='3' height='1' fill='%23fff'/%3E%3C/svg%3E") center / cover no-repeat; }

.nav-group { position: relative; }
.nav-land { display: inline-flex; align-items: center; gap: 0.1rem; font: 700 0.98rem var(--body); color: var(--ink); background: none; border: 0; padding: 0.5rem 0.7rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nav-land:hover, .nav-group.open .nav-land { background: var(--sky); color: var(--deep); }
.nav-land.aktiv { background: var(--pool); color: #fff; }
.nav-land .caret { width: 0.8rem; height: 0.8rem; margin-left: 0.25rem; transition: transform .15s; }
.nav-group.open .caret { transform: rotate(180deg); }
.nav-sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 13rem; background: #fff; border-radius: 16px; padding: 0.4rem; box-shadow: 0 16px 30px -12px rgba(44, 26, 92, .35), 0 0 0 1px var(--line); z-index: 30; }
.nav-sub a { display: block; padding: 0.55rem 0.8rem !important; border-radius: 10px !important; }
.nav-group.open .nav-sub { display: grid; }
@media (min-width: 1181px) and (hover: hover) {
  .top:not(.eng) .nav-group:hover .nav-sub { display: grid; }
  .top:not(.eng) .nav-group:hover .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
}
@media (max-width: 1180px) {
  /* Handy/Tablet: Land als kleine Überschrift, Kursorte als Knöpfe daneben */
  .nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0.45rem 0.4rem 0.45rem 1rem; border-radius: 14px; }
  .nav-land { padding: 0; min-width: 8.2rem; font-size: 0.98rem; pointer-events: none; color: var(--ink); background: none !important; }
  .nav-land .caret { display: none; }
  .nav-land.aktiv { color: var(--pool-2); }
  .nav-land .flag { width: 22px; height: 22px; margin-right: 0.55rem; }
  .nav-sub { display: flex !important; flex-wrap: wrap; gap: 0.4rem; position: static; box-shadow: none; padding: 0; min-width: 0; background: transparent; }
  .nav-sub a { padding: 0.45rem 0.9rem !important; border-radius: 999px !important; background: var(--sky); color: var(--deep); font-size: 0.95rem; }
  .nav { max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 440px) {
  .nav-land { flex-basis: 100%; }
  .nav-sub { padding-left: 1.9rem; }
}

.places.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .places.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .places.vier { grid-template-columns: 1fr; } }
.place.c4 { background: #2BAE84; }
.place .land { display: inline-flex; align-items: center; justify-self: start; font-size: 0.82rem; font-weight: 800; background: rgba(255,255,255,.22); border-radius: 999px; padding: 0.15rem 0.7rem 0.15rem 0.3rem; margin-bottom: 0.3rem; }
.place .land .flag { box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.places.vier .place h3 { font-size: var(--step-2); }

.hero-land { display: inline-flex; align-items: center; justify-self: start; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.55); border-radius: 999px; padding: 0.2rem 0.9rem 0.2rem 0.35rem; font-weight: 800; font-size: 0.95rem; color: #fff; }
.hero-land .flag { box-shadow: 0 0 0 2px #fff; }

.board-what strong .flag { width: 14px; height: 14px; margin-right: 0.35rem; vertical-align: -1px; }
.foot-col .flag { width: 14px; height: 14px; margin-right: 0.4rem; vertical-align: -2px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }

.day-zeit { font-size: 0.85rem; font-weight: 700; color: var(--pool-2); }

/* Schwimmbad & Anfahrt */
.bad-karte { background: #fff; border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 6px 0 var(--line); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 800px) { .bad-karte { grid-template-columns: 1fr; } }
.bad-adresse { font-size: 1.1rem; }
.bad-fakten { display: grid; gap: 0.8rem; }
.bad-fakt { background: var(--sky); border-radius: var(--r-md); padding: 0.8rem 1rem; display: grid; }
.bad-fakt b { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bad-fakt span { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.bad-karte .btn .ext-icon { width: 1em; height: 1em; }

/* ---------- Logo als „Namensschild“, das in den Wasserbereich hängt ---------- */
.top:not(.intern-top) .wrap { position: relative; }
.top:not(.intern-top) .brand {
  position: absolute; top: 0; left: var(--gutter); z-index: 22;
  background: #fff; padding: 0.55rem 1.1rem 0.9rem;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 0 rgba(10, 85, 119, .14), 0 18px 30px -18px rgba(44, 26, 92, .45);
  transition: padding .25s ease, box-shadow .25s ease;
}
.top:not(.intern-top) .brand img { height: 118px; width: auto; transition: height .25s ease; }
.top:not(.intern-top) .brand:hover img { transform: rotate(-2deg); }
.top:not(.intern-top) .brand img { transform-origin: 50% 0; }
/* Platz für das Schild links neben dem Menü */
.top:not(.intern-top) .nav { margin-left: auto; }
.top:not(.intern-top) .wrap::before { content: ""; flex: none; width: 210px; }
/* Kopfbereich darunter etwas tiefer anfangen, damit nichts verdeckt wird */
.hero .wrap { padding-top: 5.6rem; }
.page-hero .wrap { padding-top: 5rem; }

/* Beim Scrollen: Schild wird klein und bleibt in der Leiste */
.top.klein:not(.intern-top) .brand { padding: 0.3rem 0.2rem; box-shadow: none; background: transparent; border-radius: 0; }
.top.klein:not(.intern-top) .brand img { height: calc(5rem - 0.6rem); }

@media (max-width: 1180px) {
  .top:not(.intern-top) .brand img { height: 92px; }
  .top:not(.intern-top) .wrap::before { width: 170px; }
}
@media (max-width: 600px) {
  .top:not(.intern-top) .brand { padding: 0.4rem 0.75rem 0.6rem; border-radius: 0 0 22px 22px; }
  .top:not(.intern-top) .brand img { height: 70px; }
  .top:not(.intern-top) .wrap::before { width: 130px; }
  .hero .wrap { padding-top: 4rem; }
  .page-hero .wrap { padding-top: 3.6rem; }
  .top.klein:not(.intern-top) .brand img { height: calc(5rem - 0.6rem); }
}
@media (prefers-reduced-motion: reduce) { .top .brand, .top .brand img { transition: none; } }

/* ---------- Startseite am Handy: Kurstafel kompakter, Kursorte im Kontaktbereich ---------- */
.contact-strip .kurz-orte { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.contact-strip .kurz-orte a { font-family: var(--body); font-weight: 800; font-size: 0.95rem; background: var(--sky); color: var(--deep); padding: 0.3rem 0.75rem 0.3rem 0.45rem; border-radius: 999px; display: inline-flex; align-items: center; }
.contact-strip .kurz-orte a:hover { background: #D5F0F7; }
.contact-strip .kurz-orte .flag { width: 16px; height: 16px; margin-right: 0.35rem; vertical-align: 0; }
@media (max-width: 600px) {
  .board { padding: 1.1rem 1rem 0.7rem; }
  .board h2 { font-size: 1.45rem; }
  .board-duck { width: 34px; height: 34px; }
  .board-list li { grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.8rem; padding: 0.65rem 0; }
  .board-date { width: 3.1rem; height: 3.1rem; grid-row: span 2; align-self: start; }
  .board-date b { font-size: 1.2rem; }
  .board-what strong { font-size: 1.08rem; }
  .board-what span { font-size: 0.88rem; line-height: 1.4; display: block; }
  .board-go { grid-column: 2; justify-self: start; font-size: 0.88rem; padding: 0.3rem 0.85rem; }
}

/* ---------- Telefon-Symbol im Kopf (nur Handy/Tablet) ---------- */
.tel-btn { display: none; }
@media (max-width: 1180px) {
  .tel-btn { display: inline-grid; place-items: center; flex: none; margin-left: auto; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--sun); color: var(--deep); box-shadow: 0 3px 0 #E0A817; }
  .tel-btn:hover { background: #FFD766; color: var(--deep); }
  .tel-btn svg { width: 1.25rem; height: 1.25rem; }
  .top .menu-btn { margin-left: 0.55rem; }
}

/* ---------- Fußzeile: Hinweis auf die Webagentur ---------- */
.foot-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1.5rem; }
.foot-copy .credit a { color: #DCD6F0; font-weight: 700; text-decoration-color: rgba(220, 214, 240, .4); }
.foot-copy .credit a:hover { color: #fff; }

/* ---------- Datenschutz: Rückweg zum Formular ---------- */
.zurueck-btn { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--sun); color: var(--deep); text-decoration: none; font-weight: 800; padding: 0.75rem 1.2rem 0.75rem 1rem; border-radius: 999px; box-shadow: 0 5px 0 #E0A817, 0 14px 28px -12px rgba(44, 26, 92, .5); }
.zurueck-btn:hover { background: #FFD766; color: var(--deep); }
.zurueck-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- Häufige Fragen ---------- */
.fragen { display: grid; gap: 0.7rem; max-width: 54rem; }
.frage { background: #fff; border-radius: 18px; box-shadow: 0 4px 0 var(--line); }
.frage summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--deep); }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sky); color: var(--pool-2); font: 800 1.2rem/1 var(--body); }
.frage[open] summary::after { content: "–"; background: var(--pool); color: #fff; }
.frage .antwort { padding: 0 1.2rem 1.1rem; }
.frage .antwort > * + * { margin-top: 0.6rem; }

/* ---------- Viele Menüpunkte: auch am großen Bildschirm das aufklappbare Menü (setzt main.js) ---------- */
.top.eng .menu-btn { display: inline-flex; margin-left: auto; }
.top.eng .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--foam); flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter-r) 1.2rem var(--gutter); gap: 0.2rem; box-shadow: 0 14px 24px -14px rgba(10, 85, 119, 0.35); max-height: calc(100dvh - 5rem); overflow-y: auto; }
.top.eng .nav.open { display: flex; }
.top.eng .nav a { padding: 0.8rem 1rem; border-radius: 14px; }
.top.eng .nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0.45rem 0.4rem 0.45rem 1rem; border-radius: 14px; }
.top.eng .nav-land { padding: 0; min-width: 8.2rem; font-size: 0.98rem; pointer-events: none; color: var(--ink); background: none !important; }
.top.eng .nav-land .caret { display: none; }
.top.eng .nav-land.aktiv { color: var(--pool-2); }
.top.eng .nav-sub { display: flex !important; flex-wrap: wrap; gap: 0.4rem; position: static; box-shadow: none; padding: 0; min-width: 0; background: transparent; }
.top.eng .nav-sub a { padding: 0.45rem 0.9rem !important; border-radius: 999px !important; background: var(--sky); color: var(--deep); font-size: 0.95rem; }
.top.eng:not(.klein) .nav { padding-top: 4.4rem; }

/* ---------- Plätze & Warteliste ---------- */
.course .tag.knapp { background: #FFF1C9; color: #8A5A00; }
.warteliste-hinweis { margin-top: 0.8rem; }
