/* ============================================================
   notboringweb — Keine langweiligen Websites mehr
   ============================================================ */

:root {
  color-scheme: dark;
  --bg:        #0a0a0a;
  --bg-elev:   #141312;
  --fg:        #f4f0e9;
  --muted:     #a49d92;
  --line:      rgba(244, 240, 233, 0.14);
  --line-soft: rgba(244, 240, 233, 0.07);
  --accent:        #ff5f1f;   /* accent as text / thin lines */
  --accent-bright: #ff5f1f;   /* accent as fill — stays vivid in both modes */
  --accent-2:  #ff8a4d;
  --ink:       #0a0a0a;
  --grain-blend: screen;
  --grain-opacity: 0.09;

  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1600px;

  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f4efe6;
  --bg-elev:   #fbf8f2;
  --fg:        #14110d;
  --muted:     #5c564c;
  --line:      rgba(20, 17, 13, 0.16);
  --line-soft: rgba(20, 17, 13, 0.07);
  --accent:        #c2410c;   /* readable burnt orange on light (AA) */
  --accent-bright: #ff5f1f;
  --grain-blend: multiply;
  --grain-opacity: 0.035;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-bright); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 0; left: 0; z-index: 200;
  background: var(--accent-bright); color: #0a0a0a;
  padding: 0.75rem 1.25rem; font-weight: 600;
  transform: translateY(-120%);
  transition: transform 0.2s var(--e-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor: solid dot, opens into a see-through ring ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 350;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  place-items: center;
  pointer-events: none;
  background: var(--accent-bright);
  border: 2px solid var(--accent-bright);
  transform: translate3d(var(--cx, 50vw), var(--cy, 50vh), 0) scale(var(--cs, 0.3));
  transition: transform 0.2s var(--e-out), background 0.2s var(--e-out), border-color 0.2s var(--e-out);
  display: none;
}
.cursor.is-hover,
.cursor.is-zone { --cs: 1; background: transparent; border-color: var(--fg); }
.cursor__label {
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600;
  color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em;
  opacity: 0; transition: opacity 0.2s; text-align: center; line-height: 1;
}
.cursor.is-zone .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: grid; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}
@media (prefers-reduced-motion: reduce) { .cursor { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: var(--accent-bright); color: #0a0a0a;
  border: 1px solid var(--accent-bright);
  border-radius: 0;
  transition: background 0.3s var(--e-out), color 0.3s var(--e-out), border-color 0.3s var(--e-out);
  will-change: transform;
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--accent-bright); color: #0a0a0a; border-color: var(--accent-bright); }
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.85rem; }
.btn--lg { padding: 1.3rem 2.6rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--e-out), border-color 0.4s var(--e-out), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.15rem var(--shell);
  display: flex; align-items: center; gap: 2rem;
}
.nav__logo { display: block; }
.nav__logo img { width: 132px; }

/* live local time — anchors the studio to a real place */
.nav__clock {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-left: 1.15rem; padding-left: 1.15rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); white-space: nowrap;
}
.nav__clock-time {
  color: var(--fg); letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.nav__clock-sep { animation: nav-blink 1.1s steps(1, end) infinite; }
@keyframes nav-blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .nav__clock-sep { animation: none; } }

.nav__links {
  margin-left: auto;
  display: flex; gap: 2rem;
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 500;
}
.nav__links a { position: relative; padding: 0.3rem 0; color: var(--muted); transition: color 0.25s; }
.nav__num {
  color: var(--accent); font-size: 0.8em; margin-right: 0.4em;
  letter-spacing: 0; font-variant-numeric: tabular-nums;
  opacity: 0.7; transition: opacity 0.25s;
}
.nav__links a:hover .nav__num { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent-bright); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--e-out);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { gap: 0.45rem; }
.nav__cta-arrow { display: inline-block; transition: transform 0.3s var(--e-out); }
.nav__cta:hover .nav__cta-arrow,
.nav__cta:focus-visible .nav__cta-arrow { transform: translate(0.22em, -0.22em); }

.nav__end { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.25rem; }

