/* ==========================================================================
   daveonduty – persönliches Portfolio
   Design-System: dunkler Grund, Neon-Gelb + Cyan, verspielt-technischer Look
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-variable.woff2') format('woff2-variations'),
       url('../fonts/space-grotesk-variable.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-variable.woff2') format('woff2-variations'),
       url('../fonts/ibm-plex-sans-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-variable.woff2') format('woff2-variations'),
       url('../fonts/jetbrains-mono-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-variable.woff2') format('woff2-variations'),
       url('../fonts/caveat-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #08080d;
  --panel: #131319;
  --panel-raised: #1a1a22;
  --paper: #f4f4f2;
  --muted: #a7a7b8;
  --yellow: #f5e000;
  --yellow-dim: #c7b700;
  --cyan: #33e6e0;
  --line: #2a2a35;

  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --font-hand: 'Caveat', 'Segoe Script', cursive;

  --max-width: 1160px;
  --cut: 14px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(245,224,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,224,0,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Schwebende Gästebuch-Kommentare (nur Startseite, nur wenn welche vorhanden sind) ---------- */
.floating-comments {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.floating-comment {
  position: absolute;
  left: 0;
  font-family: var(--font-hand);
  white-space: nowrap;
  line-height: 1.2;
  animation-name: float-across;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes float-across {
  from { transform: translateX(-35vw); }
  to { transform: translateX(135vw); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-comment { animation: none; transform: translateX(50vw); }
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); }
h1.h1-tight { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-mono);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
}
.logo span { color: var(--yellow); }
.logo .cursor {
  display: inline-block;
  width: 9px; height: 1.05em;
  background: var(--cyan);
  margin-left: 3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-mono);
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a::before { content: '/'; color: var(--cyan); margin-right: 5px; opacity: 0.7; }
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--yellow);
}

.social-links { display: flex; gap: 16px; align-items: center; }
.social-links a {
  display: flex;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s, filter 0.2s;
}
.social-links a:hover {
  color: var(--yellow);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(245,224,0,0.6));
}
.social-links svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 24px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--font-mono); }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(51,230,224,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--muted);
  padding: 13px 28px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: block;
}
.hero-eyebrow::before { content: '// '; }
.hero h1 {
  text-shadow: 0 0 30px rgba(245,224,0,0.25);
}
.hero h1 .accent { color: var(--yellow); }
.hero-handle {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1rem;
  margin: -10px 0 22px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-photo {
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  position: relative;
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(51,230,224,0.16), transparent 40%, rgba(245,224,0,0.14));
  pointer-events: none;
}

