/* ==========================================================================
   SPD Kirchheim, Webseite des Ortsvereins
   Grundlage: SPD CD-Manual 2024 (Stand August 2024)

   Leitplanken aus dem Manual, die hier umgesetzt sind:
   - Farben: Rot und Weiß sind die Hauptfarben, Rot hat den größten Anteil.
     ABWEICHUNG vom Manual (S. 10): Das CD-Rot ist #E3000F (Pantone 485 C). Der Ortsverein hat sich bewusst für das
     dunklere Rot #B4000D entschieden. Es steht nur hier (--rot) und in den Zickzack-Mustern weiter unten.
     Schwarz nur als Akzent (Schrift, CTA-Buttons), nie vollflächig.
     Zitat- und Info-Kacheln online: #EDEDED. Alle Farben immer mit 100 % Deckkraft.
     Keine weiteren Farben, darum auch kein Dunkelmodus (er würde Schwarz als Fläche brauchen).
   - Schrift: Die Hausschrift SPD The Sans hat keine Webfont-Lizenz. Das Manual empfiehlt
     als Ersatz Open Sans (so auch auf spd.de). Überschriften: Versalien, ExtraBold, so groß
     und plakativ wie möglich. Es werden nur drei Schnitte genutzt (400, 700, 800).
   - Logo: ein einziges SPD-Logo, vorzugsweise weiß auf Rot, rechts oben oder rechts unten.
     Kein eigenes Ortsvereins-Logo. Der Ortsbezug steht groß in der Überschrift.
   - Gestaltungselemente: Pfeile (Chevrons), Störer (rund, 10 Grad gedreht), Muster (Zickzack),
     großformatige Ausschnitte des Logos.
   - Formen: Flächen sind eckig, Buttons sind Pillen (wie auf spd.de), Störer sind rund.
   ========================================================================== */

/* ---------- Schrift (selbst gehostet, Open Sans, SIL Open Font License) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --rot: #B4000D;
  --weiss: #FFFFFF;
  --schwarz: #000000;
  --grau: #EDEDED;

  --font: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --rand: clamp(1.25rem, 4vw, 3.5rem);   /* seitlicher Rand */
  --max: 90rem;                           /* 1440 px Inhaltsbreite */
  --kopf: 4.25rem;                        /* Höhe der Kopfleiste */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --feder: cubic-bezier(0.34, 1.56, 0.64, 1);

  --fokus: #000000;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf) + 1rem);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}