@media (max-width: 1120px) { .nav__clock { display: none; } }
@media (max-width: 900px) { .nav__end { margin-left: auto; } }
.nav__burger {
  display: none;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--fg); transition: transform 0.3s var(--e-out), opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: 7rem var(--shell) 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.6s var(--e-out);
}
.menu[hidden] { display: flex; }
.menu.is-open { transform: translateY(0); }
.menu__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.menu__nav a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 11vw, 3.5rem); line-height: 1.05;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft);
}
.menu__nav a:hover { color: var(--accent); }
.menu__idx { font-size: 0.9rem; color: var(--accent); font-weight: 500; }
.menu__foot { display: flex; flex-direction: column; gap: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.menu__foot a { color: var(--fg); }
.menu__place {
  font-family: var(--font-display); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.3rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: 9rem var(--shell) 3rem;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin: 0 auto;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}
.hero__grid span { border-left: 1px solid var(--line-soft); }
.hero__grid span:last-child { border-right: 1px solid var(--line-soft); }

.hero__inner { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(2.5rem, 9.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero__title .accent { color: var(--accent); }

.hero__bottom {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem;
  align-items: end;
}
@media (max-height: 820px) and (min-width: 781px) {
  .hero { min-height: auto; padding-block: 7.5rem 3rem; }
}
.hero__lede { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); }
/* Bodensee-Umriss im Lede-Text: inline, mit Hover-Label "BODENSEE" */
.hero__bodensee {
  position: relative;
  display: inline-block;
  vertical-align: -0.22em;
  margin: 0 0.14em;
}
.hero__bodensee img {
  display: block;
  height: 1.15em; width: auto;
  user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none; user-drag: none;
  transition: filter 0.2s var(--e-out), transform 0.2s var(--e-out);
}
.hero__bodensee:hover img,
.hero__bodensee:focus-visible img {
  filter: saturate(1.25) brightness(1.06);
  transform: translateY(-1px);
}
.hero__bodensee::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  padding: 0.32em 0.62em;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  line-height: 1; border-radius: 2px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--e-out), transform 0.18s var(--e-out);
}
.hero__bodensee:hover::after,
.hero__bodensee:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero__bodensee::after { transition: opacity 0.18s linear; transform: translateX(-50%); }
  .hero__bodensee:hover::after { transform: translateX(-50%); }
  .hero__bodensee:hover img { transform: none; }
}
.hero__side { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-end; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.hero__meta {
  font-family: var(--font-display); font-size: 0.82rem; color: var(--muted);
  letter-spacing: 0.01em; text-align: right;
}

.hero__scroll {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--muted); z-index: 0;
  pointer-events: none;
}
/* hide it wherever the hero bottom row gets tight enough to clash */
@media (max-width: 1100px) { .hero__scroll { display: none; } }
.hero__scroll-line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent-bright); animation: scrolldrop 1.8s var(--e-out) infinite;
}
@keyframes scrolldrop { 0% { top: -50%; } 100% { top: 100%; } }

@media (max-height: 820px) and (min-width: 781px) {
  .hero__scroll { display: none; }
}

@media (max-width: 780px) {
  .hero__bottom { grid-template-columns: 1fr; align-items: start; }
  .hero__side { align-items: stretch; }
  .hero__actions { justify-content: stretch; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__meta { text-align: left; }
  .hero__scroll { display: none; }
}
@media (max-width: 460px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elev);
  padding: 1.15rem 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;               /* horizontal ziehen = scrubben, vertikal = Seite scrollt */
}
.marquee__track {
  display: flex; width: max-content; gap: 0; will-change: transform;
  animation: marquee 26s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee__track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  padding-right: 1.5rem; white-space: nowrap;
}
.marquee__track b { color: var(--accent); font-weight: 400; padding: 0 0.5rem; }

/* ---------- Shared section bits ---------- */
.section-tag {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted);
}
.section-tag span {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 0.15rem 0.5rem; font-size: 0.75rem;
}
.section-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--shell) clamp(2.5rem, 6vw, 4rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.section-title {
  font-size: clamp(2.25rem, 6.5vw, 5.5rem);
  text-transform: uppercase; font-weight: 700; letter-spacing: -0.03em;
}

/* ---------- Manifest ---------- */
.manifest {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 14vw, 11rem) var(--shell);
  display: flex; flex-direction: column; gap: 2rem;
  box-shadow: inset 0 1px 0 var(--line);
}
.manifest__text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.manifest__text .accent { color: var(--accent); }
.manifest__sub {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.5rem);
  color: var(--muted); max-width: 40ch; line-height: 1.5;
}

