/* =============================================================
   XXL Spiele Mieten — Design-System CSS
   Paper/Clay-System · WCAG AA · lokal, kein CDN
   ============================================================= */

/* --- @font-face lokale woff2 (Fallback bleibt, falls Dateien fehlen) --- */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --paper:    #f7f4ee;
  --paper-2:  #efe9df;
  --card:     #fffefb;
  --ink:      #201c16;
  --ink-2:    #4f4840;
  /* --ink-3 abgedunkelt auf >= 4.5:1 gegen --paper (#f7f4ee):
     #6f665b hat APCA ~4.3:1, #5c544a >= 4.6:1 → verwende #5c544a */
  --ink-3:    #5c544a;
  --line:     #e2dacd;
  --line-2:   #ece5d8;
  --clay:     #b5512f;
  --clay-deep:#8f3f24;
  --forest:   #2f5141;
  --gold:     #c98a2b;
  --wa:       #1fae54;
  --r:        10px;
  --r-lg:     22px;
  /* System-Fallback-Stack (Geist/Newsreader greifen wenn woff2 vorhanden) */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Akzent-Varianten (Admin-wählbar) */
[data-accent="forest"] { --clay: #2f5141; --clay-deep: #234436; }
[data-accent="gold"]   { --clay: #b07d1e; --clay-deep: #8c6113; }
[data-accent="ink"]    { --clay: #201c16; --clay-deep: #000; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  /* Feine Papier-Korn-Textur (inline-SVG, kein externes Bild) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.035'/></svg>");
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* Alle Inputs >= 16px (kein iOS-Zoom) */
input, select, textarea {
  font-size: 16px;
}

/* :focus-visible global — kein outline bei Maus-Klick */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Layout --- */
.wrap        { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px;  margin: 0 auto; padding: 0 28px; }
@media (max-width: 680px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* --- Typography Helpers --- */
.display  { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; }
.eyebrow  { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.lede     { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); line-height: 1.5; }
.serif    { font-family: var(--serif); }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 85%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo     { height: 48px; width: auto; display: block; }
.brand-fallback {
  display: none;
  align-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.foot .brand-fallback { color: #fff; }
.foot-logo { height: 56px; filter: brightness(0) invert(1); }

/* Monogramm-Box (Fallback ohne Logo-Bild) */
.brand .mk {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}
.brand b     { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: -1px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
  transition: color .15s;
  /* Touch-Target: mindestens 44px Klickfläche */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--clay); }
.nav-links a[aria-current="page"] { color: var(--clay); font-weight: 600; }

/* Nav-Dropdown „Anlässe" (Desktop: Hover + Tastatur-Fokus + Touch-Toggle) */
.nav-item.has-sub { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-subtoggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink-2);
}
.nav-subtoggle:hover { color: var(--clay); }
.nav-subtoggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px; }
.nav-caret { transition: transform .18s ease; }
.nav-item.has-sub:hover .nav-caret,
.nav-item.has-sub:focus-within .nav-caret,
.nav-item.has-sub.sub-open .nav-caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: 0;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 190px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 12px 30px rgba(32,28,22,0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub,
.nav-item.has-sub.sub-open .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a { min-height: 40px; padding: 8px 12px; border-radius: var(--r); font-size: 14.5px; color: var(--ink-2); }
.nav-sub a:hover { background: var(--paper-2); color: var(--clay); }
@media (prefers-reduced-motion: reduce) { .nav-sub, .nav-caret { transition: none; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.nav-cta:hover { background: var(--clay); }

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

/* Hamburger-Button (nur unter 860px) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}
.nav-burger:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    padding: 12px 28px 18px;
    gap: 2px;
    z-index: 49;
    box-shadow: 0 8px 24px rgba(32,28,22,0.10);
  }
  .nav-links.open a {
    min-height: 44px;
    font-size: 15.5px;
  }
  /* Anlässe-Dropdown im Burger: eingerückte, immer sichtbare Inline-Liste */
  .nav-links.open .nav-item.has-sub { display: flex; flex-direction: column; align-items: stretch; }
  .nav-links.open .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; min-width: 0;
    padding: 0 0 0 14px; margin-left: 2px;
    border-left: 2px solid var(--line);
  }
  .nav-links.open .nav-subtoggle { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; } /* "Anfragen" am Handy raus -> überlappte den Markennamen; Anfrage gibt's in der Float-Bar */
  .nav { position: sticky; } /* ensures dropdown is relative to nav */
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .14s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-clay  { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); }
.btn-ink   { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-out   { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-out:hover { border-color: var(--ink); }
/* btn-wa: #0f7a38 auf #fff = 4.57:1 (WCAG AA) — #1fae54 war 2.90:1 */
.btn-wa    { background: #0f7a38; color: #fff; }
.btn-wa:hover { filter: brightness(.9); }

/* Arrow Link */
.alink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clay);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
}
.alink svg { transition: transform .2s; }
.alink:hover svg { transform: translateX(3px); }

/* --- Hero --- */
.hero { position: relative; padding: 30px 0 0; }
.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16/10.5;
}
.hero-frame video,
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.20) 0%, rgba(20,16,12,0.48) 45%, rgba(20,16,12,0.92) 100%);
}
.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(96px, 16vh, 184px) clamp(28px, 5vw, 64px) clamp(40px, 6vh, 64px);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 2px 10px rgba(0,0,0,0.85), 0 8px 40px rgba(0,0,0,0.7);
  background: linear-gradient(180deg, transparent 0%, rgba(15,11,8,0.45) 45%, rgba(15,11,8,0.82) 100%);
}
.hero-copy .eyebrow { color: #f2c9a3; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: clamp(16px, 2.2vh, 24px) 0 0;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: #f3d4b4; }
.hero-sub {
  margin-top: clamp(18px, 2.6vh, 26px);
  font-size: clamp(16px, 1.7vw, 20px);
  color: rgba(255,255,255,0.86);
  max-width: 46ch;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 14px; margin-top: clamp(26px, 3.6vh, 38px); flex-wrap: wrap; }
/* Platzhalter wenn kein Bild/Video (SVG-Pattern) */
.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 11px, #e8e1d4 11px, #e8e1d4 22px);
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: .04em;
}
@media (max-width: 680px) {
  /* Höherer Rahmen + kompaktere Headline, damit die ganze Überschrift („Handgemacht.") reinpasst
     und oben Luft bleibt (vorher wurde die erste Zeile abgeschnitten). */
  .hero-frame { aspect-ratio: 3/5.2; }
  .hero-copy  { padding: clamp(36px, 8vh, 64px) 22px 26px; }
  .hero h1 { font-size: clamp(28px, 7.4vw, 38px); line-height: 1.04; margin-top: 12px; }
  .hero-sub { margin-top: 14px; }
  .hero-cta { margin-top: 18px; }
}

