/* =============================================================
   Schreibwaren Stumpf — Design-System v2
   Familienfreundlich · farbenfroh · modern · seit 1960
   ============================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  /* Marken-Farben (verbindlich, Logo-Palette) */
  --brand-blue:      #0D2B45;   /* Dunkelblau — primäre Text-/Header-Farbe */
  --brand-turquoise: #00B4D8;   /* Türkis — Deko, Icons, kein Text auf Weiß */
  --brand-green:     #8BCB3F;   /* Grün — Büro */
  --brand-yellow:    #FFD23F;   /* Gelb — Service + Alt-CTA */
  --brand-purple:    #8E6CCF;   /* Lila — Geschenke */
  --brand-orange:    #FF9F1C;   /* Orange — Schreiben */

  /* WCAG-AA-taugliche Varianten der Markenfarben für Text/CTAs auf Weiß:
     Original-Türkis #00B4D8 auf Weiß hat nur 2.5:1 (Fail).
     --brand-turquoise-cta #0077A0 hat 4.7:1 (AA pass).
     --brand-purple-text  #6B47B3 hat 5.9:1.
     --brand-orange-text  #B06A00 hat 4.9:1.
     --brand-green-text   #5F8F1D hat 4.5:1. */
  --brand-turquoise-cta:  #0077A0;
  --brand-purple-text:    #6B47B3;
  --brand-orange-text:    #B06A00;
  --brand-green-text:     #5F8F1D;

  /* Neutrale Basis */
  --ink:        var(--brand-blue);
  --ink-soft:   #24405f;
  --muted:      #64758a;
  --paper:      #ffffff;
  --paper-warm: #FFF6DC;   /* zartes Marken-Gelb — Villa Kunterbunt */
  --paper-cool: #E2F6FB;   /* zartes Marken-Türkis */
  --tint-purple: #F1EBFB;  /* zartes Marken-Lila */
  --tint-green:  #EEF8E0;  /* zartes Marken-Grün */
  --tint-orange: #FFEFDC;  /* zartes Marken-Orange */
  --line:       #e2e8f0;
  --line-soft:  #eef1f5;

  /* Kategorie-Mapping (semantisch) */
  --cat-schule:    var(--brand-turquoise);
  --cat-buero:     var(--brand-green);
  --cat-geschenke: var(--brand-purple);
  --cat-schreiben: var(--brand-orange);
  --cat-service:   var(--brand-yellow);

  /* Typografie — reine Sans, Logo bleibt einziger Schreibschrift-Anker */
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid-Typo */
  --fs-xs:   clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --fs-sm:   clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --fs-md:   clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-lg:   clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-xl:   clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-2xl:  clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-hero: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);

  /* Spacing (8pt-Skala) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-6: 3rem;
  --sp-8: 5rem;
  --sp-12: 7rem;

  /* Container */
  --wrap: min(1240px, 92vw);
  --wrap-narrow: min(860px, 92vw);

  /* Übergänge */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med:  360ms;
  --dur-slow: 700ms;

  /* Runde Formen + weiche Schatten (freundlich, modern) */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;
  --shadow-sm:   0 1px 3px rgba(13, 43, 69, 0.06), 0 1px 2px rgba(13, 43, 69, 0.04);
  --shadow-md:   0 4px 12px rgba(13, 43, 69, 0.08), 0 2px 4px rgba(13, 43, 69, 0.04);
  --shadow-lg:   0 12px 32px rgba(13, 43, 69, 0.10), 0 4px 8px rgba(13, 43, 69, 0.06);
  --shadow-xl:   0 24px 60px -12px rgba(13, 43, 69, 0.20);
  --shadow-cat:  0 8px 24px -8px currentColor;
}

/* ---------- Reset + Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-blue);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p { max-width: 62ch; line-height: 1.65; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-turquoise-cta);
  margin-bottom: var(--sp-2);
}

/* ---------- Navigation ---------- */
/* ═══════════════════════════════════════════════════════
   Header — hell, papierartig, hochwertig
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background:
    linear-gradient(180deg, rgba(253,250,244,0.9) 0%, rgba(249,246,239,0.86) 100%);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid transparent;
  transition: padding var(--dur-med) var(--ease),
              background var(--dur-med) var(--ease),
              backdrop-filter var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease),
              box-shadow var(--dur-med) var(--ease),
              transform var(--dur-med) var(--ease);
  will-change: transform;
}
/* Sticky-Shrink: kompakter UND leichter (mehr Transparenz, feinerer Rand) */
.nav.scrolled {
  padding: 0.6rem 0;
  background: linear-gradient(180deg, rgba(253,250,244,0.72) 0%, rgba(249,246,239,0.66) 100%);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom-color: color-mix(in srgb, var(--brand-blue) 6%, transparent);
  box-shadow: 0 1px 0 rgba(13, 43, 69, 0.04),
              0 8px 24px -18px rgba(13, 43, 69, 0.25);
}
.nav--hidden { transform: translateY(-100%); }

.nav__inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4.5vw, 3.5rem);
}

/* Logo — horizontales Wortlogo aus logo-footer-horizontal-960.png */
.nav__brand {
  display: block;
  flex-shrink: 0;
  padding: 2px 0;
  transition: transform var(--dur-fast) var(--ease);
  border-radius: 6px;
}
.nav__brand:hover { transform: translateY(-1px); }
.nav__brand:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 4px; }
.nav__brand img {
  display: block;
  width: auto;
  height: 64px;
  max-width: min(340px, 46vw);
  object-fit: contain;
  object-position: left center;
  transition: height var(--dur-med) var(--ease);
}
.nav.scrolled .nav__brand img { height: 50px; }
@media (max-width: 900px) {
  .nav__brand img { height: 54px; max-width: min(280px, 54vw); }
  .nav.scrolled .nav__brand img { height: 44px; }
}
@media (max-width: 480px) {
  .nav__brand img { height: 46px; max-width: min(230px, 60vw); }
  .nav.scrolled .nav__brand img { height: 40px; }
}

/* Nav-Links — zurückhaltend, dezent, mit feiner Unterstreichung */
.nav__links {
  display: flex;
  gap: clamp(0.15rem, 0.8vw, 0.6rem);
  list-style: none;
  font-size: 0.88rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  color: color-mix(in srgb, var(--brand-blue) 72%, #7a8590);
  transition: color var(--dur-fast) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 1.5px;
  background: var(--brand-turquoise);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav__links a:hover { color: var(--brand-turquoise-text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] {
  color: var(--brand-blue);
  font-weight: 600;
}
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--brand-yellow);
}
.nav__links a:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (max-width: 899px) {
  .nav__links { display: none; }
}

.nav__right { display: flex; align-items: center; gap: 0.5rem; }

/* Prominenter Anfrage-CTA */
.nav__cta--anfrage {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.3rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #143857 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-full);
  box-shadow: 0 6px 18px -6px rgba(13, 43, 69, 0.45),
              0 2px 4px -1px rgba(13, 43, 69, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.nav__cta--anfrage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 180, 216, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav__cta--anfrage:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(0, 119, 160, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nav__cta--anfrage:hover::before { opacity: 1; }
.nav__cta--anfrage:hover .nav__cta-arrow { transform: translateX(3px); }
.nav__cta--anfrage:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}
.nav__cta-text { position: relative; z-index: 1; }
.nav__cta-arrow {
  position: relative; z-index: 1;
  transition: transform var(--dur-fast) var(--ease);
  font-weight: 400;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .nav__cta--anfrage {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
  }
  .nav__cta-arrow { display: none; }
}
@media (max-width: 380px) {
  .nav__cta-text { display: none; }
  .nav__cta--anfrage::after {
    content: "Anfrage";
    position: relative; z-index: 1;
  }
}

/* Burger — auch auf Desktop sichtbar: das Fullscreen-Menü ist die Marken-Welt,
   die Text-Nav ist der schnelle Weg. Beide stehen nebeneinander. */
.nav__burger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1rem 0 0.75rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 18%, transparent);
  border-radius: var(--r-full);
  cursor: pointer;
  position: relative;
  color: color-mix(in srgb, var(--brand-blue) 78%, #7a8590);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav__burger::after {
  content: 'Menü';
}
.nav__burger:hover {
  transform: translateY(-1px);
  background: rgba(253,250,244,0.6);
  border-color: color-mix(in srgb, var(--brand-blue) 32%, transparent);
  box-shadow: 0 4px 12px -6px rgba(13,43,69,0.18);
}
.nav__burger:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}
.nav__burger[aria-expanded="true"]::after { content: 'Schließen'; }

.nav__burger .burger-icon {
  position: relative;
  width: 22px; height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.nav__burger .burger-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: color-mix(in srgb, var(--brand-blue) 78%, #7a8590);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast), top var(--dur-med) var(--ease), background var(--dur-fast);
}
.nav__burger:hover .burger-icon span { background: var(--brand-blue); }
.nav__burger .burger-icon span:nth-child(1) { top: 2px; }
.nav__burger .burger-icon span:nth-child(2) { top: 8px; }
.nav__burger .burger-icon span:nth-child(3) { top: 14px; }
.nav__burger[aria-expanded="true"] .burger-icon span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] .burger-icon span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] .burger-icon span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__brand img { height: 48px; }
  /* Text-Nav auf Mobile komplett aus dem Layout und dem Focus-Ring nehmen —
     das echte Menü ist das Fullscreen-Overlay unten. */
  .nav__links { display: none; }
  /* Telefon-CTA bleibt sichtbar — bei einem Familienladen der wichtigste Call.
     Etwas kompakter, damit sie neben Burger passt. */
  .nav__cta { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
  .nav__burger::after { display: none; }
  .nav__burger { padding: 0; width: 44px; justify-content: center; }
  .nav__inner { gap: var(--sp-2); }
}
@media (max-width: 420px) {
  /* Sehr schmale Handys: Telefon-CTA nur als Icon-Chip, damit nichts überläuft. */
  .nav__cta { padding: 0.5rem 0.7rem; font-size: 0.78rem; }
}

/* ---------- Buttons (freundlich, farbig, weich) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

/* Primär: dunkler Türkis (WCAG-AA-kontraststark) */
.btn--primary {
  background: var(--brand-turquoise-cta);
  color: white;
  box-shadow: 0 6px 16px -4px rgba(0, 119, 160, 0.45);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 180, 216, 0.55);
}

/* Sekundär: Dunkelblau */
.btn--secondary {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 6px 16px -4px rgba(13, 43, 69, 0.35);
}
.btn--secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(13, 43, 69, 0.45); }

/* Akzent: Gelb — für „Jetzt entdecken" o.ä. */
.btn--accent {
  background: var(--brand-yellow);
  color: var(--brand-blue);
  box-shadow: 0 6px 16px -4px rgba(255, 210, 63, 0.55);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(255, 210, 63, 0.7); }