/* ---------- Portfolio (folio) ---------- */
.folio { box-shadow: inset 0 1px 0 var(--line); }
.folio__body {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--shell) clamp(5rem, 12vw, 8rem);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.folio__text {
  grid-row: span 2;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); line-height: 1.5;
  max-width: 34ch;
}
.folio__perks { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.folio__perks li {
  padding-left: 1.6rem; position: relative; color: var(--muted);
  font-size: 0.98rem;
}
.folio__perks li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--accent);
  font-family: var(--font-display);
}
.folio__perks span { color: var(--fg); font-weight: 600; }
.folio .btn { align-self: start; }
@media (max-width: 860px) {
  .folio__body { grid-template-columns: 1fr; }
  .folio__text { grid-row: auto; max-width: 52ch; }
}

/* ---------- Services ---------- */
.services { box-shadow: inset 0 1px 0 var(--line); background: var(--bg-elev); }
.cards {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--shell) clamp(5rem, 12vw, 8rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}
.card {
  border: 1px solid var(--line); border-left: none; border-bottom: none;
  padding: 2rem 1.75rem 2.5rem;
  display: flex; flex-direction: column; gap: 1rem; min-height: 300px;
  transition: background 0.35s var(--e-out);
}
.card:hover { background: var(--bg); }
.card__no {
  font-family: var(--font-display); font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.5rem; text-transform: uppercase; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.card li {
  font-family: var(--font-display); font-size: 0.82rem; color: var(--fg);
  padding-left: 1rem; position: relative;
}
.card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; border-left: none; }
  .card { border-left: 1px solid var(--line); min-height: 0; }
}

/* ---------- Stats / principles ---------- */
.stats {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) var(--shell);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  box-shadow: inset 0 1px 0 var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat:nth-child(odd) .stat__num { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 0.9rem; max-width: 20ch; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }

/* ---------- Process ---------- */
.process { box-shadow: inset 0 1px 0 var(--line); }
.steps {
  list-style: none;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--shell) clamp(5rem, 12vw, 8rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
}
.step {
  border-top: 2px solid var(--accent);
  padding: 1.5rem 0 1rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.step__no { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); }
.step h3 { font-size: 1.35rem; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 1.5rem 0 2.25rem; }
}

