/* Kinderbewegung – gemeinsames Stylesheet
   Marke: Magenta #d1226b und Blau #11a1e1 aus der alten Seite.
   Weiß auf Blau ist zu schwach (2,9:1), deshalb auf Blau dunkle Schrift. */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --magenta: #d1226b;
  --magenta-text: #b81d5d;
  --magenta-dunkel: #a31a53;
  --magenta-hell: #fbe9f1;
  --blau: #11a1e1;
  --blau-hell: #e3f4fc;
  --tinte: #2a1424;
  --tinte-blau: #0a2633;
  --grau: #5c4656;
  --linie: #eadbe3;
  --weiss: #ffffff;

  --display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;

  --radius: 16px;
  --breite: 1200px;
  --rand: 40px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--weiss); color: var(--tinte); font-family: var(--text); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--magenta-text); }
a:hover { color: var(--magenta-dunkel); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--tinte-blau); outline-offset: 3px; box-shadow: 0 0 0 6px var(--weiss); border-radius: 4px; }

.w { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding-block: 96px; }
.abschnitt-eng { padding-block: 72px; }
.text-magenta { color: var(--magenta-text); }
.lead { font-size: 21px; line-height: 1.5; max-width: 36ch; }
.mass { max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.springe { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--tinte-blau); color: #fff; padding: 12px 16px; border-radius: 12px; }
.springe:focus { top: 12px; }

/* Kopfleiste */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.84); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.kopf .w { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.kopf-logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 17px; }
.nav a:not(.btn) { color: var(--tinte); text-decoration: none; padding-block: 12px; }
.nav a:not(.btn):hover { color: var(--magenta-text); }
.nav a[aria-current="page"]:not(.btn) { color: var(--magenta-text); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-knopf { display: none; width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--linie); background: var(--weiss); align-items: center; justify-content: center; cursor: pointer; }
@media (prefers-reduced-transparency: reduce) { .kopf { background: var(--weiss); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-magenta { background: var(--magenta); color: var(--weiss); }
.btn-weiss { background: var(--weiss); color: var(--magenta-dunkel); }
.btn-rand { color: var(--weiss); border: 2px solid rgba(255,255,255,0.7); background: transparent; }
.btn-rand-dunkel { color: var(--tinte); border: 2px solid var(--tinte); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-magenta:hover { background: var(--magenta-text); color: var(--weiss); }
  .btn-weiss:hover { background: #fde8f1; color: var(--magenta-dunkel); }
  .btn-rand:hover { background: rgba(255,255,255,0.12); color: var(--weiss); }
}
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; }

/* Logo-Bühne und Magenta-Band */
.buehne-logo { padding-block: 40px 32px; }
.buehne-logo img { width: 100%; max-width: 1100px; height: auto; margin: 0 auto; animation: auftritt 520ms var(--ease-out) both; }
@keyframes auftritt { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.band { background: var(--magenta); color: var(--weiss); }
.welle { display: block; width: 100%; height: 64px; background: var(--weiss); }
.band-kopf { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: end; padding-top: 24px; }
.band-titel { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -0.025em; margin: 0; }
.fotostreifen { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-top: 48px; padding-bottom: 72px; }
.fotostreifen img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); }

/* Seitenkopf für Unterseiten */
.seitenkopf { background: var(--magenta); color: var(--weiss); }
.seitenkopf .w { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: center; padding-block: 64px 24px; }
.seitenkopf h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1; letter-spacing: -0.025em; }
.seitenkopf p { margin-top: 18px; font-size: 21px; max-width: 46ch; }
.seitenkopf .figur { width: 168px; height: 168px; }

/* Figuren in Kreisen (Signatur) */
.figur { width: 240px; height: 240px; border-radius: 50%; background: var(--weiss); display: flex; align-items: center; justify-content: center; flex: none; }
.figur img { max-width: 80%; max-height: 82%; width: auto; height: auto; }
.ring-magenta { box-shadow: 0 0 0 10px var(--magenta); }
.ring-blau { box-shadow: 0 0 0 10px var(--blau); }