/* Outline (subtile Alternative) */
.btn--outline {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn--outline:hover { background: var(--brand-blue); color: white; }

/* Ghost auf dunklem Grund */
.btn--light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--light:hover { background: white; color: var(--brand-blue); border-color: white; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: flex;
  align-items: center;
  padding: 5rem 0 var(--sp-4);
  overflow: clip;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 180, 216, 0.12), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(255, 159, 28, 0.10), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(139, 203, 63, 0.08), transparent 50%),
    var(--paper);
}
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    /* Fixed Nav ist ~84 px hoch — Hero-Content braucht ≥ 6 rem Luft, damit
       Logo sichtbar unter der Nav sitzt, nicht direkt drangeklebt. */
    padding: 6.5rem 0 var(--sp-3);
  }
  .hero__inner { gap: var(--sp-2); }
  .hero__deco { display: none; }
  /* Blobs auf Mobile ohne Animation + geringer Blur — sonst laufen
     3 Ambient-Pulse-Animationen mit filter:blur(80px) parallel und
     jankeln die main thread. */
  .hero__blob { opacity: 0.14; animation: none; filter: blur(40px); }
  .hero__3d { display: none; }
  /* Kompakt: kein Riesen-Logo, kein Leerraum */
  .hero__lead { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
  .hero__actions { margin-bottom: var(--sp-3); gap: 0.6rem; }
  .hero__actions .btn { width: 100%; max-width: 340px; margin-inline: auto; justify-content: center; }
  /* Öffnungszeiten/Adresse als zentrierte Chips statt lose Spalten */
  .hero__meta {
    justify-content: center;
    gap: 0.6rem;
    padding-top: var(--sp-2);
    border-top: none;
  }
  .hero__meta > div {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-full, 999px);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
  }
  .hero__meta strong { display: inline; margin-right: 0.4rem; }
}

/* Logos sind echt freigestellt (logo-*-t.png, Weiß→transparent) —
   kein Blend-Trick nötig, funktioniert auf jedem Hintergrund. */

/* Schwebende Farbblobs im Hintergrund (3D-Feeling) */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero__blob--1 { width: 320px; height: 320px; background: var(--brand-turquoise); top: -80px; right: 8%; }
.hero__blob--2 { width: 280px; height: 280px; background: var(--brand-yellow); bottom: -100px; left: 5%; }
.hero__blob--3 { width: 220px; height: 220px; background: var(--brand-purple); top: 40%; left: 55%; opacity: 0.22; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--sp-8); } }

.hero__content { max-width: 620px; }
@media (max-width: 900px) {
  .hero__content { margin: 0 auto; text-align: center; }
  .hero__actions, .hero__meta { justify-content: center; }
}

.hero__logo {
  max-width: 380px;
  margin-bottom: var(--sp-3);
  filter: drop-shadow(0 8px 24px rgba(13, 43, 69, 0.08));
}
@media (max-width: 900px) {
  .hero__logo { max-width: 220px; margin-inline: auto; margin-bottom: var(--sp-2); display: block; }
}
@media (max-width: 500px) {
  .hero__logo { max-width: 180px; }
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}
@media (max-width: 900px) { .hero__lead { text-align: center; margin-inline: auto; } }

.hero__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
@media (max-width: 900px) { .hero__actions { justify-content: center; } }

.hero__meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.hero__meta strong { display: block; color: var(--brand-blue); font-weight: 600; margin-bottom: 0.15rem; }

/* ═══════════════════════════════════════════════════════
   Hero-Portrait — Lisa mit organischer SVG-Maske
   Farbige SVG-Blobs im Hintergrund, dezente Konfetti-Sprinkles,
   Mouse-Parallax (via JS über CSS-Custom-Property gesteuert).
   ═══════════════════════════════════════════════════════ */
.hero__portrait {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: 640px;
  width: 100%;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

/* Farbige Blob-Formen im Hintergrund — nicht gerahmt, frei */
.hero__deco-svg {
  position: absolute;
  width: 55%;
  height: 55%;
  filter: blur(1px);
  pointer-events: none;
  animation: hero-deco-float 14s ease-in-out infinite;
}
.hero__deco-svg--1 { top: -6%;  left: -4%; width: 40%; height: 40%; animation-delay: -0s; }
.hero__deco-svg--2 { top: -2%;  right: -8%; width: 34%; height: 34%; animation-delay: -3s; }
.hero__deco-svg--3 { bottom: 2%; left: -6%; width: 38%; height: 38%; animation-delay: -6s; }
.hero__deco-svg--4 { bottom: -4%; right: -2%; width: 32%; height: 32%; animation-delay: -9s; }

@keyframes hero-deco-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%      { transform: translate(6px, -8px) rotate(4deg) scale(1.04); }
  50%      { transform: translate(-4px, 6px) rotate(-3deg) scale(1.02); }
  75%      { transform: translate(4px, 4px) rotate(2deg) scale(1.03); }
}

/* Konfetti — kleine bunte Punkte, Streusel, Linien */
.hero__confetti {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
.confetti { position: absolute; border-radius: 50%; opacity: 0.85; }
.confetti--1 { top:  8%; left: 12%; width: 12px; height: 12px; background: var(--brand-yellow); animation: confetti-drift 9s ease-in-out infinite; }
.confetti--2 { top: 22%; right: 6%; width:  8px; height:  8px; background: var(--brand-orange); animation: confetti-drift 11s ease-in-out infinite -2s; }
.confetti--3 { top: 46%; left:  4%; width: 10px; height: 10px; background: var(--brand-green); animation: confetti-drift 10s ease-in-out infinite -4s; border-radius: 3px; transform: rotate(30deg); }
.confetti--4 { bottom: 30%; right: 10%; width: 14px; height: 14px; background: var(--brand-turquoise); animation: confetti-drift 12s ease-in-out infinite -1s; }
.confetti--5 { bottom: 12%; left: 18%; width: 9px;  height: 9px;  background: var(--brand-purple); animation: confetti-drift 8s ease-in-out infinite -3s; border-radius: 3px; transform: rotate(-15deg); }
.confetti--6 { top: 68%; left:  8%; width: 6px;  height: 22px; background: var(--brand-orange); border-radius: 3px; transform: rotate(35deg); opacity: 0.7; animation: confetti-drift 13s ease-in-out infinite -5s; }
.confetti--7 { top: 12%; right: 22%; width: 6px;  height: 20px; background: var(--brand-turquoise); border-radius: 3px; transform: rotate(-25deg); opacity: 0.7; animation: confetti-drift 10s ease-in-out infinite -6s; }
.confetti--8 { bottom: 44%; left: 46%; width: 7px; height: 7px; background: var(--brand-yellow); animation: confetti-drift 11s ease-in-out infinite -7s; }

@keyframes confetti-drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50%      { transform: translate(6px, -10px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

/* Foto: organisch geclippt, Papierstruktur als Overlay, dezenter Schatten */
.hero__portrait-img {
  position: absolute;
  inset: 8% 6% 6% 8%;
  z-index: 3;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(13, 43, 69, 0.18))
          drop-shadow(0 8px 16px rgba(13, 43, 69, 0.10));
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}
.hero__portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  /* Organische Papeterie-Blob-Form via asymmetrischer border-radius —
     robuster als mask-image/clip-path (die in einigen Browsern still failen). */
  border-radius: 62% 38% 55% 45% / 50% 62% 38% 50%;
}
/* Papier-Textur-Overlay auf dem Portrait — sehr dezent */
.hero__portrait-img::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(13,43,69,0.06), transparent 50%);
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

/* Mobile: Deko-SVGs kleiner, kein Blur, weniger Konfetti */
@media (max-width: 900px) {
  .hero__portrait { max-height: 480px; margin-inline: auto; max-width: 380px; }
  .hero__deco-svg { filter: none; animation: none; }
  .hero__deco-svg--3, .hero__deco-svg--4 { display: none; }
  .confetti--6, .confetti--7, .confetti--8 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__deco-svg, .confetti { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   Cinematic Layer — Ken-Burns, Vignette, Blur-Reveal
   ═══════════════════════════════════════════════════════ */

/* Ken-Burns entfernt — Portrait ist jetzt frei geclippt, keine dunklen Ecken.
   Bewegung entsteht durch Deko-SVG-Float und Mouse-Parallax. */

/* Cinematic Blur-Reveal: Text erscheint aus Weichzeichnung */
@keyframes blurIn {
  0%   { opacity: 0; filter: blur(14px); transform: translateY(24px); letter-spacing: 0.1em; }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); letter-spacing: normal; }
}
html.motion .hero__logo { animation: blurIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
html.motion .hero__lead { animation: blurIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
html.motion .hero__actions { animation: blurIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both; }
html.motion .hero__meta { animation: blurIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.0s both; }
@media (prefers-reduced-motion: reduce) {
  html.motion .hero__logo,
  html.motion .hero__lead,
  html.motion .hero__actions,
  html.motion .hero__meta { animation: none; }
}

/* Ambient Light — sanft pulsierender Blob im Hero-Hintergrund */
@keyframes ambientPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50%      { transform: scale(1.15) translate(2%, -1%); opacity: 0.45; }
}
.hero__blob--1 { animation: ambientPulse 12s ease-in-out infinite; }
.hero__blob--2 { animation: ambientPulse 15s ease-in-out infinite 2s; }
.hero__blob--3 { animation: ambientPulse 18s ease-in-out infinite 4s; }
@media (prefers-reduced-motion: reduce) {
  .hero__blob--1, .hero__blob--2, .hero__blob--3 { animation: none; }
}

/* Cinematic Section-Divider: dünner Farbverlaufsstreifen zwischen Sektionen */
.section + .section {
  position: relative;
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 180, 216, 0.35) 20%,
    rgba(255, 159, 28, 0.35) 50%,
    rgba(139, 203, 63, 0.35) 80%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Kein Divider zwischen brand/warm/cool-Sektionen (die haben eigene Hintergründe) */
.section--brand + .section::before,
.section--warm + .section::before,
.section--cool + .section::before,
.section + .section--brand::before,
.section + .section--warm::before,
.section + .section--cool::before { display: none; }

/* Section-Headline: cinematisches Blur-In beim Scroll-Reveal (kompatibel mit .reveal) */
html.motion .section__head.reveal h2,
html.motion .section__head.reveal .eyebrow {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
html.motion .section__head.reveal:not(.is-visible) h2 { filter: blur(10px); }
html.motion .section__head.reveal.is-visible h2 { filter: blur(0); }

/* ═══════════════════════════════════════════════════════
   Cinematic Break — Full-Width dekoratives Papier-Motiv
   (KI-generiert, rein atmosphärisch, DSGVO/AI-Act unkritisch)
   ═══════════════════════════════════════════════════════ */
.cinematic-break {
  position: relative;
  min-height: 70vh;
  max-height: 640px;
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
  color: white;
}
.cinematic-break__bg,
.cinematic-break__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cinematic-break__bg img {
  animation: cinematicPan 32s ease-in-out infinite;
  will-change: transform;
}
@keyframes cinematicPan {
  0%   { transform: scale(1.05) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -0.8%); }
  100% { transform: scale(1.05) translate(0, 0); }
}
.cinematic-break__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(13, 43, 69, 0.55) 0%,
      rgba(13, 43, 69, 0.15) 45%,
      rgba(13, 43, 69, 0.15) 55%,
      rgba(13, 43, 69, 0.55) 100%),
    linear-gradient(to bottom,
      rgba(13, 43, 69, 0.25) 0%,
      transparent 30%,
      transparent 70%,
      rgba(13, 43, 69, 0.35) 100%);
}
.cinematic-break__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-6) var(--sp-3);
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.cinematic-break__kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-bottom: var(--sp-2);
  opacity: 0.95;
}
.cinematic-break__quote {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 var(--sp-4);
  color: white;
  letter-spacing: -0.005em;
}
.cinematic-break__credit {
  font-size: var(--fs-xs);
  opacity: 0.55;
  letter-spacing: 0.05em;
  margin: 0;
}
@media (max-width: 900px) {
  .cinematic-break { min-height: 50vh; max-height: 480px; }
  .cinematic-break__gradient {
    background: linear-gradient(to bottom,
      rgba(13, 43, 69, 0.45) 0%,
      rgba(13, 43, 69, 0.25) 50%,
      rgba(13, 43, 69, 0.55) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-break__bg img { animation: none; transform: scale(1.05); }
}

/* ═══════════════════════════════════════════════════════
   Shader Wall — WebGL Fluid mit Marken-Farben
   ═══════════════════════════════════════════════════════ */
.shader-wall {
  position: relative;
  min-height: 60vh;
  max-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: var(--brand-blue); /* Falls Shader nicht bootet */
}
.shader-wall__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
/* CSS-Fallback für LOW / kein WebGL / kein JS */
.shader-wall__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 180, 216, 0.55), transparent 45%),
    radial-gradient(circle at 78% 65%, rgba(255, 159, 28, 0.45), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(155, 93, 229, 0.35), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(139, 203, 63, 0.30), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255, 209, 102, 0.35), transparent 45%),
    var(--brand-blue);
}
/* Wenn Shader läuft, Fallback-Layer weg (Klasse wird von JS gesetzt) */
.shader-wall.has-shader .shader-wall__fallback { display: none; }
.shader-wall__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-6) var(--sp-3);
  max-width: 720px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.shader-wall__kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-bottom: var(--sp-2);
}
.shader-wall__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--sp-3);
  color: white;
  letter-spacing: -0.02em;
}
.shader-wall__sub {
  font-size: var(--fs-sm);
  opacity: 0.72;
  letter-spacing: 0.04em;
  margin: 0;
}
@media (max-width: 900px) {
  .shader-wall { min-height: 45vh; max-height: 440px; }
  .shader-wall__sub { display: none; } /* Touch-Devices: kein Maus-Hint */
}