/* ---------- Studio ---------- */
.studio { box-shadow: inset 0 1px 0 var(--line); background: var(--bg-elev); }
.studio__body {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--shell) clamp(5rem, 12vw, 8rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.studio__text {
  grid-column: 1 / -1; max-width: 58ch;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); line-height: 1.5;
}
.studio__statement { display: flex; flex-direction: column; gap: 1rem; }
.studio__statement blockquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
  line-height: 1.35; letter-spacing: -0.02em;
}
.studio__statement figcaption { color: var(--muted); font-size: 0.9rem; }
.studio__points { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.studio__points li {
  padding-left: 1.6rem; position: relative; color: var(--muted); font-size: 0.98rem;
}
.studio__points li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--accent);
  font-family: var(--font-display);
}
.studio__points span { color: var(--fg); font-weight: 600; }
@media (max-width: 820px) {
  .studio__body { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(6rem, 16vw, 12rem) var(--shell);
  box-shadow: inset 0 1px 0 var(--line);
  display: flex; flex-direction: column; gap: 2rem; align-items: flex-start;
}
.cta__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); pointer-events: none; }
.cta__grid span { border-left: 1px solid var(--line-soft); }
.cta > * { position: relative; z-index: 1; }
.cta__title {
  font-size: clamp(2.5rem, 9vw, 8rem);
  text-transform: uppercase; font-weight: 700; letter-spacing: -0.035em;
}
.cta__title .accent { color: var(--accent); }
.cta__actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta__mail {
  font-family: var(--font-display); font-size: 1.05rem;
  border-bottom: 1px solid var(--line); padding-bottom: 0.2rem;
  transition: border-color 0.25s, color 0.25s;
}
.cta__mail:hover { color: var(--accent); border-color: var(--accent); }
.cta__note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer {
  box-shadow: inset 0 1px 0 var(--line);
  padding: clamp(3rem, 7vw, 5rem) var(--shell) 2rem;
  max-width: var(--maxw); margin: 0 auto;
}
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 3rem; }
.footer__logo img { width: clamp(160px, 30vw, 320px); }
.footer__totop {
  background: none; border: 1px solid var(--line); color: var(--fg);
  font-family: var(--font-display); font-size: 0.85rem;
  padding: 0.7rem 1.2rem; cursor: pointer;
  display: inline-flex; gap: 0.5rem; align-items: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.footer__totop:hover { background: var(--accent-bright); color: #0a0a0a; border-color: var(--accent-bright); }
.footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 2.5rem 0; border-top: 1px solid var(--line-soft);
}
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__h { font-family: var(--font-display); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.4rem; }
.footer__col a { color: var(--fg); font-size: 0.92rem; width: max-content; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }
.footer__col span { color: var(--muted); font-size: 0.92rem; }

.footer__made {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display); font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  color: var(--muted); letter-spacing: 0.01em;
}
.footer__heart { color: var(--accent); }
.footer__zeppelin {
  display: inline-block; width: clamp(96px, 16vw, 168px); height: auto;
  vertical-align: middle; margin: 0 0.15rem;
  user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none; -khtml-user-drag: none; user-drag: none;
}

.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
  font-size: 0.8rem; color: var(--muted);
}
.footer__tagline { color: var(--accent); font-family: var(--font-display); font-weight: 500; }
@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.4rem; }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 800px; margin: 0 auto;
  padding: clamp(7rem, 16vw, 11rem) var(--shell) clamp(4rem, 10vw, 7rem);
}
.legal__back {
  font-family: var(--font-display); font-size: 0.85rem; color: var(--muted);
  display: inline-flex; gap: 0.5rem; align-items: center; margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.legal__back:hover { color: var(--accent); }
.legal h1 {
  font-size: clamp(2.25rem, 7vw, 4rem); text-transform: uppercase;
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.legal .legal__note {
  border: 1px solid var(--accent); color: var(--fg);
  padding: 1rem 1.25rem; margin-bottom: 3rem; font-size: 0.9rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.legal h2 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); text-transform: uppercase;
  margin: 3rem 0 1rem; letter-spacing: -0.02em;
  padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.4rem; margin: 1.75rem 0 0.5rem; letter-spacing: -0.01em; }
.legal h4 {
  font-size: 1rem; margin: 1.25rem 0 0.4rem; color: var(--fg);
  font-family: var(--font-body); font-weight: 600;
}
.legal p, .legal li { color: var(--muted); margin-bottom: 0.85rem; }
.legal__emph {
  border-left: 2px solid var(--accent); padding-left: 1rem;
  font-size: 0.82rem; line-height: 1.6;
}
.legal__source { font-size: 0.8rem; margin-top: 2.5rem; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--fg); border-bottom: 1px solid var(--line); }
.legal a:hover { color: var(--accent); border-color: var(--accent); }
.legal ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal .legal__ph {
  background: var(--bg-elev); border: 1px dashed var(--line);
  padding: 0.05rem 0.4rem; color: var(--accent); font-family: var(--font-display);
  font-size: 0.9em;
}
.legal__foot {
  max-width: 800px; margin: 0 auto;
  padding: 2rem var(--shell) 3rem; border-top: 1px solid var(--line-soft);
  font-size: 0.8rem; color: var(--muted);
}

/* ---------- Impressum (editorial) ---------- */
.legal.imp { max-width: 1040px; }

.imp__head { margin-bottom: clamp(3rem, 8vw, 5rem); }
.imp__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.25rem, 15vw, 9rem);
  line-height: 0.86; letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 1.25rem 0 1.75rem;
}
.imp__title .accent { color: var(--accent); }
.imp__claim {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.7rem);
  line-height: 1.3; color: var(--fg); max-width: 30ch;
}
.imp__ref { margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted); max-width: 42ch; }

