/* ==========================================================================
   zellreform.com — Stylesheet
   Keine externen Abhaengigkeiten (keine Google Fonts, kein CDN) -> DSGVO-konform
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Marke */
  --violet-900: #2a0b3d;
  --violet-800: #3d1259;
  --violet-700: #5a1a80;
  --violet-600: #7b23a8;
  --violet-500: #9b30c9;
  --magenta-500: #c2359e;
  --magenta-400: #d94fb3;
  --gold-500: #d9a441;
  --gold-400: #e8bd6b;

  /* Flaechen */
  --bg: #ffffff;
  --bg-alt: #f7f4fa;
  --bg-sunken: #efe9f5;
  --surface: #ffffff;
  --border: #e2d8ec;
  --border-strong: #cbbcdc;

  /* Text */
  --text: #1e1526;
  --text-muted: #5c5068;
  --text-invert: #ffffff;
  --text-invert-muted: rgba(255, 255, 255, .78);

  --link: var(--violet-700);
  --link-hover: var(--magenta-500);

  /* Masse */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(42, 11, 61, .06), 0 2px 8px rgba(42, 11, 61, .05);
  --shadow-md: 0 4px 12px rgba(42, 11, 61, .08), 0 12px 32px rgba(42, 11, 61, .08);
  --shadow-lg: 0 8px 24px rgba(42, 11, 61, .10), 0 24px 64px rgba(42, 11, 61, .12);

  --header-h: 76px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16101d;
    --bg-alt: #1d1526;
    --bg-sunken: #241a30;
    --surface: #1f1729;
    --border: #362a45;
    --border-strong: #4a3a5c;
    --text: #f0eaf6;
    --text-muted: #b6a8c4;
    --link: #d9a8f0;
    --link-hover: var(--magenta-400);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --bg: #16101d;
  --bg-alt: #1d1526;
  --bg-sunken: #241a30;
  --surface: #1f1729;
  --border: #362a45;
  --border-strong: #4a3a5c;
  --text: #f0eaf6;
  --text-muted: #b6a8c4;
  --link: #d9a8f0;
  --link-hover: var(--magenta-400);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
button, input, textarea, select { font: inherit; color: inherit; }

:where(h1, h2, h3, h4) {
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--magenta-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
.section--sunken { background: var(--bg-sunken); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--violet-600);
  margin-bottom: .85rem;
}
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-400); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--magenta-400); }
  :root:not([data-theme="light"]) .hero .eyebrow,
  :root:not([data-theme="light"]) .page-hero .eyebrow,
  :root:not([data-theme="light"]) .cta-band .eyebrow { color: var(--gold-400); }
}

.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); color: var(--text-muted); }
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--violet-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { background: linear-gradient(120deg, var(--violet-600), var(--magenta-500)); color: #fff; }
.btn--gold { background: linear-gradient(120deg, var(--gold-500), var(--gold-400)); color: #2a0b3d; }
.btn--gold:hover { color: #2a0b3d; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--text); border-color: var(--violet-500); background: rgba(155, 48, 201, .07); }
.btn--on-dark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--sm { padding: .55rem 1.1rem; min-height: 40px; font-size: .93rem; }
.btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - 1.75rem, var(--wrap));
}

/* Nichts in der Kopfzeile darf unter seine Inhaltsbreite gestaucht werden –
   sonst laufen Markenname und Navigation ineinander. */
.site-header .wrap > * { flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
/* Das Logo hat dunkle Schrift auf transparentem Grund und waere im
   dunklen Design unsichtbar – dort wird es weiss eingefaerbt. */
:root[data-theme="dark"] .brand img { filter: brightness(0) invert(1); opacity: .92; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: brightness(0) invert(1); opacity: .92; }
  :root[data-theme="light"] .brand img { filter: none; opacity: 1; }
}
.brand__name { display: none; font-weight: 750; letter-spacing: -.02em; color: var(--text); font-size: 1.05rem; line-height: 1.2; }
@media (min-width: 420px) { .brand__name { display: block; } }
.brand__name small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* Die Leiste hat sieben Punkte; unter 1150px wird sie zu eng und
   das Burger-Menue uebernimmt. */
.nav { display: none; }
@media (min-width: 1150px) { .nav { display: flex; align-items: center; gap: .25rem; } }
.nav a {
  padding: .5rem .7rem;
  border-radius: var(--radius-pill);
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  font-size: .98rem;
  white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--bg-sunken); color: var(--violet-700); }
