/* ============================================================
   ASI Austria — Hi-Fi v2 (Handoff aus Claude Design)
   General Sans + Figtree · Stahlblau + Sand · flächig, großzügig
   Quelle: hf2-system.jsx + hf2-home.jsx
   ============================================================ */

/* ----- 1. Tokens ----- */
:root {
  /* Backgrounds */
  --bg:        #FFFFFF;
  --bg-warm:   #F5F1EA;
  --bg-sand:   #E8DFCF;
  --bg-sandHi: #DCCFB2;
  --bg-ink:    #111827;
  --bg-blue:   #2E4861;

  /* Ink */
  --ink:       #111827;
  --ink-soft:  #3B3F47;
  --muted:     #6B6F78;
  --muted-sof: #9AA0A8;

  /* Lines */
  --line:      #E4DED0;
  --line-onW:  #E8E4DC;
  --line-dark: #2F3A4A;

  /* Brand */
  --blue:      #2E4861;
  --blue-dk:   #1F3A5F;
  --blue-lt:   #F0F3F7;
  --blue-acct: #4A6885;

  /* Sekundär */
  --moss:      #6B7856;
  --moss-dk:   #4A5340;

  /* Status */
  --success:   #3E6B4C;
  --live:      #B83A3A;

  /* Radii */
  --r-0:  0px;
  --r-2:  2px;
  --r-4:  4px;
  --r-6:  6px;
  --r-pill: 999px;

  /* Schatten */
  --shadow-s: 0 1px 2px rgba(17,24,39,0.04);
  --shadow-m: 0 2px 8px rgba(17,24,39,0.06);
  --shadow-l: 0 8px 28px rgba(17,24,39,0.10);

  /* Type */
  --font-display: 'General Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    'Figtree', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1360px;
  --gutter: 48px;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ----- 2. Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- 3. Layout helpers ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 1080px; }

/* ----- 4. Typography ----- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
  margin: 0;
}
.display--xl  { font-size: clamp(56px, 9.2vw, 132px); line-height: 0.95; letter-spacing: -0.035em; }
.display--lg  { font-size: clamp(40px, 5.6vw, 72px); }
.display--md  { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; }
.display--sm  { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; }
.display--xs  { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.display--xxs { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.display--card { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }

.body-lg { font-size: 22px; line-height: 1.45; color: var(--ink-soft); margin: 0; font-weight: 400; }
.body    { font-size: 18px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.body-sm { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.muted   { color: var(--muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--onDark { color: rgba(255,255,255,0.6); }

/* ----- 5. Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--sm { padding: 8px 16px;  font-size: 13px; }
.btn--md { padding: 12px 22px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }

.btn--primary  { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

.btn--dark     { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #000; }

.btn--light    { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--bg-warm); }

.btn--lightInk { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lightInk:hover { background: var(--bg-warm); }

.btn--ghost    { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-warm); }

.btn--ghostInk { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghostInk:hover { background: rgba(255,255,255,0.08); }

/* Soft glass — für Buttons, die über Bildern liegen (lesbar bleiben) */
.btn--glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  border-color: rgba(255,255,255,0.7);
}
.btn--glass:hover {
  background: rgba(255,255,255,0.78);
  border-color: rgba(255,255,255,0.9);
}

/* ----- 6. Pills ----- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
}
.pill--xs { padding: 5px 12px; font-size: 13px; }
.pill--sm { padding: 6px 14px; font-size: 13px; }
.pill--md { padding: 8px 16px; font-size: 14px; }

.pill--neutral { background: #F0EDE3; color: var(--ink); }
.pill--sand    { background: var(--bg-sand); color: var(--ink); }
.pill--blue    { background: var(--blue); color: #fff; }
.pill--blue-lt { background: var(--blue-lt); color: var(--blue); }
.pill--ink     { background: var(--ink); color: #fff; }
.pill--ghost   { background: transparent; color: var(--ink); border-color: var(--line); }
.pill--ghostInk{ background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.pill--moss    { background: #E5E8DA; color: var(--moss-dk); }
.pill--live    { background: var(--live); color: #fff; }

/* ----- 7. Image placeholders (flächig, ruhig) ----- */
.img-ph {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  border-radius: var(--r-4);
}
.img-ph--blue    { background: var(--blue); }
.img-ph--blue-dk { background: var(--blue-dk); }
.img-ph--ink     { background: var(--ink); }
.img-ph--sand    { background: var(--bg-sand); color: rgba(17,24,39,0.45); }
.img-ph--sand-hi { background: var(--bg-sandHi); color: rgba(17,24,39,0.5); }
.img-ph--moss    { background: var(--moss); }
.img-ph--warm    { background: var(--bg-warm); color: var(--muted); }
.img-ph--no-r    { border-radius: 0; }

/* Foto-Variante — echtes Bild + Lese-Gradienten für Pill & Caption */
.img-ph--photo {
  background: none;
  color: #fff;
}
.img-ph--photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position kommt per inline-style pro Bild — Personen sollen sichtbar bleiben */
  z-index: 0;
}
.img-ph--photo::before,
.img-ph--photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
  z-index: 1;
}
.img-ph--photo::before {
  top: 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%);
}
.img-ph--photo::after {
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
}

