/* ==========================================================================
   peterstepanek.at — 2026
   Editorial, ruhig, präzise. Farbwelt & Möbius-Motiv aus dem Logo.
   ========================================================================== */

:root {
  --paper: #f7f5f0;
  --paper-deep: #efece4;
  --ink: #0f1e2c;
  --ink-80: #33414f;
  --ink-60: #5b6a78;
  --line: #ddd8cc;
  --blue: #2e86d6;
  --green: #76b82a;
  --grad: linear-gradient(120deg, #1a5fc0 0%, #3b93d8 38%, #79bd2e 100%);
  --night: #0c1826;
  --night-2: #122234;
  --night-line: #24384d;
  --night-text: #c3cfda;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;

  --w-max: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --header-height: 104px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(46, 134, 214, 0.18); }

img { max-width: 100%; display: block; }

a { color: inherit; }

.svg-defs {
  position: absolute;
}

.wrap {
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ Type */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@media (max-width: 560px) {
  h2, h3, .pub-title { hyphens: auto; -webkit-hyphens: auto; }
}

.display-xl {
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
}

.display-l {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.accent-i {
  font-style: italic;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em; /* italic overhang clipping */
}

p,
li,
.lede,
.about-paragraph,
.theme-card > p,
.service p,
.pub-source,
.contact-list .value {
  hyphens: auto;
  -webkit-hyphens: auto;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-80);
  max-width: 34em;
}

/* Kicker: Zeile mit Möbius-Glyphe */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 1.6rem;
}
.kicker .loop-glyph { flex: none; }

.loop-glyph {
  width: 19px;
  height: 26px;
  display: inline-block;
}

/* ------------------------------------------------------------- Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, transform 0.45s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
html.nav-open,
body.nav-open {
  overflow: hidden;
}
body.nav-open {
  position: fixed;
  width: 100%;
}
body.nav-open .site-header {
  transform: none;
}
.site-header.is-scrolled {
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 30, 44, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.brand img { height: 57px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-80);
  position: relative;
  padding-block: 0.3rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--grad);
  transition: right 0.35s var(--ease-out);
}
.main-nav a:hover::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.6rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: #1f6fc4;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(15, 30, 44, 0.45);
}
.btn-primary .arrow { transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  color: var(--ink);
  padding-inline: 0.4rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  border-image: none;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--grad);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.btn-ghost:hover::after { transform: scaleX(0.55); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding-top: clamp(7.5rem, 14vh, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: clip;
}

.hero-loop-bg {
  position: absolute;
  top: -6%;
  right: -14%;
  width: min(62vw, 900px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-loop-bg path {
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: draw-loop 2.8s 0.3s var(--ease-out) forwards;
}
@keyframes draw-loop { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.hero-copy .kicker { margin-bottom: 2rem; }

.hero-copy h1 { margin-bottom: 1.8rem; }

.hero-copy .lede { margin-bottom: 2.6rem; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
}
.hero-figure .portrait-frame {
  border-radius: 215px 215px 26px 26px; /* Bogenform */
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(15, 30, 44, 0.4);
  position: relative;
  font-size: 0;
  line-height: 0;
}
.hero-figure .portrait-frame .editable-image-wrapper {
  display: block !important;
  line-height: 0 !important;
  width: 100%;
}
.hero-figure img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
}
.hero-figure .portrait-rule {
  position: absolute;
  left: 12%;
  right: -14%;
  bottom: 14%;
  height: 3px;
  background: var(--grad);
  border-radius: 3px;
  z-index: 2;
  transform: translateX(var(--rule-x, 0px));
}
/* Load-Animation */
.hero .rise {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero .rise:nth-child(1) { animation-delay: 0.1s; }
.hero .rise:nth-child(2) { animation-delay: 0.22s; }
.hero .rise:nth-child(3) { animation-delay: 0.34s; }
.hero .rise:nth-child(4) { animation-delay: 0.46s; }
.hero-figure.rise-figure {
  opacity: 0;
  transform: translateY(34px);
  animation: rise 1.1s 0.35s var(--ease-out) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- Stats */

.stats {
  border-block: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) 1.4rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  display: block;
  line-height: 1.1;
}
.stat span {
  font-size: 0.9rem;
  color: var(--ink-60);
}
body.has-admin-bar .stat b,
body.has-admin-bar .stat span {
  display: block;
}
body.has-admin-bar .stats .editable-field-active {
  line-height: inherit;
}

/* ------------------------------------------------------------- Sections */

.section { padding-block: var(--section-pad); }

#ueber-mich {
  background: var(--paper-deep);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: end;
}
.section-head .lede { justify-self: start; }

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ------------------------------------------------------------- Über mich */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-sticky { position: sticky; top: 120px; }
.about-sticky h2 { margin-bottom: 1.5rem; }

