/* ============================================================================
   Garten-Pools.de — Vorschau
   Standard-Aufbau ohne SEO-Beiwerk, wie besprochen.

   FARBEN, GEMESSEN (nicht geschaetzt):
   Die Logofarben #38A035 und #1B85D8 sind Markenfarben. Als Textfarbe halten
   sie WCAG AA nicht (3,36:1 bzw. 4,17:1 auf Weiss). Logos sind davon
   ausgenommen, Fliesstext und Schaltflaechen nicht. Deshalb zwei Saetze:
   die Markenfarben fuer den Schriftzug, abgedunkelte Varianten fuer alles,
   was Text traegt.
     #28802B  Schaltflaeche, weisse Schrift    4,98:1  ✓
     #1E6B20  Gruen als Textfarbe auf Weiss    6,61:1  ✓
     #8FD35F  Akzent auf dunklem Hero          9,15:1  ✓
     #1670C0  Blau funktional auf Weiss        5,11:1  ✓
   ========================================================================== */

:root {
  --marke-gruen:  #38A035;
  --marke-blau:   #1B85D8;

  --gruen:        #28802B;
  --gruen-dunkel: #1E6B20;
  --gruen-leucht: #8FD35F;
  --blau:         #1670C0;

  --nacht:        #0C231D;
  --text:         #16261F;
  --leise:        #5B6E64;
  --weiss:        #FFFFFF;
  --flaeche:      #F4F7F3;
  --linie:        #DCE5DC;

  --radius:       10px;
  --schatten:     0 1px 2px rgb(12 35 29 / .05), 0 10px 30px -14px rgb(12 35 29 / .25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--gruen-dunkel); }

.huelle { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.springlink {
  position: absolute; left: -9999px;
  background: var(--gruen); color: #fff; padding: .75rem 1.25rem; z-index: 99;
}
.springlink:focus { left: 1rem; top: 1rem; }

/* ---------- Schaltflaechen ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf--gruen { background: var(--gruen); color: #fff; }
.knopf--gruen:hover { background: var(--gruen-dunkel); color: #fff; }
.knopf--rand { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
.knopf--rand:hover { background: rgb(255 255 255 / .12); color: #fff; }
.knopf--weiss { background: #fff; color: var(--gruen-dunkel); }
.knopf--weiss:hover { background: var(--flaeche); color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; border-radius: 3px; }

/* ---------- Kopf ---------- */
.kopf { background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf__innen { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
/* Kopfzeile: echtes Logo als Bild. Verhaeltnis 5,63 — nur Schriftzug und
   Claim, ohne das Wellen-Sonne-Zeichen. Grund: gestapelt waere der Claim bei
   Kopfzeilenhoehe nur vier Pixel hoch und damit unlesbar.
   In der DUNKLEN Fusszeile bleibt der Schriftzug als Text: dort zeigt die
   freigestellte Sonne einen grauen Hof, weil ihr Schein halbtransparent ist. */
.logo { display: block; margin-right: auto; line-height: 0; }
.logo img { height: 38px; width: auto; }
@media (min-width: 900px) { .logo img { height: 52px; } }
.logo__zeichen { width: 34px; height: 34px; flex: none; }
.logo__wort {
  font-family: "Figtree", sans-serif; font-weight: 800; font-size: 1.35rem;
  letter-spacing: -.02em; line-height: 1; color: var(--marke-gruen);
}
.logo__wort b { color: var(--marke-blau); font-weight: 800; }
.logo__wort span { color: var(--marke-gruen); font-weight: 600; }
.logo__claim {
  display: block; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--leise); font-weight: 600; margin-top: .2rem;
}

/* Auf dem Handy kein Burgermenue, sondern eine umbrechende Zeile unter dem
   Logo. Fuer drei Punkte ist ein Menue Overkill — und "gar keine Navigation"
   ist keine Loesung, auch nicht in einer Vorschau. */
.kopf__innen { flex-wrap: wrap; padding-block: .75rem; }
.navi { display: flex; gap: .2rem; order: 3; width: 100%; overflow-x: auto; padding-bottom: .15rem; }
.navi a {
  padding: .55rem .8rem; border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 500;
  white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px;
}
.navi a:hover { background: var(--flaeche); color: var(--gruen-dunkel); }
@media (min-width: 900px) {
  .kopf__innen { flex-wrap: nowrap; padding-block: 0; }
  .navi { order: 0; width: auto; gap: .35rem; overflow: visible; padding-bottom: 0; }
}
/* Auf dem Handy muss Logo + Schaltflaeche in EINE Zeile passen, sonst nimmt
   der Kopf ein Drittel des ersten Bildschirms. Gemessen bei 375px:
   Logo 1,35rem + Knopf in voller Groesse = Umbruch. Deshalb beides kleiner. */
.kopf .knopf { min-height: 44px; padding: .55rem .9rem; font-size: .9rem; }
@media (max-width: 899px) {
  .logo__wort { font-size: 1.05rem; }
  .logo__claim { font-size: .52rem; letter-spacing: .18em; }
  .logo__zeichen { width: 28px; height: 28px; }
  .kopf .knopf { padding: .5rem .75rem; font-size: .85rem; }
  .kopf .knopf svg { display: none; }
}
@media (min-width: 900px) { .kopf .knopf { padding: .6rem 1.15rem; font-size: 1rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--nacht); color: #fff; overflow: hidden; }
.hero__bild { position: absolute; inset: 0; z-index: -2; }
/* Das <picture> ist von sich aus inline und fuellt den Kasten sonst nicht. */
.hero__bild picture { display: block; width: 100%; height: 100%; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(12 35 29 / .86) 0%, rgb(12 35 29 / .74) 60%, rgb(12 35 29 / .88) 100%);
}
@media (min-width: 900px) {
  .hero::after {
    background: linear-gradient(100deg, rgb(12 35 29 / .94) 0%, rgb(12 35 29 / .82) 42%, rgb(12 35 29 / .30) 100%);
  }
}
.hero__innen { padding-block: clamp(3rem, 10vw, 6.5rem); position: relative; }
.hero__text { max-width: 40rem; }
.hero__eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: rgb(255 255 255 / .85); margin-bottom: 1.4rem;
}
.hero__eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--gruen-leucht); flex: none; }
.hero h1 {
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.3rem); line-height: 1.03; letter-spacing: -.02em;
}
.hero h1 em { display: block; font-style: italic; color: var(--gruen-leucht); }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: rgb(255 255 255 / .9); max-width: 34rem; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__punkte { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1.6rem; font-size: .9rem; color: rgb(255 255 255 / .85); }
.hero__punkte span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__punkte svg { width: 15px; height: 15px; color: var(--gruen-leucht); flex: none; }

