/* Hörst du mich? – Handyhilfe zu Hause
   Lesbarkeit zuerst: große Schrift, hoher Kontrast, große Klickflächen. */

:root {
  --grund: #fbf6ee;
  --flaeche: #ffffff;
  --sand: #f3e9d8;
  --linie: #e0d3bd;
  --text: #1f2328;
  --leise: #464b52;
  --petrol: #0b5563;
  --petrol-dunkel: #083f4a;
  --petrol-hell: #e3eff1;
  --koralle: #b93d0c;
  --koralle-hell: #fbe7dc;
  --fehlt: #ffe36e;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite: 72rem;
  --rund: 14px;
  --schatten: 0 1px 2px rgba(31, 35, 40, .06), 0 6px 20px rgba(31, 35, 40, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 125%;            /* 20px Grundschrift */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.gross { font-size: 145%; }  /* „Schrift größer“ */

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--petrol); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--petrol-dunkel); }

:focus-visible {
  outline: 4px solid var(--koralle);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.leise { color: var(--leise); }

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

.sprung {
  position: absolute; left: -9999px; top: 0;
  background: var(--petrol); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.sprung:focus { left: 1rem; top: 1rem; }

/* ---------- Kopf ---------- */
.kopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.kopf .huelle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem;
}
.marke {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text);
}
.marke svg { width: 2.4rem; height: 2.4rem; flex: none; }
.marke-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.marke-zusatz { display: block; font-family: var(--sans); font-weight: 400; font-size: .75rem; color: var(--leise); }

.kopf-rechts { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.kopf-tel {
  font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--petrol-dunkel);
  display: inline-flex; align-items: center; gap: .4rem;
}
.kopf-tel svg { width: 1.2em; height: 1.2em; }

.schrift-knopf {
  font: inherit; font-size: .85rem; font-weight: 600;
  background: var(--petrol-hell); color: var(--petrol-dunkel);
  border: 2px solid transparent; border-radius: 999px;
  padding: .45rem .9rem; min-height: 44px; cursor: pointer;
}
.schrift-knopf:hover { border-color: var(--petrol); }
.schrift-knopf[aria-pressed="true"] { background: var(--petrol); color: #fff; }

.navi { background: var(--petrol-dunkel); }
.navi ul {
  list-style: none; margin: 0 auto; padding: 0 1rem; max-width: var(--breite);
  display: flex; flex-wrap: wrap; gap: 0 .2rem;
}
.navi a {
  display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .75rem .8rem; border-bottom: 4px solid transparent;
}
.navi a:hover { background: rgba(255,255,255,.08); }
.navi a[aria-current="page"] { border-bottom-color: #f4a261; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .7rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--petrol);
  background: var(--petrol); color: #fff;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
}
.knopf:hover { background: var(--petrol-dunkel); border-color: var(--petrol-dunkel); color: #fff; }
.knopf svg { width: 1.2em; height: 1.2em; flex: none; }
.knopf-zweit { background: transparent; color: var(--petrol-dunkel); }
.knopf-zweit:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Bereiche ---------- */
.bereich { padding: 3.2rem 0; }
.bereich-sand { background: var(--sand); }
.bereich-weiss { background: var(--flaeche); }
.bereich-kopf { max-width: 44rem; margin-bottom: 2rem; }

/* Bühne Startseite */
.buehne { padding: 3rem 0 3.2rem; }
.buehne .huelle {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .buehne .huelle { grid-template-columns: 1.25fr .75fr; }
}
.buehne h1 { margin-bottom: .3em; }
.buehne h1 .frage { color: var(--koralle); }
.buehne-unter { font-size: 1.25rem; max-width: 36rem; }
.vertrauen-zeile {
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: var(--leise);
}
.vertrauen-zeile li { display: flex; align-items: center; gap: .4rem; }
.vertrauen-zeile svg { width: 1.1em; height: 1.1em; color: var(--petrol); flex: none; }
.buehne-bild { max-width: 22rem; margin: 0 auto; width: 100%; }

/* Karten */
.karten { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--schatten);
  display: flex; flex-direction: column; gap: .5rem;
  text-decoration: none; color: var(--text);
}
a.karte:hover { border-color: var(--petrol); }
a.karte:hover .karte-mehr { text-decoration: underline; }
.karte-symbol {
  width: 3rem; height: 3rem; border-radius: 12px; background: var(--petrol-hell); color: var(--petrol);
  display: grid; place-items: center;
}
.karte-symbol svg { width: 1.7rem; height: 1.7rem; }
.karte h3 { margin: .3rem 0 0; }
.karte-spruch { font-family: var(--serif); font-style: italic; color: var(--koralle); font-size: .95rem; margin: 0; }
.karte p { margin: 0; color: var(--leise); font-size: .95rem; }
.karte-fuss {
  margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--linie);
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap;
}
.preis { font-weight: 800; font-size: 1.35rem; color: var(--text); white-space: nowrap; }
.preis small { font-weight: 600; font-size: .7rem; color: var(--leise); }
.karte-mehr { color: var(--petrol); font-weight: 700; font-size: .9rem; }