/* Idee */
.idee { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 64px; align-items: center; }
.idee .figur { margin-inline: auto; }
.ziele { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.ziele li { border-radius: var(--radius); padding: 24px; }
.ziele li:nth-child(1), .ziele li:nth-child(4) { background: var(--magenta-hell); }
.ziele li:nth-child(2), .ziele li:nth-child(3) { background: var(--blau-hell); }

/* Stunde */
.stunde { background: var(--blau); color: var(--tinte-blau); }
.stunde-raster { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 56px; align-items: center; }
.phasen { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.phase { background: var(--weiss); border-radius: var(--radius); padding: 24px; }
.phase h3 { font-size: 21px; color: var(--magenta-text); margin-bottom: 10px; }
.phase ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

/* Orte (asymmetrisch) */
.orte { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); grid-template-rows: auto auto; gap: 24px; }
.ort { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.ort img { width: 100%; object-fit: cover; }
.ort-text { padding: 26px 30px 30px; }
.ort-text h3 { margin-bottom: 8px; }
.ort-gross { grid-row: span 2; background: var(--magenta); color: var(--weiss); }
.ort-gross img { height: 380px; }
.ort-gross h3 { font-size: 30px; }
.ort-quer { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); }
.ort-quer img { height: 100%; min-height: 230px; }
.ort-blau { background: var(--blau); color: var(--tinte-blau); }
.ort-rosa { background: var(--magenta-hell); color: var(--tinte); }
.ort-weiter { display: inline-block; margin-top: 12px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* Fotobuch-Teaser */
.teaser { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: repeat(2, 240px); gap: 12px; margin-top: 32px; }
.teaser img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.teaser img:first-child { grid-column: span 2; grid-row: span 2; }
.kopfzeile { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Team */
.team-flaeche { background: var(--blau-hell); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; margin-top: 32px; }
.person { display: flex; gap: 24px; align-items: flex-start; }
.person img { width: 136px; height: 168px; object-fit: cover; border-radius: var(--radius); flex: none; background: var(--magenta-hell); }
.person .name { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0 0 6px; }
.person ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: #3d2a36; }

/* Listen und Infoblöcke */
.zwei { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; }
.fakten { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 8px 16px; margin: 16px 0 0; }
.fakten dt { font-weight: 700; color: var(--grau); }
.fakten dd { margin: 0; }
.kurs { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px; align-items: center; padding-block: 48px; border-top: 1px solid var(--linie); }
.kurs:first-of-type { border-top: 0; }
.kurs img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); }
.kurs:nth-of-type(even) .kurs-bild { order: 2; }
.leistungen { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 40px; }
.leistungen li { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.module { display: grid; gap: 24px; margin-top: 32px; }
.modul { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); border-radius: var(--radius); overflow: hidden; background: var(--weiss); }
.modul-text { padding: 28px 32px; }
.modul-nr { font-weight: 700; color: var(--magenta-text); margin-bottom: 4px; }
.modul ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.modul-bild { position: relative; min-height: 260px; }
.modul-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.module-flaeche { background: var(--magenta-hell); }
.kasten { border-radius: var(--radius); padding: 32px; }
.kasten-magenta { background: var(--magenta); color: var(--weiss); }
.kasten-magenta a { color: var(--weiss); font-weight: 700; }
.kasten-blau { background: var(--blau); color: var(--tinte-blau); }
.kasten ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.downloads { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 40px; }
.downloads a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--linie); color: var(--tinte); text-decoration: none; font-weight: 700; }
.downloads a span { font-weight: 400; color: var(--grau); font-size: 15px; white-space: nowrap; }
.downloads a:hover { color: var(--magenta-text); }

