/* ============================================================
   ANTIGONE — DESIGN SYSTEM
   Single source of truth. Never hardcode colours/sizes outside
   this tokens block. See DESIGN.md for the rules.
   ============================================================ */

/* === FONTS (self-hosted, via @fontsource npm packages) === */
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/sofia-sans-condensed-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/sofia-sans-condensed-latin-900-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}

/* === DESIGN TOKENS === */
:root {
  /* Colours — from CI manual */
  --c-indigo:       #29235C;
  --c-red:          #CB181A;
  --c-red-mid:      #E83F44;
  --c-red-soft:     #EE7179;
  --c-paper:        #FFFFFF;
  --c-paper-warm:   #FBF5F4;
  --c-ink:          #29235C;
  --c-ink-muted:    #6E6A8C;
  --c-line:         #E6E4EF;

  /* Fonts */
  --ff-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --ff-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale (fluid) */
  --fs-xs:   0.85rem;
  --fs-sm:   0.95rem;
  --fs-base: 1.15rem;
  --fs-lg:   1.35rem;
  --fs-h3:   clamp(1.6rem, 2.5vw, 2rem);
  --fs-h2:   clamp(2.2rem, 3.5vw, 3rem);
  --fs-h1:   clamp(2.8rem, 5.5vw, 4.8rem);
  --fs-hero: clamp(2.4rem, 6vw, 5rem);

  /* Tracking (from manual: +90) */
  --tracking-display: 0.09em;
  --tracking-label:   0.12em;

  /* Spacing (4pt) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.5rem;
  --s-8: 3rem;
  --s-9: 4rem;
  --s-10: 5rem;
  --s-11: 6rem;
  --s-12: 8rem;

  /* Structure */
  --max-width:  76rem;
  --max-text:   38rem;
  --padding:    1.5rem;
  --shadow-1:   0 2px 12px color-mix(in srgb, var(--c-indigo) 8%, transparent);
  --shadow-2:   0 8px 32px color-mix(in srgb, var(--c-indigo) 12%, transparent);
  --ease:       cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur:        320ms;

  /* Border radius for card/box elements: round top-left + bottom-right */
  --radius-box: 1em 0;

  /* Header heights (used by scroll-spy JS too) */
  --header-h-hero:    210px;
  --header-h-compact: 72px;
  --subnav-h:         46px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + var(--subnav-h) + 1rem);
  overflow-x: hidden; /* prevent horizontal scroll from any overflow child */
}
body { overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-red); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-red-mid); }
li { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* === TYPOGRAPHY BASE === */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  color: var(--c-indigo);
  text-transform: uppercase;
  /* Allow long compound words (German) to hyphenate on mobile */
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
p { margin-bottom: var(--s-4); }
strong, b { font-weight: 600; color: var(--c-indigo); }
em, i { font-style: italic; }

/* Eyebrow label — Sofia Light, red, uppercase */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: var(--s-3);
}

/* === HEADER (morphing / condensing) ============================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h-hero);
  background: transparent;
  transition: background var(--dur) var(--ease),
              height var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--padding);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  transition: transform var(--dur) var(--ease);
  transform-origin: left center;
  margin-left: -39px; /* optical align: compensate for SVG internal whitespace */
}
.brand img {
  width: auto;
  transition: height var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
/* Expanded state: show full negativ logo only, hide everything else */
.brand .logo-full.logo-negativ  { display: block; height: 190px; }
.brand .logo-full.logo-positiv  { display: none; }
.brand .logo-mark.logo-negativ  { display: none; }
.brand .logo-mark.logo-positiv  { display: none; }

/* Primary nav */
.nav-primary {
  display: flex;
  justify-content: center;
  gap: var(--s-6);
}
.nav-primary a {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-paper);
  padding: var(--s-2) 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after { transform: scaleX(1); }
.nav-primary a:hover { color: var(--c-paper); }

/* Nav right cluster (lang + mobile toggle) */
.nav-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.lang-switch {
  display: flex;
  gap: var(--s-1);
}
.lang-link {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: var(--tracking-label);
  color: var(--c-paper);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 0;
  opacity: 0.7;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lang-link:hover { opacity: 1; color: var(--c-paper); border-color: var(--c-paper); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--c-paper);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* --- Compact header state (scrolled, or on any non-hero page) --- */
body.is-scrolled .site-header,
body.page-no-hero .site-header {
  height: var(--header-h-compact);
  background: color-mix(in srgb, var(--c-indigo) 96%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible;
}
body.is-scrolled .site-header::after,
body.page-no-hero .site-header::after { opacity: 1; }
/* In collapsed state: hide ALL full logos, hide negativ mark, show ONLY positiv mark */
body.is-scrolled .brand .logo-full.logo-negativ,
body.page-no-hero .brand .logo-full.logo-negativ { display: none; }
body.is-scrolled .brand .logo-full.logo-positiv,
body.page-no-hero .brand .logo-full.logo-positiv { display: none; }
body.is-scrolled .brand .logo-mark.logo-negativ,
body.page-no-hero .brand .logo-mark.logo-negativ { display: none; }
body.is-scrolled .brand .logo-mark.logo-positiv,
body.page-no-hero .brand .logo-mark.logo-positiv { display: block; height: 65px; margin-top: -11px; }
body.is-scrolled .brand,
body.page-no-hero .brand { margin-left: -8px; }
body.is-scrolled .nav-primary a,
body.page-no-hero .nav-primary a { color: var(--c-paper); font-size: 1.1rem; }
body.is-scrolled .lang-link,
body.page-no-hero .lang-link { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.5); }
body.is-scrolled .lang-link:hover,
body.page-no-hero .lang-link:hover { color: var(--c-paper); border-color: var(--c-paper); }
body.is-scrolled .menu-toggle,
body.page-no-hero .menu-toggle { color: var(--c-paper); }

/* Sub-nav (level 2 — anchors) */
.nav-sub {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-h-hero);
  z-index: 99;
  height: var(--subnav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease),
              top var(--dur) var(--ease);
  pointer-events: none;
}
body.is-scrolled .nav-sub,
body.page-no-hero .nav-sub {
  top: var(--header-h-compact);
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-sub-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--padding);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-sub-inner::-webkit-scrollbar { display: none; }
.nav-sub a {
  flex: 0 0 auto;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-ink-muted);
  padding: var(--s-2) 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav-sub a::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-sub a:hover,
.nav-sub a.is-active { color: var(--c-indigo); }
.nav-sub a.is-active::before { transform: scaleX(1); }

/* === MAIN ======================================================== */
.main {
  min-height: 70vh;
  padding-top: 0;
}
/* On non-hero pages the subnav is always visible (it slides in for
   page-no-hero in the CSS above), so always reserve both bar heights. */
body.page-no-hero .main { padding-top: calc(var(--header-h-compact) + var(--subnav-h)); }

/* === HERO — plakativ (home) ===================================== */
.hero-plakativ {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--c-indigo);
  color: var(--c-paper);
  display: flex;
  align-items: center;
}
.hero-plakativ .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%; /* 20% extra for parallax travel */
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  will-change: transform;
}
.hero-plakativ::after {
  content: '';
  position: absolute;
  inset: 0;
  /* base color comes from the page's Grundfarbe Hero (inline --hero-bg on
     .hero-plakativ); the second arg to var() is the fallback when unset. */
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--hero-bg, var(--c-indigo)) 85%, transparent) 0%,
      color-mix(in srgb, var(--hero-bg, var(--c-indigo)) 20%, transparent) 35%,
      transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--hero-bg, var(--c-indigo)) 60%, transparent) 0%,
      color-mix(in srgb, var(--hero-bg, var(--c-indigo)) 15%, transparent) 15%,
      color-mix(in srgb, var(--hero-bg, var(--c-indigo)) 5%, transparent) 30%,
      color-mix(in srgb, var(--hero-bg, var(--c-indigo)) 10%, transparent) 50%,
      color-mix(in srgb, var(--hero-bg, var(--c-indigo)) 95%, transparent) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--s-9) var(--padding);
  padding-top: calc(var(--header-h-hero) + var(--s-6));
}
.hero-display {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-hero);
  letter-spacing: var(--tracking-display);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--c-paper);
  margin-bottom: var(--s-4);
}
.hero-sub {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-hero);
  letter-spacing: var(--tracking-display);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--c-paper);
  opacity: 0.95;
  margin-bottom: var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  max-width: 66%;
}
.hero-sub::before {
  display: none;
}
.hero-claim {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--s-6);
  max-width: 36rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-paper);
  background: var(--c-red);
  border-radius: var(--radius-box);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-cta:hover {
  background: var(--c-red-mid);
  color: var(--c-paper);
  transform: translateY(-2px);
}
.hero-scroll-hint {
  position: absolute;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--c-red));
  animation: scroll-hint 2s var(--ease) infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 0; transform: translate(-50%, -10px); }
  50% { opacity: 1; transform: translate(-50%, 0); }
}