/* --- Spiel-Teaser (digitaler Zwilling) --- */
.spiel-teaser { padding: clamp(36px, 6vw, 72px) 0; }
.spiel-teaser-card {
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.spiel-teaser-media { min-height: 240px; }
.spiel-teaser-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spiel-teaser-copy { padding: clamp(26px, 4vw, 48px); align-self: center; }
.spiel-teaser-copy h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em; line-height: 1.1; margin: 10px 0 0;
}
.spiel-teaser-copy p { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 48ch; }
.spiel-teaser-cta { margin-top: 22px; }
@media (max-width: 720px) {
  .spiel-teaser-card { grid-template-columns: 1fr; }
  .spiel-teaser-media { min-height: 0; aspect-ratio: 16/9; }
  .spiel-teaser-copy { padding: 22px 22px 26px; }
}

/* --- Trust Ribbon --- */
.ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: center;
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.ribbon .it {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
}
.ribbon .it svg  { color: var(--clay); flex-shrink: 0; }
/* Sterne im Ribbon: #825a0a auf --paper (#f7f4ee) = 5.60:1 (WCAG AA) */
.ribbon .star    { color: #825a0a; letter-spacing: 1px; }

/* --- Section Scaffolding --- */
section { padding: 92px 0; }
@media (max-width: 680px) { section { padding: 60px 0; } }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.sec-head h2 em  { font-style: italic; color: var(--clay); }
.sec-head p { margin-top: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Featured Games (editorial, alternating) --- */
.feat { display: flex; flex-direction: column; gap: 28px; }
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  /* Einheitliche Mindesthöhe → alle drei Top-3-Karten gleich hoch.
     Wert deckt die höchste Karte (Heißer Draht: Versionen + Zitat) ab; kürzere Karten
     zentrieren ihren Text vertikal, das Bild füllt die volle Höhe (object-fit:cover). */
  min-height: clamp(460px, 36vw, 520px);
  align-items: stretch;
}
.feat-row:nth-child(even) .feat-media { order: 2; }
.feat-media {
  position: relative;
  /* Höhe folgt der Row (nicht festes 4/3) → Medium füllt die ganze Kartenhöhe */
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  background: var(--paper-2);
  overflow: hidden;
}
.feat-media > video,
.feat-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Platzhalter-Muster wenn kein Medienbild */
.feat-media .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 11px, #e8e1d4 11px, #e8e1d4 22px);
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .04em;
}
.feat-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.feat-body .num  { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--clay); }
.feat-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 8px 0 0;
}
.feat-body p       { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.feat-body .feat-versions { margin-top: 4px; font-size: 13px; color: var(--ink-3); font-style: italic; }
.feat-body .karten-zitat { margin-top: 14px; }
.feat-body .karten-zitat p { font-size: 14px; line-height: 1.45; }
.feat-meta         { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.feat-meta span    { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.feat-body .cta    { margin-top: 26px; }
/* Doppelbild fuer Heisser Draht (beide Versionen) */
.feat-dual {
  position: absolute;
  inset: 0;
  display: grid;
  /* gestapelt (uebereinander) -> jedes Bild volle Breite, halbe Hoehe = Querformat-Ausschnitt */
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.feat-dual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0; /* Fix: verhindert dass grid-item intrinsische Mindesthoehe expandiert */
}
@media (max-width: 760px) {
  .feat-row { grid-template-columns: 1fr; min-height: 0; }
  .feat-row:nth-child(even) .feat-media { order: 0; }
  /* zurück zum festen Querformat, da gestapelt (kein Body-Nachbar zum Strecken) */
  .feat-media { aspect-ratio: 4 / 3; height: auto; }
  .feat-body  { padding: 32px 26px; }
}

/* --- Anlass-Cards (Scribble-spezifisch) --- */
.anlass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.acard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  padding-top: 42px; /* Platz für absolut positioniertes star-biz Badge */
  display: flex;
  flex-direction: column;
  position: relative;
}
.acard .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--clay);
  flex-shrink: 0;
}
/* Alle drei Anlass-Icons gleich gross — Herz, Aktentasche, Stern */
.acard .ic svg {
  width: 18px;
  height: 18px;
}
.acard h3,
.acard h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  margin: 14px 0 0;
}
.acard .star-biz {
  position: absolute;
  top: 14px;
  left: 22px;
  display: inline-block;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--clay);
  border-radius: 100px;
  padding: 2px 9px;
}
.acard p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 8px 0 0;
}
.acard .bundle {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.acard .go {
  margin-top: auto;
  padding-top: 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.acard .go svg { transition: transform .2s; }
.acard .go:hover svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .anlass-grid { grid-template-columns: 1fr; }
}

/* --- Teaser Grid (4er-Raster) --- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .teaser-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

.tcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, box-shadow .22s;
  display: block;
}
.tcard:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(40,28,16,0.10); }
.tcard .ph {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, #e8e1d4 10px, #e8e1d4 20px);
}
.tcard .ph img,
.tcard .ph video   { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tcard:hover .ph img { transform: scale(1.05); }
.tcard .cap        { padding: 14px 16px 18px; }
.tcard .cap .k     { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tcard .cap .t     { font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em; margin-top: 3px; }

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* Polaroid-Layout: zwei Karten nebeneinander */
.about-portrait {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  background: none;
  border-radius: 0;
  overflow: visible;
}

/* Einzelne Polaroid-Karte */
.about-polaroid {
  flex: 1;
  background: #fff;
  padding: 10px 10px 32px;
  box-shadow: 0 4px 18px rgba(32,24,12,0.14), 0 1px 4px rgba(32,24,12,0.08);
  border-radius: 2px;
}
/* Leichte statische Rotation + Hover-Effekt */
.about-polaroid { transition: transform .2s; }
.about-polaroid:first-child  { transform: rotate(-2deg); }
.about-polaroid:last-child   { transform: rotate(1.5deg); }
.about-polaroid:first-child:hover { transform: rotate(-1deg) translateY(-4px); }
.about-polaroid:last-child:hover  { transform: rotate(0.5deg) translateY(-4px); }

/* Bild-Bereich: Portrait 4:5, Werkstatt 4:3 */
.about-polaroid-img {
  overflow: hidden;
  border-radius: 1px;
}
.about-polaroid:first-child  .about-polaroid-img { aspect-ratio: 4 / 5; }
.about-polaroid:last-child   .about-polaroid-img { aspect-ratio: 4 / 3; }
.about-polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Polaroid-Bildunterschrift */
.about-polaroid-caption {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.35;
}

/* reduced-motion: Rotation + Hover-Transition deaktivieren */
@media (prefers-reduced-motion: reduce) {
  .about-polaroid { transition: none; }
  .about-polaroid:first-child,
  .about-polaroid:last-child { transform: none; }
  .about-polaroid:first-child:hover,
  .about-polaroid:last-child:hover  { transform: none; }
}

@media (max-width: 820px) {
  .about-portrait {
    flex-direction: row;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .about-portrait {
    flex-direction: column;
    align-items: center;
  }
  .about-polaroid { max-width: 260px; }
}

/* Compat: .about-werkstatt-img wird nicht mehr benötigt */
.about-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 12px 0 0;
}
.about-body h2 em { font-style: italic; color: var(--clay); }
.about-body p     { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; }
.about-sign       { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: 23px; }
.about-sign small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* --- Mid-CTA (Scribble-spezifisch) --- */
.midcta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px) clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.midcta > div:first-child { flex: 1 1 30ch; }
.midcta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  margin: 0;
  max-width: 28ch;
  line-height: 1.15;
}
.midcta .eyebrow { color: #e6a86f; }
.midcta .cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 0 0 auto; }
.midcta .cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.midcta .cta-group .wa-dsgvo-hint { margin: 0; font-size: 12px; color: rgba(247,244,238,0.66); max-width: 38ch; }
.midcta .cta-group .wa-dsgvo-hint a { color: #e6a86f; text-decoration: underline; }
@media (max-width: 700px) {
  .midcta .cta-group, .midcta .cta-buttons { width: 100%; }
  .midcta .cta-buttons .btn { flex: 1 1 auto; justify-content: center; }
  .midcta .cta-group .wa-dsgvo-hint { max-width: none; }
}

/* --- Steps / Ablauf --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
}
.step .n  { font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--clay); line-height: 1; }
.step h3,
.step h4  { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -0.01em; margin: 16px 0 0; }
.step p   { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* --- Reviews (dunkler Hintergrund) --- */
.reviews { background: var(--ink); color: var(--paper); }
.reviews .eyebrow       { color: #e6a86f; }
.reviews .sec-head h2   { color: var(--paper); }

.rev-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.rev-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 12px 20px;
  border-radius: 100px;
}
.rev-badge .score  { font-family: var(--serif); font-size: 30px; line-height: 1; }
.rev-badge .star   { color: #f0b860; letter-spacing: 2px; font-size: 15px; }
.rev-badge .cnt    { font-size: 13px; color: rgba(255,255,255,0.65); }

.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .rev-grid { grid-template-columns: 1fr; } }
.rev {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rev .star       { color: #f0b860; letter-spacing: 1.5px; font-size: 13px; }
.rev blockquote  { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.rev .who        { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.rev .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.rev .nm     { font-size: 14px; font-weight: 600; }
.rev .mt     { font-size: 12px; color: rgba(255,255,255,0.55); }
.rev .gicon  { margin-left: auto; opacity: .6; font-size: 13px; font-weight: 700; font-family: var(--sans); color: rgba(255,255,255,0.65); }

/* --- FAQ --- */
.faq               { border-top: 1px solid var(--line); }
.faq .item         { border-bottom: 1px solid var(--line); }
.faq .q {
  /* Button-Reset: volle Zeile statt Standard-Button-Chrome */
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px 2px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  /* Touch Target */
  min-height: 44px;
}
.faq .q span:first-child { flex: 1; }
.faq .q .pl  { font-size: 24px; color: var(--clay); transition: transform .28s; line-height: 1; }
.faq .item.open .q .pl { transform: rotate(45deg); }
.faq .a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq .item.open .a { max-height: 480px; }
.faq .a-in {
  padding: 0 2px 26px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 70ch;
}

/* --- Contact --- */
.contact { background: var(--paper-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 12px 0 0;
}

.contact-ways { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

.way {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.way:hover { border-color: var(--ink); transform: translateY(-1px); }
.way .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--clay);
  flex-shrink: 0;
}
.way.wa .ic { background: color-mix(in oklab, var(--wa) 16%, white); color: var(--wa); }
.way .tt  { font-weight: 600; font-size: 15px; }
.way .dd  { font-size: 13px; color: var(--ink-3); margin-top: 1px; }

/* Kontaktformular */
.cform {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cform .full { grid-column: span 2; }

.cform label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.cform input,
.cform select,
.cform textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px; /* >= 16px: verhindert iOS-Zoom */
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  min-height: 44px; /* Touch-Target */
}
.cform input:focus-visible,
.cform select:focus-visible,
.cform textarea:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-color: var(--clay);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--clay) 25%, transparent);
}
.cform textarea { min-height: 100px; resize: vertical; }

/* Datums-Paar: Label-Höhen angleichen, damit beide Eingabefelder bündig stehen (Desktop 2-spaltig) */
@media (min-width: 601px) { .cform label.fld-date > span { min-height: 2.5em; } }

/* Kontaktweg-Gruppe (Pflicht: mind. einer) */
.cform fieldset.kontaktweg { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cform fieldset.kontaktweg legend { padding: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.cw-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.cform label.cw-opt {
  flex: 1 1 180px; flex-direction: row; align-items: center; gap: 11px;
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; min-height: 48px; cursor: pointer; background: var(--paper);
}
.cform label.cw-opt input[type="checkbox"] { min-height: 0; width: 21px; height: 21px; flex: 0 0 auto; accent-color: var(--clay); cursor: pointer; }
.cform label.cw-opt small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.cform label.cw-opt:focus-within { outline: 2px solid var(--clay); outline-offset: 2px; }
.cform label.cw-opt:has(input:checked) { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }

/* Erfolgs-/Fehlermeldung (ARIA-Live-Region) */
.form-status {
  grid-column: span 2;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 500;
}
.form-status.ok {
  background: color-mix(in oklab, var(--wa) 14%, white);
  border: 1px solid var(--wa);
  color: #137a3b;
}
.form-status.err {
  background: color-mix(in oklab, #d93025 14%, white);
  border: 1px solid #d93025;
  color: #8b1a13;
}
.form-status.loading {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-style: italic;
}

.cform .sub {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cform .sub .nt { font-size: 12px; color: var(--ink-3); }

/* --- Bild-Picker (nach Kategorie) — Scribble-spezifisch --- */
.gamepicks { grid-column: span 2; }
.gamepicks .gl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.gp-sec { margin-top: 0; }
.gp-sec ~ .gp-sec { margin-top: 16px; }
/* .gp-cat: Kategorie-Überschrift im Picker — exakt wie Scribble (war: .gt) */
.gp-sec .gp-cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.gp-sec .gp-cat { border-top: none; padding-top: 0; }
.gp-sec ~ .gp-sec .gp-cat { border-top: 1px dashed var(--line); padding-top: 12px; }

.gp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-width: 0;
}
@media (max-width: 560px) { .gp-grid { grid-template-columns: 1fr 1fr; } }

/* Picker-Kachel — Card/Tile-Layout (Scribble-kanonisch):
   Top-Bild (.img, aspect-ratio 4/3, volle Breite) + .nm darunter.
   Label enthält versteckte Checkbox für Formulardaten. */
.cform label.gp {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-width: 0;
  min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  overflow: hidden;
  transition: border-color .16s, background .16s, transform .15s;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink);
  position: relative;
}
.cform label.gp:hover { border-color: var(--clay); transform: translateY(-2px); }
/* Versteckte native Checkbox (bleibt im DOM für Formulardaten) */
.gp input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  min-height: unset;
}
/* Bild-Bereich: volle Breite, aspect-ratio 4/3 — exakt wie Scribble .gp .img */
.gp .img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, #e8e1d4 10px, #e8e1d4 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 10px;
  flex-shrink: 0;
}
.gp .img img { width: 100%; height: 100%; object-fit: cover; }
.gp .nm {
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.cform label.gp.on {
  border-color: var(--clay);
}
.gp.on .img { box-shadow: inset 0 0 0 3px var(--clay); }
/* Check-Badge (oben rechts über dem Bild) */
.gp .chk {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .16s;
}
.gp.on .chk { opacity: 1; }
.gp .chk svg { color: #fff; }

/* Consent-Zeile */
.cform label.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.45;
  grid-column: span 2;
  min-height: unset;
}
.cform label.consent input[type="checkbox"] {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 24px;
  height: 24px;
  min-height: 24px;
  accent-color: var(--clay);
  flex-shrink: 0;
  margin-top: 1px;
}
.cform label.consent a { color: var(--clay); }

/* Honeypot-Feld: visuell und per Maus ausgeblendet.
   PFLICHT im HTML (kontakt.php / T7): aria-hidden="true" UND tabindex="-1"
   am Input-Element setzen, damit Screenreader und Tastatur-Navigation das
   Feld komplett ignorieren. Ohne beides ist das Honeypot WCAG-non-konform. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
}

/* --- Footer --- */
.foot { background: var(--ink); color: var(--paper); padding: 64px 0 96px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot .tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.3;
  max-width: 26ch;
  margin-top: 14px;
  color: rgba(255,255,255,0.82);
}
.foot .foot-col-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.foot a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot a:hover { color: #fff; }
.foot .bot {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.13);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

/* --- Float Bar --- */
.fbar {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(32,28,22,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px;
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(20,14,8,0.3);
  z-index: 60;
  transition: opacity .3s, transform .3s;
}
.fbar.hide {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}
.fbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .2s;
}
.fbar .p { background: var(--clay); color: #fff; }
/* fbar WhatsApp: #0f7a38 für WCAG-AA-Kontrast (4.57:1 mit #fff) */
.fbar .w { background: #0f7a38; color: #fff; }
.fbar a:hover { filter: brightness(1.08); }

/* --- Merkliste-Badge in der Float-Bar --- */
/* Standardmäßig versteckt; JS fügt .merkliste-badge-visible hinzu wenn count > 0 */
.merkliste-badge {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 10px 16px 10px 14px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
}
.merkliste-badge:hover { background: rgba(255,255,255,0.20); }
.merkliste-badge-visible { display: inline-flex; }
.merkliste-badge-icon { display: flex; align-items: center; opacity: .85; }
.merkliste-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--clay);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 4px;
  line-height: 1;
}
.merkliste-badge-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  .fbar {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: none;
    justify-content: center;
  }
  .fbar.hide { transform: translateY(20px); }
  .fbar { gap: 7px; }
  .fbar a {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 12px 10px;
    font-size: 14px;
    white-space: nowrap;
  }
  /* Badge kompakter auf Mobile; dekoratives „anfragen"-Label ausblenden (spart Platz für 3 Pills) */
  .merkliste-badge { flex: 0 0 auto; padding: 10px 11px; font-size: 12px; }
  .merkliste-badge-label { display: none; }
}

/* --- Scroll-Reveal --- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2,.6,.3,1), transform .8s cubic-bezier(.2,.6,.3,1);
}
.rv.in { opacity: 1; transform: none; }

/* prefers-reduced-motion: Reveal deaktivieren, kein Layout-Shift */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .faq .q .pl { transition: none; }
  .burger-bar { transition: none; }
  .faq .a     { transition: none; }
  .btn, .alink svg, .tcard, .way, .fbar, .nav-cta, .cform label.gp, .merkliste-badge, .acard .go svg { transition: none; }
  .acard .go:hover svg { transform: none; }
  .cform label.gp:hover { transform: none; }
  .tcard:hover { transform: none; }
  .tcard:hover .ph img { transform: none; }
  .way:hover { transform: none; }
  .alink:hover svg { transform: none; }
  .btn:active { transform: none; }
  .faq .item.open .q .pl { transform: none; }
  .fbar.hide { transform: none; }
}

/* --- Platzhalter-Bilder (SVG-Pattern, kein externes Bild) --- */
.img-ph {
  background: repeating-linear-gradient(
    45deg,
    var(--paper-2),
    var(--paper-2) 10px,
    #e8e1d4 10px,
    #e8e1d4 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .04em;
}

/* --- Hilfreich-Klassen --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Statische Inhaltsseiten (Datenschutz, Impressum, AGB) --- */
.prose-page {
  padding-top: 80px;
  padding-bottom: 80px;
}
.prose-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.prose-page h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.015em;
  margin: 32px 0 8px;
}
.prose-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 6px;
}
.prose-page p { color: var(--ink-2); line-height: 1.65; }
.prose-page a { color: var(--clay); }
.prose-footnote { margin-top: 40px; font-size: 13px; color: var(--ink-3); }

/* Skiplink — bei Fokus sichtbar (WCAG 2.4.1) */
.skip-link {
  position: fixed;
  top: 4px;
  left: 4px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:not(:focus-visible) { clip: rect(0,0,0,0); position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* --- Klassen für ehemals-inline Styles (CSP unsafe-inline-Abbau) --- */

/* hero.php: <section class="hero rv"> hatte style="border-bottom:0" */
.hero { border-bottom: 0; }

/* hero.php: btn-out im Hero (weißer Text auf dunklem Hintergrund) */
.btn-out-hero { color: #fff; border-color: rgba(255,255,255,.5); }

/* hero.php: dezenter Scroll-Link unter den beiden gleichwertigen CTAs */
.hero-scrolllink {
  display: inline-block;
  margin-top: clamp(16px, 2.4vh, 22px);
  color: rgba(255,255,255,.82);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-scrolllink:hover,
.hero-scrolllink:focus-visible { color: #fff; border-color: #fff; }

/* hero.php: WhatsApp-DSGVO-Hinweis steht im Hero auf dunklem Grund → heller Override (Lesbarkeit/Pflichthinweis) */
.hero-copy .wa-dsgvo-hint { color: rgba(255,255,255,.82); margin-top: clamp(10px, 1.4vh, 16px); max-width: 42ch; }
.hero-copy .wa-dsgvo-hint a { color: #f3d4b4; text-decoration: underline; }

/* faq.php: eyebrow + h2 textausrichtung */
.faq .sec-head .eyebrow { text-align: center; }
.faq .sec-head h2       { text-align: center; }

/* midcta.php: section padding-Überschreibung */
.midcta-section { padding-top: 0; border-bottom: 0; }

/* about.php: Werkstatt-Zeile mit Signature-Motiv */
.about-werkstatt {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--ink-3);
  font-size: 13px;
}
.about-werkstatt .sig-wrap small {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  font-style: normal;
  font-family: var(--sans);
}

/* about.php: Bulletliste */
.about-list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.about-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--clay);
}

/* steps.php: Layout-Hilfsklassen */
.steps-wrap   { text-align: center; }
.steps-grid   { text-align: left; }
.steps-hinweis {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.steps-hinweis svg {
  display: inline;
  vertical-align: middle;
  color: var(--clay);
  margin-right: 5px;
}

/* featured.php: Abstand unter der Feat-Liste */
.feat-more { margin-top: 28px; }

/* footer.php: Signature-SVG in Tagline */
.foot .tag .sig {
  margin-top: 10px;
  display: block;
  opacity: 0.7;
}

/* footer.php: Brand-Link im Footer */
.foot .brand { text-decoration: none; color: #fff; }
.foot .brand .mk { background: rgba(255,255,255,.12); }
.foot .brand b   { color: #fff; font-size: 15px; }
.foot .brand small { color: rgba(255,255,255,.5); }

/* kontakt.php: Spieleauswahl-Label-Hinweis */
.gl-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* --- Merkliste: "Merkliste leeren"-Button im Picker-Header --- */
.merkliste-leeren {
  display: none; /* JS setzt .merkliste-leeren-visible */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 8px 10px;
  min-height: 44px; /* WCAG 2.5.5 AA */
  margin-left: 10px;
  /* Touch-Slop: zusätzliche vergrößerte Klickfläche */
  position: relative;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}
.merkliste-leeren::before {
  content: '';
  position: absolute;
  inset: -16px -10px; /* Klickflaeche >= 44px (WCAG 2.5.5) */
}
.merkliste-leeren:hover { color: var(--clay-deep); }
.merkliste-leeren-visible { display: inline-flex; }

/* kontakt.php: way-SVG Arrow (WA-Katalog) */
.way-arrow {
  margin-left: auto;
  color: var(--wa);
}

/* kontakt.php: DSGVO-Hinweis unter WhatsApp-Button */
.wa-dsgvo-hint {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: -2px 0 4px;
  line-height: 1.4;
}
.wa-dsgvo-hint a { color: var(--clay); }

/* kontakt.php: form-status initial versteckt (JS setzt display) */
.form-status-hidden { display: none; }

/* teaser-grid.php: Placeholder-Text */
.tcard-ph-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* --- Weitere Spiele (featured.php unter Top3) --- */
.weitere-spiele {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
}
.weitere-spiele-head {
  margin-bottom: 16px;
}
.weitere-spiele-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ws-kachel {
  min-width: 0;
}
.ws-kachel-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px;
  width: 100%;
  height: 100%;
  min-height: 44px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ws-kachel-link:hover {
  border-color: var(--clay);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(40,28,16,0.08);
}
.ws-kachel-img {
  width: 100%;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 8px, #e8e1d4 8px, #e8e1d4 16px);
  flex-shrink: 0;
}
.ws-kachel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ws-kachel-ph {
  width: 100%;
  height: 100%;
}
.ws-kachel-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.25em;
}
.weitere-spiele-cta {
  margin-top: 22px;
}
@media (max-width: 560px) {
  .weitere-spiele-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .ws-kachel-img  { height: 52px; }
}

/* --- Portfolio-Seite --- */
.portfolio-hero {
  padding-top: 72px;
  padding-bottom: 0;
}
.portfolio-hero .sec-head {
  margin-bottom: 0;
}
.portfolio-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
}
.portfolio-hero h1 em { font-style: italic; color: var(--clay); }

.portfolio-section {
  padding-top: 64px;
  padding-bottom: 0;
}
.portfolio-section .sec-head {
  margin-bottom: 28px;
}
.portfolio-section .sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 8px 0 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.port-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.port-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 11px, #e8e1d4 11px, #e8e1d4 22px);
  flex-shrink: 0;
}
.port-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.port-card-ph {
  width: 100%;
  height: 100%;
}
.port-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.port-card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.015em;
  margin: 0;
}
.port-card-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 6px 0 0;
}
.port-card-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 10px 0 0;
}
.port-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.port-card-meta span {
  font-size: 12px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.port-card-cta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
}
.port-card-cta-wip {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  display: block;
}

.portfolio-cta-section {
  padding: 64px 0 80px;
}
.portfolio-cta-section .midcta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  margin: 8px 0 0;
  color: var(--paper);
}
.portfolio-cta-section .midcta h2 em {
  font-style: italic;
  color: #f3d4b4;
}

/* reduced-motion: neutralise neue Hover-Transforms */
@media (prefers-reduced-motion: reduce) {
  .ws-kachel-link            { transition: none; }
  .ws-kachel-link:hover      { transform: none; box-shadow: none; }
}

/* --- Signature-Motiv: Schweisspistole --- */
.sig {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: var(--clay);
  /* Dezente Handschrift-Qualität: leichter Dreh */
  transform: rotate(-8deg);
}
/* Im Footer (dunkler Hintergrund) erbt .sig currentColor von rgba(255,255,255,0.5) */
.foot .sig { color: rgba(255,255,255,0.55); }

/* Signature-Inline-Wrapper (neben Text) */
.sig-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* --- Hero-Underline: animierter Pinselstrich unter titel_em --- */
.hero-em-wrap {
  position: relative;
  display: inline;
}
/* SVG-Underline: liegt hinter/unter dem em-Text */
.hero-em-underline {
  position: absolute;
  /* Leicht unter der Textbasis, kein Layout-Shift */
  bottom: -0.15em;
  left: -0.05em;
  width: calc(100% + 0.1em);
  height: 0.35em;
  pointer-events: none;
  overflow: visible;
}
/* Pinselstrich-Pfad — wird per CSS-Animation eingezeichnet */
.hero-em-underline path {
  stroke: var(--clay);
  stroke-width: 3.5;
  stroke-linecap: round;
  fill: none;
  /* stroke-dasharray/-offset werden inline im SVG gesetzt,
     Animation hier: */
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-underline 0.7s cubic-bezier(.4,0,.2,1) 1.1s forwards;
}

@keyframes draw-underline {
  to { stroke-dashoffset: 0; }
}

/* Hero-Entry-Reveal: gestaffelt (eyebrow -> h1 -> sub -> CTAs)
   h1 bleibt opacity:1 (kein LCP-Penalty) — nur translateY-Reveal.
   eyebrow/sub/cta fade+slide. */
.hero-copy .eyebrow,
.hero-copy .hero-sub,
.hero-copy .hero-cta {
  opacity: 0;
  transform: translateY(12px);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(.2,.6,.3,1);
  animation-duration: 0.60s;
  animation-name: hero-reveal;
}
/* h1: nur translateY (opacity bleibt 1 → kein LCP-Delay) */
.hero-copy h1 {
  transform: translateY(10px);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(.2,.6,.3,1);
  animation-duration: 0.55s;
  animation-delay: 0.18s;
  animation-name: hero-reveal-h1;
}

.hero-copy .eyebrow  { animation-delay: 0.04s; }
.hero-copy .hero-sub { animation-delay: 0.36s; }
.hero-copy .hero-cta { animation-delay: 0.52s; }

@keyframes hero-reveal {
  to { opacity: 1; transform: none; }
}
@keyframes hero-reveal-h1 {
  to { transform: none; }
}

/* WCAG 2.2.2: Hintergrundvideo bei reduced-motion ausblenden (Pause-Anforderung) */
@media (prefers-reduced-motion: reduce) {
  .hero-frame video { display: none; }
}

/* --- prefers-reduced-motion: Underline + Hero-Reveals sofort sichtbar --- */
@media (prefers-reduced-motion: reduce) {
  .hero-em-underline path {
    stroke-dashoffset: 0;
    animation: none;
  }
  /* eyebrow/sub/cta: sofort voll sichtbar */
  .hero-copy .eyebrow,
  .hero-copy .hero-sub,
  .hero-copy .hero-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }
  /* h1: transform sofort weg */
  .hero-copy h1 {
    transform: none;
    animation: none;
  }
  /* Signature-Rotation: statisch lassen, kein Transform wenn Nutzer es nicht will */
  .sig { transform: none; }
}

