/* Unterseiten. Zwei Teile:
   body.seite    Lösungen und Kontakt im Glas-Look der Startseite, braucht scrollcraft.css und start.css.
   body.flach    Produktseite (docs/website-produktseite-entwurf.md) und Rechtstexte, laden nur diese Datei. */

/* Kopf liegt fest oben. Ohne Film darunter braucht er eigenen Grund, sonst läuft Text durch. */
.seite .kopf {
  background: color-mix(in oklab, var(--sc-canvas) 84%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--sc-hairline);
}
.seite main { display: block; }
.seite :is(h1, h2, h3) {
  margin: 0;
  font-family: var(--sc-font-display); font-weight: 700;
  color: var(--sc-ink); text-wrap: balance;
}
.seite h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.05; letter-spacing: var(--sc-track-tight); }
.seite h3 { font-size: var(--sc-t-lg); line-height: 1.2; letter-spacing: var(--sc-track-snug); }
.lead {
  margin: var(--sc-5) 0 0; max-width: 38ch;
  font-size: var(--sc-t-lg); line-height: 1.5; text-wrap: pretty;
  color: color-mix(in oklab, var(--sc-ink) 86%, var(--sc-ink-soft));
}

/* ---------- Oben: Standbild Tresen, ruhig und abgedunkelt ---------- */
.oben {
  position: relative; isolation: isolate; overflow: clip;
  min-height: min(86svh, 50rem);
  display: grid; align-items: end;
  padding: calc(var(--kopf-h) + var(--sc-8)) 0 clamp(3rem, 8vh, 6rem);
}
.oben__bild, .oben__bild img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.oben__bild img { object-fit: cover; object-position: 50% 45%; }
.oben::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, color-mix(in oklab, var(--sc-canvas) 92%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 70%, transparent) 45%, color-mix(in oklab, var(--sc-canvas) 40%, transparent) 100%),
    linear-gradient(to bottom, transparent 55%, var(--sc-canvas) 100%);
}
.oben__text { width: 100%; }
.ueber {
  margin: 0 0 var(--sc-3);
  font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.oben h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 5rem); line-height: 1.02; letter-spacing: var(--sc-track-tight); }

/* ---------- Abschnitte und Raster ---------- */
.abschnitt { padding-block: clamp(3.5rem, 7vw, 6.5rem) 0; }
.raster { display: grid; gap: var(--sc-4); margin-top: var(--sc-6); }
.raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.abschnitt > .raster:first-child { margin-top: 0; }

/* Kacheln wie auf der Startseite, hier in voller Breite des Rasters. */
.seite .kachel { padding: var(--sc-5) var(--sc-6); }
.seite .kachel h2 { font-size: var(--sc-t-lg); }

/* ---------- Kleiner Kopfbereich (Lösungen, Kontakt) ---------- */
.oben--klein { min-height: min(56svh, 32rem); }

/* ---------- Lösungen ---------- */
.seite .kacheln { max-width: none; margin-top: 0; }

/* ---------- Kontakt ---------- */
.seite { color-scheme: dark; } /* native Auswahlliste dunkel */
.seite .glas.post { max-width: 40rem; margin-top: 0; padding: var(--sc-6); }
.formular select {
  width: 100%; box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font: inherit; font-size: var(--sc-t-base); font-weight: 400; color: var(--sc-ink);
  background: color-mix(in oklab, var(--sc-surface) 88%, transparent);
  border: 0; border-radius: var(--sc-r-sm);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 22%, transparent);
}
.formular select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--sc-accent-text); }
.seite .formular textarea { min-height: 9rem; }
.lead a { color: var(--sc-accent-text); }
/* Fehler vom Server ohne JavaScript, per :target sichtbar. */
.meldung {
  display: none; max-width: 40rem; margin: 0 0 var(--sc-4);
  padding: var(--sc-3) var(--sc-4); border-radius: var(--sc-r-md);
  border: 1px solid var(--licht); background: color-mix(in oklab, var(--sc-surface) 70%, transparent);
  color: var(--sc-ink); font-size: var(--sc-t-sm); line-height: 1.5;
  scroll-margin-top: calc(var(--kopf-h) + var(--sc-5));
}
.meldung:target { display: block; }

/* ---------- Schluss und Fuß ---------- */
.unten-rand { padding-bottom: var(--sc-6); }
.unten-rand .fuss { padding-top: var(--sc-5); border-top: 1px solid var(--sc-hairline); }