/* ---------- Photo stack (scattered, not static rectangles) ---------- */
.photo-stack {
  position: relative;
  padding: 10px 34px 34px 10px;
}
.photo-stack .stack-main {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: rotate(-2.5deg);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.55);
}
.photo-stack .stack-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-stack .stack-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(51,230,224,0.16), transparent 40%, rgba(245,224,0,0.14));
}
.photo-stack .stack-accent {
  position: absolute;
  z-index: 1;
  width: 52%;
  aspect-ratio: 1 / 1;
  bottom: 0;
  right: 0;
  overflow: hidden;
  transform: rotate(6deg);
  border: 2px solid var(--yellow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.5);
}
.photo-stack .stack-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-stack.is-interactive { cursor: pointer; }
.photo-stack .stack-main img,
.photo-stack .stack-accent img {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.photo-stack.is-swapping .stack-main img,
.photo-stack.is-swapping .stack-accent img {
  opacity: 0;
  transform: scale(1.06);
}
.photo-stack.is-interactive:hover .stack-main,
.photo-stack.is-interactive:hover .stack-accent {
  filter: brightness(1.06);
}
.photo-stack .stack-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 3;
  background: rgba(8,8,13,0.75);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 9px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.photo-stack.is-interactive:hover .stack-hint,
.photo-stack.is-interactive:focus-visible .stack-hint {
  opacity: 1;
}
.photo-stack .stack-tag {
  position: absolute;
  top: -6px;
  left: 20px;
  z-index: 3;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  transform: rotate(-2.5deg);
}

/* ---------- Fact card photo accent ---------- */
.fact-card { position: relative; overflow: visible; }
.fact-card.has-photo { padding-top: 20px; }
.fact-photo {
  width: 74px;
  height: 74px;
  position: absolute;
  top: -16px;
  right: 18px;
  overflow: hidden;
  transform: rotate(7deg);
  border: 2px solid var(--cyan);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.fact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Photo cluster (several photos, layered with a background) ---------- */
.photo-cluster {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0 6% 6% 6%;
}
.cluster-bg {
  position: absolute;
  width: 33%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0.48;
  filter: saturate(0.6) brightness(0.85);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  z-index: 1;
}
.cluster-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cluster-bg-1 { top: -8%; left: -10%; transform: rotate(-10deg); }
.cluster-bg-2 { bottom: -8%; right: -10%; transform: rotate(9deg); }
.cluster-bg-3 { top: -8%; right: -10%; transform: rotate(7deg); }
.cluster-bg-4 { bottom: -8%; left: -10%; transform: rotate(-6deg); }
.cluster-main {
  position: absolute;
  inset: 9% 11%;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: rotate(-2deg);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.55);
  cursor: pointer;
}
.cluster-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(51,230,224,0.16), transparent 40%, rgba(245,224,0,0.14));
  pointer-events: none;
}
.cluster-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cluster-main.is-swapping img { opacity: 0; transform: scale(1.06); }
.cluster-counter {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 3;
  background: rgba(8,8,13,0.75);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 4px 9px;
  letter-spacing: 0.03em;
}
.cluster-counter .dim { color: var(--muted); }
.cluster-main .stack-hint {
  position: absolute;
  bottom: 6px; right: 6px;
  z-index: 3;
  background: rgba(8,8,13,0.75);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 9px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.cluster-main:hover .stack-hint,
.cluster-main:focus-visible .stack-hint { opacity: 1; }
.photo-cluster .stack-tag {
  position: absolute;
  top: 2%;
  left: 14%;
  z-index: 3;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  transform: rotate(-2.5deg);
}

.prose-figure {
  position: relative;
  max-width: 480px;
  margin: 32px auto;
  overflow: hidden;
  border: 1px solid var(--line);
}
.prose-figure img { width: 100%; display: block; }
.prose-figure figcaption {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 10px 2px 0;
}
.map-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0;
}
.map-pin-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: var(--yellow);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 12px rgba(245,224,0,0.7);
}
.map-pin-dot::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px solid var(--yellow);
  animation: pulse-ring 2.2s ease-out infinite;
}
.map-pin-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--yellow);
  padding: 3px 9px;
  margin-left: 10px;
  white-space: nowrap;
}
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Video embed ---------- */
.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 640px;
  border: 1px solid var(--line);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.video-embed video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--panel); }