/* ═══════════════════════════════════════════════════════
   Villa Kunterbunt — Wellen-Übergänge + Farb-Offensive
   ═══════════════════════════════════════════════════════ */

/* Wellen-Divider: sitzt direkt über einer farbigen Sektion.
   Farbe via --wave-c, Form via CSS-Mask (data-URI SVG). */
.wave {
  height: clamp(36px, 6vw, 72px);
  margin-bottom: -1px; /* Anti-Aliasing-Spalt vermeiden */
  background: var(--wave-c, var(--paper-cool));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,72 480,8 720,36 C960,64 1200,16 1440,40 L1440,64 L0,64 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,72 480,8 720,36 C960,64 1200,16 1440,40 L1440,64 L0,64 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* Welle unter einer farbigen Sektion (Form gespiegelt) */
.wave--after {
  margin-bottom: 0;
  margin-top: -1px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,24 C1200,-8 960,56 720,28 C480,0 240,48 0,24 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,24 C1200,-8 960,56 720,28 C480,0 240,48 0,24 Z'/%3E%3C/svg%3E");
}

/* Neue Tint-Sektionen */
.section--tint-purple { background: var(--tint-purple); }
.section--tint-green  { background: var(--tint-green); }
.section--tint-orange { background: var(--tint-orange); }
/* Divider-Linie entfällt neben allen getönten Flächen */
.section--tint-purple + .section::before,
.section--tint-green + .section::before,
.section--tint-orange + .section::before,
.section + .section--tint-purple::before,
.section + .section--tint-green::before,
.section + .section--tint-orange::before { display: none; }

/* Button-Shine: Lichtstreifen fegt beim Hover über den Button */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 480ms var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* Mosaic: Farb-Overlay in Marken-Farbe schiebt sich beim Hover hoch */
.mosaic__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--tile-c, var(--brand-turquoise)) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 350ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.mosaic__tile:hover::after { opacity: 0.55; }
.mosaic__tile:nth-child(1) { --tile-c: var(--brand-turquoise); }
.mosaic__tile:nth-child(2) { --tile-c: var(--brand-yellow); }
.mosaic__tile:nth-child(3) { --tile-c: var(--brand-green); }
.mosaic__tile:nth-child(4) { --tile-c: var(--brand-orange); }
.mosaic__tile:nth-child(5) { --tile-c: var(--brand-purple); }
.mosaic__label { z-index: 2; }

/* Cat-Cards: kräftig getönte Hintergründe statt Weiß + Hover-Kipp */
.cat-card--schule    { background: linear-gradient(160deg, white 55%, var(--paper-cool)); }
.cat-card--buero     { background: linear-gradient(160deg, white 55%, var(--tint-green)); }
.cat-card--schreiben { background: linear-gradient(160deg, white 55%, var(--tint-orange)); }
.cat-card--geschenke { background: linear-gradient(160deg, white 55%, var(--tint-purple)); }
.cat-card--service   { background: linear-gradient(160deg, white 55%, var(--paper-warm)); }
.cat-card:hover { transform: translateY(-8px) rotate(-1.2deg) scale(1.02); }

/* Value-Nummern in Marken-Farbe statt gedimmt */
.value__num { color: var(--value-color, var(--brand-yellow)); opacity: 0.9; font-weight: 800; }

/* Eyebrows bekommen einen Konfetti-Strich davor */
.section__head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6em; height: 0.22em;
  border-radius: 999px;
  margin-right: 0.5em;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--brand-turquoise), var(--brand-yellow), var(--brand-orange), var(--brand-purple));
}

/* Kleine schwebende Deko rund um Hero-Media */
.hero__deco {
  position: absolute;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.hero__deco--1 { width: 60px; height: 60px; background: var(--brand-yellow); top: -20px; right: -20px; animation-delay: 0s; }
.hero__deco--2 { width: 40px; height: 40px; background: var(--brand-turquoise); bottom: 15%; left: -20px; animation-delay: -2s; }
.hero__deco--3 { width: 32px; height: 32px; background: var(--brand-purple); top: 30%; right: -14px; animation-delay: -4s; }
.hero__deco--4 { width: 24px; height: 24px; background: var(--brand-orange); bottom: -12px; left: 30%; animation-delay: -1s; }
.hero__deco--5 { width: 20px; height: 20px; background: var(--brand-green); top: 15%; left: 10%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-14px) rotate(180deg); }
}

/* ---------- Sektionen ---------- */
.section {
  padding: var(--sp-12) 0;
  position: relative;
  overflow-x: clip;
}
@media (max-width: 900px) {
  .section { padding: var(--sp-8) 0; }
}
.section__inner { width: var(--wrap); margin: 0 auto; }
.section__head { max-width: 720px; margin: 0 auto var(--sp-6); text-align: center; }
.section__head--left { text-align: left; margin-left: 0; }

.section--warm { background: var(--paper-warm); }
.section--cool { background: var(--paper-cool); }
.section--paper {
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--brand-turquoise) 6%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--brand-yellow) 8%, transparent) 0%, transparent 45%),
    #FDFCF9;
}
.section--brand {
  background: var(--brand-blue);
  color: white;
}
.section--brand h2, .section--brand h3 { color: white; }
.section--brand p  { color: rgba(255, 255, 255, 0.85); }
.section--brand .eyebrow { color: var(--brand-yellow); }

/* Wave-Divider für sanfte Sektionswechsel */
.wave {
  display: block;
  width: 100%;
  height: 80px;
}
.wave--top    { transform: translateY(1px); }
.wave--bottom { transform: translateY(-1px); }

/* ---------- Kategorien-Karten (farbcodiert) ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
  perspective: 1400px;
  perspective-origin: 50% 30%;
}

/* Papierwerkstatt-Fächer: HTML-Perspective statt WebGL — Karten bleiben
   klick-, keyboard- und screenreader-freundlich. GSAP scrubbt die Karten
   aus einem Stapel in einen Fächer (auf HIGH-Tier, siehe scroll-choreography.js).
   Fallback ohne JS: normales Grid, keine 3D-Bewegung. */
html.has-3d .categories .cat-card {
  transform-origin: 50% 100%;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════
   Kategorien — hochwertige Farbkarten, 3D-Tilt, Papierstruktur
   ═══════════════════════════════════════════════════════ */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-4);
  padding-top: calc(var(--sp-5));
  background:
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 14%, white) 0%, white 55%),
    white;
  border-radius: var(--r-lg);
  box-shadow:
    0 4px 12px -2px rgba(13,43,69,0.08),
    0 12px 32px -12px color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 40%, transparent);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
  color: var(--cat-color, var(--brand-turquoise));
  cursor: pointer;
  min-height: 260px;
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 12%, white);
}
/* Papierstruktur: dezenter Punkt-Rasterhintergrund */
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 40%, transparent) 1.5px, transparent 2px),
    radial-gradient(circle at 78% 82%, color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 30%, transparent) 2px, transparent 2.5px);
  background-size: 40px 40px, 60px 60px;
  opacity: 0.35;
  transition: opacity var(--dur-med) var(--ease);
  z-index: 0;
  pointer-events: none;
}
/* Farbige Top-Leiste */
.cat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background:
    linear-gradient(90deg,
      var(--cat-color, var(--brand-turquoise)) 0%,
      color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 65%, white) 60%,
      var(--cat-color, var(--brand-turquoise)) 100%);
  z-index: 2;
}
.cat-card:hover {
  transform: perspective(1000px) rotateX(calc(var(--tilt-x) - 2deg)) rotateY(var(--tilt-y)) translateY(-6px);
  box-shadow:
    0 10px 24px -4px rgba(13,43,69,0.14),
    0 24px 60px -16px color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 60%, transparent);
}
.cat-card:hover::before { opacity: 0.55; }