/* === PAGE INTRO — consistent header band for every sub-page ======
   Replaces the old .hero-page indigo box. Warm paper background,
   indigo title, red eyebrow + hand-drawn stroke-accent. Same
   height on every page regardless of title length.
   ================================================================= */
/* .main already clears the fixed header (+ subnav when present).
   Title anchors from the BOTTOM of the band — consistent with the
   image-variant which also uses flex-end (see .page-intro--with-image).
   A min-height creates the band height; padding-bottom sets the gap
   between the title and the lower edge of the band.                 */
.page-intro {
  position: relative;
  width: 100%;
  background: var(--c-paper-warm);
  color: var(--c-ink);
  min-height: clamp(180px, 20vw, 240px);
  padding: var(--s-6) var(--padding) var(--s-8);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--s-2);
}
.page-intro .eyebrow {
  color: var(--c-red);
  margin-bottom: 0;
  /* Reserve eyebrow line height even when the eyebrow text itself is
     missing, so pages with/without an eyebrow keep the same vertical
     rhythm. */
  min-height: 1.4em;
}
.page-intro h1 {
  color: var(--c-red);
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0;
  line-height: 1.0;
}


/* === PAGE INTRO — image variant ================================= */
/* When a header_image is set, the warm-paper band transforms into  */
/* a cinematic banner: photo behind title + heavy indigo wash.      */
.page-intro--with-image {
  position: relative;
  min-height: clamp(300px, 36vw, 480px);
  background: var(--c-indigo); /* fallback colour while image loads */
  overflow: hidden;
  /* Slide the image up so it extends BEHIND the sub-nav strip,
     giving the frosted-glass blur actual photo content to blur. */
  margin-top: calc(-1 * var(--subnav-h));
}
/* The background photo — default crop: center.
   Overridden by .page-intro--bg-{top|center|bottom} modifier classes.
   Extra 20 % height gives the JS parallax room to shift the image upward
   as the user scrolls past the band without revealing background behind it. */
.page-intro--with-image .page-intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%; /* 20% extra for parallax travel */
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}
/* Header image crop positions (set via Panel "Bildausschnitt" field) */
.page-intro--bg-top    .page-intro-bg { object-position: center top; }
.page-intro--bg-center .page-intro-bg { object-position: center; }
.page-intro--bg-bottom .page-intro-bg { object-position: center bottom; }
/* Indigo wash overlay — matches the home hero approach */
.page-intro--with-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--overlay-color, var(--c-indigo)) 65%, transparent) 0%,
      color-mix(in srgb, var(--overlay-color, var(--c-indigo)) 70%, transparent) 40%,
      color-mix(in srgb, var(--overlay-color, var(--c-indigo)) 85%, transparent) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Content on top of the wash — bottom anchoring is handled by the
   parent's flex-end + padding-bottom: var(--s-8). No extra padding
   here or the gap doubles to 6rem (invisible on desktop, centred on mobile). */
.page-intro--with-image .page-intro-inner {
  position: relative;
  z-index: 2;
}
/* Title flips to paper white */
.page-intro--with-image h1 {
  color: var(--c-paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
/* Eyebrow softens to red-soft for legibility on dark */
.page-intro--with-image .eyebrow {
  color: var(--c-red-soft);
}

@media (max-width: 960px) {
  .page-intro--with-image {
    min-height: clamp(220px, 50vw, 360px);
  }
}
@media (max-width: 520px) {
  .page-intro--with-image {
    min-height: 240px;
  }
}

/* ── SUB-NAV FROSTED GLASS — when a full-bleed header image is present  */
/* The nav-sub is already position:fixed and overlays the photo —         */
/* replace its solid white bg with a translucent frosted-glass band.      */
body:has(.page-intro--with-image) .nav-sub {
  background: color-mix(in srgb, var(--c-indigo) 30%, transparent);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
body:has(.page-intro--with-image) .nav-sub a {
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: transparent;
}
body:has(.page-intro--with-image) .nav-sub a:hover,
body:has(.page-intro--with-image) .nav-sub a.is-active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}
/* Mobile toggle button — white text on glass bg */
body:has(.page-intro--with-image) .nav-sub-toggle {
  color: #fff;
}
body:has(.page-intro--with-image) .nav-sub-toggle .nav-sub-current {
  color: rgba(255, 255, 255, 0.80);
}

/* Legacy alias — keep .hero-page mapped to .page-intro during migration */
.hero-page {
  /* deprecated: use .page-intro instead. kept as fallback alias. */
  position: relative;
  width: 100%;
  background: var(--c-paper-warm);
  color: var(--c-ink);
  padding:
    calc(var(--header-h-compact) + var(--subnav-h) + var(--s-8))
    var(--padding)
    var(--s-8);
  border-bottom: 1px solid var(--c-line);
  height: auto;
  min-height: 0;
  margin-top: 0;
  overflow: visible;
}
.hero-page::after { display: none; }
.hero-page .hero-bg { display: none; }
.hero-page .hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  height: auto;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.hero-page h1 {
  color: var(--c-indigo);
  font-size: var(--fs-h1);
}
.hero-page .eyebrow {
  color: var(--c-red) !important;
}

/* === SECTION base ================================================ */
.section {
  padding: var(--s-10) var(--padding);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section--text { padding: var(--s-10) var(--padding); }
.section--text .section-inner {
  max-width: var(--max-text);
}
.section--warm { background: var(--c-paper-warm); }
/* Map sits directly under the address block — drop its top padding so the
   two aren't separated by a double gap. */
.section--map { padding-top: 0; }
.section--indigo {
  background: var(--c-indigo);
  color: var(--c-paper);
}
.section--indigo h2,
.section--indigo h3,
.section--indigo .eyebrow { color: var(--c-paper); }
.section--indigo .eyebrow { color: var(--c-red-soft); }

.section-header {
  margin-bottom: var(--s-7);
  position: relative;
  padding-left: 0;
  border-left: none;
}
.section-header h2 {
  font-size: var(--fs-h2);
}

/* Text content within sections */
.prose { max-width: var(--max-text); }
.prose p { margin-bottom: var(--s-4); font-size: var(--fs-base); }
.prose h2 { font-size: var(--fs-h2); margin: var(--s-7) 0 var(--s-4); }
.prose h3 { font-size: var(--fs-h3); margin: var(--s-5) 0 var(--s-3); }
.prose ul { margin: var(--s-4) 0; padding-left: var(--s-6); }
.prose ul li {
  list-style: none;
  margin-bottom: var(--s-2);
  position: relative;
  padding-left: var(--s-5);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1c3.3 0 6 2.2 6 5s-2 4.2-4.5 4.5c-2 .2-3.5-.8-3.5-2.5s1.2-2.8 2.8-2.8c1 0 1.7.6 1.7 1.3' fill='none' stroke='%23CB181A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prose a { border-bottom: 1px solid currentColor; }
.prose a:hover { border-bottom-color: transparent; }
.prose blockquote {
  position: relative;
  border-left: none;
  background: var(--c-paper-warm);
  padding: var(--s-8) var(--s-7) var(--s-6);
  margin: var(--s-8) calc(-1 * var(--padding)) var(--s-8);
  font-family: var(--ff-body);
  font-style: italic;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--c-indigo);
  text-align: center;
  max-width: none;
}
.prose blockquote::before {
  content: '„';
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-style: normal;
  font-size: 4rem;
  line-height: 1;
  color: var(--c-red);
  margin-bottom: var(--s-3);
}
.prose blockquote p { font-size: inherit; margin-bottom: var(--s-3); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite,
.prose blockquote strong:last-child {
  display: block;
  font-style: normal;
  font-weight: 300;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-top: var(--s-4);
}

/* Standalone quote section (used on homepage) */
.quote-section {
  padding: var(--s-10) var(--padding);
  background: var(--c-paper-warm);
  text-align: center;
}
.quote-section-inner {
  max-width: 50rem;
  margin: 0 auto;
  position: relative;
}
.quote-section-inner::before {
  content: '„';
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--c-red);
  margin-bottom: var(--s-4);
}
.quote-text {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.5;
  color: var(--c-indigo);
  margin-bottom: var(--s-5);
}
.quote-author {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.quote-section--indigo {
  background: var(--c-indigo);
}
.quote-section--indigo .quote-section-inner::before { color: var(--c-red-soft); }
.quote-section--indigo .quote-text { color: var(--c-paper); }
.quote-section--indigo .quote-author { color: rgba(255,255,255,0.6); }

/* Image variant: parallax photo behind a heavy indigo wash (~75 %).
   Wash guarantees legibility; image adds atmosphere without stealing
   focus from the quote itself. */
.quote-section--image {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* keep the indigo wash above the img but below content */
}
.quote-section--image .quote-section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 140%; /* extra headroom for a more pronounced parallax travel */
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}
.quote-section--image::before {
  content: '';
  position: absolute;
  inset: 0;
  /* ~40 % indigo wash — image stays clearly visible but gets a
     palette-matching tint. Text legibility still reinforced by
     the text-shadow on .quote-text below. */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--overlay-color, var(--c-indigo)) 45%, transparent) 0%,
    color-mix(in srgb, var(--overlay-color, var(--c-indigo)) 40%, transparent) 50%,
    color-mix(in srgb, var(--overlay-color, var(--c-indigo)) 45%, transparent) 100%);
  z-index: -1;
}

