/* Korb voll Zeit: Gestaltung der Website.
   Farben, Schriften und Abstände stehen zentral in :root und lassen sich dort ändern. */

/* Schriften liegen lokal im Ordner fonts/, damit keine Daten an Google gehen. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-kursiv.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #fbf8f3;
  --papier-hell: #fffdfa;
  --weide: #efe6d8;
  --linie: #dcd2c2;
  --tinte: #1c1a18;
  --tinte-weich: #5a544c;

  --rot: #ea0114;        /* Logo-Rot: für Flächen, Linien und große Schrift */
  --rot-dunkel: #c20010; /* für kleinen Text auf Papier, wegen des Kontrasts */

  /* Jahreszeiten-Akzente für die Reihe „Ein Korb voll …“ */
  --fruehling: #4f7a3a;
  --sommer: #c8920a;
  --herbst: #a8502a;
  --advent: #6b3fa0;

  --schrift-titel: "Fraunces", Georgia, serif;
  --schrift-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(3.5rem, 8vw, 6.5rem);
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
  hyphens: auto;  /* lange deutsche Wörter dürfen auf dem Handy umbrechen */
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }

main { flex-grow: 1; }  /* schiebt den Fußbereich auch auf kurzen Seiten nach unten */

p { margin: 0 0 1em; }

a { color: var(--rot-dunkel); text-underline-offset: 0.15em; }
a:hover { color: var(--tinte); }

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Bausteine ---------- */

.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}
.inhalt.schmal { max-width: 46rem; }

.abschnitt { padding: var(--abstand) 0; }
.abschnitt-weide { background: var(--weide); }

.vorzeile {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--tinte-weich);
  margin-bottom: 0.75rem;
}

.einleitung {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.5;
  max-width: 40rem;
}

.fliesstext { max-width: 40rem; }

.knopf {
  display: inline-block;
  background: var(--rot);
  color: #fff;
  border: 2px solid var(--rot);
  border-radius: 0.4rem;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }

.knopf-zweit { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf-zweit:hover { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Fehlende Angaben: gelb markiert, damit sie vor dem Start nicht übersehen werden */
mark.offen {
  background: #ffe36e;
  color: var(--tinte);
  padding: 0.05em 0.3em;
  border-radius: 0.2em;
}

.entwurf {
  margin: 0;
  padding: 0.35rem var(--rand);
  background: var(--tinte);
  color: var(--papier);
  font-size: 0.9rem;
  text-align: center;
}

.springen {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 20;
  background: var(--tinte);
  color: #fff;
  padding: 0.5rem 1rem;
}
.springen:focus { top: 0.5rem; color: #fff; }

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

.kopf {
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.6rem var(--rand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Das Logo hat einen weißen Hintergrund. „multiply“ lässt es mit dem Papierton verschmelzen. */
.logo img { width: 224px; mix-blend-mode: multiply; }

.menue { display: flex; align-items: center; gap: 0.25rem 1.5rem; flex-wrap: wrap; }
.menue a {
  color: var(--tinte);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.menue a:hover, .menue a[aria-current] { border-bottom-color: var(--rot); }

.menue-knopf {
  display: none;
  font: inherit;
  font-weight: 600;
  background: none;
  color: var(--tinte);
  border: 2px solid var(--tinte);
  border-radius: 0.4rem;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

/* ---------- Startseite: Einstieg ---------- */

.start {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--rand) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.start h1 em { font-style: italic; color: var(--rot); }
.start-fragen {
  font-family: var(--schrift-titel);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--tinte-weich);
}
.start-korb {
  width: min(100%, 25rem);
  margin-inline: auto;
  mix-blend-mode: multiply;
}

/* ---------- Zwei Einstiege ---------- */

.tueren {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.tuer {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--linie);
  border-radius: 0.5rem;
  background: var(--papier-hell);
  color: var(--tinte);
  text-decoration: none;
  transition: transform 0.15s;
}
.tuer:hover { color: var(--tinte); transform: translateY(-3px); }
.tuer h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.tuer p { flex-grow: 1; }
.tuer-weiter { font-weight: 600; color: var(--rot-dunkel); }
.tuer-weiter::after { content: " →"; }

.tuer-dunkel { background: var(--weide); border-color: var(--linie); color: var(--tinte); }
.tuer-dunkel:hover { color: var(--tinte); }
.tuer-dunkel .tuer-weiter { color: var(--rot-dunkel); }

/* ---------- Termine ---------- */

.termine-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.termin-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }

.termin { --akzent: var(--tinte); border-bottom: 1px solid var(--linie); }
[data-zeit="fruehling"] { --akzent: var(--fruehling); }
[data-zeit="sommer"] { --akzent: var(--sommer); }
[data-zeit="herbst"] { --akzent: var(--herbst); }
[data-zeit="advent"] { --akzent: var(--advent); }

.termin a {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0.25rem;
  color: var(--tinte);
  text-decoration: none;
}
.termin a:hover .termin-titel { color: var(--rot-dunkel); }

/* Vorschaubild am Zeilenanfang, nur in der Terminübersicht (nicht in der Kurzliste auf der Startseite) */
.termin-vorschau { display: none; }
.termin-liste:not([data-max]) .termin a:has(.termin-vorschau) { grid-template-columns: 8rem 6.5rem minmax(0, 1fr); align-items: stretch; }
.termin-liste:not([data-max]) .termin a:has(.termin-vorschau) .termin-text { align-self: center; }
.termin-liste:not([data-max]) .termin a:has(.termin-vorschau) .termin-datum { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.termin-liste:not([data-max]) .termin-vorschau { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.3rem; }

.termin-datum { border-left: 4px solid var(--akzent); padding-left: 0.7rem; line-height: 1.2; }
.termin-tag { display: block; font-family: var(--schrift-titel); font-size: 1.4rem; font-weight: 500; }
.termin-monat { display: block; font-size: 0.95rem; color: var(--tinte-weich); }

.termin-text { display: block; }
.termin-titel { display: block; font-family: var(--schrift-titel); font-size: 1.3rem; line-height: 1.25; }
.termin-info { display: block; color: var(--tinte-weich); }

.status {
  display: inline-block;
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rot-dunkel);
}

.jahreskreis svg { width: 100%; max-width: 24rem; height: auto; display: block; margin-inline: auto; }
.jahreskreis-notiz { text-align: center; font-size: 0.95rem; color: var(--tinte-weich); margin-top: 0.75rem; }

.kreis-rand { fill: none; stroke: var(--tinte); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 15 9; }
.kreis-knoten { fill: var(--rot); }
.kreis-termin { stroke: var(--papier); stroke-width: 3; }
.kreis-termin-fruehling { fill: var(--fruehling); }
.kreis-termin-sommer { fill: var(--sommer); }
.kreis-termin-herbst { fill: var(--herbst); }
.kreis-termin-advent { fill: var(--advent); }
.kreis-monat { font-family: var(--schrift-text); font-size: 15px; fill: var(--tinte-weich); text-anchor: middle; dominant-baseline: central; }
.kreis-monat-aktiv { fill: var(--tinte); font-weight: 700; }
.kreis-zeiger { stroke: var(--rot); stroke-width: 6; stroke-linecap: round; }

.keine-termine { padding: 1rem 0; }

/* ---------- Schwerpunkte ---------- */

.schwerpunkte {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.schwerpunkt svg { width: 4.5rem; height: 4.5rem; margin-bottom: 0.75rem; }
.schwerpunkt p { margin: 0; color: var(--tinte-weich); }
.zeichnung { fill: none; stroke: var(--tinte); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.zeichnung .rot { stroke: var(--rot); }
.zeichnung .rot-flaeche { fill: var(--rot); stroke: none; }

/* ---------- Person ---------- */

.person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.portraet {
  margin: 0;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background: var(--papier-hell);
  border: 1px dashed var(--tinte-weich);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}
.portraet img { width: 45%; mix-blend-mode: multiply; }

/* ---------- Motto ---------- */

.motto { background: var(--rot); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.motto p.motto-satz {
  font-family: var(--schrift-titel);
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  max-width: 44rem;
  margin-bottom: 1.5rem;
}
.motto .knopf { background: #fff; border-color: #fff; color: var(--rot-dunkel); }
.motto .knopf:hover { background: var(--tinte); border-color: var(--tinte); color: #fff; }

/* ---------- Unterseiten ---------- */

.seitenkopf { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--weide); }
.seitenkopf h1 { max-width: 16em; }

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.karte {
  background: var(--papier-hell);
  border: 1px solid var(--linie);
  border-top: 4px solid var(--akzent, var(--tinte));
  border-radius: 0.4rem;
  padding: 1.5rem;
}
.karte p:last-child { margin-bottom: 0; }
.karte-zeit { font-weight: 600; color: var(--tinte-weich); }

.schritte { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: schritt; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.schritte li { counter-increment: schritt; }
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
}
.schritte h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.schritte p { margin: 0; }

.fragen { margin-top: 1.5rem; border-top: 1px solid var(--linie); max-width: 46rem; }
.fragen details { border-bottom: 1px solid var(--linie); padding: 0.9rem 0; }
.fragen summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; }
.fragen details p { margin: 0.6rem 0 0.2rem; }

.lebenslauf { list-style: none; margin: 1.5rem 0 0; padding: 0; border-left: 3px solid var(--rot); }
.lebenslauf li { padding: 0 0 1.25rem 1.25rem; }
.lebenslauf strong { display: block; }
.weiterbildung-titel { font-size: 1.2rem; margin-top: 2rem; }
.lebenslauf span { color: var(--tinte-weich); }

.rechtstext h2 { font-size: 1.5rem; margin-top: 2rem; }

/* ---------- Terminseite ---------- */

.termin-seite { padding: clamp(2rem, 5vw, 3.5rem) 0 var(--abstand); }
.zurueck a::before { content: "← "; }
.punkt { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--akzent, var(--tinte)); margin-right: 0.5em; }

.fakten { margin: 1.5rem 0 2rem; border-top: 1px solid var(--linie); }
.fakten div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--linie);
}
.fakten dt { font-weight: 600; }
.fakten dd { margin: 0; }

.termin-aktion { margin-top: 2rem; }
.termin-aktion p { margin-top: 0.75rem; color: var(--tinte-weich); }

.vorbei-hinweis { font-weight: 600; }

/* ---------- Kontakt ---------- */

.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.formular { display: grid; gap: 1.1rem; }
.feld label, .feld legend { display: block; font-weight: 600; margin-bottom: 0.25rem; padding: 0; }
.feld-hinweis { font-weight: 400; color: var(--tinte-weich); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld textarea {
  width: 100%;
  font: inherit;
  color: var(--tinte);
  background: var(--papier-hell);
  border: 1px solid var(--tinte-weich);
  border-radius: 0.35rem;
  padding: 0.6rem 0.75rem;
}
.feld textarea { min-height: 9rem; resize: vertical; }
fieldset.feld { border: 0; margin: 0; padding: 0; }
.auswahl { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.auswahl label { font-weight: 400; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.auswahl input { accent-color: var(--rot); width: 1.1rem; height: 1.1rem; }

/* Fangfeld gegen Spam: für Menschen unsichtbar */
.fangfeld { position: absolute; left: -9999px; }

.formular-meldung { background: var(--weide); border-left: 4px solid var(--rot); padding: 0.75rem 1rem; margin: 0; }
.formular-klein { font-size: 1rem; color: var(--tinte-weich); margin: 0; }

.kontakt-wege { background: var(--weide); border-radius: 0.5rem; padding: 1.5rem; align-self: start; }
.kontakt-wege h2 { font-size: 1.5rem; }
.kontakt-wege img { width: 5.5rem; margin-bottom: 1rem; mix-blend-mode: multiply; }

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

.fuss { background: var(--tinte); color: var(--papier); padding: 2.5rem 0; }
.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}
.fuss p { margin: 0; }
.fuss-name { font-family: var(--schrift-titel); font-size: 1.4rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; }
.fuss a { color: var(--papier); padding: 0.25rem 0; }
.fuss a:hover { color: #fff; }
.fuss :focus-visible { outline-color: #fff; }

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 62rem) {
  .schwerpunkte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 50rem) {
  .start { grid-template-columns: minmax(0, 1fr); }
  .start { padding-top: 1.5rem; gap: 0.75rem; }
  .start-korb { width: 7.5rem; grid-row: 1; margin-inline: 0; }  /* klein, damit die Kernaussage sofort sichtbar ist */
  .tueren, .person, .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .termine-raster { grid-template-columns: minmax(0, 1fr); }
  .jahreskreis { display: none; }  /* Auf dem Handy reicht die Liste */
  .portraet { max-width: 18rem; aspect-ratio: 1; }
}

@media (max-width: 44rem) {
  .logo img { width: 176px; }
  .menue-knopf { display: block; }
  .kopf-innen { flex-wrap: wrap; }
  .menue { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.5rem; }
  .menue.offen-menue { display: flex; }
  .menue a { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
  .menue a[aria-current] { color: var(--rot-dunkel); border-bottom-color: var(--linie); }
}

@media (max-width: 30rem) {
  .schwerpunkte { grid-template-columns: minmax(0, 1fr); }
  .schwerpunkt { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1rem; }
  .schwerpunkt svg { width: 3.5rem; height: 3.5rem; grid-row: span 2; }
  .schwerpunkt h3 { margin-bottom: 0.2em; }
  .termin a { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.75rem; }
  .termin-liste:not([data-max]) .termin a:has(.termin-vorschau) { grid-template-columns: 4.5rem 5rem minmax(0, 1fr); }
  .fakten div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .knopf-reihe .knopf { width: 100%; text-align: center; }
}

/* Ohne JavaScript bleibt das Menü sichtbar */
@media (scripting: none) {
  .menue { display: flex; }
  .menue-knopf { display: none; }
}

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

/* Bildplatz in den Karten: zeigt "Bild folgt", bis ein Foto da ist.
   Später im HTML durch <img class="karte-bild" ...> ersetzen. */
.karte-bild {
  margin: 0 0 1.25rem;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--weide);
  border: 1px dashed var(--tinte-weich);
  border-radius: 0.3rem;
}
img.karte-bild { width: 100%; object-fit: cover; border: 0; }
.kontakt-foto { aspect-ratio: 4 / 5; }
.karte > svg { width: 3.5rem; height: 3.5rem; margin-bottom: 0.75rem; }

/* ---------- Rückblick ---------- */
.fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.fotos figure { margin: 0; }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.3rem; }
.fotos figcaption { font-size: 0.95rem; color: var(--tinte-weich); margin-top: 0.4rem; }
.rueckblick-link { margin-top: 1.5rem; font-weight: 600; }
.rueckblick-fuss { color: var(--tinte-weich); }
.termin-vorbei-hinweis { color: var(--rot-dunkel); font-weight: 600; }

/* Karten unter "Mögliche Formate": Symbol, großer Titel und Überschrift mittig */
.format-karte { text-align: center; }
.format-karte p { text-align: left; }
.format-karte > svg { display: block; margin: 0.25rem auto 0.5rem; width: 4.5rem; height: 4.5rem; }
.format-karte > p.format-titel { text-align: center; font-family: var(--schrift-titel); font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.15; hyphens: manual; color: var(--rot-dunkel); margin: 0 0 0.6rem; }
.format-karte .karte-bild { margin-top: 0.5rem; }

/* Karten nebeneinander: Überschriften immer zwei Zeilen hoch, damit die Bilder auf gleicher Höhe beginnen */
@media (min-width: 50rem) {
  .format-karte h3 { min-height: 2.24em; display: flex; align-items: center; justify-content: center; }
}

/* Jahreskreis: Jahreszeiten als zarte Farbflächen, Termine anklickbar */
.kreis-flaeche { stroke: none; fill-opacity: 0.16; }
.kreis-flaeche-fruehling { fill: var(--fruehling); }
.kreis-flaeche-sommer { fill: var(--sommer); }
.kreis-flaeche-herbst { fill: var(--herbst); }
.kreis-flaeche-advent { fill: var(--advent); }
.kreis-link { cursor: pointer; outline: none; }
.kreis-treffer { fill: transparent; }
.kreis-link .kreis-termin { transition: transform 0.15s; transform-box: fill-box; transform-origin: center; }
.kreis-link:hover .kreis-termin, .kreis-link:focus-visible .kreis-termin { transform: scale(1.3); }
.kreis-link:focus-visible .kreis-treffer { stroke: var(--tinte); stroke-width: 2; }

/* Familien-Seite: alle Kartenbalken rot */
.format-karte[data-zeit] { --akzent: var(--rot); }

.rueckblick-symbol { width: 4.5rem; height: 4.5rem; margin-bottom: 0.75rem; display: block; }

/* Porträt von Lena */
.portraet-bild { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 0.5rem; }
img.kontakt-foto { object-position: 50% 30%; background: none; }
@media (max-width: 50rem) { .portraet-bild { max-width: 20rem; aspect-ratio: 1; } }

/* Panorama über dem roten Balken: volle Breite, auf kleinen Bildschirmen angeschnitten */
.panorama { margin: 0; }
.panorama img { display: block; width: 100%; height: clamp(11rem, 30vw, 28rem); object-fit: cover; object-position: 50% 60%; }

/* Bild auf der Terminseite: bei allen Terminen gleich groß */
.termin-bild { margin: 1.5rem 0 0; }
.termin-bild img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.4rem; }

/* Karte "Zielgruppe Kita / Schule": über die ganze Breite, zwei Hälften mit eigenem Symbol */
.format-karte-breit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.format-karte-breit .zielgruppe > p { text-align: left; }
.format-karte .zielgruppe-titel { min-height: 0; display: block; margin-bottom: 0.6rem; }
.zielgruppe > svg { display: block; margin: 0.25rem auto 0.5rem; width: 4.5rem; height: 4.5rem; }
@media (max-width: 50rem) { .format-karte-breit { grid-template-columns: minmax(0, 1fr); } }
.karten-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 56rem) { .karten-drei { grid-template-columns: minmax(0, 1fr); } }
/* Drei Karten nebeneinander: Zeichnung, Zwischenüberschrift, Überschrift und Text beginnen jeweils auf gleicher Höhe */
@media (min-width: 56.01rem) {
  .karten-drei { row-gap: 0; }
  .karten-drei > .format-karte { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
}
.zwischentitel { margin-top: 3rem; }
.karten-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.karten-zwei .format-karte > p { text-align: left; }
@media (max-width: 50rem) { .karten-zwei { grid-template-columns: minmax(0, 1fr); } }

/* Anfrage-Abschnitt: Text links, Bild rechts */
.anfrage-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.anfrage-bild { order: -1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; border-radius: 0.5rem; }
@media (max-width: 50rem) { .anfrage-raster { grid-template-columns: minmax(0, 1fr); } .anfrage-bild { order: 0; aspect-ratio: 4 / 3; } }

/* Urhebervermerk auf allen Fotos */
.foto { position: relative; margin: 0; }
.foto::after {
  content: "© korbvollzeit";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.5;
  pointer-events: none;
}
.fotos .foto::after { bottom: auto; top: 0.6rem; }
.foto > img { display: block; }
.foto-karte { margin: 0.5rem 0 1.25rem; }
.foto-karte > img.karte-bild { margin: 0; }
.portraet-foto { width: 100%; }
.foto-anfrage { order: -1; }
.termin-bild.foto { margin: 1.5rem 0 0; }
@media (max-width: 50rem) { .portraet-foto { max-width: 20rem; } .foto-anfrage { order: 0; } }

/* ---------- Anmeldeformular (Dialog) ---------- */
.anmeldung { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--linie); }
.anmeldung h2 { font-size: 1.6rem; }

.anmeldung-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  background: var(--papier);
  color: var(--tinte);
  overflow: auto;
}
.anmeldung-dialog::backdrop { background: rgba(28, 26, 24, 0.6); }
.dialog-kopf {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--weide);
  border-bottom: 1px solid var(--linie);
}
.dialog-kopf h3 { margin: 0; font-size: 1.3rem; }
.dialog-zu { font: inherit; font-size: 1.8rem; line-height: 1; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: none; color: var(--tinte); cursor: pointer; }
.dialog-zu:hover { background: rgba(0, 0, 0, 0.08); }

.anmeldung-form, .anmeldung-erfolg { padding: 1.5rem; display: grid; gap: 1.1rem; }
.anmeldung-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.feld-voll { grid-column: 1 / -1; }
.anmeldung-felder input { width: 100%; font: inherit; color: var(--tinte); background: var(--papier-hell); border: 1px solid var(--tinte-weich); border-radius: 0.35rem; padding: 0.6rem 0.75rem; }
.anmeldung-felder label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.anmeldung-felder .feld-hinweis { display: block; margin-top: 0.25rem; font-size: 0.95rem; }
.pflicht { color: var(--rot-dunkel); }
.einwilligung { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: 0.95rem; }
.einwilligung input { accent-color: var(--rot); width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; }

@media (max-width: 40rem) {
  .anmeldung-felder { grid-template-columns: minmax(0, 1fr); }
  .anmeldung-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .anmeldung-form, .anmeldung-erfolg { padding: 1rem; }
}
.anmeldung-frage { margin: 0.75rem 0 0; font-size: 0.95rem; color: var(--tinte-weich); }
.anmeldung-frage a { color: var(--tinte-weich); }
.anmeldung-frage a:hover { color: var(--tinte); }
.anmeldung-preis { padding: 0.9rem 1rem; border-radius: 0.4rem; background: var(--weide); }
.anmeldung-preis p { margin: 0; }
.anmeldung-preis p + p { margin-top: 0.6rem; color: var(--tinte-weich); font-size: 0.95rem; }
