/* apex Bewertungsprüfung – gemeinsames Stylesheet für index.html, datenschutz.html, agb.html
   Keine Drittanbieter-Aufrufe: Systemschrift-Stack, keine Webfonts, keine externen Bilder. */

:root {
  --weiss: #ffffff;
  --grau: #f5f5f7;
  --tinte: #1d1d1f;
  --gedaempft: #6e6e73;      /* 5,1:1 auf Weiss, 4,7:1 auf --grau */
  --linie: #e8e8ed;
  --linie-stark: #d2d2d7;
  --feldrand: #86868b;       /* 3,6:1 auf Weiss (WCAG 1.4.11) */
  --akzent: #1f5fd1;         /* 5,9:1 auf Weiss */
  --akzent-dunkel: #174aa6;
  --ok: #137a3f;
  --ok-flaeche: #e7f4ec;
  --fehler: #b3261e;
  --fehler-flaeche: #fbeae8;
  --hinweis: #7a4b00;
  --hinweis-flaeche: #fdf3dc;
  --breite: 1024px;
  --breite-schmal: 780px;
  --radius-karte: 28px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
h1, h2, h3 { overflow-wrap: break-word; }
h2 { font-size: clamp(32px, 5vw, 56px); }

a { color: var(--akzent); text-underline-offset: 0.15em; }
a:hover { color: var(--akzent-dunkel); }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 16px; }
[hidden] { display: none !important; }