.about-figure {
  margin-top: 2.4rem;
  position: relative;
}
.about-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 50px -24px rgba(15, 30, 44, 0.35);
}
.about-figure::after {
  content: "";
  position: absolute;
  left: -1.2rem;
  bottom: 1.8rem;
  width: 38%;
  height: 3px;
  background: var(--grad);
  border-radius: 3px;
  transform: translateX(var(--rule-x, 0px));
}

.about-body p { margin-bottom: 1.4rem; color: var(--ink-80); max-width: 38em; }
.about-body p strong { color: var(--ink); font-weight: 600; }

.about-today {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.about-today h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}
.role-list { list-style: none; }
.role-list li {
  padding: 0.85rem 0 0.85rem 1.9rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-80);
}
.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.42rem;
  width: 18px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.role-list li:last-child { border-bottom: none; }

.honorary { margin-top: 2.4rem; }
.honorary-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 0.4rem;
}
.honorary-list { list-style: none; }
.honorary-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: baseline;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.honorary-list li:last-child { border-bottom: none; }
.honorary-list .role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.honorary-list .org {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--ink);
}
@media (max-width: 560px) {
  .honorary-list li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ------------------------------------------------------------- Möbius-Szene */

.moebius-scene { position: relative; }
.moebius-scene.is-compact-motion::after {
  content: "";
  display: none;
}

.moebius-pin {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

#moebiusCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.moebius-hint {
  position: absolute;
  top: clamp(6.5rem, 14vh, 9rem);
  left: var(--gutter);
  max-width: 12em;
}
.moebius-hint .hint-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  white-space: nowrap;
  margin-bottom: 0.9rem;
}
.moebius-hint .hint-kicker .loop-glyph {
  width: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  height: 38px;
}
.moebius-hint .hint-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-80);
  text-wrap: balance;
  margin-left: 1.1rem;
}
@media (min-width: 1330px) {
  .moebius-hint { left: calc((100vw - var(--w-max)) / 2 + var(--gutter)); }
}

/* Verlaufs-Schleier: übernimmt am Ende des Zooms nahtlos die Fläche */
.moebius-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, #58b4f0 -4%, #1a5fc0 45%, #79bd2e 104%);
  opacity: 0;
  pointer-events: none;
}

/* Bühne im gepinnten Screen: Kopf + die beiden Themen-Boxen */
.moebius-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}
body.visual-editing .moebius-stage,
body.edit-mode-active .moebius-stage,
body.has-admin-bar .moebius-stage,
body.visual-editing .moebius-stage .editable-field-active,
body.visual-editing .moebius-stage .editable-list-item,
body.edit-mode-active .moebius-stage .editable-field-active,
body.edit-mode-active .moebius-stage .editable-list-item,
body.has-admin-bar .moebius-stage .editable-field-active,
body.has-admin-bar .moebius-stage .editable-list-item {
  pointer-events: auto;
}
.stage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "kicker kicker"
    "title intro";
  align-items: end;
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 0;
  max-width: 74rem;
  margin-inline: auto;
  margin-bottom: clamp(1.6rem, 3.8vh, 3.2rem);
  text-align: left;
}
.stage-head .m-kicker {
  grid-area: kicker;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.9rem;
}
.stage-head .m-kicker::after {
  content: "";
  width: 2.9rem;
  height: 2px;
  background: rgba(118, 184, 42, 0.85);
}
.stage-head h2 {
  grid-area: title;
  color: #fff;
  max-width: 8.8em;
  text-shadow: 0 2px 30px rgba(12, 24, 38, 0.18);
}
.stage-head .m-sub {
  grid-area: intro;
  display: grid;
  gap: 0.55rem;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34em;
  padding-left: clamp(1.4rem, 3vw, 2.8rem);
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}
.stage-head .m-sub-lead {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.55rem);
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}

