/* =========================================================
   Swimming Pool – swimmingpool-pool.de
   Schriften lokal eingebunden (DSGVO: keine Google-Server)
   ========================================================= */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --deep: #0a3d62;        /* Beckenblau, tief */
  --deep-2: #072c47;
  --water: #1f9fc4;       /* Chlorwasser */
  --water-soft: #d7eff6;
  --tile: #f3f8fa;        /* Fliesenweiß */
  --line: #d3e2ea;
  --ink: #12283a;
  --ink-soft: #4b6275;
  --rope: #e0403a;        /* Bahnleine rot */
  --sun: #ffc83d;         /* Rettungsring-Gelb */
  --sun-dark: #f2b400;
  --white: #ffffff;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--water); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: var(--deep);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--sun); color: var(--ink); padding: 8px 14px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tile { background: var(--tile); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; margin: 0; }

/* ---------- Bahnleine (Signatur-Element) ---------- */
.rope {
  height: 18px;
  background:
    radial-gradient(ellipse 10px 7px at 10px 50%, var(--rope) 92%, transparent 100%) 0 0 / 40px 18px repeat-x,
    radial-gradient(ellipse 10px 7px at 30px 50%, var(--white) 92%, transparent 100%) 0 0 / 40px 18px repeat-x,
    linear-gradient(transparent 8px, #6f8796 8px, #6f8796 10px, transparent 10px);
}
.rope--on-dark { background-color: var(--deep); }
.rope--on-tile { background-color: var(--tile); }

/* ---------- Header ---------- */
.site-header { background: var(--deep); color: var(--white); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--white); }
.brand svg { width: 34px; height: 34px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #d8e8f1; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.08); }
.nav .btn { margin-left: 8px; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; color: var(--white); font-weight: 600; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: static; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel {
    display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--deep-2); padding: 12px 16px 20px; gap: 2px;
  }
  .menu-panel a { color: var(--white); text-decoration: none; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 500; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; line-height: 1.2;
}
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-dark); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }
.btn--ghost:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep:hover { background: var(--deep-2); color: var(--white); }

/* ---------- Hero: Becken von oben ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--water);
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(160deg, #2cb3d6 0%, #1f9fc4 40%, #157fa6 100%);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--white);
}
/* Bodenmarkierungen der Bahnen, mit T-Ende wie im echten Becken */
.lane-mark { position: absolute; left: -2%; height: 14px; background: rgba(6, 45, 74, 0.32); border-radius: 2px; pointer-events: none; }
.lane-mark::after { content: ""; position: absolute; right: 0; top: -22px; width: 14px; height: 58px; background: inherit; border-radius: 2px; }
.lane-mark:nth-of-type(1) { top: 16%; width: 92%; }
.lane-mark:nth-of-type(2) { top: 44%; width: 92%; }
.lane-mark:nth-of-type(3) { top: 72%; width: 92%; }

.hero .wrap { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { color: var(--white); max-width: 15ch; text-shadow: 0 2px 0 rgba(6,45,74,0.18); }
.hero-lead { font-size: 1.25rem; max-width: 46ch; color: #f0fafd; margin-bottom: 32px; }

.search {
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 10px;
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px;
  max-width: 820px;
  box-shadow: 0 18px 40px -18px rgba(6,45,74,0.55);
}
.search label { display: block; padding: 8px 14px 6px; border-radius: 8px; background: var(--tile); }
.search label span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.search input, .search select {
  width: 100%; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink);
  padding: 2px 0 4px; outline: none;
}
.search label:focus-within { box-shadow: inset 0 0 0 2px var(--water); }
.search .btn { padding-inline: 28px; font-size: 1.0625rem; border-radius: 8px; }
@media (max-width: 720px) { .search { grid-template-columns: 1fr; } .search .btn { padding-block: 16px; } }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.quick span { color: #e3f5fa; margin-right: 4px; }
.quick a { color: var(--white); text-decoration: none; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(6,45,74,0.28); }
.quick a:hover { background: rgba(6,45,74,0.5); color: var(--white); }

/* kleinere Variante für Unterseiten */
.hero--page .wrap { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero--page h1 { max-width: 20ch; }
.crumbs { font-size: 0.9375rem; margin-bottom: 14px; color: #e3f5fa; }
.crumbs a { color: var(--white); }

/* ---------- Ablauf (echte Reihenfolge) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  background: var(--deep); color: var(--white);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 64px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* ---------- Kategorien als Bahnen ---------- */
.lanes { border-top: 2px solid var(--deep); }
.lane {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center;
  padding: 28px 8px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  position: relative;
}
.lane::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--water); transition: width .2s ease; }
.lane:hover { color: var(--ink); background: var(--tile); }
.lane:hover::before { width: 5px; }
.lane-name { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.75rem); color: var(--deep); line-height: 1; }
.lane-text p { margin: 0; color: var(--ink-soft); }
.lane-text strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.lane-go { font-weight: 600; color: var(--deep); white-space: nowrap; }
.lane:hover .lane-go { color: var(--water); }
@media (max-width: 760px) { .lane { grid-template-columns: 1fr; gap: 8px; } .lane-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .lane::before { transition: none; } }

/* ---------- Bundesländer ---------- */
.states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.states a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.states a:hover { color: var(--water); }
.states small { color: var(--ink-soft); font-size: 0.875rem; font-weight: 400; }
@media (max-width: 980px) { .states { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .states { grid-template-columns: 1fr; } }

/* ---------- Einträge (Platzhalter bis die Fichas kommen) ---------- */
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.listing-pic {
  height: 150px; position: relative;
  background-color: var(--water);
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.listing-pic--hallenbad { background-color: #2a7fb0; }
.listing-pic--pool { background-color: #38b9c9; }
.listing-type { position: absolute; left: 14px; bottom: 12px; background: var(--white); color: var(--deep); font-weight: 600; font-size: 0.875rem; padding: 4px 10px; border-radius: 999px; }
.listing-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.listing h3 { font-size: 1.5rem; margin-bottom: 2px; }
.listing h3 a { color: var(--deep); text-decoration: none; }
.listing-place { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 12px; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: 0.875rem; background: var(--tile); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.listing .btn { margin-top: auto; align-self: flex-start; padding: 9px 18px; font-size: 0.9375rem; }
@media (max-width: 980px) { .listings { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .listings { grid-template-columns: 1fr; } }
.note { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- Ratgeber-/SEO-Text ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.columns h3 { margin-bottom: 8px; }
.columns p { color: var(--ink-soft); }
@media (max-width: 760px) { .columns { grid-template-columns: 1fr; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.aside { background: var(--tile); border-radius: var(--radius); padding: 24px; position: sticky; top: 24px; }
.aside h2 { font-size: 1.625rem; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--ink-soft); }

.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.empty h2 { font-size: 1.75rem; }
.city-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.city-list li { background: var(--tile); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 0.9375rem; }

/* ---------- Betreiber-Band ---------- */
.owner { background: var(--sun); }
.owner .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; padding: clamp(40px, 6vw, 64px) 0; }
.owner h2 { color: var(--ink); margin-bottom: 8px; }
.owner p { margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .owner .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #c9dce8; font-size: 0.9688rem; }
.site-footer .wrap { padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e6f1f7; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .brand { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Gelber Button im Header behält dunkle Schrift */
.nav a.btn--sun, .nav a.btn--sun:hover { color: var(--ink); }
.nav a.btn--sun:hover { background: var(--sun-dark); }