.nav a[aria-current="page"] { color: var(--violet-700); background: var(--bg-sunken); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a:hover,
  :root:not([data-theme="light"]) .nav a[aria-current="page"] { color: var(--magenta-400); }
}

.header-cta { display: none; }
@media (min-width: 1300px) { .header-cta { display: inline-flex; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.icon-btn:hover { background: var(--bg-sunken); }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1150px) { .nav-toggle { display: none; } }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
  :root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
}

/* Mobile Menue */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1rem 0 1.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.mobile-nav[data-open="true"] { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a {
  display: block;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  font-size: 1.06rem;
}
.mobile-nav a.btn { border-bottom: 0; color: #fff; justify-content: center; }
.mobile-nav .btn { margin-top: 1rem; width: 100%; }
@media (min-width: 1150px) { .mobile-nav { display: none; } }

.skip-link {
  position: absolute;
  left: 50%;
  top: .5rem;
  transform: translate(-50%, -200%);
  z-index: 200;
  padding: .7rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--violet-700);
  color: #fff;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-invert);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(217, 79, 179, .5), transparent 60%),
    radial-gradient(100% 100% at 88% 15%, rgba(123, 35, 168, .55), transparent 62%),
    linear-gradient(160deg, #35104d 0%, #2a0b3d 45%, #1c0729 100%);
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem);
}
/* Wortwolke dezent im Hintergrund – nach rechts ausgeblendet,
   damit die Headline auf ruhigem Grund steht. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/hero-cloud.jpg");
  background-size: cover;
  background-position: center right;
  opacity: .08;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(100deg, transparent 12%, #000 62%);
  mask-image: linear-gradient(100deg, transparent 12%, #000 62%);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { color: #fff; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-400), #f5d99a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--text-invert-muted); font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem); margin-top: 1.25rem; max-width: 54ch; }
.hero .btn-row { margin-top: 2.25rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__meta div strong { display: block; font-size: 1.5rem; color: var(--gold-400); letter-spacing: -.02em; line-height: 1.2; }
.hero__meta div span { font-size: .88rem; color: var(--text-invert-muted); }

/* Oszillator-Grafik */
.oscillator { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; }
.oscillator svg { width: 100%; height: 100%; overflow: visible; }
/* transform-origin bezieht sich bei SVG auf die viewBox (transform-box: view-box),
   50% 50% ist damit exakt die Mitte 200/200 – dort sitzen auch alle Kreise. */
.oscillator .ring { fill: none; stroke: rgba(232, 189, 107, .5); transform-origin: 50% 50%; }
.oscillator .ring--a { animation: ringPulse 6s var(--ease) infinite; }
.oscillator .ring--b { animation: ringPulse 6s var(--ease) infinite .5s; }
.oscillator .ring--c { animation: ringPulse 6s var(--ease) infinite 1s; }
.oscillator .ring--d { animation: ringPulse 6s var(--ease) infinite 1.5s; }
.oscillator .ring--e { animation: ringPulse 6s var(--ease) infinite 2s; }
.oscillator .ring--f { animation: ringPulse 6s var(--ease) infinite 2.5s; }
@keyframes ringPulse {
  0%, 100% { opacity: .2; transform: scale(.96); }
  50%      { opacity: .95; transform: scale(1.04); }
}
/* Wer reduzierte Bewegung eingestellt hat, sieht dieselben Grafiken – still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .oscillator .ring,
  .wave-drift,
  .wf,
  .card:hover .card__icon { animation: none !important; }
  .oscillator .ring { opacity: .5; }
  .oscillator .emit { animation: none !important; opacity: .3; transform: scale(.6); }
}

/* ---------- Schwingungseffekte ---------- */

/* Wellenband: zwei Ebenen, die unterschiedlich schnell durchlaufen.
   Die Pfade sind doppelt so breit wie die viewBox, der Versatz betraegt
   genau eine Periode – dadurch ist die Schleife nahtlos. */
.wave-divider { display: block; width: 100%; height: clamp(38px, 5vw, 80px); }
.wave-divider path { fill: var(--bg); }
.wave-divider--alt path { fill: var(--bg-alt); }
.wave-divider .wave-drift--slow path { opacity: .45; }

.wave-drift { will-change: transform; }
.wave-drift--slow { animation: driftSlow 23s linear infinite; }
.wave-drift--fast { animation: driftFast 14s linear infinite; }
@keyframes driftSlow { to { transform: translateX(-480px); } }
@keyframes driftFast { to { transform: translateX(-720px); } }

/* Oszilloskop: vier Frequenzen, die mit eigener Geschwindigkeit laufen. */
.waveform {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(217, 79, 179, .3), transparent 60%),
    linear-gradient(150deg, #35104d, #1c0729);
  box-shadow: var(--shadow-lg);
}
.waveform svg { width: 100%; aspect-ratio: 3 / 2; display: block; }
.waveform figcaption {
  padding: .9rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .68);
}
.wf-grid path { stroke: rgba(255, 255, 255, .09); stroke-width: 1; fill: none; }
.wf { will-change: transform; filter: drop-shadow(0 0 6px rgba(217, 79, 179, .35)); }
.wf--1 { animation: wf1 9s linear infinite; }
.wf--2 { animation: wf2 7s linear infinite; }
.wf--3 { animation: wf3 5s linear infinite; }
.wf--4 { animation: wf4 3.5s linear infinite; }
@keyframes wf1 { to { transform: translateX(-300px); } }
@keyframes wf2 { to { transform: translateX(-200px); } }
@keyframes wf3 { to { transform: translateX(-150px); } }
@keyframes wf4 { to { transform: translateX(-120px); } }