/* With the light wash, add a soft shadow behind the quote text so white
   italic stays readable over bright or textured image regions. */
.quote-section--image .quote-text,
.quote-section--image .quote-author {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
/* Background crop positions */
.quote-section--bg-top    .quote-section-bg { object-position: center top; }
.quote-section--bg-center .quote-section-bg { object-position: center center; }
.quote-section--bg-bottom .quote-section-bg { object-position: center bottom; }

@media (max-width: 960px) {
  /* Disable parallax overflow on mobile: just lock images to their boxes. */
  .quote-section--image .quote-section-bg { height: 100%; }
  .page-intro--with-image .page-intro-bg  { height: 100%; will-change: auto; }
}

/* === HOME — INTRO ================================================ */
.home-intro {
  padding: var(--s-10) var(--padding);
  background: var(--c-paper);
}
.home-intro-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: start;
}
.home-intro-text { max-width: var(--max-text); }
.home-intro-text p { font-size: var(--fs-lg); line-height: 1.7; }
.home-intro-text ul { margin-top: var(--s-4); padding-left: 0; }
.home-intro-text ul li {
  list-style: none;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-base);
  position: relative;
  padding-left: var(--s-5);
}
.home-intro-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(var(--s-3) + 0.35em);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1c3.3 0 6 2.2 6 5s-2 4.2-4.5 4.5c-2 .2-3.5-.8-3.5-2.5s1.2-2.8 2.8-2.8c1 0 1.7.6 1.7 1.3' fill='none' stroke='%23CB181A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* === FAECHER CHIPS ============================================== */
.faecher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--s-2);
}
.fach {
  padding: var(--s-4) var(--s-3);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-indigo);
  text-align: center;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

/* Fächer detail grid (studium page — chip + description) */
/* Fächer — subject tiles. A tile with a description is click-to-expand;
   tiles without one stay plain (until a description is added later). */
.faecher-cards {
  --fach-card-h: 150px; /* folded tile height — fits one- and two-line names */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-3);
  align-items: start; /* an expanded tile grows without stretching its row */
}
.fach-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.fach-card-name {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.1; /* tighter for two-line names */
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-indigo);
}
/* Plain tile (no description yet). Fixed height so every folded tile matches,
   whether the subject name is one or two lines. */
.fach-card--empty {
  height: var(--fach-card-h);
  padding: var(--s-5) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Expandable tile */
.fach-card--expandable:hover { border-color: var(--c-red-soft); }
.fach-card-toggle {
  width: 100%;
  height: var(--fach-card-h); /* folded tiles all share this height */
  padding: var(--s-5) var(--s-6);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  text-align: center;
  color: var(--c-indigo);
  transition: color var(--dur) var(--ease);
}
.fach-card-toggle:hover { color: var(--c-red-mid); }
.fach-card-toggle:hover .fach-card-name { color: currentColor; }
.fach-card-icon {
  flex-shrink: 0;
  color: var(--c-red);
  opacity: 0.55;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.fach-card-toggle[aria-expanded="true"] .fach-card-icon {
  transform: rotate(180deg);
  opacity: 1;
}
/* Collapsed by default; the toggle's aria-expanded animates it open by
   growing the grid row from 0fr to 1fr (smoothly transitions to auto height).
   The body (incl. its padding + top border) is clipped to 0 when collapsed. */
.fach-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.fach-card-toggle[aria-expanded="true"] + .fach-desc {
  grid-template-rows: 1fr;
}
/* The clip wrapper is the grid item that shrinks to 0; all visible spacing
   and the separator border live on the inner body so nothing lingers when
   collapsed. */
.fach-desc-clip {
  overflow: hidden;
  min-height: 0;
}
.fach-desc-body {
  margin: 0 var(--s-6);
  padding: var(--s-4) 0 var(--s-6);
  border-top: 1px solid var(--c-line);
  text-align: center;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  line-height: 1.6;
}

/* Grundlagen section — list items get the same bordered style as the
   home-page "In unserer Ausbildung lernst du?" list. */
/* No margins or borders on the ul itself — all lines come from li. */
#grundlagen .prose ul {
  border: none;
  padding-left: 0;
  margin: 0;
}
/* Last list in the section: add breathing room below. */
#grundlagen .prose ul:last-of-type {
  margin-bottom: var(--s-7);
}
/* Every item has a line above it. */
#grundlagen .prose ul li {
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-top: 1px solid var(--c-line);
  margin-bottom: 0;
}
/* Only the very last item of the very last list gets a closing line below.
   Intermediate group last-items must NOT have border-bottom, because the
   paragraph-break gap already visually separates the groups — adding a
   bottom border there would create a double-line at every group boundary. */