.img-ph__caption { position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: rgba(255,255,255,0.85);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  z-index: 2;
}
.img-ph--sand .img-ph__caption,
.img-ph--sand-hi .img-ph__caption { color: var(--muted); }
.img-ph--photo .img-ph__caption { color: rgba(255,255,255,0.85); }
.img-ph__tag-row { position: absolute; top: 20px; left: 20px; display: flex; gap: 6px; z-index: 2; }

/* ----- 8. Avatar ----- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.avatar--blue   { background: var(--blue); color: #fff; }
.avatar--sand   { background: var(--bg-sandHi); color: var(--ink); }
.avatar--ink    { background: var(--ink); color: #fff; }
.avatar--moss   { background: var(--moss); color: #fff; }
.avatar--blue-dk { background: var(--blue-dk); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.asi-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  font-family: var(--font-body);
}
.asi-header__logo img { height: 40px; }
.asi-header__nav { display: flex; align-items: center; gap: 2px; }
.asi-header__nav a {
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.asi-header__nav a:hover,
.asi-header__nav a.is-active { color: var(--ink); }

.asi-header__right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.asi-header__right a.link {
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
}
.asi-header__right a.link:hover { color: var(--ink); }

.asi-header__user {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  flex-shrink: 0;
  margin-left: 4px;
  transition: border-color .15s var(--ease);
}
.asi-header__user:hover { border-color: var(--ink); }
.asi-header__user img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.asi-header__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  align-items: center; justify-content: center;
}

/* ============================================================
   HERO — flächig, asymmetrisch
   ============================================================ */
/* Hero + Aha sitzen in .hero-stage — der Sand→Weiß-Gradient läuft über beide
   als ein durchgängiger Verlauf. Hero und Aha selbst sind transparent. */
.hero-stage {
  background: linear-gradient(
    165deg,
    var(--bg-warm) 0%,
    #F2EDE3       38%,
    #F8F4EC       48%,
    var(--bg)     58%
  );
}

.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  min-height: clamp(580px, 78vh, 920px);
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  /* Bild-Höhe = Hero-Höhe. Breite folgt natürlich (height × 1.5).
     --img-w wird als CSS-Variable für die right-Formel unten weiterverwendet. */
  --img-h: clamp(580px, 78vh, 920px);
  --img-w: calc(var(--img-h) * 1.5);
  height: var(--img-h);
  width: auto;
  max-width: none;

  /* Adaptive Right-Position mit DREI Phasen (smooth über alle Viewport-Breiten):

     Phase A — sehr breite Schirme:
       Bild im Sweet-Spot: image_left = text_right + 40 (= vw/2 + 208).
       Voll sichtbar, freier Sand-Buffer rechts.
       Formel: right = vw/2 − 208 − image_w   (positiv, wächst mit vw)

     Phase B — mittlere Schirme:
       Bild FRIERT in absoluter Position. Viewport-rechts wandert nach links und
       beginnt den Watercolor-Rand zu clippen.
       image_left = 416 + image_w (konstant)
       Formel: right = vw − 416 − 2 × image_w   (linear immer negativer mit vw ↓)

     Phase C — schmale Schirme:
       Bild folgt der Viewport-Kante, der rechte Arm bleibt am Rand sitzen.
       image_left = vw − 0.77 × image_w
       Formel: right = −0.25 × image_w   (konstant)

     Übergänge sind im Wert stetig (kein Sprung):
       A→B bei vw = 416 + 2 × image_w     (right = 0)
       B→C bei vw = 416 + 1.75 × image_w  (right = −0.25 × image_w)

     Combinator: max(Phase_C, min(Phase_A, Phase_B)) wählt automatisch die richtige Phase. */
  right: max(
    calc(-0.25 * var(--img-w)),
    min(
      calc(50vw - 208px - var(--img-w)),
      calc(100vw - 416px - 2 * var(--img-w))
    )
  );

  z-index: 0;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;

  /* Sanfter Links-Fade — Bild-Mitte wird transparent, wo es Text trifft. */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.4)  10%,
    rgba(0,0,0,0.85) 22%,
    #000             34%);
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.4)  10%,
    rgba(0,0,0,0.85) 22%,
    #000             34%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--gutter) clamp(72px, 10vw, 128px);
}
.hero__body { max-width: 1100px; }
.hero__title { color: var(--ink); }
.hero__title .accent { color: var(--blue); font-weight: 500; }
.hero__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(40px, 6vw, 72px);
  align-items: end;
}
.hero__lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0;
}
.hero__ctas { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ============================================================
   AHA — approachable, große Typo
   ============================================================ */
.aha {
  /* Gradient kommt von .hero-stage durch — diese Section ist transparent. */
  background: transparent;
  padding: clamp(80px, 12vw, 144px) var(--gutter);
}
.aha__line { color: var(--ink); }
.aha__line + .aha__line { margin-top: 48px; }
.aha__line .muted-span { color: var(--muted); }
.aha__line .blue-span  { color: var(--blue); }

.aha__events {
  margin-top: clamp(64px, 9vw, 96px);
  padding-top: 48px;
  border-top: 1px solid var(--line-onW);
}
.aha__events-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ----- Upcoming-Events Hover-Row ----- */
.upcoming__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px;
}
.upcoming__head .meta-link { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

.upcoming__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: stretch;
}

