/* Diktaro Produktseite. Farben aus DiktatApp.swift (enum Ton), Stand 2026-09-12. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("schriften/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("schriften/literata.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --tinte: #0E0F17;
  --glut-tief: #331761;
  --glut-hell: #DB3D70;
  --glut-knopf: #ED5C85;
  --knochen: #F5F2EB;
  --mint: #7AE0C7;
  --mint-dunkel: #056B59;
  --grund-hell: #F7F5F0;
  --nebel-dunkel: #8C8A9E;
  --nebel-hell: #5C596E;
  --glut-text-hell: #B81F52;
  --buehne-oben: #221739;

  /* Rollen, helle Vorgabe */
  --grund: var(--grund-hell);
  --grund-zwei: #EFEBE3;
  --text: var(--tinte);
  --text-neben: var(--nebel-hell);
  --leit: var(--glut-text-hell);
  --bestaetigung: var(--mint-dunkel);
  --linie: rgba(14, 15, 23, 0.14);
  --knopf-grund: var(--tinte);
  --knopf-text: var(--knochen);
  --fokus: var(--glut-text-hell);

  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  --ease-aus: cubic-bezier(0.23, 1, 0.32, 1);
  --breite: 72rem;
  --rand: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: var(--tinte);
    --grund-zwei: #15161F;
    --text: var(--knochen);
    --text-neben: var(--nebel-dunkel);
    --leit: var(--glut-knopf);
    --bestaetigung: var(--mint);
    --linie: rgba(245, 242, 235, 0.16);
    --knopf-grund: var(--knochen);
    --knopf-text: var(--tinte);
    --fokus: var(--mint);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.1; letter-spacing: -0.018em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.lese {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 62ch;

}
.fussnote { color: var(--text-neben); font-size: 0.9375rem; max-width: 62ch; }
a[href^="tel:"], .lese a[href^="http"] { display: inline-block; padding: 0.55rem 0; margin: -0.55rem 0; }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
.sprung { position: absolute; left: 1rem; top: -4rem; background: var(--knopf-grund); color: var(--knopf-text); padding: 0.6rem 1rem; border-radius: 999px; z-index: 20; }
.sprung:focus { top: 1rem; }

/* Knöpfe: eine Form, Kapsel, wie die Balken des Zeichens */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--knopf-grund); color: var(--knopf-text);
  transition: transform 160ms var(--ease-aus), background-color 160ms ease;
}
.knopf:active { transform: scale(0.97); }
.knopf--glut { background: var(--glut-knopf); color: var(--tinte); }
.knopf--glas { background: #21212A; color: var(--knochen); border-color: #5A5962; }
.knopf--klein { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.9375rem; }
.knopf--kopf { min-height: 2.75rem; }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background: var(--leit); color: var(--knochen); }
  .knopf--glut:hover { background: var(--knochen); color: var(--tinte); }
  .knopf--glas:hover { background: #33333C; color: var(--knochen); }
}