/* Kompaktere Karten auf der Bühne */
.moebius-stage .theme-card {
  padding: clamp(1.45rem, 2.4vw, 2.25rem);
}
.moebius-stage .theme-card h3 { font-size: clamp(1.42rem, 2vw, 1.9rem); margin-bottom: 0.9rem; }
.moebius-stage .theme-card > p { font-size: 0.9rem; margin-bottom: 1.15rem; }
.moebius-stage .check-list li { padding-block: 0.34rem; font-size: 0.88rem; }
.moebius-stage .sub-label { margin-bottom: 0.6rem; }
.moebius-stage .foot-note { margin-top: 1rem; font-size: 0.82rem; }

/* Sehr niedrige Screens: Kopf einkürzen */
@media (max-height: 800px) {
  .stage-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
  .stage-head .m-sub { font-size: 0.95rem; }
  .stage-head .m-sub-lead { font-size: 1.12rem; }
  .moebius-stage .theme-card > p { font-size: 0.84rem; }
  .moebius-stage .check-list li { font-size: 0.82rem; }
}

/* Fallback: kein WebGL oder reduzierte Bewegung */
.moebius-scene.is-static .moebius-pin {
  height: auto;
  min-height: 0;
  background: linear-gradient(104deg, #58b4f0 -4%, #1a5fc0 45%, #79bd2e 104%);
  padding-block: clamp(5rem, 12vh, 8rem);
}
.moebius-scene.is-static .moebius-pin::before {
  content: "";
  position: absolute;
  top: clamp(1.2rem, 4vw, 3rem);
  right: max(-9rem, -18vw);
  width: min(64rem, 120vw);
  aspect-ratio: 900 / 460;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 460'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='900' y2='460' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23ffffff' stop-opacity='.76'/%3E%3Cstop offset='.55' stop-color='%23d9efff' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='.42'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M225 390 C60 390 60 70 225 70 C390 70 510 390 675 390 C840 390 840 70 675 70 C510 70 390 390 225 390 Z' fill='none' stroke='url(%23g)' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M225 390 C60 390 60 70 225 70 C390 70 510 390 675 390 C840 390 840 70 675 70 C510 70 390 390 225 390 Z' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1.5' stroke-linecap='round' transform='translate(0 34)'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.moebius-scene.is-compact-motion .moebius-pin::before {
  content: none;
  display: none;
}
.moebius-scene.is-static #moebiusCanvas,
.moebius-scene.is-static .moebius-hint,
.moebius-scene.is-static .moebius-veil { display: none; }

/* ------------------------------------------------------------- Themen */


.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 4.4vw, 4.5rem);
  align-items: start;
  max-width: 74rem;
  margin-inline: auto;
  counter-reset: themes;
}
.theme-card {
  counter-increment: themes;
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.9), rgba(210, 235, 248, 0.74));
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  padding: clamp(2rem, 4vw, 3.2rem);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 24px 70px -32px rgba(4, 35, 82, 0.5);
  backdrop-filter: blur(16px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.theme-card::before {
  content: counter(themes, decimal-leading-zero);
  position: absolute;
  left: clamp(1.45rem, 2.4vw, 2.25rem);
  top: clamp(1.45rem, 2.4vw, 2.25rem);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(26, 95, 192, 0.34);
  background: rgba(255, 255, 255, 0.28);
  color: #1b5fae;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.theme-card::after {
  content: "";
  position: absolute;
  left: calc(clamp(1.45rem, 2.4vw, 2.25rem) + 1.3rem);
  top: calc(clamp(1.45rem, 2.4vw, 2.25rem) + 4rem);
  bottom: clamp(1.45rem, 2.4vw, 2.25rem);
  width: 1px;
  background: linear-gradient(to bottom, rgba(26, 95, 192, 0.45), rgba(118, 184, 42, 0.88));
}
.theme-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 34px 82px -34px rgba(4, 35, 82, 0.58);
}
.theme-card:nth-child(1) {
  margin-top: clamp(2.3rem, 5vh, 4.3rem);
  min-height: 20.5rem;
}
.theme-card:nth-child(2) {
  min-height: 17.5rem;
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.82), rgba(211, 238, 221, 0.64));
}
.theme-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 0.9rem;
  padding-left: clamp(4rem, 5vw, 4.5rem);
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.theme-card > p,
.theme-card .sub-label,
.theme-card .check-list,
.theme-card .foot-note {
  margin-left: clamp(4rem, 5vw, 4.5rem);
}
.theme-card > p { color: var(--ink-80); margin-bottom: 1.8rem; }
.theme-card .sub-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1b5fae;
  margin-bottom: 0.45rem!important;
  padding-top: 1rem;
}
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.9rem;
  color: var(--ink-80);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 16px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-48deg) scale(0.9);
}
.theme-card .foot-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-60);
}

