/* ==========================================================================
   AutismusLeben — Tina Steingreß
   Stylesheet

   Gestaltungsprinzipien (reizarm):
   - gedeckte Farben direkt aus dem Logo, keine harten Kontrastsprünge
   - keine Animationen, keine Bewegung, kein Autoplay
   - große Grundschrift, kurze Zeilen, viel Weißraum
   - sichtbarer Tastaturfokus, große Klickflächen
   ========================================================================== */

:root {
  /* Farben aus dem Logo abgeleitet */
  --creme:            #f7f4ee;  /* Logo-Hintergrund */
  --creme-tief:       #efeae0;  /* Sandfläche im Logo */
  --weiss:            #fffdf9;
  --salbei:           #8fa98a;  /* Figur und Blätter */
  --salbei-dunkel:    #5f7a5c;  /* für Text auf hellem Grund, kontraststark */
  --salbei-zart:      #e6ede4;
  --hervorhebung:     #d6e5d1;  /* trägt auch auf der cremefarbenen Fläche */
  --anthrazit:        #33383a;  /* Wortmarke „Autismus“ */
  --anthrazit-leise:  #5f6866;
  --rand:             #ded8cc;

  --schrift-text:  "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --schrift-titel: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --breite-inhalt: 70rem;
  --breite-text:   38rem;   /* rund 70 Zeichen pro Zeile */
  --radius: 12px;
}

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

html {
  font-size: 112.5%;        /* 18px Grundschrift */
  scroll-behavior: smooth;
}

/* Bewegung vollständig abschaltbar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--anthrazit);
  background: var(--creme);
  -webkit-text-size-adjust: 100%;
}

/* --- Typografie ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.7em;
  color: var(--anthrazit);
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.75rem; margin-top: 0; }
/* h3 und h4 sehen gleich aus — die Ebene richtet sich nach der Gliederung,
   nicht nach der gewünschten Größe. */
h3, h4 { font-size: 1.2rem; font-family: var(--schrift-text); font-weight: 700; }
h4 { margin-top: 1.8rem; }

p, li { max-width: var(--breite-text); }
p { margin: 0 0 1.15em; }

a {
  color: var(--salbei-dunkel);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { text-decoration-thickness: 3px; }

/* Fokus bleibt immer sichtbar — bitte nie entfernen. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--salbei-dunkel);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Layout -------------------------------------------------------------- */

.inhalt {
  width: min(100% - 2.5rem, var(--breite-inhalt));
  margin-inline: auto;
}

.abschnitt        { padding: 4rem 0; }
.abschnitt--creme { background: var(--creme-tief); }
.abschnitt--weiss { background: var(--weiss); }

.sprungmarke {
  position: absolute;
  left: -9999px;
  background: var(--salbei-dunkel);
  color: #fff;
  padding: 0.9rem 1.4rem;
  z-index: 100;
}
.sprungmarke:focus { left: 0.5rem; top: 0.5rem; }

/* --- Kopfbereich --------------------------------------------------------- */

.kopf {
  background: var(--creme);
  border-bottom: 1px solid var(--rand);
}

.kopf__reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.logo img { width: 68px; }
.logo__text { font-family: var(--schrift-titel); font-size: 1.35rem; color: var(--anthrazit); }
.logo__text b { font-weight: 400; }
.logo__text i { font-style: normal; color: var(--salbei-dunkel); }
.logo__claim {
  display: block;
  font-family: var(--schrift-text);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--anthrazit-leise);
}

.nav__liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  margin: 0;
  padding: 0;
}
.nav__liste a {
  display: inline-block;
  padding: 0.5rem 0.15rem;
  text-decoration: none;
  color: var(--anthrazit);
  border-bottom: 3px solid transparent;
}
.nav__liste a:hover { border-bottom-color: var(--rand); }
.nav__liste a[aria-current="page"] {
  border-bottom-color: var(--salbei);
  font-weight: 700;
}