#grundlagen .prose ul:last-of-type li:last-child {
  border-bottom: 1px solid var(--c-line);
}
#grundlagen .prose ul li::before {
  top: calc(var(--s-2) + 0.35em);
}
/* Override the global p:empty{display:none} rule inside #grundlagen:
   keep the empty paragraph visible as a spacing element so the
   paragraph break the editor typed is reflected visually. */
#grundlagen .prose p:empty {
  display: block;
  height: 0;
  margin: var(--s-8) 0 0;
  padding: 0;
}
/* The continuation ul gets a small top margin so the gap is clear. */
#grundlagen .prose p:empty + ul {
  margin-top: 0;
}

/* Aufbau section — bold labels as red sub-headings on own line */
#aufbau .prose strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--c-red);
  margin-top: var(--s-7);
  margin-bottom: var(--s-2);
}
#aufbau .prose p:first-child strong { margin-top: 0; }

/* Support section reuses the Aufbau "bold-label → red sub-heading"
   pattern so country labels (Schweiz / Frankreich / Deutschland) read
   as a clear, scannable structure on a white background. */
#support .prose strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--c-red);
  margin-top: var(--s-7);
  margin-bottom: var(--s-2);
}
#support .prose p:first-child strong { margin-top: 0; }

/* PDF download link in support/prose sections */
.prose a[href$=".pdf"],
.prose a[href*="/file/"] {
  display: inline-block;
  border-bottom: none;
  padding: 0.35em 0.8em 0.35em 2em;
  background-color: color-mix(in srgb, var(--c-indigo) 7%, transparent);
  border-radius: 3px;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  position: relative;
  transition: background-color 0.15s ease;
}
.prose a[href$=".pdf"]::before,
.prose a[href*="/file/"]::before {
  content: '';
  position: absolute;
  left: 0.65em;
  top: 50%;
  transform: translateY(-50%);
  width: 0.85em;
  height: 1em;
  /* Masked (not background-image) so the icon follows --c-indigo — CSS
     variables don't resolve inside url(), a plain data-URI would stay
     hardcoded when the Hauptfarbe is changed in the Panel. */
  background-color: var(--c-indigo);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.prose a[href$=".pdf"]:hover,
.prose a[href*="/file/"]:hover {
  background-color: color-mix(in srgb, var(--c-indigo) 14%, transparent);
  border-bottom: none;
}

/* === EINDRÜCKE GRID (home image grid) =========================== */
/* Full-width lead image for the Eindrücke section — same container width and
   framing as the grid thumbs below it (not edge-to-edge like figure-bleed),
   in a slim landscape banner format. */
.eindruecke-hero {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  margin-bottom: var(--s-3);
  overflow: hidden;
  background: var(--c-paper-warm);
}
.eindruecke-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.eindruecke-hero:hover img { transform: scale(1.04); }
.eindruecke-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.eindruecke-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.eindruecke-grid a {
  display: block;
  overflow: hidden;
  background: var(--c-paper-warm);
}
.eindruecke-grid a:hover img { transform: scale(1.04); }

/* === CARDS (events, team, buehne) =============================== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-7);
}
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-paper-warm);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: var(--s-6); flex: 1; display: flex; flex-direction: column; gap: var(--s-3); }
.card-meta { font-size: var(--fs-sm); color: var(--c-red); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-2);
  /* Titles like «Le Théâtre de l'Homme Inconnu» must not auto-hyphenate
     into "L'Hom-me"; wrap only at spaces. */
  hyphens: manual;
  -webkit-hyphens: manual;
}
.card-description { font-size: var(--fs-base); color: var(--c-ink-muted); line-height: 1.6; }
.card-location {
  display: flex;
  align-items: flex-start;
  gap: 0.35em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-indigo);
  background: rgba(30, 28, 69, 0.06);
  padding: 0.35em 0.65em;
  border-radius: 6px;
  width: fit-content;
  line-height: 1.4;
}
.card-location .icon-map-pin {
  flex-shrink: 0;
  margin-top: 0.1em;
  stroke: var(--c-red);
}
.card-link {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-size: var(--fs-sm);
  color: var(--c-red);
  margin-top: auto;
  padding-top: var(--s-3);
}

/* === AKTUELLES (home) — grid of tall portrait cards, no box chrome
   Keep the multi-column grid layout (portrait poster image on top,
   text below) but strip border, background, shadow and card hover.
   Only the .card-link text changes colour on hover.
   Top+bottom hairlines frame the grid the same way as the event rows. */
#aktuelles .grid-cards {
  border: none;
}
#aktuelles .card {
  border: 1px solid var(--c-line);
  box-shadow: none;
}
#aktuelles .card:hover {
  box-shadow: none;
  transform: none;
}
#aktuelles .card-image {
  aspect-ratio: 2 / 3; /* portrait poster format */
}
#aktuelles .card:hover .card-image img {
  transform: none;
}

/* === AKTUELLES (home) — row variant (unused, kept for reference) ==
   Body left, optional poster right. No box/hover on the article;
   only the .event-link text gets a hover colour. Top+bottom rules
   frame the list the same way as the «Nächste Veranstaltung» row. */
.aktuell-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.aktuell-row.no-poster { grid-template-columns: 1fr; }
.aktuell-row .event-poster { max-width: 140px; align-self: flex-start; }
.aktuell-row .event-poster img { width: 100%; height: auto; display: block; }
.aktuell-row:last-child { border-bottom: none; }
.aktuell-row .event-body h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.aktuell-date {
  font-size: var(--fs-sm);
  color: var(--c-red);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
/* Top+bottom rules for the homepage list wrapper */
#aktuelles .event-list { border-top: 1px solid var(--c-line); }
#aktuelles .aktuell-row:last-child { border-bottom: 1px solid var(--c-line); }
@media (max-width: 720px) {
  .aktuell-row,
  .aktuell-row.no-poster { grid-template-columns: 1fr; }
  .aktuell-row .event-poster { max-width: 200px; }
}

/* === NEXT EVENT (home) — standalone event row with top+bottom rule */
#naechste .event-list {
  border-top: 1px solid var(--c-line);
}
#naechste .event-row:last-child {
  border-bottom: 1px solid var(--c-line);
}
.event-date-block {
  text-align: center;
  padding: var(--s-4) var(--s-5);
  background: var(--c-indigo);
  color: var(--c-paper);
  min-width: 100px;
  border-radius: var(--radius-box);
}
.event-date-block .day {
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
}
.event-date-block .month {
  display: block;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-top: var(--s-1);
}
.event-date-block .year { display: block; font-size: 0.72rem; opacity: 0.7; margin-top: var(--s-1); }
.event-body h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.event-body .event-meta { font-size: var(--fs-base); color: var(--c-ink-muted); display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.event-location-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 600;
  color: var(--c-indigo);
  background: rgba(30, 28, 69, 0.06);
  padding: 0.2em 0.5em;
  border-radius: var(--radius-box);
  font-size: var(--fs-sm);
}
.event-location-inline .icon-map-pin {
  flex-shrink: 0;
  stroke: var(--c-red);
}
.event-poster { max-width: 140px; }
.event-poster img { box-shadow: var(--shadow-1); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-paper);
  background: var(--c-red);
  border-radius: var(--radius-box);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  border: 2px solid var(--c-red);
}
.btn-primary:hover { background: var(--c-red-mid); border-color: var(--c-red-mid); color: var(--c-paper); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-red);
  background: transparent;
  border: 2px solid var(--c-red);
  border-radius: var(--radius-box);
  transition: all var(--dur) var(--ease);
}
.btn-outline:hover { background: var(--c-red); color: var(--c-paper); }
.btn-on-dark {
  color: var(--c-paper);
  border-color: var(--c-paper);
}
.btn-on-dark:hover { background: var(--c-paper); color: var(--c-indigo); border-color: var(--c-paper); }