/* Leistungen (kompaktes Band innerhalb Themen-Sektion) */
/* Leistungen: schmales Band auf Papier */
.services-band {
  background: var(--paper-deep);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.services-intro {
  max-width: 48rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.services-intro p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service {
  padding: 0 1.6rem 0 0;
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
}
.service:first-child { border-left: none; padding-left: 0; }
.service .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.7rem;
}
.service h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service p { font-size: 0.92rem; color: var(--ink-60); line-height: 1.55; }

/* ------------------------------------------------------------- Vorträge */

.talks-figure {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.talks-figure img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 34px 70px -30px rgba(15, 30, 44, 0.38);
}
/* Linie läuft an der abgerundeten Kante der Bildbox entlang */
.talks-rule {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 92%);
  height: auto;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.talk-rows { border-top: 1px solid var(--line); }
.talk-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.talk-row .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--ink-60);
  line-height: 1.2;
}
.talk-row h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}
.talk-row ul {
  list-style: none;
  columns: 1;
}
.talk-row ul li {
  padding: 0.32rem 0 0.32rem 1.5rem;
  position: relative;
  color: var(--ink-80);
  font-size: 0.98rem;
}
.talk-row ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 14px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.talks-note {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  color: var(--ink-60);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- Publikationen */

.pubs {
  background: var(--night);
  color: var(--night-text);
  position: relative;
  overflow: clip;
}
.pubs .kicker { color: #7e93a8; }
.pubs h2 { color: #f4f6f8; }
.pubs .lede { color: #93a7ba; }
.pubs-lede { margin-top: 1.2rem; }

.pubs-loop-bg {
  position: absolute;
  left: -10%;
  bottom: -22%;
  width: min(55vw, 760px);
  opacity: 0.35;
  pointer-events: none;
}

.pubs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.pubs-nav { display: flex; gap: 0.7rem; }
.pubs-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--night-line);
  background: transparent;
  color: #e8edf2;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
  display: grid;
  place-items: center;
}
.pubs-nav button:hover {
  background: var(--night-2);
  border-color: #3d566f;
  transform: translateY(-2px);
}
.pubs-nav button:disabled { opacity: 0.35; cursor: default; transform: none; }
.pubs-toggle .icon-slider { display: none; }
.pubs.is-grid .pubs-toggle .icon-grid { display: none; }
.pubs.is-grid .pubs-toggle .icon-slider { display: block; }

.pubs-track-outer {
  position: relative;
  z-index: 1;
  margin-inline: calc(-1 * var(--gutter));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.pubs-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0.5rem var(--gutter) 2rem;
  scrollbar-width: none;
  cursor: grab;
}
.pubs-track::-webkit-scrollbar { display: none; }
/* Keine Scroll-Verankerung an Karten: Beim Umschalten Slider/Grid würde der
   Browser sonst der festgehaltenen Karte an ihre neue Position folgen */
.pubs-track, .pubs-track * { overflow-anchor: none; }
.pubs-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.pubs-track.is-dragging .pub-card { pointer-events: none; }

.pub-card {
  color: inherit;
  text-decoration: none;
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 18px;
  padding: 1.8rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.pub-card:hover {
  transform: translateY(-6px);
  border-color: #40597a;
}

.pub-card.is-book {
  background: linear-gradient(160deg, #16304a 0%, #12283c 55%, #14331f 130%);
  border-color: #2c4a68;
  position: relative;
  overflow: hidden;
}
.pub-card.is-book::after {
  content: "";
  position: absolute;
  inset: 1.8rem auto 1.6rem 0;
  width: 5px;
  height: auto;
  border-radius: 0;
  background: var(--grad);
}

.pub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-left: 0;
}
.pub-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: #9db2c6;
}
.pub-card.is-book .pub-type { color: #b8e28a; border-color: #3f6a3a; }
.pub-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: #e8edf2;
}
.pub-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.28;
  color: #f4f6f8;
  margin-bottom: 0.9rem;
}
.pub-source {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #8ba0b4;
  margin-top: auto;
}
.pub-authors {
  font-size: 0.85rem;
  color: #9db2c6;
  margin-bottom: 0.6rem;
}
.pub-link {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6fb1e4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.3s var(--ease-out);
}
.pub-card.is-book .pub-link { color: #b8e28a; }
.pub-card:hover .pub-link,
.pub-card:focus-visible .pub-link { opacity: 1; transform: none; }
@media (hover: none) {
  .pub-link { opacity: 1; transform: none; }
}

.pubs-hint {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: #64798e;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Grid-Ansicht („Alle anzeigen") */
.pubs.is-grid #pubsPrev,
.pubs.is-grid #pubsNext,
.pubs.is-grid .pubs-hint { display: none; }
.pubs.is-grid .pubs-track-outer {
  -webkit-mask-image: none;
  mask-image: none;
}
.pubs.is-grid .pubs-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  overflow: visible;
  cursor: auto;
}
.pubs.is-grid .pub-card {
  min-height: 240px;
  padding: 1.4rem 1.3rem 1.3rem;
}
.pubs.is-grid .pub-card.is-book::after { inset: 1.4rem auto 1.3rem 0; width: 4px; }
.pubs.is-grid .pub-meta { margin-bottom: 1rem; }
.pubs.is-grid .pub-year { font-size: 1.25rem; }
.pubs.is-grid .pub-title { font-size: 1.08rem; }
.pubs.is-grid .pub-source { font-size: 0.8rem; }
.pubs.is-grid .pub-authors { font-size: 0.78rem; }
.pubs.is-grid .pub-link { font-size: 0.78rem; margin-top: 0.7rem; }

/* ------------------------------------------------------------- Kontakt */

.contact { position: relative; overflow: clip; }
.contact-loop-bg {
  position: absolute;
  right: -12%;
  top: -10%;
  width: min(48vw, 640px);
  opacity: 0.35;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(22rem, 5.4fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 4.4vw, 3.8rem);
}
.contact h2 { margin-bottom: 1.6rem; }
.contact .lede { margin-bottom: 2.6rem; }
.contact-cta { margin-top: 2.2rem; }
.contact-form-panel {
  align-self: stretch;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  border: 1px solid rgba(15, 30, 44, 0.12);
  border-radius: 24px;
  background: #f6f7f5;
  box-shadow: 0 28px 70px -44px rgba(15, 30, 44, 0.42);
  backdrop-filter: blur(12px);
}
.contact-form-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  max-width: none;
}
.contact-form-section h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin-bottom: 2.25rem;
}
.contact-form-section .contact-form {
  width: 100%;
  max-width: none;
}
.nibbly-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.35rem;
  row-gap: 1.35rem;
}
.nibbly-form-grid .form-group {
  display: grid;
  gap: 0.58rem;
  grid-column: span 12;
}
.nibbly-form-grid .form-group--span-3 { grid-column: span 3; }
.nibbly-form-grid .form-group--span-4 { grid-column: span 4; }
.nibbly-form-grid .form-group--span-6 { grid-column: span 6; }
.nibbly-form-grid .form-group--span-8 { grid-column: span 8; }
.contact-form-section label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-80);
}
.contact-form-section input,
.contact-form-section textarea,
.contact-form-section select {
  width: 100%;
  border: 1px solid rgba(15, 30, 44, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 0;
  font: inherit;
  line-height: 1.4;
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.contact-form-section textarea {
  min-height: 9rem;
  resize: vertical;
}
.contact-form-section input:focus,
.contact-form-section textarea:focus,
.contact-form-section select:focus {
  border-color: rgba(31, 111, 196, 0.68);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(31, 111, 196, 0.12);
}
.contact-form-section .form-actions {
  margin-top: 1.7rem;
}
.contact-form-section .btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-form-section .btn-gradient::after {
  content: none;
  display: none;
}
.contact-form-section .btn-gradient:hover {
  background: #1f6fc4;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(15, 30, 44, 0.45);
}
.contact-form-section .btn-gradient .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-form-section .btn-gradient .btn-text::after {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22 11 13 2 9 22 2Z'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22 11 13 2 9 22 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contact-form-section .btn-gradient:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}
.form-feedback {
  min-height: 1.35rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.form-feedback.success { color: #2f6f20; }
.form-feedback.error { color: #b42318; }

.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.contact-list a, .contact-list .value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  text-decoration: none;
  color: var(--ink);
  text-align: right;
}
.contact-list a {
  background-image: var(--grad);
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s var(--ease-out);
  padding-bottom: 3px;
}
.contact-list a:hover { background-size: 100% 2px; }

/* ------------------------------------------------------------- Footer */

.site-footer {
  background: var(--night);
  color: #8ba0b4;
  padding-top: 1.35rem;
  padding-bottom: 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding-block: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-footer img { height: 2.86rem; width: auto; }
.footer-links {
  display: flex;
  gap: 1.8rem;
  font-size: 0.88rem;
  margin-left: auto;
}
.footer-links a { color: #b6c5d3; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.35;
}
.footer-copyright #adminAccess {
  cursor: pointer;
}
.footer-made-by {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-block: 0.57rem;
}
.footer-credit {
  display: flex;
  justify-content: flex-end;
  gap: 0.24rem;
  color: rgba(195, 207, 218, 0.48);
  font-size: 0.76rem;
  line-height: 1.25;
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
}
.footer-credit a:hover {
  color: #fff;
}
@media (max-width: 720px) {
  .footer-inner,
  .footer-brand,
  .footer-links,
  .footer-meta,
  .footer-credit {
    justify-content: center;
  }
  .footer-brand {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
  .footer-links {
    width: 100%;
    margin-left: 0;
  }
  .footer-meta {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}

/* ------------------------------------------------------------- Unterseiten (Impressum/Datenschutz) */

.legal-page {
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: var(--section-pad);
}
.legal-page .kicker { margin-bottom: 1.2rem; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
.legal-body { max-width: 46em; }
.legal-body h2 {
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
}
.legal-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 2.2rem 0 0.7rem;
}
.legal-body p, .legal-body ul { margin-bottom: 1rem; color: var(--ink-80); }
.legal-body ul { padding-left: 1.3rem; }
.legal-body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--ink); }

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; width: min(100%, 380px); }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .stage-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "intro";
    max-width: 42rem;
  }
  .stage-head .m-sub {
    max-width: 36em;
    padding-left: 0;
    border-left: none;
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-sticky { position: static; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding-left: 0; border-left: none; border-top: 1px solid var(--line); margin-top: -1px; padding-right: 1.5rem; }
  .talk-row { grid-template-columns: 56px 1fr; }
  .talk-row ul { grid-column: 2; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  #ueber-mich {
    padding-bottom: 0;
  }
  .moebius-scene.is-compact-motion {
    overflow: hidden;
  }
  .moebius-scene.is-compact-motion::after {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 200svh;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #2971C5 0%, #6BAD3E 100%);
  }
  .moebius-scene.is-compact-motion .moebius-pin {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    position: relative;
    z-index: 1;
  }
  .moebius-scene.is-compact-motion #moebiusCanvas,
  .moebius-scene.is-compact-motion .moebius-veil {
    height: 100svh;
    bottom: auto;
  }
  .moebius-scene.is-static .moebius-pin {
    padding-block: clamp(4rem, 10vw, 5.5rem);
  }
  .moebius-stage {
    pointer-events: auto;
  }
  .stage-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "intro";
    gap: 1rem;
    max-width: none;
    margin-bottom: 2rem;
  }
  .stage-head .m-kicker {
    margin-bottom: 0.35rem;
  }
  .stage-head h2 {
    max-width: 7.6em;
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .stage-head .m-sub {
    max-width: 33em;
    gap: 0.75rem;
    padding-left: 0;
    border-left: none;
    font-size: clamp(1.08rem, 3.8vw, 1.35rem);
    line-height: 1.5;
  }
  .stage-head .m-sub-lead {
    font-size: clamp(1.45rem, 5.6vw, 2rem);
  }

  .theme-grid { grid-template-columns: 1fr; }
  .moebius-stage .theme-grid {
    gap: 1.35rem;
    max-width: none;
  }
  .moebius-stage .theme-card,
  .theme-card {
    padding: clamp(1.5rem, 6vw, 2rem);
  }
  .theme-card::after {
    display: none;
  }
  .theme-card::before {
    left: clamp(1.5rem, 6vw, 2rem);
    top: clamp(1.5rem, 6vw, 2rem);
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.25rem;
  }
  .theme-card:nth-child(1) { margin-top: 0; }
  .theme-card:nth-child(2) { min-height: 0; }
  .theme-card > p,
  .theme-card .sub-label,
  .theme-card .check-list,
  .theme-card .foot-note {
    margin-left: 0;
  }
  .moebius-stage .theme-card h3,
  .theme-card h3 {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding-left: clamp(4.75rem, 17vw, 5.6rem);
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    line-height: 1.08;
    margin-bottom: 1.15rem;
  }
  .moebius-stage .theme-card > p,
  .theme-card > p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.7rem;
  }
  .moebius-stage .sub-label,
  .theme-card .sub-label {
    margin-top: 0.4rem;
    margin-bottom: 1rem!important;
    line-height: 1.3;
  }
  .check-list {
    display: grid;
    gap: 0.9rem;
  }
  .moebius-stage .check-list li,
  .check-list li {
    padding: 0.15rem 0 0.15rem 2.1rem;
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .check-list li::before {
    top: 0.55rem;
  }
  .moebius-stage .foot-note,
  .theme-card .foot-note {
    margin-top: 1.5rem;
    line-height: 1.55;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .site-header {
    overflow: visible;
  }
  .main-nav {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 2rem) var(--gutter) 3rem;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.3rem;
    transform: translateY(-100%);
    /* visibility verzögert ausblenden: Schließ-Animation bleibt sichtbar,
       aber das geschlossene Menü kann nie durchscheinen (der Header animiert
       seine eigene transform und wird dabei zum fixed-Bezugsrahmen) */
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), visibility 0s 0.45s;
    z-index: 90;
  }
  body.has-admin-bar .main-nav {
    top: 40px;
    min-height: calc(100dvh - 40px);
  }
  .main-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.45s var(--ease-out);
  }
  .main-nav a { font-size: 1.35rem; }

  .nav-toggle {
    display: block;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 120;
    position: relative;
  }
  .nav-toggle span {
    display: block;
    position: absolute;
    left: 10px;
    top: 50%;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transform-origin: center;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-toggle span:nth-child(1) { transform: translateY(-5px); }
  .nav-toggle span:nth-child(2) { transform: translateY(5px); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .services-band .wrap {
    display: grid;
    gap: clamp(1.4rem, 6vw, 2rem);
  }
  .services-intro {
    margin-bottom: 0;
  }
  .services {
    gap: 1rem;
  }
  .service,
  .service:first-child {
    border-left: none;
    border-top: 1px solid var(--line);
    margin-top: 0;
    padding: 1rem 0 0;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pubs-nav #pubsPrev,
  .pubs-nav #pubsNext { display: none; }
  .nibbly-form-grid .form-group,
  .nibbly-form-grid .form-group--span-3,
  .nibbly-form-grid .form-group--span-4,
  .nibbly-form-grid .form-group--span-6,
  .nibbly-form-grid .form-group--span-8 {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------- Motion prefs */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hero .rise, .hero-figure.rise-figure, .reveal { opacity: 1; transform: none; }
  .hero-loop-bg path { stroke-dashoffset: 0; }
}

/* -------------------------------------------------------------
   nibbly compatibility layer
   Original CSS remains authoritative. These rules only neutralize nibbly core
   defaults and preserve original spacing around editable wrapper elements.
   ------------------------------------------------------------- */

.site-header {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 30, 44, 0.08);
}

.moebius-scene {
  background: var(--paper);
  color: var(--ink);
}

.about-body .about-paragraph {
  margin-bottom: 1.4rem;
  color: var(--ink-80);
  max-width: 38em;
}

.about-body .about-paragraph strong {
  color: var(--ink);
  font-weight: 600;
}

.about-body .about-paragraph .editable-field-html {
  display: block;
}

.pub-link a {
  color: inherit;
  text-decoration: none;
}

.brand [data-editable-image],
.site-footer [data-editable-image] {
  display: block;
}