/* Fotobuch */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.filter button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--linie); background: var(--weiss); color: var(--tinte); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform 140ms var(--ease-out); }
.filter button:active { transform: scale(0.97); }
.filter button[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: var(--weiss); }
.galerie { columns: 3 300px; column-gap: 16px; margin-top: 32px; }
.galerie figure { break-inside: avoid; margin: 0 0 16px; }
.galerie button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.galerie img { width: 100%; height: auto; }
.galerie figcaption { font-size: 15px; color: var(--grau); padding: 8px 2px 0; }
.galerie figure[hidden] { display: none; }
.leuchtkasten { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; }
.leuchtkasten::backdrop { background: rgba(20, 8, 16, 0.88); }
.leuchtkasten img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.leuchtkasten p { color: #fff; text-align: center; margin: 12px 0 0; }
.leuchtkasten-leiste { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.leuchtkasten-leiste button { min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.7); background: transparent; color: #fff; font: inherit; font-weight: 700; padding: 0 18px; cursor: pointer; }
.leuchtkasten[open] { animation: auftritt 220ms var(--ease-out); }

/* Kontakt */
.kontakt { background: var(--magenta); color: var(--weiss); }
.kontakt-raster { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: start; }
.kontakt h2 { font-size: clamp(36px, 4.4vw, 48px); margin-bottom: 16px; }
.kontakt-daten { font-size: 20px; line-height: 1.9; margin-top: 24px; }
.kontakt-daten a { color: var(--weiss); font-weight: 700; }
.figurenpaar { display: flex; gap: 20px; align-items: flex-end; margin-top: 40px; }
.formular { background: var(--weiss); color: var(--tinte); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; }
.feld { display: grid; gap: 8px; }
.feld label { font-weight: 700; font-size: 16px; }
.feld input, .feld textarea, .feld select { font: inherit; padding: 12px 14px; min-height: 48px; border: 2px solid #8a6b7c; border-radius: 12px; background: var(--weiss); color: var(--tinte); }
.feld textarea { min-height: 120px; resize: vertical; }
.hilfe { font-size: 15px; color: var(--grau); }
.meldung { margin: 0; font-size: 16px; font-weight: 700; color: var(--magenta-dunkel); }
.meldung:empty { display: none; }

/* Rechtstexte */
.recht { max-width: 72ch; }
.recht h2 { font-size: 32px; margin: 48px 0 12px; }
.recht h3 { font-size: 21px; margin: 28px 0 8px; }

/* Fuß */
.fuss { padding-block: 32px; font-size: 15px; color: var(--grau); }
.fuss .w { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.fuss nav { display: flex; gap: 20px; flex-wrap: wrap; }
.fuss a { color: var(--magenta-text); }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .buehne-logo img, .leuchtkasten[open] { animation: none; }
  .btn, .filter button { transition: none; }
  .btn:active, .filter button:active { transform: none; }
}

/* Tablet und Handy */
@media (max-width: 960px) {
  .nav-knopf { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 8px var(--rand) 20px; }
  .nav.offen { display: flex; }
  .nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--linie); }
  .nav .btn { margin-top: 16px; }
  .kopf .w { position: relative; }
}
@media (max-width: 760px) {
  :root { --rand: 20px; }
  body { font-size: 17px; }
  .abschnitt { padding-block: 64px; }
  .abschnitt-eng { padding-block: 48px; }
  .band-kopf, .idee, .ziele, .stunde-raster, .phasen, .orte, .team, .zwei, .kurs, .modul, .kontakt-raster, .leistungen, .downloads, .seitenkopf .w { grid-template-columns: minmax(0,1fr); }
  .band-kopf { gap: 20px; }
  .fotostreifen { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .fotostreifen img { height: 220px; }
  .fotostreifen img:first-child { grid-column: span 2; }
  .ort-gross { grid-row: auto; }
  .ort-gross img { height: 240px; }
  .ort-quer { grid-template-columns: minmax(0,1fr); }
  .ort-quer img { min-height: 200px; height: 200px; }
  .stunde-raster .figur, .idee .figur { width: 180px; height: 180px; justify-self: center; }
  .seitenkopf .figur { display: none; }
  .kurs:nth-of-type(even) .kurs-bild { order: 0; }
  .kurs img { height: 240px; }
  .teaser { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: 260px repeat(2, 160px); }
  .teaser img:first-child { grid-row: span 1; }
  .person { flex-direction: column; }
  .figurenpaar .figur { width: 140px !important; height: 140px !important; }
  .formular { padding: 24px; }
}

/* Instagram */
.insta { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.insta svg { flex: none; }
.fuss .insta { color: var(--tinte); text-decoration: none; }
.fuss .insta:hover { color: var(--magenta-text); }