.imp__grid { box-shadow: inset 0 1px 0 var(--line); }
.imp__row {
  display: grid; grid-template-columns: minmax(0, 12rem) 1fr;
  gap: 1rem 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.imp__k {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  margin: 0;
}
.imp__k span {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 0.1rem 0.45rem; font-size: 0.72rem; letter-spacing: 0.06em;
}
.imp__v > * { margin: 0; }
.imp__v address { font-style: normal; color: var(--muted); line-height: 1.6; }
.imp__v p { color: var(--muted); }
.imp__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); letter-spacing: -0.02em;
  color: var(--fg); margin-bottom: 0.6rem !important;
}
.imp__muted { color: var(--muted); font-size: 0.9rem; }
.imp__v--links { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.imp__v--links a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 0.9rem + 1.4vw, 1.9rem);
  color: var(--fg); border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem; letter-spacing: -0.01em;
  transition: color 0.2s var(--e-out), border-color 0.2s var(--e-out);
}
.imp__v--links a:hover { color: var(--accent); border-color: var(--accent); }

.imp__fine {
  margin-top: clamp(3.5rem, 9vw, 6rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  box-shadow: inset 0 1px 0 var(--line);
}
.imp__fine h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  margin-bottom: 2rem; padding: 0; border: 0;
}
.imp__fine-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
}
.imp__fine-grid article { border-top: 2px solid var(--accent); padding-top: 1rem; }
.imp__fine-grid h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0; margin: 0 0 0.5rem;
}
.imp__fine-grid p { font-size: 0.86rem; line-height: 1.6; color: var(--muted); margin: 0; }

.imp__next {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-top: clamp(3.5rem, 9vw, 6rem);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--fg); border: 0; padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--line);
  transition: color 0.25s var(--e-out), border-color 0.25s var(--e-out);
}
.imp__next:hover { color: var(--accent); border-color: var(--accent); }
.imp__next:hover .imp__next-arrow { transform: translateX(0.4rem); }
.imp__next-arrow { color: var(--accent); transition: transform 0.3s var(--e-out); }

@media (max-width: 720px) {
  .imp__row { grid-template-columns: 1fr; gap: 0.85rem; }
  .imp__fine-grid { grid-template-columns: 1fr; }
}

/* ---------- Datenschutz in Impressum-Optik (nur direkte Kinder von .legal.imp) ---------- */
.legal.imp > h2 {
  display: flex; align-items: baseline; gap: 0.85rem; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  text-transform: uppercase; letter-spacing: -0.025em; line-height: 1.05;
  margin: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
  padding-top: clamp(2rem, 5vw, 3rem);
  box-shadow: inset 0 1px 0 var(--line);
  border: 0;
}
.legal.imp > h2:first-of-type { box-shadow: none; padding-top: 0; margin-top: 0; }
.ds__n {
  flex: none; align-self: center;
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.08em;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 0.22rem 0.5rem;
}
.legal.imp > h3 {
  border-left: 2px solid var(--accent); padding-left: 0.9rem;
  margin: 2rem 0 0.6rem; font-size: 1.25rem; letter-spacing: -0.01em;
}
.legal.imp > h4 { margin-top: 1.5rem; }

/* ---------- Reveal (IntersectionObserver + CSS, rAF-independent) ---------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--e-out), transform 0.7s var(--e-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-in ~ [data-reveal].is-in { transition-delay: 0.06s; }
.js.reduced [data-reveal],
.js.no-io [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }

/* ---------- Page transition (logo → dot expands → next page) ---------- */
.transition {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  visibility: hidden;
  pointer-events: none;
}
.transition.is-active { visibility: visible; pointer-events: auto; }
html.nbw-incoming .transition { visibility: visible; }

.transition__stage {
  position: relative;
  width: min(58vw, 420px);
  aspect-ratio: 443 / 180;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.36s var(--e-out), transform 0.36s var(--e-out);
}
.transition.is-leaving .transition__stage { opacity: 1; transform: scale(1); }

