@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --petrol: #064558;
  --beton: #F3F1EC;
  --schiefer: #4F5F66;
  --rot: #C63A21;
  --rot-dunkel: #A82F1A;
  --welle: #66ACBB;
  --weiss: #FFFFFF;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --breite: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--petrol);
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--petrol); color: var(--weiss); padding: 0.75rem 1rem;
}
.skip:focus { top: 1rem; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: var(--weiss);
  border-bottom: 1px solid #DAD6CD;
}
.kopf-innen { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; flex-wrap: wrap; }
.logo { display: block; padding: 0.5rem 0; }
.logo img { width: 170px; }
.kopf nav { margin-left: auto; }
.kopf nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.kopf nav a, .kopf-tel {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500;
}
.kopf nav a:hover { text-decoration: underline; }
.kopf-tel { font-weight: 700; white-space: nowrap; }

@media (max-width: 760px) {
  .kopf { position: static; }
  .kopf-innen { gap: 0 1rem; padding-bottom: 0.25rem; }
  .kopf nav { margin-left: 0; order: 3; width: 100%; }
  .kopf-tel { margin-left: auto; }
}

/* Hero: Foto voll, Text auf einer Petrol-Fläche darunter bzw. links unten */
.hero { position: relative; background: var(--petrol); color: var(--weiss); }
.hero-bild { width: 100%; height: min(78vh, 720px); object-fit: cover; object-position: 50% 60%; }
.hero-text { padding-top: 2rem; padding-bottom: 2.5rem; }
.hero-text p { max-width: 38rem; font-size: 1.15rem; }
@media (min-width: 900px) {
  .hero-text { position: absolute; left: 0; right: 0; bottom: 3rem; padding: 0 1.25rem; }
  .tafel { background: var(--petrol); max-width: 36rem; padding: 2rem 2.25rem 2.25rem; }
  .tafel h1 { font-size: 3.1rem; }
}


.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.3rem;
  background: var(--rot); color: var(--weiss);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none; border: 2px solid var(--rot); border-radius: 3px; cursor: pointer;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf-hell { background: transparent; border-color: var(--weiss); color: var(--weiss); }
.knopf-hell:hover { background: var(--weiss); color: var(--petrol); border-color: var(--weiss); }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 8vw, 6rem) 0; }
.beton { background: var(--beton); }
.einleitung { max-width: 40rem; font-size: 1.15rem; color: var(--schiefer); margin-bottom: 2.5rem; }
.hinweis { max-width: 40rem; margin-top: 2rem; }

.zwei { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .zwei { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.pool-art img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1.25rem; }
.pool-art p { max-width: 34rem; }

/* Technikraum mit Markierungen */
.technik { background: var(--beton); }
.technik-bild { margin: 0; display: grid; gap: 2rem; }
@media (min-width: 960px) { .technik-bild { grid-template-columns: 3fr 2fr; align-items: start; } }
.markiert { position: relative; }
.punkt {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rot); color: var(--weiss);
  font: 700 1.2rem/1 var(--sans); text-decoration: none;
  border: 3px solid var(--weiss);
}
.punkt:hover { background: var(--petrol); }
.p1 { --x: 16%;   --y: 70%; }
.p2 { --x: 56%;   --y: 53%; }
.p3 { --x: 35.5%; --y: 15%; }
.p4 { --x: 48%;   --y: 21%; }
.p5 { --x: 41.5%; --y: 73%; }
.p6 { --x: 75%;   --y: 31%; }
@media (max-width: 480px) { .punkt { width: 2.1rem; height: 2.1rem; font-size: 1rem; border-width: 2px; } }

.technik-liste { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.technik-liste li {
  counter-increment: t; position: relative;
  padding: 0 0 1rem 2.75rem; margin-bottom: 1rem;
  border-bottom: 1px solid #DAD6CD;
}
.technik-liste li::before {
  content: counter(t);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rot); color: var(--weiss); font-weight: 700; font-size: 0.95rem;
}
.technik-liste li:target { background: var(--weiss); outline: 2px solid var(--rot); outline-offset: 0.4rem; }

/* Ablauf: echte Reihenfolge */
.ablauf { list-style: none; counter-reset: a; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 860px) { .ablauf { grid-template-columns: repeat(4, 1fr); } }
.ablauf li { counter-increment: a; border-top: 3px solid var(--petrol); padding-top: 1rem; }
.ablauf h3::before { content: counter(a) ". "; }

/* Galerie */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 600px) { .galerie { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .galerie .breit { grid-column: span 2; grid-row: span 2; }
}
.galerie figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; flex: 1; }
.galerie figcaption { font-size: 0.95rem; color: var(--schiefer); padding-top: 0.4rem; }

/* Schauraum */
.schauraum { align-items: start; }
.schauraum-bilder { display: grid; gap: 1rem; }
.schauraum-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 1.5rem; margin: 2rem 0 0; }
.daten dt { font-weight: 700; }
.daten dd { margin: 0; overflow-wrap: anywhere; }
.daten a { display: inline-block; min-height: 44px; padding-top: 0.6rem; }
@media (max-width: 420px) { .daten { grid-template-columns: 1fr; gap: 0.2rem; } .daten dd { margin-bottom: 0.8rem; } }

/* Marken */
.marken { display: grid; gap: 1.25rem 2.5rem; margin: 0; }
@media (min-width: 600px) { .marken { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .marken { grid-template-columns: repeat(4, 1fr); } }
.marken div { border-top: 1px solid #CFCAC0; padding-top: 0.75rem; }
.marken dt { font-weight: 700; }
.marken dd { margin: 0; color: var(--schiefer); }

/* Kontakt */
.kontakt { background: var(--petrol); color: var(--weiss); }
.kontakt a { color: var(--weiss); }
.gross-tel { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3rem); font-weight: 560; margin: 1.5rem 0 0.5rem; }
.gross-tel a { text-decoration-color: var(--welle); }
.kontakt p a { display: inline-block; min-height: 44px; }

.formular { background: var(--weiss); color: var(--petrol); padding: clamp(1.25rem, 4vw, 2rem); border-radius: 3px; }
.formular a { color: var(--petrol); }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.pflicht { font-weight: 400; color: var(--schiefer); font-size: 0.9rem; }
.feld input, .feld textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 0.7rem 0.8rem; min-height: 48px;
  border: 2px solid #8C9599; border-radius: 3px; background: var(--weiss);
}
.feld input:focus-visible, .feld textarea:focus-visible { border-color: var(--petrol); outline-offset: 1px; }
.feld [aria-invalid="true"] { border-color: var(--rot); }
.fehler { color: var(--rot); font-weight: 600; margin: 0.35rem 0 0; }
.fehler::before { content: "Fehler: "; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.klein { font-size: 0.9rem; }
.entwurf-hinweis { background: var(--beton); padding: 0.5rem 0.75rem; font-size: 0.9rem; }
.erfolg { margin-top: 1rem; font-weight: 600; }

/* Fuß */
.fuss { background: #04303D; color: var(--weiss); padding: 2.5rem 0; }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.fuss-logo { width: 150px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fuss ul a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss .klein { width: 100%; margin: 0; color: #C9D6DA; }

/* Unterseiten (Impressum) */
.text-seite { padding: 3rem 0 5rem; }
.text-seite .wrap { max-width: 46rem; }
.text-seite dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; }
.text-seite dt { font-weight: 700; }
.text-seite dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .text-seite dl { grid-template-columns: 1fr; } .text-seite dd { margin-bottom: 0.6rem; } }
.text-seite .notiz { background: var(--beton); padding: 0.75rem 1rem; }