/* --- Datenschutz-Entwurfs-Hinweis --- */
.prose-draft-notice {
  background: var(--paper-2);
  border-left: 3px solid var(--clay);
  border-radius: var(--r);
  padding: 12px 16px;
  margin: 0 0 28px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.prose-draft-notice strong { color: var(--clay-deep); }

/* --- Cookie-Hinweis-Banner --- */
.cookie-banner {
  display: none; /* JS zeigt ihn nur wenn localStorage-Flag fehlt */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--ink, #1a1a1a);
  color: var(--paper, #faf9f7);
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 240px;
}
.cookie-banner-text a {
  color: var(--clay, #b07a56);
  text-underline-offset: 3px;
}
.cookie-banner-text a:hover {
  text-decoration: none;
}
.cookie-banner-btn {
  flex-shrink: 0;
  appearance: none;
  background: var(--clay, #b07a56);
  color: var(--paper, #faf9f7);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.18s;
}
.cookie-banner-btn:hover {
  background: var(--clay-dark, #8f6040);
}
.cookie-banner-btn:focus-visible {
  outline: 3px solid var(--clay, #b07a56);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-banner-btn {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner-btn { transition: none; }
}

/* --- Karten-Zitat (featured + anlass) --- */
.karten-zitat {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 2px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
}
.karten-zitat p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.karten-zitat cite {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* --- Sebastian-Box (Vertrauenselement vor Kontaktformular) --- */
.sebastian-box {
  max-width: 860px;
  margin: clamp(40px, 7vw, 68px) auto clamp(32px, 5vw, 48px);
  padding: 28px clamp(20px, 5vw, 32px);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.sb-portrait {
  flex-shrink: 0;
}
.sb-portrait img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  display: block;
}
.sb-body {
  flex: 1 1 0;
  min-width: 0;
}
.sb-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1;
}
.sb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.sb-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--clay);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
@media (max-width: 560px) {
  .sebastian-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 20px;
    gap: 16px;
  }
  .sb-item {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sebastian-box { transition: none; }
}

/* ===========================
   Anlass-Landingpages (hochzeit.php / firmenevent.php)
   =========================== */
.anlass-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 16vh, 200px) 0 clamp(36px, 6vw, 64px);
  border-bottom: 0;
  background: var(--ink);
  color: #fff;
}
.anlass-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
}
.anlass-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,16,12,0.30) 0%, rgba(20,16,12,0.58) 48%, rgba(15,11,8,0.88) 100%);
}
.anlass-hero .wrap { position: relative; z-index: 2; }
.anlass-hero .eyebrow { color: #f2c9a3; }
.anlass-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 70px);
  letter-spacing: -0.02em;
  margin: clamp(10px, 1.6vh, 16px) 0 16px;
  line-height: 1.04;
  max-width: 18ch;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 8px 40px rgba(0,0,0,0.55);
}
.anlass-hero h1 em { font-style: italic; color: #f3d4b4; }
.anlass-hero .lede {
  color: #fff;
  max-width: 52ch;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}
.anlass-hero .btn { margin-top: 22px; }

.bundle-info {
  padding: clamp(48px, 8vw, 96px) 0;
}
.bundle-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
  max-width: 760px;
}
.bundle-card .lede {
  margin-top: 0;
  margin-bottom: 20px;
}
.bundle-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bundle-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.bundle-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