.nav__schalter {
  display: none;
  font: inherit;
  padding: 0.6rem 1.1rem;
  background: var(--weiss);
  color: var(--anthrazit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 52rem) {
  .nav__schalter { display: block; }
  .nav { width: 100%; }
  .nav__liste { flex-direction: column; gap: 0; padding-bottom: 0.6rem; }
  /* Ohne JavaScript bleibt das Menü offen — eingeklappt wird es erst,
     wenn das Skript data-offen="false" gesetzt hat. */
  .nav[data-offen="false"] .nav__liste { display: none; }
  .nav__liste a { padding: 0.85rem 0; border-bottom: 1px solid var(--rand); }
}

/* --- Startbereich mit Logo ----------------------------------------------- */

.start {
  background: var(--creme);
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.start__logo { width: min(320px, 70vw); margin: 0 auto 1.5rem; }
.start h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.start p { margin-inline: auto; }
.start__betonung {
  color: var(--salbei-dunkel);
  font-weight: 700;
}

/* --- Zitat --------------------------------------------------------------- */

.zitat {
  background: var(--salbei-zart);
  padding: 3.5rem 0;
  text-align: center;
}
.zitat blockquote {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--salbei-dunkel);
  max-width: 30ch;
  margin-inline: auto;
}
.zitat figcaption {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--anthrazit-leise);
}
.zitat__trenner {
  width: 3.5rem;
  height: 1px;
  background: var(--salbei);
  border: 0;
  margin: 1.6rem auto 0;
}

/* --- Karten -------------------------------------------------------------- */

.karten {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  max-width: none;
}

.karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-top: 4px solid var(--salbei);
  border-radius: var(--radius);
  padding: 1.7rem;
  max-width: none;
}
.karte h3, .karte h4 { margin-top: 0; }
.karte p, .karte li { max-width: none; }
.karte > :last-child { margin-bottom: 0; }
.karte--betont { border-top-color: var(--salbei-dunkel); }

/* --- Schaltflächen ------------------------------------------------------- */

.knopf {
  display: inline-block;
  margin: 0 0.5rem 0.6rem 0;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  background: var(--salbei-dunkel);
  border: 2px solid var(--salbei-dunkel);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.knopf:hover { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff; }

.knopf--leise { background: transparent; color: var(--salbei-dunkel); }
.knopf--leise:hover { background: var(--salbei-zart); color: var(--salbei-dunkel); border-color: var(--salbei-dunkel); }

/* --- Porträt neben dem Text ---------------------------------------------- */
/* Ab 58rem zweispaltig, darunter steht das Bild über dem Text. */

.person {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 58rem) {
  .person { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
  .person__bild { position: sticky; top: 2rem; }
}

.person__bild {
  margin: 0;
  max-width: 20rem;
}
.person__bild img {
  width: 100%;
  border-radius: var(--radius);
  border: 6px solid var(--weiss);
  box-shadow: 0 2px 10px rgba(51, 56, 58, 0.12);
}
.person__bild figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--anthrazit-leise);
}
.person__bild figcaption strong { color: var(--anthrazit); }

/* --- Bildergalerie -------------------------------------------------------- */
/* Die Fotos haben unterschiedliche Seitenverhältnisse (hoch und quer).
   Ein einheitlicher Ausschnitt lässt die Reihe ruhig wirken, statt die
   Zeile durch verschieden hohe Bilder unruhig zu machen. */

.galerie {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  max-width: none;
}

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid var(--weiss);
  box-shadow: 0 2px 8px rgba(51, 56, 58, 0.10);
}

/* --- Anschrift ------------------------------------------------------------ */
/* <address> wird von Browsern kursiv gesetzt — für eine Anschrift unpassend. */

address {
  font-style: normal;
  margin: 0 0 1.15em;
  max-width: var(--breite-text);
}

/* --- Hervorhebung im Fließtext -------------------------------------------- */
/* Ruhige Unterlegung statt Signalfarbe — die Stelle soll auffallen,
   ohne den reizarmen Gesamteindruck zu stören. */

.hervorgehoben {
  background: var(--hervorhebung);
  box-shadow: 0 0 0 4px var(--hervorhebung);  /* Luft, ohne die Zeilenhöhe zu ändern */
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- Preisangabe in Karten ------------------------------------------------ */

.preis {
  margin: 0 0 0.9rem;
  font-family: var(--schrift-titel);
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--salbei-dunkel);
}
.preis span {
  display: block;
  font-family: var(--schrift-text);
  font-size: 0.9rem;
  color: var(--anthrazit-leise);
}