/* Primary button on a dark/indigo background — invert colours so it
   reads as a paper-coloured solid button against the indigo wash. */
.btn-primary.btn-on-light {
  background: var(--c-paper);
  color: var(--c-indigo);
  border-color: var(--c-paper);
}
.btn-primary.btn-on-light:hover {
  background: var(--c-paper-warm);
  color: var(--c-indigo);
  border-color: var(--c-paper-warm);
}

/* === CTA BAND (end of pages) ==================================== */
.cta-band {
  padding: var(--s-10) var(--padding);
  background: var(--c-indigo);
  color: var(--c-paper);
  text-align: center;
}
.cta-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.cta-band h2 { color: var(--c-paper); font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 40rem; margin: 0 auto var(--s-6); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
}

/* === TEAM ======================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  /* Wider column gap, plus an even larger row gap so the cards
     breathe vertically and the eye groups one team member at a time. */
  column-gap: var(--s-8);
  row-gap: var(--s-10);
}
.team-card { text-align: center; }
.team-photo {
  width: 220px;
  height: 220px;
  margin: 0 auto var(--s-4);
  overflow: hidden;
  border-radius: 50%;
  background: var(--c-paper-warm);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Two-line name layout: first names on line 1 (light/small), last name
   on line 2 (heavy/larger). Locking the H3 to a fixed two-line block
   guarantees that the role + bio below align across all team cards
   regardless of how many first names a person has. */
.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  line-height: 1.05;
  min-height: calc(1.05em * 2);
  justify-content: flex-end;
}
.team-card h3 .firstname,
.team-card h3 .lastname {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.05em;
  letter-spacing: var(--tracking-display);
  color: var(--c-indigo);
}
.team-role {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--c-red);
  font-style: italic;
  margin-bottom: var(--s-3);
  text-transform: none;
  letter-spacing: 0;
  /* Reserve space for up to 3 lines of role text so the bio paragraph
     starts at the same y-position across all team-cards regardless of
     whether the role is 1, 2 or 3 lines long. */
  min-height: calc(1.5em * 3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
}
.team-bio { font-size: var(--fs-base); color: var(--c-ink-muted); line-height: 1.6; text-align: left; }

/* === TEAM — meta & CV toggle ==================================== */
.team-meta {
  margin-bottom: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.team-born {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  font-style: italic;
  margin: 0;
}
.team-profession {
  font-size: var(--fs-sm);
  color: var(--c-indigo);
  font-weight: 600;
  margin: 0;
}
.team-cv-section {
  margin-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-2);
}
.team-cv-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  background: none;
  border: none;
  padding: var(--s-2) 0;
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-red);
  transition: color var(--dur) var(--ease);
}
.team-cv-toggle:hover { color: var(--c-red-mid); }
.team-cv-icon {
  transition: transform var(--dur) var(--ease);
  display: inline-block;
  flex-shrink: 0;
}
.team-cv-toggle[aria-expanded="true"] .team-cv-icon {
  transform: rotate(180deg);
}
.team-cv[hidden] { display: none; }
.team-cv {
  margin-top: var(--s-3);
  animation: event-details-in var(--dur) var(--ease);
}
.team-cv-body {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  line-height: 1.6;
  text-align: left;
}
.team-cv-body p { margin-bottom: var(--s-2); }
.team-cv-body p:last-child { margin-bottom: 0; }

/* === EVENTS (kalender list) =====================================
   3-column row: date card | text body | poster image at far right.
   Date card and poster keep their natural compact widths; the body
   takes all remaining space so longer titles/synopses can breathe.
   On <=720px the row collapses to a single stacked column. */
.event-list { display: flex; flex-direction: column; gap: 0; }
.event-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.event-row.no-poster { grid-template-columns: auto 1fr; }
.event-row .event-poster {
  width: 180px;
  max-width: 180px;
  align-self: flex-start;
}
.event-row .event-poster img { width: 100%; height: auto; display: block; }
@media (max-width: 720px) {
  .event-row,
  .event-row.no-poster { grid-template-columns: 1fr; }
  .event-row .event-poster { max-width: 220px; }
}
.event-row:last-child { border-bottom: none; }
.event-row .event-body h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.event-row .event-time { color: var(--c-red); font-weight: 600; margin-bottom: var(--s-1); font-size: var(--fs-base); }
.event-row .event-location,
.aktuell-row .event-location {
  color: var(--c-indigo);
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.35em;
  background: rgba(30, 28, 69, 0.06);
  padding: 0.35em 0.65em;
  border-radius: var(--radius-box);
  width: fit-content;
  line-height: 1.4;
}
.event-row .event-location .icon-map-pin,
.aktuell-row .event-location .icon-map-pin {
  flex-shrink: 0;
  margin-top: 0.1em;
  stroke: var(--c-red);
}
.event-row .event-description,
.aktuell-row .event-description { font-size: var(--fs-base); color: var(--c-ink-muted); line-height: 1.6; }
.event-row .event-poster { max-width: 140px; }
.event-row .event-synopsis {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  line-height: 1.5;
  margin-top: var(--s-1);
}
.event-row .event-cast {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  font-style: italic;
  line-height: 1.5;
  margin-top: var(--s-1);
}
.event-row .event-link,
.aktuell-row .event-link {
  display: inline-block;
  margin-top: var(--s-2);
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-size: var(--fs-sm);
  color: var(--c-red);
}
.event-row .event-link:hover,
.aktuell-row .event-link:hover { color: var(--c-red-mid); }
.event-row .event-reservation {
  font-size: var(--fs-sm);
  color: var(--c-red);
  font-style: italic;
  font-weight: 600;
  margin-top: var(--s-2);
}
.event-row .event-pricing {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  margin-top: var(--s-1);
}
.event-row .event-organizer {
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--c-line);
}
.event-row .event-organizer-label {
  font-weight: 600;
  color: var(--c-indigo);
}
/* Toggle button */
.event-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-3);
  padding: var(--s-1) var(--s-3);
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-red);
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.event-toggle:hover {
  background: var(--c-paper-warm);
  border-color: var(--c-red);
}
.event-toggle[aria-expanded="true"] .event-toggle-icon {
  transform: rotate(180deg);
}
.event-toggle-icon {
  transition: transform var(--dur) var(--ease);
  display: inline-block;
}
/* Expandable details */
.event-details {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  animation: event-details-in var(--dur) var(--ease);
}
.event-details[hidden] { display: none; }
@keyframes event-details-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.event-ics {
  display: block;
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
  width: fit-content;
  border-bottom: 1px dotted currentColor;
}
.event-ics:hover { color: var(--c-red); }
.no-events { color: var(--c-ink-muted); font-style: italic; padding: var(--s-6) 0; }