.cat-card__icon {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 22px;
  background:
    linear-gradient(135deg,
      var(--cat-color, var(--brand-turquoise)) 0%,
      color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 70%, black) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-3);
  z-index: 1;
  box-shadow:
    0 10px 20px -6px color-mix(in srgb, var(--cat-color, var(--brand-turquoise)) 50%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateZ(20px);
  transition: transform var(--dur-med) var(--ease-out);
}
.cat-card:hover .cat-card__icon {
  transform: translateZ(40px) scale(1.08) rotate(-4deg);
}
.cat-card__icon svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cat-card__title {
  color: var(--brand-blue);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.35rem;
  position: relative; z-index: 1;
}
.cat-card__desc {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
  flex: 1;
  position: relative; z-index: 1;
}
.cat-card__arrow {
  margin-top: var(--sp-2);
  color: var(--cat-color, var(--brand-turquoise));
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.35rem;
  position: relative; z-index: 1;
  transition: gap var(--dur-fast) var(--ease);
}
.cat-card:hover .cat-card__arrow { gap: 0.6rem; }

/* Kategorie-Farb-Modifier */
.cat-card--schule    { --cat-color: var(--cat-schule); }
.cat-card--buero     { --cat-color: var(--cat-buero); }
.cat-card--geschenke { --cat-color: var(--cat-geschenke); }
.cat-card--schreiben { --cat-color: var(--cat-schreiben); }
.cat-card--service   { --cat-color: var(--cat-service); }

/* ═══════════════════════════════════════════════════════
   Werte (Warum Stumpf) — helle Karten, Papeterie-Feel
   ═══════════════════════════════════════════════════════ */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  perspective: 1200px;
}
.value {
  padding: var(--sp-4);
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 12%, white) 0%, white 60%),
    white;
  border: 1px solid color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 20%, white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 4px 12px -2px rgba(13,43,69,0.06),
    0 20px 40px -20px color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 40%, transparent);
  transform-style: preserve-3d;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}
/* Papier-Punkt-Raster im Hintergrund */
.value::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 40%, color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 35%, transparent) 1.5px, transparent 2px);
  background-size: 32px 32px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease);
}
.value:hover {
  transform: translateY(-6px) rotateX(-2deg);
  box-shadow:
    0 12px 24px -6px rgba(13,43,69,0.12),
    0 32px 60px -20px color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 55%, transparent);
}
.value:hover::before { opacity: 0.6; }

.value__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg,
      var(--value-color, var(--brand-turquoise)) 0%,
      color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 65%, black) 100%);
  color: white;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
  box-shadow:
    0 8px 16px -4px color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 55%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateZ(15px);
  transition: transform var(--dur-med) var(--ease-out);
}
.value:hover .value__icon {
  transform: translateZ(30px) scale(1.06) rotate(-4deg);
}
.value__icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value__num {
  position: absolute;
  top: var(--sp-3); right: var(--sp-4);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--value-color, var(--brand-turquoise)) 25%, transparent);
  line-height: 1;
  z-index: 0;
}
.value h3 {
  color: var(--brand-blue);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  position: relative;
  z-index: 1;
}
.value p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}
.value::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--value-color, var(--brand-turquoise));
  opacity: 0.08;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.value:hover::after { opacity: 0.14; transform: scale(1.1); }

/* Mosaic — Bilder-Grid für „Ein Blick in den Laden" (5 Kacheln, 1 groß + 4 klein) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.mosaic__tile {
  position: relative;
  grid-column: span 2;
  border-radius: var(--r-md);
  overflow: hidden;
  display: block;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.mosaic__tile--big { grid-column: span 2; grid-row: span 2; }
.mosaic__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.mosaic__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mosaic__tile:hover img { transform: scale(1.06); }
.mosaic__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  padding-top: calc(var(--sp-6) + var(--sp-2));
  background: linear-gradient(to top, rgba(13,43,69,0.9) 0%, rgba(13,43,69,0.5) 55%, transparent 100%);
  color: white;
  font-size: var(--fs-sm);
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mosaic__label strong {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic__tile, .mosaic__tile--big { grid-column: span 1; grid-row: auto; }
}
/* ponytail: Legacy-Duplikate für .value__num / .value h3 / .value p entfernt —
   die reichere Definition ab Zeile ~1109 (serif-Zahl, gradient, hover) gewinnt jetzt. */

/* ---------- Seit 1960 (Timeline-artig) ---------- */
.since {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: center;
}
@media (min-width: 760px) { .since { grid-template-columns: auto 1fr; gap: var(--sp-6); } }
.since__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px; height: 180px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--brand-turquoise), var(--brand-blue));
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}
.since__badge strong { font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.since__badge span   { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.4rem; opacity: 0.9; }

/* ---------- Standort / Kontakt-Karten ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.contact-card {
  position: relative;
  padding: var(--sp-4);
  padding-top: calc(var(--sp-4) + 4px);
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  overflow: hidden;
  --card-top-color: var(--brand-turquoise);
}
/* Farbige Top-Leiste — folgt der Kartenrundung */
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-top-color);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: var(--sp-2);
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: var(--fs-lg); margin: var(--sp-2) 0 var(--sp-2); color: var(--brand-blue); }
.contact-card p { margin-bottom: var(--sp-2); }

.hours {
  list-style: none;
  padding: 0;
  margin: var(--sp-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hours li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: baseline;
  gap: var(--sp-3);
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: var(--fs-sm);
  line-height: 1.2;
}
.hours li:last-child { border-bottom: none; }
.hours li span:first-child {
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
}
.hours li span:last-child {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-md);
  justify-self: end;
}
.hours li.is-closed { opacity: 0.55; }
.hours li.is-closed span:last-child { font-weight: 500; font-style: italic; font-size: var(--fs-sm); }

/* Turquoise-Text zu hell für WCAG AA → für Text-Links verdunkelter Ton */
:root { --brand-turquoise-text: #0077A0; }

.link-underline {
  color: var(--brand-turquoise-text);
  border-bottom: 2px solid rgba(0, 119, 160, 0.25);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  font-weight: 500;
}
.link-underline:hover { border-color: var(--brand-turquoise-text); color: var(--brand-blue); }

/* Kategorie-Arrow für WCAG-AA: dunklere Variante der Katfarbe */
.cat-card__arrow { color: var(--brand-blue); }
.cat-card:hover .cat-card__arrow { color: var(--cat-color, var(--brand-turquoise-text)); }
.cat-card--schule    .cat-card__arrow { color: var(--brand-blue); }
.cat-card--service   .cat-card__arrow { color: var(--brand-blue); }
.cat-card--buero     .cat-card__arrow { color: var(--brand-blue); }

/* Map-Placeholder freundlich */
.map-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 30% 30%, var(--brand-turquoise) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, var(--brand-yellow) 0%, transparent 40%),
    var(--paper-cool);
  background-size: 60% 60%, 60% 60%, 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}
.map-placeholder__link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  text-align: center;
}
.map-placeholder__body {
  padding: var(--sp-4);
  background: white;
  border-radius: var(--r-md);
  max-width: 480px;
  box-shadow: var(--shadow-md);
}
.map-placeholder__body h3 { font-size: var(--fs-lg); margin: var(--sp-2) 0; color: var(--brand-blue); }
.map-placeholder__body p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }

/* ---------- Service-Block (2-Spalten Text+Bild) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: center;
}
@media (min-width: 900px) {
  .service-block { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .service-block--reverse .service-block__media { order: 2; }
}
.service-block__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-cool);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.service-block__media img {
  width: 100%; height: 100%;
  object-position: center 30%; /* Bei Portrait-Bildern (z.B. Georg im Laden) Kopf nicht abschneiden */
  object-fit: cover;
}
.service-block__badge {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  padding: 0.4rem 0.9rem;
  background: white;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}
.service-block__content h2 { margin: var(--sp-2) 0 var(--sp-3); }
.service-block__content p { margin-bottom: var(--sp-2); }

/* Fakten-Liste — mit farbigem Punkt */
.fact-list {
  list-style: none;
  margin-top: var(--sp-3);
  padding: 0;
}
.fact-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.75rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 8px; height: 8px;
  background: var(--brand-turquoise);
  border-radius: 50%;
}
.fact-list strong { color: var(--brand-blue); font-weight: 700; }

/* ---------- FAQ (details/summary) ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  padding: var(--sp-3);
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--brand-blue);
  list-style: none;
  padding-right: 2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-turquoise);
  color: white;
  font-weight: 400;
  font-size: 1.25rem;
  border-radius: 50%;
  transition: transform var(--dur-med) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  margin-top: var(--sp-2);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 62ch;
}

/* ---------- CTA-Box (Sektions-Abschluss) ---------- */
.cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-box h2 { margin-bottom: var(--sp-2); }
.cta-box p { margin: 0 auto var(--sp-4); color: var(--ink-soft); }
.section--brand .cta-box p { color: rgba(255,255,255,0.85); }
.cta-box__actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Legal-Body ---------- */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--fs-md);
}
.legal-body h2 { font-size: var(--fs-lg); margin: var(--sp-6) 0 var(--sp-2); color: var(--brand-blue); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: var(--sp-2); max-width: none; }
.legal-body ul { margin: var(--sp-2) 0 var(--sp-3) 1.25rem; padding: 0; }
.legal-body li { padding: 0.25rem 0; color: var(--ink-soft); }
.legal-body strong { color: var(--brand-blue); font-weight: 700; }
.legal-body em { color: var(--brand-purple); font-style: italic; font-weight: 500; }

/* ---------- 404 ---------- */
.not-found {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: var(--sp-12) 0 var(--sp-8);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 210, 63, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 180, 216, 0.12), transparent 50%),
    var(--paper);
}
.not-found__inner { width: var(--wrap-narrow); margin: 0 auto; text-align: center; }
.not-found h1 { font-size: clamp(2.5rem, 1.8rem + 4vw, 5rem); margin: var(--sp-3) 0; }
.not-found h1 em { font-style: italic; color: var(--brand-purple); }
.not-found p { color: var(--ink-soft); font-size: var(--fs-lg); margin: 0 auto var(--sp-6); max-width: 540px; }
.not-found__actions { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
/* ═══════════════════════════════════════════════════════
   Footer — hell, papierartig, kompakt, Logo als Fläche
   ═══════════════════════════════════════════════════════ */
.footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--brand-blue);
  padding-block: clamp(1.75rem, 3.5vw, 3rem) 1rem;
  background:
    radial-gradient(ellipse at 12% 18%, color-mix(in srgb, var(--brand-turquoise) 7%, transparent) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 82%, color-mix(in srgb, var(--brand-yellow) 8%, transparent) 0%, transparent 45%),
    linear-gradient(180deg, var(--paper-cool) 0%, var(--paper) 60%);
}
/* feine Papier-Textur — sehr dezent */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 25%, rgba(13,43,69,0.05) 1px, transparent 1.5px);
  background-size: 48px 48px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