.upcoming__list { display: flex; flex-direction: column; }
.upcoming__item {
  display: grid; grid-template-columns: 88px 1fr auto;
  align-items: center; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-onW);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity .22s ease;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
  width: 100%;
}
.upcoming__item:last-child { border-bottom: 0; }
.upcoming__item.is-active { opacity: 1; }

.upcoming__date {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em; white-space: nowrap;
}
.upcoming__date span {
  font-size: 13px; margin-left: 6px;
  color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
  transition: color .22s ease;
}
.upcoming__item.is-active .upcoming__date span { color: var(--blue); }

.upcoming__title { font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.upcoming__loc { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }

.upcoming__arrow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-onW);
  background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all .22s ease;
}
.upcoming__item.is-active .upcoming__arrow {
  border-color: var(--ink); background: var(--ink); color: #fff;
}

.upcoming__detail {
  background: var(--bg-sand);
  border-radius: var(--r-4);
  padding: 40px;
  display: flex; flex-direction: column;
  animation: fadeInUp 320ms ease;
}
.upcoming__detail__tags { display: flex; gap: 8px; margin-bottom: 24px; }
.upcoming__detail__title {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.upcoming__detail__lead {
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  margin: 20px 0 0;
}
.upcoming__detail__meta {
  margin-top: auto; padding-top: 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.upcoming__detail__meta li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-soft);
  list-style: none;
}
.upcoming__detail__meta li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex: none;
}
.upcoming__detail__meta { padding-left: 0; }

/* ============================================================
   3 WEGE — Sand-Belt
   ============================================================ */
.three-ways {
  background: var(--bg-sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.three-ways__inner {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(56px, 6.5vw, 84px) var(--gutter);
}
.three-ways__head { max-width: 720px; margin-bottom: 48px; }
.three-ways__head .eyebrow { margin-bottom: 18px; }
.three-ways__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.three-ways__card {
  padding: 40px 32px 36px 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 340px;
  cursor: pointer;
}
.three-ways__card:not(:first-child) { padding-left: 32px; }
.three-ways__card:last-child { border-right: 0; }
.three-ways__num {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.06em;
}
.three-ways__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 38px); font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin: 18px 0 0;
}
.three-ways__desc {
  font-size: 17px; line-height: 1.55;
  color: var(--ink-soft); margin: 16px 0 0;
  max-width: 340px;
}
.three-ways__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.three-ways__card:hover .three-ways__cta { background: var(--ink); color: #fff; }
.three-ways__cta span { font-size: 17px; }

/* ============================================================
   MINISTRIES BELT — Horizontal scroll
   ============================================================ */
.belt-section {
  background: var(--bg);
  padding: clamp(72px, 10vw, 120px) 0;
}
.belt-section__head {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}
.belt-section__head .lead-block { max-width: 680px; }
.belt-section__head .eyebrow { margin-bottom: 20px; }

.belt-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.belt-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.belt-arrow:hover { background: var(--bg-warm); }
.belt-arrow--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.belt-arrow--dark:hover { background: #000; }

.belt-scroller {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
}
.belt-scroller::-webkit-scrollbar { display: none; }

.belt-track { display: flex; gap: 24px; }

.ministry-card {
  flex: 0 0 420px;
  background: #fff;
  border: 1px solid var(--line-onW);
  border-radius: var(--r-4);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.ministry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.ministry-card .img-ph { height: 300px; border-radius: 0; }
.ministry-card__body { padding: 28px 28px 32px; }
.ministry-card__title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 0;
}
.ministry-card__sub { font-size: 16px; color: var(--muted); margin-top: 6px; }
.ministry-card__desc { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin-top: 20px; }
.ministry-card__foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line-onW);
  font-size: 15px; color: var(--muted);
}
.ministry-card__foot strong { font-weight: 500; color: var(--ink); }

.belt-section__after {
  max-width: var(--container); margin: 0 auto;
  padding: 56px var(--gutter) 0;
}

/* ============================================================
   PROJEKTE — Blue full-bleed
   ============================================================ */
.projects {
  background: var(--blue); color: #fff;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.projects__inner { max-width: var(--container); margin: 0 auto; }
.projects__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 72px; gap: 32px; flex-wrap: wrap;
}
.projects__head .lead-block { max-width: 720px; }
.projects__head .meta-block {
  max-width: 360px; font-size: 15px; line-height: 1.55;
  color: rgba(255,255,255,0.75);
}
.projects__head .display { color: #fff; }
.projects__head .eyebrow { margin-bottom: 20px; }

.projects__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.project-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-4);
  padding: 32px;
  display: flex; flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: background .2s var(--ease);
}
.project-card:hover { background: rgba(255,255,255,0.10); }
.project-card--featured { padding: 40px; min-height: 520px; }
/* Bild läuft bis an die Card-Kanten — width muss explizit das doppelte Card-Padding
   addieren (sonst füllt width:100% nur die Content-Box, und rechts bleibt eine Lücke).
   Negative Margins ziehen die linke Kante über das Padding hinaus, overflow:hidden auf
   der Card sorgt für den sauberen Rundeck-Schnitt. */