/* === NEWSLETTER ================================================== */
.newsletter {
  padding: var(--s-6);
  background: var(--c-paper-warm);
  border-left: 3px solid var(--c-red);
  border-radius: var(--radius-box);
  margin-bottom: var(--s-8);
}
.newsletter p { font-size: var(--fs-base); color: var(--c-ink-muted); margin-bottom: var(--s-4); }
.newsletter-form { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--c-ink);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.newsletter-form input[type="email"]:focus,
.newsletter-form input[type="text"]:focus { border-color: var(--c-red); }
.newsletter-form button {
  padding: var(--s-3) var(--s-5);
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-paper);
  background: var(--c-red);
  border-radius: var(--radius-box);
  transition: background var(--dur) var(--ease);
}
.newsletter-form button:hover { background: var(--c-red-mid); }
.newsletter-consent { width: 100%; display: flex; gap: var(--s-2); align-items: flex-start; margin-top: var(--s-2); }
.newsletter-consent input { accent-color: var(--c-red); margin-top: 0.25rem; }
.newsletter-consent label { font-size: var(--fs-xs); color: var(--c-ink-muted); line-height: 1.4; }
.newsletter-message { width: 100%; margin-top: var(--s-3); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); display: none; }
.newsletter-message.success { display: block; background: #e8f5e9; color: #2e7d32; }
.newsletter-message.error { display: block; background: #fbe9e7; color: #c62828; }

/* === KONTAKT ===================================================== */
.kontakt-card {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}
.kontakt-card .eyebrow { justify-self: center; }
.kontakt-block { margin-bottom: var(--s-8); }
.kontakt-block h2 {
  font-size: var(--fs-h3);
  color: var(--c-red);
  margin-bottom: var(--s-3);
}
.kontakt-name { font-family: var(--ff-display); font-weight: 900; font-size: 1.3rem; color: var(--c-indigo); text-transform: uppercase; letter-spacing: var(--tracking-display); margin-bottom: var(--s-3); }
.kontakt-card p { margin-bottom: var(--s-1); }

/* === SUPPORT PRE-FOOTER CTA BAND ================================= */
/* Single slim line — just a red text-link on the indigo footer. */
.support-cta-band {
  padding: 0.45rem var(--padding);
  background: var(--c-indigo);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.support-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.support-cta-band p,
.support-cta-band .eyebrow { display: none; }
.support-cta-band a {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-red-soft);
  border-bottom: 1px solid rgba(203, 24, 26, 0.35);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.support-cta-band a:hover {
  color: var(--c-red-mid);
  border-bottom-color: var(--c-red-mid);
}

/* === FOOTER ====================================================== */
.site-footer {
  background: var(--c-indigo);
  color: rgba(255,255,255,0.75);
  padding: var(--s-8) var(--padding) var(--s-6);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-6);
  align-items: center;
}
.footer-col { font-size: var(--fs-sm); }
.footer-col.center { text-align: center; }
.footer-col.right { text-align: right; }
.footer-social {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
}
.footer-social a {
  color: rgba(255,255,255,0.6);
  transition: color var(--dur) var(--ease);
}
.footer-social a:hover { color: var(--c-red-soft); }
.footer-legal a {
  color: rgba(255,255,255,0.6);
  transition: color var(--dur) var(--ease);
}
.footer-legal a:hover { color: var(--c-paper); }

/* === LIGHTBOX ==================================================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--c-indigo) 94%, transparent);
  z-index: 1000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: var(--c-paper);
  font-size: 2rem;
  line-height: 1;
  padding: var(--s-3);
  opacity: 0.7;
  transition: opacity var(--dur) var(--ease);
}
.lightbox-close { top: var(--s-4); right: var(--s-5); font-size: 2.4rem; }
.lightbox-prev { left: var(--s-3); top: 50%; transform: translateY(-50%); font-size: 2.6rem; }
.lightbox-next { right: var(--s-3); top: 50%; transform: translateY(-50%); font-size: 2.6rem; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev.hidden, .lightbox-next.hidden { display: none; }

/* === GALERIE ===================================================== */
.galerie-section { margin-bottom: var(--s-9); }
.galerie-section h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-line);
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-3);
}
.galerie-grid a { display: block; overflow: hidden; background: var(--c-paper-warm); }
.galerie-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.galerie-grid a:hover img { transform: scale(1.04); }

/* === FIGURE BLEED — full-width editorial image break ============
   Single reusable pattern for "emotional breather" images between
   text sections. Full browser width, indigo hairlines, optional
   caption pill, subtle vertical parallax (JS-driven).
   ================================================================ */
.figure-bleed {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vw, 560px);
  overflow: hidden;
  background: var(--c-paper-warm);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.figure-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%; /* 15% extra for parallax travel */
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  will-change: transform;
  cursor: zoom-in;
}
/* Indigo colour tint on every inter-section image for palette
   cohesion (the quote-section variant uses a heavier dark wash
   since it needs to protect white text; here we just colourise).
   `mix-blend-mode: color` takes the image's luminance and the
   overlay's hue+saturation → image stays as bright as before but
   reads in the site palette. Opacity tunes tint strength. */
