/* ==========================================================================
   Christian Gröblacher – dunkles, kinetisches Design in Schwarz und Gold
   Keine externen Ressourcen, keine Inline-Styles (strikte CSP).
   ========================================================================== */

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

:root {
  --bg: #0b0a08;
  --bg-2: #15130f;
  --text: #f4efe3;
  --soft: #d9d3c5;
  --muted: #a9a294;
  --line: rgba(244, 239, 227, 0.12);
  --line-2: rgba(244, 239, 227, 0.28);
  --gold: #e2ae1b;
  --gold-hi: #ffd34d;
  --gold-deep: #7d5c00;
  --paper: #f4efe3;
  --ink: #14120e;

  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --pad: clamp(18px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

/* Feines Filmkorn über der ganzen Seite */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background-image: url("../img/noise.svg");
  background-size: 220px 220px;
  opacity: 0.07;
}

::selection {
  background: var(--gold);
  color: #111;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.sec--paper :focus-visible,
.contact :focus-visible,
.card--gold :focus-visible {
  outline-color: #111;
}

[hidden] {
  display: none !important;
}

.shell {
  position: relative;
  width: min(var(--max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  transform: translateY(-300%);
}

.skip:focus {
  transform: none;
}

.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Lesefortschritt ---------------------------------------------------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* --- Navigation --------------------------------------------------------- */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 0 var(--pad);
  pointer-events: none;
}

.nav > * {
  pointer-events: auto;
}

.nav__brand {
  position: relative;
  z-index: 2;
  display: block;
  padding: 11px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 19, 15, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease), opacity 0.4s var(--ease), visibility 0.4s;
}

.nav__brand:hover {
  transform: scale(1.04) rotate(-1.5deg);
}

/* Auf der Startseite erscheint die kleine Marke erst, wenn das große Logo aus dem Bild ist */
.has-logo .nav__brand {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.has-logo.logo-out .nav__brand {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* --- Wortmarke (klein: Navigation, Fußzeile) ---------------------------- */

.mark {
  --mh: 21px;
  display: block;
  width: auto;
  height: var(--mh);
}


.nav__menu ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 19, 15, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav__menu a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.nav__menu a span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--gold);
}

.nav__menu a:hover {
  background: rgba(244, 239, 227, 0.1);
}

.nav__menu a[aria-current="true"] {
  background: var(--gold);
  color: #111;
}

.nav__menu a[aria-current="true"] span {
  color: #111;
}

.nav__back {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 19, 15, 0.66);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.nav__back:hover {
  background: var(--gold);
  color: #111;
}

.nav__menu,
.nav__back {
  margin-left: auto;
}

/* --- Sprachumschalter DE / EN ------------------------------------------- */

.nav__lang {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 19, 15, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav__lang a {
  display: grid;
  place-items: center;
  min-width: 40px;
  padding: 9px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}

.nav__lang a:hover {
  background: rgba(244, 239, 227, 0.1);
  color: var(--text);
}

.nav__lang a[aria-current="true"] {
  background: rgba(244, 239, 227, 0.14);
  color: var(--gold);
}

/* Mittlere Breiten: Marke, Menü und Umschalter passen in eine Zeile */
@media (min-width: 1060px) and (max-width: 1359px) {
  .nav {
    gap: 10px 10px;
  }

  .nav__brand {
    padding: 10px 13px 11px;
  }

  .nav__brand .mark {
    --mh: 16px;
  }

  .nav__menu a {
    padding: 9px 12px;
  }

  .nav__menu a span {
    display: none;
  }
}

.nav__toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(21, 19, 15, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--text);
  font: 700 0.9rem var(--font-text);
  cursor: pointer;
}

.nav__toggle-icon {
  position: relative;
  width: 18px;
  height: 10px;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav__toggle-icon::before {
  top: 0;
}

.nav__toggle-icon::after {
  top: 8px;
}

.menu-open .nav__toggle-icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.menu-open .nav__toggle-icon::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* Navigation: unter 1060 px Vollbild-Menü (Marke, Menü und Sprachumschalter passen
   auf Deutsch erst ab dieser Breite nebeneinander) */
@media (max-width: 1059px) {
  /* Ohne JavaScript: waagerecht scrollbare Leiste */
  .nav__menu {
    flex: 1 1 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav__menu::-webkit-scrollbar {
    display: none;
  }

  .nav__menu ul {
    width: max-content;
  }

  .nav__brand {
    padding: 10px 13px 11px;
  }

  .nav__brand .mark {
    --mh: 14px;
  }

  .nav__back {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .nav__lang {
    order: 1;
  }

  .nav__toggle {
    order: 2;
  }

  .nav__menu {
    order: 3;
  }

  .nav__lang a {
    min-width: 36px;
    padding: 8px 8px;
  }

  .js .nav__lang {
    margin-left: auto;
  }

  /* Mit JavaScript: Vollbild-Menü */
  .js .nav {
    flex-wrap: nowrap;
  }

  .js .nav__toggle {
    display: inline-flex;
  }

  .js .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: grid;
    align-content: center;
    padding: 96px var(--pad) 40px;
    background: rgba(11, 10, 8, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    overflow-y: auto;
  }

  .js .nav__menu ul {
    flex-direction: column;
    gap: 2px;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .js .nav__menu a {
    gap: 14px;
    padding: 8px 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 9.6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s, color 0.2s;
  }

  .js .nav__menu a span {
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  .js .nav__menu a[aria-current="true"],
  .js .nav__menu a:hover {
    background: none;
    color: var(--gold);
  }

  .js .nav__menu a[aria-current="true"] span {
    color: var(--gold);
  }

  .menu-open .nav__menu {
    opacity: 1;
    visibility: visible;
  }

  .menu-open .nav__menu a {
    transform: none;
    opacity: 1;
  }

  .menu-open .nav__menu li:nth-child(2) a { transition-delay: 0.05s; }
  .menu-open .nav__menu li:nth-child(3) a { transition-delay: 0.1s; }
  .menu-open .nav__menu li:nth-child(4) a { transition-delay: 0.15s; }
  .menu-open .nav__menu li:nth-child(5) a { transition-delay: 0.2s; }
  .menu-open .nav__menu li:nth-child(6) a { transition-delay: 0.25s; }

  html.menu-open {
    overflow: hidden;
  }
}

/* --- Start -------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 118px;
  overflow: hidden;
}

@supports (overflow: clip) {
  .hero {
    overflow: visible;
    overflow-x: clip;
  }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

@media (min-width: 900px) {
  .hero__canvas {
    opacity: 1;
  }
}

.hero__glow {
  position: absolute;
  z-index: -2;
  top: -12%;
  right: -18%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 174, 27, 0.26), rgba(226, 174, 27, 0.07) 55%, transparent);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: translate(-7%, 9%) scale(1.12);
  }
}

.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: auto;
  padding-top: clamp(28px, 6vh, 64px);
}

.hero__kicker {
  color: var(--muted);
}

/* --- Schalter: Animationen anhalten (WCAG 2.2.2) ------------------------ */

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  /* Bewusst ohne backdrop-filter: iOS-Safari schneidet sonst bei halben
     Pixelpositionen die untere Randlinie ab */
  background: rgba(21, 19, 15, 0.88);
  color: var(--text);
  font: 600 0.74rem var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

/* Gold beim Überfahren nur mit Maus; auf Touch-Geräten bliebe es nach dem Antippen hängen */
@media (hover: hover) {
  .motion-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
}

/* Angehalten: goldener Rand zeigt den Zustand auf allen Geräten */
.motion-off .motion-toggle {
  border-color: var(--gold);
}

.motion-toggle[hidden] {
  display: none;
}

/* Pause-Zeichen (zwei Balken), im angehaltenen Zustand ein Dreieck */
.motion-toggle__icon {
  position: relative;
  width: 10px;
  height: 12px;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
}

.motion-off .motion-toggle__icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--gold);
  border-right: 0;
}

/* Angehalten: Dauerbewegungen stehen, der Logo-Glanz entfällt */
.motion-off .hero__glow,
.motion-off .band__track,
.motion-off .card--xl,
.motion-off .badge__spin {
  animation-play-state: paused;
}

.motion-off .logo__sheen {
  animation: none;
}

/* --- Logo (groß, Startbereich) ------------------------------------------ */
/* Feste Vektorgrafik aus der Logoschrift (siehe werkzeuge/logo). Der Pfeil im Balken
   sitzt unter dem Ö und bildet mit dessen Punkten den Smiley. */

.logo {
  display: block;
  flex: none;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-top: clamp(4px, 3vh, 40px);
  overflow: visible;
}

@media (min-width: 900px) {
  .logo {
    width: clamp(380px, 40vw, 620px);
    max-width: none;
  }
}

.logo__shadow {
  fill: var(--gold);
  opacity: 0.42;
}

.logo__chrome {
  fill: url(#logo-chrom);
}

.logo__dot {
  fill: var(--gold);
}

/* Das Ö: schwarzer "Smiley mit dicker Nase" mit weißem Schimmer, damit es auf Schwarz sichtbar bleibt */
.logo__oe {
  fill: url(#logo-oe);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.4;
}

/* Schimmer: hell direkt am Ö, nach außen weich auslaufend (Filter im SVG) */
.logo__oe-schimmer {
  fill: #fff;
  opacity: 0.95;
}

/* Saison-Varianten des Ö: Umschaltung über data-saison am <html> (siehe main.js) */
.saison {
  display: none;
}

[data-saison="weihnachten"] .saison--weihnachten,
[data-saison="neujahr"] .saison--neujahr,
[data-saison="ostern"] .saison--ostern,
[data-saison="halloween"] .saison--halloween {
  display: inline;
}

[data-saison="ostern"] .oe-standard,
[data-saison="halloween"] .oe-standard {
  display: none;
}

.logo__gold {
  fill: url(#logo-gold);
}

.logo__claim {
  fill: var(--ink);
}

.logo__smile {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Aufbau beim Laden */
.logo__name {
  animation: logo-rise 1s var(--ease) both;
}

.logo__bar {
  transform-box: fill-box;
  transform-origin: left center;
  animation: logo-wipe 0.9s 0.35s var(--ease) both;
}

.logo__claims {
  animation: logo-fade 0.8s 0.75s var(--ease) both;
}

.logo__mouth {
  transform-box: fill-box;
  transform-origin: 30% 60%;
  animation: logo-smile 0.7s 1.15s var(--ease) both;
}

/* Lichtreflex, der in Abständen über den Balken läuft */
.logo__sheen {
  transform: skewX(-18deg);
  animation: logo-sheen 6.5s 1.8s ease-in-out infinite;
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

@keyframes logo-fade {
  from {
    opacity: 0;
  }
}

@keyframes logo-wipe {
  from {
    transform: scaleX(0);
  }
}

@keyframes logo-smile {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-14deg);
  }
}

@keyframes logo-sheen {
  0% {
    transform: translateX(0) skewX(-18deg);
  }

  30%,
  100% {
    transform: translateX(2100px) skewX(-18deg);
  }
}

.hero__kicker span {
  color: var(--gold);
}

.hero__title {
  margin: 0.28em 0 0;
  font-size: clamp(2.7rem, 7.5vw, 7rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.04em;
}

.line {
  display: block;
  animation: rise 1s var(--ease) both;
}

.line:nth-child(2) {
  animation-delay: 0.1s;
}

.line:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
}

.line--outline {
  color: transparent;
  -webkit-text-stroke: 0.017em var(--text);
}

.hl {
  position: relative;
  display: inline-block;
  color: var(--gold);
}

.hl__stroke {
  position: absolute;
  left: -2%;
  bottom: -0.1em;
  width: 104%;
  height: 0.2em;
  overflow: visible;
  animation: wipe 0.9s 0.95s var(--ease) both;
}

.hl__stroke path {
  fill: none;
  stroke: var(--gold-hi);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

@keyframes wipe {
  from {
    clip-path: inset(-50% 100% -50% 0);
  }

  to {
    clip-path: inset(-50% -5% -50% 0);
  }
}

.hero__foot {
  display: grid;
  gap: 26px;
  margin-top: clamp(26px, 4vw, 52px);
  animation: rise 1s 0.35s var(--ease) both;
}

@media (min-width: 900px) {
  .hero__foot {
    grid-template-columns: minmax(0, 540px) auto;
    justify-content: space-between;
    align-items: end;
  }
}

.hero__lead {
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.3s, transform 0.25s var(--ease);
}

.btn i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #111;
}

.btn--gold i {
  background: #111;
  color: var(--gold-hi);
}

.btn--gold:hover {
  background: var(--gold-hi);
  box-shadow: 0 0 0 7px rgba(226, 174, 27, 0.2);
}

.btn--gold:hover i {
  transform: rotate(45deg);
}

.btn--ghost {
  border: 1px solid var(--line-2);
  background: rgba(11, 10, 8, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost i {
  background: rgba(244, 239, 227, 0.12);
}

.btn--ghost:hover {
  border-color: var(--text);
}

.btn--ghost:hover i {
  transform: translateY(4px);
}

/* Gekreuzte Laufbänder */
.bands {
  position: relative;
  height: clamp(118px, 15vw, 190px);
  margin-top: clamp(22px, 3vw, 40px);
}

.band {
  position: absolute;
  left: -6vw;
  width: 112vw;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
}

.band--gold {
  top: 22%;
  z-index: 2;
  padding: 0.62em 0;
  background: var(--gold);
  color: #111;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  transform: rotate(-2.4deg);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.55);
}

.band--dark {
  top: 30%;
  z-index: 1;
  padding: 0.9em 0;
  border-block: 1px solid var(--line);
  background: #1c1913;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  letter-spacing: 0.34em;
  transform: rotate(2.1deg);
}

.band__track {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
  padding-right: 1.5em;
  animation: marquee 40s linear infinite;
}

.band__track--rev {
  animation-duration: 56s;
  animation-direction: reverse;
}

.band__track i {
  font-style: normal;
  font-size: 0.7em;
}

.band--dark i {
  color: var(--gold);
  font-size: 0.6em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --- Abschnitte --------------------------------------------------------- */

.sec {
  position: relative;
  padding: clamp(84px, 12vw, 168px) 0;
}

.sec-head {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(36px, 5vw, 68px);
}

.sec-no {
  position: absolute;
  z-index: -1;
  top: -0.16em;
  right: -0.03em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(6.5rem, 21vw, 18rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 227, 0.22);
  user-select: none;
  pointer-events: none;
}

h2 {
  max-width: 17ch;
  margin-top: 0.3em;
  font-size: clamp(2.1rem, 5.8vw, 4.8rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 em {
  font-style: normal;
  color: var(--gold);
}

.sec-lead {
  max-width: 58ch;
  margin: 1.5em 0 0;
  font-size: 1.125rem;
  color: var(--muted);
}

/* --- Kompetenzen -------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(244, 239, 227, 0.07), rgba(244, 239, 227, 0.02));
  transition: transform 0.5s var(--ease), border-color 0.3s;
}

.js .card[data-reveal] {
  transition: transform 0.6s var(--ease), border-color 0.3s, opacity 0.9s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(226, 174, 27, 0.2), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: rgba(226, 174, 27, 0.5);
  }

  .card:hover::before {
    opacity: 1;
  }
}

.card__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.card h3 {
  margin: 0.55em 0 0.85em;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  hyphens: manual;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--soft);
}

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.ticks strong {
  color: var(--text);
}

/* Umlaufender Lichtrand an der großen Karte */
.card--xl {
  border-color: transparent;
  background:
    linear-gradient(160deg, #1d1a14, #12100c) padding-box,
    conic-gradient(from var(--spin), rgba(244, 239, 227, 0.1) 0 62%, var(--gold-hi) 80%, rgba(244, 239, 227, 0.1) 100%) border-box;
  animation: spin 7s linear infinite;
}

@keyframes spin {
  to {
    --spin: 360deg;
  }
}

.card--gold {
  border-color: transparent;
  background: var(--gold);
  color: #111;
}

.card--gold .card__tag,
.card--gold .ticks,
.card--gold .ticks strong {
  color: #111;
}

.card--gold .ticks li::before {
  background: #111;
}

.card--gold::before {
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.45), transparent 62%);
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--xl {
    grid-column: span 2;
  }

  .ticks--2 {
    grid-template-columns: 1fr 1fr;
    gap: 14px 34px;
  }
}

@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .card {
    grid-column: span 2;
  }

  .card--xl {
    grid-column: span 4;
  }
}

/* --- Projekte ----------------------------------------------------------- */

.sec--rail {
  padding-bottom: clamp(64px, 9vw, 120px);
}

.rail-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 0.9rem var(--font-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--gold);
}

.chip[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: #111;
}

.rail-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-count {
  margin: 0 8px 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.rail-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold);
  color: #111;
}

.rail-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.rail {
  --edge: max(var(--pad), calc((100% - var(--max)) / 2));
  position: relative;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 8px var(--edge) 26px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail:focus-visible {
  outline-offset: -3px;
  border-radius: 0;
}

.case {
  flex: 0 0 min(86vw, 470px);
  scroll-snap-align: start;
}

.case article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

@media (hover: hover) {
  .case article:hover {
    border-color: rgba(226, 174, 27, 0.55);
    transform: translateY(-4px);
  }
}

.case__no {
  position: absolute;
  top: 4px;
  right: 20px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 6.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 174, 27, 0.6);
  user-select: none;
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 62%;
  min-height: 5.6rem;
  margin: 0 0 1.2rem;
  align-content: flex-start;
}

.case__tags span {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--soft);
}

.case h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.case__sub {
  margin: 0.55em 0 1.3em;
  font-size: 0.98rem;
  color: var(--muted);
}

.case dl {
  display: grid;
  margin: auto 0 0;
}

.case dl div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.case dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.case dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--soft);
}

.case dl .case__result {
  margin-top: 6px;
  padding: 15px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--gold);
}

.case__result dt,
.case__result dd {
  color: #111;
}

.case__result dd {
  font-weight: 600;
}

.rail-bar {
  height: 2px;
  background: var(--line);
}

.rail-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--rp, 0.125));
  transition: transform 0.3s var(--ease);
}

/* --- Training (heller Abschnitt) ---------------------------------------- */

.sec--paper {
  margin: 0 clamp(8px, 1.4vw, 20px);
  border-radius: clamp(28px, 5vw, 64px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.sec--paper .kicker {
  color: var(--gold-deep);
}

.sec--paper h2 em {
  color: var(--gold-deep);
}

.sec--paper .sec-lead {
  color: #4a453b;
}

.sec--paper .sec-no {
  display: none;
}

.badge {
  position: absolute;
  top: -30px;
  right: 0;
  width: clamp(112px, 17vw, 210px);
  height: auto;
}

.badge text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2.3px;
  fill: var(--ink);
}

.badge__spin {
  transform-origin: 50% 50%;
  animation: turn 24s linear infinite;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.badge__core {
  fill: var(--ink);
}

.badge__star {
  fill: var(--gold);
}

@media (max-width: 699px) {
  .sec--paper .sec-head {
    padding-top: 84px;
  }
}

.train {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.train__block {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid rgba(20, 18, 14, 0.12);
  border-radius: 26px;
  background: #fffdf8;
}

.train__block h3 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.97rem;
  font-weight: 600;
}

.pills li:nth-child(-n + 2) {
  background: var(--gold);
  color: #111;
}

.plain {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

.plain li {
  padding-left: 16px;
  border-left: 4px solid var(--gold);
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 46px;
  padding-left: 62px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-hi);
  font: 700 0.8rem var(--font-mono);
}

.steps li::after {
  content: "";
  position: absolute;
  top: 50px;
  bottom: -16px;
  left: 22px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 5px, transparent 5px 10px);
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.steps span {
  color: #4a453b;
}

@media (min-width: 860px) {
  .train {
    grid-template-columns: 1fr 1fr;
  }

  .train__block--steps {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .steps li {
    padding: 62px 0 0;
  }

  .steps li::after {
    top: 22px;
    bottom: auto;
    left: 58px;
    right: -16px;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 10px);
  }
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.creds li {
  padding: 10px 16px;
  border: 1px solid rgba(20, 18, 14, 0.35);
  border-radius: 999px;
  font: 600 0.92rem var(--font-text);
}

/* --- Arbeitsweise ------------------------------------------------------- */

.limits {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.limits li {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 32px;
  padding: clamp(22px, 3vw, 40px) clamp(4px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s;
}

.js .limits li[data-reveal] {
  transition: color 0.3s, opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.limits li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}

.limits__no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  transition: color 0.3s;
}

.limits h3 {
  font-size: clamp(1.7rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.limits p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
  transition: color 0.3s;
}

@media (min-width: 860px) {
  .limits li {
    grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (hover: hover) {
  .limits li:hover {
    color: #111;
  }

  .limits li:hover::before {
    transform: scaleY(1);
  }

  .limits li:hover .limits__no,
  .limits li:hover p {
    color: #111;
  }
}

.quote {
  margin: clamp(60px, 9vw, 130px) 0 0;
}

.quote p {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.quote span:first-child {
  color: var(--gold);
}

.quote span:last-child {
  color: transparent;
  -webkit-text-stroke: 0.02em var(--text);
}

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

.contact {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 10vw, 150px) 0 clamp(70px, 9vw, 120px);
  border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0;
  background: var(--gold);
  color: #111;
  overflow: hidden;
}

.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14vw;
  bottom: -20vw;
  width: 48vw;
  aspect-ratio: 1;
  border: 1px solid rgba(17, 17, 17, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 0 5vw rgba(17, 17, 17, 0.06), 0 0 0 10vw rgba(17, 17, 17, 0.05), 0 0 0 15vw rgba(17, 17, 17, 0.04);
  pointer-events: none;
}

.contact .kicker {
  color: #111;
}

.contact__title {
  max-width: none;
  margin-top: 0.18em;
  font-size: clamp(2.7rem, 9.8vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  hyphens: manual;
}

.contact__lead {
  max-width: 40ch;
  margin: 1.5em 0 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.contact__mail {
  margin: clamp(30px, 5vw, 60px) 0 0;
}

.contact__mail a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding-bottom: 0.12em;
  border-bottom: 0.07em solid #111;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__mail i {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #111;
  color: var(--gold-hi);
  font-size: 0.62em;
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.contact__mail a:hover i {
  transform: rotate(45deg) scale(1.1);
}

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin: clamp(28px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.contact__meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact__meta a,
.contact__meta strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

/* --- Fuß ---------------------------------------------------------------- */

.foot {
  background: var(--bg);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 34px 40px;
  font-size: 0.9rem;
}

.foot__brand {
  display: block;
}

.foot__brand .mark {
  --mh: 24px;
}

/* Saison-Wortmarken mit Hut sind oben um 72 Einheiten höher (Faktor 1.6516, siehe logo_erzeugen.py);
   die Schrift bleibt gleich groß, der Hut ragt nach oben. */
[data-saison="weihnachten"] .mark,
[data-saison="neujahr"] .mark {
  height: calc(var(--mh) * 1.6516);
  margin-top: calc(var(--mh) * -0.6516);
}

.foot__links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.foot__copy {
  margin: 0 0 0 auto;
  color: var(--muted);
}

.foot__note {
  flex: 1 1 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* --- Rechtstexte -------------------------------------------------------- */

.legal {
  padding: clamp(130px, 16vw, 190px) 0 clamp(70px, 9vw, 110px);
}

.legal .shell {
  width: min(780px, 100% - 2 * var(--pad));
}

.legal h1 {
  margin: 0.2em 0 0.6em;
  font-size: clamp(2.4rem, 7.4vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  hyphens: manual;
}

.legal h2 {
  max-width: none;
  margin: 46px 0 12px;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--gold);
  text-wrap: wrap;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
}

.legal p,
.legal ul,
.legal address {
  margin: 0 0 14px;
  color: var(--soft);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li::marker {
  color: var(--gold);
}

.legal address {
  font-style: normal;
}

.legal strong {
  color: var(--text);
}

.legal .panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(244, 239, 227, 0.05);
}

.legal .panel > :last-child {
  margin-bottom: 0;
}

.legal .note {
  margin-bottom: 30px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: 0.92rem;
  color: var(--muted);
}

.err-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.todo {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold);
  color: #111;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.stand {
  margin-top: 44px !important;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted) !important;
}

/* --- 404 ---------------------------------------------------------------- */

.legal .err {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 31vw, 23rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}

.err-lead {
  max-width: 34ch;
  margin: 1.2em 0 1.6em;
  font-size: 1.25rem;
  color: var(--soft);
}

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

.about {
  position: relative;
  isolation: isolate;
  padding: clamp(130px, 15vw, 180px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}

/* Warmer Lichthof hinter dem Porträt */
.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12vw;
  right: -18vw;
  width: 70vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 174, 27, 0.17), rgba(226, 174, 27, 0.05) 55%, transparent);
  pointer-events: none;
}

.about__grid {
  display: grid;
  gap: clamp(56px, 7vw, 100px);
  align-items: center;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.about__title {
  margin: 0.3em 0 0;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.04em;
  hyphens: manual;
}

.about__dot {
  color: var(--gold);
}

.about__lead {
  max-width: 46ch;
  margin: 1.4em 0 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--soft);
  animation: rise 1s 0.25s var(--ease) both;
}

.facts {
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  animation: rise 1s 0.4s var(--ease) both;
}

.facts li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts strong {
  font-weight: 600;
}

@media (min-width: 520px) {
  .facts li {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }
}

/* Porträt: Bogenform, goldener Duoton, versetzter Goldrahmen */
.portrait {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(78%, 460px);
  margin: 0 18px 18px 0;
  animation: rise 1.1s 0.2s var(--ease) both;
}

@media (max-width: 899px) {
  .portrait {
    order: -1;
  }
}

.portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: 999px 999px 32px 32px;
  transform: translate(18px, 18px);
  transition: transform 0.6s var(--ease);
}

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 32px 32px;
  background: var(--bg-2);
  overflow: hidden;
}

.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(0.92);
  transform: scale(1.04);
  transition: filter 0.9s var(--ease), transform 1.2s var(--ease);
}

/* Goldton über dem Schwarzweißbild */
.portrait__frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(165deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  mix-blend-mode: color;
  opacity: 0.88;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}

/* Unten weich ins Dunkel auslaufen */
.portrait__frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 8, 0.82), rgba(11, 10, 8, 0) 38%);
  pointer-events: none;
}

/* Rundes Siegel am Bildrand; dreht sich nur, solange man auf das Bild zeigt */
.seal {
  position: absolute;
  z-index: 3;
  left: clamp(-56px, -4vw, -28px);
  bottom: 54px;
  width: clamp(104px, 11vw, 144px);
  height: auto;
}

.seal__bg {
  fill: var(--bg);
  stroke: var(--line-2);
  stroke-width: 1;
}

.seal text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.6px;
  fill: var(--text);
}

.seal__spin {
  transform-origin: 50% 50%;
  animation: turn 18s linear infinite paused;
}

.seal__core {
  fill: var(--gold);
}

.seal__oe {
  fill: #111;
}

/* Mund wie im Logo: Pfeil-Lächeln unter dem Ö */
.seal__smile {
  fill: none;
  stroke: #111;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .portrait:hover::before {
    transform: translate(9px, 9px);
  }

  .portrait:hover .portrait__img {
    filter: grayscale(0) contrast(1.04) brightness(1);
    transform: scale(1);
  }

  .portrait:hover .portrait__frame::after {
    opacity: 0;
  }

  .portrait:hover .seal__spin {
    animation-play-state: running;
  }
}

/* Werdegang: Überschrift links, Text rechts, goldene Initiale */
.sec--story {
  padding-top: clamp(60px, 8vw, 110px);
}

.story__body p {
  max-width: 58ch;
  margin: 0 0 1.1em;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  color: var(--soft);
}

.story__body p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 4.4em;
  font-weight: 800;
  line-height: 0.8;
  color: var(--gold);
}

@media (min-width: 900px) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
  }

  .story .sec-head {
    margin-bottom: 0;
  }

  .story__body {
    padding-top: 2.2em;
  }
}

/* --- Einblenden beim Scrollen ------------------------------------------- */

.js [data-reveal] {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(36px);
}

.js [data-reveal="1"] {
  transition-delay: 0.09s;
}

.js [data-reveal="2"] {
  transition-delay: 0.18s;
}

/* --- Weniger Bewegung, Druck -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal]:not(.is-in) {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body::after,
  .nav,
  .progress,
  .bands,
  .hero__canvas,
  .hero__glow,
  .rail-tools,
  .badge {
    display: none !important;
  }

  body,
  .sec--paper,
  .contact,
  .card,
  .case article {
    background: #fff !important;
    color: #000 !important;
  }

  .js [data-reveal]:not(.is-in) {
    opacity: 1;
    transform: none;
  }

  .rail {
    display: block;
    overflow: visible;
  }
}