.project-card .img-ph {
  height: 160px;
  width: calc(100% + 64px);
  margin: -32px -32px 0;
  border-radius: 0;
}
.project-card--featured .img-ph {
  height: 240px;
  width: calc(100% + 80px);
  margin: -40px -40px 0;
}
.project-card__tags { display: flex; gap: 8px; margin: 32px 0 20px; }
.project-card--compact .project-card__tags { margin: 24px 0 0; }
.project-card__min {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); font-weight: 500;
}
.project-card__title {
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.02em; color: #fff; margin: 0;
}
.project-card--featured .project-card__title { font-size: clamp(30px, 3.2vw, 38px); line-height: 1.1; }
.project-card--compact .project-card__title { font-size: 24px; line-height: 1.2; margin-top: 10px; letter-spacing: -0.01em; }

.project-card__desc {
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.75); margin-top: 16px;
}
.project-card__bar-wrap { margin-top: auto; padding-top: 24px; }
.project-card__bar {
  height: 3px; background: rgba(255,255,255,0.15);
  border-radius: var(--r-pill); overflow: hidden;
}
.project-card__bar > span { display: block; height: 100%; background: #fff; }
.project-card__bar-meta {
  display: flex; justify-content: space-between;
  margin-top: 12px; font-size: 15px;
}
.project-card__bar-meta strong { font-weight: 600; }
.project-card__bar-meta .of { color: rgba(255,255,255,0.6); }
.project-card__bar-meta .pct { color: rgba(255,255,255,0.6); }

.projects__after { margin-top: 56px; }

/* ============================================================
   EVENTS — Sand mit dunkler Featured-Karte
   ============================================================ */
.events {
  background: var(--bg-sand);
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.events__inner { max-width: var(--container); margin: 0 auto; }
.events__head { margin-bottom: 72px; max-width: 720px; }
.events__head .eyebrow { margin-bottom: 20px; }

.events__grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

.event-feature {
  background: var(--ink); color: #fff;
  border-radius: var(--r-4);
  padding: 48px;
  min-height: 480px;
  display: flex; flex-direction: column;
}
.event-feature__tags { display: flex; gap: 8px; margin-bottom: 32px; }
.event-feature__meta { color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.event-feature .display { color: #fff; }
.event-feature__lead {
  font-size: 18px; line-height: 1.55;
  color: rgba(255,255,255,0.75); margin-top: 24px;
  max-width: 480px;
}
.event-feature__ctas {
  margin-top: auto; padding-top: 48px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.event-list { display: flex; flex-direction: column; }
.event-list__item {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center; gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-onW);
  cursor: pointer;
  width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
  transition: opacity .2s var(--ease);
}
.event-list__item:last-child { border-bottom: 0; }
.event-list__item:hover { opacity: 0.75; }
.event-list__date {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 500; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}
.event-list__date span {
  font-size: 18px; margin-left: 8px;
  color: var(--blue);
}
.event-list__title { display: block; font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1.3; overflow-wrap: break-word; }
.event-list__loc { display: block; font-size: 15px; color: var(--muted); margin-top: 8px; letter-spacing: 0.01em; overflow-wrap: break-word; }
.event-list__arrow {
  font-size: 22px; color: var(--ink); font-weight: 500;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-onW);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.event-list__item:hover .event-list__arrow {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ============================================================
   SPOTLIGHT — Ministry-Rotation
   ============================================================ */
.spotlight {
  background: var(--bg);
  padding: clamp(80px, 12vw, 144px) var(--gutter);
}
.spotlight__inner { max-width: var(--container); margin: 0 auto; }
.spotlight__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 80px; gap: 32px; flex-wrap: wrap;
}
.spotlight__head .lead-block { max-width: 720px; }
.spotlight__head .eyebrow { margin-bottom: 20px; }
.spotlight__counter {
  display: flex; align-items: center; gap: 16px;
}
.spotlight__counter .index {
  font-size: 15px; color: var(--muted);
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.spotlight__counter .arrows { display: flex; gap: 8px; }

.spotlight__stage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: stretch;
}

.spotlight__owner {
  display: flex; flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  animation: blendIn 500ms ease;
}
.spotlight__quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink);
  margin: 0;
}
.spotlight__quote::before { content: '„'; }
.spotlight__quote::after { content: '"'; }
.spotlight__person {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--line-onW);
  display: flex; align-items: center; gap: 18px;
}
.spotlight__person-name { font-size: 18px; font-weight: 500; color: var(--ink); }
.spotlight__person-role { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* Spotlight rechts = nur Foto, kein Card-Chrome, kein Stats-Grid */
.spotlight__card {
  border-radius: var(--r-4);
  overflow: hidden;
  min-height: 540px;
  height: 100%;
  background: var(--blue);
  animation: slideInRight 500ms ease;
  position: relative;
}
.spotlight__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Portrait-Variante — Person freigestellt mit Alpha-Transparenz, harter Cut unten,
   kein Card-Chrome. Card sizet sich nach Bild-Natural-Height, füllt Card-Breite. */
.spotlight__card--portrait {
  background: transparent;
  border-radius: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}
.spotlight__card--portrait img {
  width: 100%;
  height: auto;
  display: block;
}
.spotlight__card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px); font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.85);
}

.spotlight__dots {
  margin-top: 48px;
  display: flex; gap: 8px; justify-content: center;
}
.spotlight__dot {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: var(--line-onW); border: 0;
  transition: all .24s ease;
  padding: 0;
}
.spotlight__dot.is-active { width: 28px; background: var(--ink); }

