/* Schnack – Webseite
   Farben, Maße und Schrift aus tokens.css, erzeugt aus design/tokens.json (Figma).
   ANNAHME: Farben und Wortmarke sind Platzhalter, kein finales Branding. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Kurznamen für diese Seite. Alle Farben kommen aus tokens.css (design/tokens.json). */
  --grund: var(--color-bg-grund);
  --flaeche: var(--color-bg-flaeche);
  --flaeche-warm: var(--color-bg-inaktiv);
  --text: var(--color-text-primaer);
  --text-leise: var(--color-text-leise);
  --linie: var(--color-border-default);
  --familie: var(--color-brand-vertraut);
  --familie-dunkel: var(--color-brand-vertraut-dunkel);
  --familie-hell: var(--color-brand-vertraut-hell);
  --begegnung: var(--color-brand-begegnung);
  --begegnung-text: var(--color-brand-begegnung-text);
  --begegnung-hell: var(--color-brand-begegnung-hell);
  --ki: var(--color-brand-ki);
  --ki-hell: var(--color-brand-ki-hell);
  --gruen: var(--color-status-gruen);
  --gruen-hell: var(--color-status-gruen-hell);
  --gruen-text: var(--color-status-gruen-text);
  --gelb: var(--color-status-gelb);
  --rot: var(--color-status-rot);
  --fokus: var(--color-status-gelb);

  --schrift: var(--font-family);
  /* Schriftgrößen wie die Figma-Textstile, in rem gerechnet (16 px = 1 rem) */
  --basis: 1.5rem; /* Hinweis 24 */
  --gross: 1.75rem; /* Text 28 */
  --label: 1.5rem; /* Label 24 */
  --klein: 1.5rem; /* Hinweis 24: Mindestgröße für Text auf der Webseite */
  --breite: 75rem;
  --rund: var(--radius-klein);
  --rund-gross: var(--radius-gross);
}

html.schrift-gross {
  font-size: 125%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--basis);
  line-height: 1.4;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 2.3rem + 2.4vw, 4rem); /* Titel 48 bis Anzeige 64 */
  line-height: 1.1;
}
h2 {
  font-size: clamp(2.25rem, 2.1rem + 0.6vw, 2.5rem); /* Fläche 36 bis Überschrift 40 */
  line-height: 1.15;
}
h3 {
  font-size: var(--gross);
  line-height: 1.3;
}
p {
  margin: 0 0 1em;
  max-width: 40em;
}
.einleitung {
  font-size: var(--gross);
  color: var(--text-leise);
}

a {
  color: var(--familie);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--familie-dunkel);
}