/* zwei dezente Blob-Flächen */
.footer__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.footer__blob {
  position: absolute;
  display: block;
  border-radius: 62% 38% 55% 45% / 50% 62% 38% 50%;
  filter: blur(56px);
  opacity: 0.18;
}
.footer__blob--1 { top: -60px; left: -40px; width: 280px; height: 280px; background: var(--brand-turquoise); }
.footer__blob--2 { bottom: -80px; right: -40px; width: 320px; height: 320px; background: var(--brand-yellow); }

/* Grid: Marke ⎪ Öffnungszeiten ⎪ Navigation */
.footer__inner {
  position: relative; z-index: 1;
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
/* Tablet: 2-spaltig — Marke links, Öffnungszeiten + Navigation rechts gestapelt */
@media (min-width: 620px) and (max-width: 899px) {
  .footer__inner {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, auto);
    gap: 1.5rem 2rem;
    align-items: start;
  }
  .footer__brand { grid-row: span 2; }
  .footer__logo { width: min(100%, 280px); }
}
@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(320px, 1.4fr) auto auto;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}

/* Markenzone: horizontales Logo, Adresse in ein bis zwei Zeilen */
.footer__brand {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  margin: 0;
  min-width: 0;
  max-width: 460px;
  position: relative;
  overflow: visible;
}
/* Dezenter Papeterie-Halo hinter dem Logo — ruhige organische Fläche + Lichtkante */
.footer__brand-halo {
  position: absolute;
  inset: -18% -12% 30% -8%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--brand-turquoise) 14%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 55%, color-mix(in srgb, var(--brand-yellow) 12%, transparent) 0%, transparent 55%);
  border-radius: 62% 38% 55% 45% / 50% 62% 38% 50%;
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}
.footer__logo {
  display: block;
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  max-width: calc(100vw - 40px);
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 1rem 0;
}
.footer__address {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.footer__address a {
  color: var(--brand-blue);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer__address a:hover { color: var(--brand-turquoise-text); border-bottom-color: currentColor; }

/* Öffnungszeiten-Spalte + Navigations-Spalte */
.footer__hours-col,
.footer__nav {
  min-width: 160px;
}
.footer__hours-col h4,
.footer__nav h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 var(--sp-2);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-blue) 12%, transparent);
}

/* ── Live-Öffnungszeiten-Widget (Uhrbasiert) ────────────────
   Wird von main.js gefüllt: „Jetzt geöffnet · schließt 18:00"
   oder „Geschlossen · öffnet Mo 08:00". Ohne JS zeigt der
   Fallback-Text („Öffnungszeiten prüfen"). */
.live-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  background: color-mix(in srgb, var(--muted) 8%, transparent);
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.live-hours__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 8px;
  position: relative;
}
.live-hours[data-state="open"] {
  background: color-mix(in srgb, var(--brand-green) 14%, transparent);
  color: var(--brand-green);
}
.live-hours[data-state="closing-soon"] {
  background: color-mix(in srgb, var(--brand-yellow) 18%, transparent);
  color: color-mix(in srgb, var(--brand-yellow) 60%, var(--brand-blue));
}
.live-hours[data-state="opening-soon"] {
  background: color-mix(in srgb, var(--brand-turquoise) 14%, transparent);
  color: var(--brand-turquoise-text);
}
.live-hours[data-state="closed"] {
  background: color-mix(in srgb, var(--brand-blue) 8%, transparent);
  color: var(--muted);
}
.live-hours[data-state="open"] .live-hours__dot,
.live-hours[data-state="closing-soon"] .live-hours__dot,
.live-hours[data-state="opening-soon"] .live-hours__dot {
  animation: liveDotPulse 2.4s ease-in-out infinite;
}
.live-hours[data-state="open"] .live-hours__dot::after,
.live-hours[data-state="opening-soon"] .live-hours__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: liveDotRing 2.4s ease-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes liveDotRing {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-hours__dot,
  .live-hours__dot::after { animation: none; }
}
/* Header-Variante (kompakt) */
.nav .live-hours { font-size: 0.72rem; padding: 0.28rem 0.65rem; background: rgba(253,250,244,0.55); border: 1px solid color-mix(in srgb, var(--brand-blue) 8%, transparent); }
@media (max-width: 899px) {
  /* Auf Tablet/Mobile weglassen — dort ist die Nav sowieso im Burger */
  .nav .live-hours { display: none; }
}
/* Heutige Zeile in der Öffnungszeiten-Tabelle hervorheben */
.footer__hours li[data-today="true"] {
  color: var(--brand-blue);
}
.footer__hours li[data-today="true"] > span:first-child::before {
  content: "▸ ";
  color: var(--brand-turquoise);
  font-weight: 700;
}
.footer__hours li[data-today="true"] > span:last-child {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Öffnungszeiten mit ausgerichteten Spalten */
.footer__hours { list-style: none; padding: 0; margin: 0; }
.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.footer__hours li > span:first-child { font-weight: 600; color: var(--brand-blue); }
.footer__hours li > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Navigation */
.footer__nav ul { list-style: none; padding: 0; margin: 0; }
.footer__nav li { font-size: var(--fs-sm); line-height: 1.75; }
.footer__nav a {
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease);
}
.footer__nav a:hover { color: var(--brand-turquoise-text); }

/* Base-Zone: Legal + Credit unter feiner Trennlinie */
.footer__base {
  position: relative; z-index: 1;
  width: var(--wrap);
  margin: clamp(1.5rem, 2.5vw, 2rem) auto 0;
  padding-top: clamp(0.75rem, 1.25vw, 1.25rem);
  border-top: 1px solid color-mix(in srgb, var(--brand-blue) 10%, transparent);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}
@media (min-width: 720px) {
  .footer__base {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.footer__legal a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer__legal a:hover { color: var(--brand-blue); border-bottom-color: currentColor; }
.footer__sep { color: color-mix(in srgb, var(--brand-blue) 25%, transparent); user-select: none; }

/* DreiHundertSechzig-Credit: eigenständige Markenfläche mit Orbit-Animation */
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0.6rem 0.4rem 0.9rem;
  border-radius: var(--r-full);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
  justify-self: end;
  -webkit-tap-highlight-color: transparent;
}
.footer__credit-text {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
  max-width: 12ch;
  text-align: right;
}
.footer__credit-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}
.footer__credit-orbit {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  pointer-events: none;
}
.footer__credit-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}
/* Ein langsamer Orbit (äußerer Ring + 2 Lichtpunkte) + sehr dezenter Glow-Puls.
   Innerer Ring bleibt statisch. Kein „animiertes Dashboard". */
.footer__credit-orbit-group {
  transform-origin: 70px 70px;
  transform-box: fill-box;
  animation: creditOrbit 28s linear infinite;
}
.footer__credit-glow {
  transform-origin: 70px 70px;
  transform-box: fill-box;
  animation: creditGlowPulse 7s ease-in-out infinite;
}
@keyframes creditOrbit { to { transform: rotate(360deg); } }
@keyframes creditGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
.footer__credit:hover .footer__credit-orbit-group,
.footer__credit:focus-visible .footer__credit-orbit-group { animation-duration: 16s; }
.footer__credit:hover .footer__credit-glow,
.footer__credit:focus-visible .footer__credit-glow { animation-duration: 4s; opacity: 1; }
.footer__credit:hover .footer__credit-text,
.footer__credit:focus-visible .footer__credit-text { color: var(--brand-blue); }
.footer__credit:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .footer__credit-orbit-group,
  .footer__credit-glow { animation: none; }
}
@media (max-width: 899px) {
  .footer__credit-orbit-group,
  .footer__credit-glow { animation: none; }
}

@media (max-width: 719px) {
  .footer__credit { justify-self: start; padding-left: 0; }
  .footer__credit-text { text-align: left; max-width: none; }
}

/* Mobile: Logo nutzt volle Breite (mit Sicherheitsabstand), Nav 2×3-Grid */
@media (max-width: 899px) {
  .footer__brand { max-width: 100%; }
  .footer__logo { width: min(100%, 320px); }
  .footer__nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
  }
}

/* ---------- Page-Hero für Unterseiten ---------- */
.page-hero {
  padding: 8rem 0 var(--sp-6);
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 180, 216, 0.08), transparent 60%),
    var(--paper);
}
.page-hero__inner { width: var(--wrap-narrow); margin: 0 auto; text-align: center; }
.page-hero__logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--sp-3);
  filter: drop-shadow(0 4px 12px rgba(13, 43, 69, 0.10));
}
@media (max-width: 640px) { .page-hero__logo { max-width: 200px; } }
.page-hero h1 { font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem); margin: var(--sp-3) 0; }
.page-hero__lead { font-size: var(--fs-lg); color: var(--ink-soft); line-height: 1.5; max-width: 640px; margin: 0 auto; }

/* Category-Hero (farbcodierte Unterseite) */
.page-hero--cat { padding-top: 10rem; }
.page-hero--cat .cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-color, var(--brand-turquoise));
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--cat-color, var(--brand-turquoise));
}

/* ---------- Reveal-Animation ---------- */
html.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.motion .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Chrome-Bug-Workaround: bei has-3d gepushten Karten (will-change: transform +
   transform-style: preserve-3d) bleibt der GPU-Layer bei .reveal opacity 0
   gecacht — der .is-visible-Wechsel wird nicht sichtbar. Höhere Specificity +
   !important reißen die Karte aus der stale composited layer. */
html.motion.has-3d .reveal.is-visible,
html.motion .has-3d .reveal.is-visible {
  opacity: 1 !important;
}

/* Reduced-Motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero__deco { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   Erinnerungsseite — ruhig, würdevoll, Dunkelblau/Creme
   ═══════════════════════════════════════════════════════ */
.memoriam {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef4fa 100%);
  min-height: 100vh;
  padding: 8rem 0 var(--sp-8);
}
.memoriam__inner {
  width: var(--wrap-narrow);
  margin: 0 auto;
  text-align: center;
}
.memoriam__logo {
  display: block;
  width: 80px; height: 80px;
  margin: 0 auto var(--sp-3);
  padding: 10px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.memoriam__intro {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--brand-blue);
  opacity: 0.75;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.01em;
}
/* Portrait-Rahmen — sanfter Reveal des GANZEN Rahmens, keine Animation auf Gesicht */
.memoriam__portrait {
  max-width: 380px;
  margin: 0 auto var(--sp-6);
  padding: 12px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 20px 60px -20px rgba(13, 43, 69, 0.25),
              0 2px 6px rgba(13, 43, 69, 0.08);
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
  transition-delay: 200ms;
}
html.motion .memoriam__portrait { opacity: 0; transform: translateY(20px) scale(0.98); }
html.motion .memoriam__portrait.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.memoriam__portrait img {
  border-radius: 2px;
  width: 100%; height: auto;
  display: block;
}

