/* ==========================================================================
   iTech e.V. — Design System
   Brand colors taken directly from the official logo:
   - Cyan  (#16A5E0)  : "iTech" wordmark, line-art
   - Indigo(#2B2A80)  : "e.V." wordmark
   ========================================================================== */

/* Self-hosted Inter (variable, latin subset) — no third-party font request */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* Brand */
  --cyan:        #16a5e0;
  --cyan-600:    #1190c6;
  --cyan-50:     #e8f6fd;
  --indigo:      #2b2a80;
  --indigo-700:  #232166;
  --indigo-900:  #181747;

  /* Neutrals */
  --ink:         #14172a;
  --body:        #4a5169;
  --muted:       #6b7390;
  --line:        #e6eaf2;
  --surface:     #ffffff;
  --bg:          #f6f9fc;
  --bg-soft:     #eef3f9;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, var(--cyan) 0%, var(--indigo) 100%);
  --grad-soft:   linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);

  /* Effects */
  --shadow-sm:   0 1px 2px rgba(20,23,42,.06), 0 1px 3px rgba(20,23,42,.04);
  --shadow-md:   0 6px 18px rgba(24,40,80,.08);
  --shadow-lg:   0 18px 40px rgba(24,40,80,.12);
  --shadow-brand:0 14px 30px rgba(22,107,200,.28);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --header-h: 78px;

  /* Z-Index-Skala (semantisch) */
  --z-sticky:         100;
  --z-modal-backdrop: 1000;
  --z-modal:          1001;
  --z-toast:          1100;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { color: var(--body); }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--bg); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan-600);
  background: var(--cyan-50);
  padding: 7px 15px; border-radius: var(--r-pill);
}
.eyebrow::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 18px; font-size: 1.12rem; color: var(--muted); }

/* ----- Section banner: section title over a technological image ----- */
.section-banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: clamp(220px, 30vw, 340px); display: grid; align-items: end;
  margin-bottom: clamp(30px, 4vw, 48px); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.section-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.section-banner::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,14,38,.10) 0%, rgba(9,14,38,.52) 56%, rgba(9,14,38,.85) 100%),
    linear-gradient(115deg, rgba(43,42,128,.48) 0%, rgba(22,165,224,.18) 45%, transparent 72%);
}
.section-banner:hover img { transform: scale(1.05); }
.section-banner__inner { position: relative; z-index: 1; padding: clamp(24px, 4vw, 42px); max-width: 760px; }
.section-banner__inner h2 { color: #fff; margin-top: 14px; }
.section-banner__inner .eyebrow {
  color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.section-banner__inner .eyebrow::before { background: #7fd6f5; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(22,107,200,.38); }
.btn--solid { background: var(--indigo); color: #fff; }
.btn--solid:hover { background: var(--indigo-700); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--indigo); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-600); transform: translateY(-2px); }
.btn--light { background: #eaf5fd; color: var(--indigo); border-color: #eaf5fd; box-shadow: 0 8px 20px rgba(8,15,45,.18); }
.btn--light:hover { background: #ffffff; color: var(--indigo); border-color: #ffffff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8,15,45,.24); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--cyan-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content:""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); z-index: 1;
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav-collapse { display: contents; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  font-weight: 600; font-size: .96rem; color: var(--ink);
  padding: 9px 14px; border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav-menu a:hover { color: var(--cyan-600); background: var(--cyan-50); }
.nav-menu a.active { color: var(--cyan-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; margin-left: auto;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translate(-50%,-7px); }
.nav-toggle span::after  { transform: translate(-50%,7px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%,0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%,0) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 560px at 82% -10%, rgba(22,165,224,.55), transparent 60%),
    radial-gradient(760px 520px at 6% 116%, rgba(22,165,224,.30), transparent 55%),
    linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo) 45%, var(--cyan-600) 120%);
}
.hero::before { /* digital network grid */
  content:""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 560px at 65% 25%, #000, transparent 78%);
          mask-image: radial-gradient(900px 560px at 65% 25%, #000, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0;
}
.hero h1 { margin-top: 22px; color: #fff; }
.hero h1 .grad {
  background: linear-gradient(90deg, #eafaff 0%, #7fd6f5 55%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin-top: 22px; max-width: 560px; color: rgba(255,255,255,.86); }
.hero .btn-row { margin-top: 34px; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stats .lbl { font-size: .9rem; color: rgba(255,255,255,.72); }

/* Hero animated network detail */
.hero-net { margin-top: 40px; max-width: 480px; }
.hero-net-svg { width: 100%; height: auto; overflow: visible; }
.hn-link { stroke-dasharray: 5 9; animation: hnFlow 2.8s linear infinite; }
.hn-link:nth-child(2n) { animation-duration: 3.6s; }
.hn-link:nth-child(3n) { animation-duration: 2.2s; }
@keyframes hnFlow { to { stroke-dashoffset: -28; } }
.hn-ring { fill: rgba(127,214,245,.22); transform-box: fill-box; transform-origin: center; animation: hnPulse 2.9s ease-in-out infinite var(--d, 0s); }
.hn-core { fill: #eafaff; filter: drop-shadow(0 0 6px rgba(127,214,245,.9)); }
.hn-node--hub .hn-ring { fill: rgba(127,214,245,.30); }
.hn-node--hub .hn-core { fill: #fff; filter: drop-shadow(0 0 10px rgba(127,214,245,1)); }
@keyframes hnPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.45); opacity: 1; } }

/* Hero: brand-forward overrides for chips & buttons on the gradient */
.hero .eyebrow {
  color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
}
.hero .eyebrow::before { background: #7fd6f5; }
.hero .btn--primary {
  background: #fff; color: var(--indigo); box-shadow: 0 14px 30px rgba(8,15,45,.30);
}
.hero .btn--primary:hover { background: #f2f8ff; box-shadow: 0 18px 38px rgba(8,15,45,.38); }
.hero .btn--ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.30); box-shadow: none; backdrop-filter: blur(6px);
}
.hero .btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.5); }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative; z-index: 1;
}
.hero-card .bar { height: 10px; border-radius: var(--r-pill); background: var(--bg); margin-bottom: 12px; }
.hero-card .bar.w1 { width: 70%; background: linear-gradient(90deg, var(--cyan), #8fd6f3); }
.hero-card .bar.w2 { width: 100%; }
.hero-card .bar.w3 { width: 85%; }
.hero-chip-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 20px; }
.hero-chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg); border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; color: var(--ink);
}
.hero-chip .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; flex-shrink: 0; }
.hero-chip .ic svg { width: 18px; height: 18px; }
.hero-float {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 14px 16px;
  display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: .9rem;
  z-index: 2;
}
.hero-float .dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color:#fff; }
.hero-float.f1 { top: -22px; left: -26px; }
.hero-float.f1 .dot { background: var(--grad-brand); }
.hero-float.f2 { bottom: -22px; right: -18px; }
.hero-float.f2 .dot { background: var(--indigo); }
.hero-float svg { width: 18px; height: 18px; }

/* ==========================================================================
   Cards / Features
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, #ffffff 0%, #eaf4fd 100%);
  border: 1px solid #d6e7f6; border-radius: var(--r-md);
  padding: 30px; box-shadow: 0 4px 16px rgba(24,40,80,.05);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
  position: relative; height: 100%; overflow: hidden;
}
.card::before { /* brand accent bar that grows in on hover */
  content:""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(22,107,200,.20);
  border-color: var(--cyan);
}
.card:hover::before { transform: scaleX(1); }
.card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  hyphens: auto; -webkit-hyphens: auto;
  overflow-wrap: break-word; word-break: break-word;
}
.card p { font-size: .98rem; }