/* Schritte */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: schritt; }
@media (min-width: 640px) { .schritte { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .schritte { grid-template-columns: repeat(4, 1fr); } }
.schritte li { counter-increment: schritt; background: var(--flaeche); border-radius: var(--rund); padding: 1.3rem; border: 1px solid var(--linie); }
.schritte li::before {
  content: counter(schritt);
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--koralle); color: #fff; font-weight: 800; margin-bottom: .7rem;
}
.schritte h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.schritte p { margin: 0; color: var(--leise); font-size: .95rem; }

/* Häkchen-Listen */
.haken { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.haken li { position: relative; padding-left: 2.1rem; margin-bottom: .65rem; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--petrol-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5563' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.liste-punkte { padding-left: 1.3rem; }
.liste-punkte li { margin-bottom: .5rem; }

/* Zwei Spalten */
.zwei { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .zwei { grid-template-columns: 1fr 1fr; } }

/* Produktseite */
.produkt-kopf { padding: 2.6rem 0 2rem; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.brotkrumen { font-size: .85rem; margin-bottom: 1rem; color: var(--leise); }
.brotkrumen a { color: var(--leise); }
.produkt-spruch { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--koralle); margin-bottom: .6rem; }
.produkt-kurz { font-size: 1.2rem; max-width: 40rem; }

.produkt-raster { display: grid; gap: 2.4rem; grid-template-columns: 1fr; padding-top: 2.6rem; padding-bottom: 3rem; }
@media (min-width: 960px) { .produkt-raster { grid-template-columns: 1fr 21rem; align-items: start; } }
.produkt-inhalt h2 { font-size: 1.5rem; margin-top: 2rem; }
.produkt-inhalt h2:first-child { margin-top: 0; }

.preiskasten {
  background: var(--flaeche); border: 2px solid var(--petrol); border-radius: var(--rund);
  padding: 1.5rem; box-shadow: var(--schatten);
}
@media (min-width: 960px) { .preiskasten { position: sticky; top: 1rem; } }
.preiskasten .preis { font-size: 2.2rem; display: block; line-height: 1.1; }
.preiskasten dl { margin: 1rem 0 1.2rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; font-size: .9rem; }
.preiskasten dt { color: var(--leise); }
.preiskasten dd { margin: 0; font-weight: 600; }
.preiskasten .knopf { width: 100%; }
.preiskasten-klein { font-size: .8rem; color: var(--leise); margin: .9rem 0 0; }

.hinweis {
  background: var(--koralle-hell); border-left: 6px solid var(--koralle); border-radius: 10px;
  padding: 1rem 1.2rem; margin: 1.5rem 0;
}
.hinweis p:last-child { margin-bottom: 0; }

/* Fragen */
.fragen details {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px;
  margin-bottom: .7rem;
}
.fragen summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; min-height: 44px;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--petrol); }
.fragen details[open] summary::after { content: "–"; }
.fragen details > div { padding: 0 1.2rem 1rem; color: var(--leise); }

/* Kontaktband */
.anruf-band { background: var(--petrol-dunkel); color: #fff; padding: 2.6rem 0; }
.anruf-band .huelle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.anruf-band h2 { color: #fff; margin: 0 0 .2rem; }
.anruf-band p { margin: 0; color: #d6e6e9; }
.anruf-band .knopf { background: #fff; color: var(--petrol-dunkel); border-color: #fff; font-size: 1.2rem; }
.anruf-band .knopf:hover { background: var(--petrol-hell); }

.tel-gross { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; color: var(--petrol-dunkel); text-decoration: none; }

/* Fuß */
.fuss { background: #1c2226; color: #cfd6da; padding: 2.4rem 0 6rem; font-size: .9rem; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fuss h3 { color: #fff; font-family: var(--sans); font-size: 1rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .4rem; }
.fuss-unten { border-top: 1px solid #343c42; margin-top: 2rem; padding-top: 1rem; }

/* Anruf-Leiste unten auf dem Handy */
.anruf-leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--flaeche); border-top: 1px solid var(--linie);
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.anruf-leiste .knopf { width: 100%; }
@media (min-width: 760px) { .anruf-leiste { display: none; } .fuss { padding-bottom: 2.4rem; } }

/* Fehlende Angaben (nur im Entwurf sichtbar, build.py --pruefen schlägt an) */
mark.fehlt { background: var(--fehlt); color: #000; padding: 0 .25em; border-radius: 4px; font-weight: 700; }

/* Textseiten */
.textseite { max-width: 46rem; padding-top: 2.6rem; padding-bottom: 3rem; }
.textseite h2 { font-size: 1.4rem; margin-top: 2rem; }

@media print {
  .kopf-rechts, .navi, .anruf-leiste, .anruf-band { display: none; }
  body { background: #fff; }
}

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

/* Handy: Nummer steht unten in der Anruf-Leiste, Kopf bleibt schlank */
@media (max-width: 759px) {
  .kopf-tel { display: none; }
  .kopf .huelle { flex-wrap: nowrap; }
  .marke-name, .marke-zusatz { white-space: nowrap; }
  .marke-name { font-size: 1.05rem; }
  .marke svg { width: 2rem; height: 2rem; }
  .schrift-knopf { font-size: .75rem; padding: .4rem .7rem; }
}
