/* Menü und Inhaltsseiten: Glasboxen über dem Meer, Inhaltsverzeichnis, Einblend-Effekte.
   Systemschriften, keine externen Ressourcen. */
:root {
  --ink: #F1FAFB;
  --muted: rgba(226, 243, 248, .74);
  --line: #5CE8E6;
  --cyan: #5CE8E6;
  --blue: #60A5F8;
  --violet: #A07AF6;
  --coral: #FF968A;
  --grad: linear-gradient(90deg, #5CE8E6, #60A5F8, #A07AF6, #FF968A);
  --nav-h: 3.75rem;
  --toc-h: 3.6rem;
  --radius: 1.75rem;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Hauptmenü ---------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(7, 46, 71, .55), rgba(7, 46, 71, .3));
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 .5rem 2rem -1rem rgba(2, 20, 35, .5);
  font-family: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Feine Linie in den Logofarben */
.topnav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--grad);
  opacity: .35;
}
.topnav.home { justify-content: center; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topnav.home::after { display: none; }
.topnav.home .menu a { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 200;
  letter-spacing: -.01em;
  text-decoration: none;
}
.topnav .brand img { width: auto; height: 1.9rem; filter: drop-shadow(0 .1rem .4rem rgba(4, 30, 48, .4)); transition: transform .5s var(--ease); }
.topnav .brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand:focus-visible, .menu a:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: .6rem; }

.menu { display: flex; gap: .35rem; }
.menu a {
  position: relative;
  padding: .5rem 1rem;
  border-radius: 999px;
  color: rgba(241, 250, 251, .88);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}
.burger, .burger::before, .burger::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), background .2s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { transform: translateY(-.36rem); }
.burger::after { transform: translateY(.36rem); }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .topnav.home { justify-content: flex-end; }
  .menu {
    position: absolute;
    top: calc(var(--nav-h) - .25rem);
    right: .75rem;
    flex-direction: column;
    min-width: min(18rem, calc(100vw - 1.5rem));
    padding: .5rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1.25rem;
    background: rgba(9, 52, 80, .72);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
            backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 1.5rem 3rem -1rem rgba(2, 20, 35, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.5rem) scale(.97);
    transform-origin: top right;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .menu a { padding: .85rem 1rem; border-radius: .9rem; font-size: 1.05rem; }
  .menu a[aria-current="page"]::after { left: 1rem; right: auto; width: 2rem; bottom: .45rem; }
  .topnav.home .menu a { text-shadow: none; }
}

/* ---------- Seitengerüst ---------- */
html:has(body.page) {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--toc-h) + 2rem);
}
body.page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  overflow-x: clip;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.page *, .page *::before, .page *::after { box-sizing: border-box; }
.page :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.page :where(ul, ol) { padding: 0; list-style: none; }
.page img { display: block; max-width: 100%; height: auto; }
.page a { color: inherit; }
.page :focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }

.content {
  position: relative;
  z-index: 10;
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

/* ---------- Inhaltsverzeichnis: bleibt beim Scrollen oben stehen ---------- */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + .6rem);
  z-index: 30;
  display: flex;
  justify-content: center;
  margin: 1.25rem auto 0;
  pointer-events: none;
}
.toc-inner {
  --x: 0px;
  --w: 0px;
  position: relative;
  display: flex;
  gap: .2rem;
  max-width: 100%;
  padding: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(9, 52, 80, .42);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
          backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1rem 2.5rem -1rem rgba(2, 20, 35, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  pointer-events: auto;
  transition: background .4s, box-shadow .4s;
}
.toc-inner::-webkit-scrollbar { display: none; }
.toc.stuck .toc-inner { background: rgba(9, 52, 80, .66); box-shadow: 0 1.25rem 3rem -1rem rgba(2, 20, 35, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
/* Gleitende Markierung hinter dem aktuellen Punkt */
.toc-indicator {
  position: absolute;
  top: .35rem;
  bottom: .35rem;
  left: 0;
  width: var(--w);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transform: translateX(var(--x));
  transition: transform .5s var(--ease), width .5s var(--ease);
  pointer-events: none;
}
/* Lesefortschritt als feine Linie in den Logofarben */
.toc-progress {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}
.toc a {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  gap: .5rem;
  padding: .3rem .85rem .3rem .3rem;
  border-radius: 999px;
  color: rgba(241, 250, 251, .78);
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .3s;
}
.toc a:hover { color: #fff; }
.toc .ti {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .4s, color .4s, transform .5s var(--ease), box-shadow .4s;
}
.toc .ti svg { width: 1.15rem; height: 1.15rem; }
.toc a.active { color: #fff; }
.toc a.active .ti {
  background: conic-gradient(from 200deg, #5CE8E6, #60A5F8, #A07AF6, #FF968A, #5CE8E6);
  color: #072E47;
  box-shadow: 0 0 1.1rem rgba(92, 232, 230, .55), 0 0 0 3px rgba(255, 255, 255, .14);
  transform: scale(1.08);
}
.toc .tl { overflow: hidden; transition: max-width .5s var(--ease), opacity .4s; }

/* Schmalere Bildschirme: nur der aktuelle Punkt zeigt seinen Namen */
@media (max-width: 1180px) {
  .toc a { gap: 0; padding-right: .3rem; }
  .toc .tl { max-width: 0; opacity: 0; }
  .toc a.active { gap: .5rem; padding-right: .9rem; }
  .toc a.active .tl { max-width: 14rem; opacity: 1; }
}

/* ---------- Abschnitte ---------- */
.sec { margin-top: clamp(4rem, 11vh, 7.5rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.glass.sec-head { max-width: none; }
.glass.sec-head > * { max-width: 48rem; }
.glass.sec-head.center > * { margin-inline: auto; }
.glass.sec-head .lead { margin-top: 1rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  padding: .3rem .8rem .3rem .4rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow svg { width: 1.35rem; height: 1.35rem; padding: .2rem; border-radius: 50%; background: var(--grad); color: #072E47; }
.page h1, .page h2 { font-weight: 200; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.page h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
.page h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.page h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.lead { margin-top: 1rem; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.6; text-wrap: pretty; }
.page p + p { margin-top: .9rem; }
.muted { color: var(--muted); }

/* Schriftzug im Farbverlauf des Logos, der langsam wandert */
.grad {
  background: linear-gradient(90deg, #5CE8E6, #60A5F8, #A07AF6, #FF968A, #A07AF6, #60A5F8, #5CE8E6) 0 0 / 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: shimmer 12s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* ---------- Glasboxen ---------- */
.glass {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .09)),
    rgba(8, 50, 78, .3);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
          backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 2rem 4rem -1.5rem rgba(2, 20, 35, .55), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .06);
  isolation: isolate;
}
/* Haarlinie mit wanderndem Farbverlauf, wie im Reef Theme */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(92, 232, 230, .9), rgba(96, 165, 248, .25), rgba(160, 122, 246, .85), rgba(255, 150, 138, .3), rgba(92, 232, 230, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .55;
  animation: spin 14s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { --angle: 360deg; } }
/* Lichtkegel folgt dem Zeiger */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(28rem circle at var(--mx) var(--my), rgba(255, 255, 255, .11), transparent 60%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.glass:hover::after { opacity: 1; }

.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 1.3rem;
  background: radial-gradient(18rem circle at var(--mx) var(--my), rgba(255, 255, 255, .1), transparent 70%), rgba(255, 255, 255, .06);
  transition: transform .5s var(--ease), border-color .4s, background-color .4s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(92, 232, 230, .45); background-color: rgba(255, 255, 255, .09); }
.tile h3 { margin: .9rem 0 .4rem; }
.tile p { color: var(--muted); font-size: .98rem; }

.ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(140deg, rgba(92, 232, 230, .28), rgba(160, 122, 246, .28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 .5rem 1.25rem -.5rem rgba(92, 232, 230, .5);
  color: #fff;
}
.ico svg { width: 1.5rem; height: 1.5rem; }
.ico.coral  { background: linear-gradient(140deg, rgba(255, 150, 138, .38), rgba(160, 122, 246, .26)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 .5rem 1.25rem -.5rem rgba(255, 150, 138, .5); }
.ico.blue   { background: linear-gradient(140deg, rgba(96, 165, 248, .38), rgba(92, 232, 230, .22)); }
.ico.violet { background: linear-gradient(140deg, rgba(160, 122, 246, .4), rgba(96, 165, 248, .24)); }

.grid { display: grid; gap: clamp(.9rem, 2vw, 1.35rem); }
.grid.two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.stack > * + * { margin-top: clamp(.9rem, 2vw, 1.35rem); }
@media (max-width: 1000px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .grid.two { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
}
@media (max-width: 560px) {
  .grid.three, .grid.four { grid-template-columns: minmax(0, 1fr); }
}

/* Aufzählung mit Häkchen */
.checks li { position: relative; padding-left: 2rem; }
.checks li + li { margin-top: .65rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--grad);
}
.checks li::after {
  content: "";
  position: absolute;
  left: .38rem;
  top: calc(.2em + .3rem);
  width: .55rem;
  height: .32rem;
  border-left: 2px solid #072E47;
  border-bottom: 2px solid #072E47;
  transform: rotate(-45deg);
}
.checks strong { color: #fff; font-weight: 600; }

/* ---------- Kopfbereich einer Seite ---------- */
.intro { margin-top: clamp(1.5rem, 5vh, 3rem); }
.intro .glass { padding: clamp(1.75rem, 5vw, 4rem); overflow: hidden; }
.intro .lead { max-width: 36rem; }
.hero-art { width: 100%; height: auto; overflow: visible; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.1rem; color: var(--muted); font-size: .9rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs svg { width: .9rem; height: .9rem; opacity: .6; }

.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .82rem;
  font-weight: 500;
}
.badge svg { width: .95rem; height: .95rem; }

/* ---------- Schaltflächen ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  background-size: 160% 100%;
  color: #072E47;
  font: inherit;
  font-size: .98rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 .75rem 2rem -.75rem rgba(92, 232, 230, .7);
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s, background-position .6s;
}
.page a.btn { color: #072E47; }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 1rem 2.4rem -.75rem rgba(160, 122, 246, .75); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.page a.btn.ghost, .btn.ghost { color: var(--ink); }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); }

.more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.more svg { width: 1.05rem; height: 1.05rem; transition: transform .35s var(--ease); }
.more:hover svg { transform: translateX(4px); }

/* ---------- Bilder ---------- */
.shot {
  overflow: hidden;
  border-radius: 1.1rem;
  box-shadow: 0 1.5rem 3rem -1rem rgba(2, 20, 35, .6), 0 0 0 1px rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}
.shot img { width: 100%; transition: transform .8s var(--ease); }
a.shot:hover img, button.shot:hover img { transform: scale(1.03); }
button.shot { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
figcaption { margin-top: .7rem; color: var(--muted); font-size: .88rem; }
.tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); will-change: transform; }
.phone-shot { max-width: 15rem; margin-inline: auto; border-radius: 1.6rem; }

/* Vergrößerte Ansicht */
.zoom {
  width: min(96vw, 110rem);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.zoom::backdrop { background: rgba(4, 28, 44, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zoom img { display: block; width: auto; max-width: 100%; max-height: 88vh; margin: auto; border-radius: 1rem; box-shadow: 0 2rem 5rem rgba(0, 0, 0, .5); }
.zoom[open] img { animation: pop .45s var(--ease); }
.zoom p { margin-top: .8rem; color: var(--ink); text-align: center; font-size: .92rem; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.zoom .close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Ablauf als Zeitstrahl ---------- */
.steps { --p: 0; position: relative; display: grid; gap: clamp(1rem, 3vw, 1.75rem); }
.steps::before, .steps::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
}
.steps::before { background: rgba(255, 255, 255, .14); }
.steps::after { background: linear-gradient(180deg, #5CE8E6, #60A5F8, #A07AF6, #FF968A); transform: scaleY(var(--p)); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 4.5rem; }
.step .glass { grid-column: 1; padding: clamp(1.25rem, 3vw, 2rem); }
.step:nth-child(even) .glass { grid-column: 2; }
.step-no {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-left: -1.45rem;
  border-radius: 50%;
  background: #0B4467;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 6px rgba(11, 68, 103, .5);
  font-size: 1.05rem;
  font-weight: 600;
  transition: background .6s, color .6s, box-shadow .6s;
}
.step.in .step-no { background: var(--grad); color: #072E47; box-shadow: 0 0 1.25rem rgba(92, 232, 230, .6), 0 0 0 6px rgba(11, 68, 103, .5); }
.step h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; font-size: 1.3rem; }
.step h3 svg { width: 1.4rem; height: 1.4rem; color: var(--cyan); }
.step p { color: var(--muted); }
.step .checks { margin-top: .9rem; font-size: .96rem; }
@media (max-width: 860px) {
  .steps::before, .steps::after { left: 1.45rem; }
  .step { grid-template-columns: minmax(0, 1fr); padding-left: 3.9rem; }
  .step .glass, .step:nth-child(even) .glass { grid-column: 1; }
  .step-no { left: 0; margin-left: 0; }
}

/* ---------- Kennzahlen ---------- */
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 200; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Werkzeug-Chips ---------- */
.tools h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.tools h3 svg { width: 1.3rem; height: 1.3rem; color: var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex;
  flex-direction: column;
  padding: .55rem .95rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .95rem;
  background: rgba(255, 255, 255, .06);
  line-height: 1.25;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.chip:hover { transform: translateY(-3px); border-color: rgba(92, 232, 230, .5); box-shadow: 0 .75rem 1.5rem -.75rem rgba(92, 232, 230, .55); }
.chip b { font-size: .95rem; font-weight: 600; }
.chip small { color: var(--muted); font-size: .76rem; }

/* ---------- Vorher / Nachher ---------- */
.switcher {
  --x: 0%;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto 1.5rem;
  padding: .3rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}
.switcher::before {
  content: "";
  position: absolute;
  top: .3rem;
  bottom: .3rem;
  left: .3rem;
  width: calc(50% - .3rem);
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 .5rem 1.25rem -.5rem rgba(92, 232, 230, .7);
  transform: translateX(var(--x));
  transition: transform .5s var(--ease);
}
.switcher button {
  position: relative;
  padding: .55rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .4s;
}
.switcher button[aria-pressed="true"] { color: #072E47; }
.js .compare [data-pane]:not(.shown) { display: none; }
.js .compare [data-pane].shown { animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.compare-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.compare-head .switcher { margin: 0; }
.no-js-label { display: none; }
html:not(.js) .no-js-label { display: block; margin: 1rem 0 .5rem; font-weight: 600; }

/* Ablaufdiagramme */
.flow { width: 100%; height: auto; overflow: visible; font-family: inherit; }
.flow text { font-size: 13px; font-weight: 500; }
.flow text:not([fill]) { fill: #F1FAFB; }
.flow .sub { font-size: 11px; font-weight: 400; }
.flow .sub:not([fill]) { fill: rgba(226, 243, 248, .7); }
.flow .box { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.flow .box.bad { fill: rgba(255, 150, 138, .12); stroke: rgba(255, 150, 138, .6); }
.flow .box.good { fill: rgba(92, 232, 230, .12); stroke: rgba(92, 232, 230, .65); }
.flow .box.ai { fill: rgba(160, 122, 246, .18); stroke: rgba(191, 166, 255, .8); }
.flow .edge { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.6; }
.flow .edge.bad { stroke: rgba(255, 150, 138, .75); stroke-dasharray: 4 5; }
.flow .edge.good { stroke: url(#flowgrad); stroke-width: 2.2; }
.pulse { fill: #fff; filter: drop-shadow(0 0 4px #5CE8E6); }
.flow .warn { fill: #FF968A; }
.flow-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.flow-wrap .flow { min-width: 40rem; }
/* Schmale Bildschirme: Diagramme waagrecht wischen, der Rand deutet es an */
@media (max-width: 700px) {
  .flow-wrap { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 2rem; }
  .flow-wrap::after { content: "← wischen →"; position: sticky; left: 0; display: block; margin-top: .4rem; color: var(--muted); font-size: .78rem; letter-spacing: .06em; }
}

/* Linien zeichnen sich, sobald die Grafik ins Bild kommt (pathLength="1"; site.js setzt die Klasse .ln) */
.js .draw .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.js .draw.in .ln { stroke-dashoffset: 0; }
.js .draw .pop { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .6s, transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 200ms); }
.js .draw.in .pop { opacity: 1; transform: none; }

/* ---------- Projektkarten ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.25rem, 3.5vw, 2.75rem); align-items: center; }
.project:nth-child(even) > .project-media { order: 2; }
.project-media { position: relative; }
.project-media .shot + .shot { position: absolute; right: -4%; bottom: -10%; width: 46%; }
.project h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300; letter-spacing: -.01em; }
.project p { margin-top: .7rem; color: var(--muted); }
.project .chips-row { margin-top: 1rem; }
@media (max-width: 860px) {
  .project { grid-template-columns: minmax(0, 1fr); }
  .project:nth-child(even) > .project-media { order: 0; }
  .project-media .shot + .shot { right: -2%; bottom: -8%; }
}

/* Kontakt */
.cta { text-align: center; }
.cta .glass { padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); overflow: hidden; }
.cta .glass > .orb {
  position: absolute;
  z-index: -2;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta .orb.a { top: -12rem; left: -8rem; background: #5CE8E6; }
.cta .orb.b { right: -10rem; bottom: -14rem; background: #A07AF6; animation-delay: -8s; }
@keyframes drift { to { transform: translate(6rem, 3rem) scale(1.15); } }
.cta .lead { max-width: 38rem; margin-inline: auto; }
.cta .actions { justify-content: center; }

/* Nachbarprojekte */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 8vh, 5rem); }
.pager a { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.pager b { font-weight: 500; }
.pager svg { flex: none; width: 1.3rem; height: 1.3rem; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } }

/* ---------- Fußzeile ---------- */
.sitefoot {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1.6rem;
  padding: 1.5rem 1rem max(1.5rem, env(safe-area-inset-bottom));
  color: rgba(241, 250, 251, .78);
  font-size: .88rem;
}
.sitefoot a { color: inherit; text-decoration: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.sitefoot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Einblenden beim Scrollen ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(2.2rem);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal="left"]  { transform: translateX(-3rem); }
.js [data-reveal="right"] { transform: translateX(3rem); }
.js [data-reveal="zoom"]  { transform: scale(.9); }
.js [data-reveal="img"]   { clip-path: inset(10% 10% 10% 10% round 1.5rem); transform: scale(1.06); filter: blur(4px) saturate(.6); transition-property: opacity, transform, filter, clip-path; }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; clip-path: inset(0 round 0); }
/* Glas braucht seinen Weichzeichner sofort: Unschärfe nicht auf die Box selbst legen */
.js .glass[data-reveal] { filter: none; }

@media (prefers-reduced-motion: reduce) {
  html:has(body.page) { scroll-behavior: auto; }
  .js [data-reveal], .js .draw .ln, .js .draw .pop { opacity: 1; transform: none; filter: none; clip-path: none; stroke-dashoffset: 0; transition: none; }
  .glass::before, .grad, .cta .orb { animation: none; }
  .pulse { display: none; }
  .tilt { transform: none; }
}

/* ---------- Grafiken: pulsierende Punkte, Umlaufbahn ---------- */
.ping { transform-box: fill-box; transform-origin: center; animation: ping 2.8s ease-out infinite; animation-delay: calc(var(--d, 0) * -.55s); }
@keyframes ping { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }
.hero-art text { font-family: inherit; font-size: 12px; font-weight: 500; }
.hero-art text:not([fill]) { fill: rgba(241, 250, 251, .9); }
.hero-art .house { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .75); stroke-width: 2; }
.hero-art .orn { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .5); stroke-width: 1.6; }
.hero-art .wire { fill: none; stroke: url(#wire); stroke-width: 2.2; }
.hero-art .wire.dash { stroke-dasharray: 3 5; stroke: rgba(255, 255, 255, .5); }

.orbit { --n: 10; --r: min(13.5rem, 38vw); position: relative; width: calc(var(--r) * 2 + 7rem); max-width: 100%; aspect-ratio: 1; margin: auto; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 3.5rem; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 50%; }
.orbit::after { inset: calc(3.5rem + var(--r) * .45); border-style: solid; border-color: rgba(92, 232, 230, .25); }
.orbit .ring { position: absolute; inset: 0; animation: orbit 90s linear infinite; }
.orbit .node { position: absolute; left: 50%; top: 50%; transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -360deg / var(--n))); }
.orbit .node span {
  display: block;
  padding: .4rem .8rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(9, 52, 80, .6);
  box-shadow: 0 .5rem 1.25rem -.5rem rgba(2, 20, 35, .6);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  translate: -50% -50%;
  animation: orbit 90s linear infinite reverse;
}
.orbit .core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  margin: -3.75rem 0 0 -3.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), rgba(92, 232, 230, .25) 45%, rgba(160, 122, 246, .35));
  box-shadow: 0 0 3rem rgba(92, 232, 230, .45), inset 0 0 0 1px rgba(255, 255, 255, .35);
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
}
.orbit .core svg { width: 2.2rem; height: 2.2rem; margin: 0 auto .25rem; }
@keyframes orbit { to { rotate: 360deg; } }
@media (max-width: 560px) { .orbit { --r: calc((100vw - 11.5rem) / 2); } .orbit .node span { font-size: .74rem; padding: .3rem .6rem; } .orbit .core { width: 6rem; height: 6rem; margin: -3rem 0 0 -3rem; } }

@media (prefers-reduced-motion: reduce) {
  .ping, .orbit .ring, .orbit .node span { animation: none; }
}

/* Quelltext */
.code {
  margin-top: .9rem;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1rem;
  background: rgba(3, 25, 40, .55);
  color: #CFF7F6;
  font: .88rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre;
}
.page :not(pre) > code { padding: .1em .4em; border-radius: .4em; background: rgba(255, 255, 255, .1); font: .9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.numbered { counter-reset: n; }
.numbered > li { position: relative; padding-left: 2.6rem; counter-increment: n; }
.numbered > li + li { margin-top: 1rem; }
.numbered > li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--grad);
  color: #072E47;
  font-size: .9rem;
  font-weight: 700;
}
.note {
  display: flex;
  gap: .9rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 150, 138, .45);
  border-radius: 1rem;
  background: rgba(255, 150, 138, .1);
  font-size: .95rem;
}
.note svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--coral); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.gallery .wide { grid-column: 1 / -1; }
.gallery.phones { grid-template-columns: repeat(2, minmax(0, 15rem)); justify-content: center; }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } .gallery.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pager a.glass { padding: 1.1rem 1.4rem; }
.pager a.prev { text-align: left; }
.hero-art .tiny, .flow .tiny { font-size: 10.5px; font-weight: 400; }
.hero-art .tiny:not([fill]), .flow .tiny:not([fill]) { fill: rgba(226, 243, 248, .7); }
.phone-art { max-width: 19rem; margin-inline: auto; }
.page h3.big { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: -.01em; }
.compare-head .muted { margin-top: .4rem; max-width: 36rem; }
.bob { animation: bob 5s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -1.3s); }
@keyframes bob { from { transform: translate(-3px, -4px) rotate(-1.5deg); } to { transform: translate(3px, 4px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 1.4rem; }
.mt-l { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.small { font-size: .92rem; }
