/* KomBiNatur – Homepage
   Ein Stylesheet, keine Skripte. Farben aus Flyer und Logo. */

@font-face {
  font-family: "Nunito";
  src: url("/schriften/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
/* Die Schrift des Logos (Amatic Bold, SIL OFL) – unverändert, nur in
   WOFF verpackt, deshalb darf sie ihren Namen behalten (OFL-FAQ 2.2).
   „block“ statt „swap“: Die Überschrift wartet kurz auf die Schrift, statt
   erst in einer Ersatzschrift aufzublitzen; vorgeladen wird sie in
   vorlage.html, damit das Warten kaum auffällt. */
@font-face {
  font-family: "Amatic";
  src: url("/schriften/amatic-bold.woff") format("woff");
  font-weight: 700;
  font-display: block;
}

:root {
  /* Das Orange des Flyers (RGB 255/151/0). Als Schriftfarbe auf Weiß zu
     schwach (2,2:1) – deshalb nur Fläche, Linie, Knopf; Text darauf dunkel. */
  --orange: #ff9700;
  --orange-tief: #e88a00;
  --orange-hell: #fff3e0;
  --orange-text: #9a4f00;   /* 6:1 auf Weiß, für kleine Überschriften */
  --tinte: #2a2118;         /* 7,3:1 auf Orange, 16:1 auf Weiß */
  --tinte-weich: #5e5145;
  --papier: #fffcf7;
  --weiss: #ffffff;
  --linie: #eadfcf;
  --rund: 16px;
  --hand: "Amatic", "Segoe Print", "Comic Neue", cursive;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 .6em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }

.sprung {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--tinte); color: var(--weiss);
  padding: .5rem 1rem; border-radius: 0 0 8px 8px; z-index: 10;
}
.sprung:focus { top: 0; }

.entwurf {
  margin: 0; padding: .45rem 1rem;
  background: var(--tinte); color: var(--weiss);
  font-size: .9rem; text-align: center;
}
mark.pruefen { background: #fff06a; color: inherit; padding: 0 .15em; border-radius: 3px; }

.rahmen { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .rahmen { padding-inline: 2rem; } }
/* Schmale Lesespalte, aber bündig mit dem übrigen Inhalt, nicht mittig */
.lesen > * { max-width: 44rem; }

/* Telefonnummern und E-Mail-Adressen als Bild (kontaktbild.py). Höhe und
   Versatz entsprechen Ober- und Unterlänge von Nunito – so sitzt das Bild auf
   derselben Grundlinie wie der Text daneben und wächst mit der Schriftgröße. */
.nr { display: inline; height: 1.364em; width: auto; max-width: 100%; vertical-align: -.353em; object-fit: contain; object-position: left; }

/* ---------- Kopf ---------- */

.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf__innen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 2rem; padding-block: .75rem;
}
.kopf__logo { display: block; line-height: 0; }
.kopf__logo img { height: 52px; width: auto; }
@media (min-width: 48rem) { .kopf__logo img { height: 64px; } }

/* Auf dem Handy passen die vier Punkte nicht in eine Zeile. Statt sie
   irgendwo umbrechen zu lassen, stehen sie dort als zwei mal zwei Knöpfe */
.kopf nav { flex-basis: 100%; }
.menue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.menue a {
  display: block; padding: .45rem .3rem; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--weiss); text-align: center;
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.menue a:hover { background: var(--orange-hell); }
.menue a[aria-current="page"] { background: var(--orange); border-color: var(--orange); }
@media (min-width: 36rem) {
  .kopf nav { flex-basis: auto; }
  .menue { display: flex; flex-wrap: wrap; gap: .2rem .25rem; margin-left: -.6rem; }
  .menue a { padding: .35rem .65rem; border-color: transparent; background: none; }
}
@media (min-width: 48rem) { .menue { margin-left: 0; } }

/* ---------- Wellen ---------- */

.seitenkopf, .held { background: var(--orange-hell); }
.seitenkopf::after, .held::after {
  content: ""; display: block;
  height: clamp(24px, 4vw, 48px);
  background: url("/bilder/welle-papier.svg") center bottom / 100% 100% no-repeat;
}

/* ---------- Seitenkopf der Unterseiten ---------- */

.seitenkopf__innen { padding-block: 2.5rem 1.5rem; }
.kicker {
  font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: .4rem;
}
/* Die Logo-Schrift nur für kurze Sätze bis etwa fünf Wörter – längere
   Überschriften in Amatic sind schwer zu lesen. Was länger ist, steht als
   .titel-zusatz in Nunito darunter, im selben <h1>. */
.titel {
  display: block;
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 4.6rem); line-height: 1; margin-bottom: .6rem;
}
.titel-zusatz {
  display: block; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25;
  margin: -.1rem 0 1rem;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); max-width: 42rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Sprungmarken auf langen Seiten */