.video-caption { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head p { color: var(--muted); }
.section-tag {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-tag::before { content: '// '; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 10px;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(to right, #9a9aa8 0, #9a9aa8 2px, transparent 2px, transparent 8px, #9a9aa8 8px, #9a9aa8 10px),
    repeating-linear-gradient(to bottom, #6b4423 0, #6b4423 2px, transparent 2px, transparent 12px);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px; top: 4px;
  width: 12px; height: 12px;
  background: #ffb84d;
  border: 3px solid #2e2e33;
  box-shadow: 0 0 0 2px var(--ink), 0 0 10px rgba(255,184,77,0.6);
}
.timeline-date {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 4px;
}
.timeline-item h3 { margin-bottom: 6px; }

/* Schlichte, professionelle Variante ohne Pixel-Look (z.B. Werdegang) */
.timeline-plain::before { content: none; }
.timeline-plain { border-left: 2px solid var(--line); }
.timeline-plain .timeline-item::before {
  left: -38px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  border: none;
  box-shadow: 0 0 0 3px var(--ink), 0 0 8px rgba(245,224,0,0.5);
}
.timeline-item p { color: var(--muted); margin-bottom: 0; }

.subsection-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 56px 0 20px;
}
.subsection-heading:first-of-type { margin-top: 0; }

/* ---------- Social-Banner (Kanal-Header-Grafik über den Reels-/Video-Carousels) ---------- */
.social-banner {
  position: relative;
  aspect-ratio: 6 / 1;
  max-width: var(--max-width);
  margin: 0 0 28px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.social-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.social-stats-item {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.social-stats-item:first-child { border-left: none; }
.social-stats-item svg { width: 22px; height: 22px; color: var(--cyan); }
.social-stats-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--yellow); }
.social-stats-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- YouTube-Carousel (Klick lädt ein Video, nie automatisch beim Scrollen) ---------- */
.yt-carousel {
  --edge-scale: 1;
  --edge-tilt: 0deg;
  --edge-push: 0px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 30px max(24px, calc((100vw - var(--max-width)) / 2 + 24px)) 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  perspective: 1000px;
  cursor: grab;
  scrollbar-width: none;
}
.yt-carousel::-webkit-scrollbar { display: none; }
.yt-carousel-item {
  flex: 0 0 auto;
  position: relative;
  width: 220px;
  height: 124px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  transform: translateX(var(--edge-push, 0px)) rotateY(var(--edge-tilt, 0deg)) scale(var(--edge-scale, 1));
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}
.yt-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.4s ease; pointer-events: none; }
.yt-carousel-item:hover img { transform: scale(1.06); filter: saturate(1.15); }
.yt-carousel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.yt-carousel-play svg { width: 100%; height: 100%; }
.yt-carousel-item:hover .yt-carousel-play { transform: translate(-50%, -50%) scale(1.12); }

.yt-carousel-player {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: 10;
  transform: translateX(var(--edge-push, 0px)) rotateY(var(--edge-tilt, 0deg)) scale(var(--edge-scale, 1));
  transform-style: preserve-3d;
  transition: left 0.15s linear, top 0.15s linear, transform 0.15s linear;
}
.yt-carousel-player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-carousel-player-link,
.yt-carousel-player-close {
  position: absolute;
  top: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  cursor: pointer;
}
.yt-carousel-player-link { right: 42px; }
.yt-carousel-player-close { right: 8px; }
.yt-carousel-player-link svg, .yt-carousel-player-close svg { width: 16px; height: 16px; }
.yt-carousel-player-link:hover, .yt-carousel-player-close:hover { background: var(--yellow); color: #000; }

/* ---------- Fahrzeug-Bilderbuch ---------- */
.photobook-frame {
  position: relative;
  background: #f4ecd8;
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.55), 0 2px 0 rgba(0,0,0,0.15);
  padding: 36px;
}
.photobook-pages { position: relative; height: 545px; }
.photobook-spread {
  position: absolute;
  inset: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.photobook-spread.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.photobook-spread::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 36px;
  margin-left: -18px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.14), transparent);
  pointer-events: none;
}
.photobook-page-left {
  --photo-size: 42%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
/* je mehr Fotos, desto kleiner und dichter gestreut (max. 12 pro Fahrzeug) */
.photobook-page-left:has(.photobook-photo:nth-of-type(5)) { --photo-size: 30%; gap: 8px; }
.photobook-page-left:has(.photobook-photo:nth-of-type(9)) { --photo-size: 23%; gap: 6px; }
.photobook-photo {
  width: var(--photo-size);
  flex-shrink: 0;
  border: 6px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.photobook-photo:hover { transform: scale(1.06) !important; z-index: 1; position: relative; }
.photobook-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.photobook-photo:nth-of-type(8n+1) { transform: rotate(-4deg); }
.photobook-photo:nth-of-type(8n+2) { transform: rotate(3deg); margin-top: 18px; }
.photobook-photo:nth-of-type(8n+3) { transform: rotate(-2deg); margin-top: -8px; }
.photobook-photo:nth-of-type(8n+4) { transform: rotate(5deg); margin-top: 10px; }
.photobook-photo:nth-of-type(8n+5) { transform: rotate(-5deg); margin-top: 6px; }
.photobook-photo:nth-of-type(8n+6) { transform: rotate(2deg); margin-top: -6px; }
.photobook-photo:nth-of-type(8n+7) { transform: rotate(-3deg); margin-top: 14px; }
.photobook-photo:nth-of-type(8n+8) { transform: rotate(4deg); margin-top: -4px; }
.photobook-page-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 29px, rgba(60,40,20,0.1) 30px);
}
.photobook-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #a06a2c;
}
.photobook-title {
  font-family: var(--font-hand);
  font-size: 2.6rem;
  font-weight: 700;
  color: #2b2118;
  line-height: 1;
  margin: 8px 0 14px;
}
.photobook-text {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.45;
  color: #3a2c1c;
  max-width: 34ch;
}
.photobook-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photobook-arrow:hover { background: var(--yellow); color: var(--ink); }
.photobook-arrow.prev { left: -20px; }
.photobook-arrow.next { right: -20px; }
.photobook-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.photobook-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  padding: 8px 14px 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.photobook-tab:hover { color: var(--paper); }
.photobook-tab.is-active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,13,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border: 8px solid #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--yellow); }