.memoriam__name {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.memoriam__dates {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  color: var(--brand-blue);
  opacity: 0.7;
  margin-bottom: var(--sp-6);
  letter-spacing: 0.05em;
}
.memoriam__dates .cross { opacity: 0.55; margin: 0 0.35em; }

.memoriam__text {
  max-width: 620px;
  margin: 0 auto var(--sp-6);
  text-align: left;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.75;
}
.memoriam__text p { margin-bottom: var(--sp-3); max-width: none; }
.memoriam__text .lead {
  font-size: var(--fs-lg);
  color: var(--brand-blue);
  font-weight: 500;
  line-height: 1.55;
}

.memoriam__divider {
  width: 60px;
  height: 2px;
  background: var(--brand-turquoise);
  margin: var(--sp-6) auto;
  opacity: 0.6;
  border-radius: 2px;
}

.memoriam__continue {
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.memoriam__continue h3 {
  color: var(--brand-blue);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.memoriam__continue p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
  max-width: none;
}

/* ═══════════════════════════════════════════════════════
   Timeline (Geschichte) — Ebenen, Scroll-Reveal
   ═══════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding: var(--sp-8) 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
    var(--brand-turquoise) 0%,
    var(--brand-green) 33%,
    var(--brand-purple) 66%,
    var(--brand-orange) 100%);
  border-radius: 3px;
  opacity: 0.35;
  transform: translateX(-50%);
}
@media (max-width: 900px) {
  .timeline::before { left: 24px; }
}

.tl-item {
  position: relative;
  padding: var(--sp-6) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.tl-item:nth-child(even) { direction: rtl; }
.tl-item:nth-child(even) > * { direction: ltr; }
@media (max-width: 900px) {
  .tl-item, .tl-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    padding-left: 56px;
  }
}

.tl-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--tl-color, var(--brand-turquoise));
  box-shadow: 0 4px 12px -2px var(--tl-color, var(--brand-turquoise));
  transform: translate(-50%, -50%);
  z-index: 2;
}
@media (max-width: 900px) {
  .tl-marker { left: 24px; top: 40px; }
}

.tl-phase {
  padding: var(--sp-4);
  padding-top: calc(var(--sp-4) + 4px);
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.tl-phase:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Farbleiste als eigenständige Ebene — folgt der Kartenrundung sauber */
.tl-phase::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tl-color, var(--brand-turquoise));
  z-index: 2;
}
.tl-phase::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--tl-color) 0%, transparent 60%);
  opacity: 0.06;
  z-index: -1;
}
.tl-phase__chip {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
  background: var(--tl-color);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.tl-phase h3 {
  color: var(--brand-blue);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}
.tl-phase p {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.7;
  max-width: none;
}

.tl-media {
  aspect-ratio: 4 / 5;   /* Portrait-freundlich — Köpfe passen ohne Beschnitt */
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-cool);
}
.tl-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Fokus leicht nach oben — Kopf mittig */
}
@media (max-width: 900px) {
  /* Auf Mobile größere sichtbare Fläche: nicht abschneiden */
  .tl-media { aspect-ratio: 3 / 4; }
}

.tl-item--generation-1 { --tl-color: var(--brand-turquoise); }
.tl-item--generation-2 { --tl-color: var(--brand-green); }
.tl-item--generation-3 { --tl-color: var(--brand-purple); }
.tl-item--today        { --tl-color: var(--brand-orange); }

/* ═══════════════════════════════════════════════════════
   Portrait-Karte (Über uns, Lisa-Seite)
   ═══════════════════════════════════════════════════════ */
.portrait-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .portrait-card { grid-template-columns: 1fr 1.3fr; gap: var(--sp-8); }
}
.portrait-card__media {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: visible;
  background: transparent;
}
/* Farbige Blob-Formen hinter dem Bild — Papeterie-Wolke statt grauer Kachel */
.portrait-card__media::before {
  content: "";
  position: absolute;
  inset: -8% -6% -6% -8%;
  background:
    radial-gradient(ellipse at 20% 30%, var(--brand-yellow) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, var(--brand-turquoise) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, var(--brand-purple) 0%, transparent 60%);
  opacity: 0.25;
  filter: blur(30px);
  z-index: 0;
  border-radius: 50%;
  transform: rotate(-4deg);
}
.portrait-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, var(--brand-yellow) 6px, transparent 7px),
    radial-gradient(circle at 82% 20%, var(--brand-turquoise) 5px, transparent 6px),
    radial-gradient(circle at 12% 82%, var(--brand-orange) 5px, transparent 6px),
    radial-gradient(circle at 90% 80%, var(--brand-purple) 6px, transparent 7px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
  animation: portrait-confetti-drift 12s ease-in-out infinite;
}
@keyframes portrait-confetti-drift {
  0%, 100% { transform: translate(0,0) rotate(0); }
  50%      { transform: translate(4px, -6px) rotate(2deg); }
}
.portrait-card__media picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%; height: 100%;
}
.portrait-card__media img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: 62% 38% 55% 45% / 50% 62% 38% 50%;
  box-shadow: 0 24px 48px -12px rgba(13, 43, 69, 0.20);
}
@media (prefers-reduced-motion: reduce) {
  .portrait-card__media::after { animation: none; }
}
.portrait-card__body h1,
.portrait-card__body h2 { color: var(--brand-blue); margin-bottom: var(--sp-2); }
.portrait-card__body .role {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
  background: var(--brand-purple);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.portrait-card__body p { color: var(--ink-soft); line-height: 1.7; margin-bottom: var(--sp-3); }

/* ═══════════════════════════════════════════════════════
   Footer-Credit (DreiHundertSechzig)
   ═══════════════════════════════════════════════════════ */
/* ponytail: legacy dunkler Footer-Credit entfernt — helle Version steht oben im neuen Footer-Block. */

/* ═══════════════════════════════════════════════════════
   Fullscreen Burger-Menü — Overlay mit Blobs + gestaffelter Reveal
   ═══════════════════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 180, 216, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(122, 79, 208, 0.18), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 210, 63, 0.10), transparent 55%),
    rgba(13, 43, 69, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease), visibility 0s linear 260ms;
  overflow: hidden;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms var(--ease), visibility 0s;
}
/* Räumliche Ebene: Overlay-Inhalt kippt beim Öffnen minimal nach vorne —
   wirkt räumlich ohne WebGL, ohne Performance-Kosten. */
.menu-overlay__inner {
  transform: perspective(1400px) rotateX(4deg) translateY(20px);
  opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out);
}
.menu-overlay.is-open .menu-overlay__inner {
  transform: perspective(1400px) rotateX(0) translateY(0);
  opacity: 1;
  transition-delay: 60ms;
}

/* Close-X: prominent rechts oben im Menü-Overlay, tastaturbedienbar */
.menu-close {
  position: fixed;
  top: 1.5rem;
  right: max(1.5rem, calc((100vw - 1240px) / 2));
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.menu-close:hover,
.menu-close:focus-visible {
  transform: rotate(90deg) scale(1.08);
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--brand-blue);
  outline: none;
}
.menu-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
@media (max-width: 900px) {
  .menu-close { top: 1rem; right: 1rem; width: 48px; height: 48px; }
}

.menu-overlay__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.menu-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.menu-blob--1 { width: 520px; height: 520px; background: var(--brand-turquoise); top: -100px; right: -80px; opacity: 0.5; animation: menu-float 12s ease-in-out infinite; }
.menu-blob--2 { width: 420px; height: 420px; background: var(--brand-purple); bottom: -80px; left: -80px; opacity: 0.5; animation: menu-float 15s ease-in-out infinite reverse; }
.menu-blob--3 { width: 360px; height: 360px; background: var(--brand-orange); top: 38%; left: 42%; opacity: 0.38; animation: menu-float 18s ease-in-out infinite; }
/* Konfetti-Sprinkles wie im Logo — kleine scharfe Farbtupfer über dem Overlay */
.menu-overlay__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 5px at 18% 22%, var(--brand-yellow) 98%, transparent),
    radial-gradient(circle 4px at 72% 15%, var(--brand-green) 98%, transparent),
    radial-gradient(circle 6px at 88% 45%, var(--brand-turquoise) 98%, transparent),
    radial-gradient(circle 4px at 60% 70%, var(--brand-orange) 98%, transparent),
    radial-gradient(circle 5px at 35% 85%, var(--brand-purple) 98%, transparent),
    radial-gradient(circle 3px at 50% 35%, var(--brand-yellow) 98%, transparent),
    radial-gradient(circle 4px at 10% 60%, var(--brand-orange) 98%, transparent),
    radial-gradient(circle 3px at 80% 80%, var(--brand-green) 98%, transparent);
  opacity: 0.65;
  pointer-events: none;
}
@keyframes menu-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -30px) scale(1.15); }
}

.menu-overlay__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, 92vw);
  height: 100%;
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@media (max-width: 899px) {
  .menu-overlay__nav ul { display: flex; flex-direction: column; gap: 0.1rem; }
  .menu-overlay__brand img { width: 56px; height: 56px; }
  .menu-link { font-size: 1.35rem; padding: 0.28em 0; }
  .menu-link--sub { font-size: 0.98rem; padding: 0.22em 0 0.22em 1.4rem; }
  .menu-overlay__aside { gap: 1rem; margin-top: 0.5rem; }
  .menu-info h4 { margin-bottom: 0.25rem; }
  .menu-info ul, .menu-info p { font-size: 0.9rem; line-height: 1.4; }
  .menu-cta-row .btn { flex: 1; min-width: 0; padding: 0.75rem 1rem; font-size: 0.85rem; }
  .menu-credit { padding-top: 0.5rem; }
}
@media (min-width: 900px) {
  .menu-overlay__inner {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.5rem 4rem;
    padding: 4.5rem 0 2.5rem;
  }
  .menu-overlay__brand { grid-column: 1 / -1; }
  .menu-overlay__brand img { width: auto; height: auto; max-width: 200px; }
  .menu-overlay__nav   { grid-column: 1; grid-row: 2; }
  .menu-overlay__aside { grid-column: 2; grid-row: 2; }
}

.menu-overlay__brand {
  display: flex;
  justify-content: center;
  align-items: center;
}
.menu-overlay__brand img {
  border-radius: 0;
  background: none;
  padding: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  max-width: min(240px, 60vw);
  display: block;
}