/* ===========================
   Event-Galerie (Polaroid/Masonry-Look)
   =========================== */
.galerie {
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--paper);
}
.galerie-grid {
  column-count: 2;
  column-gap: 20px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .galerie-grid { column-count: 3; }
}
@media (min-width: 960px) {
  .galerie-grid { column-count: 4; }
}
.galerie-card {
  break-inside: avoid;
  margin: 0 0 20px;
  background: #fff;
  padding: 10px 10px 32px;
  box-shadow: 0 2px 8px rgba(40,28,16,0.12), 0 1px 2px rgba(40,28,16,0.08);
  border-radius: 2px;
  display: inline-block;
  width: 100%;
  transition: transform .22s, box-shadow .22s;
}
/* Leichte Rotation alternierend für Polaroid-Optik — kein Layout-Shift,
   da inline-block im Column-Flow; transform verschiebt nichts */
.galerie-card:nth-child(3n+1) { transform: rotate(-1.2deg); }
.galerie-card:nth-child(3n+2) { transform: rotate(0.8deg);  }
.galerie-card:nth-child(3n+3) { transform: rotate(-0.5deg); }
.galerie-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 8px 24px rgba(40,28,16,0.16);
}
.galerie-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1px;
}
.galerie-card figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
}
/* Reduced-motion: Rotation + hover-transform neutralisieren, kein Layout-Shift */
@media (prefers-reduced-motion: reduce) {
  .galerie-card,
  .galerie-card:nth-child(3n+1),
  .galerie-card:nth-child(3n+2),
  .galerie-card:nth-child(3n+3) {
    transform: none;
    transition: none;
  }
  .galerie-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(40,28,16,0.12), 0 1px 2px rgba(40,28,16,0.08);
  }
}