.figure-bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-indigo);
  mix-blend-mode: color;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.figure-bleed figcaption {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  z-index: 3;
  max-width: 30rem;
  padding: var(--s-2) var(--s-4);
  background: color-mix(in srgb, var(--c-indigo) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--c-paper);
  font-family: var(--ff-body);
  font-style: italic;
  font-size: var(--fs-sm);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
/* Narrow slice variant — emotional breather without a full band.
   Used when a section should only get a thin horizontal image strip. */
.figure-bleed--narrow {
  height: clamp(160px, 18vw, 240px);
}
.figure-bleed--narrow img {
  height: 100%; /* disable parallax travel — strip is too short to notice */
}
.figure-bleed--narrow figcaption {
  bottom: var(--s-3);
  padding: var(--s-1) var(--s-3);
  font-size: var(--fs-xs);
}

@media (max-width: 960px) {
  .figure-bleed { height: clamp(240px, 60vw, 420px); }
  .figure-bleed img { height: 100%; /* no parallax on touch */ }
  .figure-bleed figcaption {
    left: var(--s-4);
    right: var(--s-4);
    bottom: var(--s-4);
    font-size: var(--fs-xs);
  }
  .figure-bleed--narrow { height: clamp(120px, 22vw, 180px); }
}

/* === RESPONSIVE ================================================== */
@media (max-width: 960px) {
  :root {
    --header-h-hero:    80px;
    --header-h-compact: 64px; /* a bit taller so the logo breathes */
    --subnav-h:         42px;
    --padding:          1.25rem;
    /* Larger hero floor on tablets — fills more of the viewport width */
    --fs-hero: clamp(2.6rem, 9vw, 5rem);
    --fs-h1:   clamp(1.9rem, 5vw, 4rem);
    --fs-h2:   clamp(1.5rem, 3vw, 2.4rem);
  }

  /* ── HEADER: brand left, nav-meta right (2-col, no middle gap) ── */
  .header-inner {
    grid-template-columns: auto 1fr;
    gap: var(--s-3);
    padding-block: var(--s-2); /* extra vertical air */
  }
  /* Kill the desktop optical compensation on mobile */
  .brand { margin-left: 0; }
  body.is-scrolled .brand,
  body.page-no-hero .brand { margin-left: 0; }

  /* nav-meta always lands in the 2nd column, at the far right */
  .nav-meta { grid-column: 2; justify-self: end; }

  /* nav-primary hides behind the fold — hamburger opens it */
  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--c-paper);
  }

  /* Logo sizing in compact/hero state */
  .brand .logo-full.logo-negativ { height: 60px; }
  body.is-scrolled .brand .logo-mark.logo-positiv,
  body.page-no-hero .brand .logo-mark.logo-positiv { height: 44px; margin-top: -6px; }

  /* ── MOBILE NAV DRAWER — indigo background ── */
  .nav-primary {
    position: fixed;
    top: var(--header-h-compact);
    left: 0; right: 0;
    background: var(--c-indigo); /* indigo drawer as requested */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s-3) var(--padding);
    box-shadow: var(--shadow-2);
    gap: 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    z-index: 99;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  body.menu-open .nav-primary {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* Lock body scroll while menu is open */
  body.menu-open { overflow: hidden; }

  .nav-primary a {
    width: 100%;
    padding: var(--s-4) 0; /* 48 px finger-friendly row */
    color: var(--c-paper); /* paper text on indigo bg */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.15rem;
  }
  .nav-primary a::after { display: none; }
  /* Override compact-state colour back to paper on the indigo drawer */
  body.is-scrolled .nav-primary a,
  body.page-no-hero .nav-primary a { color: var(--c-paper); }
  .nav-primary a:hover,
  .nav-primary a[aria-current="page"] { color: var(--c-red-soft); }

  /* Lang-switch — slightly larger for touch */
  .lang-link {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  /* ── SUB-NAV: scroll left-anchored with right edge fade ── */
  .nav-sub-inner {
    justify-content: flex-start;
    gap: var(--s-4);
    /* Right edge fade to hint there's more content */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .nav-sub a { font-size: 0.88rem; }

  /* ── HERO ── */
  .hero-plakativ {
    /* 100svh = small viewport height (excludes browser chrome) */
    min-height: 100svh;
    min-height: 100vh; /* fallback */
  }
  .hero-sub { max-width: 100%; }
  .hero-display,
  .hero-sub {
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* ── PAGE-INTRO ── */
  .page-intro {
    /* Taller band on tablet/mobile so the bottom-anchored H1 sits lower */
    min-height: clamp(220px, 32vw, 300px);
  }
  .page-intro h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: 0.05em;
  }
  /* Drop fixed min-height on the inner wrapper — the outer flex-end handles positioning */
  .page-intro-inner { min-height: 0; }

  /* ── SECTION PADDING: reduce vertical air on mobile ── */
  .section,
  .section--text { padding: var(--s-7) var(--padding); }

  /* ── PROSE BLOCKQUOTE: no negative side margins on mobile ── */
  .prose blockquote { margin-left: 0; margin-right: 0; }

  /* ── GRID CARDS: lower column floor so cards don't overflow ── */
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--s-5);
  }

  /* ── CALENDAR: date card beside text (horizontal strip) ── */
  /* Override the existing 720px rule that fully stacks */
  .event-row,
  .event-row.no-poster {
    grid-template-columns: auto 1fr; /* date | body side by side */
    gap: var(--s-4);
  }
  /* Poster wraps below both columns, centered */
  .event-row .event-poster {
    grid-column: 1 / -1;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Compact horizontal date block */
  .event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: var(--s-3) var(--s-3);
    text-align: center;
    justify-self: flex-start;
  }
  .event-date-block .day { font-size: 1.8rem; }
  .event-date-block .month { font-size: 0.75rem; }
  .event-date-block .year { font-size: 0.68rem; }

  /* ── HOME INTRO ── */
  .home-intro-inner { grid-template-columns: 1fr; gap: var(--s-7); }

  /* ── EINDRÜCKE GRID ── */
  .eindruecke-grid { grid-template-columns: 1fr 1fr; }
  .eindruecke-hero { aspect-ratio: 3 / 2; }

  /* ── FOOTER ── */
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: var(--s-4); }
  .footer-col.center, .footer-col.right { text-align: center; }

  /* ── NEWSLETTER FORM ── */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"],
  .newsletter-form input[type="text"] {
    min-width: 0; /* override the 220px min that forced overflow */
    width: 100%;
  }

  /* ── LIGHTBOX: bigger tap targets ── */
  .lightbox-close { padding: var(--s-4); font-size: 2.2rem; }
  .lightbox-prev  { padding: var(--s-4); font-size: 2.4rem; }
  .lightbox-next  { padding: var(--s-4); font-size: 2.4rem; }
}

