/* Startseite Digital Lotse. Farben, Schriften und Formen nach docs/gestaltung.md,
   Maße für das Handy nach dem Muster vorlagen/vorschau/handy-aktualisieren.html (Handy A). */

/* Schriften liegen auf dem eigenen Server, nichts wird von Google geladen. Lizenz: SIL OFL 1.1 */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("schriften/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("schriften/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("schriften/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 800; font-display: swap; src: url("schriften/fraunces-latin-800-normal.woff2") format("woff2"); }

:root {
  --dunkel: #3b1f4a;      /* Aubergine */
  --tief: #2a1535;        /* Aubergine tief, Schrift auf Kupfer */
  --leuchten: #d4824a;    /* Kupfer */
  --auf-leuchten: #2a1535;
  --flaeche: #f8e8da;     /* Kupfer hell */
  --papier: #fffaf4;
  --grund: #e8e0d7;
  --linie: #e6d3c1;
  --rund: 28px;
  --titel: Fraunces, Georgia, serif;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--grund); }

body {
  font-family: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--dunkel);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--leuchten); outline-offset: 3px; }

.seite {
  background: var(--papier);
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
}

/* Auf dem Rechner wie ein Handy in der Mitte zeigen */
@media (min-width: 520px) {
  .seite { margin: 32px auto; border-radius: 36px; box-shadow: 0 2px 10px rgba(42, 21, 53, .08), 0 30px 60px -30px rgba(42, 21, 53, .35); }
}

/* Kopf: dunkel, unten weicher Bogen, oben rechts der Kupferkreis */
.kopf {
  position: relative;
  overflow: hidden;
  background: var(--dunkel);
  color: #fff;
  padding: 22px 22px 96px;
  border-radius: 0 0 50% 50% / 0 0 40px 40px;
}
.kopf::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--leuchten) 0%, rgba(212, 130, 74, .85) 45%, rgba(212, 130, 74, 0) 72%);
  opacity: .9;
}
.kopf > * { position: relative; z-index: 1; }

.kopf-zeile { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.marke { font-size: 20px; text-decoration: none; }

/* Logo: Wortmarke in Fraunces, der i-Punkt ist der Kupferkreis */
.wort { font-family: var(--titel); font-weight: 800; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.ipunkt { position: relative; }
.ipunkt::after {
  content: "";
  position: absolute;
  left: 50%; top: .1em;
  width: .24em; height: .24em;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--leuchten);
}
/* Dunkle Unterlage, weil der Kontoknopf auf dem Kupferkreis liegt */
.kopf-konto { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 700; text-decoration: none; background: var(--tief); padding: 6px 18px 6px 14px; border-radius: 999px; }
.kopf-konto svg { width: 22px; height: 22px; }

.kopf h1 { font-family: var(--titel); font-weight: 800; font-size: 36px; line-height: 1.08; margin-bottom: 14px; }
.einleitung { font-size: 19px; opacity: .92; }

/* Knöpfe: Höhe 56 px, Rundung damit gleich der Flächen-Rundung */
.knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--rund);
  border: 2px solid transparent;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.knopf.kupfer { background: var(--leuchten); color: var(--auf-leuchten); }