/* ---------- Telefon ---------- */
@media (max-width: 860px) {
  .raster--2 { grid-template-columns: 1fr; }
  .oben { min-height: min(78svh, 40rem); }
  .oben::before {
    background:
      linear-gradient(to bottom, color-mix(in oklab, var(--sc-canvas) 62%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 86%, transparent) 45%, var(--sc-canvas) 100%);
  }
  .oben h1 { font-size: clamp(2.2rem, 1.2rem + 5vw, 3rem); }
  .lead { font-size: var(--sc-t-base); }
  .seite .kachel, .seite .glas.post { padding: var(--sc-5); }
  .oben--klein { min-height: min(46svh, 24rem); }
  .unten-rand .fuss { margin-top: var(--sc-7); }
}

/* ======================================================================
   body.flach. Werte der Produktseite 1:1 aus docs/website-produktseite-entwurf.md,
   Inline-Styles dort sind hier Klassen. Keine Kästen, Struktur aus Schrift und Linien.
   ====================================================================== */
/* Gleiche Schriftdatei wie start.css. Lädt eine Seite beide, holt der Browser sie einmal. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
}
body.flach { color-scheme: dark; margin: 0; background: #0B1518; color: #EEF4F3; font-family: "Geist", system-ui, sans-serif; }
.flach a { color: #EEF4F3; }
.flach a:hover { color: #FFFFFF; }

/* Gemeinsame Breite aller Bänder */
.flach .kopf, .flach .band, .flach .fuss {
  max-width: 1280px; width: 100%; margin: 0 auto; box-sizing: border-box;
  padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px);
}