/* =============================================================
   Mobile-Fixes (Bundle T-X rollout)
   ============================================================= */

/* Kontaktformular: 1-Spalte auf schmalen Viewports */
@media (max-width: 600px) {
  .cform {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .cform .full,
  .cform .sub,
  .gamepicks,
  .cform label.consent,
  .form-status {
    grid-column: 1;
  }
}

/* Float-Bar: wenn Cookie-Banner sichtbar nach oben versetzt.
   Exakter Offset wird per JS (app.js Section 5) dynamisch via CSS-Variable gesetzt. */
.fbar.cookie-visible {
  bottom: calc(22px + env(safe-area-inset-bottom, 0px) + var(--cookie-h, 90px));
}
@media (max-width: 560px) {
  /* Mobil: Float-Bar und Cookie-Banner liegen beide unten + full-width.
     Statt fragilem Höhen-Offset (Banner wrappt auf 2-3 Zeilen) die Bar ausblenden,
     solange der Banner sichtbar ist. Nach „Verstanden" erscheint sie normal. */
  .fbar.cookie-visible { display: none; }
}

/* Feat-Dual: auf Mobile aspect-ratio der feat-media erhöhen damit
   jedes Teilbild genug Höhe bekommt (4/5 statt 4/3 = 2:1 statt 2.7:1 pro Bild) */
@media (max-width: 760px) {
  .feat-row:has(.feat-dual) .feat-media {
    aspect-ratio: 4 / 5;
  }
}

/* Mid-CTA: weniger Padding auf Mobile */
@media (max-width: 560px) {
  .midcta {
    padding: 28px 24px;
  }
}

/* Anlass-Hero: Top-Padding auf Mobile reduzieren */
@media (max-width: 560px) {
  .anlass-hero {
    padding-top: clamp(72px, 18vh, 130px);
    padding-bottom: 28px;
  }
}


/* ============================================================
   Preis-Anzeige „ab X €" auf Spielkarten (Feld preis_ab)
   Clay-Akzent, Geist-Bold, AA-Kontrast auf hellen Karten.
   ============================================================ */
.tcard-preis,
.ws-kachel-preis {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--clay-deep);
}
.feat-preis {
  display: inline-block;
  margin-right: 16px;
  vertical-align: middle;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--clay-deep);
}
.feat-body .cta .alink { vertical-align: middle; }
.port-card-preis {
  margin: 6px 0 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--clay-deep);
}