.sprungmarken { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sprungmarken a {
  display: block; padding: .3rem .8rem; border-radius: 999px;
  background: var(--weiss); border: 1px solid var(--linie);
  font-size: .95rem; font-weight: 700; text-decoration: none;
}
.sprungmarken a:hover { border-color: var(--orange); }

/* ---------- Startseite: Kopfbereich ---------- */

.held__innen { display: grid; gap: 2rem; padding-block: 2.5rem 1rem; align-items: center; }
@media (min-width: 60rem) {
  .held__innen { grid-template-columns: 1.15fr 1fr; padding-block: 3.5rem 1.5rem; }
}
.held .titel { font-size: clamp(3.4rem, 11vw, 5.8rem); }

/* ---------- Abschnitte ---------- */

/* Hellorange heißt: Hier können Sie etwas tun – den Weg zu uns, die
   Bewerbung, die Notrufnummern. Alles andere steht auf Papier, ohne
   Wechsel von Abschnitt zu Abschnitt; die Überschriften gliedern. */
.abschnitt { padding-block: 3rem; }
@media (min-width: 48rem) { .abschnitt { padding-block: 4rem; } }
.abschnitt--hell { background: var(--orange-hell); }
.abschnitt__kopf { max-width: 44rem; margin-bottom: 2rem; }

/* Drei Raster, mehr nicht: Text und Bild (.zweispaltig), Karten mit der
   Überschrift darüber (.abschnitt__kopf + .karten) und reiner Text mit der
   Überschrift links daneben (.marginal) – so bleibt keine halbe Zeile leer. */
.zweispaltig { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .zweispaltig { grid-template-columns: 1fr 1fr; gap: 3rem; } }
/* Kurzer Text neben einem Bild: mittig zum Bild statt oben mit Leere darunter */
.zweispaltig--mitte { align-items: center; }

/* minmax(0, 1fr) auch einspaltig: Sonst wächst die Spalte mit dem breitesten
   Inhalt, und ein Kartenraster darin schiebt die Seite auf dem Handy seitlich hinaus */
.marginal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; align-items: start; }
.marginal > :last-child { max-width: 44rem; }
@media (min-width: 56rem) {
  .marginal { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .marginal > h2, .marginal > :first-child > h2 { margin-top: -.2rem; }
}

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

.karten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.karten--paar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.karte {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 1.25rem 1.25rem 1.5rem;
}
.karte h3 { margin-top: .75rem; }
/* Foto bündig oben in der Karte */
.karte { overflow: hidden; }
.karte__bild { margin: -1.25rem -1.25rem 1rem; }
.karte__bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte__bild + h3 { margin-top: 0; }
.karte ul { padding-left: 1.1rem; }

/* Auf dem Handy stünden vier Karten mit großem Foto untereinander – fast
   zwei Bildschirme. Kompakt steht das Foto klein links neben dem Text. */
@media (max-width: 39.99rem) {
  .karten--kompakt .karte {
    display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 1rem; align-content: start;
    padding: 1rem 1rem 1rem 0;
  }
  .karten--kompakt .karte__bild { grid-row: span 2; margin: -1rem 0; }
  .karten--kompakt .karte__bild img { height: 100%; min-height: 6.5rem; aspect-ratio: auto; }
  .karten--kompakt .karte h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
  .karten--kompakt .karte p { font-size: .97rem; }
}

/* ---------- Leitsatz und Bänder ---------- */

.leitsatz { text-align: center; }
.leitsatz .rahmen > * { max-width: 40rem; margin-inline: auto; }
.leitsatz__satz {
  font-family: var(--hand); font-weight: 700; font-size: clamp(2.8rem, 8vw, 4.4rem);
  line-height: 1; text-wrap: balance; margin-bottom: .75rem;
}

/* Text links, Knopf rechts – auf dem Handy untereinander */
.band { display: grid; gap: 1.25rem 3rem; align-items: center; }
@media (min-width: 48rem) { .band { grid-template-columns: 1fr auto; } }
.band h2 { margin-bottom: .3rem; }

.fakten { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.fakten li {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 999px;
  padding: .25rem .85rem; font-weight: 700; font-size: .95rem;
}
.fakten + p { margin-top: 1.5rem; }

/* Beispiele unter „Gemeinsam Neues wagen“ – die Liste allein läse sich wie
   ein Freizeitprogramm, deshalb steht der Zweck gleich darunter */
.zum-beispiel { margin-top: 2.5rem; max-width: 52rem; }
.zum-beispiel h3 { margin-bottom: .3rem; }
.zum-beispiel .fakten { margin-top: .5rem; }

/* ---------- Fragen und Antworten ---------- */

/* <details> klappt ohne Skript auf – die Content-Security-Policy lässt keins zu */
.fragen { display: grid; gap: .6rem; }
.fragen details { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--rund); }
.fragen summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem 1.2rem; font-weight: 800; cursor: pointer; list-style: none;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--orange-hell); font-size: 1.3rem; line-height: 1;
}
.fragen details[open] summary::after { content: "–"; background: var(--orange); }
.fragen details > p { padding: 0 1.2rem 1rem; margin: 0; }