/* Kopf (Markup aus build.mjs). Kein Glas, liegt im Fluss. */
.flach .kopf { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.flach .marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #EEF4F3; }
.flach .marke i { display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: #56707A; }
.flach .marke b { font-weight: 700; }
.flach .menu { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 500; list-style: none; margin: 0; padding: 0; }
.flach .menu a, .flach .menu a:hover { text-decoration: none; color: #A9BDBD; }
.flach .menue > a, .flach .menue > a:hover { color: #EEF4F3; }
.flach .menue { position: relative; }
.flach .unter {
  display: none; position: absolute; top: 100%; right: -12px; z-index: 10; min-width: 13rem;
  list-style: none; margin: 0; padding: 8px 12px;
  background: #0B1518; border: 1px solid rgba(238,244,243,0.14); border-radius: 6px;
}
.flach .menue:hover .unter, .flach .menue:focus-within .unter { display: block; }
.flach .unter a { display: block; padding: 8px 0; color: #EEF4F3; }
.flach .unter a:hover { color: #FFFFFF; }

/* Bänder */
.flach .band-oben { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.flach .band-teil { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 48px; }
.flach .band-nach { padding-top: 24px; padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; }
.flach .band-schluss { padding-top: 48px; padding-bottom: clamp(72px, 10vw, 120px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }

.flach .label { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #A9BDBD; }
.flach h1 { margin: 0; font-size: clamp(44px, 2rem + 5vw, 104px); line-height: 0.98; font-weight: 700; letter-spacing: -0.03em; max-width: 1000px; color: #EEF4F3; }
.flach .unterzeile { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.flach .lead { margin: 0; font-size: clamp(17px, 1rem + 0.5vw, 22px); line-height: 1.45; max-width: 540px; color: #C7D2D7; }
.flach .status { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #A9BDBD; }
.flach .punkt { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #F77620; }

/* Platzhalter, bis die App-Screenshots da sind */
.flach .held { height: 640px; margin-top: 24px; width: 100%; border-radius: 14px; background: #102C2A; box-shadow: inset 0 0 0 1px rgba(238,244,243,0.08); display: flex; align-items: center; justify-content: center; color: #6F8A8E; font-size: 14px; letter-spacing: 0.04em; }
.flach .bilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.flach .bild { height: 420px; border-radius: 14px; background: #102C2A; box-shadow: inset 0 0 0 1px rgba(238,244,243,0.08); display: flex; align-items: flex-end; padding: 24px; box-sizing: border-box; color: #A9BDBD; font-size: 14px; }

/* Kopfzeile einer Sektion: Überschrift links, Stichwort rechts, Linie darunter */
.flach .sektionskopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(238,244,243,0.14); padding-bottom: 24px; }
.flach h2 { margin: 0; font-size: clamp(30px, 1.5rem + 1.8vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }

/* Funktionen */
.flach .liste { display: flex; flex-direction: column; }
.flach .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid rgba(238,244,243,0.1); align-items: start; }
.flach .zeile h3 { margin: 0; font-size: clamp(22px, 1.2rem + 0.8vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.flach .zeile p { margin: 0; font-size: 17px; line-height: 1.55; color: #A9BDBD; max-width: 460px; }

/* Preise */
.flach .preise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flach .tarif { display: flex; flex-direction: column; gap: 24px; padding: 8px 40px; border-right: 1px solid rgba(238,244,243,0.1); }
.flach .tarif:first-child { padding-left: 0; }
.flach .tarif:last-child { padding-right: 0; border-right: none; }
.flach .tarif .label--hell { display: flex; align-items: center; gap: 10px; color: #EEF4F3; }
.flach .preis { display: flex; align-items: baseline; gap: 10px; }
.flach .betrag { font-size: clamp(40px, 2rem + 1.5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.flach .pro { font-size: 15px; color: #A9BDBD; }
.flach .tarif ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.45; color: #C7D2D7; }
.flach .tarif li { padding-top: 14px; border-top: 1px solid rgba(238,244,243,0.1); }
.flach .fussnote { margin: 0; font-size: 14px; line-height: 1.5; color: #A9BDBD; max-width: 640px; }

/* Hilfe und Datenschutz als Zeilen-Links */
.flach .verweis { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid rgba(238,244,243,0.14); text-decoration: none; }
.flach .verweis:last-child { border-bottom: 1px solid rgba(238,244,243,0.14); }
.flach .verweis > span:first-child { display: flex; flex-direction: column; gap: 6px; }
.flach .verweis-titel { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.flach .verweis-text { font-size: 15px; color: #A9BDBD; }
.flach .pfeil { font-size: 22px; color: #56707A; }

/* Schluss mit dem einzigen Knopf der Seite */
.flach .band-schluss h2 { font-size: clamp(36px, 1.5rem + 3vw, 64px); line-height: 1; letter-spacing: -0.03em; max-width: 640px; }
.flach .pille, .flach .pille:hover { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: #EEF4F3; color: #0B1518; font-weight: 600; font-size: 16px; text-decoration: none; }

/* Fuß (Markup aus build.mjs): Linie über die volle Breite, Inhalt in der Seitenbreite */
.flach .fuss-rand { width: 100%; border-top: 1px solid rgba(238,244,243,0.1); }
.flach .fuss { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: #A9BDBD; }
.flach .fuss > div { order: -1; } /* © links, Links rechts wie im Entwurf */
.flach .fuss nav { display: flex; gap: 24px; }
.flach .fuss a, .flach .fuss a:hover { text-decoration: none; color: #A9BDBD; }

@media (max-width: 700px) {
  .flach .zeile { grid-template-columns: 1fr; gap: 12px; }
  .flach .preise { grid-template-columns: 1fr; gap: 40px; }
  .flach .tarif { padding: 0; border-right: none; }
  .flach .bilder { grid-template-columns: 1fr; }
  .flach .held { height: 260px; }
  .flach .bild { height: 220px; }
}

/* ---------- Rechtstexte (body.flach mit article.text). Ruhige Textspalte, Linien statt Kästen. ---------- */
.flach .text { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); }
.flach .text h1 { font-size: clamp(36px, 1.5rem + 3vw, 56px); line-height: 1.02; max-width: 820px; hyphens: auto; overflow-wrap: break-word; }
.flach .entwurf { margin: 24px 0 0; display: flex; align-items: center; gap: 12px; font-size: 15px; color: #A9BDBD; }
.flach .stand { margin: 8px 0 0; font-size: 15px; color: #A9BDBD; }
.flach .text h2 { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid rgba(238,244,243,0.14); font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; max-width: 720px; }
.flach .text h3 { margin: 32px 0 0; font-size: 17px; line-height: 1.35; font-weight: 600; max-width: 720px; }
.flach .text :is(p, ul, ol, address) { margin: 16px 0 0; max-width: 720px; font-size: 17px; line-height: 1.6; color: #C7D2D7; font-style: normal; }
.flach .text :is(ul, ol) { padding-left: 1.3em; }
.flach .text li + li { margin-top: 8px; }
.flach .text strong { color: #EEF4F3; font-weight: 600; }
.flach .text code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.88em; color: #EEF4F3; }
.flach .text a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
/* Tabellen nehmen die volle Seitenbreite, auf dem Telefon scrollen sie in sich. */
.flach .tabelle { margin-top: 24px; overflow-x: auto; }
.flach .tabelle table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; color: #C7D2D7; }
.flach .tabelle th { text-align: left; padding: 0 16px 12px 0; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #A9BDBD; border-bottom: 1px solid rgba(238,244,243,0.14); }
.flach .tabelle td { padding: 14px 16px 14px 0; vertical-align: top; border-bottom: 1px solid rgba(238,244,243,0.1); }
@media (max-width: 700px) {
  .flach .text h2 { margin-top: 40px; }
  .flach .text :is(p, ul, ol, address) { font-size: 16px; }
}