.knopf.hell { border-color: rgba(255, 255, 255, .85); color: #fff; }
.knopf.dunkel { background: var(--dunkel); color: #fff; }
.knopf.umriss { border-color: var(--dunkel); color: var(--dunkel); }
.knoepfe { display: grid; gap: 12px; margin-top: 28px; }

/* Anschluss: das Foto liegt halb auf dem Kopf und verbindet ihn mit dem Inhalt */
.anschluss { display: flex; flex-direction: column; gap: 20px; padding: 0 16px; margin-top: -72px; position: relative; z-index: 2; }
.versprechen {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--papier);
  color: var(--dunkel);
  border: 1.5px solid var(--linie);
  border-radius: var(--rund);
  padding: 22px 22px;
}
.versprechen svg { flex: none; width: 30px; height: 30px; }
.versprechen p { font-family: var(--titel); font-weight: 600; font-size: 21px; line-height: 1.25; }

/* Bildflächen, bis die Higgsfield-Bilder da sind */
.bild {
  position: relative;
  border-radius: var(--rund);
  background: #e9dfd4;
}
.bild::after {
  content: attr(data-bild);
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  font: 500 13px/1.35 system-ui, sans-serif;
  color: #fff;
  background: rgba(42, 21, 53, .55);
  padding: 7px 10px;
  border-radius: 12px;
}
.held-bild { aspect-ratio: 4 / 3.6; box-shadow: 0 18px 30px -22px rgba(42, 21, 53, .6); }
.bild-breit { aspect-ratio: 4 / 3; margin-bottom: 22px; }
img.bild { display: block; width: 100%; height: auto; object-fit: cover; }
/* Hinweis auf KI-erzeugte Bilder, unten rechts im Bild */
.ki-bild { position: relative; }
.ki-bild:has(> .bild-breit) { margin-bottom: 22px; }
.ki-bild > .bild-breit { margin-bottom: 0; }
.ki-hinweis {
  position: absolute;
  right: 14px; bottom: 14px;
  font: 700 10px/1 "Atkinson Hyperlegible", system-ui, sans-serif;
  color: rgba(255, 250, 244, .7);
  text-shadow: 0 0 2px rgba(42, 21, 53, .35);
}

/* Abschnitte */
.abschnitt { padding: 48px 16px 8px; }
.abschnitt > p { margin-bottom: 8px; }
.abschnitt > .knopf { margin-top: 22px; }

/* Teil-Überschrift als abgerundetes Band */
.teil {
  display: block;
  background: var(--dunkel);
  color: #fff;
  font-family: var(--titel);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  padding: 12px 20px;
  border-radius: 18px;
  margin-bottom: 20px;
}

.gross { font-family: var(--titel); font-weight: 800; font-size: 26px; line-height: 1.15; }
.klein { font-size: 17px; }
.karte .gross { margin-bottom: 10px; }
.abstand { margin-bottom: 20px; }

/* Schritte: helle Fläche, die Nummer sitzt als Kupferkreis auf dem Rand */
.schritte { list-style: none; padding: 0; display: grid; gap: 16px; }
.schritte li {
  position: relative;
  background: var(--flaeche);
  border-radius: var(--rund);
  padding: 24px 20px 24px 42px;
  margin-left: 22px;
}
.nr {
  position: absolute;
  left: -22px; top: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--leuchten);
  color: var(--auf-leuchten);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--titel);
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 0 0 6px var(--papier);
}
.schritte p { font-weight: 700; font-size: 20px; line-height: 1.35; }

/* Karten: Preise und Enkel-Telefon */
.preise { display: grid; gap: 16px; }
/* Hell mit feiner Linie: die Kupfer-helle Fläche bleibt den Schritten vorbehalten */
.karte { background: var(--papier); border: 1.5px solid var(--linie); border-radius: var(--rund); padding: 24px 22px 22px; }
.dauer { font-weight: 700; }
.zahl { font-family: var(--titel); font-weight: 800; font-size: 44px; line-height: 1.1; margin: 2px 0 6px; }
.karte .klein { margin-bottom: 20px; }
.zahl-zeile { margin: 18px 0 20px; }
.zahl-zeile .zahl { font-size: 34px; }

/* Hilfe am Ende: dunkel, der Kupferkreis taucht unten rechts wieder auf */
.hilfe {
  position: relative;
  overflow: hidden;
  margin: 56px 16px 0;
  background: var(--dunkel);
  color: #fff;
  border-radius: var(--rund);
  padding: 28px 22px;
}
.hilfe::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -110px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(212, 130, 74, .55), rgba(212, 130, 74, 0) 70%);
}
.hilfe > * { position: relative; z-index: 1; }
.hilfe-mail { display: block; font-family: var(--titel); font-weight: 800; font-size: 25px; text-decoration: none; margin: 4px 0 14px; overflow-wrap: anywhere; }
.hilfe .klein { opacity: .85; max-width: 18em; }

.fuss { display: flex; gap: 24px; padding: 28px 22px 40px; font-size: 16px; }

/* Wörter mit Bindestrich, die nicht getrennt werden sollen (E-Mail) */
.ohne-umbruch { white-space: nowrap; }

/* Infoseiten (Über uns, Fragen, Rechtliches) */
.person { margin: 0; }
.person figcaption { font-weight: 700; font-size: 17px; margin: 12px 6px 0; }
.erzaehlung > p { margin-bottom: 16px; }