/* Abgestrahlte Wellen aus der Mitte des Oszillators. */
.oscillator .emit {
  fill: none;
  stroke: rgba(232, 189, 107, .55);
  stroke-width: 1.5;
  transform-origin: 50% 50%;
  animation: emit 5s var(--ease) infinite;
}
.oscillator .emit--2 { animation-delay: 1.66s; }
.oscillator .emit--3 { animation-delay: 3.33s; }
@keyframes emit {
  0%   { transform: scale(.16); opacity: 0; }
  12%  { opacity: .8; }
  100% { transform: scale(1); opacity: 0; }
}

/* Ein Puls, der beim Zeigen durch das Icon laeuft. */
@media (prefers-reduced-motion: no-preference) {
  .card:hover .card__icon { animation: resonate 1.1s var(--ease); }
}
@keyframes resonate {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.09); }
  60%      { transform: scale(.98); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1.1rem, .6rem + 1.6vw, 1.85rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* Vier Karten: 1 / 2x2 / 4 – nie 3+1, das wirkt wie ein Fehler. */
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 580px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  padding: clamp(1.4rem, 1rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .99rem; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.15rem;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(155, 48, 201, .16), rgba(194, 53, 158, .16));
  color: var(--violet-600);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card__icon { color: var(--magenta-400); }
}
:root[data-theme="dark"] .card__icon { color: var(--magenta-400); }
.card__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.card--num { padding-top: 1.9rem; }
.card__num {
  font-size: 2.6rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--violet-600), var(--magenta-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .8rem;
}

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.75rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
}
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split__body > * + * { margin-top: 1.1rem; }
.split__body h2 + p { margin-top: 1.35rem; }

.pullquote {
  margin-block: 2rem;
  padding: 1.35rem 0 1.35rem 1.5rem;
  border-left: 4px solid var(--magenta-500);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.55rem);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--text);
}
.pullquote cite { display: block; margin-top: .7rem; font-size: .92rem; font-style: normal; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

/* Checkliste */
.checklist { list-style: none; padding: 0; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2.1rem; color: var(--text-muted); }
.checklist li strong { color: var(--text); display: block; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--violet-600), var(--magenta-500));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Testimonials ---------- */
.testimonials { columns: 1; column-gap: clamp(1.1rem, .6rem + 1.6vw, 1.75rem); }
@media (min-width: 720px) { .testimonials { columns: 2; } }
@media (min-width: 1080px) { .testimonials { columns: 3; } }

