/* DIGITAMA – digitama.de
   Tokens folgen der Plattform (packages/ui/src/styles/globals.css, shadcn "new-york", neutral),
   Akzente sind die Farben der DIGITAMA-Bildmarke. */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Plattform-Tokens (hell) */
  --background: oklch(1 0 0);
  --surface-sunken: oklch(0.978 0.003 247.9);
  --foreground: oklch(0.145 0.015 264);
  --card: oklch(1 0 0);
  --muted: oklch(0.97 0.005 264);
  --muted-foreground: oklch(0.46 0.012 255);
  --border: oklch(0.922 0.01 264);
  --input: oklch(0.86 0.012 264);
  --destructive: oklch(0.5 0.19 27);
  --radius: 0.5rem;

  /* DIGITAMA-Markenfarben */
  --brand-blue: #4793b3;
  --brand-yellow: #e9b95d;
  --brand-red: #a32828;
  --link: #23647f;
  --ring: #4793b3;
  --success: #1f6f4a;

  --primary: var(--foreground);
  --primary-foreground: var(--background);

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 255 / 0.06);
  --shadow-lg: 0 18px 40px -18px oklch(0.2 0.05 255 / 0.28), 0 4px 10px -6px oklch(0.2 0.05 255 / 0.12);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Michroma", var(--font-sans);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4rem;
}

/* Plattform-Tokens (dunkel) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: oklch(0.146 0.062 255.5);
  --surface-sunken: oklch(0.126 0.062 255.5);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.17 0.062 255.5);
  --muted: oklch(0.27 0.062 255.5);
  --muted-foreground: oklch(0.8 0.03 210);
  --border: oklch(0.27 0.062 255.5);
  --input: oklch(0.36 0.062 255.5);
  --destructive: oklch(0.74 0.15 25);
  --link: #8cc5dc;
  --ring: #6fb1cd;
  --success: #6fd3a3;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 40px -18px oklch(0 0 0 / 0.7), 0 4px 10px -6px oklch(0 0 0 / 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: oklch(0.146 0.062 255.5);
    --surface-sunken: oklch(0.126 0.062 255.5);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.17 0.062 255.5);
    --muted: oklch(0.27 0.062 255.5);
    --muted-foreground: oklch(0.8 0.03 210);
    --border: oklch(0.27 0.062 255.5);
    --input: oklch(0.36 0.062 255.5);
    --destructive: oklch(0.74 0.15 25);
    --link: #8cc5dc;
    --ring: #6fb1cd;
    --success: #6fd3a3;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 18px 40px -18px oklch(0 0 0 / 0.7), 0 4px 10px -6px oklch(0 0 0 / 0.5);
  }
}

/* ───────── Basis ───────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: color-mix(in oklab, var(--foreground) 28%, transparent) transparent;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--brand-blue);
}
::selection { background: var(--brand-yellow); color: #14171f; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
button, input { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.2rem + 4.6vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
p { text-wrap: pretty; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--foreground); color: var(--background);
  padding: 0.625rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Bildmarke: D folgt der Schriftfarbe, Punkte der Fläche dahinter */
.mark-d { fill: var(--foreground); }
.mark-dot { fill: var(--background); }

.wordmark {
  font-family: var(--font-brand);
  font-style: italic;
  letter-spacing: 0.04em;
  font-synthesis: style;
}