/* ---------- Stimmen aus dem Team ---------- */

.stimmen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.stimme {
  margin: 0; background: var(--weiss); border: 1px solid var(--linie);
  border-top: 6px solid var(--orange); border-radius: var(--rund); padding: 1.25rem 1.3rem;
}
.stimme p { font-size: 1.1rem; font-style: italic; }

/* ---------- Schritte ---------- */

.schritte { list-style: none; padding: 0; margin: 0; counter-reset: schritt; display: grid; gap: 1rem; }
.schritte > li {
  counter-increment: schritt;
  display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 1.1rem 1.25rem;
}
.schritte > li::before {
  content: counter(schritt);
  grid-row: span 2;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--orange); font-weight: 800; font-size: 1.35rem; line-height: 1;
}
.schritte h3 { margin: .55rem 0 .2rem; }

/* ---------- Kästen ---------- */

.kasten {
  background: var(--weiss); border-left: 6px solid var(--orange);
  border-radius: 0 var(--rund) var(--rund) 0; padding: 1.1rem 1.3rem;
}
.kasten + .kasten, .nach-kasten { margin-top: 1rem; }
.zweispaltig > .kasten, .karten > .kasten { margin-top: 0; }
.kasten h3 { font-size: 1.1rem; margin-bottom: .35rem; }

.haken { list-style: none; padding: 0; }
.haken li { position: relative; padding-left: 1.8rem; margin-bottom: .45rem; }
.haken li::before {
  content: ""; position: absolute; left: .1rem; top: .45em;
  width: .9rem; height: .5rem;
  border-left: 3px solid var(--orange-tief); border-bottom: 3px solid var(--orange-tief);
  transform: rotate(-45deg);
}

.schlicht { list-style: none; padding: 0; }
.schlicht li { padding: .55rem 0; border-bottom: 1px solid var(--linie); }
.schlicht li:last-child { border-bottom: 0; }