.card-ico {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--cyan-50); color: var(--cyan-600); margin-bottom: 20px;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), background .35s ease, color .35s ease;
}
.card-ico svg { width: 27px; height: 27px; }
.card:hover .card-ico { background: var(--grad-brand); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.card--indigo .card-ico { background: rgba(43,42,128,.08); color: var(--indigo); }
.card--indigo:hover .card-ico { background: var(--indigo); color: #fff; }

/* Schwerpunkte (Leistungen) — distinct on-brand icon tints per card */
#leistungen .grid-4 .card:nth-child(1) .card-ico { background: rgba(22,165,224,.12);  color: #16a5e0; }
#leistungen .grid-4 .card:nth-child(2) .card-ico { background: rgba(43,42,128,.12);   color: #2b2a80; }
#leistungen .grid-4 .card:nth-child(3) .card-ico { background: rgba(123,63,242,.12);  color: #7b3ff2; }
#leistungen .grid-4 .card:nth-child(4) .card-ico { background: rgba(214,33,154,.12);  color: #d6219a; }
#leistungen .grid-4 .card:nth-child(1):hover .card-ico { background: linear-gradient(135deg, #2ec0f0, #16a5e0); color: #fff; }
#leistungen .grid-4 .card:nth-child(2):hover .card-ico { background: linear-gradient(135deg, #3a39a8, #2b2a80); color: #fff; }
#leistungen .grid-4 .card:nth-child(3):hover .card-ico { background: linear-gradient(135deg, #9460c4, #7b3ff2); color: #fff; }
#leistungen .grid-4 .card:nth-child(4):hover .card-ico { background: linear-gradient(135deg, #ec3aa8, #d6219a); color: #fff; }

/* numbered card (projects) */
.card-num {
  position: absolute; top: 24px; right: 26px;
  font-size: 1.5rem; font-weight: 800; color: var(--line); letter-spacing: -.02em;
}
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--cyan-600); background: var(--cyan-50); padding: 5px 12px; border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.tag--indigo { color: var(--indigo); background: rgba(43,42,128,.08); }

/* ----- Homepage project cards: title icon, grow-on-hover, per-card brand color ----- */
.proj-cards .card-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.proj-cards .card-title h3 { margin: 0; }
.proj-cards .card-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; margin-bottom: 0;
  display: grid; place-items: center;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), background .35s ease, color .35s ease;
}
.proj-cards .card-ico svg { width: 23px; height: 23px; }
/* grow (focus/hover) */
.proj-cards .card { transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease, border-color .35s ease; }
.proj-cards .card:hover { transform: scale(1.035) translateY(-6px); }
/* per-card on-brand color (icon tint, hover gradient, accent bar, border) */
.proj-cards .card:nth-child(1) .card-ico { background: rgba(22,165,224,.12); color: #16a5e0; }
.proj-cards .card:nth-child(2) .card-ico { background: rgba(43,42,128,.12);  color: #2b2a80; }
.proj-cards .card:nth-child(3) .card-ico { background: rgba(123,63,242,.12); color: #7b3ff2; }
.proj-cards .card:nth-child(4) .card-ico { background: rgba(214,33,154,.12); color: #d6219a; }
.proj-cards .card:nth-child(1)::before { background: linear-gradient(90deg, #2ec0f0, #16a5e0); }
.proj-cards .card:nth-child(2)::before { background: linear-gradient(90deg, #3a39a8, #2b2a80); }
.proj-cards .card:nth-child(3)::before { background: linear-gradient(90deg, #9460c4, #7b3ff2); }
.proj-cards .card:nth-child(4)::before { background: linear-gradient(90deg, #ec3aa8, #d6219a); }
.proj-cards .card:nth-child(1):hover { border-color: #16a5e0; box-shadow: 0 24px 48px rgba(22,165,224,.22); }
.proj-cards .card:nth-child(2):hover { border-color: #2b2a80; box-shadow: 0 24px 48px rgba(43,42,128,.22); }
.proj-cards .card:nth-child(3):hover { border-color: #7b3ff2; box-shadow: 0 24px 48px rgba(123,63,242,.22); }
.proj-cards .card:nth-child(4):hover { border-color: #d6219a; box-shadow: 0 24px 48px rgba(214,33,154,.22); }
.proj-cards .card:nth-child(1):hover .card-ico { background: linear-gradient(135deg, #2ec0f0, #16a5e0); color: #fff; transform: rotate(-6deg); }
.proj-cards .card:nth-child(2):hover .card-ico { background: linear-gradient(135deg, #3a39a8, #2b2a80); color: #fff; transform: rotate(-6deg); }
.proj-cards .card:nth-child(3):hover .card-ico { background: linear-gradient(135deg, #9460c4, #7b3ff2); color: #fff; transform: rotate(-6deg); }
.proj-cards .card:nth-child(4):hover .card-ico { background: linear-gradient(135deg, #ec3aa8, #d6219a); color: #fff; transform: rotate(-6deg); }

/* ----- Über Uns "Werte" cards: grow-on-hover + per-card on-brand tinted interior (6 cards) ----- */
.werte-cards .card { transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease, border-color .35s ease; }
.werte-cards .card:hover { transform: scale(1.035) translateY(-6px); }
/* tinted interiors + borders */
.werte-cards .card:nth-child(1) { background: linear-gradient(180deg, #fff 0%, rgba(22,165,224,.10) 100%); border-color: rgba(22,165,224,.22); }
.werte-cards .card:nth-child(2) { background: linear-gradient(180deg, #fff 0%, rgba(43,42,128,.09)  100%); border-color: rgba(43,42,128,.20); }
.werte-cards .card:nth-child(3) { background: linear-gradient(180deg, #fff 0%, rgba(123,63,242,.10) 100%); border-color: rgba(123,63,242,.20); }
.werte-cards .card:nth-child(4) { background: linear-gradient(180deg, #fff 0%, rgba(214,33,154,.09) 100%); border-color: rgba(214,33,154,.20); }
.werte-cards .card:nth-child(5) { background: linear-gradient(180deg, #fff 0%, rgba(14,165,165,.10) 100%); border-color: rgba(14,165,165,.22); }
.werte-cards .card:nth-child(6) { background: linear-gradient(180deg, #fff 0%, rgba(31,111,214,.10) 100%); border-color: rgba(31,111,214,.20); }
/* icon tints */
.werte-cards .card:nth-child(1) .card-ico { background: rgba(22,165,224,.14); color: #16a5e0; }
.werte-cards .card:nth-child(2) .card-ico { background: rgba(43,42,128,.13);  color: #2b2a80; }
.werte-cards .card:nth-child(3) .card-ico { background: rgba(123,63,242,.14); color: #7b3ff2; }
.werte-cards .card:nth-child(4) .card-ico { background: rgba(214,33,154,.13); color: #d6219a; }
.werte-cards .card:nth-child(5) .card-ico { background: rgba(14,165,165,.14); color: #0ea5a5; }
.werte-cards .card:nth-child(6) .card-ico { background: rgba(31,111,214,.14); color: #1f6fd6; }
/* top accent bars */
.werte-cards .card:nth-child(1)::before { background: linear-gradient(90deg, #2ec0f0, #16a5e0); }
.werte-cards .card:nth-child(2)::before { background: linear-gradient(90deg, #3a39a8, #2b2a80); }
.werte-cards .card:nth-child(3)::before { background: linear-gradient(90deg, #9460c4, #7b3ff2); }
.werte-cards .card:nth-child(4)::before { background: linear-gradient(90deg, #ec3aa8, #d6219a); }
.werte-cards .card:nth-child(5)::before { background: linear-gradient(90deg, #2bd6c6, #0ea5a5); }
.werte-cards .card:nth-child(6)::before { background: linear-gradient(90deg, #4f97f0, #1f6fd6); }
/* hover border + glow */
.werte-cards .card:nth-child(1):hover { border-color: #16a5e0; box-shadow: 0 24px 48px rgba(22,165,224,.20); }
.werte-cards .card:nth-child(2):hover { border-color: #2b2a80; box-shadow: 0 24px 48px rgba(43,42,128,.20); }
.werte-cards .card:nth-child(3):hover { border-color: #7b3ff2; box-shadow: 0 24px 48px rgba(123,63,242,.20); }
.werte-cards .card:nth-child(4):hover { border-color: #d6219a; box-shadow: 0 24px 48px rgba(214,33,154,.20); }
.werte-cards .card:nth-child(5):hover { border-color: #0ea5a5; box-shadow: 0 24px 48px rgba(14,165,165,.20); }
.werte-cards .card:nth-child(6):hover { border-color: #1f6fd6; box-shadow: 0 24px 48px rgba(31,111,214,.20); }
/* hover icon fill */
.werte-cards .card:nth-child(1):hover .card-ico { background: linear-gradient(135deg, #2ec0f0, #16a5e0); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.werte-cards .card:nth-child(2):hover .card-ico { background: linear-gradient(135deg, #3a39a8, #2b2a80); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.werte-cards .card:nth-child(3):hover .card-ico { background: linear-gradient(135deg, #9460c4, #7b3ff2); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.werte-cards .card:nth-child(4):hover .card-ico { background: linear-gradient(135deg, #ec3aa8, #d6219a); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.werte-cards .card:nth-child(5):hover .card-ico { background: linear-gradient(135deg, #2bd6c6, #0ea5a5); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.werte-cards .card:nth-child(6):hover .card-ico { background: linear-gradient(135deg, #4f97f0, #1f6fd6); color: #fff; transform: translateY(-3px) rotate(-6deg); }

/* ----- Split / media rows ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split--reverse .split-media { order: 2; }
.media-frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); position: relative;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ----- Projekte: alternating media rows (image + text) ----- */
.proj-rows { display: grid; gap: clamp(52px, 8vw, 96px); }
.proj-rows .media-frame { position: relative; }
.proj-rows .media-frame img { aspect-ratio: 16/11; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.proj-rows .media-frame:hover img { transform: scale(1.06); }
.proj-rows .media-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(130deg, rgba(22,165,224,.12), transparent 55%);
}
.media-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: #fff;
  background: rgba(9,14,38,.5); border: 1px solid rgba(255,255,255,.28);
  padding: 7px 14px; border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.media-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.pj-body .pj-ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), background .35s ease, color .35s ease;
}
.pj-body .pj-ico svg { width: 26px; height: 26px; }
.proj-row:hover .pj-ico { transform: translateY(-3px) rotate(-6deg); }
.pj-body h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 14px; }
.pj-body p { font-size: 1.05rem; color: var(--ink); }
.pj-eyebrow { margin-bottom: 14px; }
.pr-2 .pj-eyebrow { color: var(--indigo); background: rgba(43,42,128,.08); }
.pr-2 .pj-eyebrow::before { background: var(--indigo); }
.pr-3 .pj-eyebrow { color: #7b3ff2; background: rgba(123,63,242,.10); }
.pr-3 .pj-eyebrow::before { background: #7b3ff2; }
/* per-row brand color */
.pr-1 .pj-ico { background: rgba(22,165,224,.12); color: #16a5e0; }
.pr-2 .pj-ico { background: rgba(43,42,128,.12);  color: #2b2a80; }
.pr-3 .pj-ico { background: rgba(123,63,242,.12); color: #7b3ff2; }
.proj-row:hover.pr-1 .pj-ico { background: linear-gradient(135deg, #2ec0f0, #16a5e0); color: #fff; }
.proj-row:hover.pr-2 .pj-ico { background: linear-gradient(135deg, #3a39a8, #2b2a80); color: #fff; }
.proj-row:hover.pr-3 .pj-ico { background: linear-gradient(135deg, #9460c4, #7b3ff2); color: #fff; }
.pr-1 .media-badge::before { background: #16a5e0; }
.pr-2 .media-badge::before { background: #7f9bff; }
.pr-3 .media-badge::before { background: #b18cff; }

/* ----- Arbeitsgruppen cards: per-card color + grow-on-hover (3 cards) ----- */
.ag-cards .card { transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease, border-color .35s ease; }
.ag-cards .card:hover { transform: scale(1.035) translateY(-6px); }
.ag-cards .card:nth-child(1) .card-ico { background: rgba(22,165,224,.13); color: #16a5e0; }
.ag-cards .card:nth-child(2) .card-ico { background: rgba(43,42,128,.12);  color: #2b2a80; }
.ag-cards .card:nth-child(3) .card-ico { background: rgba(123,63,242,.13); color: #7b3ff2; }
.ag-cards .card:nth-child(1)::before { background: linear-gradient(90deg, #2ec0f0, #16a5e0); }
.ag-cards .card:nth-child(2)::before { background: linear-gradient(90deg, #3a39a8, #2b2a80); }
.ag-cards .card:nth-child(3)::before { background: linear-gradient(90deg, #9460c4, #7b3ff2); }
.ag-cards .card:nth-child(1):hover { border-color: #16a5e0; box-shadow: 0 24px 48px rgba(22,165,224,.20); }
.ag-cards .card:nth-child(2):hover { border-color: #2b2a80; box-shadow: 0 24px 48px rgba(43,42,128,.20); }
.ag-cards .card:nth-child(3):hover { border-color: #7b3ff2; box-shadow: 0 24px 48px rgba(123,63,242,.20); }
.ag-cards .card:nth-child(1):hover .card-ico { background: linear-gradient(135deg, #2ec0f0, #16a5e0); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.ag-cards .card:nth-child(2):hover .card-ico { background: linear-gradient(135deg, #3a39a8, #2b2a80); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.ag-cards .card:nth-child(3):hover .card-ico { background: linear-gradient(135deg, #9460c4, #7b3ff2); color: #fff; transform: translateY(-3px) rotate(-6deg); }

.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; color: var(--ink); font-weight: 500; }
.checklist .ck {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; margin-top: 1px;
}
.checklist .ck svg { width: 15px; height: 15px; }

/* ----- Governance / value list with side accent ----- */
.stack { display: grid; gap: 18px; }
.stack-item {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e7f5fe 0%, #cfeafb 100%);
  border: 1px solid #bfe1f6; border-left: 5px solid var(--cyan);
  border-radius: var(--r-md); padding: 26px 30px;
  box-shadow: 0 4px 16px rgba(24,40,80,.06);
}
/* staggered entrance (delay only on opacity/transform) + snappy hover feedback */
.stack .stack-item {
  --d: 0s;
  transition:
    opacity .6s ease var(--d),
    transform .45s cubic-bezier(.2,.7,.3,1) var(--d),
    box-shadow .35s ease,
    background .35s ease,
    border-color .35s ease;
}
.stack .stack-item:nth-child(2) { --d: .08s; }
.stack .stack-item:nth-child(3) { --d: .16s; }
.stack .stack-item:nth-child(4) { --d: .24s; }
.stack .stack-item:nth-child(5) { --d: .32s; }
.stack-item:nth-child(even) {
  background: linear-gradient(135deg, #ededfc 0%, #dadaf5 100%);
  border-color: #cfcfee; border-left-color: var(--indigo);
}
/* soft brand glow that fades in on hover */
.stack-item::after {
  content:""; position: absolute; top: 0; right: 0; width: 45%; height: 100%; z-index: 0;
  background: radial-gradient(120% 130% at 100% 50%, rgba(22,165,224,.20), transparent 70%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.stack-item:nth-child(even)::after { background: radial-gradient(120% 130% at 100% 50%, rgba(43,42,128,.20), transparent 70%); }
.stack-item:hover::after { opacity: 1; }
.stack-item h3, .stack-item p { position: relative; z-index: 1; }
/* dynamic hover (scoped to beat .reveal.in transform:none) */
.stack .stack-item:hover {
  transform: translateX(10px);
  box-shadow: 0 18px 40px rgba(22,107,200,.22);
  border-color: var(--cyan);
}
.stack .stack-item:nth-child(even):hover {
  box-shadow: 0 18px 40px rgba(43,42,128,.24);
  border-color: var(--indigo);
}
.stack-item h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 14px; }
.stack-item .badge {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(22,107,200,.30);
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.stack-item:nth-child(even) .badge { background: var(--indigo); box-shadow: 0 6px 14px rgba(43,42,128,.30); }
.stack .stack-item:hover .badge { transform: scale(1.12) rotate(-5deg); }
.stack-item p { font-size: .98rem; }

/* ----- CTA band ----- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: var(--grad-brand); border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 70px) clamp(28px, 6vw, 64px);
  color: #fff; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-brand);
}
.cta-inner::after {
  content:""; position:absolute; inset:0; opacity:.25;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 70%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.9); margin-top: 14px; font-size: 1.1rem; }
.cta-inner .btn-row { justify-content: center; margin-top: 30px; }

/* Hanging contact icons (swinging) */
.contact-hangers {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(8px, 3vw, 34px); margin-bottom: clamp(14px, 2.5vw, 26px);
}
.hanger {
  display: flex; flex-direction: column; align-items: center;
  transform-origin: top center; will-change: transform;
  animation: swing 3.4s ease-in-out infinite;
}
.hanger .string {
  width: 2px; height: clamp(18px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.6));
  border-radius: 2px;
}
.hanger .badge {
  position: relative; margin-top: -1px;
  width: clamp(46px, 7.5vw, 68px); height: clamp(46px, 7.5vw, 68px); border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 24px rgba(8,15,45,.30), inset 0 0 0 3px rgba(255,255,255,.22);
}
.hanger .badge::before { /* string anchor knob */
  content:""; position: absolute; top: 5px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(8,15,45,.12);
}
.hanger .badge svg { width: 46%; height: 46%; }
.h1 .badge { background: linear-gradient(160deg, #2ec0f0, #16a5e0); }
.h2 .badge { background: linear-gradient(160deg, #9460c4, #7a4fb0); }
.h3 .badge { background: linear-gradient(160deg, #9aa3b4, #7c8597); }
.h4 .badge { background: linear-gradient(160deg, #ff8a7a, #f3766e); }
.h5 .badge { background: linear-gradient(160deg, #ec3aa8, #d6219a); }
/* desynced swing so they move like real hanging tags */
.h1 { animation-duration: 3.2s; animation-delay: -.3s; }
.h2 { animation-duration: 3.9s; animation-delay: -1.2s; }
.h3 { animation-duration: 3.5s; animation-delay: -.7s; }
.h4 { animation-duration: 4.1s; animation-delay: -1.7s; }
.h5 { animation-duration: 3.7s; animation-delay: -1.0s; }
@keyframes swing { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

/* ==========================================================================
   Partners
   ========================================================================== */
.partner-card { display: flex; flex-direction: column; padding: 32px; }
/* soft glow that fades in on hover */
.partner-card__glow {
  position: absolute; top: -42%; right: -32%; width: 280px; height: 280px; z-index: 0;
  background: radial-gradient(circle, rgba(22,165,224,.22), transparent 65%);
  opacity: 0; transform: scale(.7); pointer-events: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
.partner-card:hover .partner-card__glow { opacity: 1; transform: scale(1); }
.partner-card:nth-child(even) .partner-card__glow {
  background: radial-gradient(circle, rgba(43,42,128,.20), transparent 65%);
}
/* keep content above the glow layer */
.partner-card__head,
.partner-card > p,
.partner-card__actions { position: relative; z-index: 1; }

.partner-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.partner-card__name {
  margin: 0; font-size: 1.4rem; line-height: 1.2;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; word-break: break-word;
}

.partner-logo {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: 16px;
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.partner-card:hover .partner-logo { transform: translateY(-3px) rotate(-4deg); box-shadow: var(--shadow-md); }
.partner-logo__img { width: 100%; height: 100%; object-fit: contain; padding: 11px; }
.partner-logo__letter {
  display: none; font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: -.02em;
}
/* fallback when a logo image is missing — shows the lettered brand badge */
.partner-logo.is-fallback { background: var(--grad-brand); border-color: transparent; box-shadow: var(--shadow-brand); }
.partner-logo.is-fallback .partner-logo__img { display: none; }
.partner-logo.is-fallback .partner-logo__letter { display: block; }
.partner-card:nth-child(even) .partner-logo.is-fallback { background: var(--indigo); box-shadow: var(--shadow-md); }

.partner-card__actions {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
}
.partner-pdf { display: inline-flex; align-items: center; gap: 8px; }
.partner-pdf svg { width: 17px; height: 17px; }

/* ----- Partner flip cards ----- */
.partner-grid { gap: 28px; }
.partner-flip { display: flex; flex-direction: column; }
.flip-card { perspective: 1500px; cursor: pointer; outline: none; }
.flip-card:focus-visible { border-radius: var(--r-md); box-shadow: 0 0 0 3px rgba(22,165,224,.45); }
.flip-inner {
  position: relative; display: grid; min-height: 260px;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4,.2,.2,1);
}
/* flip on hover (desktop) and on click/keyboard (touch + a11y) */
.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner,
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  grid-area: 1 / 1; border-radius: var(--r-md); padding: 34px 32px;
  display: flex; flex-direction: column; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip-front {
  background: linear-gradient(180deg, #ffffff 0%, #eaf4fd 100%);
  border: 1px solid #d6e7f6; box-shadow: 0 4px 16px rgba(24,40,80,.05);
  align-items: center; justify-content: center; text-align: center; gap: 16px;
}
/* real image logos size to their natural shape (no crop/distort); letter-fallback stays square */
.flip-front .partner-logo {
  width: auto; height: auto; max-width: 80%; border-radius: 18px; padding: 16px 22px;
}
.flip-front .partner-logo.is-fallback { width: 92px; height: 92px; padding: 0; border-radius: 20px; }
.flip-front .partner-logo__img {
  width: auto; height: auto; max-width: 100%; max-height: 76px; padding: 0; object-fit: contain;
}
.flip-front .partner-logo.is-fallback .partner-logo__img { width: 100%; height: 100%; }
.flip-front .partner-logo__letter { font-size: 2.1rem; }
.flip-front h3 { font-size: 1.35rem; }
.flip-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--cyan-600);
}
.flip-hint svg { width: 16px; height: 16px; }
.flip-back {
  background: var(--grad-brand); color: #fff; transform: rotateY(180deg);
  justify-content: center; gap: 12px; box-shadow: var(--shadow-brand);
}
.flip-back::after { /* subtle grid texture */
  content:""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(360px 220px at 80% 0%, #000, transparent 70%);
          mask-image: radial-gradient(360px 220px at 80% 0%, #000, transparent 70%);
}
.flip-back h3, .flip-back p, .flip-back .partner-more { position: relative; z-index: 1; }
.flip-back h3 { color: #fff; margin-bottom: 4px; }
.flip-back p { color: rgba(255,255,255,.94); font-size: .98rem; }
/* gallery button on the colored back face */
.flip-back .partner-more {
  align-self: center; margin-top: 14px; padding: 10px 18px; border-radius: var(--r-pill);
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(2px); transition: background .2s ease, transform .2s ease;
}
.flip-back .partner-more:hover { color: #fff; background: rgba(255,255,255,.28); transform: translateY(-2px); }
/* second card → indigo accents */
.partner-flip:nth-child(even) .flip-back { background: var(--indigo); box-shadow: var(--shadow-md); }
.partner-flip:nth-child(even) .partner-logo.is-fallback { background: var(--indigo); box-shadow: var(--shadow-md); }
/* opt-in override: match the first card's brand-gradient back face */
.partner-flip .flip-back.flip-back--brand { background: var(--grad-brand); box-shadow: var(--shadow-brand); }

.partner-more {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  margin-top: 18px; font-weight: 700; color: var(--cyan-600);
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 1rem;
}
.partner-more:hover { color: var(--indigo); }
.partner-more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.partner-more:hover svg { transform: scale(1.12); }

/* ----- Partner presentation cards (click opens slide gallery) ----- */
.partner-pres {
  width: 100%; height: 100%; text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eaf4fd 100%);
  border: 1px solid #d6e7f6; border-radius: var(--r-md); padding: 34px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 4px 16px rgba(24,40,80,.05);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.partner-pres:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(22,107,200,.18); border-color: var(--cyan); }
.partner-pres .partner-logo { width: auto; height: auto; max-width: 80%; border-radius: 18px; padding: 16px 22px; }
.partner-pres .partner-logo.is-fallback { width: 92px; height: 92px; padding: 0; border-radius: 20px; }
.partner-pres .partner-logo__img { width: auto; height: auto; max-width: 100%; max-height: 70px; padding: 0; object-fit: contain; }
.partner-pres .partner-logo.is-fallback .partner-logo__img { width: 100%; height: 100%; }
.partner-pres .partner-logo.is-fallback .partner-logo__letter { font-size: 2.1rem; }
.partner-flip:nth-child(even) .partner-pres .partner-logo.is-fallback { background: var(--indigo); box-shadow: var(--shadow-md); }
.partner-pres-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.partner-pres-desc { color: var(--body); font-size: .96rem; }
.partner-pres-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; color: #fff; background: var(--grad-brand);
  padding: 11px 22px; border-radius: var(--r-pill); box-shadow: var(--shadow-brand);
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-pres:hover .partner-pres-cta { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(22,107,200,.38); }
.partner-pres-cta svg { width: 18px; height: 18px; }

/* ----- Lightbox / presentation gallery ----- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: lbFade .25s ease; }
.lb-dialog { position: relative; z-index: 1; width: min(94vw, 1080px); animation: lbPop .3s cubic-bezier(.2,.7,.3,1); }
.lb-title { color: #fff; font-weight: 700; font-size: 1.05rem; text-align: center; margin-bottom: 12px; }
.lb-stage { position: relative; }
.lb-img {
  display: block; width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--indigo);
  font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: background .2s ease, transform .2s ease;
}
.lb-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s ease;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-counter { margin-top: 14px; text-align: center; color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Section header row (heading left + action right)
   ========================================================================== */
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head-row > div { max-width: 640px; }
.section-head-row h2 { margin-top: 16px; }
.section-head-row .lead { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

/* two-tone heading helpers */
.grad-ink { color: var(--cyan-600); }
.grad-cyan {
  background: linear-gradient(90deg, #7fd6f5 0%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Light hero (homepage)
   ========================================================================== */
.hero--light {
  background:
    radial-gradient(820px 460px at 88% -8%, rgba(22,165,224,.16), transparent 60%),
    radial-gradient(680px 480px at 4% 110%, rgba(43,42,128,.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%);
  border-bottom: 1px solid var(--line);
}
.hero--light::before {
  content:""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(22,107,200,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,107,200,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(760px 460px at 70% 20%, #000, transparent 78%);
          mask-image: radial-gradient(760px 460px at 70% 20%, #000, transparent 78%);
}
.hero--light .container { position: relative; z-index: 1; }
.hero--light .hero-inner { padding-bottom: clamp(36px, 5vw, 56px); }
.hero--light h1 { color: var(--ink); }
.hero--light h1 .grad {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--light p.lead { color: var(--muted); }
.hero--light .eyebrow {
  color: var(--cyan-600); background: var(--cyan-50);
  border: 1px solid #d3ecf8; backdrop-filter: none;
}
.hero--light .eyebrow::before { background: var(--cyan); }
.hero--light .btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.hero--light .btn--primary:hover { box-shadow: 0 18px 38px rgba(22,107,200,.38); }
.hero--light .btn--ghost {
  background: #fff; color: var(--indigo); border-color: var(--line);
  box-shadow: var(--shadow-sm); backdrop-filter: none;
}
.hero--light .btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-600); }

/* colorful abstract art */
.hero-art {
  position: relative; aspect-ratio: 4/3.4; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #0b1f4a 0%, #16205a 60%, #0a1330 100%);
  box-shadow: var(--shadow-lg); border: 1px solid #dbe6f3;
}
.hero-art .blob { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .9; }
.hero-art .b1 { width: 60%; height: 60%; left: -8%; top: -10%; background: #16a5e0; animation: floatA 9s ease-in-out infinite; }
.hero-art .b2 { width: 55%; height: 55%; right: -6%; top: 18%; background: #7b3ff2; animation: floatB 11s ease-in-out infinite; }
.hero-art .b3 { width: 50%; height: 50%; left: 22%; bottom: -12%; background: #ff5a7a; animation: floatA 13s ease-in-out infinite reverse; }
.hero-art-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .5;
}
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,6%) scale(1.08); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7%,8%) scale(1.1); } }

/* hero floats reuse base .hero-float; reposition for light hero */
.hero--light .hero-float.f1 { top: 18px; left: -24px; }
.hero--light .hero-float.f2 { bottom: 18px; right: -20px; }
.hero--light .hero-float.f1 .dot { background: var(--grad-brand); }
.hero--light .hero-float.f2 .dot { background: var(--indigo); }

/* stats strip */
.hero--light .hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(28px, 4vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.hero--light .hero-stats .stat { padding: 26px 30px; border-left: 1px solid var(--line); }
.hero--light .hero-stats .stat:first-child { border-left: 0; }
.hero--light .hero-stats .num {
  font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--light .hero-stats .lbl { font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* scroll cue */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: clamp(30px, 4vw, 46px) auto 0; width: max-content;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue svg { width: 20px; height: 20px; color: var(--cyan-600); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ==========================================================================
   Organisation (two-column numbered list)
   ========================================================================== */
/* Kopfzeile: Eyebrow/Lead links, Button rechts. */
.org-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 46px); }
.org-head-tx { max-width: 760px; }
.org-head-tx .lead { margin-top: 14px; }

/* Horizontale Info-Karten mit Hover-Farbwechsel (Markenindigo). */
.org-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.org-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: clamp(300px, 34vw, 430px);
  padding: clamp(22px, 2vw, 32px);
  background: #ffffff; border-radius: 24px; color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: background .4s ease, color .4s ease, transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease;
}
.org-card h3 {
  margin: 0; font-size: clamp(1.3rem, 1.5vw, 1.7rem); line-height: 1.14;
  font-weight: 800; letter-spacing: -.02em;
}
.org-card p { margin: 0; font-size: .97rem; line-height: 1.55; color: var(--body); transition: color .4s ease; }

.org-card:hover, .org-card:focus-within {
  background: #eef1fb; color: var(--ink);
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.org-card:hover h3, .org-card:focus-within h3 { color: var(--indigo); }

/* Dekoratives Blüten-/Pinwheel-Motiv – erscheint beim Hover (wie im Screenshot). */
.org-card-deco {
  position: absolute; z-index: -1; top: -14%; right: -16%; width: 72%; aspect-ratio: 1;
  color: rgba(43,42,128,.08); opacity: 0; transform: scale(.85) rotate(-10deg);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.3,1); pointer-events: none;
}
.org-card-deco svg { width: 100%; height: 100%; display: block; }
.org-card:hover .org-card-deco, .org-card:focus-within .org-card-deco { opacity: 1; transform: scale(1) rotate(0); }

@media (max-width: 1080px) { .org-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .org-cards { grid-template-columns: 1fr; } .org-card { min-height: 220px; } }

/* ==========================================================================
   Mitgliedschaft: Arten-Karten + Ablauf-Schritte
   ========================================================================== */
.img-acc-wrap { margin-bottom: clamp(30px, 5vw, 64px); }

/* Zweispaltig: Text links (sticky), gestapelte Karten rechts. */
.mtypes-split2 { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.mtypes-intro { position: sticky; top: calc(var(--header-h, 72px) + 32px); }
.mtypes-intro h2 { margin-top: 14px; }
.mtypes-intro .lead { margin-top: 16px; }
.mtypes-note { margin-top: 20px; color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* Arten als gestapelte Scroll-Karten (sticky stacking). */
.mstack { }
.mstack-card {
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px + (var(--i, 0) * 12px));
  background: #2b2a80; color: #fff; border-radius: 28px;
  box-shadow: 0 26px 56px -34px rgba(20,25,80,.55), 0 4px 14px rgba(20,25,80,.14);
  padding: clamp(28px, 3vw, 46px);
  min-height: clamp(280px, 32vh, 340px);
  margin-bottom: clamp(20px, 3vh, 36px);
  transform-origin: center top; will-change: transform;
}
.mstack-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 56px); }
.mstack-n { color: var(--cyan); font-weight: 800; font-size: clamp(1rem, 1.4vw, 1.4rem); padding-top: .3em; }
.mstack-main h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.022em; }
.mstack-body { margin-top: clamp(18px, 2.4vw, 30px); border-left: 2px solid var(--cyan); padding-left: clamp(20px, 1.8vw, 30px); }
.mstack-body p { margin: 0; max-width: 56ch; color: rgba(255,255,255,.82); font-size: clamp(.98rem, 1.05vw, 1.1rem); line-height: 1.55; }
.mstack-cost { color: #fff; font-weight: 800; }

@media (max-width: 900px) {
  .mtypes-split2 { grid-template-columns: 1fr; }
  .mtypes-intro { position: static; }
}
@media (max-width: 640px) {
  .mstack-grid { grid-template-columns: 1fr; gap: 6px; }
  .mstack-card { min-height: 260px; }
}

/* Mentoring/Schulungen: Karten mit passendem Foto-Banner. */
.mentor-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.mentor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mentor-card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.mentor-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.mentor-card:hover .mentor-card-media img { transform: scale(1.05); }
.mentor-card-body { padding: clamp(22px, 2.4vw, 34px); }
.mentor-card-body h3 { font-size: 1.25rem; }
.mentor-card-body p { margin-top: 10px; color: var(--muted); line-height: 1.6; }

.msteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mstep {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.mstep-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cyan-50); color: var(--cyan-600); font-weight: 800; font-size: 1rem; }
.mstep h3 { font-size: 1.05rem; margin-top: 14px; }
.mstep p { color: var(--muted); font-size: .94rem; margin-top: 6px; line-height: 1.55; }

@media (max-width: 900px) { .mtypes-split { grid-template-columns: 1fr; } .mtypes-intro { position: static; } .msteps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .msteps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Dark section + Projects
   ========================================================================== */
.section--dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 88% -10%, rgba(22,165,224,.20), transparent 60%),
    linear-gradient(180deg, #020617 0%, #0a1330 100%);
}
.section--dark h2 { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.7); }
.section--dark .eyebrow { color: #7fd6f5; background: rgba(127,214,245,.10); border: 1px solid rgba(127,214,245,.22); }
.section--dark .eyebrow::before { background: #7fd6f5; }
.section--dark .btn--ghost {
  background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none;
}
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; }

.proj-grid { gap: 22px; }
.proj-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease, border-color .4s ease;
}
.proj-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0,0,0,.45); border-color: rgba(127,214,245,.45); }
.proj-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.proj-media::after {
  content:""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .35;
}
.proj-media::before {
  content:""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(2,6,23,.55) 100%);
}
.pm-1 { background: linear-gradient(135deg, #16a5e0, #1f6fd6); }
.pm-2 { background: linear-gradient(135deg, #2b2a80, #7b3ff2); }
.pm-3 { background: linear-gradient(135deg, #0ea5a5, #16a5e0); }
.pm-4 { background: linear-gradient(135deg, #b5179e, #7b3ff2); }
.proj-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(2,6,23,.45); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 12px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.proj-body { position: relative; padding: 24px 26px 26px; }
.proj-body h3 { color: #fff; margin-bottom: 8px; padding-right: 44px; }
.proj-body p { color: rgba(255,255,255,.66); font-size: .96rem; }
.proj-go {
  position: absolute; top: -22px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--indigo);
  box-shadow: var(--shadow-md); transition: transform .35s ease, background .35s ease, color .35s ease;
}
.proj-go svg { width: 19px; height: 19px; }
.proj-card:hover .proj-go { transform: translateY(-3px) rotate(8deg); background: var(--cyan); color: #fff; }

/* expertise pills */
.expertise { margin-top: clamp(40px, 5vw, 60px); text-align: center; }
.expertise .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  padding: 10px 18px; border-radius: var(--r-pill);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.pill::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.pill:hover { background: rgba(127,214,245,.12); border-color: rgba(127,214,245,.45); transform: translateY(-2px); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 420px at 88% -25%, rgba(22,165,224,.55), transparent 60%),
    linear-gradient(120deg, var(--indigo-900) 0%, var(--indigo) 55%, var(--cyan-600) 130%);
  padding: clamp(58px, 7vw, 96px) 0 clamp(50px, 6vw, 76px);
  /* Einheitliche Hero-Höhe über ALLE Seiten (auch Rechtstexte ohne Foto):
     gleiche min-height wie die Foto-Variante, Inhalt vertikal zentriert. */
  min-height: clamp(440px, 66vh, 640px);
  display: grid;
  align-items: center;
}
.page-hero::before {
  content:""; position:absolute; inset:0; opacity:.6; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(700px 380px at 82% 0%, #000, transparent 78%);
          mask-image: radial-gradient(700px 380px at 82% 0%, #000, transparent 78%);
}
.page-hero .inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { color: #fff; }
.page-hero p.lead { margin-top: 18px; color: rgba(255,255,255,.86); }
.page-hero .eyebrow {
  color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
}
.page-hero .eyebrow::before { background: #7fd6f5; }
.page-hero .btn--primary {
  background: #fff; color: var(--indigo); box-shadow: 0 14px 30px rgba(8,15,45,.30);
}
.page-hero .btn--primary:hover { background: #f2f8ff; }

/* ----- Page hero with photo background (animated) ----- */
.page-hero--image {
  min-height: clamp(440px, 66vh, 640px);
  display: grid; align-items: center;
  padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(48px, 6vw, 80px);
}
.page-hero--image::before { display: none; } /* drop grid texture over the photo */
.page-hero--image .container { position: relative; z-index: 2; }
.page-hero--image .inner { max-width: 660px; }
.ph-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../img/partner-hero.webp"); /* default; pages override inline */
  background-position: center; background-size: cover; background-repeat: no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.ph-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9,14,38,.94) 0%, rgba(9,14,38,.78) 34%, rgba(9,14,38,.42) 60%, rgba(9,14,38,.12) 100%),
    linear-gradient(180deg, rgba(9,14,38,.30) 0%, transparent 30%, rgba(9,14,38,.40) 100%),
    radial-gradient(640px 320px at 92% 8%, rgba(22,165,224,.30), transparent 60%);
}
.ph-orb {
  /* Ausgeblendet: die weichgezeichneten Farbblasen legten einen Unschärfe-/
     Schleier über das Hero-Foto. Heros sollen ein scharfes Bild zeigen. */
  display: none;
  position: absolute; z-index: 1; border-radius: 50%; pointer-events: none;
  filter: blur(46px); opacity: .55; will-change: transform;
}
.ph-orb.o1 { width: 340px; height: 340px; left: 40%; top: -12%; background: #16a5e0; animation: orbA 16s ease-in-out infinite; }
.ph-orb.o2 { width: 300px; height: 300px; right: 4%; bottom: -16%; background: #7b3ff2; animation: orbB 20s ease-in-out infinite; }
@keyframes kenburns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2.5%, -1.6%); }
}
@keyframes orbA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6%, 8%); } }
@keyframes orbB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-7%, -6%); } }
.breadcrumb { display: flex; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; font-weight: 600; }

/* ----- Helle Variante des Foto-Heros (z. B. Über Uns: helles Motiv) -----
   Kein dunkler Scrim, dunkle Schrift, ruhiges Bild (kein Ken-Burns/Orb),
   damit das helle Bild mit seinem Icon-Design zur Geltung kommt. */
/* Heller Hero-Hintergrund (auch ohne Foto, z. B. Rechtstexte). */
.page-hero--light {
  background:
    radial-gradient(820px 420px at 88% -25%, rgba(22,165,224,.18), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #eef3f9 100%);
}
.page-hero--light::before { display: none; }
.page-hero--light .btn--primary { background: var(--cyan); color: #fff; box-shadow: var(--shadow-brand); }
.page-hero--light .btn--primary:hover { background: var(--cyan-600); }
.page-hero--light .ph-photo { animation: none; background-position: center; }
.page-hero--light .ph-orb { display: none; }
/* Heller Verlauf: über der Textspalte fast deckend, nach rechts auslaufend
   (verbessert die Lesbarkeit der dunklen Schrift, gibt rechts das Foto frei). */
.page-hero--light .ph-scrim {
  background:
    linear-gradient(90deg,
      rgba(248,251,254,.97) 0%,
      rgba(248,251,254,.95) 42%,
      rgba(248,251,254,.80) 56%,
      rgba(248,251,254,.34) 70%,
      rgba(248,251,254,0) 86%),
    linear-gradient(180deg, rgba(248,251,254,.45) 0%, transparent 22%);
}
.page-hero--light h1 { color: var(--indigo-900); }
.page-hero--light p.lead { color: rgba(20,20,63,.82); font-size: clamp(1rem, 1.35vw, 1.18rem); max-width: 600px; }
.page-hero--light .breadcrumb { color: rgba(20,20,63,.55); }
.page-hero--light .breadcrumb a { color: rgba(20,20,63,.72); }
.page-hero--light .breadcrumb a:hover { color: var(--indigo-900); }
.page-hero--light .breadcrumb span { color: var(--indigo-900); }
.page-hero--light .eyebrow {
  color: #0e6f9e; background: rgba(22,165,224,.12);
  border: 1px solid rgba(22,165,224,.30); backdrop-filter: none;
}
.page-hero--light .eyebrow::before { background: #16a5e0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.info-item .ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; background: var(--cyan-50); color: var(--cyan-600); display: grid; place-items: center; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item .lbl { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.info-item .val { font-weight: 600; color: var(--ink); font-size: 1.05rem; word-break: break-word; }
.info-item a.val:hover { color: var(--cyan-600); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field--gap-top { margin-top: 18px; }
.btn--block { width: 100%; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: #fff;
  box-shadow: 0 0 0 4px rgba(22,165,224,.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm);
  background: var(--cyan-50); color: var(--cyan-600); font-weight: 600; border: 1px solid #bfe6f8;
}
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 14px; min-height: 320px; background: var(--cyan-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%2316a5e0' stroke-width='1.5'%3E%3Cpath d='M12 21s7-6.3 7-11a7 7 0 0 0-14 0c0 4.7 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / 40px no-repeat; }
.map-frame iframe { width: 100%; height: 320px; min-height: 320px; border: 0; display: block; }

/* ==========================================================================
   Bylaws (Vereinssatzung)
   ========================================================================== */
.satzung-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.satzung-toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--grad-brand); border: 1px solid transparent; border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-brand);
}
.satzung-toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.satzung-toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.88); }
.satzung-toc a:hover { background: rgba(255,255,255,.16); color: #fff; }
.satzung-body { display: grid; gap: 22px; }
.satz {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 32px; box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.satz h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; color: var(--indigo); }
.satz h3 .pgf { color: var(--cyan); font-weight: 800; }
.satz ol, .satz ul { padding-left: 22px; display: grid; gap: 10px; }
.satz ol { list-style: decimal; }
.satz ul { list-style: disc; }
.satz li { color: var(--body); }
.satz li strong { color: var(--ink); }
.satz p { margin-bottom: 10px; }
.satz .sub { font-weight: 700; color: var(--ink); margin: 4px 0 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--indigo-900); color: rgba(255,255,255,.72); padding-top: clamp(56px, 7vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand-badge { display: inline-block; }
.footer-brand-badge img { height: 46px; width: auto; }
.footer-about { margin-top: 20px; font-size: .96rem; max-width: 320px; color: rgba(255,255,255,.66); }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .96rem; color: rgba(255,255,255,.72); transition: color .18s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; margin-bottom: 11px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.04);
  transition: background .18s ease, border-color .18s ease; color:#fff;
}
.app-badge:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.app-badge svg { width: 22px; height: 22px; }
.app-badge .t { display: flex; flex-direction: column; line-height: 1.15; }
.app-badge .t small { font-size: .62rem; opacity: .7; }
.app-badge .t b { font-size: .86rem; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .9rem; color: rgba(255,255,255,.55);
}
/* KI-Zusammenfassung-Leiste (heller Hintergrund, im Freiraum unter dem Hero). */
.ai-summary-wrap { margin-top: clamp(8px, 1.5vw, 20px); margin-bottom: clamp(28px, 5vw, 64px); }
.ai-summary {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 6px 0;
}
.ai-summary__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.ai-summary__spark { width: 16px; height: 16px; color: var(--cyan); }
.ai-summary__list { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ai-summary__list a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  color: #5b6478; background: #fff; border: 1px solid var(--line);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ai-summary__list a:hover { color: var(--cyan-600); border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ai-summary__list svg { width: 20px; height: 20px; }

.footer-bottom .footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px;
  list-style: none; margin: 0; padding: 0;
}
.footer-bottom .footer-legal a { color: rgba(255,255,255,.72); transition: color .18s ease; }
.footer-bottom .footer-legal a:hover { color: var(--cyan); }
.footer-bottom .social { display: flex; gap: 10px; }
.footer-bottom .social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); transition: background .18s ease, color .18s ease;
}
.footer-bottom .social a:hover { background: var(--cyan); color: #fff; }
.footer-bottom .social svg { width: 18px; height: 18px; }

/* ----- Rechtstexte (Impressum, Datenschutz, Nutzungsbedingungen) ----- */
.legal-prose { max-width: 860px; margin: 0 auto; }
.legal-prose h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-top: 38px; }
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose h3 { font-size: 1.05rem; margin-top: 22px; }
.legal-prose p { margin-top: 12px; line-height: 1.7; }
.legal-prose ul { margin: 12px 0 0; padding-left: 22px; }
.legal-prose li { margin-top: 6px; line-height: 1.6; }
.legal-prose a { color: var(--cyan-600); text-decoration: underline; }
.legal-prose .legal-meta { color: #5b6478; font-size: .92rem; }
.legal-prose .legal-note {
  margin: 0 0 30px; padding: 14px 18px; border-radius: 12px;
  background: rgba(22,165,224,.08); border: 1px solid rgba(22,165,224,.22);
  font-size: .92rem; line-height: 1.6;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .satzung-layout { grid-template-columns: 1fr; }
  .satzung-toc { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .org { grid-template-columns: 1fr; }
  .org-intro { position: static; }
  .org-art { display: none; }
  .section-head-row { align-items: flex-start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-collapse {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 16px var(--gut) 22px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open .nav-collapse { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; margin: 0; }
  .nav-menu a { padding: 13px 14px; border-radius: 10px; font-size: 1.04rem; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-stats { gap: 22px; }
  .hero--light .hero-stats { grid-template-columns: 1fr; }
  .hero--light .hero-stats .stat { border-left: 0; border-top: 1px solid var(--line); }
  .hero--light .hero-stats .stat:first-child { border-top: 0; }
  .card { padding: 26px; }
  .btn { width: 100%; }
  .hero .btn-row .btn, .cta-inner .btn-row .btn { width: auto; }
  .btn-row { width: 100%; }
  .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lb-close { top: 0; right: 0; background: rgba(2,6,23,.5); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .card:hover, .card:hover .card-ico { transform: none; }
  .proj-cards .card:hover, .proj-cards .card:hover .card-ico { transform: none; }
  .werte-cards .card:hover, .werte-cards .card:hover .card-ico { transform: none; }
  .ag-cards .card:hover, .ag-cards .card:hover .card-ico { transform: none; }
  .proj-rows .media-frame:hover img, .proj-row:hover .pj-ico { transform: none; }
  .stack .stack-item:hover, .stack .stack-item:hover .badge { transform: none; }
  .hanger { animation: none; }
  .ph-photo, .ph-orb { animation: none; }
  .hn-link, .hn-ring { animation: none; }
}

/* ==========================================================================
   Membership (Mitgliedschaft)
   ========================================================================== */
.container--narrow { max-width: 820px; }

/* Membership community visual */
.member-visual { max-width: 940px; margin: 0 auto; }
.member-visual img { display: block; width: 100%; height: auto; }

/* Form layout */
.form-section { border: 0; padding: 0; margin: 0 0 30px; }
.form-section legend {
  font-weight: 700; color: var(--ink); font-size: 1.15rem; padding: 0;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); width: 100%;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hint { font-size: .9rem; color: var(--muted); margin: -4px 0 16px; }

/* Radio / checkbox choice cards */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-grid--check { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-bx {
  display: flex; flex-direction: column; gap: 3px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px 14px 44px; background: var(--bg);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.choice-bx::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: 2px solid #c6cee0; border-radius: 50%;
  background: #fff; transition: border-color .18s ease, background .18s ease;
}
.choice--check .choice-bx::before { border-radius: 6px; }
.choice-ttl { font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.35; }
.choice-meta { font-size: .85rem; color: var(--muted); }
.choice:hover .choice-bx { border-color: #bcd9ee; }
.choice input:focus-visible + .choice-bx { box-shadow: 0 0 0 4px rgba(22,165,224,.12); }
.choice input:checked + .choice-bx {
  border-color: var(--cyan); background: var(--cyan-50);
}
.choice input:checked + .choice-bx::before { border-color: var(--cyan); background: var(--cyan); }
.choice input:checked + .choice-bx::after {
  content: ""; position: absolute; left: 23px; top: 50%; transform: translateY(-60%) rotate(45deg);
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
}

/* Consent checkboxes */
.consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 12px 0; color: var(--body); font-size: .95rem; line-height: 1.55;
}
.consent + .consent { border-top: 1px solid var(--line); }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan); cursor: pointer; }
.consent a { color: var(--cyan-600); font-weight: 600; }
.consent a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .field-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* Application two-column layout */
.member-apply { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.member-apply .form-card { padding: clamp(24px, 3.5vw, 40px); }

/* Numbered section badge in legends */
.form-section legend { display: flex; align-items: center; gap: 12px; }
.step-no {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: inline-grid; place-items: center; font-size: .95rem; font-weight: 800;
  color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-brand);
}

/* Sticky aside */
.apply-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); }
.aside-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.aside-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.aside-card--soft { background: linear-gradient(180deg, #fff 0%, var(--cyan-50) 100%); border-color: #cfe6f6; box-shadow: var(--shadow-sm); }
.aside-card--soft p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.benefit-list { display: grid; gap: 14px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); font-weight: 500; font-size: .98rem; line-height: 1.45; }
.benefit-list svg { flex-shrink: 0; width: 22px; height: 22px; color: #fff; background: var(--cyan); border-radius: 50%; padding: 4px; margin-top: 1px; }
.aside-contact { display: grid; gap: 12px; }
.aside-contact li { display: flex; gap: 11px; align-items: center; font-weight: 600; color: var(--ink); }
.aside-contact svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--cyan-600); }
.aside-contact a:hover { color: var(--cyan-600); }

@media (max-width: 980px) {
  .member-apply { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
}

/* Honeypot (bot trap) — visually hidden, off-screen */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Form error message */
.form-error {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm);
  background: #fdecec; color: #b42318; font-weight: 600; border: 1px solid #f6c6c2;
}

/* ==========================================================================
   Visual enhancements (Design-Pass)
   ========================================================================== */

/* #1 Partner flip — larger logo on front, subtle texture + flip hint */
.flip-front { position: relative; }
.flip-front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(rgba(22,165,224,.10) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(220px 160px at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(220px 160px at 50% 40%, #000, transparent 75%);
}
/* frameless logo on the flip front (no white badge), enlarged to fill the card */
.flip-front .partner-logo:not(.is-fallback) {
  position: relative; z-index: 1;
  background: transparent; border: 0; box-shadow: none;
  width: auto; height: auto; max-width: 100%; padding: 0;
}
.flip-front .partner-logo__img { max-height: 170px; max-width: 100%; }
.flip-hint {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--cyan-600);
  text-transform: uppercase; opacity: .85;
}
.flip-hint svg { width: 15px; height: 15px; transition: transform .5s ease; }
.flip-card:hover .flip-hint svg { transform: rotate(180deg); }

/* #4 Photo banner on project preview cards (breaks out of the card's 30px padding) */
.card-photo {
  margin: -30px -30px 24px; height: 170px; overflow: hidden; position: relative;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj-cards .card:hover .card-photo img { transform: scale(1.06); }

/* #7 Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-quote-mark { font-size: 3rem; line-height: .6; color: var(--cyan); font-weight: 800; height: 24px; }
.testi-text { color: var(--body); font-size: 1.02rem; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 13px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.testi-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.testi-role { font-size: .86rem; color: var(--muted); }

/* #8 Hero scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.8); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-scroll .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.55); border-radius: 13px;
  position: relative;
}
.hero-scroll .mouse::before {
  content:""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 3px; background: #fff;
  animation: heroScroll 1.6s ease-in-out infinite;
}
@keyframes heroScroll { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* #10 Sticky header — shadow + condense on scroll */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 24px rgba(20,40,80,.10);
}
.site-header.scrolled .nav { height: 64px; transition: height .25s ease; }

@media (max-width: 860px) {
  .testi-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
}

/* ==========================================================================
   Barrierefreiheit / Accessibility preferences
   Vom Header-Button gesetzte data-Attribute auf <html>. Opt-in: greift nur,
   wenn die Nutzerin die jeweilige Option aktiv wählt. Logos/Bilder bleiben
   unangetastet; keine globalen Filter.
   ========================================================================== */

/* Größere Schrift (Basis 17px → ~19px; rem-basierte Überschriften skalieren mit). */
html[data-font-size="large"] { font-size: 112.5%; }
html[data-font-size="large"] body { font-size: 1.0625rem; }

/* Hoher Kontrast: weißer Grund, schwarzer Text, klar erkennbare Links/Ränder. */
html[data-contrast="high"] body { background: #ffffff !important; color: #000000 !important; }
html[data-contrast="high"] a { color: #0033cc !important; text-decoration: underline; }
html[data-contrast="high"] button,
html[data-contrast="high"] input,
html[data-contrast="high"] textarea,
html[data-contrast="high"] select { border-color: #000000 !important; }

/* Etwas kompaktere Header-Abstände (nur Desktop), damit der neue Barrierefreiheits-
   Button auch bei ~1280px ohne Überlauf in die Aktionsleiste passt. Das mobile
   Menü (≤860px) hat eigene Regeln und bleibt unberührt. */
@media (min-width: 861px) {
  .nav { gap: 16px; }
  .nav-cta { gap: 8px; }
  .nav-menu a { padding: 9px 12px; }
}

/* Mittlere Breiten (Tablet / kleiner Desktop, 861–1199px): Header zusätzlich
   komprimieren, damit die volle Desktop-Navigation passt, statt über den
   Viewport hinauszuwachsen (Hamburger erscheint weiterhin erst ≤860px). */
@media (min-width: 861px) and (max-width: 1199px) {
  .nav { gap: 10px; }
  .brand img { height: 36px; }
  .nav-menu { gap: 2px; }
  .nav-menu a { padding: 8px 9px; font-size: 0.9rem; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn--sm { padding: 9px 13px; font-size: 0.85rem; }
}
/* Schmaler mittlerer Bereich (861–1000px): sekundären „Mitgliedschaft"-Ghost-
   Button ausblenden (bleibt im Footer und im Mobilmenü erreichbar). */
@media (min-width: 861px) and (max-width: 1000px) {
  .nav-cta .btn--ghost { display: none; }
}

/* Mobil: Button sichtbar lassen (außerhalb der Menü-Klappe). a11y-Button nimmt
   den freien Raum (margin-left:auto) und sitzt direkt links vom Menü-Toggle. */
@media (max-width: 860px) {
  .a11y-btn { margin-left: auto; }
  .nav-toggle { order: 1; margin-left: 12px; }
}

/* Animationen aus: nur wenn ausdrücklich gewählt (entfernt Animationen nicht dauerhaft). */
html[data-animations="off"] *,
html[data-animations="off"] *::before,
html[data-animations="off"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