.dot { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 50%; flex: none; }
.dot-blue { background: var(--brand-blue); }
.dot-yellow { background: var(--brand-yellow); }
.dot-red { background: var(--brand-red); }
:root[data-theme="dark"] .dot-red { background: #d05555; }

/* ───────── Buttons (shadcn-Rezept der Plattform) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 1rem;
  border: 1px solid transparent; border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 150ms var(--ease-out);
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover:not(:disabled) { background: color-mix(in oklab, var(--primary) 86%, var(--background)); }
.btn-outline { background: var(--background); border-color: var(--input); color: var(--foreground); box-shadow: var(--shadow-sm); }
.btn-outline:hover:not(:disabled) { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-icon { width: 2.25rem; padding: 0; }
.btn-lg { height: 2.75rem; padding: 0 1.375rem; font-size: 0.9375rem; }
.btn .icon { transition: transform 200ms var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--foreground); text-decoration: none; }
.brand-mark { width: 2.25rem; height: 1.775rem; flex: none; }
.brand .wordmark { font-size: 1.0625rem; }
.site-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.site-nav a {
  padding: 0.5rem 0.75rem; border-radius: calc(var(--radius) - 2px);
  color: var(--muted-foreground); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color 150ms, background-color 150ms;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--foreground); }
.site-nav a:hover { background: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle { display: none; }
.icon-moon, .icon-close { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ───────── Hero ───────── */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3.5rem, 8vw, 7rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 { max-width: 11ch; }
.lead { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-origin { display: flex; align-items: baseline; gap: 0.625rem; margin-top: 2.5rem; font-size: 0.9375rem; color: var(--muted-foreground); }
.glw-dots { display: inline-flex; gap: 0.1875rem; flex: none; transform: translateY(0.05em); }
.glw-dots i { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.glw-dots i:nth-child(1) { background: var(--brand-red); }
.glw-dots i:nth-child(2) { background: var(--brand-yellow); }
.glw-dots i:nth-child(3) { background: var(--brand-blue); }

.hero-media { position: relative; padding-left: clamp(2rem, 5vw, 4rem); }
.hero-media img { width: 100%; aspect-ratio: 730 / 470; object-fit: cover; object-position: 60% 50%; border-radius: 0.875rem; box-shadow: var(--shadow-lg); }
.hero-media figcaption, .audience-media figcaption, .story-media figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.hero-bars { position: absolute; left: 0; top: 6%; width: clamp(4.25rem, 10vw, 8rem); height: auto; overflow: visible; z-index: 1; filter: drop-shadow(0 6px 10px oklch(0.2 0.05 255 / 0.18)); }
.hero-bars .bar { transform-box: fill-box; transform-origin: left center; animation: bar-in 900ms var(--ease-out) both; }
.hero-bars .b1 { animation-delay: 120ms; }
.hero-bars .b2 { animation-delay: 190ms; }
.hero-bars .b3 { animation-delay: 260ms; }
.hero-bars .b4 { animation-delay: 330ms; }
.hero-bars .b5 { animation-delay: 400ms; }
.hero-bars .b6 { animation-delay: 470ms; }
@keyframes bar-in {
  from { transform: translateX(-140%) scaleX(0.4); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

/* ───────── Abschnitte ───────── */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-sunken { background: var(--surface-sunken); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); font-size: 1.125rem; max-width: 65ch; }

/* ───────── Ablauf ───────── */
.flow { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.flow-steps { display: flex; flex-direction: column; gap: 0.375rem; }
.step {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted-foreground);
  font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer;
  transition: background-color 180ms, color 180ms, transform 240ms var(--ease-out);
}
.step:hover { color: var(--foreground); background: color-mix(in oklab, var(--foreground) 6%, transparent); }
.step-n {
  display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; flex: none;
  font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #14171f;
  background: var(--brand-blue);
}
.step:nth-child(3n + 2) .step-n { background: var(--brand-yellow); }
.step:nth-child(3n) .step-n { background: var(--brand-red); color: #fff; }
.step[aria-selected="true"] { background: var(--foreground); color: var(--background); transform: translateX(0.5rem); }

.tablet { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
.tablet-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); }
.tablet-mark { width: 1.625rem; height: 1.28rem; flex: none; }
.tablet-mark .mark-dot, .tablet .mark-dot { fill: var(--card); }
.tablet-title { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tablet-progress { display: flex; gap: 0.25rem; margin-left: auto; }
.tablet-progress i { width: 1.5rem; height: 0.375rem; border-radius: 999px; background: var(--muted); transition: background-color 300ms, width 400ms var(--ease-out); }
.tablet-progress i.is-on { background: var(--brand-blue); }
.tablet-progress i.is-on:nth-child(3n + 2) { background: var(--brand-yellow); }
.tablet-progress i.is-on:nth-child(3n) { background: var(--brand-red); }
.tablet-progress i.is-now { width: 2.5rem; }

.tablet-screen { display: grid; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.5rem, 3.5vw, 2.75rem); min-height: 19rem; }
.panel[hidden] { display: none; }
/* Alle Schritte liegen in derselben Rasterzelle: Die Höhe richtet sich nach dem längsten Schritt,
   die Knöpfe darunter bleiben beim Wechsel an ihrem Platz. */
.js .panel { grid-area: 1 / 1; align-items: start; }
.js .panel[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.js .panel-ui { align-self: stretch; }
.panel:focus-visible { outline-offset: -4px; border-radius: 0.5rem; }
.js .panel.is-entering { animation: panel-in 420ms var(--ease-out) both; }
.js .panel.is-entering.from-left { animation-name: panel-in-left; }
@keyframes panel-in { from { opacity: 0; clip-path: inset(0 0 0 12%); transform: translateX(1.5rem); } to { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes panel-in-left { from { opacity: 0; clip-path: inset(0 12% 0 0); transform: translateX(-1.5rem); } to { opacity: 1; clip-path: inset(0); transform: none; } }
.panel-text h3 { font-family: var(--font-brand); font-style: italic; font-weight: 400; font-size: clamp(1.375rem, 1rem + 1.4vw, 1.875rem); letter-spacing: 0; }
.panel-text p { margin-top: 0.875rem; color: var(--muted-foreground); max-width: 42ch; }
.panel-ui { background: var(--surface-sunken); border-radius: 0.75rem; padding: 1.25rem; min-height: 12rem; display: grid; align-content: center; }
.tablet-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.25rem; border-top: 1px solid var(--border); }
.tablet-count { font-size: 0.875rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.flow-note { grid-column: 2; font-size: 0.875rem; color: var(--muted-foreground); }

/* Panel-Inhalte */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 0.5rem; background: #14171f; display: grid; place-items: center; overflow: hidden; }
.video::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(to right, var(--brand-yellow) 38%, #ffffff33 38%); }
.video-play { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: #14171f; }
.video-play .icon { fill: currentColor; stroke: none; width: 1.125rem; height: 1.125rem; margin-left: 2px; }
.video-label { position: absolute; left: 0.75rem; top: 0.625rem; font-size: 0.75rem; font-weight: 500; color: #ffffffcc; }
.doc-lines { display: grid; gap: 0.5rem; margin-top: 1rem; }
.doc-lines li { height: 0.5rem; border-radius: 999px; background: color-mix(in oklab, var(--foreground) 12%, transparent); }
.doc-lines li:nth-child(2) { width: 82%; }
.doc-lines li:nth-child(3) { width: 56%; }

.checklist legend, .rating legend { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.75rem; }
.checklist label, .rating label { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.625rem; margin-inline: -0.625rem; border-radius: 0.375rem; cursor: pointer; font-size: 0.9375rem; transition: background-color 150ms; }
.checklist label:hover, .rating label:hover { background: color-mix(in oklab, var(--foreground) 6%, transparent); }
.checklist input, .rating input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--brand-blue); flex: none; }
.checklist input:checked + span { color: var(--muted-foreground); text-decoration: line-through; }

.approval { display: grid; gap: 1rem; justify-items: start; }
.approval-state { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; font-weight: 500; }
.approval.is-requested .dot { background: var(--brand-blue); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.worksteps { display: grid; gap: 0.375rem; counter-reset: ws; }
.worksteps li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.9375rem; color: var(--muted-foreground); counter-increment: ws; }
.worksteps li::before { content: counter(ws); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--input); font-size: 0.75rem; font-variant-numeric: tabular-nums; flex: none; }
.worksteps li.is-done::before { display: none; }
.worksteps li.is-done .icon { width: 1.5rem; height: 1.5rem; padding: 0.3rem; border-radius: 50%; background: var(--brand-blue); color: #14171f; stroke-width: 3; }
.worksteps li.is-current { background: var(--card); color: var(--foreground); font-weight: 600; box-shadow: var(--shadow-sm); }
.worksteps li.is-current::before { background: var(--brand-yellow); border-color: transparent; color: #14171f; }

.measure { display: grid; gap: 0.5rem; }
.measure-target { font-size: 0.9375rem; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.measure-target strong { color: var(--foreground); font-variant-numeric: tabular-nums; }
.measure label { font-size: 0.875rem; font-weight: 500; }
.measure-row { display: flex; gap: 0.5rem; }
.measure input {
  flex: 1; min-width: 0; height: 2.25rem; padding: 0 0.75rem;
  background: var(--card); border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px);
  font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm);
  transition: border-color 150ms, box-shadow 150ms;
}
.measure input::placeholder { color: var(--muted-foreground); opacity: 1; }
.measure input:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 35%, transparent); }
.measure-feedback { display: flex; align-items: flex-start; gap: 0.5rem; min-height: 4.2rem; font-size: 0.9375rem; line-height: 1.4; }
.measure-feedback .icon { margin-top: 0.2rem; }
.measure-feedback.is-ok { color: var(--success); }
.measure-feedback.is-off, .measure-feedback.is-error { color: var(--destructive); }
.measure-feedback.is-pop { animation: pop 360ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* ───────── Zielgruppen ───────── */
.audience-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.audience { margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.audience > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--border); }
.audience > div:last-child { border-bottom: 1px solid var(--border); }
.audience dt { display: flex; align-items: baseline; gap: 0.625rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.audience dt .dot { transform: translateY(-0.05em); }
.audience dd { color: var(--muted-foreground); max-width: 52ch; }
.audience-media { position: sticky; top: calc(var(--header-h) + 2rem); }
.audience-media img, .story-media img { width: 100%; border-radius: 0.875rem; }

/* ───────── Projekt ───────── */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.timeline { position: relative; display: grid; gap: 2.25rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 0.3125rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--border); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -2rem; top: 0.375rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 4px var(--surface-sunken); }
.timeline li:nth-child(2)::before { background: var(--brand-yellow); }
.timeline li:nth-child(3)::before { background: var(--brand-blue); }
.timeline-when { font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.timeline h3 { margin-top: 0.25rem; }
.timeline li > p:last-child { margin-top: 0.5rem; color: var(--muted-foreground); max-width: 58ch; }

.partners { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 3rem; }
.partners ul { display: grid; gap: 1.25rem; }
.partners li { display: grid; gap: 0.125rem; }
.partners li span { color: var(--muted-foreground); font-size: 0.9375rem; }

.funding { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.funding-plate { background: #fff; border: 1px solid var(--border); border-radius: 0.75rem; padding: clamp(0.5rem, 2vw, 1.25rem) clamp(0.75rem, 3vw, 2rem); overflow-x: auto; }
.funding-plate img { min-width: 40rem; width: 100%; }
.funding figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ───────── Kontakt ───────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy p { margin-top: 1rem; max-width: 52ch; color: var(--muted-foreground); font-size: 1.125rem; }
.contact-copy .contact-login { margin-top: 2rem; font-size: 1rem; color: var(--foreground); }
.contact-login a { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 600; }
.contact-login a .icon { transition: transform 200ms var(--ease-out); }
.contact-login a:hover .icon { transform: translateX(3px); }
.contact-card { border: 1px solid var(--border); border-radius: 0.875rem; padding: 1.75rem; background: var(--card); }
.contact-logo { display: inline-block; background: #fff; padding: 0.5rem 0.75rem; border-radius: 0.5rem; margin: -0.5rem 0 1.25rem -0.75rem; }
.contact-logo img { width: 9.5rem; }
.contact-name { font-weight: 600; }
.contact-card ul { display: grid; gap: 0.75rem; margin-top: 1rem; }
.contact-card li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-card li .icon { margin-top: 0.35rem; color: var(--muted-foreground); }

/* ───────── Footer ───────── */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; font-size: 0.9375rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.875rem; }
.footer-brand p { max-width: 36rem; color: var(--muted-foreground); }
.footer-brand .wordmark { color: var(--foreground); font-size: 0.875rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--foreground); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav .icon { width: 0.875rem; height: 0.875rem; color: var(--muted-foreground); }
.footer-copy { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted-foreground); }

/* ───────── Weiterleitungsseite ───────── */
.redirect { min-height: 100svh; display: grid; place-items: center; padding: 2rem; text-align: center; }
.redirect .brand-mark { width: 5rem; height: 3.95rem; margin: 0 auto 1.5rem; }
.redirect h1 { font-size: 1.5rem; letter-spacing: -0.02em; }
.redirect p { margin-top: 0.75rem; color: var(--muted-foreground); }
.redirect .btn { margin-top: 1.5rem; }

/* ───────── Responsiv ───────── */
@media (max-width: 60rem) {
  .hero-grid, .audience-grid, .story, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 14ch; }
  .audience-media { position: static; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-steps { flex-direction: row; overflow-x: auto; padding-bottom: 0.25rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .flow-steps::-webkit-scrollbar { display: none; }
  .step { flex: none; }
  .step[aria-selected="true"] { transform: none; }
  .flow-note { grid-column: 1; }
  .partners { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 0.5rem var(--gutter) 1rem;
    background: var(--background); border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.875rem 0.25rem; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: 0; }
  .header-actions { margin-left: auto; }
  .panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tablet-progress i { width: 0.75rem; }
  .tablet-progress i.is-now { width: 1.25rem; }
  .tablet-count { display: none; }
  .audience > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 26rem) {
  .brand .wordmark { font-size: 0.9375rem; }
  .header-inner { gap: 0.75rem; }
  [data-theme-toggle] { display: none; }
  .hero-actions .btn { width: 100%; }
}

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

@media print {
  .site-header, .hero-actions, .tablet-foot, .skip-link { display: none; }
  .js .panel, .js .panel[hidden] { display: grid; grid-area: auto; visibility: visible; }
}
