/* PW Rohrreinigung Nord – Designsystem. Farben aus Logo und Fahrzeugbeklebung, Schrift Chivo / Chivo Mono (lokal). */
@font-face { font-family: "Chivo"; src: url("../fonts/Chivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Chivo Mono"; src: url("../fonts/ChivoMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --orange: #FD4F02;        /* Logo, nur als Fläche oder Schrift auf dunkel */
  --orange-hell: #FF6A24;
  --orange-tief: #C23A00;   /* Orange als Schrift auf hell (AA) */
  --schwarz: #111315;       /* Fahrzeug-Schwarz */
  --graphit: #1A1E22;
  --graphit-2: #252A2F;
  --graphit-3: #343A40;
  --stahl: #9AA3AA;         /* leise Schrift auf dunkel (AA auf --schwarz und --graphit) */
  --weiss: #FFFFFF;
  --kalk: #F3F1ED;          /* heller Grund */
  --kalk-2: #E7E3DC;
  --tinte: #111315;
  --tinte-2: #4B5157;       /* leise Schrift auf hell */
  --frei: #3BDB8C;          /* Kamera-Einblendung „frei“ */
  --steinzeug: #B8742F;

  --display: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r1: 8px; --r2: 16px; --r3: 24px; --r4: 40px; --r5: 64px; --r6: 104px;
  --rand: clamp(20px, 5vw, 64px);
  --breite: 1240px;
  --runde: 6px;
  --kopf-h: 64px;
  --sicher-u: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 12px); }
body { margin: 0; background: var(--schwarz); color: var(--weiss); font-family: var(--text); font-size: 17px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.02em; font-weight: 900; }
.h1 { font-size: clamp(44px, 10.5vw, 112px); line-height: .93; letter-spacing: -0.035em; }
.h2 { font-size: clamp(36px, 7.4vw, 76px); line-height: .96; letter-spacing: -0.03em; }
.h3 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.1; }
.h4 { font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; max-width: 36em; }
.neben { color: var(--stahl); }
.hell .neben, .neben-hell { color: var(--tinte-2); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--r2); }
.hell .kicker { color: var(--orange-tief); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.mono { font-family: var(--mono); }
.quelle { font-size: 13px; color: var(--stahl); }
.hell .quelle { color: var(--tinte-2); }
.orange { color: var(--orange); }
.hell .orange { color: var(--orange-tief); }

/* ---------- Raster ---------- */
.innen { width: min(var(--breite), 100% - 2 * var(--rand)); margin-inline: auto; }
.abschnitt { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.hell { background: var(--kalk); color: var(--tinte); }
.weiss-grund { background: var(--weiss); color: var(--tinte); }
.dunkel { background: var(--schwarz); color: var(--weiss); }
.graphit { background: var(--graphit); color: var(--weiss); }
.kopfzeile { display: grid; gap: var(--r3); margin-bottom: clamp(36px, 6vw, 72px); }
@media (min-width: 900px) { .kopfzeile.zweispaltig { grid-template-columns: 1.1fr .9fr; align-items: end; } }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--runde); border: 0; background: var(--orange); color: var(--schwarz); font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease; letter-spacing: -0.005em; -webkit-tap-highlight-color: transparent; }
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf:hover { background: var(--orange-hell); }
.knopf:active { transform: scale(.97); }
.knopf.leise { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.knopf.leise:hover { background: rgba(255, 255, 255, .08); }
.hell .knopf.leise:hover, .weiss-grund .knopf.leise:hover { background: rgba(17, 19, 21, .06); }
.knopf.tinte { background: var(--schwarz); color: var(--weiss); }
.knopf.tinte:hover { background: var(--graphit-3); }
.knopf.weiss { background: var(--weiss); color: var(--schwarz); }
.knopf.klein { min-height: 44px; padding: 0 16px; font-size: 15px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-h); padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; display: flex; align-items: center; transition: background-color .3s ease, box-shadow .3s ease; }
.kopf.gescrollt { background: var(--schwarz); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.kopf-innen { width: min(1400px, 100% - 2 * var(--rand)); margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.kopf-logo { display: block; height: 38px; flex: none; }
.kopf-logo img { height: 100%; width: auto; }
.kopf-nav { display: none; margin-left: auto; gap: 26px; }
.kopf-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .86); padding: 10px 0; }
.kopf-nav a:hover { color: var(--weiss); }
.kopf-tel { margin-left: auto; }
.kopf-tel .lang { display: none; }
.menue-knopf { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: var(--runde); border: 0; background: rgba(255, 255, 255, .1); color: var(--weiss); cursor: pointer; }
.menue-knopf svg { width: 24px; height: 24px; }
@media (min-width: 1080px) {
  .kopf-nav { display: flex; }
  .kopf-tel { margin-left: 8px; }
  .kopf-tel .lang { display: inline; }
  .kopf-tel .kurz { display: none; }
  .menue-knopf { display: none; }
  .kopf-logo { height: 44px; }
}
@media (max-width: 420px) { .kopf-logo { height: 32px; } .kopf-tel { padding: 0 14px; } }