.site-header, .hero, .values, .finale, .site-footer { --fokus: #FFFFFF; }

.skip {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--schwarz);
  color: var(--weiss);
  font-weight: 700;
  border-radius: 999px;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; --fokus: #FFFFFF; }

.wrap {
  width: min(100% - 2 * var(--rand), var(--max));
  margin-inline: auto;
}

.icon { width: 1em; height: 1em; max-width: none; fill: currentColor; flex: none; }
.icon--l  { font-size: 2.5rem; }
.icon--xl { font-size: clamp(3rem, 4.5vw, 4rem); }

/* ---------- Typografie ---------- */
.h2 {
  max-width: 14ch;
  color: var(--rot);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2--weiss { color: var(--weiss); }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section-lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.45;
}

/* ---------- Buttons und Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.75rem;
  border: 2px solid var(--schwarz);
  border-radius: 999px;
  background: var(--schwarz);
  color: var(--weiss);
  font: 700 1.0625rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { font-size: 1.25rem; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover .icon { transform: translate(3px, -3px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--kontur {
  background: transparent;
  border-color: var(--weiss);
  color: var(--weiss);
}
.btn--kontur:hover { background: var(--weiss); color: var(--rot); }
.btn--gross {
  justify-content: space-between;
  width: 100%;
  min-height: 4.5rem;
  padding-inline: 2rem;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.btn--gross .icon { font-size: 1.5rem; }

.link-underline {
  display: inline-block;
  padding-bottom: 0.2em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  font-weight: 700;
  text-decoration: none;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.link-underline:hover { background-size: 100% 0.35em; }

/* ---------- Kopfleiste ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--kopf);
  padding-inline: var(--rand);
  background: var(--rot);
  color: var(--weiss);
}
.logo { display: block; flex: none; }
.logo img { width: auto; height: clamp(2rem, 3.2vw, 2.5rem); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}
.site-nav a {
  position: relative;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.site-nav__btn { display: none; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 0.85rem;
  border: 2px solid var(--weiss);
  border-radius: 999px;
  background: transparent;
  color: var(--weiss);
  font: 700 0.9375rem/1 var(--font);
  cursor: pointer;
}
.menu-btn .icon { font-size: 1.25rem; }

/* ---------- 1. Hero: Plakat ---------- */
.hero {
  --slant: clamp(2.25rem, 6.5vw, 6rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(13rem, 1fr) auto;
  min-height: calc(100svh - var(--kopf));
  min-height: calc(100dvh - var(--kopf));
  background: var(--rot);
  color: var(--weiss);
  overflow: clip;
}
.hero__media { position: relative; grid-row: 1; }
.hero__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero__content {
  grid-row: 2;
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--rand), var(--max));
  margin-inline: auto;
  padding-block: clamp(1rem, 2.4vh, 2rem) clamp(1.75rem, 4.5vh, 3.25rem);
}
.hero__title {
  font-weight: 800;
  font-size: clamp(2.7rem, min(10.4vw, 16.5vh), 11rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
/* Zeilenmaske für den Einlauf. Der Innenabstand schützt die Punkte über dem Ü. */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-top: 0.2em;
  margin-top: -0.2em;
}
.hero__title .line > span { display: block; }

.hero__lead {
  max-width: 42rem;
  margin-top: clamp(0.9rem, 2vh, 1.5rem);
  text-wrap: pretty;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(1rem, 2.4vh, 1.75rem);
}

/* Störer: rund, 10 Grad gedreht, wie im CD */
.stoerer {
  --s: clamp(8.75rem, 12vw, 11.5rem);
  display: grid;
  place-content: center;
  gap: 0.1rem;
  width: var(--s);
  aspect-ratio: 1;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--weiss);
  color: var(--rot);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.05;
  transform: rotate(-10deg);
  transition: transform 0.6s var(--feder);
}
.stoerer:hover { transform: rotate(-4deg) scale(1.06); }
.stoerer:active { transform: rotate(-10deg) scale(0.97); }
.stoerer__klein { font-size: calc(var(--s) * 0.09); font-weight: 700; letter-spacing: 0.02em; }
.stoerer__gross { font-size: calc(var(--s) * 0.27); font-weight: 800; letter-spacing: -0.01em; }

.hero__stoerer {
  position: absolute;
  right: calc(var(--rand) + 1rem);
  bottom: calc(var(--slant) - var(--s) / 2);
}

/* Pfeile: Chevrons aus dem CD, gerade oder im 10-Grad-Winkel */
.pfeile { color: var(--weiss); overflow: visible; }
.hero__pfeile {
  position: absolute;
  z-index: 0;
  right: calc(var(--rand) * -0.5);
  bottom: clamp(3rem, 10vh, 6.5rem);
  width: clamp(11rem, 27vw, 27rem);
  height: auto;
  transform: rotate(-10deg);
  transform-origin: 100% 100%;
}

/* ---------- Muster (Zickzack aus dem CD) ---------- */
.muster {
  --muster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpolyline points='-24,12 0,36 24,12 48,36 72,12' fill='none' stroke='%23FFFFFF' stroke-width='11'/%3E%3C/svg%3E");
  background: var(--muster) 0 0 / 3.5rem auto repeat;
}
.band {
  height: 3.75rem;
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpolyline points='-24,12 0,36 24,12 48,36 72,12' fill='none' stroke='%23B4000D' stroke-width='11'/%3E%3C/svg%3E") 0 50% / auto 100% repeat-x;
}