/* --- Unternehmensdaten (Impressum) --------------------------------------- */
/* Das Label bleibt zurückhaltend, der eigentliche Wert wird hervorgehoben. */

.unternehmensdaten {
  margin: 1.5rem 0 0;
  max-width: var(--breite-text);
}
.unternehmensdaten > div {
  padding: 1rem 1.3rem;
  margin-bottom: 0.9rem;
  background: var(--creme-tief);
  border-left: 4px solid var(--salbei);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.unternehmensdaten dt {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--anthrazit-leise);
}
.unternehmensdaten dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  color: var(--salbei-dunkel);
}

/* --- Eckdaten (Dauer, Kosten) -------------------------------------------- */
/* Bewusst als Definitionsliste: Screenreader lesen Begriff und Wert als Paar. */

.eckdaten {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
}
.eckdaten > div {
  background: var(--creme-tief);
  border-radius: var(--radius);
  padding: 1rem 1.6rem;
  min-width: 11rem;
}
.eckdaten dt {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--anthrazit-leise);
}
.eckdaten dd {
  margin: 0.2rem 0 0;
  font-family: var(--schrift-titel);
  font-size: 1.4rem;
  color: var(--salbei-dunkel);
}

/* --- Leitsatz im Fließtext ----------------------------------------------- */
/* Ruhiger als das große Zitat auf der Startseite, damit die Seite
   nicht zwei gleich laute Blickfänge hat. */

.leitsatz {
  margin: 2.5rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 4px solid var(--salbei);
  max-width: var(--breite-text);
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--salbei-dunkel);
}
.leitsatz::before { content: "„"; }
.leitsatz::after  { content: "“"; }

/* --- Infokasten ---------------------------------------------------------- */

.kasten {
  background: var(--creme-tief);
  border-left: 5px solid var(--salbei);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
  max-width: var(--breite-text);
}
.kasten > :last-child { margin-bottom: 0; }

/* --- Häufige Fragen ------------------------------------------------------ */

.faq {
  max-width: var(--breite-text);
}
.faq details {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  border-left: 4px solid var(--salbei);
  margin: 0 0 1rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  position: relative;
  font-weight: 700;
  color: var(--anthrazit);
  padding: 1rem 1.2rem 1rem 3.3rem;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--salbei-zart);
}
.faq summary::after {
  content: "";
  position: absolute;
  left: calc(1.2rem + 0.36rem);
  top: 50%;
  transform: translateY(-50%);
  width: 0.63rem;
  height: 0.63rem;
  background:
    linear-gradient(var(--salbei-dunkel), var(--salbei-dunkel)) center / 100% 2px no-repeat,
    linear-gradient(var(--salbei-dunkel), var(--salbei-dunkel)) center / 2px 100% no-repeat;
}
.faq details[open] summary {
  background: var(--creme);
  border-bottom: 1px solid var(--rand);
}
.faq details[open] summary::before {
  background: var(--hervorhebung);
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--salbei-dunkel), var(--salbei-dunkel)) center / 100% 2px no-repeat;
}
.faq p {
  background: var(--weiss);
  color: var(--anthrazit-leise);
  padding: 1rem 1.2rem 1.15rem 3.3rem;
  margin-bottom: 0;
}

/* --- Platzhalter --------------------------------------------------------- */
/* Markiert Inhalte, die noch geliefert werden. Vor dem Livegang muss
   diese Klasse aus dem HTML verschwunden sein. */
.platzhalter {
  background: #fbf0d8;
  color: #6b4f14;
  padding: 0 0.25em;
  border-radius: 3px;
  box-decoration-break: clone;
}

/* --- Fußbereich ---------------------------------------------------------- */

.fuss {
  background: var(--weiss);
  border-top: 1px solid var(--rand);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.fuss__spalten {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.fuss h2 { font-size: 1.05rem; font-family: var(--schrift-text); font-weight: 700; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.45rem; }
.fuss__schluss {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rand);
  color: var(--anthrazit-leise);
  max-width: none;
}

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

@media print {
  .kopf nav, .nav__schalter, .fuss { display: none; }
  body { background: #fff; }
}