.sprunglink {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: var(--tinte); color: var(--weiss); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.sprunglink:focus { top: 12px; color: var(--weiss); }

.innen { max-width: var(--breite); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.innen--schmal { max-width: var(--breite-schmal); }
.gedaempft { color: var(--gedaempft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Schaltflächen */
.knopf {
  display: inline-block; background: var(--akzent); color: var(--weiss);
  font: inherit; font-size: 17px; line-height: 1.3; padding: 13px 26px;
  border: 0; border-radius: 980px; text-decoration: none; cursor: pointer; text-align: center;
}
.knopf:hover { background: var(--akzent-dunkel); color: var(--weiss); }
.knopf:disabled { opacity: 0.6; cursor: progress; }
.knopf--klein { font-size: 14px; padding: 8px 16px; }
.textlink { font-size: 17px; text-decoration: none; padding: 13px 4px; }
.textlink:hover { text-decoration: underline; }

/* Kopfzeile */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf__innen {
  padding-top: 12px; padding-bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px;
}
.marke { color: var(--tinte); text-decoration: none; white-space: nowrap; margin-right: auto; }
.marke:hover { color: var(--tinte); }
.marke-wort { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.marke-zusatz { font-size: 13px; color: var(--gedaempft); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; }
.nav__link { color: var(--tinte); text-decoration: none; padding: 8px 0; }
.nav__link:hover { color: var(--akzent); }

/* Einstieg */
.einstieg__innen {
  padding-top: 96px; padding-bottom: 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.einstieg__zielgruppe { font-weight: 600; color: var(--akzent); }
.einstieg h1 { font-size: clamp(36px, 7vw, 80px); max-width: 15ch; }
.einstieg__unterzeile {
  font-size: clamp(21px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; max-width: 26ch;
}
.einstieg__unterzeile span { display: inline-block; }
.einstieg__text { font-size: 19px; color: var(--gedaempft); max-width: 58ch; }
.einstieg__aktionen { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 8px; }
.einstieg__beispiel { padding-bottom: 96px; }

.fallakte {
  background: var(--grau); border-radius: var(--radius-karte); padding: clamp(24px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center;
}
.fallakte__bewertung { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.fallakte__etikett { font-size: 14px; font-weight: 600; color: var(--gedaempft); }
.fallakte__sterne { font-size: 26px; letter-spacing: 3px; line-height: 1; }
.fallakte__sterne span { color: #c7c7cc; }
.fallakte__zitat { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.fallakte__stand {
  flex: 1 1 360px; min-width: 0; margin: 0; background: var(--weiss); border-radius: 20px; padding: 8px 24px;
}
.fallakte__zeile {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px;
  padding: 16px 0; font-size: 15px; border-top: 1px solid var(--linie);
}
.fallakte__zeile:first-child { border-top: 0; }
.fallakte__zeile dt { color: var(--gedaempft); }
.fallakte__zeile dd { margin: 0; font-weight: 500; }
.fallakte__zeile dd.ist-ok { color: var(--ok); font-weight: 600; }
.fallakte__zeile dd.ist-stark { font-weight: 600; }

/* Abschnitte */
.abschnitt { background: var(--weiss); }
.abschnitt--grau { background: var(--grau); }
.abschnitt__innen { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
.abschnitt__kopf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.abschnitt__kopf h2 { max-width: 18ch; }
.abschnitt__kopf--breit h2 { max-width: none; }
.abschnitt__einleitung { font-size: 21px; color: var(--gedaempft); max-width: 54ch; }

.karten { display: flex; flex-wrap: wrap; gap: 20px; }
.karte {
  flex: 1 1 340px; min-width: 0; background: var(--weiss); border-radius: var(--radius-karte); padding: 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.karte h3 { font-size: 28px; }
.karte ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.karte__fussnote { font-size: 15px; color: var(--gedaempft); }

/* Ablauf */
.schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 40px 32px; }
.schritt { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.schritt__nr { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; color: var(--akzent); line-height: 1; }
.schritt h3 { font-size: 22px; }
.schritt p { color: var(--gedaempft); }

/* Preis */
.preis__betrag-karte { gap: 10px; padding: 44px 40px; }
.preis__etikett { font-weight: 600; color: var(--gedaempft); }
.preis__betrag { font-size: clamp(52px, 8vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.preis__staffel { font-size: 19px; }
.preis__klein { font-size: 14px; color: var(--gedaempft); margin-top: 12px; }
.preis__liste-karte { gap: 0; padding: 44px 40px; }
.preis__liste { margin: 0; }
.preis__posten { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.preis__posten dd { margin: 0; font-weight: 700; white-space: nowrap; }
.preis__erklaerung { color: var(--gedaempft); padding-top: 18px; }
.preis__erklaerung + .preis__erklaerung { padding-top: 14px; }
.preis__erklaerung strong { color: var(--tinte); }

/* Fragen */
.fragen h2 { text-align: center; margin-bottom: 40px; }
.abschnitt__innen.fragen__innen { gap: 0; }
.frage { border-top: 1px solid var(--linie-stark); }
.frage:last-of-type { border-bottom: 1px solid var(--linie-stark); }
.frage summary {
  cursor: pointer; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; padding: 22px 36px 22px 0;
  list-style: none; position: relative;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--gedaempft); border-bottom: 2px solid var(--gedaempft); transform: rotate(45deg);
}
.frage[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.frage h3 { display: inline; font-size: inherit; letter-spacing: inherit; line-height: 1.3; }
.frage p { color: var(--gedaempft); padding: 0 0 22px; margin-top: -10px; }

/* Formular */
.anfrage__innen { gap: 40px; }
.anfrage__kopf { gap: 12px; }
.anfrage__kopf .abschnitt__einleitung { max-width: 46ch; }
.formular {
  background: var(--weiss); border-radius: var(--radius-karte); padding: clamp(24px, 5vw, 44px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld--breit, .formular__zeile { grid-column: 1 / -1; }
.feld label { font-size: 14px; font-weight: 600; }
.feld__hilfe { font-weight: 400; color: var(--gedaempft); }
.feld input, .feld textarea {
  font: inherit; color: var(--tinte); background: var(--weiss);
  border: 1px solid var(--feldrand); border-radius: 12px; padding: 14px 16px; width: 100%;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input::placeholder { color: var(--gedaempft); opacity: 1; }
.feld input:focus-visible, .feld textarea:focus-visible { outline-offset: 1px; border-radius: 12px; }
.feld [aria-invalid="true"] { border-color: var(--fehler); box-shadow: 0 0 0 1px var(--fehler); }
.feld__fehler { font-size: 14px; color: var(--fehler); font-weight: 500; }
.formular__pflicht { font-size: 14px; color: var(--gedaempft); }

.haken { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--gedaempft); }
.haken input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--akzent); }
.haken label { font-weight: 400; }
.haken-fehler { margin-top: 6px; }

.formular__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.formular__direkt { font-size: 15px; color: var(--gedaempft); }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.zusatzfeld { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.meldung { border-radius: 16px; padding: 18px 20px; font-size: 16px; }
.meldung:focus { outline: none; }
.meldung strong { display: block; margin-bottom: 4px; font-size: 17px; }
.meldung--ok { background: var(--ok-flaeche); color: #0c4d27; }
.meldung--fehler { background: var(--fehler-flaeche); color: #7a1a14; }
.meldung--hinweis { background: var(--hinweis-flaeche); color: #5c3900; }
.meldung a { color: inherit; font-weight: 600; }

/* Fusszeile */
.fuss { background: var(--grau); border-top: 1px solid var(--linie-stark); margin-top: auto; }
.fuss__innen { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 13px; color: var(--gedaempft); }
.fuss address { font-style: normal; flex: 1 1 240px; min-width: 0; }
.fuss__hinweis { flex: 2 1 320px; min-width: 0; }
.fuss__links { flex: 1 1 200px; min-width: 0; }
.fuss__links ul { list-style: none; margin: 0; padding: 0; }
.fuss a { display: inline-block; padding: 3px 0; }

/* Unterseiten (Datenschutz, AGB) */
.rechtsseite__innen { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.rechtsseite h1 { font-size: clamp(28px, 6vw, 56px); hyphens: auto; }
.rechtsseite h2 { font-size: 24px; }
.platzhalter {
  border: 2px dashed var(--hinweis); background: var(--hinweis-flaeche); color: #5c3900;
  border-radius: var(--radius-karte); padding: clamp(24px, 5vw, 44px); display: flex; flex-direction: column; gap: 10px;
}
.platzhalter__titel { font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.kontaktblock { background: var(--grau); border-radius: var(--radius-karte); padding: clamp(24px, 5vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.kontaktblock address { font-style: normal; }

/* Schmale Bildschirme */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .innen { padding-left: 20px; padding-right: 20px; }
  .kopf__innen { gap: 4px 16px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 0 12px; font-size: 14px; border-top: 1px solid var(--linie); margin-top: 6px; }
  .nav__link { padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center; }
  .kopf .knopf--klein { min-height: 44px; display: inline-flex; align-items: center; }
  .fuss__links li a, .fuss a { display: inline-block; padding: 6px 0; }
  .einstieg__innen { padding-top: 56px; padding-bottom: 40px; gap: 20px; }
  .einstieg__unterzeile span { display: inline-block; }
.einstieg__text { font-size: 17px; }
  .einstieg__beispiel { padding-bottom: 64px; }
  .einstieg__aktionen .knopf { width: 100%; }
  .abschnitt__innen { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .abschnitt__einleitung { font-size: 18px; }
  .karte, .preis__betrag-karte, .preis__liste-karte { padding: 28px 24px; }
  .karte h3 { font-size: 24px; }
  .schritte { gap: 28px; }
  .schritt { flex-basis: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 8px; }
  .schritt__nr { grid-row: 1 / span 2; font-size: 40px; }
  .frage summary { font-size: 17px; }
  .formular { grid-template-columns: minmax(0, 1fr); }
  .formular__aktionen .knopf { width: 100%; }
  .fallakte__stand { padding: 4px 18px; }
  .rechtsseite__innen { padding-top: 48px; padding-bottom: 64px; }
}

@media (max-width: 380px) {
  .kopf .knopf--klein { font-size: 13px; padding: 7px 12px; }
  .kopf__innen { gap: 4px 8px; }
}

@media print {
  .kopf .nav, .sprunglink, .formular { display: none; }
  .frage p { display: block; }
}