/* ---------- Untere Schnellleiste (Handy) ---------- */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--rand) calc(10px + var(--sicher-u)); background: var(--schwarz); box-shadow: 0 -1px 0 rgba(255, 255, 255, .1); transform: translateY(110%); transition: transform .35s ease; }
.leiste.da { transform: none; }
.leiste.da.weg { transform: translateY(110%); }
.leiste .knopf { min-height: 50px; }
@media (min-width: 900px) { .leiste { display: none; } }

/* ---------- Diagonalschnitt (Fahrzeugbeklebung) ---------- */
.diagonale { position: relative; height: clamp(56px, 9vw, 120px); background: var(--weiss); overflow: hidden; }
.diagonale::before { content: ""; position: absolute; inset: 0; background: var(--schwarz); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); }
.diagonale.von-graphit::before { background: var(--graphit); }
.diagonale.umgekehrt { background: var(--schwarz); }
.diagonale.umgekehrt::before { background: var(--kalk); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0); }
.diagonale .streif { position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: var(--orange); transform-origin: 0 0; }

/* ---------- Blätter (Dialoge) ---------- */
.blatt-grund { position: fixed; inset: 0; z-index: 80; background: rgba(5, 6, 7, .62); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.blatt-grund.offen { opacity: 1; pointer-events: auto; }
.blatt { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 88svh; overflow: auto; overscroll-behavior: contain; background: var(--graphit); color: var(--weiss); border-radius: 16px 16px 0 0; padding: 8px var(--rand) calc(28px + var(--sicher-u)); transform: translateY(105%); transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
.blatt.offen { transform: none; }
.blatt.hell { background: var(--weiss); color: var(--tinte); }
.blatt-griff { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); margin: 4px auto 10px; }
.blatt.hell .blatt-griff { background: rgba(0, 0, 0, .18); }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: -8px; background: inherit; padding: 8px 0 12px; z-index: 2; }
.blatt-zu { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; flex: none; }
.blatt.hell .blatt-zu { background: rgba(0, 0, 0, .06); }
.blatt-zu svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .blatt { left: auto; top: 0; bottom: 0; width: min(560px, 92vw); max-height: none; border-radius: 0; transform: translateX(105%); padding-top: 24px; }
  .blatt-griff { display: none; }
}
.menue-liste { list-style: none; margin: 0; padding: 0; }
.menue-liste a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; text-decoration: none; font-size: 22px; font-weight: 800; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menue-liste svg { width: 20px; height: 20px; color: var(--orange); }

/* ---------- Kamera-Einblendung (OSD), wiederverwendbar ---------- */
.osd-text { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 1px rgba(0, 0, 0, .9); }
.code { display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; background: var(--orange); color: var(--schwarz); }
.code.leise { background: transparent; color: var(--orange); box-shadow: inset 0 0 0 1.5px currentColor; }
.hell .code.leise { color: var(--orange-tief); }

/* ---------- Einblenden ---------- */
.zeigen { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.zeigen.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .zeigen { opacity: 1; transform: none; transition: none; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--schwarz); color: var(--weiss); padding: var(--r5) 0 calc(var(--r5) + 70px + var(--sicher-u)); border-top: 1px solid rgba(255, 255, 255, .08); }
.fuss-raster { display: grid; gap: var(--r4); }
@media (min-width: 900px) { .fuss-raster { grid-template-columns: 1.3fr 1fr 1fr; } .fuss { padding-bottom: var(--r5); } }
.fuss h3 { font-size: 15px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stahl); margin-bottom: 12px; font-weight: 600; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fuss li a, .fuss li span { display: inline-flex; min-height: 36px; align-items: center; }
.fuss-unten { margin-top: var(--r4); padding-top: var(--r3); border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--stahl); }
.fuss-unten a { display: inline-flex; min-height: 44px; align-items: center; }
.fuss-powered { margin-left: auto; color: var(--stahl); opacity: .8; font-size: 13px; letter-spacing: .02em; }
.fuss-powered:hover { opacity: 1; color: var(--weiss); }
@media (max-width: 699px) { .fuss-powered { margin-left: 0; } }

/* ---------- Erreichbarkeit ---------- */
.status-zeile { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .03em; margin: 0; }
.status-zeile .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--stahl); flex: none; }
.status-zeile .punkt.offen { background: var(--frei); box-shadow: 0 0 0 4px rgba(59, 219, 140, .18); }