/* Häufige Fragen: zum Aufklappen */
/* Ohne Bild unter dem Kopf: weniger Luft bis zum ersten Band */
.kopf:has(+ .abschnitt) { padding-bottom: 64px; }
.kopf + .abschnitt { padding-top: 32px; }
/* Fehlerseite: unter dem Kopf folgt direkt der Fuß */
.kopf:has(+ .fuss) { padding-bottom: 64px; }
.fragen-liste { display: grid; gap: 12px; }
.klappe { background: var(--papier); border: 1.5px solid var(--linie); border-radius: var(--rund); }
.klappe summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px;
  padding: 16px 18px 16px 20px;
  font-family: var(--titel); font-weight: 600; font-size: 20px; line-height: 1.25;
}
.klappe summary::-webkit-details-marker { display: none; }
.klappe summary::after {
  content: "+";
  flex: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dunkel); border-radius: 50%;
  font: 400 26px/1 system-ui, sans-serif;
}
.klappe[open] summary::after { content: "2"; }
.klappe summary:focus-visible { outline: 3px solid var(--leuchten); outline-offset: 3px; border-radius: var(--rund); }
.klappe p { padding: 0 20px 20px; }

/* Verträge hier kündigen: Formular ohne Anmeldung */
.kuendigen-form { display: grid; gap: 22px; }
.kuendigen-form .feld { display: grid; gap: 8px; font-weight: 700; border: 0; padding: 0; min-width: 0; }
.kuendigen-form legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.feld-hilfe { font-weight: 400; font-size: 17px; }
.kuendigen-form input[type=text], .kuendigen-form input[type=email], .kuendigen-form input[type=tel], .kuendigen-form textarea {
  font: inherit; font-weight: 400; color: var(--dunkel); width: 100%;
  min-height: 56px; padding: 12px 16px;
  border: 1.5px solid #bfa996; border-radius: 16px; background: #fff;
}
.kuendigen-form input:focus, .kuendigen-form textarea:focus { outline: 3px solid var(--leuchten); outline-offset: 1px; }
.kuendigen-form [aria-invalid="true"] { border-color: #c0392b; }
.wahl { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 400; cursor: pointer; }
.wahl input { width: 26px; height: 26px; flex: none; accent-color: var(--dunkel); }
.feld-fehler { color: #a8321f; font-weight: 700; font-size: 17px; }
.hinweis { background: var(--papier); border: 1.5px solid var(--linie); border-radius: var(--rund); padding: 16px 20px; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Felder erscheinen erst, wenn die passende Auswahl getroffen ist */
.nur-enkel-telefon, .nur-lern-app, .nur-sofort, .nur-anders { display: none !important; }
.kuendigen-form:has([value=enkel_telefon]:checked) .nur-enkel-telefon,
.kuendigen-form:has([value=lern_app]:checked) .nur-lern-app,
.kuendigen-form:has([value=sofort]:checked) .nur-sofort,
.kuendigen-form:has([value=anders]:checked) .nur-anders { display: grid !important; }
.kuendigen-form:has([value=lern_app]:checked) .hinweis.nur-lern-app { display: block !important; }
.kuendigen-form .knopf { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.umfrage { gap: 8px; margin-top: 16px; }
.umfrage .knopf { margin-top: 14px; }

/* Bestätigung: die Angaben als Liste auf heller Karte */
.angaben { display: grid; gap: 10px; }
.angaben dt { font-size: 16px; }
.angaben dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.nach-karte { margin: 18px 0; }
button.knopf.drucken { width: 100%; font: inherit; font-weight: 700; cursor: pointer; background: none; }
@media print {
  .kopf-konto, .hilfe, .fuss, .drucken, .nicht-drucken { display: none !important; }
  .kopf { background: none; color: var(--dunkel); border-bottom: 2px solid var(--dunkel); border-radius: 0; padding-bottom: 24px; }
  .kopf::before { display: none; }
  .seite { box-shadow: none; margin: 0; }
}

/* Der Fuß bekommt mehr Links, als in eine Zeile passen */
.fuss { flex-wrap: wrap; gap: 12px 16px; }