.menu-overlay__nav ul {
  list-style: none;
  padding: 0;
}
.menu-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  font-weight: 700;
  color: white;
  padding: 0.18em 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  /* Villa Kunterbunt: animierte Farb-Unterstreichung wächst beim Hover */
  background-image: linear-gradient(90deg, var(--menu-c, var(--brand-yellow)), var(--menu-c, var(--brand-yellow)));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 0.14em;
  transition: color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              background-size 320ms var(--ease-out);
}
.menu-link:hover, .menu-link:focus-visible { background-size: 100% 0.14em; }
.menu-link[data-cat="turquoise"] { --menu-c: var(--brand-turquoise); }
.menu-link[data-cat="green"]     { --menu-c: var(--brand-green); }
.menu-link[data-cat="orange"]    { --menu-c: var(--brand-orange); }
.menu-link[data-cat="purple"]    { --menu-c: var(--brand-purple); }
.menu-link[data-cat="yellow"]    { --menu-c: var(--brand-yellow); }
.menu-overlay.is-open .menu-link {
  animation: menu-link-in 0.5s var(--ease-out) forwards;
  animation-delay: calc(120ms + var(--menu-i) * 40ms);
}
@keyframes menu-link-in {
  to { opacity: 1; transform: translateY(0); }
}

.menu-link--sub {
  font-size: clamp(1rem, 0.85rem + 0.8vw, 1.35rem);
  padding-left: 1.4rem;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
/* Permanenter Farb-Punkt vor jedem Sub-Link — Farbe sofort sichtbar, nicht erst bei Hover */
.menu-link--sub::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--menu-c, var(--brand-yellow));
  box-shadow: 0 0 12px var(--menu-c, var(--brand-yellow));
}
.menu-link:hover,
.menu-link:focus-visible {
  color: var(--brand-yellow);
  transform: translateX(8px);
  outline: none;
}
.menu-link[data-cat="turquoise"]:hover { color: var(--brand-turquoise); }
.menu-link[data-cat="green"]:hover     { color: var(--brand-green); }
.menu-link[data-cat="orange"]:hover    { color: var(--brand-orange); }
.menu-link[data-cat="purple"]:hover    { color: var(--brand-purple); }
.menu-link[data-cat="yellow"]:hover    { color: var(--brand-yellow); }

.menu-overlay__aside {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.menu-info h4 {
  color: var(--brand-yellow);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.menu-info p, .menu-info li {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.menu-info ul { list-style: none; padding: 0; }
.menu-info a { color: white; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); }
.menu-info a:hover { color: var(--brand-yellow); text-decoration-color: var(--brand-yellow); }

.menu-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* Prominenter Anfrage-CTA im Mobile-Menü */
.menu-anfrage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, var(--brand-yellow) 0%, #ffb833 100%);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px -8px rgba(255, 210, 63, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  margin-bottom: var(--sp-3);
}
.menu-anfrage-cta > span:last-child {
  font-size: 1.3rem;
  transition: transform var(--dur-fast) var(--ease);
}
.menu-anfrage-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(255, 210, 63, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.menu-anfrage-cta:hover > span:last-child { transform: translateX(4px); }
.menu-anfrage-cta:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}
.menu-credit {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  margin-top: auto;
  padding-top: 1rem;
}
.menu-credit a { color: rgba(255,255,255,0.85); border-bottom: 1px dotted rgba(255,255,255,0.4); }
.menu-credit a:hover { color: var(--brand-yellow); }

/* Bei geöffnetem Menu: html scroll gelockt */
html.menu-open, html.menu-open body { overflow: hidden; }

/* ═══════════════════════════════════════════════════════
   Hero-Flight — cinematischer Kamera-Flug direkt nach dem Hero
   3 Layer-Bilder gestapelt, Cross-Fade + Ken-Burns beim Scroll.
   ═══════════════════════════════════════════════════════ */
.hero-flight {
  position: relative;
  height: 260vh;   /* Pin-Distanz: 2.6× Viewport */
}
.hero-flight__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0D2B45;
  isolation: isolate;
}
.hero-flight__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 600ms var(--ease-out);
  display: block;
  will-change: transform, opacity;
}
.hero-flight__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.hero-flight__frame.is-active { opacity: 1; }

.hero-flight__gradient {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(13,43,69,0.55) 0%, transparent 30%, transparent 65%, rgba(13,43,69,0.55) 100%),
    linear-gradient(to right, rgba(13,43,69,0.35) 0%, transparent 40%, transparent 60%, rgba(13,43,69,0.35) 100%);
  pointer-events: none;
}

.hero-flight__caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 12vh;
  z-index: 3;
  text-align: center;
  color: white;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  font-style: italic;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  padding: 0 var(--sp-3);
}
.hero-flight__line {
  display: block;
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
}
.hero-flight__line.is-active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 899px) {
  .hero-flight { height: 200vh; }
  .hero-flight__caption { bottom: 20vh; font-size: 1.35rem; }
}

/* Reduced-motion und no-motion: statisches erstes Frame, kein Pin, geringe Höhe */
html:not(.motion) .hero-flight { height: auto; }
html:not(.motion) .hero-flight__pin { position: static; height: 60vh; }
html:not(.motion) .hero-flight__caption { display: none; }
html:not(.motion) .hero-flight__frame:not(.is-active) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-flight { height: auto; }
  .hero-flight__pin { position: static; height: 60vh; }
  .hero-flight__caption { display: none; }
  .hero-flight__frame:not(.is-active) { display: none; }
}

/* ═══════════════════════════════════════════════════════
   Storystage — gepinnte Drei-Generationen-Bühne
   Bildseite links, Textseite rechts. Bild + Text wechseln
   synchron mit dem Scroll. Fallback ohne JS: normale
   Column-Reihung (siehe .no-choreo unten).
   ═══════════════════════════════════════════════════════ */
.story-stage {
  padding-top: 0;
  padding-bottom: var(--sp-8);
  position: relative;
}
.story-stage__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.story-stage__inner {
  width: var(--wrap);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
}
@media (min-width: 900px) {
  .story-stage__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--sp-6);
    align-items: center;
  }
}

/* Bildseite — Bühne mit drei übereinander gestapelten Frames */
.story-stage__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(13,43,69,0.35), 0 4px 12px rgba(13,43,69,0.08);
  background: var(--paper);
  isolation: isolate;
}
.story-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.story-frame.is-active { opacity: 1; }
/* Text-only-Frame für Thomas */
.story-frame--2 {
  background:
    radial-gradient(circle at 30% 30%, rgba(139,203,63,0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(0,180,216,0.14), transparent 55%),
    linear-gradient(160deg, var(--paper-cool) 0%, var(--paper) 100%);
  display: grid;
  place-items: center;
  color: var(--brand-blue);
}
.story-frame__symbol {
  text-align: center;
  padding: var(--sp-4);
}
.story-frame__symbol svg {
  width: min(180px, 55%);
  height: auto;
  display: block;
  margin: 0 auto var(--sp-3);
}
.story-frame__caption {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

/* Textseite */
.story-stage__text {
  position: relative;
  min-height: 260px;
  padding: var(--sp-3) 0;
}
.story-stage__eyebrow {
  margin-bottom: var(--sp-3);
}
.story-panel {
  position: absolute;
  inset: var(--sp-6) 0 auto 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
  pointer-events: none;
}
.story-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.story-panel__chip {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-turquoise);
  padding: 0.35em 0.9em;
  background: rgba(0,180,216,0.10);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-2);
}
.story-panel--2 .story-panel__chip { color: var(--brand-green); background: rgba(139,203,63,0.14); }
.story-panel--3 .story-panel__chip { color: var(--brand-purple); background: rgba(122,79,208,0.12); }
.story-panel--4 .story-panel__chip { color: var(--brand-yellow); background: rgba(255,210,63,0.16); }
.story-panel__chip strong,
.story-panel__chip span { display: block; line-height: 1.15; }
.story-panel__chip strong { font-size: 1em; letter-spacing: 0.18em; }
.story-panel__chip span {
  font-size: 0.85em;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-top: 0.15em;
}
.story-panel__name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-blue);
  margin: 0 0 var(--sp-3);
  line-height: 1.05;
}
.story-panel__line {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
}
.story-panel__link {
  display: inline-block;
  font-weight: 600;
  color: var(--brand-blue);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease);
}
.story-panel--3 .story-panel__link { color: var(--brand-purple); }
.story-panel__link:hover { color: var(--brand-orange); }

/* Fortschrittsanzeiger: 3 Punkte */
.story-stage__progress {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--sp-6);
  position: relative;
}
.story-stage__dot {
  width: 42px; height: 3px;
  background: rgba(13,43,69,0.15);
  border-radius: 999px;
  transition: background 300ms var(--ease-out);
}
.story-stage__dot.is-active { background: var(--brand-blue); }

.story-stage__outro {
  text-align: center;
  padding-top: var(--sp-4);
}

/* Fallback ohne JS: Frames einfach untereinander (kein Overlay) */
html:not(.motion) .story-stage__media,
html:not(.motion) .story-stage__text {
  position: static;
}
html:not(.motion) .story-frame,
html:not(.motion) .story-panel {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  margin-bottom: var(--sp-3);
}
html:not(.motion) .story-frame img { max-height: 60vh; }
html:not(.motion) .story-stage__pin { min-height: 0; }

/* Mobile: die Story lebt als kompaktes 3-Karten-Stapeln, kein Pin */
@media (max-width: 899px) {
  .story-stage__pin { min-height: 0; }
  .story-stage__media { aspect-ratio: 4 / 3; max-height: 60vh; }
  .story-stage__text { min-height: 200px; }
  .story-panel { position: relative; inset: auto; opacity: 1; transform: none; margin-bottom: var(--sp-4); pointer-events: auto; }
  .story-stage__progress { display: none; }
  .story-frame { transition: opacity 300ms; }
}


/* ═══════════════════════════════════════════════════════
   Generationen-Karten (Startseite Historien-Teaser)
   ═══════════════════════════════════════════════════════ */
.generations {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  perspective: 1600px;
  perspective-origin: 50% 40%;
}
@media (min-width: 760px) { .generations { grid-template-columns: repeat(3, 1fr); } }

/* Historien-Karten bekommen sanfte Tiefenstaffelung.
   Fotos bleiben scharfe Bilder — keine Face-Verformung, keine Portrait-Animation.
   Nur der Karten-Container kippt/staffelt beim Scroll. */
html.has-3d .generations .gen-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.gen-card {
  display: block;
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  color: inherit;
  position: relative;
  isolation: isolate;
}
a.gen-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.gen-card__media {
  aspect-ratio: 4 / 5;   /* Portrait-freundlich */
  overflow: hidden;
  background: var(--paper-cool);
}

/* Thomas Stumpf: reine Text-Karte — es existiert (noch) kein Foto.
   Kein Platzhalter-Bild, keine Bildfläche. Karte streckt sich in der
   Grid-Reihe und zentriert ihren Text vertikal. */
