/* Humanity Network for Women – Stylesheet
   Aufbau: Schriften, Farb-Tokens (hell/dunkel), Grundlagen, Bausteine, Seiten, Bewegung.
   Abstände und Ausrichtung nutzen logische Eigenschaften (inline/block),
   damit sich das Layout für Persisch (dir="rtl") von selbst spiegelt. */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- Farben ---------- */
:root {
  color-scheme: light;
  --bg: #fbf9fe;
  --surface: #ffffff;
  --tint: #f2ecfb;
  --ink: #230a34;
  --muted: #5d4d70;
  --line: #e2d8f1;
  --brand: #5e17eb;
  --on-brand: #ffffff;
  --accent: #ff8762;
  --on-accent: #230a34;
  --deep: #230a34;
  --on-deep: #f6f0fd;
  --on-deep-muted: #cdbde0;
  --aqua: #6fe4eb;
  --lilac: #e1a9f0;
  --header-bg: rgba(251, 249, 254, 0.9);

  --font-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.6vw, 4.6rem);
  --dir: 1;
}
/* Hell ist der Standard, unabhängig von der Systemeinstellung.
   Das dunkle Schema gilt nur, wenn es über den Umschalter gewählt wurde. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #150720; --surface: #1f0b30; --tint: #1c0a2b; --ink: #f4eefb; --muted: #c3b3d6;
  --line: #3c2157; --brand: #b69cff; --on-brand: #150720; --deep: #0d0415;
  --header-bg: rgba(21, 7, 32, 0.9);
}
[dir="rtl"] { --dir: -1; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 700; }
p { text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.section--deep :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--aqua); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 46rem; }
.prose > * + * { margin-block-start: 1rem; }
.prose { max-width: 44rem; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { inset-block-start: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.55rem 1.3rem; border-radius: 999px;
  border: 2px solid transparent; font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.section--deep .btn--ghost, .hero .btn--ghost { color: var(--on-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Kopf ---------- */