/* ============================================================
   MARKTPLATZ-TEASER — Ink full-bleed
   ============================================================ */
.marketplace {
  background: var(--ink); color: #fff;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.marketplace__inner { max-width: var(--container); margin: 0 auto; }
.marketplace__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.marketplace__title { color: #fff; line-height: 0.95; }
.marketplace__lead {
  font-size: 20px; line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 28px 0 0; max-width: 480px;
}
.marketplace__ctas { margin-top: 40px; }

.marketplace__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.marketplace__stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-4);
  padding: 36px 28px;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.marketplace__stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500; line-height: 1;
  letter-spacing: -0.03em; color: #fff;
}
.marketplace__stat-lbl {
  font-size: 15px; color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.asi-footer {
  background: var(--ink); color: #fff;
  padding: 80px var(--gutter) 40px;
}
.asi-footer__inner { max-width: 1280px; margin: 0 auto; }
.asi-footer__cols {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px; margin-bottom: 64px;
}
.asi-footer__brand img { height: 44px; filter: invert(1) brightness(1.2); margin-bottom: 24px; }
.asi-footer__tagline {
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.75); max-width: 300px; margin: 0;
}
.asi-footer__addr {
  margin-top: 24px;
  font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.75;
}
.asi-footer__cols h5 {
  font-size: 15px; font-weight: 600;
  margin: 0 0 18px; color: #fff;
}
.asi-footer__cols ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.asi-footer__cols a {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition: color .15s var(--ease);
}
.asi-footer__cols a:hover { color: #fff; }
.asi-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: rgba(255,255,255,0.55);
  flex-wrap: wrap; gap: 16px;
}
.asi-footer__bottom .links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.asi-footer__bottom a { color: inherit; }

/* ============================================================
   PAGE-KIT — Bausteine für Unterseiten
   Gleiche Design-Sprache wie die Home: flächig, große Typo,
   Pill-Buttons, Stahlblau/Sand/Ink, r-4-Radien, line-Borders.
   Doku + Markup-Snippets: PAGE-KIT.md
   ============================================================ */

/* Anker unter dem Sticky-Header sauber anspringen */
[id] { scroll-margin-top: 88px; }