/* ---------- Reel-Carousel-Player (spielt direkt in der zentrierten Karte im Carousel) ---------- */
.reels-carousel-player {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: 10;
  transform: translateX(var(--edge-push, 0px)) rotateY(var(--edge-tilt, 0deg)) scale(var(--edge-scale, 1));
  transform-style: preserve-3d;
  transition: left 0.15s linear, top 0.15s linear, transform 0.15s linear;
}
.reels-carousel-player-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reels-carousel-player-link,
.reels-carousel-player-close {
  position: absolute;
  top: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  cursor: pointer;
}
.reels-carousel-player-link { right: 42px; }
.reels-carousel-player-close { right: 8px; }
.reels-carousel-player-link svg, .reels-carousel-player-close svg { width: 16px; height: 16px; }
.reels-carousel-player-link:hover, .reels-carousel-player-close:hover { background: var(--yellow); color: #000; }

/* ---------- Umbau-Carousel ---------- */
.umbau-carousel {
  --edge-scale: 1;
  --edge-tilt: 0deg;
  --edge-push: 0px;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 30px max(24px, calc((100vw - var(--max-width)) / 2 + 24px)) 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  perspective: 1000px;
  cursor: grab;
  scrollbar-width: none;
}
.umbau-carousel::-webkit-scrollbar { display: none; }
.umbau-carousel-item {
  flex: 0 0 auto;
  width: 210px;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  transform: translateX(var(--edge-push, 0px)) rotateY(var(--edge-tilt, 0deg)) scale(var(--edge-scale, 1));
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}
.umbau-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.4s ease; pointer-events: none; }
.umbau-carousel-item:hover img { transform: scale(1.06); filter: saturate(1.15); }

.umbau-carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}
.umbau-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.umbau-carousel-dot:hover { background: var(--muted); }
.umbau-carousel-dot.is-active {
  background: var(--yellow);
  transform: scale(1.35);
}

/* ---------- Reels-Carousel ---------- */
.reels-carousel {
  --edge-scale: 1;
  --edge-tilt: 0deg;
  --edge-push: 0px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 30px max(24px, calc((100vw - var(--max-width)) / 2 + 24px)) 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  perspective: 1000px;
  cursor: grab;
  scrollbar-width: none;
}
.reels-carousel::-webkit-scrollbar { display: none; }
.reels-carousel-item {
  flex: 0 0 auto;
  position: relative;
  width: 150px;
  height: 267px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  transform: translateX(var(--edge-push, 0px)) rotateY(var(--edge-tilt, 0deg)) scale(var(--edge-scale, 1));
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}
.reels-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.4s ease; pointer-events: none; }
.reels-carousel-item:hover img { transform: scale(1.06); filter: saturate(1.15); }