.draft-bar {
  background: var(--accent); color: var(--on-accent); text-align: center;
  font-size: var(--step--1); font-weight: 650; padding: 0.35rem var(--gutter);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  border-block-end: 1px solid var(--line);
}
/* Hintergrund mit Weichzeichner auf einer eigenen Ebene: Safari schneidet sonst das mobile Menü ab. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }
.brand__name span { display: block; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; list-style: none; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; padding-block: 0.4rem; display: inline-block; border-block-end: 2px solid transparent; }
.site-nav a:hover { border-color: var(--line); }
.site-nav a[aria-current="page"] { border-color: var(--brand); color: var(--brand); }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-width: 2.75rem; min-height: 2.75rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer;
}
.menu-toggle { display: none; padding-inline: 1rem; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; content: "";
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; inset-block-start: -6px; }
.menu-toggle__bars::after { position: absolute; inset-block-start: 6px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (max-width: 68rem) {
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; order: 5; }
  .js .menu-toggle { display: inline-flex; }
  /* Mobiles Menü: klappt vom Rand herein (rechts, bei RTL links) und ist nur so gross wie nötig. */
  .js .site-nav {
    position: absolute; inset-block-start: 100%; inset-inline-end: 0;
    width: max-content; min-width: 13rem; max-width: calc(100vw - 3rem);
    max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border: 1px solid var(--line); border-inline-end: 0;
    border-end-start-radius: var(--radius); box-shadow: 0 16px 32px rgb(20 6 32 / 0.18);
    padding: 0.35rem 1.25rem;
    clip-path: inset(0 0 0 100%); -webkit-clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path 0.25s ease, -webkit-clip-path 0.25s ease, visibility 0s linear 0.25s;
  }
  [dir="rtl"].js .site-nav { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
  .js .site-nav.is-open, [dir="rtl"].js .site-nav.is-open {
    clip-path: inset(0 0 -2rem -2rem); -webkit-clip-path: inset(0 0 -2rem -2rem); visibility: visible;
    transition: clip-path 0.25s ease, -webkit-clip-path 0.25s ease;
  }
  .js .site-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .js .site-nav li + li a { border-block-start: 1px solid var(--line); }
  .js .site-nav a { display: block; padding-block: 0.75rem; border-block-end: 0; }
  .js .site-nav a[aria-current="page"] { font-weight: 650; }
}
@media (max-width: 30rem) {
  .brand__name { font-size: 0.92rem; }
  .site-header__actions .btn { padding-inline: 0.9rem; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--tint); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep .lead { color: var(--on-deep-muted); }
.section--brand { background: linear-gradient(100deg, #2850b0 0%, #5a3fd0 50%, #7a46cf 100%); color: #fff; }
.section--brand .lead, .section--brand .way p { color: rgba(255, 255, 255, 0.9); }
.section--brand .btn--ghost { color: #fff; }
.section--brand :focus-visible { outline-color: var(--aqua); }
.section--flush { padding-block: 0 clamp(3.5rem, 8vw, 6rem); }
.section h2 + .lead, .section h2 + p { margin-block-start: 0.9rem; }
.section h2 + .grid, .section .lead + .grid, .section h2 + .split, .section h2 + .stats,
.section h2 + .timeline, .section p + .grid { margin-block-start: clamp(1.75rem, 4vw, 2.75rem); }
.section__foot { margin-block-start: clamp(1.75rem, 4vw, 2.5rem); }

.page-head { background: var(--tint); padding-block: clamp(3rem, 7vw, 5rem); border-block-end: 1px solid var(--line); }
.page-head .lead { margin-block-start: 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.6rem); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.split > * > * + * { margin-block-start: 1rem; }
@media (min-width: 48rem) { .split--flip > :first-child { order: 2; } }
/* Ganzer Block als Link (Programmseite): Bild, Titel und Text führen zur Detailseite. */
.split--link { position: relative; }
.split--link h2 a, .split--link h3 a { color: var(--ink); text-decoration: none; }
.split--link:hover :is(h2, h3) a, .split--link :is(h2, h3) a:hover { color: var(--brand); text-decoration: underline; }
.split--link .btn { position: relative; z-index: 1; }
.split--link:has(.stretched:focus-visible) { outline: 3px solid var(--brand); outline-offset: 6px; border-radius: var(--radius); }
.split--link .stretched:focus-visible { outline: none; }

/* ---------- Bilder ---------- */
.media { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.media--missing {
  display: grid; place-items: center; padding: 1rem; text-align: center;
  background: radial-gradient(circle, var(--line) 1.5px, transparent 1.6px) 0 0 / 18px 18px, var(--tint);
  border: 1px dashed var(--muted); color: var(--muted); font-size: var(--step--1);
}
.media--missing span { background: var(--surface); padding: 0.2rem 0.6rem; border-radius: 6px; }
.portrait { aspect-ratio: 1; object-position: top center; background: var(--tint); }
.portrait--missing {
  display: grid; place-items: center; color: #fff; border-radius: var(--radius);
  background: linear-gradient(120deg, #2850b0, #6c4fd6 55%, #a765e0);
  font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.6rem); letter-spacing: 0.04em;
}

/* ---------- Karten ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card > .media { border-radius: 0; aspect-ratio: 16 / 10; }
.card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.4rem 1.5rem; flex: 1; }
.card__body p { color: var(--muted); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card:hover h3 a, .card h3 a:hover { color: var(--brand); text-decoration: underline; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.card:has(.stretched:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.card .stretched:focus-visible { outline: none; }
.card__sub { font-weight: 650; color: var(--brand) !important; font-size: var(--step--1); }
.post-card > .media { aspect-ratio: 1200 / 630; }
.post-card__meta { font-size: var(--step--1); font-weight: 650; color: var(--muted); }
.post-card__more { margin-block-start: auto; padding-block-start: 0.5rem; font-weight: 650; color: var(--brand) !important; display: inline-flex; align-items: center; gap: 0.35rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.panel > * + * { margin-block-start: 0.6rem; }
.panel ul { padding-inline-start: 1.2rem; color: var(--muted); }
.panel li + li { margin-block-start: 0.25rem; }
.note { border-inline-start: 4px solid var(--brand); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; }
[dir="rtl"] .note { border-radius: var(--radius) 0 0 var(--radius); }
.note > * + * { margin-block-start: 0.4rem; }
.draft-note { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.empty { background: var(--tint); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); }
.empty > * + * { margin-block-start: 0.5rem; }
.empty p { color: var(--muted); }

/* ---------- Startseite: Hero ---------- */
.hero {
  position: sticky; top: 0; z-index: 0; overflow: hidden;
  min-height: min(88svh, 46rem); display: grid; align-items: end;
  color: var(--on-deep);
  background: linear-gradient(100deg, #2850b0 0%, #5a3fd0 48%, #8d55d8 100%);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img + .hero__shade { background: linear-gradient(to top, rgba(35, 10, 52, 0.94) 0%, rgba(35, 10, 52, 0.62) 42%, rgba(35, 10, 52, 0.2) 100%); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(35, 10, 52, 0.7), rgba(35, 10, 52, 0.15) 75%); }
.hero__art { position: absolute; inset: 0; }
.hero__art::before { /* dunkler Hügel wie in der Programmgrafik */
  content: ""; position: absolute; inset-inline-end: -18%; inset-block-end: -62%;
  width: 95%; aspect-ratio: 1.6; border-radius: 50%; background: #230a34; opacity: 0.85;
}
.hero__art::after { /* Punktraster */
  content: ""; position: absolute; inset-inline-end: 8%; inset-block-start: 14%; width: 9rem; height: 7rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 2.5px, transparent 3px) 0 0 / 28px 28px;
}
.hero__dot { position: absolute; border-radius: 50%; background: var(--aqua); }
.hero__dot--a { width: 11rem; height: 11rem; inset-inline-end: -3rem; inset-block-start: -4rem; }
.hero__dot--b { width: 7rem; height: 7rem; inset-inline-start: -2.5rem; inset-block-end: 22%; }
.hero__content { position: relative; z-index: 1; padding-block: clamp(5rem, 12vh, 8rem) clamp(7rem, 16vh, 10rem); }
.hero__content > * + * { margin-block-start: 1.1rem; }
.hero__kicker { font-weight: 650; color: var(--on-deep); }
.hero h1 { max-width: 14ch; }
.hero .lead { color: var(--on-deep); max-width: 34rem; }
.hero .btn-row { margin-block-start: 1.75rem; }
.after-hero {
  position: relative; z-index: 1; background: var(--bg);
  margin-block-start: -4rem; border-radius: 50% 50% 0 0 / 4rem 4rem 0 0;
}
.after-hero > .section:first-child { padding-block-start: clamp(5rem, 10vw, 7.5rem); }
@media (max-width: 48rem) {
  /* Handy und Tablet hochkant: Das Bild (Format 1920 × 780) zeigt gut 80 % seiner Breite.
     Kicker und Titel liegen unten auf dem Bild. */
  .hero { min-height: 0; height: calc(100vw / 2); }
  .hero__img { object-position: 50% center; }
  .hero__img + .hero__shade { background: linear-gradient(to top, rgba(35, 10, 52, 0.92) 0%, rgba(35, 10, 52, 0.65) 38%, rgba(35, 10, 52, 0) 72%); }
  .hero__content { padding-block: 0 1.9rem; }
  .hero__content > * + * { margin-block-start: 0.2rem; }
  .hero__kicker { font-size: clamp(0.72rem, 3vw, 0.9rem); }
  .hero h1 { font-size: clamp(1.55rem, 7vw, 2.6rem); max-width: none; line-height: 1.1; }
  .after-hero { margin-block-start: -1.25rem; border-radius: 50% 50% 0 0 / 1.25rem 1.25rem 0 0; }
}



/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.5rem 0; list-style: none; padding: 0; }
.stat { padding-inline: 1.25rem; border-inline-start: 2px solid var(--line); }
.stat__value { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); }

/* ---------- Zeitstrahl ---------- */
.timeline { list-style: none; padding: 0; border-inline-start: 2px solid var(--line); margin-inline-start: 0.4rem; }
.timeline li { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 0.2rem 0 1.5rem 1.5rem; padding-inline: 1.5rem 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -0.45rem; inset-block-start: 0.55rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--brand); }
.timeline__year { font-family: var(--font-display); font-size: var(--step-1); color: var(--brand); }

/* ---------- Zitat ---------- */
.quote { max-width: 52rem; }
.quote blockquote p { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { margin-block-start: 1rem; color: var(--muted); font-weight: 650; }
.section--deep .quote figcaption { color: var(--aqua); }
.section--brand .quote figcaption { color: rgba(255, 255, 255, 0.9); }
/* Hell mit Verlauf, im dunklen Schema wieder der dunkle Grund. */
:root[data-theme="dark"] .section--deep-dark { background: var(--deep); color: var(--on-deep); }
:root[data-theme="dark"] .section--deep-dark .quote figcaption { color: var(--brand); }
.quote--inline { margin-block: 1.5rem; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--brand); }
.quote--inline blockquote p { font-size: var(--step-1); }

/* ---------- Get involved ---------- */
.way { border-block-start: 2px solid var(--lilac); padding-block-start: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.way p { color: var(--on-deep-muted); flex: 1; }
.way h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }

/* ---------- Team ---------- */
.person { position: relative; display: flex; flex-direction: column; gap: 0.2rem; }
.person .portrait { margin-block-end: 0.7rem; transition: transform 0.25s ease; }
.person:hover .portrait { transform: translateY(-4px); }
.person h3 a, .person h2 a { color: var(--ink); text-decoration: none; }
.person h2 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.person p { color: var(--muted); }
.profile__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); align-items: start; }
.profile__role { font-size: var(--step-1); color: var(--brand); font-weight: 650; margin-block-start: 0.4rem !important; }
.profile h1 { font-size: var(--step-3); }
@media (max-width: 48rem) { .profile__grid { grid-template-columns: 1fr; } .profile__portrait { max-width: 18rem; } }

/* ---------- Events ---------- */
.event-card__meta { font-weight: 650; color: var(--brand) !important; font-size: var(--step--1); }

/* ---------- Status (Volunteer) ---------- */
.status { border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); border: 2px solid var(--brand); background: var(--surface); }
.status > * + * { margin-block-start: 0.5rem; }
.status__label { font-size: var(--step--1); font-weight: 650; color: var(--brand); }
.status h2 { font-size: var(--step-2); }

