/* ==========================================================================
   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;
  --font-label-size: 1rem;

  --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; }
html.moebius-auto-scroll { scroll-behavior: auto !important; }

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; }

.photo-credit {
  position: absolute;
  right: 0.5rem;
  bottom: 0.875rem;
  z-index: 3;
  padding: 0.3rem 0.2rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink-80);
  background: rgba(247, 245, 240, 0.85);
}

.hero-figure .photo-credit { background: none; }

a { color: inherit; }

.svg-defs {
  position: absolute;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Fraunces bleibt den großen Seiten- und Abschnittsüberschriften vorbehalten. */
h1, .display-xl, .display-l {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
}

@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;
}

/* Lesbare Nebeninformationen bleiben bei mindestens 1rem (standardmäßig 16px). */
main small, .site-footer small, .contact-form-section .form-hint { font-size: 1rem; }

/* Kicker: Zeile mit Möbius-Glyphe */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--font-label-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  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: 1rem;
  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: 1rem;
  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: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.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;
  z-index: 1;
  align-self: end;
  justify-self: end;
  width: min(100%, 430px);
}
.hero-figure .portrait-frame {
  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;
}
/* 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);
}
.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-body);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  display: block;
  line-height: 1.1;
}
.stat > span {
  font-size: 1rem;
  color: var(--ink-60);
}
body.has-admin-bar .stat b,
body.has-admin-bar .stat span {
  display: block;
}
body.has-admin-bar .stat b > .editable-field {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
body.has-admin-bar .stat > span > .editable-field {
  font-size: inherit !important;
  line-height: inherit !important;
}
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: var(--font-label-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  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: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.honorary-list .org {
  font-family: var(--font-body);
  font-weight: 600;
  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-pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.moebius-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 80%;
  max-width: 86%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

/* Native sticky positioning reserves its space without a JS pin spacer. */
.moebius-scene.has-scroll-motion .moebius-pin {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}
.moebius-scene.has-scroll-motion .moebius-stage {
  margin-top: 100vh;
  margin-top: 100svh;
  background: none;
}
.moebius-scene.is-transforming .moebius-image {
  will-change: transform, opacity;
}

.moebius-hint {
  position: absolute;
  top: clamp(6.5rem, 14vh, 9rem);
  left: var(--gutter);
  max-width: 15em;
}
.moebius-hint .hint-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--font-label-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  line-height: 1.4;
  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-body);
  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;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(104deg, #58b4f0 -4%, #1a5fc0 45%, #79bd2e 104%);
  opacity: 0;
  pointer-events: none;
}

/* Themen bleiben im normalen Dokumentfluss, auch ohne JavaScript. */
.moebius-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5rem 0 7rem;
  padding-block: clamp(4rem, 8vh, 6rem) clamp(5rem, 10vh, 8rem);
  background: linear-gradient(104deg, #58b4f0 -4%, #1a5fc0 45%, #79bd2e 104%);
}
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: var(--font-label-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  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: 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-body);
  font-weight: 600;
  font-size: clamp(1.22rem, 1.8vw, 1.55rem);
  line-height: 1.4;
  color: #fff;
  text-wrap: balance;
}

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