.transition__logo { position: absolute; inset: 0; width: 100%; height: 100%; }
.transition.is-expanding .transition__logo,
.transition.is-covered .transition__logo {
  opacity: 0; transition: opacity 0.28s var(--e-out);
}

.transition__dot {
  position: absolute; left: 93.9%; top: 75.6%;
  width: 9.3%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.transition__dotfill {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; background: var(--accent-bright);
  transform: scale(1); transform-origin: center;
  will-change: transform;
}
.transition.is-expanding .transition__dotfill {
  transform: scale(var(--dot-scale, 120));
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.85, 0.3);
}

/* arriving: screen is already orange, then the sheet lifts away */
.transition.is-covered {
  visibility: visible;
  background: var(--accent-bright);
  transform: translateY(0);
}
.transition.is-covered .transition__stage { display: none; }
.transition.is-covered.is-revealing {
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
html.nbw-incoming .transition.is-covered { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .transition { display: none !important; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  --tt-size: 44px;
  flex: none;
  width: var(--tt-size); height: var(--tt-size);
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 0;
  color: var(--fg); cursor: pointer;
  transition: color 0.2s var(--e-out), border-color 0.2s var(--e-out), background 0.2s var(--e-out);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__sun,
.theme-toggle__moon { display: block; }
.theme-toggle__moon,
:root[data-theme="light"] .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }


/* legal pages: a small bar holding the back-link + toggle */
.legal__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.5rem;
}
.legal__bar .legal__back { margin-bottom: 0; }

/* ============================================================
   Spielereien — kleine Interaktionen mit Haltung
   Alle reduzieren sich sauber unter prefers-reduced-motion
   (globale Regel oben kappt Animationen + Transitions).
   ============================================================ */

/* --- Cursor-Zonen: der Ring zeigt ein Glyph ueber grossen Flaechen --- */
.cursor__label { white-space: nowrap; }
.cursor.is-zone {
  --cs: 1.85;
  background: transparent;
  border-color: var(--accent-bright);
}
.cursor.is-zone .cursor__label {
  opacity: 1;
  color: var(--fg);
  font-size: 0.8rem;
  letter-spacing: 0;
}

/* --- Hero-Titel: jeder Buchstabe reagiert auf den Zeiger (alle drei Zeilen) --- */
.hero__title .char {
  transition: transform 0.25s var(--e-out), color 0.2s var(--e-out);
}
/* Buchstaben-Hervorhebung nur mit echtem Zeiger — nie auf Touch (Tap = "hover") */
@media (hover: hover) and (pointer: fine) {
  .hero__title .char:hover { color: var(--accent); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero__title .char:hover { transform: translateY(-0.16em) rotate(-5deg); }
}

/* --- Scroll-Spy: aktiver Abschnitt leuchtet in der Nav --- */
.nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active .nav__num { opacity: 1; }

/* --- Marquee: greifbar. Ziehen scrubbt, Loslassen lAuft weiter --- */
.marquee { cursor: grab; }
.marquee.is-drag { cursor: grabbing; }
.marquee.is-drag .marquee__track { cursor: grabbing; }
body.has-cursor .marquee,
body.has-cursor .marquee * { cursor: none; }

/* --- Zeppelin im Footer treibt langsam über den See --- */
@keyframes zeppelin-drift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-7px) rotate(-1.2deg); }
}
.footer__zeppelin {
  animation: zeppelin-drift 7s ease-in-out infinite;
  transition: filter 0.3s var(--e-out);
}
.footer__zeppelin:hover { animation-play-state: paused; filter: saturate(1.3); }

/* --- Herz im Footer schlaegt, wenn man die Zeile beruehrt --- */
.footer__heart { display: inline-block; will-change: transform; }
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.28); }
  40%      { transform: scale(0.94); }
  60%      { transform: scale(1.12); }
}
.footer__made:hover .footer__heart { animation: heart-beat 0.9s ease-in-out infinite; }

/* --- Theme-Toggle: kreisförmige Blende (View Transitions API) --- */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.vt-theme::view-transition-new(root) {
  animation: vt-iris 0.5s var(--e-out);
}
@keyframes vt-iris {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to   { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0)); }
}