/* ---------- Anteile (Donate) ---------- */
.share { border-block-start: 4px solid var(--brand); padding-block-start: 0.9rem; }
.share__value { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; }
.share p { color: var(--muted); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 650; font-size: var(--step--1); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 10px; padding: 0.65rem 0.8rem; min-height: 2.9rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.choices label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 400; font-size: var(--step-0); }
.choices input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--brand); }
.form__status { font-weight: 650; color: var(--brand); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; font-size: var(--step-1); }

/* ---------- Fuss ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.site-footer a { color: var(--on-deep); }
.site-footer__inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer__brand { display: flex; gap: 1rem; align-items: flex-start; color: var(--on-deep-muted); }
.site-footer__brand strong { color: var(--on-deep); font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.site-footer__brand img { width: 64px; height: 64px; flex: none; }
.site-footer__links { list-style: none; padding: 0; display: grid; gap: 0.5rem; align-content: start; }
.site-footer__legal { margin-block-start: 2rem; padding-block-start: 1.25rem; border-block-start: 1px solid rgba(255, 255, 255, 0.16); color: var(--on-deep-muted); font-size: var(--step--1); }

/* ---------- Bewegung ----------
   Nur Position und Transparenz. Der Inhalt bleibt ohne JavaScript sichtbar:
   Die Klasse "js" setzt ein Inline-Skript, und falls main.js nie lädt,
   blendet die Sicherheits-Animation nach vier Sekunden alles ein. */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 1.6rem, 0);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
  animation: reveal-failsafe 0.01s 4s forwards;
}
.js [data-reveal="start"] { transform: translate3d(calc(-2.5rem * var(--dir)), 0, 0); }
.js [data-reveal="end"] { transform: translate3d(calc(2.5rem * var(--dir)), 0, 0); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; animation: none; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
  .hero { position: relative; }
  .btn, .person .portrait, .js .site-nav, .js .site-nav.is-open, [dir="rtl"].js .site-nav.is-open { transition: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .draft-bar, .site-footer, .btn { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Nachträge */
.h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.status + .section__foot, .form + p { margin-block-start: 1rem; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44rem; }
body { min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
.grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .grid--people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .grid--people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 68rem) {
  .site-header__actions { order: 1; }
  .js .menu-toggle { order: 2; }
}
@media (max-width: 30rem) {
  .site-header__inner { gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 0.85rem; }
  .theme-toggle, .menu-toggle { min-width: 2.5rem; min-height: 2.5rem; }
  .js .menu-toggle { padding-inline: 0; width: 2.5rem; }
  .menu-toggle span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-header__actions { gap: 0.35rem; }
  .site-header__actions .btn { min-height: 2.5rem; padding-inline: 0.7rem; }
  .brand__name { font-size: 0.8rem; }
}
@media (max-width: 22.5rem) { .brand__name { display: none; } }
/* Elemente, die von der Seite hereingleiten, dürfen keine seitliche Scrollleiste erzeugen. */
.section { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
@media (max-width: 40rem) {
  .hero__art::after { inset-block-start: 5%; inset-inline-end: 32%; width: 6rem; height: 4.5rem; opacity: 0.7; }
  .hero__dot--a { width: 8rem; height: 8rem; }
}

/* Rechtstexte */
.legal h2 { font-size: var(--step-2); margin-block-start: 2.4rem; }
.legal h2:first-child { margin-block-start: 0; }
.legal ul { padding-inline-start: 1.25rem; }
.legal li + li { margin-block-start: 0.4rem; }
.legal__date { margin-block-start: 2.5rem !important; color: var(--muted); font-size: var(--step--1); }

/* Unsichtbares Spamschutz-Feld */
.form__trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Event-Detailseiten */
.event__label { font-size: var(--step--1); font-weight: 650; color: var(--brand); margin-block-end: 0.5rem; }
.event__meta { font-weight: 650; margin-block-start: 1rem; }
.event__main .media { aspect-ratio: 16 / 7; }
.event__main .media--natural { aspect-ratio: auto; }
.event__body { margin-block-start: clamp(2rem, 5vw, 3rem); }
.event__body h3 { margin-block-start: 1.75rem; }
.event__body h2 { margin-block-start: 2.25rem; }
/* Videos: auf dem Handy untereinander in voller Breite (höchstens 88 % der Fensterhöhe), ab Tabletbreite nebeneinander. */
.video-grid { display: grid; gap: clamp(1.25rem, 4vw, 2.5rem); grid-template-columns: 1fr; margin-block-start: clamp(1.75rem, 4vw, 2.75rem); }
.video-grid video { max-width: calc(88svh * 464 / 832); margin-inline: auto; }
@media (min-width: 48rem) {
  .video-grid { gap: clamp(0.75rem, 2vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
  .video-grid video { max-width: none; }
}
.video-grid video { display: block; width: 100%; height: auto; aspect-ratio: 464 / 832; border-radius: var(--radius); background: #000; object-fit: cover; }
.prose__figure { margin-block: 1.75rem; }

/* Briefe von Schülerinnen (Programmseiten) */
.letters { display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: start; margin-block-start: clamp(1.5rem, 4vw, 2.5rem); }
.letter h3 { font-size: var(--step-1); }
.letter__quote p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; }
.letter__quote p::before { content: "“"; }
.letter__quote p::after { content: "”"; }
.letter__by { color: var(--muted); font-weight: 650; font-size: var(--step--1); }
.letter__full summary { cursor: pointer; font-weight: 650; color: var(--brand); padding-block: 0.35rem; }
.letter__full[open] summary { margin-block-end: 0.75rem; }
.letter__full p { color: var(--ink); }
.letter__full p + p { margin-block-start: 0.9rem; }