.beispiel {
  background: #fff; color: var(--text); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--schatten);
  margin-top: 2.5rem; max-width: 20rem;
}
@media (min-width: 1040px) {
  .beispiel { position: absolute; right: 0; bottom: clamp(2rem, 6vw, 4rem); margin-top: 0; }
}
.beispiel__label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gruen-dunkel); }
.beispiel__titel { font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; font-weight: 600; margin-top: .35rem; }
.beispiel__detail { font-size: .82rem; color: var(--leise); margin-top: .15rem; }
.beispiel__preis { font-weight: 700; color: var(--blau); margin-top: .6rem; font-variant-numeric: tabular-nums; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(3rem, 8vw, 5.5rem); }
.abschnitt--flaeche { background: var(--flaeche); }
.abschnitt__kopf { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.abschnitt__kopf h2 {
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.75rem); line-height: 1.1; letter-spacing: -.015em;
}
.abschnitt__kopf p { margin-top: .9rem; color: var(--leise); font-size: 1.05rem; }

/* ---------- Karten ---------- */
.raster { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .raster--3 { grid-template-columns: repeat(3, 1fr); } }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.karte__bild { aspect-ratio: 4 / 3; background: var(--flaeche); }
.karte__bild picture { display: block; width: 100%; height: 100%; }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.karte__inhalt { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.karte__inhalt h3 { font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.karte__inhalt p { color: var(--leise); font-size: .95rem; }
.karte__preis { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--gruen-dunkel); font-variant-numeric: tabular-nums; }

/* ---------- Ablauf ---------- */
.ablauf { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.75rem; counter-reset: s; }
@media (min-width: 780px) { .ablauf { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.ablauf li { counter-increment: s; }
.ablauf li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; margin-bottom: .9rem;
  border-radius: 50%; background: var(--gruen); color: #fff;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.ablauf h3 { font-family: "Newsreader", Georgia, serif; font-size: 1.2rem; font-weight: 600; margin-bottom: .35rem; }
.ablauf p { color: var(--leise); font-size: .95rem; }

/* ---------- Aufruf ---------- */
.aufruf {
  background: var(--nacht); color: #fff;
  border-radius: 16px; padding: clamp(1.75rem, 5vw, 3.25rem);
}
.aufruf h2 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.12; }
.aufruf p { margin-top: .9rem; color: rgb(255 255 255 / .88); max-width: 38rem; }
.aufruf__knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Fuss ---------- */
.fuss { background: var(--nacht); color: rgb(255 255 255 / .82); padding-block: 3rem 2rem; margin-top: 0; }
.fuss__raster { display: grid; gap: 2rem; }
@media (min-width: 780px) { .fuss__raster { grid-template-columns: 1.4fr 1fr 1fr; } }
.fuss h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .6); margin-bottom: .9rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fuss a { color: inherit; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss__unten {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem;
}
.fuss .logo__wort { color: #fff; }
.fuss .logo__wort b { color: var(--gruen-leucht); }
.fuss .logo__wort span { color: #fff; }
.fuss .logo__claim { color: rgb(255 255 255 / .55); }

/* ---------- Vorschau-Hinweis ---------- */
.vorschau {
  background: #FFF4D6; border-bottom: 1px solid #E8D9A8;
  color: #4A3A10; font-size: .85rem; padding: .5rem 0; text-align: center;
}

/* ============================================================================
   Kostenrechner
   ========================================================================== */
.rechner { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 940px) { .rechner { grid-template-columns: minmax(0,1fr) 21rem; } }

.schritte { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.schritt__kopf { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1rem; }
.schritt__nr {
  flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gruen); color: #fff;
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transform: translateY(.15rem);
}
.schritt__titel { font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.schritt__hinweis { font-size: .9rem; color: var(--leise); margin: -.5rem 0 1rem 2.55rem; }
.schritt[data-gesperrt="ja"] { opacity: .45; pointer-events: none; }

.optionen { display: grid; gap: .625rem; }
@media (min-width: 560px) { .optionen--zwei { grid-template-columns: 1fr 1fr; } }
.option { display: block; cursor: pointer; position: relative; }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option__flaeche {
  display: flex; align-items: flex-start; gap: .875rem; height: 100%;
  padding: 1rem 1.1rem;
  background: #fff; border: 1.5px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten);
  transition: border-color .15s, background-color .15s;
}
.option:hover .option__flaeche { border-color: var(--gruen); }
.option input:focus-visible + .option__flaeche { outline: 3px solid var(--gruen); outline-offset: 2px; }
.option input:checked + .option__flaeche { border-color: var(--gruen); background: #F2F8F1; }

.haken {
  flex: none; width: 1.25rem; height: 1.25rem; margin-top: .18rem;
  border: 1.5px solid var(--linie); border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.haken svg { width: .68rem; height: .68rem; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s; }
.option input:checked + .option__flaeche .haken { background: var(--gruen); border-color: var(--gruen); }
.option input:checked + .option__flaeche .haken svg { opacity: 1; transform: scale(1); }

/* Die drei Zeilen sind <span> — ohne display:block laufen sie in einer Zeile
   zusammen. Genau das ist beim ersten Bauen passiert. */
.option__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.option__titel  { display: block; font-weight: 600; line-height: 1.3; }
.option__detail { display: block; font-size: .875rem; color: var(--leise); margin-top: .2rem; }
.option__preis  { display: block; margin-top: .45rem; font-size: .95rem; font-weight: 700; color: var(--gruen-dunkel); font-variant-numeric: tabular-nums; }
.option__preis--null { color: var(--leise); font-weight: 500; }

.panel { background: var(--nacht); color: #fff; border-radius: 16px; padding: 1.5rem 1.4rem; box-shadow: var(--schatten); }
@media (min-width: 940px) { .panel { position: sticky; top: 6rem; } }
.panel h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .62); margin-bottom: 1.1rem; }
.posten { display: grid; gap: .8rem; min-height: 5.5rem; }
.posten__leer { color: rgb(255 255 255 / .6); font-size: .95rem; }
.posten__zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; animation: rein .22s ease both; }
@keyframes rein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .posten__zeile { animation: none; } }
.posten__was { font-size: .95rem; }
.posten__was small { display: block; color: rgb(255 255 255 / .6); font-size: .82rem; }
.posten__wert { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

.summe { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / .16); }
.summe__label { font-size: .82rem; color: rgb(255 255 255 / .62); }
.summe__wert {
  font-family: "Newsreader", Georgia, serif; font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin-top: .15rem; color: var(--gruen-leucht);
}
.summe__hinweis { font-size: .82rem; color: rgb(255 255 255 / .62); margin-top: .7rem; line-height: 1.45; }

/* Gesperrte Schaltflaeche muss auch gesperrt aussehen — sonst klickt man
   dagegen und nichts passiert. */
.knopf:disabled { opacity: .42; cursor: not-allowed; }
.knopf:disabled:hover { background: #fff; color: var(--gruen-dunkel); }