/* Kopf */
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--breite); margin: 0 auto; padding: 0.9rem var(--rand);
  position: relative;
}
.marke { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 2.75rem; }
.marke__zeichen { width: 2.5rem; height: 2.5rem; }
.marke__wort { font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.menue { display: flex; align-items: center; gap: 1.5rem; }
.menue ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.menue li a { text-decoration: none; padding: 0.6rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.menue li a:hover { border-bottom-color: var(--leit); }
.menue-knopf {
  display: none; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0 0.9rem; border-radius: 999px;
  background: transparent; color: var(--text); border: 1px solid var(--linie); font: inherit; font-weight: 600; cursor: pointer;
}
.menue-knopf__balken { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

/* Bühne */
.buehne {
  background-color: var(--tinte);
  background-image: linear-gradient(160deg, var(--buehne-oben) 0%, var(--tinte) 55%, var(--tinte) 100%);
  color: var(--knochen);
  padding: clamp(2rem, 5vw, 4.5rem) var(--rand) 1.5rem;
}
.buehne__innen {
  max-width: var(--breite); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.buehne h1 { color: var(--knochen); }
.buehne__satz { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: #CFCBD6; max-width: 40ch; }
.buehne__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.buehne__beleg {
  max-width: var(--breite); margin: 2rem auto 0; padding-top: 1rem;
  border-top: 1px solid rgba(245, 242, 235, 0.16);
  color: var(--nebel-dunkel); font-size: 0.9375rem; max-width: 72rem;
}

/* Vorführung: kein Gerät, keine Statusleiste, ein Nachspiel mit echten Daten */
.vorfuehrung {
  background: #1A1A22;
  border: 1px solid #2E2E37;
  border-radius: 1.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  display: grid; gap: 0.9rem;
}
.vorfuehrung__kopf { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; color: var(--nebel-dunkel); }
.vorfuehrung__stand { color: var(--mint); }
.band { width: 100%; max-width: 32rem; margin: 0 auto; height: auto; }
.vorfuehrung__spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-height: 11rem; }
.vorfuehrung__etikett { display: block; font-size: 0.8125rem; color: var(--nebel-dunkel); margin-bottom: 0.4rem; }
.rohtext { font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: #CFCBD6; margin: 0; min-height: 4.5rem; }
.rohtext .wort { opacity: 0; transition: opacity 180ms var(--ease-aus); }
.rohtext .wort.da { opacity: 1; }
.rohtext .wort.weg { color: var(--glut-knopf); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.fertigtext { font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; color: var(--knochen); margin: 0; min-height: 4.5rem; opacity: 0; transition: opacity 500ms var(--ease-aus); }
.fertigtext.da { opacity: 1; }
.hinweiszeile { font-size: 0.875rem; color: var(--mint); margin: 0.6rem 0 0; }
.terminkarte {
  margin-top: 0.8rem; padding: 0.75rem 0.9rem; border-radius: 0.9rem;
  background: rgba(122, 224, 199, 0.1); border: 1px solid rgba(122, 224, 199, 0.35);
  display: grid; gap: 0.15rem; font-size: 0.9rem;
  opacity: 0; transform: translateY(6px); transition: opacity 320ms var(--ease-aus), transform 320ms var(--ease-aus);
}
.terminkarte.da { opacity: 1; transform: none; }
.terminkarte[hidden] { display: grid; visibility: hidden; }
.hinweiszeile[hidden] { display: block; visibility: hidden; }
.terminkarte__titel { color: var(--mint); font-weight: 600; }
.terminkarte__wert { color: var(--knochen); }
.terminkarte__frage { color: var(--nebel-dunkel); font-size: 0.8125rem; }
.vorfuehrung__steuerung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.vorfuehrung__steuerung .knopf { background: var(--knochen); color: var(--tinte); }
.ton-schalter { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: #CFCBD6; min-height: 2.75rem; cursor: pointer; }
.ton-schalter input { appearance: none; -webkit-appearance: none; width: 2.75rem; height: 2.75rem; margin: 0 -0.5rem 0 -0.75rem; display: grid; place-items: center; cursor: pointer; background: transparent; border: 0; }
.ton-schalter input::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 0.3rem; border: 2px solid #CFCBD6; background: transparent; }
.ton-schalter input:checked::before { background: var(--mint); border-color: var(--mint); }
.ton-schalter input:checked::after { content: ""; position: absolute; width: 0.35rem; height: 0.65rem; border-right: 2.5px solid var(--tinte); border-bottom: 2.5px solid var(--tinte); transform: translateY(-0.1rem) rotate(45deg); }
.ton-schalter { position: relative; }


/* Alltag: zwei Bildschirmfotos links, sechs Szenen rechts, ohne Karten */
.alltag__kopf { max-width: 46rem; margin-bottom: 2.5rem; }
.alltag__innen { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.alltag__bilder { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.alltag__bilder picture:nth-child(2) { margin-top: 3rem; }
.alltag__bilder img { width: 100%; border-radius: 1.6rem; border: 1px solid var(--linie); }
.alltag__bilder figcaption { grid-column: 1 / -1; color: var(--text-neben); font-size: 0.875rem; margin-top: 0.6rem; }
.szenen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.szenen li { padding-top: 1rem; border-top: 3px solid var(--leit); }
.szenen h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.szenen p { font-family: var(--serif); line-height: 1.55; margin: 0; }


/* Galerie: waagerechte Reihe echter Bildschirmfotos, mit Einrasten, auf allen Breiten */
.abschnitt--bilder { padding-bottom: clamp(2rem, 5vw, 4rem); background: var(--grund-zwei); }
.bilder__kopf { max-width: 46rem; margin-bottom: 1.5rem; }
.galerie { list-style: none; margin: 0; padding: 0.5rem var(--rand) 1rem; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand); -webkit-overflow-scrolling: touch; scrollbar-color: var(--text-neben) transparent; }
.galerie:focus-visible { outline-offset: -3px; }
.bild { flex: 0 0 19rem; scroll-snap-align: start; }
.bild img { width: 100%; border-radius: 1.6rem; border: 1px solid var(--linie); background: var(--tinte); }
.bild p { font-family: var(--serif); font-size: 1rem; line-height: 1.5; margin: 0.8rem 0 0; color: var(--text); }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 7vw, 6rem) var(--rand); }
.abschnitt__innen { max-width: var(--breite); margin: 0 auto; }
.abschnitt__innen--schmal { max-width: 46rem; }
.abschnitt__innen--geteilt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.abschnitt__innen--bild-links .abschnitt__bild { order: -1; }
.abschnitt__vorspann { margin-bottom: 2rem; }
.abschnitt__bild { margin: 0; }
.abschnitt__bild img { width: 100%; border-radius: 1.25rem; }
.abschnitt__bild figcaption, .behoerden__bild figcaption { color: var(--text-neben); font-size: 0.875rem; margin-top: 0.6rem; }
.abschnitt__bild--geraete { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.abschnitt__bild--geraete picture:nth-child(2) { margin-top: 3rem; }
.abschnitt__bild--geraete img { border-radius: 1.6rem; border: 1px solid var(--linie); }
.abschnitt__bild--geraete figcaption { grid-column: 1 / -1; }
.abschnitt--korrektur, .abschnitt--behoerden { background: var(--grund-zwei); }

/* Berufe: vier Bilder in einer Reihe, jedes mit eigener Zeile darunter */
.berufe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.beruf img { width: 100%; border-radius: 1rem; aspect-ratio: 4 / 5; object-fit: cover; }
.beruf h3 { margin: 1rem 0 0.35rem; }
.beruf p { font-family: var(--serif); font-size: 1rem; line-height: 1.55; color: var(--text); margin: 0; }
.abschnitt--berufe .fussnote { margin-top: 1.5rem; }

/* Grenzen und Prüfliste: Begriff und Erklärung, getrennt durch eine Linie je Eintrag */
.grenzen, .pruefliste { margin: 0; }
.grenzen > div, .pruefliste > div { padding: 1.25rem 0; border-top: 1px solid var(--linie); }
.grenzen > div:last-child, .pruefliste > div:last-child { border-bottom: 1px solid var(--linie); }
.grenzen dt, .pruefliste dt { font-weight: 600; font-size: 1.125rem; margin-bottom: 0.35rem; }
.grenzen dd, .pruefliste dd { margin: 0; font-family: var(--serif); line-height: 1.6; max-width: 62ch; }

/* Behörden: Kopf, Bild, dann Prüfliste zweispaltig */
.behoerden__kopf { max-width: 46rem; margin-bottom: 2rem; }
.behoerden__bild { margin: 0 0 2.5rem; max-width: 60rem; }
.behoerden__bild img { width: 100%; border-radius: 1.25rem; }
.pruefliste { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.pruefliste > div:nth-child(2) { border-top: 1px solid var(--linie); }
.pruefliste > div:last-child { border-bottom: 1px solid var(--linie); }
.pruefliste > div:nth-last-child(2) { border-bottom: 1px solid var(--linie); }

/* Pilot */
.schritte { font-family: var(--serif); line-height: 1.6; padding-left: 1.4rem; margin: 0 0 1.5rem; }
.schritte li { margin-bottom: 0.7rem; padding-left: 0.3rem; }
.schritte strong { font-family: var(--sans); font-weight: 600; }
.kontakt { margin-top: 2.5rem; padding: 1.5rem; border-radius: 1.25rem; background: var(--grund-zwei); border: 1px solid var(--linie); }
.kontakt h3 { margin-top: 0; }
.kontakt__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.7rem 0; }
.kontakt__wert { font-size: 1.15rem; font-weight: 600; user-select: all; word-break: break-all; display: inline-flex; align-items: center; min-height: 2.75rem; }
.kontakt__hinweis { color: var(--text-neben); }
.vorlage { margin-top: 0.8rem; }
.vorlage summary, .frage summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; list-style: none; }
.vorlage summary::-webkit-details-marker, .frage summary::-webkit-details-marker { display: none; }
.vorlage summary::before, .frage summary::before { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 0.8rem; flex: none; transition: transform 200ms var(--ease-aus); }
details[open] > summary::before { transform: rotate(45deg); }
.vorlage pre { font: inherit; font-family: var(--serif); white-space: pre-wrap; margin: 0.5rem 0 1rem; padding: 1rem; background: var(--grund); border-radius: 0.75rem; border: 1px solid var(--linie); }

/* Fragen */
.frage { border-top: 1px solid var(--linie); padding: 0.4rem 0; }
.frage:last-of-type { border-bottom: 1px solid var(--linie); }
.frage p { font-family: var(--serif); line-height: 1.6; margin: 0.3rem 0 1rem 1.35rem; max-width: 62ch; }

.kopiert { color: var(--bestaetigung); font-size: 0.9375rem; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 2rem var(--rand) 3rem; color: var(--text-neben); font-size: 0.9375rem; }
.fuss__innen { max-width: var(--breite); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.fuss__firma { margin: 0; display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Schmale Fenster: Handy zuerst gedacht, mittig zentriert */
@media (max-width: 47.5em) {
  .menue-knopf { display: inline-flex; }
  .menue { display: none; position: absolute; left: var(--rand); right: var(--rand); top: calc(100% - 0.2rem); flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 1rem; background: var(--grund); border: 1px solid var(--linie); border-radius: 1.25rem; box-shadow: 0 18px 40px rgba(14, 15, 23, 0.14); z-index: 10; }
  .menue.offen { display: flex; }
  /* Unterseiten mit nur einem Link: Menü bleibt in der Kopfzeile, kein Klappmenü */
  .menue--einfach { display: flex; position: static; flex-direction: row; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .menue ul { flex-direction: column; gap: 0; align-items: center; }
  .menue li a { padding: 0.75rem 0; min-height: 2.75rem; }
  .buehne__innen { grid-template-columns: 1fr; text-align: center; }
  .buehne__satz { margin-left: auto; margin-right: auto; }
  .buehne__knoepfe { justify-content: center; }
  .vorfuehrung { text-align: left; }
  .vorfuehrung__spalten { grid-template-columns: 1fr; min-height: 0; }
  .rohtext, .fertigtext { min-height: 0; }
  .terminkarte[hidden], .hinweiszeile[hidden] { display: none; }
  .vorfuehrung[data-zustand="ruhe"] .vorfuehrung__fertig, .vorfuehrung[data-zustand="laeuft"] .vorfuehrung__fertig { display: none; }
  .abschnitt__innen--geteilt { grid-template-columns: 1fr; text-align: center; }
  .abschnitt__innen--geteilt .lese, .abschnitt__innen--geteilt .fussnote { margin-left: auto; margin-right: auto; }
  .abschnitt__bild--geraete { grid-template-columns: 1fr 1fr; max-width: 26rem; margin: 0 auto; }
  .abschnitt__innen--bild-links .abschnitt__bild { order: 1; }
  .abschnitt--berufe .abschnitt__innen, .abschnitt--grenzen .abschnitt__innen, .abschnitt--pilot .abschnitt__innen, .abschnitt--fragen .abschnitt__innen, .abschnitt--offen .abschnitt__innen, .behoerden__kopf { text-align: center; }
  .abschnitt__vorspann, .grenzen dd, .pruefliste dd, .frage p, .abschnitt--offen .lese, .abschnitt--pilot .lese { margin-left: auto; margin-right: auto; }
  .berufe { grid-template-columns: 1fr; gap: 2.25rem; max-width: 26rem; margin: 0 auto; }
  .alltag__kopf { text-align: center; margin-left: auto; margin-right: auto; }
  .bilder__kopf { text-align: center; margin-left: auto; margin-right: auto; }
  .bilder__kopf .lese { margin-left: auto; margin-right: auto; }
  .bild { flex-basis: 72vw; }
  .bild p { text-align: center; }
  .alltag__kopf .lese { margin-left: auto; margin-right: auto; }
  .alltag__innen { grid-template-columns: 1fr; }
  .alltag__bilder { max-width: 26rem; margin: 0 auto; }
  .szenen { grid-template-columns: 1fr; text-align: center; max-width: 30rem; margin: 0 auto; }
  .szenen li { border-top: 0; padding-top: 0; }
  .szenen li::before { content: ""; display: block; width: 2.5rem; height: 0.4rem; border-radius: 999px; background: var(--leit); margin: 0 auto 0.9rem; }
  .pruefliste { grid-template-columns: 1fr; }
  .pruefliste > div:nth-last-child(2) { border-bottom: 0; }
  .schritte { list-style-position: inside; padding-left: 0; text-align: center; }
  .frage summary { justify-content: center; }
  .frage p { margin-left: auto; }
  .kontakt { text-align: center; }
  .kontakt__zeile { justify-content: center; }
  .kontakt .knopf { width: 100%; }
  .vorlage summary { justify-content: center; }
  .vorlage pre { text-align: left; }
  .fuss__innen { flex-direction: column; align-items: center; text-align: center; }
  .vorfuehrung__steuerung { justify-content: center; }
  .buehne__beleg { text-align: center; }
}
@media (min-width: 47.5em) and (max-width: 64em) {
  .berufe { grid-template-columns: 1fr 1fr; }
  .alltag__innen { grid-template-columns: 1fr; }
  .alltag__bilder { max-width: 30rem; }
}

/* Reduzierte Bewegung: keine Übergänge, keine Verschiebungen, die Vorführung springt zwischen Zuständen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf, .rohtext .wort, .fertigtext, .terminkarte, .vorlage summary::before, .frage summary::before { transition: none; }
  .terminkarte { transform: none; }
  .knopf:active { transform: none; }
}
main:focus { outline: none; }