/* ============================================================
   Detail-Review 2026-06-21 Fixes
   ============================================================ */

/* Anker-Sprünge nicht unter die sticky Nav (72px) schieben */
html { scroll-padding-top: 84px; }

/* Picker-Karten: sichtbarer Tastatur-Fokus (WCAG 2.4.7) */
.cform label.gp:focus-within { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Fotobox-Partnerprodukte: Produktfotos (Freisteller/Hochformat) sauber auf weiß,
   vollständig sichtbar statt center-Crop, kein Karo-Platzhalter dahinter */
.tcard .ph.is-fb,
.ws-kachel-img.is-fb,
.port-card-img.is-fb,
.gp .img.is-fb {
  background: #fff;
  background-image: none;
}
.tcard .ph.is-fb img,
.ws-kachel-img.is-fb img,
.port-card-img.is-fb img,
.gp .img.is-fb img {
  object-fit: contain;
  padding: 10px;
}

/* Preis-Hinweis (PAngV: Endpreis §19 UStG + zzgl. Anfahrt; Conversion-Kontext) */
.preis-hinweis {
  max-width: 680px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.preis-hinweis-fn { color: var(--ink-3); opacity: .85; }

/* ============================================================
   Bundle-Abfrage-Dialog (Merkliste ersetzen / ergänzen)
   ============================================================ */
.bundle-dialog {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  max-width: 440px;
  width: calc(100% - 40px);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(32,28,22,0.28);
}
.bundle-dialog::backdrop { background: rgba(20,16,12,0.55); }
.bundle-dialog-in { padding: clamp(22px, 4vw, 30px); }
.bundle-dialog-h { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.bundle-dialog-p { font-family: var(--sans); font-size: 15px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.5; }
.bundle-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bundle-dialog-cancel {
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--ink-3);
  text-decoration: underline; padding: 10px 8px; min-height: 44px;
  margin-left: auto; /* „Abbrechen" von den Aktions-Buttons abgesetzt */
}
.bundle-dialog-cancel:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .bundle-dialog[open] { animation: bundleDlgIn .18s ease; }
  @keyframes bundleDlgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   Eventmodule-Themenseite (eventmodule.php)
   ============================================================ */
.modul-usp .sec-head { margin-bottom: 28px; }
.modul-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.modul-feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px);
}
.mf-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper-2); color: var(--clay);
  display: grid; place-items: center; margin-bottom: 16px;
}
.modul-feature h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 8px; }
.modul-feature p  { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.modul-vision-card {
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); max-width: 820px; margin: 0 auto; text-align: center;
}
.modul-vision-tag {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #e6a86f;
  border: 1px solid rgba(230,168,111,.5); border-radius: 100px; padding: 5px 12px; margin-bottom: 14px;
}
.modul-vision-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; }
.modul-vision-card p  { margin: 0 auto; max-width: 56ch; color: rgba(247,244,238,.8); font-size: 16px; line-height: 1.6; }