/* ---------- 2. Themen: Bento ---------- */
.bento {
  --pad: clamp(1.5rem, 2.6vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(27rem, auto);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin-top: clamp(2.25rem, 4.5vw, 4rem);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tile h3 {
  font-size: clamp(1.625rem, 2.5vw, 2.375rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.tile__text p { max-width: 34ch; margin-top: 0.75rem; font-size: 1.0625rem; line-height: 1.5; }

.tile--wohnen    { grid-column: 1 / 6;  grid-row: 1; padding: var(--pad); background: var(--rot); color: var(--weiss); }
.tile--natur     { grid-column: 6 / 13; grid-row: 1; }
.tile--mobil     { grid-column: 1 / 5;  grid-row: 2; }
.tile--betreuung { grid-column: 5 / 10; grid-row: 2; padding: var(--pad); border: 2px solid var(--rot); background: var(--weiss); }
.tile--mitreden  { grid-column: 10 / 13; grid-row: 2; padding: var(--pad); background: var(--grau); }

.tile--wohnen > .icon { margin-bottom: auto; }
.tile--wohnen .tile__text { margin-top: 2rem; }
.tile--wohnen .muster {
  height: 5.5rem;
  margin: 2rem calc(var(--pad) * -1) calc(var(--pad) * -1);
}

.tile--betreuung > .icon,
.tile--betreuung h3 { color: var(--rot); }
.tile--betreuung > .icon { margin-bottom: auto; }
.tile--betreuung .tile__text { margin-top: 2rem; }

.tile--mitreden > .icon { color: var(--rot); margin-bottom: auto; }
.tile--mitreden h3 { color: var(--rot); }
.tile--mitreden .tile__text { margin-top: 2rem; }
.tile--mitreden .link-underline { align-self: flex-start; margin-top: 1.5rem; }

/* Foto-Kacheln: Motiv oben, roter Textraum unten (Plakat-Prinzip aus dem CD) */
.tile--photo { background: var(--rot); color: var(--weiss); }
.tile__media { position: relative; flex: 1 1 0; min-height: 13rem; overflow: hidden; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--mobil .tile__media img { object-position: 50% 40%; }
.tile__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding: var(--pad);
}
.tile__body .icon { margin-top: 0.15rem; }
.tile__body h3 { font-size: clamp(1.5rem, 2.2vw, 2.125rem); }

/* ---------- 3. Werte ---------- */
.values {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  background: var(--rot);
  color: var(--weiss);
  overflow: clip;
}
/* Das große S aus dem Logo (CD: SPD-Formen), vollständig und sauber. Bleibt rechts, damit weißer Text immer auf Rot steht. */
.values__form {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: var(--rand);
  margin-block: auto;
  width: min(36vw, 32rem);
  height: auto;
  max-width: none;
  pointer-events: none;
}
.values__inner { position: relative; z-index: 1; }
.values__inner .h2 { max-width: min(13ch, 50vw); }
.values__list { max-width: min(50rem, 50vw); margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.value {
  display: grid;
  grid-template-columns: clamp(2.25rem, 4.2vw, 3.5rem) 1fr;
  gap: 1rem clamp(0.75rem, 1.6vw, 1.5rem);
  align-items: start;
}
.value:nth-child(2) { margin-left: clamp(0rem, 5vw, 5rem); }
.value:nth-child(3) { margin-left: clamp(0rem, 10vw, 10rem); }
.value h3 {
  font-size: clamp(2.125rem, 4.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.value p { max-width: 34rem; margin-top: 0.6rem; font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
.value__pfeil { width: 100%; height: auto; margin-top: 0.3em; color: var(--weiss); }

/* ---------- 4. Aktuell ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.25rem, 4.5vw, 4rem);
}
.post h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.625rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}
.post__teaser { max-width: 42ch; margin-top: 0.9rem; }
.post__more { margin-top: 1.1rem; }
.post h3 a, .post__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 0.12em no-repeat;
  transition: background-size 0.35s var(--ease);
}
.post h3 a:hover, .post__title a:hover { background-size: 100% 0.12em; }
.post--empty { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 6px solid var(--rot); }
.post--empty h3 { margin-top: 0; }
.news__more { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.post__cat { color: var(--rot); font-size: 0.9375rem; font-weight: 700; }
.post--featured { grid-column: 1 / 8; grid-row: 1 / 3; }
.post__media { display: block; aspect-ratio: 3 / 2; margin-bottom: 1.5rem; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post--text { grid-column: 8 / 13; padding-top: 1.25rem; border-top: 6px solid var(--rot); }
.post--text:nth-of-type(2) { grid-row: 1; }
.post--text:nth-of-type(3) { grid-row: 2; }
/* Weniger als drei Beiträge: der Bereich füllt sich trotzdem sauber */
.post--featured:only-of-type { grid-column: 1 / -1; grid-row: auto; }
.post--text:nth-of-type(2):last-of-type { grid-row: 1 / 3; }

.quote {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.75rem, 4.5vw, 4rem);
  background: var(--grau);
}
.quote__pfeil { width: clamp(2.75rem, 6vw, 5.5rem); height: auto; margin-top: 0.3em; color: var(--rot); }
.quote__text {
  max-width: 26ch;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.quote__by { margin-top: 1.25rem; color: var(--schwarz); font-size: 1.0625rem; font-weight: 700; }

/* ---------- 5. Termine ---------- */
.agenda__list { display: grid; gap: 1rem; margin-top: clamp(2.25rem, 4.5vw, 4rem); }
.event {
  --blk-bg: var(--rot);
  --blk-fg: var(--weiss);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 2px solid var(--rot);
  background: var(--weiss);
  color: var(--schwarz);
  transition: background-color 0.3s, color 0.3s;
}
.event:hover, .event:focus-within {
  --blk-bg: var(--weiss);
  --blk-fg: var(--rot);
  background: var(--rot);
  color: var(--weiss);
  --fokus: #FFFFFF;
}
.event__date {
  display: grid;
  place-content: center;
  width: clamp(4.5rem, 8vw, 6rem);
  aspect-ratio: 1;
  background: var(--blk-bg);
  color: var(--blk-fg);
  text-align: center;
  line-height: 1;
  transition: transform 0.55s var(--feder), background-color 0.3s, color 0.3s;
}
.event:hover .event__date, .event:focus-within .event__date { transform: rotate(-10deg) scale(1.05); }
.event__day { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; }
.event__month { margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.event__main { min-width: 0; }
.event__when { font-size: 0.9375rem; font-weight: 700; }
.event__title {
  margin-top: 0.15rem;
  font-size: clamp(1.375rem, 2.5vw, 2.125rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}
.event__where { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-weight: 600; }
.event__where .icon { font-size: 1.125rem; }
.event__info { max-width: 52ch; margin-top: 0.25rem; }
.event__cal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.2s, color 0.2s;
}
.event__cal .icon { font-size: 1.125rem; }
.event__cal:hover { transform: translateY(-2px); background: var(--schwarz); border-color: var(--schwarz); color: var(--weiss); }
.event__cal:active { transform: scale(0.98); }

/* Leerzustand */
.agenda__note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--grau);
}
.agenda__note .icon { grid-row: 1 / 4; font-size: clamp(3rem, 6vw, 4.5rem); color: var(--rot); }
.agenda__note h3 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--rot); }
.agenda__note p { max-width: 52ch; }
.agenda__note .link-underline { justify-self: start; margin-top: 0.75rem; }

/* ---------- 6. Finale und Fuß ---------- */
.finale {
  position: relative;
  padding-top: clamp(4.5rem, 9vw, 8.5rem);
  background: var(--rot);
  color: var(--weiss);
  overflow: clip;
}
.finale__title {
  font-size: clamp(4.5rem, 15.5vw, 14.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.finale__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.finale__lead {
  grid-column: 1 / 6;
  max-width: 28ch;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
}
.finale__actions { grid-column: 7 / 13; display: grid; gap: 0.75rem; }
.finale__hint { grid-column: 7 / 13; max-width: 40ch; margin-top: -0.75rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }

.site-footer {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--rot);
  color: var(--weiss);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  align-items: end;
  padding-top: 2.5rem;
  border-top: 2px solid var(--weiss);
}
.site-footer__block { grid-column: 1 / 5; }
.site-footer__social { grid-column: 5 / 8; display: grid; gap: 0.5rem; }
.site-footer__legal { grid-column: 8 / 10; display: grid; gap: 0.5rem; }
.site-footer__logo { grid-column: 10 / 13; justify-self: end; width: min(100%, 17rem); height: auto; }
.site-footer__name { font-size: 1.125rem; font-weight: 800; }
.site-footer a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.site-footer a:hover { text-decoration-thickness: 4px; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.site-footer__social a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.site-footer__social .icon { font-size: 1.5rem; }

/* ---------- Beitragsseiten (vom CMS erzeugt) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.is-preview a { pointer-events: none; }

.article { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.article__wrap { width: min(100% - 2 * var(--rand), 62rem); margin-inline: auto; }
.article .back-link { margin-bottom: 2.25rem; }
.article__title {
  margin-top: 0.4rem;
  color: var(--rot);
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
.article__meta { margin-top: 1.25rem; font-weight: 600; }
.article__hero { margin: 2.25rem 0 0; }
.article__hero img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.article__hero figcaption, .prose__fig figcaption { margin-top: 0.6rem; font-size: 0.875rem; font-weight: 600; }
.article__lead { max-width: 40rem; margin-top: 2rem; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; line-height: 1.4; }

.prose { max-width: 42rem; margin-top: 2rem; font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 2.5rem; color: var(--rot); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
.prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.prose h4 { font-size: 1.125rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.75rem; }
.prose ul, .prose ol { display: grid; gap: 0.5rem; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--rot); font-weight: 800; }
.prose a { color: var(--rot); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.prose a:hover { text-decoration-thickness: 4px; }
.prose blockquote { padding: 1.25rem 1.5rem; border-left: 0.4rem solid var(--rot); background: var(--grau); font-weight: 700; }
.prose img { width: 100%; height: auto; }
.prose__fig { margin: 2rem 0; }
.prose hr { border: 0; border-top: 2px solid var(--rot); }

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.post--row { display: grid; align-content: start; gap: 0.5rem; padding-top: 1.25rem; border-top: 6px solid var(--rot); }
.post--row .post__media { margin-bottom: 0.75rem; }
.post-list .post__title { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--schwarz); }
.post-list .post__title a { color: inherit; font-weight: 800; }
.post-list .post__teaser { margin-top: 0.4rem; }
.post__date { margin-top: 0.4rem; font-size: 0.9375rem; font-weight: 600; }
.post-list__empty { grid-column: 1 / -1; max-width: 40rem; font-size: 1.25rem; font-weight: 600; }

.cta-band { --fokus: #FFFFFF; padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--rot); color: var(--weiss); }
.cta-band__inner { display: grid; justify-items: start; gap: 1.25rem; }
.cta-band__title { font-size: clamp(3.5rem, 12vw, 9.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
.cta-band__text { max-width: 32ch; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.cta-band__hint { font-size: 0.9375rem; font-weight: 600; }

.not-found { --fokus: #FFFFFF; display: grid; align-content: center; min-height: 100svh; min-height: 100dvh; padding-block: 4rem; background: var(--rot); color: var(--weiss); }
.not-found h1 { font-size: clamp(3.5rem, 14vw, 11rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
.not-found p { max-width: 32ch; margin: 1.5rem 0 2rem; font-size: 1.25rem; font-weight: 700; }

/* ---------- Vorstand ---------- */
.team-head {
  --slant: clamp(2rem, 5vw, 4.5rem);
  --fokus: #FFFFFF;
  padding-block: clamp(3rem, 7vw, 6rem) calc(clamp(2.5rem, 5vw, 4.5rem) + var(--slant));
  background: var(--rot);
  color: var(--weiss);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.team-head__title {
  font-size: clamp(2.9rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.team-head__title .line { display: block; overflow: hidden; padding-top: 0.2em; margin-top: -0.2em; }
.team-head__title .line > span { display: block; }
.team-head__lead { text-wrap: pretty; max-width: 34rem; margin-top: 1.25rem; font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); font-weight: 600; line-height: 1.4; }

.team-section { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(4rem, 8vw, 7rem); }
.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
  align-items: start; /* Karten ohne Foto bleiben so hoch wie ihr Text */
}
.member { display: flex; flex-direction: column; background: var(--rot); color: var(--weiss); }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grau); }
.member__img { width: 100%; height: 100%; object-fit: cover; }
.member__text { flex: 1; padding: 1rem 1.1rem 1.25rem; }
.member__name {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}
.member__role { margin-top: 0.5rem; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.member__contact { display: grid; gap: 0.3rem; margin-top: 0.75rem; padding: 0; list-style: none; font-size: 0.9375rem; font-weight: 600; }
.member__contact a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.member__contact a:hover, .member__contact a:focus-visible { text-decoration-thickness: 2px; }
.member__credit { margin-top: 0.6rem; font-size: 0.8125rem; font-weight: 600; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 8rem); }
.legal h1 {
  max-width: 14ch;
  color: var(--rot);
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.legal__body { max-width: 46rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}
.legal p { margin-top: 0.75rem; }
.legal ul { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.legal a { color: var(--rot); font-weight: 700; }
.legal mark { padding: 0.05em 0.4em; background: var(--grau); color: var(--schwarz); font-weight: 600; }
.legal__hinweis { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--grau); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.back-link .icon { transform: rotate(180deg); }
.site-footer--schlank .site-footer__grid { padding-top: 1.75rem; border-top: 0; }
.site-footer--schlank .site-footer__block { grid-column: 1 / 7; }
.site-footer--schlank .site-footer__legal { grid-column: 7 / 10; grid-auto-flow: column; justify-content: start; gap: 1.5rem; }

/* ---------- Bewegung (nur wenn erlaubt) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: Zeilen laufen ein, Pfeile folgen. Zweck: Blick auf Botschaft, dann Handlung. */
  .hero__title .line > span,
  .team-head__title .line > span {
    animation: aufsteigen 1.1s var(--ease) both;
    animation-delay: calc(0.1s + var(--n, 0) * 0.14s);
  }
  .hero__photo img { animation: foto-ein 1.8s var(--ease) both; }
  .hero__lead, .hero__actions { animation: einblenden 0.9s var(--ease) both; animation-delay: 0.55s; }
  .hero__actions { animation-delay: 0.68s; }
  .hero__stoerer { animation: stoerer-ein 0.9s var(--feder) both; animation-delay: 0.8s; }
  .hero__pfeile .pfeil { animation: pfeil-ein 0.9s var(--ease) both; animation-delay: calc(0.55s + var(--i) * 0.13s); }

  /* Scroll-Einblendung, nur mit JS (ohne JS bleibt alles sichtbar) */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--d, var(--k, 0)) * 0.1s);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Werte: Pfeil schiebt sich mit der Zeile ein */
  .js .value .value__pfeil {
    transform: translateX(-1.75rem);
    transition: transform 0.9s var(--ease);
    transition-delay: calc(var(--k, 0) * 0.1s + 0.2s);
  }
  .js .value.is-in .value__pfeil { transform: none; }

  /* Großer Logo-Ausschnitt driftet langsam, bindet den Abschnitt an das Scrollen */
  @supports (animation-timeline: view()) {
    .values__form {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}
@keyframes aufsteigen { from { transform: translateY(110%); } to { transform: none; } }
@keyframes einblenden { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes foto-ein { from { transform: scale(1.08); } to { transform: none; } }
@keyframes stoerer-ein { from { opacity: 0; transform: rotate(-40deg) scale(0.6); } to { opacity: 1; transform: rotate(-10deg); } }
@keyframes pfeil-ein { from { opacity: 0; transform: translateX(-2.5rem); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(-4%); } to { transform: translateY(4%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Tablet und Handy ---------- */
@media (max-width: 78em) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 70em) {
  .site-footer__block { grid-column: 1 / 7; }
  .site-footer__social { grid-column: 7 / 13; }
  .site-footer__legal { grid-column: 1 / 7; }
  .site-footer__logo { grid-column: 7 / 13; }
}

@media (max-width: 56.25em) {
  :root { --kopf: 3.75rem; }

  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--kopf) 0 0 0;
    z-index: 39;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--rand) 2.5rem;
    background: var(--rot);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  [data-header].is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav a {
    padding-block: 0.6rem;
    font-size: clamp(2.5rem, 12vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
  }
  .site-nav a::after { display: none; }
  .site-nav .site-nav__btn {
    display: inline-flex;
    align-self: stretch;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 0.8rem 1.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
  }

  .hero { grid-template-rows: minmax(11rem, 34svh) auto; }
  .hero__title { font-size: clamp(2.6rem, 13.2vw, 7rem); }
  .hero__stoerer { right: var(--rand); --s: 7.75rem; }
  .hero__pfeile { right: -1.25rem; bottom: 1.5rem; width: 9.5rem; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile--wohnen, .tile--natur, .tile--mobil, .tile--betreuung, .tile--mitreden { grid-column: 1; grid-row: auto; }
  .tile--wohnen, .tile--betreuung, .tile--mitreden { min-height: 19rem; }
  .tile__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .tile--mobil .tile__media { aspect-ratio: 1 / 1; }

  .values { display: flex; flex-direction: column; }
  .values__form { position: relative; order: 2; top: auto; bottom: auto; right: auto; width: min(62vw, 17rem); margin: 3rem var(--rand) 0 auto; }
  .values__inner .h2, .values__list { max-width: 100%; }
  .value:nth-child(2), .value:nth-child(3) { margin-left: 0; }
  .value p { max-width: 100%; }

  .news-grid { grid-template-columns: 1fr; }
  .post--featured, .post--featured:only-of-type, .post--text, .post--text:nth-of-type(n), .post--empty, .quote { grid-column: 1; grid-row: auto; }

  .post-list { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .event { grid-template-columns: auto 1fr; }
  .event__cal { grid-column: 1 / -1; justify-self: start; }

  .finale__grid { grid-template-columns: 1fr; }
  .finale__lead, .finale__actions, .finale__hint { grid-column: 1; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__block, .site-footer__social, .site-footer__legal, .site-footer__logo { grid-column: 1; }
  .site-footer__logo { justify-self: end; width: min(70%, 15rem); margin-top: 1rem; }
  .site-footer--schlank .site-footer__block,
  .site-footer--schlank .site-footer__legal { grid-column: 1; }
}

@media (max-width: 56.25em) and (max-height: 44rem) {
  .hero__lead { font-size: 1rem; }
  .hero__title { font-size: clamp(2.4rem, 12.2vw, 7rem); }
  .hero__actions { margin-top: 0.85rem; }
}

@media (max-width: 30em) {
  .hero__actions .btn { width: 100%; }
  .member__text { padding: 0.8rem 0.85rem 1rem; }
  .quote { grid-template-columns: 1fr; }
  .agenda__note { grid-template-columns: 1fr; }
  .agenda__note .icon { grid-row: auto; }
}