.gen-card--textonly {
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, white 60%, var(--tint-green) 100%);
  border-top: 4px solid var(--brand-green);
}
.gen-card--textonly .gen-card__body { padding: var(--sp-4) var(--sp-3); }
.gen-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%; /* Kopf sichtbar, nicht abgeschnitten */
  transition: transform var(--dur-slow) var(--ease-out);
}
a.gen-card:hover .gen-card__media img { transform: scale(1.06); }

.gen-card__body { padding: var(--sp-3); position: relative; }
.gen-card__chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.6rem;
}
.gen-card--1 .gen-card__chip { background: var(--brand-turquoise); }
.gen-card--2 .gen-card__chip { background: var(--brand-green); }
.gen-card--3 .gen-card__chip { background: var(--brand-purple); }

.gen-card__body h3 {
  color: var(--brand-blue);
  font-size: var(--fs-lg);
  margin-bottom: 0.4rem;
}
.gen-card__body p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.gen-card__link {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: var(--fs-sm);
}
a.gen-card:hover .gen-card__link { color: var(--brand-turquoise-text); }

/* ═══════════════════════════════════════════════════════
   Anfrage-Formular
   ═══════════════════════════════════════════════════════ */
.form-anfrage {
  background: white;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row > label,
.form-row > legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-blue);
}
.form-row .opt {
  color: var(--muted);
  font-weight: 400;
  font-size: var(--fs-xs);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--ink);
  background: white;
  transition: border-color var(--dur-fast) var(--ease);
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand-turquoise);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}
.form-row input:invalid:not(:focus):not(:placeholder-shown),
.form-row textarea:invalid:not(:focus):not(:placeholder-shown),
.form-row select:invalid:not(:focus) {
  border-color: var(--brand-orange);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  cursor: pointer;
}
.radio input { accent-color: var(--brand-turquoise); }

.form-consent .checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent .checkbox input { margin-top: 0.2rem; accent-color: var(--brand-turquoise); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-note { font-size: var(--fs-xs); color: var(--muted); }

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.form-status.is-success { background: rgba(139, 203, 63, 0.15); color: #4a7a1c; border-left: 4px solid var(--brand-green); }
.form-status.is-error   { background: rgba(255, 159, 28, 0.15); color: #b85e00; border-left: 4px solid var(--brand-orange); }
.form-status.is-loading { background: rgba(0, 180, 216, 0.15); color: var(--brand-turquoise-text); border-left: 4px solid var(--brand-turquoise); }

/* ═══════════════════════════════════════════════════════
   Chatbot (schwebender Button + Overlay)
   ═══════════════════════════════════════════════════════ */
#chatbot-root { position: fixed; z-index: 150; }

.chatbot-fab {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-turquoise-cta);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(0, 119, 160, 0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 150;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease);
}
.chatbot-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -4px rgba(0, 119, 160, 0.6); }
.chatbot-fab svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.chatbot-window {
  position: fixed;
  bottom: 96px; right: 20px;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 130px));
  background: white;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px -10px rgba(13,43,69,0.25);
  display: flex;
  flex-direction: column;
  z-index: 149;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.chatbot-window.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chatbot-header {
  padding: 1rem 1.25rem;
  background: var(--brand-blue);
  color: white;
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem;
}
.chatbot-header h3 { color: white; font-size: var(--fs-md); font-weight: 700; margin: 0; }
.chatbot-header small { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,0.7); font-weight: 400; margin-top: 2px; }
.chatbot-close {
  background: transparent; border: none; color: white; cursor: pointer;
  padding: 4px; border-radius: var(--r-sm);
}
.chatbot-close:hover { background: rgba(255,255,255,0.1); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chatbot-msg {
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  max-width: 85%;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.chatbot-msg--bot {
  background: white;
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.chatbot-msg--user {
  background: var(--brand-turquoise-cta);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chatbot-msg--bot a { color: var(--brand-turquoise-text); text-decoration: underline; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chatbot-quick button {
  background: white;
  border: 1.5px solid var(--brand-turquoise);
  color: var(--brand-turquoise-text);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chatbot-quick button:hover { background: var(--brand-turquoise); color: white; }

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 0.75rem;
  background: white;
  border-top: 1px solid var(--line);
}
.chatbot-input input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--r-full);
  font: inherit;
  font-size: var(--fs-sm);
}
.chatbot-input input:focus {
  outline: none; border-color: var(--brand-turquoise);
}
.chatbot-input button {
  background: var(--brand-turquoise);
  color: white;
  border: none;
  padding: 0 1.25rem;
  border-radius: var(--r-full);
  font-weight: 600;
  cursor: pointer;
}
.chatbot-input button:hover { background: var(--brand-blue); }

.chatbot-disclaimer {
  font-size: 10px;
  color: var(--muted);
  padding: 6px 12px;
  text-align: center;
  background: var(--paper-cool);
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════
   Google Maps — Zwei-Klick DSGVO
   ═══════════════════════════════════════════════════════ */
.map-consent {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 180, 216, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 210, 63, 0.15) 0%, transparent 50%),
    var(--paper-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-3);
}
.map-consent__body {
  background: white;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  max-width: 480px;
  box-shadow: var(--shadow-md);
}
.map-consent__body h3 { color: var(--brand-blue); margin: 0.5rem 0 0.75rem; font-size: var(--fs-lg); }
.map-consent__body p { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: 1rem; }
.map-consent__body .btn { margin: 0.25rem; }
.map-embed {
  width: 100%; height: 100%;
  border: none;
}
.map-loaded {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-loaded .map-embed { display: block; }
.map-revoke {
  position: absolute;
  top: 12px; right: 12px;
  padding: 0.5rem 0.85rem;
  background: white;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  border-radius: var(--r-full);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  z-index: 2;
}
.map-revoke:hover, .map-revoke:focus-visible {
  background: var(--brand-blue);
  color: white;
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   Mobile-Text-Umbrüche + Accessibility
   ═══════════════════════════════════════════════════════ */

/* Skip-Link zum Content — nur bei Fokus sichtbar */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  padding: 0.75rem 1.25rem;
  background: var(--brand-blue);
  color: white;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 300;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--brand-yellow);
  outline-offset: -3px;
}

/* Sichtbarer Fokus-Ring für alle interaktiven Elemente */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Chatbot-FAB + Nav-Burger stärker fokussierbar */
.chatbot-fab:focus-visible, .nav__burger:focus-visible {
  outline-offset: 4px;
}

/* Silbentrennung + Umbruch-Vermeidung bei Fließtext auf Mobile */
p, .page-hero__lead, .hero__lead, .memoriam__text p,
.gen-card__body p, .cat-card__desc, .tl-phase p,
.contact-card p, .fact-list li {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
/* Große Überschriften nur bei sehr schmalem Viewport hyphen'en */
@media (max-width: 400px) {
  h1, h2 { hyphens: auto; -webkit-hyphens: auto; }
}
/* Adresse + Öffnungszeiten immer als Einheit */
.hero__meta strong, .footer p, .contact-card p {
  word-break: normal;
  overflow-wrap: normal;
}
/* Böhmerwaldstraße im Fließtext soll bei Bedarf getrennt werden */
:root { hyphenate-limit-chars: 8 3 3; }

/* ═══════════════════════════════════════════════════════
   Burger-Menü v2 — visuell aufgewertet
   ═══════════════════════════════════════════════════════ */
.menu-overlay {
  background: linear-gradient(135deg, #0D2B45 0%, #0F3A5D 60%, #0D2B45 100%);
}
/* ponytail: menu-brand-pulse entfernt — rechteckiges Logo braucht keinen Kreis-Puls */
@media (prefers-reduced-motion: reduce) {
  .menu-overlay__brand img { animation: none; }
}

/* Menü-Links mit unterlegter Farb-Marker-Linie */
.menu-link { position: relative; }
.menu-link::before {
  content: "";
  position: absolute;
  left: -1rem; top: 50%;
  width: 4px; height: 60%;
  background: var(--brand-yellow);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  border-radius: 4px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.menu-link:hover::before, .menu-link:focus-visible::before {
  transform: translateY(-50%) scaleY(1);
}
.menu-link[data-cat="turquoise"]::before { background: var(--brand-turquoise); }
.menu-link[data-cat="green"]::before     { background: var(--brand-green); }
.menu-link[data-cat="orange"]::before    { background: var(--brand-orange); }
.menu-link[data-cat="purple"]::before    { background: var(--brand-purple); }
.menu-link[data-cat="yellow"]::before    { background: var(--brand-yellow); }

/* Underline-Bar unter aktivem Link */
.menu-link[aria-current="page"] {
  color: var(--brand-yellow);
}
.menu-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 40%; height: 3px;
  background: var(--brand-yellow);
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════
   Hero-3D-Canvas — deckt Hero-Sektion, transparent
   ═══════════════════════════════════════════════════════ */
.hero__3d {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   Loading-Sequence — Marken-Farbexplosion (~900ms)
   ═══════════════════════════════════════════════════════ */
html.is-loading, html.is-loading body { overflow: hidden; }
#stumpf-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center,
    #ffffff 0%, #f7fbfe 40%, #eef4fa 100%);
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.stumpf-loader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.stumpf-loader__inner {
  position: relative;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.stumpf-loader__icon {
  width: 96px; height: 96px;
  animation: loader-icon-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(13,43,69,0.25));
}
.stumpf-loader__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: loader-ring-explode 0.9s var(--ease-out) both;
}
.stumpf-loader__ring--1 { border-top-color: var(--brand-turquoise); border-right-color: var(--brand-green); }
.stumpf-loader__ring--2 { border-bottom-color: var(--brand-yellow); border-left-color: var(--brand-orange); animation-delay: 0.1s; }
.stumpf-loader__ring--3 { border-top-color: var(--brand-purple); animation-delay: 0.2s; }
@keyframes loader-icon-pop {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes loader-ring-explode {
  0%   { transform: scale(0.4) rotate(0deg); opacity: 0; }
  40%  { transform: scale(1) rotate(180deg); opacity: 1; }
  100% { transform: scale(1.6) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stumpf-loader__icon, .stumpf-loader__ring { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   Custom Cursor — Ring folgt smooth, Dot exakt
   ═══════════════════════════════════════════════════════ */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none; }
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor select { cursor: none !important; }
#stumpf-cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
}
.stumpf-cursor__ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.2s var(--ease);
}
.stumpf-cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
}
#stumpf-cursor.is-hovering .stumpf-cursor__ring {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.12);
  border-color: var(--brand-yellow);
}
/* Touch-Geräte: kein Custom-Cursor */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  #stumpf-cursor { display: none; }
  html.has-custom-cursor, html.has-custom-cursor * { cursor: auto; }
}

/* Sektions-Padding kompakter — kein Whitespace-Loch mehr */
.section { padding: var(--sp-6) 0 !important; }
@media (min-width: 900px) { .section { padding: var(--sp-8) 0 !important; } }

/* ═══════════════════════════════════════════════════════
   Screen-Reader-Only
   ═══════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