/* ---------- Placeholder graphics ---------- */
.placeholder {
  background:
    linear-gradient(160deg, rgba(51,230,224,0.16), transparent 45%, rgba(245,224,0,0.14)),
    var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.placeholder.square { aspect-ratio: 1 / 1; }
.placeholder svg { width: 34%; height: 34%; opacity: 0.95; filter: drop-shadow(0 0 14px rgba(245,224,0,0.35)); }

/* ---------- Facts / list blocks ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.fact-card h3 { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.fact-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.fact-icon { width: 22px; height: 22px; color: var(--yellow); flex-shrink: 0; }
.section-alt .fact-card { background: var(--ink); }

.umbau-status { margin-bottom: 8px; }
.build-sheet-link { color: var(--muted); font-size: 0.92rem; }
.build-sheet-link a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.build-sheet-link a:hover { color: var(--cyan); }

/* ---------- Prose ---------- */
.story-track { position: relative; }
.story-char {
  position: absolute;
  left: -11px;
  top: 0;
  width: 26px;
  height: 26px;
  z-index: 4;
  cursor: pointer;
  transition: top 0.65s cubic-bezier(.34,1.4,.4,1);
  animation: story-char-idle 1.8s ease-in-out infinite;
}
.story-char svg { width: 100%; height: 100%; shape-rendering: crispEdges; overflow: visible; }
.story-char .gear-shoulders,
.story-char .gear-helmet {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.34,1.6,.4,1);
}
.story-char[data-stage="1"] .gear-shoulders,
.story-char[data-stage="2"] .gear-shoulders {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 1.5px rgba(245,224,0,0.85));
}
.story-char[data-stage="2"] .gear-helmet {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 1.5px rgba(245,224,0,0.85));
}
.story-char .gear-pickaxe {
  opacity: 0;
  transform: scale(0.4) rotate(-15deg);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.34,1.6,.4,1);
}
.story-char.has-pickaxe .gear-pickaxe {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: drop-shadow(0 0 1.5px rgba(245,224,0,0.85));
}
.story-char.is-gear-pop .gear-shoulders,
.story-char.is-gear-pop .gear-helmet,
.story-char.is-gear-pop .gear-pickaxe { animation: story-gear-pop 0.6s ease; }
.story-char .pupil { transition: transform 0.12s linear; }

.story-bubble {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 8px;
  transform: translateX(-50%) scale(0);
  transform-origin: bottom center;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  white-space: normal;
  max-width: 120px;
  width: max-content;
  text-align: center;
  padding: 5px 10px;
  border-radius: 3px;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(.34,1.6,.4,1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 5;
}
.story-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--paper);
}
.story-char.is-talking .story-bubble {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.story-char.is-hopping { animation: story-char-hop 0.55s cubic-bezier(.34,1.4,.4,1); }
.story-char.is-wobble { animation: story-char-wobble 0.6s ease-in-out; }
.story-char.is-spin { animation: story-char-spin 0.6s ease-in-out; }
.story-char.is-bigjump { animation: story-char-bigjump 0.7s cubic-bezier(.34,1.6,.4,1); }
.story-char.is-nod { animation: story-char-nod 0.6s ease-in-out; }
.story-char.is-shake { animation: story-char-shake 0.5s ease-in-out; }
.story-char.is-pulse { animation: story-char-pulse 0.6s ease-in-out; }
.story-char.is-peek { animation: story-char-peek 0.7s ease-in-out; }
.story-char.is-doubletake { animation: story-char-doubletake 0.55s ease-in-out; }
.story-char.is-happy { animation: story-char-happy 0.7s cubic-bezier(.34,1.6,.4,1); }

@keyframes story-char-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes story-char-hop {
  0% { transform: translateX(0) scale(1,1); }
  25% { transform: translateX(-4px) scale(1.2,0.75); }
  50% { transform: translateX(3px) scale(0.8,1.25) translateY(-12px); }
  75% { transform: translateX(-2px) scale(1.1,0.85); }
  100% { transform: translateX(0) scale(1,1); }
}
@keyframes story-char-wobble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}
@keyframes story-char-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.85); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes story-char-bigjump {
  0% { transform: scale(1,1) translateY(0); }
  25% { transform: scale(1.3,0.6) translateY(0); }
  55% { transform: scale(0.75,1.3) translateY(-26px); }
  80% { transform: scale(1.15,0.8) translateY(0); }
  100% { transform: scale(1,1) translateY(0); }
}
@keyframes story-char-nod {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(4px); }
  50% { transform: translateY(-2px); }
  75% { transform: translateY(2px); }
}
.story-char.is-wink .pupil:first-of-type { animation: story-char-wink-eye 0.6s ease-in-out; }
@keyframes story-char-wink-eye {
  0%, 20%, 100% { transform: scaleY(1); }
  40%, 70% { transform: scaleY(0.1); }
}
@keyframes story-gear-pop {
  0% { transform: scale(0.4); filter: brightness(1) drop-shadow(0 0 0 rgba(245,224,0,0)); }
  50% { transform: scale(1.4); filter: brightness(1.9) drop-shadow(0 0 3px rgba(245,224,0,0.9)); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes story-char-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
@keyframes story-char-pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.88); }
}
@keyframes story-char-peek {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  30% { transform: translateX(-11px) rotate(-9deg); }
  65% { transform: translateX(6px) rotate(5deg); }
}
@keyframes story-char-doubletake {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  15% { transform: rotate(-10deg) translateX(-3px); }
  30% { transform: rotate(0deg) translateX(0); }
  45% { transform: rotate(-16deg) translateX(-5px); }
  70% { transform: rotate(4deg) translateX(2px); }
}
@keyframes story-char-happy {
  0%, 100% { transform: translateY(0) scale(1,1); }
  20% { transform: translateY(-9px) scale(0.9,1.15); }
  40% { transform: translateY(0) scale(1.1,0.9); }
  60% { transform: translateY(-6px) scale(0.95,1.1); }
  80% { transform: translateY(0) scale(1,1); }
}