.modul-usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.modul-usecase {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 30px);
}
.modul-usecase h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 8px; color: var(--clay-deep); }
.modul-usecase p  { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

@media (max-width: 760px) {
  .modul-features, .modul-usecase-grid { grid-template-columns: 1fr; }
}

/* teaser-grid: nicht-buchbare Karte (z. B. Modul „in Arbeit") — kein Link */
.tcard-wip { cursor: default; }
.tcard-wip:hover { transform: none; box-shadow: none; }
.tcard-wip .ph { opacity: .85; }
.tcard-wip-badge {
  display: inline-block; margin-top: 5px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--ink-3); background: var(--paper-2);
  border-radius: 100px; padding: 3px 10px;
}

/* ============================================================
   Mini-Spiel „Heißer Draht" (/spielen.php) — Prototyp
   ============================================================ */
.hd-section { padding: clamp(48px, 7vw, 90px) 0; }
.hd-game { max-width: 920px; margin: 28px auto 0; }
.hd-stage {
  position: relative;
  aspect-ratio: 16 / 10;            /* reservierte Höhe -> kein CLS */
  border-radius: var(--r-lg);
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #2a241d 0%, var(--ink) 72%);
  border: 1px solid var(--line);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hd-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hd-hint {
  position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center;
  font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,.82);
  pointer-events: none; transition: opacity .3s;
}
.hd-hint.hd-hide { opacity: 0; display: block !important; }
.hd-hud {
  position: absolute; top: 12px; left: 0; right: 0;
  display: flex; gap: 18px; justify-content: center;
  font-family: var(--sans); font-size: 14px; color: #fff; pointer-events: none;
}
.hd-hud strong { color: #f3d4b4; }
.hd-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px;
  text-align: center; padding: 24px;
  background: rgba(20,16,12,.64); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  color: #fff;
}
.hd-overlay h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 4vw, 34px); margin: 0; }
.hd-overlay p { margin: 0; max-width: 46ch; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.5; }
.hd-overlay .hd-best-line { font-size: 13px; color: rgba(255,255,255,.7); }
.hd-result strong { color: #f3d4b4; }
.hd-overlay .btn-out { color: #fff; border-color: rgba(255,255,255,.5); }
.hd-overlay .btn-out:hover { border-color: #fff; }
.hd-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hd-hide { display: none !important; }
.hd-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }
.hd-sound { background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px; min-height: 44px; font-family: var(--sans); font-size: 13px; cursor: pointer; color: var(--ink-2); }
.hd-sound:hover { color: var(--clay); }
.hd-note { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }
.hd-disclaimer { margin: 18px auto 0; max-width: 640px; text-align: center; font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }
.hd-easy { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32); color: #fff; border-radius: 100px; padding: 10px 18px; min-height: 44px; font-family: var(--sans); font-size: 13px; cursor: pointer; }
.hd-easy[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); }

/* ---- Bestenliste (Endbildschirm + Seite) ---- */
.hd-overlay-end { overflow-y: auto; }
.hd-board-box { width: 100%; max-width: 440px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.hd-entry { display: flex; flex-direction: column; gap: 6px; }
.hd-entry-lbl { font-family: var(--sans); font-size: 12.5px; color: rgba(255,255,255,.82); }
.hd-entry-row { display: flex; gap: 8px; justify-content: center; }
.hd-entry input { font-family: var(--sans); font-size: 15px; padding: 10px 12px; min-height: 44px; width: 9rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.hd-entry input::placeholder { color: rgba(255,255,255,.45); letter-spacing: normal; text-transform: none; }
.hd-entry input:focus-visible { outline: 2px solid #f3d4b4; outline-offset: 2px; }
.hd-entry-hint { font-family: var(--sans); font-size: 11.5px; color: rgba(255,255,255,.62); max-width: 42ch; margin: 0 auto; }
.hd-entry-msg { font-family: var(--sans); font-size: 14px; color: #f3d4b4; font-weight: 600; }
.hd-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; width: 100%; max-width: 440px; max-height: 210px; overflow-y: auto; text-align: left; }
.hd-board li { display: grid; grid-template-columns: 2rem 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.06); }
.hd-b-rank { font-family: var(--sans); font-weight: 700; font-size: 14px; color: #f3d4b4; grid-row: 1 / span 2; align-self: center; }
.hd-b-name { font-family: var(--sans); font-weight: 600; font-size: 14px; color: #fff; letter-spacing: .04em; }
.hd-b-score { font-family: var(--sans); font-weight: 700; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.hd-b-meta { grid-column: 2 / span 2; font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,.6); }
.hd-board-empty { display: block; text-align: center; padding: 14px; font-family: var(--sans); font-size: 13px; color: rgba(255,255,255,.6); background: transparent; }
.hd-board-head { font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.72); margin: 2px 0 0; }
.hd-board-head strong { color: #f3d4b4; }
.hd-board-section { margin: 32px auto 0; max-width: 820px; }
.hd-board-title { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 3.4vw, 26px); text-align: center; margin: 0 0 6px; }
.hd-board-sub { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin: 0 0 18px; }
.hd-board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.hd-board-colhead { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
@media (max-width: 640px) { .hd-board-cols { grid-template-columns: 1fr; gap: 20px; } }
.hd-board-page { max-width: none; max-height: none; margin: 0; }
.hd-board-page li { background: var(--paper-2); border: 1px solid var(--line); }
.hd-board-page .hd-b-rank { color: var(--clay); }
.hd-board-page .hd-b-name { color: var(--ink); }
.hd-board-page .hd-b-score { color: var(--ink); }
.hd-board-page .hd-b-meta { color: var(--ink-3); }
.hd-board-page .hd-board-empty { color: var(--ink-3); }
.hd-board-note { margin: 16px auto 0; max-width: 640px; text-align: center; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.hd-board-note a { color: var(--clay); }

/* ---- Mobil: Querformat-Hinweis + höhere Stage im Hochformat ---- */
.hd-rotate-hint { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  .hd-stage { aspect-ratio: 4 / 5; }
  .hd-rotate-hint {
    display: block; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
    z-index: 2; width: calc(100% - 24px); max-width: 360px;
    background: rgba(20,16,12,.8); color: #fff; border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px; padding: 8px 12px;
    font-family: var(--sans); font-size: 12.5px; line-height: 1.4; text-align: center;
  }
  .hd-rotate-hint strong { color: #f3d4b4; }
}
/* Querformat am Handy: Stage an die Bildschirmhöhe anpassen, damit sie nicht über den
   Viewport hinausragt (sonst kein Scrollen mehr, weil die Spielfläche Touch abfängt). */
@media (orientation: landscape) and (pointer: coarse) {
  .hd-stage { aspect-ratio: auto; height: 84dvh; min-height: 240px; }
}

/* ============================================================
   Bahn-Nachzeichner (/spielen-trace.php)
   ============================================================ */
.setup-form { display: block; }
.setup-break { word-break: break-all; }
.trace-page { padding: clamp(28px, 5vw, 56px) 0 80px; }
.trace-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.trace-switch > span { font-family: var(--sans); font-size: 14px; color: var(--ink-2); font-weight: 600; }
.trace-switch .btn { padding: 8px 18px; min-height: 40px; }
.trace-steps { margin: 18px 0 22px; padding-left: 20px; color: var(--ink-2); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.trace-steps li { margin-bottom: 6px; }
.trace-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.trace-file { font-family: var(--sans); font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.trace-count { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin-left: auto; }
.trace-count strong { color: var(--clay); }
.trace-canvas {
  display: block; width: 100%; height: auto; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  cursor: crosshair; touch-action: none; background: var(--ink);
}
.trace-out-label { display: block; margin: 16px 0 6px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.trace-out { width: 100%; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink-2); resize: vertical; }
.trace-hint { margin-top: 16px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
