/* CarCura Glanz & Clean Mobil Hamm – alle Flächen- und Knopffarben exakt aus Davids Design-Vorlage (IMG_3229); Knopfschrift dunkel statt weiß, damit sie lesbar ist */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --kopf: #c4e1f1;
  --hero: #daedf4;
  --grund: #f3f3e9;
  --reiter: #ece5db;
  --reiter-offen: #c9e5f2;
  --rand: #a9cfe2;
  --text: #1f2d3a;
  --text-leise: #3f4f5c;
  --blau: #1d5f86;
  --blau-marke: #2a7bab;
  --gruen: #5ed488;
  --gruen-tief: #4cc276;
  --gruen-schrift: #0d2b1a;
  --linie: #d9e4e8;
  --weiss: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
}

img { max-width: 100%; height: auto; display: block; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--blau); text-underline-offset: 3px; }
::selection { background: var(--reiter-offen); color: var(--text); }
input, textarea { caret-color: var(--blau); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--weiss); padding: 8px 16px; z-index: 50; }
.skip:focus { left: 8px; }
.nobr { white-space: nowrap; }

/* ---------- Kopf (bleibt beim Scrollen oben) ---------- */
.kopf { background: var(--kopf); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(31, 45, 58, .1); }
.kopf-innen { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 48px; }
.marke img { width: 50px; height: 45px; object-fit: contain; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.marke-name { font-size: 25px; font-weight: 600; color: #2f3d40; letter-spacing: -.01em; }
.marke-name b { font-weight: 600; color: var(--blau-marke); }
.marke-zusatz { font-size: 12px; color: var(--text-leise); white-space: nowrap; }
.menue { display: none; }
.kopf .knopf-wa.klein { margin-left: auto; }

/* ---------- Knöpfe ---------- */
.knopf-wa, .knopf-zweit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.knopf-wa { background: var(--gruen); color: var(--gruen-schrift); }
.knopf-zweit { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.knopf-wa.klein { font-size: 15px; padding: 8px 16px; }
.knopf-wa.klein span { display: none; }
.knopf-wa.klein::after { content: "WhatsApp"; }
.knopf-wa.gross { font-size: 19px; padding: 14px 28px; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.hero-text { padding: 36px 20px 32px; max-width: 640px; }
/* „Mobile Innenraumaufbereitung“ = 14,01 em breit (gemessen in Onest 500): Schrift wächst mit der Spalte, die Zeile bricht nie (Kawe 02.12.2026). */
.hero-text { container-type: inline-size; }
.h1-zeile { white-space: nowrap; }
h1 { font-size: min(36px, 7cqi); hyphens: manual; line-height: 1.12; font-weight: 600; margin: 0 0 18px; letter-spacing: -.015em; color: #24343f; }
.hero-unter { margin: 0 0 26px; color: var(--text-leise); max-width: 34em; }
.hero-neben { margin: 18px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-leise); max-width: 30em; }
.hero-bild img { width: 100%; aspect-ratio: 720 / 417; object-fit: cover; }

/* ---------- Reiter ---------- */
.reiter-bereich { max-width: 960px; margin: 0 auto; padding: 40px 16px 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.reiter { background: var(--reiter); border: 1px solid var(--rand); border-radius: var(--radius); }
.reiter[open] { background: var(--weiss); }
.reiter summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; min-height: 58px; border-radius: var(--radius);
}
.reiter summary::-webkit-details-marker { display: none; }
.reiter summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg) translateY(-3px);
}
.reiter[open] summary { background: var(--reiter-offen); border-radius: var(--radius) var(--radius) 0 0; }
.reiter[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.reiter h2 { font-size: 19px; font-weight: 500; margin: 0; letter-spacing: -.005em; }
.reiter-inhalt { padding: 28px 20px 32px; }
.text { max-width: 68ch; }
.reiter-inhalt p { margin: 0 0 16px; }
.einstieg { font-size: 20px; font-weight: 500; }

/* Pakete: Preisliste mit Haarlinien statt Karten (Kawe 02.12.2026: „so edel wie möglich“) */
.pakete { margin: 12px 0 24px; border-bottom: 1px solid var(--linie); }
.paket { border-top: 1px solid var(--linie); padding: 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; }
.paket h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .08em; color: var(--blau); }
.paket .preis { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.paket .inhalt { grid-column: 1 / -1; margin: 6px 0 0; font-size: 17px; color: var(--text-leise); }
.zusatz, .hinweis { font-size: 16px; }
.hinweis { color: var(--text-leise); }

/* Galerie */
.galerie { display: grid; gap: 12px; }
.galerie a { display: block; border-radius: 8px; overflow: hidden; background: #1e1e1e; }
.galerie img { width: 100%; aspect-ratio: 1000 / 558; object-fit: cover; }

/* Termin: WhatsApp und Formular als zwei ruhige Wege; Felder nur mit Unterstrich wie in Davids Vorlage */
.wege { display: grid; gap: 32px; margin-top: 8px; }
.weg-wa p { margin: 0 0 12px; }
.angaben { padding-left: 22px; margin: 0 0 24px; }
.angaben li { margin-bottom: 6px; }
.wa-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.wa-zeile p { margin: 0; font-size: 16px; color: var(--text-leise); }
.weg-formular { border-top: 1px solid var(--linie); padding-top: 28px; }
.weg-formular h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.formular { display: grid; gap: 18px; }
.feld { display: grid; gap: 2px; }
.feld label { font-size: 15px; color: var(--text-leise); }
.formular input, .formular textarea {
  font: inherit; font-size: 17px; padding: 8px 0; min-height: 44px; width: 100%;
  border: 0; border-bottom: 1.5px solid #9fbccb; border-radius: 0; background: transparent; color: var(--text);
}
.formular textarea { resize: vertical; min-height: 88px; }
.formular input:focus, .formular textarea:focus { border-bottom-color: var(--blau); }
.formular ::placeholder { color: #5d6c76; }
.formular button { justify-self: start; margin-top: 6px; }

/* Fuß */
.fuss { background: var(--kopf); font-size: 16px; }
.fuss-innen { max-width: 1180px; margin: 0 auto; padding: 24px 16px; }
.fuss p { margin: 0 0 8px; }
.fuss a { display: inline-block; padding: 10px 0; }
.fuss-links { display: flex; flex-wrap: wrap; column-gap: 24px; }

/* Platzhalter: fehlende Angabe, vom Kunden einzutragen */
.platzhalter { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* Rechtsseiten */
.recht { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.recht h1 { font-size: 32px; }
.recht h2 { font-size: 21px; margin: 28px 0 8px; }

/* ---------- kleine Handys ---------- */
@media (max-width: 379px) {
  .marke-zusatz { display: none; }
  .reiter summary { padding: 14px 14px 14px 16px; gap: 10px; }
  .reiter h2 { font-size: 17px; text-wrap: pretty; }
  .reiter h2 .nobr { white-space: normal; }
  .marke-name { font-size: 22px; }
  .marke img { width: 42px; height: 38px; }
  .knopf-wa.klein { padding: 8px 14px; }
  .knopf-wa.gross { font-size: 18px; padding: 14px 22px; }
}
.knopf-wa.gross { white-space: nowrap; }

/* ---------- ab Tablet ---------- */
@media (min-width: 700px) {
  .paket { grid-template-columns: 120px 100px minmax(0, 1fr); column-gap: 24px; }
  .paket .inhalt { grid-column: 3; grid-row: 1; margin: 0; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .knopf-wa.klein span { display: inline; }
  .knopf-wa.klein::after { content: none; }
}

/* ---------- Rechner ---------- */
@media (min-width: 1000px) {
  .menue { display: flex; gap: 22px; margin-left: 32px; }
  .menue a { color: var(--text); text-decoration: none; font-size: 16px; padding: 12px 0; }
  .hero { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; min-height: 460px; }
  .hero-text { padding: 56px 56px 56px max(32px, calc((100vw - 1180px) / 2 + 16px)); max-width: none; }
  h1 { font-size: min(48px, 7cqi); font-weight: 500; }
  .hero-bild { height: 100%; }
  .hero-bild img { height: 100%; aspect-ratio: auto; border-radius: 50% 0 0 50% / 62% 0 0 62%; }
  .wege { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .weg-wa { padding-right: 36px; }
  .weg-formular { border-top: 0; border-left: 1px solid var(--linie); padding: 0 0 0 36px; }
}

/* Hover nur mit Maus, am Handy nie */
@media (hover: hover) and (pointer: fine) {
  .knopf-wa:hover { background: var(--gruen-tief); }
  .knopf-zweit:hover { background: var(--text); color: var(--weiss); }
  .menue a:hover { color: var(--blau); text-decoration: underline; }
  .reiter summary:hover { background: var(--reiter-offen); }
}