.story-prose {
  position: relative;
  padding-left: 34px;
  padding-bottom: 1px;
}
.story-prose h2 { position: relative; }
.story-prose-gold {
  position: relative;
  padding-left: 34px;
  padding-top: 1px;
}
.story-prose-gold h2 { position: relative; }

.story-prose::before,
.story-prose-gold::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(to right, #9a9aa8 0, #9a9aa8 2px, transparent 2px, transparent 8px, #9a9aa8 8px, #9a9aa8 10px),
    repeating-linear-gradient(to bottom, #6b4423 0, #6b4423 2px, transparent 2px, transparent 12px);
}
.story-marker {
  position: absolute;
  left: -45px;
  top: 0.05em;
  width: 22px;
  height: 22px;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255,184,77,0.6));
}
.story-marker svg { width: 100%; height: 100%; shape-rendering: crispEdges; display: block; }

.prose { max-width: 68ch; }
.story-prose, .story-prose-gold { max-width: none; }
.prose p { color: var(--muted); line-height: 1.75; margin-bottom: 1.3em; }
.prose p a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245,224,0,0.4); transition: color 0.2s, text-decoration-color 0.2s; }
.prose p a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.prose h2 { margin-top: 1.9em; }
.story-prose h2:first-of-type { margin-top: 0; }
.prose h3 { color: var(--paper); margin-top: 1.6em; }