:focus-visible {
  outline: 4px solid var(--text);
  outline-offset: 3px;
  box-shadow: 0 0 0 8px var(--fokus);
  border-radius: 0.4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.springen {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: var(--text);
  color: var(--color-text-invers);
  padding: 0.75rem 1.25rem;
  border-radius: var(--rund);
  font-weight: 700;
}
.springen:focus {
  top: 1rem;
  color: var(--color-text-invers);
}

.rahmen {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) {
  .rahmen {
    padding: 0 2rem;
  }
}

/* Kopf */

.kopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.kopf .rahmen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--gross);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  min-height: 3rem;
}
.wortmarke:hover {
  color: var(--text);
}
.wortmarke svg {
  width: 2.5rem;
  height: 2.5rem;
}
.kopf-werkzeuge {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.navigation {
  flex-basis: 100%;
  order: 3;
}
.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border-radius: var(--rund);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.navigation a:hover {
  background: var(--flaeche-warm);
  color: var(--text);
}
.navigation a[aria-current="page"] {
  background: var(--familie-hell);
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.3em;
}
.kopf-werkzeuge .knopf {
  white-space: nowrap;
}

/* Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 1rem 2rem;
  font-size: var(--label);
  border-radius: var(--rund);
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.knopf svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
.knopf-haupt {
  background: var(--familie);
  color: var(--color-text-invers);
}
.knopf-haupt:hover {
  background: var(--familie-dunkel);
  color: var(--color-text-invers);
}
.knopf-zweit {
  background: var(--flaeche);
  color: var(--text);
  border-color: var(--text);
}
.knopf-zweit:hover {
  background: var(--flaeche-warm);
  color: var(--text);
}
.knopf-klein {
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  font-size: var(--label);
}
.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Abschnitte */

.abschnitt {
  padding: 3.5rem 0;
}
@media (min-width: 48rem) {
  .abschnitt {
    padding: 5rem 0;
  }
}
.abschnitt-hell {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.abschnitt-warm {
  background: var(--flaeche-warm);
}
.ueberzeile {
  display: inline-block;
  font-weight: 700;
  font-size: var(--label);
  color: var(--begegnung-text);
  margin-bottom: 0.5rem;
}

/* Bühne */

.buehne {
  padding: 3rem 0 3.5rem;
}
.buehne .rahmen {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .buehne {
    padding: 4.5rem 0 5rem;
  }
  .buehne .rahmen {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}
.buehne-bild {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
}

/* Raster und Karten */

.raster {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 48rem) {
  .raster-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .raster-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .raster-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .raster-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.karte {
  background: var(--flaeche);
  border: 2px solid var(--linie);
  border-radius: var(--rund-gross);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.karte h3 {
  margin-bottom: 0.5rem;
}
.karte p:last-child {
  margin-bottom: 0;
}
.karte .knopf,
.karte .weiter {
  margin-top: auto;
}
.karte-symbol {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--rund);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.karte-symbol svg {
  width: 2.5rem;
  height: 2.5rem;
}
.ton-familie .karte-symbol {
  background: var(--familie-hell);
  color: var(--familie);
}
.ton-begegnung .karte-symbol {
  background: var(--begegnung-hell);
  color: var(--begegnung);
}
.ton-ki .karte-symbol {
  background: var(--ki-hell);
  color: var(--ki);
}
.ton-status .karte-symbol {
  background: var(--gruen-hell);
  color: var(--gruen-text);
}

/* Zielgruppen-Karten auf der Startseite */

.zielgruppe {
  text-decoration: none;
  color: var(--text);
  border-width: 3px;
  min-height: 100%;
}
.zielgruppe:hover {
  color: var(--text);
  border-color: var(--text);
}
.zielgruppe .weiter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--familie);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding-top: 1rem;
}
.zielgruppe .weiter svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* Schritte */

.schritte {
  list-style: none;
  counter-reset: schritt;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 60rem) {
  .schritte-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.schritte li {
  counter-increment: schritt;
  background: var(--flaeche);
  border: 2px solid var(--linie);
  border-radius: var(--rund-gross);
  padding: 1.75rem 1.75rem 1.75rem 6rem;
  position: relative;
}
.schritte li::before {
  content: counter(schritt);
  position: absolute;
  left: 1.75rem;
  top: 1.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--color-text-invers);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.schritte h3 {
  font-size: var(--gross);
  margin-bottom: 0.25rem;
}
.schritte p {
  margin: 0;
}

/* Status-Liste: Farbe, Symbol und Wort */

.status-liste {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}
.status-liste li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  background: var(--flaeche);
  border: 2px solid var(--linie);
  border-radius: var(--rund);
  padding: 1rem 1.25rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.4rem 1.1rem 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--label);
  flex: none;
}
.status svg {
  width: 1.75rem;
  height: 1.75rem;
}
.status-gruen {
  background: var(--gruen);
  color: var(--color-text-invers);
}
.status-gelb {
  background: var(--gelb);
  color: var(--text);
}
.status-rot {
  background: var(--rot);
  color: var(--color-text-invers);
}

/* Häkchen-Liste */

.haken {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.haken li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.haken svg {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.15rem;
  color: var(--gruen-text);
}

/* Zwei Spalten mit Text und Kasten */

.zweispaltig {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .zweispaltig {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.kasten {
  background: var(--flaeche);
  border: 2px solid var(--linie);
  border-radius: var(--rund-gross);
  padding: 1.75rem;
}
.kasten-ki {
  background: var(--ki-hell);
  border-color: var(--linie);
}
.kasten h3 {
  margin-bottom: 0.5rem;
}

.kennzeichen {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ki);
  color: var(--color-text-invers);
  font-weight: 700;
  font-size: var(--klein);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* App laden */

.app-laden {
  background: var(--familie);
  color: var(--color-text-invers);
}
.app-laden h2,
.app-laden p {
  color: var(--color-text-invers);
}
.app-laden .rahmen {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .app-laden .rahmen {
    grid-template-columns: 1.3fr 1fr;
  }
}
.store-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.store-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  padding: 0.75rem 1.5rem 0.75rem 1.25rem;
  border-radius: var(--rund);
  background: var(--flaeche);
  color: var(--text);
  text-decoration: none;
  border: 2px solid var(--flaeche);
}
.store-knopf:hover {
  background: var(--flaeche-warm);
  color: var(--text);
}
.store-knopf svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.store-knopf span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-knopf small {
  font-size: var(--klein);
  color: var(--text-leise);
}
.store-knopf strong {
  font-size: var(--label);
}
.app-laden .hinweis {
  font-size: var(--klein);
  margin-top: 1rem;
  opacity: 0.95;
}
.app-laden :focus-visible {
  outline-color: var(--color-text-invers);
}

/* Fragen */

.fragen {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}
.fragen details {
  background: var(--flaeche);
  border: 2px solid var(--linie);
  border-radius: var(--rund);
}
.fragen summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.25rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}
.fragen summary::-webkit-details-marker {
  display: none;
}
.fragen summary::before {
  content: "+";
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--text);
  display: grid;
  place-items: center;
  line-height: 1;
}
.fragen details[open] summary::before {
  content: "–";
}
.fragen details > div {
  padding: 0 1.25rem 1.25rem 4.25rem;
}
.fragen details > div p:last-child {
  margin-bottom: 0;
}

/* Platzhalter für noch offene Angaben */

.platzhalter {
  background: var(--gelb);
  border: 2px dashed var(--text);
  border-radius: 0.4rem;
  padding: 0 0.3rem;
  color: var(--text);
}

/* Fuß */

.fuss {
  background: var(--text);
  color: var(--color-text-invers);
  padding: 3rem 0 2rem;
  font-size: var(--label);
}
.fuss a {
  color: var(--color-text-invers);
}
.fuss a:hover {
  color: var(--gelb);
}
.fuss-raster {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .fuss-raster {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.fuss h2 {
  font-size: var(--label);
  color: var(--color-text-invers);
  margin-bottom: 0.75rem;
}
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.fuss li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.fuss .wortmarke {
  color: var(--color-text-invers);
}
.fuss-zeile {
  border-top: 1px solid var(--text-leise);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: var(--klein);
}
:where(.fuss) :focus-visible {
  outline-color: var(--color-text-invers);
}

/* Rechtstexte */

.rechtstext {
  max-width: 48rem;
}
.rechtstext h2 {
  font-size: var(--gross);
  margin-top: 2rem;
}

/* Tablet-Bild */

.geraet text {
  font-family: var(--schrift);
}

.kasten > svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--familie);
}
.kasten .knopf {
  margin-bottom: 1rem;
}
.kasten .klein {
  font-size: var(--klein);
  color: var(--text-leise);
  margin: 0;
}

/* Fotos von Menschen */

.foto {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--rund-gross);
  background: var(--flaeche-warm);
}
.buehne-foto {
  aspect-ratio: 4 / 3;
  max-width: 36rem;
  margin: 0 auto;
}
.foto-breit {
  aspect-ratio: 16 / 7;
  margin: 2rem 0;
}
.zielgruppe .karten-foto {
  aspect-ratio: 4 / 3;
  margin: -2rem -2rem 1.5rem;
  width: calc(100% + 4rem);
  max-width: none;
  border-radius: var(--rund-gross) var(--rund-gross) 0 0;
}
.zielgruppe {
  overflow: hidden;
}
.geraet-mitte {
  max-width: 34rem;
  margin: 2rem auto 0;
  display: block;
}
.kennzeichen {
  white-space: nowrap;
}
.kennzeichen svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* Sprachwahl im Kopf (SCH-128) */

.sprachwahl ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.sprachwahl a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0 0.5rem;
  border-radius: var(--rund);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.sprachwahl a:hover {
  background: var(--flaeche-warm);
  color: var(--text);
}
.sprachwahl a[aria-current="true"] {
  background: var(--familie-hell);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.3em;
}
.kopf-werkzeuge {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Bildschirmfotos aus Webversion und Portal */

.bildschirm {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rund-gross);
  border: 2px solid var(--linie);
  background: var(--flaeche);
  box-shadow: 0 0.75rem 2rem rgb(28 27 26 / 0.12);
}
.bildschirm-rahmen {
  margin: 2rem auto;
  max-width: 60rem;
}
.bildschirm-rahmen .bildschirm {
  border: 0.75rem solid var(--color-bg-dunkel);
  border-radius: 1.75rem;
}
figcaption,
.klein {
  font-size: var(--klein);
  color: var(--text-leise);
  margin-top: 0.75rem;
}
.klein-hinweis {
  color: var(--color-text-invers);
}
.mehr-link {
  margin: 2.5rem 0 0;
  text-align: center;
}

/* Film */

.film {
  margin: 2rem 0 0;
}
.film-flaeche {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--rund-gross);
  background: var(--color-bg-dunkel);
  overflow: hidden;
}
.film-folgt .bildschirm {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.35;
}
.film-hinweis {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
  font-size: var(--gross);
  font-weight: 700;
  color: var(--color-text-invers);
  background: rgb(28 27 26 / 0.55);
}
.film-hinweis svg {
  width: 3rem;
  height: 3rem;
  flex: none;
}

/* Funktionen */

.buehne-schmal .rahmen {
  grid-template-columns: 1fr;
  max-width: 60rem;
}
.funktion .zweispaltig {
  align-items: center;
}
.funktion h2 {
  margin-top: 0;
}
.ueberzeile svg {
  width: 1.75rem;
  height: 1.75rem;
  vertical-align: -0.35rem;
  margin-right: 0.35rem;
}
.ton-familie-text {
  color: var(--familie);
}
.ton-begegnung-text {
  color: var(--begegnung-text);
}
.ton-ki-text {
  color: var(--ki);
}
.ton-status-text {
  color: var(--gruen-text);
}
.funktion .zweispaltig > .bildschirm {
  max-width: 40rem;
  margin: 0 auto;
}
.funktion .zweispaltig + .zweispaltig,
.bildschirm-rahmen + .zweispaltig {
  margin-top: 1rem;
}
.sprachen-bilder figure {
  margin: 0;
}
.sprachen-bilder figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--text);
}
.kasten .haken {
  margin-bottom: 1.5rem;
}
.zweispaltig > * {
  min-width: 0;
}
@media (max-width: 30rem) {
  .kennzeichen {
    white-space: normal;
  }
}