/* ----- PK 1. Page-Hero (Unterseiten-Kopf) ----- */
.page-hero {
  background: linear-gradient(165deg, var(--bg-warm) 0%, #F2EDE3 48%, var(--bg) 100%);
  padding: clamp(48px, 6.5vw, 80px) var(--gutter) clamp(48px, 6vw, 72px);
}
.page-hero__inner { max-width: var(--container); margin: 0 auto; }
.page-hero .breadcrumbs { margin-bottom: 32px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero__lead {
  margin: 28px 0 0;
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.page-hero__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
/* Kopf mit rechtem Meta-/CTA-Slot (wie projects__head der Home) */
.page-hero__grid {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
}
.page-hero__grid .lead-block { max-width: 720px; }
.page-hero__aside { max-width: 380px; }
/* dunkle Varianten */
.page-hero--ink  { background: var(--ink); }
.page-hero--blue { background: var(--blue); }
.page-hero--ink .display, .page-hero--blue .display { color: #fff; }
.page-hero--ink .page-hero__lead, .page-hero--blue .page-hero__lead { color: rgba(255,255,255,0.75); }
.page-hero--ink .breadcrumbs, .page-hero--blue .breadcrumbs { color: rgba(255,255,255,0.55); }
.page-hero--ink .breadcrumbs .current, .page-hero--blue .breadcrumbs .current { color: rgba(255,255,255,0.85); }
.page-hero--ink .breadcrumbs a:hover, .page-hero--blue .breadcrumbs a:hover { color: #fff; }

/* ----- PK 2. Breadcrumbs ----- */
.breadcrumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.02em;
}
.breadcrumbs a { transition: color .15s var(--ease); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--muted-sof); }
.breadcrumbs .current { color: var(--ink); }

/* ----- PK 3. Section-System ----- */
.section { padding: clamp(64px, 9vw, 112px) var(--gutter); background: var(--bg); }
.section--tight { padding: clamp(40px, 5vw, 64px) var(--gutter); }
.section--warm { background: var(--bg-warm); }
.section--sand { background: var(--bg-sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--blue { background: var(--blue); color: #fff; }
.section--ink  { background: var(--ink); color: #fff; }
.section__inner { max-width: var(--container); margin: 0 auto; }
.section__inner--narrow { max-width: 1080px; }
.section__inner--article { max-width: 1184px; }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section__head .lead-block { max-width: 720px; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__meta { max-width: 360px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.section--blue .display, .section--ink .display { color: #fff; }
.section--blue .section__meta, .section--ink .section__meta { color: rgba(255,255,255,0.75); }
.section--blue .eyebrow, .section--ink .eyebrow { color: rgba(255,255,255,0.6); }

/* ----- PK 4. Filter-Chips ----- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line-onW);
  border-bottom: 1px solid var(--line-onW);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group__label {
  font-size: 12px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-right: 6px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { background: var(--bg-warm); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----- PK 5. Tabs (Pill-Gruppe) ----- */
.tabs {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--line-onW);
  border-radius: var(--r-pill);
}
.tab {
  padding: 10px 22px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  background: transparent; border: 0;
  border-radius: var(--r-pill);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }
[data-tab-panel] { display: none; }
[data-tab-panel].is-active { display: block; }

/* ----- PK 6. Cards + Grids ----- */
.card {
  background: #fff;
  border: 1px solid var(--line-onW);
  border-radius: var(--r-4);
  overflow: hidden;
  display: flex; flex-direction: column;
}
a.card { cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.card .img-ph { height: 220px; border-radius: 0; flex-shrink: 0; }
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500; line-height: 1.15;
  letter-spacing: -0.01em; color: var(--ink);
  margin: 0;
}
.card__sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.card__desc { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin-top: 16px; }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.card__foot {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--line-onW);
  font-size: 14px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.card__foot strong { font-weight: 500; color: var(--ink); }
.card__foot:first-child { margin-top: 0; }
.card__body > .card__foot { margin-top: auto; }
.card__body > *:first-child { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ----- PK 7. List-Rows (Zeilen-Listen auf Weiß/Warm) ----- */
.list-rows { display: flex; flex-direction: column; }
.list-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-onW);
  width: 100%; text-align: left;
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
  transition: opacity .2s var(--ease);
}
.list-row:hover { opacity: 0.8; }
.list-row__lead {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em; white-space: nowrap;
  min-width: 88px;
}
.list-row__lead span {
  font-size: 14px; margin-left: 6px; color: var(--blue);
  letter-spacing: 0.02em;
}
.list-row__title { display: block; font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.list-row__meta { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; letter-spacing: 0.01em; }
.list-row__side { display: flex; align-items: center; gap: 16px; }
.list-row__arrow {
  font-size: 18px; color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-onW);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.list-row:hover .list-row__arrow { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----- PK 8. Formulare ----- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__label .opt { color: var(--muted); font-weight: 400; }
.field__hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: #fff; color: var(--ink);
  width: 100%;
  transition: border-color .15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--muted-sof); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

.checkbox-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--blue); margin: 2px 0 0; flex-shrink: 0; }

/* Auswahl-Karten (Radio/Checkbox als Fläche) */
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.radio-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.radio-card:hover { background: var(--bg-warm); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--bg-warm); }
.radio-card__title { font-size: 16px; font-weight: 500; color: var(--ink); }
.radio-card__desc { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }

.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 36px; flex-wrap: wrap;
}
.form-success {
  display: none;
  background: var(--bg-warm);
  border-radius: var(--r-4);
  padding: clamp(48px, 6vw, 72px) 32px;
  text-align: center;
}
.form-success.is-visible { display: block; animation: fadeInUp 320ms ease; }
.form-success .display { margin-bottom: 16px; }
.form-success p { max-width: 480px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.form-success .btn { margin-top: 28px; }

/* ----- PK 9. Vergleichstabelle ----- */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-onW);
  text-align: left; vertical-align: top;
  font-size: 16px; line-height: 1.5; color: var(--ink-soft);
}
.compare thead th {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.compare thead th .sub { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.compare td:first-child, .compare th:first-child {
  color: var(--muted); font-size: 14px; width: 26%;
  padding-left: 0;
}
.compare .is-featured { background: var(--bg-warm); }
.compare .check { color: var(--success); font-weight: 600; }
.compare .dash { color: var(--muted-sof); }

/* ----- PK 10. Akkordeon (natives details) ----- */
.accordion { border-top: 1px solid var(--line-onW); }
.accordion details { border-bottom: 1px solid var(--line-onW); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font-size: 18px; font-weight: 500; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400; color: var(--muted);
  line-height: 1;
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body {
  padding: 0 0 28px;
  max-width: 720px;
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
}
.accordion__body p { margin: 0 0 16px; }
.accordion__body p:last-child { margin-bottom: 0; }

/* ----- PK 11. Progress (helle Variante; data-fill via main.js) ----- */
.progress { height: 3px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--blue); width: 0; transition: width .6s var(--ease); }
.progress--onDark { background: rgba(255,255,255,0.15); }
.progress--onDark > span { background: #fff; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 15px; color: var(--ink); }
.progress-meta strong { font-weight: 600; }
.progress-meta .of, .progress-meta .pct { color: var(--muted); }

/* Segmentierter Balken (Material-Bedarf: x von y Positionen) */
.seg-bar { display: flex; gap: 4px; }
.seg-bar span { flex: 1; height: 3px; border-radius: var(--r-pill); background: var(--line); }
.seg-bar span.is-done { background: var(--blue); }
.seg-bar--onDark span { background: rgba(255,255,255,0.15); }
.seg-bar--onDark span.is-done { background: #fff; }

/* ----- PK 12. Stat-Tiles (helle Variante der Marktplatz-Stats) ----- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.stat-tile {
  background: var(--bg-warm);
  border-radius: var(--r-4);
  padding: 36px 28px;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.stat-tile--sand { background: var(--bg-sand); }
.stat-tile__num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px); font-weight: 500; line-height: 1;
  letter-spacing: -0.03em; color: var(--ink);
}
.stat-tile__lbl { font-size: 15px; color: var(--muted); letter-spacing: 0.02em; }

/* ----- PK 13. Stepper + Wizard ----- */
.stepper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stepper__step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.stepper__step.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper__step.is-done { color: var(--success); }
[data-wizard-step] { display: none; }
[data-wizard-step].is-active { display: block; animation: fadeInUp 280ms ease; }

/* ----- PK 14. Artikel / Prose (Medium-Layout) ----- */
.prose {
  max-width: 680px; margin: 0 auto;
  font-size: 18px; line-height: 1.7; color: var(--ink-soft);
}
.prose p { margin: 0 0 24px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.15;
  color: var(--ink);
  margin: 48px 0 20px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 16px;
}
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 32px 0; padding-left: 24px;
  border-left: 2px solid var(--blue);
  font-style: italic; color: var(--ink);
}
/* Medien breiter als die Textspalte (Medium-Rhythmus) */
.article-media { max-width: 1184px; margin: clamp(40px, 5vw, 64px) auto; }
.article-media .img-ph { min-height: 320px; height: clamp(320px, 42vw, 560px); }
.article-media figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; letter-spacing: 0.02em; }
.article-media figure { margin: 0; }
.pull-quote { padding: clamp(40px, 5vw, 64px) 0; text-align: center; }
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 400;
  line-height: 1.35; letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 900px; margin: 0 auto;
}
.pull-quote p::before { content: '„'; }
.pull-quote p::after { content: '"'; }
.pull-quote cite {
  display: block; margin-top: 24px;
  font-size: 13px; font-style: normal; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.section--ink .pull-quote p, .section--blue .pull-quote p { color: #fff; }
.section--ink .pull-quote cite, .section--blue .pull-quote cite { color: rgba(255,255,255,0.6); }

/* ----- PK 15. Empty-State ----- */
.empty-state {
  background: var(--bg-warm);
  border-radius: var(--r-4);
  padding: clamp(48px, 7vw, 80px) 32px;
  text-align: center;
}
.empty-state__title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.empty-state p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 440px; margin: 0 auto; }
.empty-state .btn { margin-top: 24px; }
[data-filter-empty] { display: none; }
[data-filter-empty].is-visible { display: block; }

/* ----- PK 16. CTA-Banner ----- */
.cta-banner {
  background: var(--ink); color: #fff;
  border-radius: var(--r-4);
  padding: clamp(40px, 5vw, 64px);
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.cta-banner--blue { background: var(--blue); }
.cta-banner--sand { background: var(--bg-sand); color: var(--ink); }
.cta-banner__body { max-width: 640px; }
.cta-banner .display { color: #fff; }
.cta-banner--sand .display { color: var(--ink); }
.cta-banner p { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.75); margin: 16px 0 0; }
.cta-banner--sand p { color: var(--ink-soft); }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ----- PK 17. Detail-Hero (Detail-Seiten-Kopf, 2-spaltig) ----- */
.detail-hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.detail-hero__media {
  border-radius: var(--r-4);
  overflow: hidden;
  position: relative;
  min-height: 380px;
}
.detail-hero__media .img-ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.detail-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-hero__title { margin: 0; }
.detail-hero__sub { font-size: 18px; color: var(--muted); margin-top: 12px; }
.detail-hero__lead { font-size: 18px; line-height: 1.55; color: var(--ink-soft); margin-top: 24px; max-width: 520px; }
.detail-hero__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.detail-hero__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: 15px; font-weight: 500; color: var(--blue);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ----- PK 18. Personen ----- */
.person { display: flex; gap: 16px; align-items: center; }
.person__name { font-size: 16px; font-weight: 500; color: var(--ink); }
.person__role { font-size: 14px; color: var(--muted); margin-top: 2px; }
.avatar--sm { width: 40px; height: 40px; font-size: 13px; }
.avatar--md { width: 48px; height: 48px; font-size: 15px; }
.avatar--lg { width: 64px; height: 64px; font-size: 18px; }
.person-card {
  background: #fff;
  border: 1px solid var(--line-onW);
  border-radius: var(--r-4);
  padding: 24px;
}
.person-card .person__bio { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-top: 16px; }

/* ----- PK 19. Info-Note ----- */
.note {
  background: var(--blue-lt);
  border-radius: var(--r-4);
  padding: 20px 24px;
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
}
.note--warm { background: var(--bg-warm); }
.note strong { color: var(--ink); font-weight: 500; }

/* ----- PK 20. Sonstiges ----- */
.divider { border: 0; border-top: 1px solid var(--line-onW); margin: 0; }
.badge-frist { background: #F3E9CE; color: #7A5E1E; }

/* ----- PK Responsive ----- */
@media (max-width: 960px) {
  .card-grid, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr 1fr; }
  .stat-tiles, .stat-tiles--3 { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero__media { min-height: 280px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero__grid { flex-direction: column; align-items: flex-start; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
  .stat-tiles, .stat-tiles--3 { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr auto; }
  .list-row__lead { display: none; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; padding: 10px 12px; }
  .filter-bar { gap: 16px; }
}

/* ============================================================
   Animationen
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blendIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .asi-footer__cols { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .asi-footer__cols > nav:nth-child(n+4) { grid-column: span 1; }
}

@media (max-width: 960px) {
  :root { --gutter: 28px; }
  /* Tablet/Mobile — die 3-Phasen-Formel aus dem Desktop-Block bleibt aktiv. Nur --img-h
     wird kleiner gesetzt, --img-w und die right-Formel cascaden automatisch in Phase C
     (right = −0.25 × image_w → rechter Arm an der Viewport-Kante geclipped). */
  .hero { min-height: 0; display: block; }
  .hero__bg {
    top: 50%; bottom: auto;
    transform: translateY(-50%);
    --img-h: clamp(400px, 60vh, 600px);
    width: auto;
    opacity: 0.5;
    object-fit: unset;
    object-position: unset;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .asi-header { grid-template-columns: auto auto; }
  .asi-header__nav { display: none; }
  .asi-header__right .link { display: none; }
  .asi-header__toggle { display: inline-flex; }

  .asi-header.is-open .asi-header__nav {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-6); padding: 12px;
    box-shadow: var(--shadow-l); gap: 4px;
  }

  .hero__row { grid-template-columns: 1fr; gap: 32px; }
  .hero__ctas { justify-content: flex-start; }

  .upcoming__grid { grid-template-columns: 1fr; gap: 32px; }
  .three-ways__grid { grid-template-columns: 1fr; border-top: 0; }
  .three-ways__card { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-top: 32px; padding-bottom: 32px; min-height: 0; }
  .three-ways__card:not(:first-child) { padding-left: 0; }
  .three-ways__card:last-child { border-bottom: 0; }

  .projects__grid { grid-template-columns: 1fr; }
  .events__grid { grid-template-columns: minmax(0, 1fr); }
  .spotlight__stage { grid-template-columns: 1fr; gap: 32px; }
  .marketplace__grid { grid-template-columns: 1fr; }
  .ministry-card { flex-basis: 320px; }
  .ministry-card .img-ph { height: 220px; }

  .asi-footer__cols { grid-template-columns: 1fr 1fr; }
  .asi-footer__cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  /* Mobile schmal — gleiche Logik wie ≤960 (Mann sichtbar, rechter Arm clippt knapp),
     nur kleinerer img_h für proportionalere Wirkung auf engen Viewports. */
  .hero__bg {
    --img-h: clamp(380px, 56vh, 480px);
    opacity: 0.55;
  }
  .belt-scroller { padding-left: var(--gutter); }
  .ministry-card { flex-basis: 280px; }
  .ministry-card .img-ph { height: 180px; }
  .project-card--featured { padding: 28px; min-height: 0; }
  .event-feature { padding: 32px; min-height: 0; }
  .event-feature__ctas .btn { padding: 12px 18px; }
  .upcoming__detail { padding: 28px; }
  .upcoming__item { grid-template-columns: 64px 1fr auto; gap: 14px; }
  .upcoming__date { font-size: 26px; }
  .marketplace__stat { padding: 28px 22px; min-height: 140px; }
  .asi-footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .asi-footer__bottom { flex-direction: column; align-items: flex-start; }
  .spotlight__head, .belt-section__head, .projects__head { flex-direction: column; align-items: flex-start; }
  .spotlight__counter, .belt-arrows { width: 100%; justify-content: flex-start; }
}

/* === O2 Mobile-Pass ===
   Globale Mobil-/Tablet-Korrekturen (≤1024px) für ALLE Astro-Seiten. Einziger
   erlaubter Eingriff in diese sonst read-only Datei. Ausschließlich Touch-Komfort
   und Umbruch-Sicherheit — KEINE neuen Farben/Fonts/Tokens. Header/Footer (Site-Chrome,
   bereits gefixt) und der Home-Hero (Referenz) bleiben unangetastet. Echter Desktop
   (≥1025px) rendert weiterhin 1:1 die Referenz.
   Referenz-Maßstab: Home/Hero. Deckt die vier Prüfbreiten 360/390/768/1024 ab. */
@media (max-width: 1024px) {
  /* (b) Touch-Ziele ≥44px: primäre Buttons im Seiteninhalt (nicht im Header/Footer).
     .btn ist inline-flex mit zentriertem Inhalt → min-height wächst sauber mittig. */
  main .btn { min-height: 44px; }
  /* Filter-Chips (Marktplatz/Ministries/Projekte) auf komfortable Tap-Höhe. */
  .chip { min-height: 40px; }

  /* (a/d) Lange deutsche Komposita und URLs brechen um, statt den Viewport zu sprengen.
     overflow-wrap:break-word bricht notfalls hart (unabhängig von Silbentrennungs-
     Wörterbüchern), hyphens:auto trennt bei lang="de" zusätzlich hübsch an Fugen. */
  .display, h1, h2, h3,
  .card__title, .list-row__title,
  .detail-hero__title, .page-hero h1,
  .mp-whosearching__name, .mp-profile-name {
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .prose, .prose p, .prose li,
  .list-row__meta, .card__desc,
  .mp-apply__contact, .mp-ad-body {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Listenzeilen (Stellen, Unternehmens-Detail …): die 1fr-Spalte muss unter ihren
     min-content-Inhalt schrumpfen dürfen, sonst überläuft ein langer Titel die Zeile. */
  .list-row { min-width: 0; }
  .list-row > * { min-width: 0; }
}

@media (max-width: 560px) {
  /* Schmale Viewports: Zeilenabstand der Listenzeilen entzerren, damit Titel + Seiten-
     block (Pill/Pfeil) nebeneinander Platz haben. */
  .list-row { gap: 14px; }
}