.knopf {
  display: inline-block; background: var(--orange); color: var(--tinte);
  font-weight: 800; text-decoration: none; padding: .7rem 1.3rem; border-radius: 999px;
}
.knopf:hover { background: var(--orange-tief); }
.knopf--zweit { background: var(--weiss); box-shadow: inset 0 0 0 2px var(--orange); }
.knopf--zweit:hover { background: var(--orange-hell); }

/* Kleiner Verweis mit Pfeil, wo ein Knopf zu laut wäre */
.weiter { font-weight: 800; }
.weiter::after { content: " →"; }

/* Antippbare Nummer: Das Bild selbst trägt keinen Unterstrich, deshalb eine Linie darunter */
a.tel { text-decoration: none; border-bottom: 2px solid var(--orange); }
a.tel:hover { border-bottom-color: currentColor; }

.gross { font-size: 1.25rem; font-weight: 800; }
.klein { font-size: .92rem; color: var(--tinte-weich); }

/* ---------- Fotos ---------- */

.foto { margin: 0; }
.foto img { display: block; width: 100%; border-radius: 24px; }
.foto figcaption, .galerie figcaption {
  font-family: var(--hand); font-weight: 700; font-size: 1.85rem; line-height: 1.1;
  margin-top: .5rem; color: var(--tinte-weich);
}
.held .foto img { aspect-ratio: 8 / 5; object-fit: cover; }

/* Mehrere kleine Fotos nebeneinander */
.galerie { display: grid; gap: 1.25rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; }
.galerie figure { margin: 0; }
.galerie img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rund); }
/* Zwei Bilder unter einem Absatz – auch auf dem Handy nebeneinander */
.galerie--paar { grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem; }
/* Zwei Absätze mit je zwei Bildern: Bilder auf einer Höhe, auch wenn ein Text länger ist */
.einblicke { align-items: stretch; }
.einblicke > div { display: flex; flex-direction: column; }
.einblicke .galerie--paar { margin-top: auto; padding-top: 1.25rem; }

/* ---------- Wegweiser (Kontakt) ---------- */

.wegweiser { display: grid; gap: 1rem; }
.wegweiser > div {
  display: grid; gap: .3rem 2rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 1.1rem 1.3rem;
}
@media (min-width: 48rem) { .wegweiser > div { grid-template-columns: 18rem 1fr; } }
.wegweiser dt { font-weight: 800; }
.wegweiser dd { margin: 0; }

/* ---------- Rechtstexte ---------- */

.recht h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.recht h2:first-child { margin-top: 0; }
.recht address { font-style: normal; }

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

.fuss { margin-top: 2rem; }
.fuss::before {
  content: ""; display: block;
  height: clamp(24px, 4vw, 48px);
  background: url("/bilder/welle-orange.svg") center bottom / 100% 100% no-repeat;
}
.fuss__flaeche { background: var(--orange); padding-block: 1.5rem 1.25rem; }
.fuss a { text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.fuss a.tel { border-bottom: 1px solid currentColor; }
.fuss__raster { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.fuss p { margin-bottom: .6rem; }
.fuss__name { font-weight: 800; font-size: 1.15rem; margin-bottom: .1rem !important; }
.fuss__hinweis { font-size: .95rem; }
.fuss__links { list-style: none; padding: 0; margin: 0; }
.fuss__links li { margin-bottom: .35rem; }
.fuss__vpk { display: flex; gap: .75rem; align-items: center; align-self: start; font-size: .95rem; }
.fuss__vpk img { background: var(--weiss); border-radius: 8px; padding: 4px; flex: none; }
.fuss__klein { font-size: .85rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(42, 33, 24, .25); }

@media print {
  .kopf nav, .fuss::before, .seitenkopf::after, .held::after, .entwurf { display: none; }
  .fuss__flaeche, .seitenkopf, .held, .abschnitt--hell { background: none; }
}