/* 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-lead { font-size: 1.12rem; }
}

/* ------------------------------------------------------------- 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;
}
.theme-card {
  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: "";
  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) url("../assets/images/infinity-mark.svg") center / 1.85rem 1.2rem no-repeat;
  color: #1b5fae;
  pointer-events: none;
}
.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; }
.moebius-stage .theme-card .sub-label,
.theme-card .sub-label {
  font-size: var(--font-label-size);
  font-weight: 700;
  letter-spacing: 0.12em;
  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: 1rem;
  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-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.5;
  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-body);
  font-weight: 600;
  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: 1rem; 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-body);
  font-weight: 600;
  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: 1rem;
}
.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: 1rem;
}

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

.pubs {
  background: #f0f7f3;
  background: linear-gradient(115deg, #edf6fb 0%, #f2f8f3 65%, #eef6e6 100%);
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--green);
  color: var(--ink);
  position: relative;
  overflow: clip;
}
.pubs .kicker { color: #526776; }
.pubs h2 { color: var(--ink); }
.pubs .accent-i { background-image: linear-gradient(120deg, #1a5fc0 0%, #277dab 38%, #4c8426 100%); }
.pubs .lede { color: var(--ink-80); }
.pubs-lede { margin-top: 1.2rem; }
.pubs-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.65rem;
  margin-top: 0.85rem;
  font-size: 1rem;
}
.pubs-profile-links { display: inline-flex; align-items: baseline; gap: 0.55rem; white-space: nowrap; }
.pubs-profile-link {
  display: inline-block;
  padding-block: 0.25rem;
  color: #185d97;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.pubs-profile-link:hover { color: var(--ink); }
.pubs-profile-link:focus-visible { outline: 2px solid #185d97; outline-offset: 3px; }

.pubs-loop-bg {
  position: absolute;
  left: -10%;
  bottom: -22%;
  width: min(55vw, 760px);
  opacity: 0.2;
  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 #7b9096;
  background: #fff;
  color: var(--ink);
  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: #e0edf1;
  border-color: #526776;
  transform: translateY(-2px);
}
.pubs-nav button:disabled { opacity: 0.35; cursor: default; transform: none; }
.pubs-nav button:focus-visible,
.pub-card:focus-visible { outline: 2px solid #185d97; outline-offset: 3px; }
.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));
  overflow: hidden;
}
.pubs-track-outer::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 1.5rem;
  width: 1px;
  background: #9aaeb2;
  box-shadow: -5px 0 10px 3px rgba(15, 30, 44, 0.16);
  pointer-events: none;
}
.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: #fff;
  border: 1px solid #ccd9d6;
  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: #728b98;
}

.pub-card.is-book {
  background: linear-gradient(160deg, #f7fbfd 0%, #f4f9f5 100%);
  border-color: #bed3cd;
  position: relative;
  overflow: hidden;
}
.pub-card.is-book:hover { border-color: #728b98; }
.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;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.4rem;
  padding-left: 0;
}
.pub-type {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #ccd9df;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: #365f7a;
}
.pub-card.is-book .pub-type { color: #386728; border-color: #aec5a5; }
.pub-year {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
}
.pub-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.pub-source {
  font-size: 1rem;
  line-height: 1.5;
  color: #526776;
  margin-top: auto;
}
.pub-authors {
  font-size: 1rem;
  color: #526776;
  margin-bottom: 0.6rem;
}
.pub-link {
  margin-top: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: #185d97;
}
.pub-card.is-book .pub-link { color: #386728; }
.pub-title, .pub-source, .pub-authors, .pub-link {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.pubs-hint {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: #526776;
  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 {
  overflow: visible;
}
.pubs.is-grid .pubs-track-outer::after { display: 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-link { 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;
}
.contact-privacy-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-60);
}
.contact-privacy-note a { text-decoration: underline; text-underline-offset: 0.15em; }
.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: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-80);
}
.contact-form-section .form-group label { font-size: 1rem; }
.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: 1rem;
  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: var(--font-label-size);
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.contact-list a, .contact-list .value {
  font-family: var(--font-body);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
  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: 3.3rem; width: auto; }
.footer-links {
  display: flex;
  gap: 1.8rem;
  font-size: 1rem;
  margin-left: auto;
}
.footer-links a { font-size: 1rem; color: #b6c5d3; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  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;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.24rem;
  color: rgba(195, 207, 218, 0.48);
  font-size: 0.8125rem;
  line-height: 1.25;
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.64);
  white-space: nowrap;
  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) */

.page-legal {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.page-legal .skip-link:not(:focus) { box-shadow: none; }

.legal-page {
  flex: 1;
  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; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal-body { max-width: 46em; overflow-wrap: anywhere; }
.legal-body h2 {
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
  scroll-margin-top: 8rem;
}
.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 (600px <= width <= 1020px) {
  .hero-grid { column-gap: clamp(0.5rem, 1vw, 0.75rem); }
  .hero-figure { width: min(calc(100% + clamp(1rem, 4vw, 2.5rem)), 430px); }
  .hero-copy .kicker { margin-bottom: 1.25rem; }
  .hero-copy h1 { margin-bottom: 1.25rem; }
  .hero-copy .lede { margin-bottom: 1.5rem; }
  .hero-ctas { gap: 0.75rem 1.25rem; }
  .hero-ctas .btn-primary { padding-inline: 1rem; }
}

@media (max-width: 1020px) {
  .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: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  #ueber-mich {
    padding-bottom: 0;
  }
  .moebius-image {
    top: 61%;
    height: 62%;
    max-width: 84%;
  }
  .moebius-hint {
    top: 5.5rem;
    max-width: 22em;
    padding-right: var(--gutter);
  }
  .moebius-hint .hint-sub {
    font-size: 1.05rem;
    margin-left: 0;
  }
  .moebius-stage {
    padding-block: 4rem 5rem;
  }
  .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;
    background-size: 2.25rem 1.45rem;
  }
  .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 (width < 600px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-figure { justify-self: start; width: min(100%, 380px); }
}

@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 1.5rem 1.2rem; }
  .nibbly-form-grid { column-gap: 0; }
  .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;
}