/* ---------- Two-column layout ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.split-hero { grid-template-columns: 320px 1fr; gap: 36px; align-items: center; }
.split-photo-wrap {
  position: sticky;
  top: 100px;
  max-width: 360px;
}
.split-photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.split-photo img { width: 100%; }
.split-photo-bg {
  position: absolute;
  width: 42%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0.45;
  filter: saturate(0.55) brightness(0.82);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  z-index: 0;
  pointer-events: none;
}
.split-photo-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-photo-bg-1 { top: -20%; left: -26%; transform: rotate(-9deg); }
.split-photo-bg-3 { top: -20%; right: -26%; transform: rotate(6deg); }

/* ---------- Form ---------- */
.contact-layout, .guestbook-layout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--panel);
  color: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,224,0,0.15);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-hidden { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.form-status { padding: 14px 18px; margin-bottom: 20px; font-size: 0.95rem; display: none; font-family: var(--font-mono); }
.form-status.success { display: block; background: rgba(51,230,224,0.12); color: var(--cyan); border: 1px solid rgba(51,230,224,0.4); }
.form-status.error { display: block; background: rgba(245,90,90,0.1); color: #ff8a8a; border: 1px solid rgba(255,138,138,0.4); }

.contact-info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.contact-info-card h3 { color: var(--paper); }
.contact-info-card a { color: var(--paper); text-decoration: none; }
.contact-info-card a:hover { color: var(--yellow); }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item svg { width: 20px; height: 20px; color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.contact-social { display: flex; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-social a { display: flex; color: var(--muted); transition: color 0.2s; }
.contact-social a:hover { color: var(--yellow); }
.contact-social svg { width: 22px; height: 22px; }
.contact-info-card p { color: var(--muted); margin-bottom: 14px; }
.contact-info-card p:last-child { margin-bottom: 0; }

/* ---------- Gästebuch-Carousel (gleicher 3D-Kurveneffekt wie Reels/YouTube-Carousel) ---------- */
.guestbook-list-wrap { margin-top: 64px; }
.guestbook-empty { color: var(--muted); font-family: var(--font-mono); font-size: 0.9rem; }
.guestbook-carousel {
  --edge-scale: 1;
  --edge-tilt: 0deg;
  --edge-push: 0px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 30px max(24px, calc((100vw - var(--max-width)) / 2 + 24px)) 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  perspective: 1000px;
  cursor: grab;
  scrollbar-width: none;
}
.guestbook-carousel::-webkit-scrollbar { display: none; }
.guestbook-carousel-item {
  flex: 0 0 auto;
  width: 280px;
  height: 190px;
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  transform: translateX(var(--edge-push, 0px)) rotateY(var(--edge-tilt, 0deg)) scale(var(--edge-scale, 1));
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}
.guestbook-carousel-name { font-family: var(--font-head); font-weight: 600; color: var(--yellow); }
.guestbook-carousel-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }
.guestbook-carousel-message {
  color: var(--paper);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  white-space: pre-line;
  word-break: break-word;
  flex: 1;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .social-stats { flex-direction: column; }
  .social-stats-item { border-left: none; border-top: 1px solid var(--line); }
  .social-stats-item:first-child { border-top: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 40px 0 50px; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
  .hero-grid > div:first-child { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .photo-stack { width: 100%; max-width: 300px; padding: 8px 26px 26px 8px; margin-left: auto; margin-right: auto; }
  .photo-cluster { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; margin-top: 28px; }
  .story-char { width: 20px; height: 20px; left: -8px; }
  .story-prose { padding-left: 22px; }
  .story-prose-gold { padding-left: 22px; }
  .story-prose::before,
  .story-prose-gold::before {
    left: -4px;
    width: 8px;
    background-image:
      linear-gradient(to right, #9a9aa8 0, #9a9aa8 2px, transparent 2px, transparent 6px, #9a9aa8 6px, #9a9aa8 8px),
      repeating-linear-gradient(to bottom, #6b4423 0, #6b4423 2px, transparent 2px, transparent 10px);
  }
  .story-marker { left: -30px; width: 16px; height: 16px; top: 0.1em; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-photo-wrap { position: relative; top: 0; max-width: 320px; margin: 0 auto; }
  .split-photo-bg { width: 32%; opacity: 0.35; }
  .split-photo-bg-1 { top: -10%; left: -10%; }
  .split-photo-bg-3 { display: none; }
  .photobook-frame { padding: 24px 20px; }
  .photobook-pages { height: auto; min-height: 400px; }
  .photobook-spread { grid-template-columns: 1fr; gap: 20px; }
  .photobook-spread::after { display: none; }
  .photobook-page-left { gap: 10px; }
  .photobook-photo { width: 40%; max-width: 150px; }
  .photobook-photo:nth-of-type(2) { margin-top: 14px; }
  .photobook-photo:nth-of-type(3) { margin-top: -4px; }
  .photobook-title { font-size: 2.1rem; }
  .photobook-text { font-size: 1.3rem; max-width: none; }
  .photobook-arrow { width: 34px; height: 34px; }
  .photobook-arrow.prev { left: -12px; }
  .photobook-arrow.next { right: -12px; }
  .contact-layout, .guestbook-layout { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .umbau-carousel { gap: 38px; }
  .umbau-carousel-item { width: 170px; height: 210px; }
  .reels-carousel { gap: 30px; }
  .reels-carousel-item { width: 128px; height: 228px; }
  .yt-carousel { gap: 18px; }
  .yt-carousel-item { width: 180px; height: 101px; }
  .guestbook-carousel { gap: 18px; }
  .guestbook-carousel-item { width: 240px; height: 180px; }
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: calc(100vh - 60px);
    background: var(--ink);
    padding: 20px 24px;
    overflow-y: auto;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .social-links { margin-left: auto; }
  .section { padding: 50px 0; }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 560px) {
  .header-inner { padding: 12px 18px; }
  .hero { padding: 32px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .umbau-carousel-item img { transition: none; }
  .reels-carousel-item img { transition: none; }
  .logo .cursor { animation: none; }
  .story-char, .story-char * { animation: none !important; transition: none !important; }
  .photobook-spread { transition: none; }
}