.testimonial {
  break-inside: avoid;
  margin: 0 0 clamp(1.1rem, .6rem + 1.6vw, 1.75rem);
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote { font-size: .99rem; color: var(--text-muted); }
.testimonial blockquote p + p { margin-top: .8rem; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-weight: 650;
  font-size: .95rem;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-600), var(--magenta-500));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
/* Wer anonym bleiben wollte, bekommt keine Initialen. */
.avatar--anon { background: var(--bg-sunken); color: var(--text-muted); }
.avatar--anon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Langer Teil einer Rueckmeldung: eingeklappt, bis der Knopf ihn oeffnet. */
.testimonial__more { display: none; }
.testimonial__more[data-open="true"] { display: block; }
.testimonial__toggle {
  margin-top: .6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.testimonial__toggle:hover { color: var(--link-hover); }

/* ---------- Der Anlass: Portraet ----------
   Klein und zentriert ueber dem Text. Die Ringe greifen das Motiv des
   Oszillators auf, damit das Bild zur Bildsprache der Seite gehoert. */
.portraet {
  margin: 0 auto clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  text-align: center;
}

.portraet__bild {
  position: relative;
  width: clamp(190px, 19vw, 260px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
/* Warmer Schein hinter dem Kopf */
.portraet__bild::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 189, 107, .3) 0%, rgba(194, 53, 158, .16) 45%, transparent 70%);
  filter: blur(20px);
}
.portraet__bild img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 26px rgba(42, 11, 61, .28);
}

/* Ringe ragen ueber das Bild hinaus und pulsieren dezent. */
.portraet__ringe {
  position: absolute;
  inset: -28%;
  width: 156%;
  height: 156%;
  overflow: visible;
}
.portraet__ringe circle {
  fill: none;
  stroke: var(--violet-500);
  stroke-width: .8;
  opacity: .3;
  transform-origin: 50% 50%;
  animation: ringPulse 6s var(--ease) infinite;
}
.portraet__ringe circle:nth-child(2) { animation-delay: .8s; }
.portraet__ringe circle:nth-child(3) { animation-delay: 1.6s; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .portraet__ringe circle { stroke: var(--gold-400); opacity: .34; }
}
:root[data-theme="dark"] .portraet__ringe circle { stroke: var(--gold-400); opacity: .34; }
@media (prefers-reduced-motion: reduce) {
  .portraet__ringe circle { animation: none !important; }
}

.portraet figcaption {
  margin-top: 1.1rem;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.portraet figcaption strong {
  display: block;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--text);
}

/* ---------- Anklickbare Fotos ----------
   Jedes vergroesserbare Bild sitzt in einem Knopf: so ist es auch per Tastatur
   erreichbar und Screenreader melden es als Schaltflaeche. */
.lupe {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.lupe img { display: block; width: 100%; }

/* Schleier und Lupe erscheinen beim Zeigen */
.lupe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 7, 41, .55), rgba(28, 7, 41, .12) 55%, transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.lupe__zeichen {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--violet-800);
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.lupe__zeichen svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (hover: hover) {
  .lupe:hover::after { opacity: 1; }
  .lupe:hover .lupe__zeichen { opacity: 1; transform: none; }
}
/* Bei Tastaturbedienung dasselbe zeigen */
.lupe:focus-visible::after { opacity: 1; }
.lupe:focus-visible .lupe__zeichen { opacity: 1; transform: none; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lupe img { transition: transform .45s var(--ease); }
  .lupe:hover img { transform: scale(1.06); }
}

/* ---------- Lichtbox ---------- */
.lichtbox {
  /* Die Reset-Regel * { margin: 0 } setzt das margin:auto ausser Kraft, mit dem
     der Browser einen Dialog zentriert - hier wieder herstellen. */
  margin: auto;
  width: min(100vw - 2rem, 1400px);
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: #fff;
}
.lichtbox::backdrop { background: rgba(10, 2, 18, .88); backdrop-filter: blur(4px); }