/* ── SUB-NAV DROPDOWN (≤ 520px) ─────────────────────────────────
   Replace the horizontal band with a compact toggle button that
   shows/hides the section links as a dropdown panel.
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  /* Shrink the subnav bar to just hold the toggle button */
  .nav-sub { height: auto; overflow: visible; }
  body.is-scrolled .nav-sub,
  body.page-no-hero .nav-sub { overflow: visible; }

  /* The toggle button — only visible at this breakpoint */
  .nav-sub-toggle {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    width: 100%;
    height: 42px;
    padding: 0 var(--padding);
    font-family: var(--ff-display);
    font-weight: 300;
    font-size: 0.88rem;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--c-ink-muted);
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-sub-toggle .nav-sub-current {
    color: var(--c-indigo);
    font-weight: 600;
  }
  .nav-sub-toggle-icon {
    margin-left: auto;
    transition: transform var(--dur) var(--ease);
    display: inline-block;
    flex-shrink: 0;
  }
  .nav-sub-toggle[aria-expanded="true"] .nav-sub-toggle-icon {
    transform: rotate(180deg);
  }

  /* The inner link list — collapsed by default, shown when open */
  .nav-sub-inner {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 0 var(--padding) var(--s-3);
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: visible;
  }
  .nav-sub.is-open .nav-sub-inner {
    display: flex;
  }
  .nav-sub a {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--c-line);
    width: 100%;
    font-size: 0.9rem;
    white-space: normal;
  }
  .nav-sub a:last-child { border-bottom: none; }

  /* ── MOBILE SUBNAV on image pages: match desktop frosted-glass ──
     The toggle bar already inherits white text from the desktop
     body:has(.page-intro--with-image) rules. Only the DROPDOWN PANEL
     (.nav-sub-inner) needs fixing — its base rule sets a white bg
     which makes the inherited white link text invisible.
     Solution: give the panel the same indigo frosted-glass as the
     desktop bar, but fully opaque so white text is reliably legible
     regardless of what part of the photo shows beneath it.         */
  body:has(.page-intro--with-image) .nav-sub-inner {
    background: color-mix(in srgb, var(--c-indigo) 92%, transparent);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
  }
  /* Divider lines between items: white hairline on the dark panel */
  body:has(.page-intro--with-image) .nav-sub a {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
  body:has(.page-intro--with-image) .nav-sub a:last-child {
    border-bottom-color: transparent;
  }

  /* ── SMALL MOBILE type & layout ── */
  :root {
    /* On very small screens the hero should dominate — fill the width */
  --fs-hero: clamp(2.4rem, 13vw, 4.4rem);
    --fs-h1:   clamp(1.5rem, 7vw, 3rem);
    --fs-h2:   clamp(1.3rem, 5vw, 2.4rem);
    --padding: 1rem;
  }

  .eindruecke-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { width: 150px; height: 150px; }
  /* Single column — two-col chips overflow at 320–375 px */
  .faecher-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .fach {
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: var(--s-3);
    font-size: 0.95rem;
    min-height: 52px;
  }
  /* Hero claim slightly smaller to give contrast under the big headline */
  .hero-claim { font-size: 0.9rem; opacity: 0.85; }
  .faecher-cards { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-content { padding: var(--s-7) var(--padding); }
  .hero-sub { max-width: 100%; }

  .application-info-block {
    padding: var(--s-5) var(--s-5);
  }
  .iban-value { word-break: break-all; }
}

/* ── Above 520px: hide the dropdown toggle (subnav is always visible) ── */
@media (min-width: 521px) {
  .nav-sub-toggle { display: none; }
}

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

/* ── OSM + FORM small breakpoints (unchanged) ── */
@media (max-width: 480px) {
  .osm-map iframe { height: 240px; }
}

/* ─────────────────────────────────────────────────────────────────
   CONTACT / APPLICATION FORMS + OSM MAP
   ───────────────────────────────────────────────────────────────── */

.section-inner--narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-intro {
  color: var(--c-ink-muted);
  font-size: var(--fs-base);
  margin-top: var(--s-3);
}

/* OSM map */
.osm-map {
  width: 100%;
  background: var(--c-paper-warm);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  overflow: hidden;
}
/* Frame wrapper — holds the iframe + click-to-activate shield */
.osm-map-frame {
  position: relative;
  width: 100%;
}
.osm-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
/* Shield: sits on top of the iframe, intercepts pointer events so the
   page continues scrolling normally. A click activates the map;
   mouseleave deactivates it again. */
.osm-map-shield {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur) var(--ease);
  /* Slightly tinted to hint the map is "locked" */
  background: color-mix(in srgb, var(--c-indigo) 4%, transparent);
}
.osm-map.is-active .osm-map-shield {
  opacity: 0;
  pointer-events: none;
}
.osm-map-shield-hint {
  background: color-mix(in srgb, var(--c-indigo) 80%, transparent);
  color: var(--c-paper);
  padding: 0.45em 1.1em;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border-radius: var(--radius-box);
  pointer-events: none;
  /* Only show on hover/touch — fade in gently */
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.osm-map-shield:hover .osm-map-shield-hint {
  opacity: 1;
}
.osm-map-link {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  text-align: right;
}
.osm-map-link a { color: var(--c-red); }
.osm-map-link a:hover { color: var(--c-red-mid); }

/* Generic form layout */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.form-field label {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-indigo);
}
.form-field .req { color: var(--c-red); }

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 0;
  padding: var(--s-3) var(--s-4);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(203, 24, 26, 0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* File input */
.form-files-label {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.form-files-help {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: var(--fs-xs);
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-ink-muted);
}
.form-file-input {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  background: transparent;
  border: 1px dashed var(--c-line);
  padding: var(--s-3);
  cursor: pointer;
}
.form-file-input::file-selector-button {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-paper);
  background: var(--c-indigo);
  border: 0;
  padding: var(--s-2) var(--s-4);
  margin-right: var(--s-3);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.form-file-input::file-selector-button:hover { background: var(--c-red); }

/* Honeypot – visually + a11y hidden, still present for bots */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Actions */
.form-actions {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  flex-wrap: wrap;
}
.form-status {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
}
.form-status.is-error { color: var(--c-red); }
.form-status.is-ok    { color: var(--c-indigo); font-weight: 600; }

/* Status banner (after non-JS redirect) */
.form-message {
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0 0;
  font-size: var(--fs-base);
  border-left: 3px solid var(--c-red);
  background: var(--c-paper-warm);
  border-radius: var(--radius-box);
}
.form-message--ok    { border-left-color: var(--c-indigo); }
.form-message--error { border-left-color: var(--c-red); color: var(--c-red); }

/* Application "extra info" — Vorsprechen / Gebühr / Adresse blocks */
.application-info-grid {
  margin-top: var(--s-8);
  padding-top: var(--s-7);
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.application-info-block {
  background: var(--c-paper-warm);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-box);
  padding: var(--s-6) var(--s-7);
  display: flex;
  flex-direction: column;
}
.application-info-block--wide {
  grid-column: 1 / -1;
}
.application-info-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--c-red);
  margin: 0 0 var(--s-4);
  line-height: 1.1;
}
.application-info-body > :first-child { margin-top: 0; }
.application-info-body > :last-child  { margin-bottom: 0; }
.application-info-fee {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--c-indigo);
  margin: 0;
  line-height: 1;
}
.application-info-fee-label {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  margin: var(--s-4) 0 var(--s-2);
}
/* When the label opens a block (Bankverbindungen) it sits right under the
   title and doesn't need the extra gap it has below the fee figure. */
.application-info-title + .application-info-fee-label { margin-top: 0; }
.application-address {
  font-style: normal;
  font-family: var(--ff-body);
  line-height: 1.6;
  margin: 0;
}

/* Bank-details list — compact key/value layout */
.application-bank {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  margin: 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--c-line);
}
.application-bank dt {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-indigo);
  align-self: center;
}
.application-bank dd {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.application-bank .iban-value {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--c-indigo);
  font-weight: 600;
}
.application-bank-purpose {
  color: var(--c-ink-muted);
  font-style: italic;
  font-size: var(--fs-sm);
}

/* Country-based bank account rows (Studium → Einschreibegebühren)
   One row per country, stacked vertically. Each row is full-width so
   the inner DL has plenty of room for label + value side-by-side. */
.bank-accounts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--s-5);
}
.bank-account {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-line);
}
.bank-account:last-child {
  border-bottom: none;
}
/* Restore the normal side-by-side DL layout (label left, value right) */
.bank-account .application-bank {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  margin: 0;
  padding: 0;
  border-top: none;
}
.bank-account .application-bank dt {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-indigo);
  align-self: baseline;
  margin-top: 0;
}
.bank-account .application-bank dd {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--c-ink);
  display: block;
}
.bank-account .iban-value {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--c-indigo);
  font-weight: 600;
}
.bank-account__country {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: var(--s-4);
}

/* Tiny copy-button next to the IBAN */
.iban-copy {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-red);
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 0;
  padding: 0.25rem var(--s-3);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.iban-copy:hover {
  background: var(--c-paper);
  border-color: var(--c-red);
}
.iban-copy.is-copied {
  color: var(--c-indigo);
  border-color: var(--c-indigo);
  background: var(--c-paper);
}

@media (max-width: 720px) {
  .application-info-grid { grid-template-columns: 1fr; }
  .application-bank { grid-template-columns: 1fr; row-gap: var(--s-1); }
  .application-bank dt { margin-top: var(--s-2); }
  /* Bank-account rows: also collapse to single column on narrow screens.
     The more-specific .bank-account .application-bank rule needs its own
     mobile override, otherwise it overrides the base .application-bank rule. */
  .bank-account .application-bank {
    grid-template-columns: 1fr;
    row-gap: var(--s-1);
  }
  .bank-account .application-bank dt { margin-top: var(--s-2); }
  .bank-account .application-bank dd { word-break: break-all; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .osm-map iframe { height: 300px; }
}

/* ── UTILITY CLASSES ─────────────────────────────────────────── */
/* Keep template markup clean — no inline style="" attributes.     */

/* Narrower content column (kalender, studium) */
.section-inner--medium { max-width: 64rem; }

/* Eyebrow in muted red (hero CTA band variant) */
.eyebrow--soft { color: var(--c-red-soft) !important; }

/* Spacing helpers */
.mt-6  { margin-top:    var(--s-6); }
.mt-7  { margin-top:    var(--s-7); }
.mb-6  { margin-bottom: var(--s-6); }
.mb-7  { margin-bottom: var(--s-7); }

/* Prose with extra bottom margin (intro blocks before forms) */
.prose--space-after { margin-bottom: var(--s-7); }

/* ── Suppress empty paragraphs (Kirby KirbyText inserts a blank <p>
   between consecutive list blocks / between paragraphs and lists).
   Without this, two consecutive <ul> blocks get a full line-height
   gap from the empty paragraph, making the list look like two
   unrelated sections. ──────────────────────────────────────────── */
.prose p:empty,
.section p:empty { display: none; }