/* --- Konami-Code: kurzer Rückfall ins Jahr 2005 --- */
.retro-2005.retro-2005 {
  --bg: #000080;
  --bg-elev: #000066;
  --fg: #00ff33;
  --muted: #c0c0c0;
  --line: rgba(0, 255, 51, 0.5);
  --line-soft: rgba(0, 255, 51, 0.25);
  --accent: #ffff00;
  --accent-bright: #ffff00;
}
.retro-2005 *,
.retro-2005 *::before,
.retro-2005 *::after {
  font-family: "Times New Roman", Times, Georgia, serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.retro-2005 a { text-decoration: underline !important; }
.retro-2005 .grain,
.retro-2005 .cursor { display: none !important; }
.retro-2005 img { image-rendering: pixelated; }
.retro-2005 .hero__title,
.retro-2005 .section-title,
.retro-2005 .manifest__text,
.retro-2005 .cta__title { text-shadow: 2px 2px 0 #000; }
.retro-2005 .nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* 2005-Modus: fest Light Mode, Umschalter gesperrt */
.retro-2005 [data-theme-toggle] { opacity: 0.4; pointer-events: none; }

/* 2005-Modus: ganz normaler Systemzeiger, überall */
.retro-2005 body.has-cursor { cursor: auto !important; }
.retro-2005 body.has-cursor a,
.retro-2005 body.has-cursor button,
.retro-2005 body.has-cursor summary,
.retro-2005 body.has-cursor label,
.retro-2005 body.has-cursor [data-magnetic] { cursor: pointer !important; }
.retro-2005 body.has-cursor input,
.retro-2005 body.has-cursor textarea { cursor: text !important; }

/* 2005-Modus: alle Zier-Animationen einfrieren (GSAP wird per JS pausiert) */
.retro-2005 *,
.retro-2005 *::before,
.retro-2005 *::after { animation-play-state: paused !important; }
.retro-2005 .retro-toast,
.retro-2005 .retro-toast * { animation-play-state: running !important; }
.retro-2005 .hero__title .char:hover { transform: none !important; color: inherit !important; }

.retro-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 10000; max-width: calc(100vw - 2rem);
  background: var(--fg); color: var(--bg);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  padding: 0.85rem 1.4rem; border: 1px solid var(--bg);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  animation: retro-toast-in 0.4s var(--e-out);
}
@keyframes retro-toast-in { from { transform: translate(-50%, 1rem); opacity: 0; } }

/* Rückkehr-Knopf im 2005-Modus — bewusst im Windows-9x-Look */
.retro-back {
  position: fixed; left: 50%; bottom: 5.25rem; transform: translateX(-50%);
  z-index: 10001;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem; font-weight: 700; color: #000;
  background: #d9d5cc;
  border: 2px outset #efece4;
  padding: 0.45rem 1.4rem; cursor: pointer;
}
.retro-back:hover { background: #e7e3da; }
.retro-back:active { border-style: inset; transform: translateX(-50%) translateY(1px); }

/* Handy: Toast bricht auf zwei Zeilen um -> Knopf klar darueber setzen */
@media (max-width: 700px) {
  .retro-toast { bottom: 1.1rem; width: calc(100vw - 1.6rem); max-width: none; font-size: 0.82rem; text-align: center; }
  .retro-back { bottom: 7.25rem; }
}

/* die Manifest-Zeile ist anklickbar (Easter Egg) */
.manifest__text { cursor: pointer; }
body.has-cursor .manifest__text { cursor: none; }   /* nativen Zeiger nicht zusaetzlich zum Custom-Cursor zeigen */
.retro-2005 .manifest__text { cursor: default; }

/* ---------- Logo colour swap (dark art vs light art) ---------- */
.logo-swap { display: block; line-height: 0; }
.logo-swap__dark,
.logo-swap__light { display: block; }
.logo-swap__light,
:root[data-theme="light"] .logo-swap__dark { display: none; }
:root[data-theme="light"] .logo-swap__light { display: block; }

/* 2005-Modus laeuft auf dunklem Grund (trotz erzwungenem Light Mode) -> helles Logo */
:root.retro-2005 .logo-swap__dark { display: block; }
:root.retro-2005 .logo-swap__light { display: none; }