.lichtbox__inhalt {
  margin: 0;
  display: grid;
  gap: .85rem;
  justify-items: center;
}
.lichtbox__inhalt img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.lichtbox__inhalt figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .3rem .85rem;
  text-align: center;
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
}
.lichtbox__zaehler { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .5); }

.lichtbox__knopf {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.lichtbox__knopf:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.lichtbox__knopf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lichtbox__zu { top: 1rem; right: 1rem; }
.lichtbox__zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lichtbox__vor { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lichtbox__zurueck { left: 1rem; top: auto; bottom: 1rem; transform: none; }
  .lichtbox__vor { right: 1rem; top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .lichtbox[open] { animation: lichtboxRein .25s var(--ease); }
}
@keyframes lichtboxRein {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Einwilligung fuer die Webanalyse ---------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: clamp(.75rem, 2vw, 1.5rem);
  transform: translateX(-50%);
  z-index: 120;
  width: min(100% - 1.5rem, 680px);
}
.consent[hidden] { display: none; }

.consent__box {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.1rem, .8rem + 1vw, 1.5rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 620px) {
  .consent__box { grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
}
.consent__titel { font-size: 1.05rem; margin-bottom: .35rem; }
.consent__text { font-size: .92rem; line-height: 1.6; color: var(--text-muted); }
.consent__aktionen { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 620px) { .consent__aktionen { flex-direction: column; } }
.consent__aktionen .btn { white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consentRein .35s var(--ease); }
}
@keyframes consentRein {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 650;
  font-size: 1.04rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: var(--violet-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { background: var(--bg-alt); }
.faq__body { padding: 0 1.35rem 1.35rem; color: var(--text-muted); }
.faq__body > * + * { margin-top: .8rem; }

/* ---------- Zwei Bauformen ---------- */
.bauformen { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
@media (min-width: 820px) { .bauformen { grid-template-columns: 1fr 1fr; } }

.bauform {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.bauform:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bauform img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.bauform__text { padding: clamp(1.2rem, .9rem + 1vw, 1.7rem); }
.bauform__text h3 { margin-bottom: .5rem; }
.bauform__text p { color: var(--text-muted); font-size: .99rem; }

/* Bedienfeld als breiter Streifen unter den beiden Karten */
.bedienfeld {
  position: relative;
  margin: clamp(1.5rem, 1rem + 2vw, 2.25rem) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bedienfeld img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
@media (min-width: 820px) { .bedienfeld img { aspect-ratio: 16 / 5; } }
.bedienfeld figcaption {
  position: absolute;
  left: clamp(.9rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.15rem);
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  background: rgba(28, 7, 41, .6);
  backdrop-filter: blur(8px);
  font-size: .8rem;
  color: rgba(255, 255, 255, .85);
}

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery--werkstatt { overflow: visible; }
.gallery--werkstatt img { border-radius: var(--radius); }

/* ---------- Werkstatt-Galerie ---------- */
.werkstatt-titel {
  margin-bottom: 1.25rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Sechs Bilder: feste Spaltenzahl, damit keine angebrochene Reihe entsteht. */
.gallery--werkstatt { grid-template-columns: 1fr; }
@media (min-width: 480px) { .gallery--werkstatt { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery--werkstatt { grid-template-columns: repeat(3, 1fr); } }
.gallery--werkstatt img { aspect-ratio: 4 / 3; }
.gallery--werkstatt .lupe { border-radius: var(--radius); box-shadow: var(--shadow-sm); }


/* ---------- Bildband: Antennenscheibe in voller Breite ----------
   Die Tiefenschaerfe ist bereits ins Bild gerechnet; hier kommt nur noch
   der Anschnitt und die weiche Kante zur Seitenflaeche dazu. */
.bildband {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: var(--violet-900);
}
.bildband img {
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 460px);
  object-fit: cover;
  object-position: center;
}
/* Oben und unten in die Seitenflaeche auslaufen lassen. */
.bildband::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, transparent 14%, transparent 86%, var(--violet-900) 100%);
}
.bildband figcaption {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(.9rem, 2.5vw, 1.6rem);
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  background: rgba(28, 7, 41, .62);
  backdrop-filter: blur(8px);
  font-size: .82rem;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .82);
}

/* ---------- Kontakt / CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 140% at 15% 20%, rgba(217, 79, 179, .55), transparent 62%),
    linear-gradient(135deg, var(--violet-700), var(--violet-900));
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-invert-muted); }

.contact-grid { display: grid; gap: clamp(1.6rem, 1rem + 2.5vw, 3rem); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact-list a, .contact-list > li > span {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.contact-list a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; transform: translateX(3px); }
.contact-list svg { flex: 0 0 auto; width: 22px; height: 22px; stroke: var(--gold-400); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-weight: 450; font-size: .8rem; color: var(--text-invert-muted); letter-spacing: .02em; }

/* ---------- Hinweis ---------- */
.notice {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .95rem;
}
.notice strong { color: var(--text); }
.notice > * + * { margin-top: .7rem; }
.notice ul { margin: .7rem 0 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.notice li::marker { color: var(--gold-500); }

/* Ausschlusskriterien – deutlicher abgesetzt als ein normaler Hinweis. */
.notice--warn {
  border-left-color: var(--magenta-500);
  background: linear-gradient(180deg, rgba(194, 53, 158, .07), transparent);
  border-color: color-mix(in srgb, var(--magenta-500) 30%, var(--border));
}
.notice--warn li::marker { color: var(--magenta-500); }

/* ---------- Fliesstext-Seiten ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--violet-600); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7rem .9rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 650; }
.table-scroll { overflow-x: auto; }

.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  color: #fff;
  background:
    radial-gradient(100% 130% at 20% 0%, rgba(217, 79, 179, .45), transparent 60%),
    linear-gradient(140deg, #35104d, #1c0729);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--text-invert-muted); margin-top: 1rem; max-width: 62ch; }

.breadcrumb { font-size: .88rem; margin-bottom: 1rem; color: var(--text-invert-muted); }
.breadcrumb a { color: var(--gold-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--gold-400); }

.toc {
  padding: 1.35rem 1.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc h2 { font-size: .82rem; margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.toc a { text-decoration: none; font-weight: 550; }
.toc a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--violet-900);
  color: var(--text-invert-muted);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: .95rem;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
/* Das Logo liegt nur als transparente Datei mit dunkler Schrift vor.
   Auf dem dunklen Footer wird es daher rein weiss eingefaerbt. */
.site-footer img.footer-logo {
  height: 58px;
  width: auto;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: rgba(255, 255, 255, .85);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .88rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.disclaimer {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
}

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--violet-700);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll-Einblendung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Das Modell: drei Zellzustaende ---------- */
.zellstufen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 2.75rem);
}
@media (min-width: 800px) {
  .zellstufen { grid-template-columns: repeat(3, 1fr); }
}

.zellstufe { position: relative; text-align: center; }
.zellstufe h3 { margin-bottom: .5rem; }
.zellstufe p { color: var(--text-muted); font-size: .97rem; max-width: 34ch; margin-inline: auto; }

/* Pfeil zwischen den Stufen: quer auf breiten, senkrecht auf schmalen Schirmen. */
.zellstufe:not(:last-child)::after {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 1.25rem auto 0;
  background: var(--violet-500);
  opacity: .45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 800px) {
  .zellstufe:not(:last-child)::after {
    position: absolute;
    top: clamp(80px, 9vw, 110px);
    right: calc(-13px - clamp(1rem, .5rem + 1.5vw, 1.4rem));
    margin: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
  }
}

.zellstufe__bild {
  width: clamp(170px, 20vw, 220px);
  margin: 0 auto 1.25rem;
  aspect-ratio: 1;
}
.zellstufe__bild svg { width: 100%; height: 100%; overflow: visible; }

/* Kern und Glanzpunkt */
.zs-kern { fill: rgba(255, 255, 255, .82); }
.zs-glanz { fill: rgba(255, 255, 255, .62); }
.zs-zelle { filter: drop-shadow(0 6px 14px rgba(42, 11, 61, .22)); }

/* Ringe: gleichmaessig, leicht unruhig, deutlich gestoert */
.zs-ringe circle { fill: none; stroke: var(--violet-500); stroke-width: 1.1; opacity: .28; transform-origin: 50% 50%; }
.zs-ringe--ruhig circle { animation: ringPulse 6s var(--ease) infinite; }
.zs-ringe--ruhig circle:nth-child(2) { animation-delay: .7s; }
.zs-ringe--ruhig circle:nth-child(3) { animation-delay: 1.4s; }

.zs-ringe--unruhig circle { stroke-dasharray: 34 12; animation: ringPulse 4.4s var(--ease) infinite, ringDreht 26s linear infinite; }
.zs-ringe--unruhig circle:nth-child(2) { animation-delay: .5s, -8s; }
.zs-ringe--unruhig circle:nth-child(3) { animation-delay: 1s, -16s; }

.zs-ringe--gestoert circle { stroke: var(--magenta-500); stroke-dasharray: 9 15; opacity: .38; animation: ringDreht 14s linear infinite; }
.zs-ringe--gestoert circle:nth-child(2) { animation-duration: 19s; animation-direction: reverse; }
.zs-ringe--gestoert circle:nth-child(3) { animation-duration: 11s; }
@keyframes ringDreht { to { transform: rotate(360deg); } }

/* Zellform geraet in Bewegung */
.zs-zelle--wackelt { transform-origin: 50% 50%; animation: wackelt 7s ease-in-out infinite; }
@keyframes wackelt {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33%      { transform: rotate(2.5deg) scale(1.015); }
  66%      { transform: rotate(-2deg) scale(.99); }
}
.zs-zelle--verformt { transform-origin: 50% 50%; animation: verformt 5s ease-in-out infinite; }
@keyframes verformt {
  0%, 100% { transform: rotate(-2deg) scale(.985); }
  50%      { transform: rotate(3deg) scale(1.025); }
}

/* Teilchen: von aussen heran, innen unruhig */
.zs-teilchen circle { fill: var(--magenta-500); transform-origin: 100px 100px; }
.zs-teilchen circle { animation: teilchenRein 4.5s ease-in-out infinite; }
.zs-teilchen circle:nth-child(2) { animation-delay: .7s; }
.zs-teilchen circle:nth-child(3) { animation-delay: 1.4s; }
.zs-teilchen circle:nth-child(4) { animation-delay: 2.1s; }
.zs-teilchen circle:nth-child(5) { animation-delay: 2.8s; }
.zs-teilchen circle:nth-child(6) { animation-delay: 3.5s; }
@keyframes teilchenRein {
  0%      { transform: scale(1);   opacity: 0; }
  25%     { opacity: .95; }
  100%    { transform: scale(.42); opacity: 0; }
}

.zs-teilchen--innen circle { animation: teilchenInnen 3.2s ease-in-out infinite; transform-origin: center; }
.zs-teilchen--innen circle:nth-child(even) { animation-duration: 4.1s; }
@keyframes teilchenInnen {
  0%, 100% { opacity: .55; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .zs-ringe circle,
  .zs-zelle--wackelt,
  .zs-zelle--verformt,
  .zs-teilchen circle { animation: none !important; }
  .zs-teilchen circle { opacity: .9; }
}

/* ---------- Hilfsklassen ----------
   Ersetzen frueher genutzte style-Attribute. Die Content-Security-Policy
   erlaubt style-src 'self' ohne 'unsafe-inline' – inline gesetzte Stile
   wuerden vom Browser verworfen. */
.u-blank { padding: 0; }
.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: 1rem; }
.u-mt-2 { margin-top: 2.5rem; }
.u-mt-gross { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.u-intro { margin-top: 1.1rem; font-size: 1.1rem; }
.u-klein { font-size: .95rem; }
.u-zentriert { margin-inline: auto; }
.u-nackt { margin-top: 0; border-top: 0; padding-top: 0; }
.u-vollhoehe { min-height: 100svh; display: grid; align-items: center; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack > * + * { margin-top: 1.1rem; }

@media print {
  .site-header, .mobile-nav, .to-top, .cta-band { display: none !important; }
  body { color: #000; background: #fff; }
}
