/* =====================================================================
   Kilt'N'Strong Games – Stylesheet (nach Webseiten-Entwurf PDF)
   Grafiken: assets/img/ui/* (Balken, Buttons, Menütafel), Pergament, Landschaft
   Schriften laut Entwurf: Cinzel + Merriweather (assets/fonts, SIL Open Font License).
   Im Admin unter „Schriftarten“ änderbar: Site.cs setzt dann --caps, --serif und --caps-variant neu (Core/Fonts.cs).
   ===================================================================== */
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('../fonts/merriweather-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('../fonts/merriweather-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Schriftgrößen-Faktoren (Admin → Schriftarten → Schriftgrößen, Core/Fonts.cs) */
  --fs-motto: 1; --fs-h1: 1; --fs-h2: 1; --fs-text: 1; --fs-menu: 1; --fs-btn: 1; --fs-small: 1; --fs-cap: 9; --fs-cap-menu: 1.3;
  --ink: #2e1d10;
  --ink-soft: #5a3e26;
  --wood: #6b3d1e;
  --wood-dark: #3f2210;
  --gold: #f3d48b;
  --err: #9b2c1f;
  --ok: #3d6b35;

  --caps: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --caps-variant: small-caps;

  --page: 1040px;
  --gap: clamp(1rem, 4vw, 2rem);
  --beam-h: clamp(54px, 7.6vw, 92px);
  --sky-h: clamp(118px, 17.5vw, 250px);
  --nav-h: 0px; /* Höhe der Menüleiste unter dem Balken (nur Handy) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #3a2414; color: var(--ink);
  font: 400 calc(1.06rem * var(--fs-text))/1.6 var(--caps); font-variant-caps: var(--caps-variant);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wood-dark); text-underline-offset: .2em; }
a:hover { color: var(--wood); }
:focus-visible { outline: 3px solid #1f5fa8; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--caps); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-variant-caps: var(--caps-variant); }
h1 { font-size: calc(clamp(1.7rem, 4vw, 2.6rem) * var(--fs-h1)); text-align: center; }
h2 { font-size: calc(clamp(1.3rem, 2.8vw, 1.8rem) * var(--fs-h2)); }
h3 { font-size: calc(clamp(1.1rem, 2.2vw, 1.4rem) * var(--fs-h2)); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: #000; color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.lead { font-size: calc(clamp(1.05rem, 2.2vw, 1.3rem) * var(--fs-text)); color: var(--ink-soft); text-align: center; max-width: 46rem; margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: calc(.85rem * var(--fs-small)); }

/* ---------- Kopf ---------- */
/* kein Hintergrund am Kopf: unter der unteren Balkenhälfte liegt das Pergament (.page) */
.site-header { position: relative; z-index: 50; }
.sky {
  height: var(--sky-h);
  background: #a9d4f2 url('../img/landschaft.jpg') center 70% / cover no-repeat;
  display: flex; justify-content: center; padding-left: clamp(64px, 16vw, 200px);
}
.motto {
  margin: clamp(.5rem, 2.4vw, 1.6rem) 0 0;
  font: 700 calc(clamp(1.05rem, 3.5vw, 2.5rem) * min(var(--fs-motto), var(--fs-cap)))/1.1 var(--caps); font-variant-caps: var(--caps-variant); color: var(--ink);
  text-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 2px rgba(255,255,255,.9);
}
.beam {
  position: relative; height: var(--beam-h); margin-top: calc(var(--beam-h) * -.55);
  border-style: solid; border-width: 0;
  border-image: url('../img/ui/balken-kopf.png') 0 135 0 42 fill / 0 calc(var(--beam-h) * 1.73) 0 calc(var(--beam-h) * .54) stretch;
  display: flex; align-items: center; justify-content: center;
  padding: 0 calc(var(--beam-h) * 1.6) 0 clamp(70px, 18vw, 240px);
}
/* Das Balkenbild enthält rechts ein Hamburger-Symbol – mit einer schlichten Holzscheibe abdecken (Warenkorb liegt darüber) */
.beam::before {
  content: ''; position: absolute; top: 4%; right: calc(var(--beam-h) * .45);
  width: calc(var(--beam-h) * .92); height: calc(var(--beam-h) * .92);
  background: url('../img/ui/rund-holz.png') center / contain no-repeat;
}
.cart-btn {
  position: absolute; top: 9%; right: calc(var(--beam-h) * .5);
  width: calc(var(--beam-h) * .82); height: calc(var(--beam-h) * .82);
  background: url('../img/ui/icon-warenkorb.png') center / contain no-repeat; border-radius: 50%;
}
.badge[hidden] { display: none; }
.search-btn {
  position: absolute; top: 9%; right: calc(var(--beam-h) * 1.45);
  width: calc(var(--beam-h) * .82); height: calc(var(--beam-h) * .82);
  background: url('../img/ui/icon-suche.png') center / contain no-repeat; border-radius: 50%;
}
.search-btn:hover, .search-btn[aria-expanded="true"] { filter: brightness(1.12); }
/* Suchfeld (öffnet per Lupe, site.js): Desktop rechts unter dem Balken, Handy über die volle Breite */
.searchbox {
  position: absolute; z-index: 65; top: calc(var(--sky-h) + var(--beam-h) * .45 + .3rem); right: calc(var(--beam-h) * .4);
  display: flex; gap: .5rem; align-items: center; width: min(26rem, calc(100% - 2rem)); padding: .6rem;
  background: var(--wood-dark); border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 10px 18px rgba(20,10,0,.5);
}
.searchbox[hidden] { display: none; }
.searchbox label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.searchbox input, .search-page input {
  flex: 1; min-width: 0; padding: .55rem .7rem; border: 2px solid rgba(107,61,30,.45); border-radius: 8px;
  background: #fff8e8; color: var(--ink); font: 400 calc(1rem * var(--fs-text))/1.3 var(--serif); font-variant-caps: normal;
}
.searchbox .btn, .search-page .btn { flex: none; }
.cart-btn:hover { filter: brightness(1.1); }
.badge {
  position: absolute; top: -6%; right: -8%; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: .7rem;
  background: var(--err); color: #fff; font: 700 .78rem/1.35rem var(--serif); text-align: center; font-variant-caps: normal;
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.logo {
  position: absolute; z-index: 55; left: clamp(.4rem, 6.5vw, 5rem); top: clamp(12px, 4.5vw, 52px);
  width: clamp(58px, 13.5vw, 160px); filter: drop-shadow(0 6px 8px rgba(30,15,5,.5));
}
.logo img { width: 100%; }
/* Logo-Flagge weht im Wind: Oberkante fest (transform-origin oben), zwei Bewegungen mit verschiedenem Takt
   + wandernder Licht-/Schattenstreifen in Logo-Form (Maskenbild setzt Site.Layout im <style> des Kopfs). Stillstand bei „reduzierte Bewegung“ (Regel unten). */
.logo { transform-origin: 50% 0; animation: flag-sway 6.5s ease-in-out infinite; }
.logo img { transform-origin: 50% 0; animation: flag-flutter 2.9s ease-in-out infinite; }
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .logo::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 0 15%, rgba(255,255,255,.16) 27%, transparent 38%, rgba(0,0,0,.14) 55%, transparent 68%) 0 0 / 250% 100%;
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: flag-shade 4.3s linear infinite;
  }
}
@keyframes flag-sway { 0%, 100% { transform: skewX(0deg); } 30% { transform: skewX(-2.4deg); } 70% { transform: skewX(1.9deg); } }
@keyframes flag-flutter { 0%, 100% { transform: skewX(0deg) scaleY(1); } 50% { transform: skewX(1.3deg) scaleY(.99); } }
@keyframes flag-shade { from { background-position: 125% 0; } to { background-position: -125% 0; } }

/* Hauptmenü im Holzbalken (Untermenüs: Hover per CSS, Klick/Tippen/Tastatur per site.js → .open) */
.mainnav {
  position: absolute; z-index: 60; top: calc(var(--sky-h) - var(--beam-h) * .55); height: var(--beam-h);
  left: clamp(70px, 18vw, 240px); right: calc(var(--beam-h) * 2.4);
  display: flex; align-items: center;
}
.mainnav > ul { display: flex; align-items: center; gap: clamp(.5rem, 2.6vw, 2.6rem); margin: 0 auto; padding: 0; list-style: none; }
.mainnav > ul > li { position: relative; display: flex; align-items: center; }
.mainnav > ul > li > a {
  padding: .3em 0; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent;
  font: 700 calc(clamp(.9rem, 2.2vw, 1.75rem) * min(var(--fs-menu), var(--fs-cap-menu)))/1 var(--serif); font-variant-caps: normal; color: #f4e2bd;
  text-shadow: 0 2px 2px rgba(0,0,0,.6), 0 0 8px rgba(0,0,0,.35);
}
/* Mehr als 4 Menüpunkte: beginnt rechts neben dem Logo, etwas kleiner und enger, damit bis zu 6 Punkte in den Balken passen */
@media (min-width: 701px) {
  .mainnav.nav-many { left: calc(clamp(.4rem, 6.5vw, 5rem) + clamp(58px, 13.5vw, 160px) + .5rem); }
  .mainnav.nav-many > ul { gap: clamp(.35rem, 1.7vw, 1.8rem); }
  .mainnav.nav-many > ul > li > a { font-size: calc(clamp(.78rem, 1.65vw, 1.4rem) * min(var(--fs-menu), var(--fs-cap-menu))); }
}
.mainnav > ul > li > a:hover, .mainnav > ul > li > a.is-active { color: #fff; }
.mainnav > ul > li > a.is-active { border-bottom-color: var(--gold); }
/* ▾ so schmal wie das Zeichen (sonst wirken die Abstände zwischen den Punkten ungleich); Klickfläche per ::after vergrößert */
.sub-toggle {
  position: relative; display: grid; place-items: center; width: auto; height: 1.7em; margin-left: .3em; padding: 0; border: 0;
  background: none; color: #f4e2bd; cursor: pointer; font: 700 calc(clamp(.8rem, 1.6vw, 1.15rem) * min(var(--fs-menu), var(--fs-cap-menu)))/1 var(--serif);
}
.sub-toggle::after { content: ''; position: absolute; inset: -.35em -.5em; }
.sub-toggle::before { content: '▾'; text-shadow: 0 2px 2px rgba(0,0,0,.6); transition: transform .2s; }
.sub-toggle:hover { color: #fff; }
.has-sub.open > .sub-toggle::before { transform: rotate(180deg); }
.sub {
  display: none; position: absolute; top: 100%; left: 50%; translate: -50% 0; z-index: 2; min-width: 13rem;
  margin: 0; padding: .4rem; list-style: none;
  background: var(--wood-dark); border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 10px 18px rgba(20,10,0,.5);
}
.has-sub.open > .sub { display: block; }
@media (hover: hover) { .has-sub:hover > .sub { display: block; } }
.sub a {
  display: block; padding: .5rem .8rem; border-radius: 6px; white-space: nowrap; text-decoration: none;
  font: 700 calc(.95rem * min(var(--fs-menu), var(--fs-cap-menu)))/1.25 var(--serif); font-variant-caps: normal; color: var(--gold);
}
.sub a:hover, .sub a:focus-visible { background: rgba(243,212,139,.16); color: #fff; }
/* Handy: Menü als schmale Holzleiste direkt unter dem Balken, Untermenüs über die volle Breite */
@media (max-width: 700px) {
  body.has-nav { --nav-h: 2.75rem; } /* Wartungsseite hat kein Menü */
  .mainnav {
    position: static; height: var(--nav-h); overflow-x: auto; scrollbar-width: none;
    background: linear-gradient(#5e371a, #3f2210); border-top: 1px solid #2a160a; border-bottom: 2px solid #2a160a;
    box-shadow: 0 4px 8px rgba(30,15,5,.35);
  }
  .mainnav > ul { gap: .9rem; padding: 0 .8rem; }
  .mainnav > ul > li { position: static; }
  .mainnav > ul > li > a { font-size: calc(.95rem * min(var(--fs-menu), var(--fs-cap-menu))); }
  .sub { top: 100%; left: 0; right: 0; translate: none; border-radius: 0 0 10px 10px; border-top: 0; }
  .sub a { padding: .7rem 1rem; }
  .sub-toggle::after { inset: -.6em -.75em; } /* größere Tippfläche auf dem Handy */
  .searchbox { top: 100%; left: 0; right: 0; width: auto; border-radius: 0 0 10px 10px; border-top: 0; }
  .logo { width: clamp(58px, 13.5vw, 68px); } /* Banner endet über der Menüleiste */
}
/* Handy: zu viele/lange Menüpunkte für eine Zeile → zwei Zeilen (Klasse setzt site.js nach Messung) */
@media (max-width: 700px) {
  body.has-nav.nav-wrap { --nav-h: 4.6rem; }
  .nav-wrap .mainnav > ul { flex-wrap: wrap; justify-content: center; gap: .1rem .9rem; padding: .25rem .6rem; }
  .nav-wrap .mainnav > ul > li > a { padding: .35em 0; }
}
@media (max-width: 400px) {
  .mainnav > ul { gap: .45rem; padding: 0 .4rem; }
  .mainnav > ul > li > a { font-size: calc(.84rem * min(var(--fs-menu), var(--fs-cap-menu))); }
}
@media (max-width: 340px) { .mainnav > ul > li > a { font-size: calc(.78rem * min(var(--fs-menu), var(--fs-cap-menu))); } }

/* ---------- Seite (Pergament) ---------- */
.page {
  flex: 1; position: relative;
  background: #f0d6a2 url('../img/pergament.jpg') center top / 100% 100% no-repeat;
  /* beginnt an der Unterkante von .sky, läuft also hinter der unteren Hälfte des Kopfbalkens (und der Handy-Menüleiste) durch */
  margin-top: calc(var(--beam-h) * -.45 - var(--nav-h));
  padding: calc(var(--beam-h) * .7 + var(--nav-h) + clamp(1.2rem, 3vw, 2.2rem)) 0 clamp(2rem, 5vw, 3.5rem);
}
main { width: min(var(--page), 100% - 2 * var(--gap)); margin: 0 auto; }

/* ---------- Suche (Ergebnisseite) ---------- */
.search-page { display: flex; gap: .5rem; max-width: 34rem; margin: 0 auto 1.2rem; }
.search-results { display: grid; gap: .9rem; max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; }
.search-results a {
  display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 10px; text-decoration: none; color: var(--ink);
  background: rgba(255,248,230,.55); border: 2px solid rgba(107,61,30,.25);
}
.search-results a:hover, .search-results a:focus-visible { border-color: rgba(107,61,30,.65); color: var(--ink); }
.search-results img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.sr-body { display: grid; gap: .2rem; min-width: 0; }
.sr-area { font-size: calc(.8rem * var(--fs-small)); color: var(--ink-soft); }
.sr-title { font: 700 calc(clamp(1.05rem, 2.2vw, 1.25rem) * var(--fs-h2))/1.25 var(--caps); font-variant-caps: var(--caps-variant); }
.sr-snippet { font: 400 calc(.95rem * var(--fs-text))/1.5 var(--serif); font-variant-caps: normal; color: var(--ink-soft); overflow-wrap: anywhere; }
.search-results mark { padding: 0 .1em; border-radius: 3px; background: rgba(243,212,139,.85); color: inherit; }
.search-none { margin-top: 1rem; }

/* ---------- Baukasten: Kacheln oberhalb/unterhalb des Seiteninhalts ---------- */
/* Raster: 6 Spalten – ganz = 6, halb = 3, Drittel = 2; schmale Kacheln stehen nebeneinander, der Rest rückt in die nächste Zeile */
.blocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); align-items: start; }
.block-full { grid-column: span 6; }
.block-half { grid-column: span 3; }
.block-third { grid-column: span 2; }
@media (max-width: 700px) { .block-half, .block-third { grid-column: span 6; } }
.blocks-oben { margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem); }
main > .blocks-oben:first-child { padding-top: clamp(0px, 4vw, 1.5rem); } /* Platz für das Logo-Banner wie .has-logo-space */
.blocks-unten { margin-top: clamp(1.4rem, 3.5vw, 2.4rem); }
.blocks-mitte { margin: clamp(1.2rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3.4rem); }
.blocks-kopf { margin: 0 0 clamp(1rem, 3vw, 1.6rem); }
/* Kachel Text */
.tb { font-size: calc(clamp(1rem, 2.1vw, 1.15rem) * var(--fs-text)); }
.tb-zentriert { text-align: center; }
.tb-pergament { background: rgba(255,248,230,.55); border: 2px solid rgba(107,61,30,.35); border-radius: 10px; padding: clamp(1rem, 3vw, 1.6rem); }
.tb > :last-child { margin-bottom: 0; }
.tb ul { text-align: left; display: inline-block; margin: 0 0 1em; padding-left: 1.2em; }
.tb-links ul { display: block; }
.tb-btn { margin: 1.1rem 0 0; }
/* Kachel Bild (wie .photo) */
.ib { margin: 0; }
.ib img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 18px rgba(50,25,8,.35); }
.ib figcaption { margin-top: .6rem; text-align: center; color: var(--ink); font: 700 calc(clamp(1rem, 2vw, 1.2rem) * var(--fs-h2))/1.3 var(--caps); font-variant-caps: var(--caps-variant); }
.ib-link { display: block; color: inherit; text-decoration: none; }
.ib-link img { transition: filter .2s; }
.ib-link:hover img { filter: brightness(1.06); }
.ib-link:hover figcaption { color: var(--ink); }
/* Schild auf dem Bild (Feld „badge“) */
.ib-pic { position: relative; display: block; }
.ib-badge {
  position: absolute; left: 50%; bottom: 6%; translate: -50% 0; z-index: 1; max-width: calc(100% - 1.6rem); width: max-content;
  padding: .35em .9em; border-radius: 999px; background: rgba(50,25,8,.78); color: #fff8e8; text-align: center; overflow-wrap: anywhere;
  font: 700 calc(clamp(.85rem, 1.9vw, 1.1rem) * var(--fs-btn))/1.25 var(--serif); font-variant-caps: normal; text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.ib-link:hover .ib-badge, .ib-link:focus-visible .ib-badge { background: rgba(80,45,15,.92); }
/* Kachel Slideshow (Bedienung in site.js) */
.ss { position: relative; --ss-dots: 2.4rem; }
.ss-track { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #2a1a0c; box-shadow: 0 8px 18px rgba(50,25,8,.35); }
.ss-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.ss-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.ss-slide img { width: 100%; height: 100%; object-fit: cover; }
.ss-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 3.6rem .8rem; text-align: center;
  background: linear-gradient(transparent, rgba(20,10,2,.78)); color: #fff; font-size: calc(clamp(.9rem, 1.8vw, 1.05rem) * var(--fs-small)); text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.ss-arrow {
  position: absolute; top: calc((100% - var(--ss-dots)) / 2); translate: 0 -50%; z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--gold); padding: 0 0 .2rem; cursor: pointer;
  background: rgba(40,20,5,.6); color: var(--gold); font: 700 1.9rem/1 var(--serif);
}
.ss-arrow:hover, .ss-arrow:focus-visible { background: rgba(70,40,15,.92); color: #fff; }
.ss-prev { left: .6rem; } .ss-next { right: .6rem; }
.ss-dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; min-height: var(--ss-dots); }
.ss-dots button { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; padding: 0; border: 0; background: none; cursor: pointer; }
.ss-dots button::before { content: ''; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--wood); }
.ss-dots button[aria-current="true"]::before { background: var(--wood); }
/* Galerie: Vorschaubilder statt Punkte (wie .thumbs auf den Produktseiten) */
.ss-thumbs { justify-content: flex-start; gap: .5rem; margin-top: .6rem; }
.ss-thumbs button { width: 64px; height: 64px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; }
.ss-thumbs button::before { content: none; }
.ss-thumbs button[aria-current="true"] { border-color: var(--wood); }
.ss-thumbs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ss-thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* Kachel Video (16:9; YouTube/Vimeo erst nach Klick) */
.vb { margin: 0; }
.vb-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #2a1a0c; box-shadow: 0 8px 18px rgba(50,25,8,.35); }
.vb-frame video, .vb-frame iframe, .vb-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vb-frame video { object-fit: contain; background: #000; }
.vb-consent img { filter: brightness(.7); }
.vb-play {
  position: absolute; left: 50%; top: 45%; translate: -50% -50%; z-index: 1; display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1.3rem; border: 2px solid var(--gold); border-radius: 999px; cursor: pointer;
  background: rgba(40,20,5,.75); color: var(--gold); font: 700 calc(clamp(.95rem, 2.2vw, 1.15rem) * var(--fs-btn))/1 var(--serif); font-variant-caps: normal;
}
.vb-play:hover, .vb-play:focus-visible { background: rgba(70,40,15,.95); color: #fff; }
.vb-icon { font-size: 1.2em; }
.vb-note {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 1.6rem 1rem .7rem; text-align: center;
  background: linear-gradient(transparent, rgba(20,10,2,.8)); color: #f4e2bd; font: 400 calc(clamp(.75rem, 1.6vw, .9rem) * var(--fs-small))/1.4 var(--serif); font-variant-caps: normal;
}
.vb-note a { color: var(--gold); }
.vb figcaption { margin-top: .6rem; text-align: center; color: var(--ink-soft); font-size: calc(clamp(.9rem, 1.8vw, 1rem) * var(--fs-small)); }
.section + .section { margin-top: clamp(1.8rem, 4vw, 3rem); }
.has-logo-space { padding-top: clamp(0px, 4vw, 1rem); }

/* ---------- Holz-/Pergament-Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .2rem 1.8rem; cursor: pointer; text-decoration: none; text-align: center;
  font: 700 calc(clamp(.95rem, 1.8vw, 1.15rem) * var(--fs-btn))/1.15 var(--caps); font-variant-caps: var(--caps-variant); color: var(--ink);
  background: none; border-style: solid; border-width: 0;
  border-image: url('../img/ui/leiste-2.png') 0 34 fill / 0 30px stretch;
  filter: drop-shadow(0 2px 2px rgba(40,20,5,.35));
}
.btn:hover { color: var(--ink); filter: drop-shadow(0 2px 2px rgba(40,20,5,.35)) brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-wood { border-image-source: url('../img/ui/planke-holz.png'); border-image-slice: 0 30 fill; color: var(--gold); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.btn-wood:hover { color: #fff; }
.btn-wide { width: 100%; max-width: 320px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1rem; }

.round { display: inline-block; width: 52px; height: 52px; border-radius: 50%; }
.round img { width: 100%; height: 100%; }
.round:hover { filter: brightness(1.12); }
.social { list-style: none; display: flex; gap: .6rem; justify-content: center; margin: .9rem 0 0; padding: 0; }

/* ---------- Startseite ---------- */
.intro { text-align: center; max-width: 46rem; margin: 0 auto; }
.intro h2 { font-size: calc(clamp(1.05rem, 2.4vw, 1.4rem) * var(--fs-h2)); margin-bottom: .35em; }
.intro p { font-size: calc(clamp(1.02rem, 2.3vw, 1.3rem) * var(--fs-text)); line-height: 1.5; color: var(--ink-soft); }
.intro .last { color: var(--ink); font-weight: 700; font-size: calc(clamp(.95rem, 2vw, 1.15rem) * var(--fs-text)); }
.feature {
  position: relative; display: block; margin: clamp(1rem, 3vw, 1.8rem) auto; max-width: 760px;
  border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff;
  box-shadow: 0 8px 22px rgba(50,25,8,.35);
}
.feature img { width: 100%; aspect-ratio: 4 / 2.5; object-fit: cover; transition: transform .6s ease; }
.feature:hover img { transform: scale(1.03); }
.feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,4,.5), transparent 55%); }
.feature-text { position: absolute; z-index: 1; left: 4%; top: 34%; font: 700 calc(clamp(1.4rem, 4.6vw, 2.8rem) * var(--fs-h1))/1.12 var(--serif); font-variant-caps: normal; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.feature-cta { position: absolute; z-index: 1; left: 50%; bottom: 6%; transform: translateX(-50%); white-space: nowrap; font: 700 calc(clamp(.95rem, 2.5vw, 1.35rem) * var(--fs-btn))/1 var(--serif); font-variant-caps: normal; padding: .4em .8em; border-radius: 8px; background: rgba(70,40,15,.55); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.feature:hover .feature-cta { background: rgba(110,60,25,.85); }
.clan { text-align: center; }
.clan h2 { font-size: calc(clamp(1.05rem, 2.4vw, 1.35rem) * var(--fs-h2)); margin-bottom: .2em; }
.clan p { margin: 0; color: var(--ink-soft); font-size: calc(clamp(1rem, 2.2vw, 1.2rem) * var(--fs-text)); }

/* ---------- Game of Clans: Produktübersicht ---------- */
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); margin-top: 1.2rem; }
@media (max-width: 760px) { .editions { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
.edition { display: flex; flex-direction: column; align-items: center; text-align: center; }
.edition h2 { font-size: calc(clamp(1.15rem, 2.3vw, 1.5rem) * var(--fs-h2)); margin-bottom: .4em; }
.edition a.pic { display: block; width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 14px rgba(50,25,8,.3); }
.edition a.pic img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.edition a.pic:hover img { transform: scale(1.04); }
.price { font: 700 calc(clamp(1.3rem, 2.6vw, 1.7rem) * var(--fs-btn))/1.1 var(--caps); font-variant-caps: var(--caps-variant); margin-top: .6rem; }
.price-note { font-size: calc(.85rem * var(--fs-small)); color: var(--ink-soft); margin: .1rem 0 .5rem; }
.story { text-align: center; max-width: 52rem; margin-inline: auto; font-size: calc(clamp(1rem, 2vw, 1.15rem) * var(--fs-text)); }
.video-box { max-width: 560px; margin: .6rem auto 0; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 6px 14px rgba(50,25,8,.3); }
.video-box video, .video-box img { width: 100%; height: auto; display: block; }   /* eigenes Seitenverhältnis, kein Beschnitt */
.manual-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 820px; margin: 1.4rem auto 0; font-size: calc(clamp(1rem, 2.2vw, 1.25rem) * var(--fs-text)); }

/* ---------- Produktdetail ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: start; margin-top: 1.5rem; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }
.gallery .main { border-radius: 16px; overflow: hidden; box-shadow: 0 6px 14px rgba(50,25,8,.3); }
.gallery .main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--wood); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-right .gallery { order: 2; }
.product-info h2 { font-size: calc(clamp(1.2rem, 2.4vw, 1.6rem) * var(--fs-h2)); }
/* Spiele-Look: großes Bild über die ganze Breite, Kauf-Bereich darunter */
/* Spiele: zweispaltig wie Merchandise (Galerie und Angaben nebeneinander, Handy untereinander) */
.product-game .gallery .main img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; background: rgba(40,25,10,.08); }
.tiles-sub { margin: 1rem 0 .4rem; }
.shop-grid .card h3 a { color: inherit; text-decoration: none; }
.product-info .buy { display: grid; gap: .7rem; justify-items: start; margin: 1rem 0 1.4rem; }
.desc h3 { font-size: calc(1.05rem * var(--fs-h2)); margin-top: 1rem; }
.desc p { margin: 0 0 .8em; }
.options { border: 2px solid var(--wood); padding: .7rem .9rem; margin: .3rem 0; background: #fff6e2; color: var(--ink); border-radius: 6px; font-family: var(--serif); font-variant-caps: normal; font-size: calc(.95rem * var(--fs-text)); min-width: min(100%, 300px); }
.options legend { float: left; width: 100%; padding: 0 0 .3rem; font-weight: 700; }
.options label { display: flex; gap: .6rem; align-items: center; padding: .2rem 0; cursor: pointer; clear: both; }
.options input { width: 1.1rem; height: 1.1rem; accent-color: var(--wood); }
.options .opt-all { border-top: 1px solid rgba(70,40,15,.3); margin-top: .3rem; padding-top: .4rem; }
.select-wrap label { display: block; font-weight: 700; margin-bottom: .2rem; }
/* Optionen: Auswahlknöpfe, Optionsfelder, Farbfelder, Freitext */
.opt-single { border: 0; padding: 0; margin: 0; min-width: 0; max-width: 100%; }
.opt-single legend, .opt-field label { font-weight: 700; padding: 0; margin-bottom: .3rem; }
.opt-hint { font-weight: 400; font-size: .9em; }
.opt-choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt-choice { position: relative; cursor: pointer; }
.opt-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-buttons .opt-choice span {
  display: inline-block; min-width: 2.75rem; min-height: 2.75rem; padding: .55rem .8rem; text-align: center;
  font: 700 calc(.95rem * var(--fs-btn))/1.5 var(--serif); font-variant-caps: normal; color: var(--ink);
  background: #fff6e2; border: 2px solid var(--wood); border-radius: 6px;
}
.opt-buttons .opt-choice input:checked + span { background: var(--wood); color: var(--gold); }
.opt-radio .opt-choices { flex-direction: column; gap: .2rem; }
.opt-radio .opt-choice { display: flex; align-items: center; gap: .55rem; min-height: 2.2rem; }
.opt-radio .opt-choice input { position: static; opacity: 1; width: 1.15rem; height: 1.15rem; accent-color: var(--wood); }
.opt-swatch .swatch { display: block; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 3px solid #fff6e2; box-shadow: 0 0 0 2px var(--wood); }
.opt-swatch .opt-choice input:checked + .swatch { box-shadow: 0 0 0 3px var(--wood), 0 0 0 5px var(--gold); }
.opt-current { font-weight: 400; }
.opt-choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt-choice.is-off { cursor: not-allowed; opacity: .4; }
.opt-buttons .opt-choice.is-off span { text-decoration: line-through; }
.opt-field input { font: calc(1rem * var(--fs-text)) var(--serif); padding: .55rem .7rem; color: var(--ink); background: #fff6e2; border: 2px solid var(--wood); border-radius: 6px; width: min(100%, 22rem); }
.select-wrap select, .qty {
  font: 700 calc(1rem * var(--fs-btn)) var(--serif); font-variant-caps: normal; padding: .55rem .7rem; color: var(--ink);
  background: #fff6e2; border: 2px solid var(--wood); border-radius: 6px;
}
.qty { width: 4.5rem; text-align: center; }
.qty-row { display: flex; gap: .6rem; align-items: center; }
.soldout { font-weight: 700; color: var(--err); }
.stock-hint { font-weight: 700; color: var(--err); margin: .2rem 0 .4rem; }

/* ---------- Anleitung (Blättern) ---------- */
.flipbook { max-width: 520px; margin: 1rem auto 0; }
.book { position: relative; aspect-ratio: 1; perspective: 2200px; }
.leaf {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.45,.05,.35,1); box-shadow: 0 8px 18px rgba(40,20,5,.35);
}
.leaf img { width: 100%; height: 100%; object-fit: contain; background: #fffaf0; backface-visibility: hidden; }
.leaf.turned { transform: rotateY(-178deg); }
.leaf.turned img { visibility: hidden; transition: visibility 0s .55s; }
.leaf:not(.turned) img { transition: visibility 0s .55s; }
.flip-nav { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; }
.flip-nav button { background: none; border: 0; cursor: pointer; font: 700 calc(1.05rem * var(--fs-btn)) var(--caps); font-variant-caps: var(--caps-variant); color: var(--ink); padding: .4rem .2rem; }
.flip-nav button:disabled { opacity: .35; cursor: default; }
.flip-nav .count { font-size: calc(.9rem * var(--fs-small)); color: var(--ink-soft); }

/* ---------- Coming Soon ---------- */
.upcoming { display: grid; gap: 2rem; max-width: 760px; margin: 1.4rem auto 0; }
.game { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.game img { border-radius: 16px; box-shadow: 0 6px 14px rgba(50,25,8,.3); }
.game h2 { font-size: calc(clamp(1.1rem, 2.4vw, 1.45rem) * var(--fs-h2)); margin-bottom: .2em; }
.game .date { font-weight: 700; }
@media (max-width: 520px) { .game { grid-template-columns: 1fr; justify-items: center; text-align: center; } .game img { max-width: 220px; } }
.newsletter { text-align: center; max-width: 34rem; margin: 2.2rem auto 0; }
.newsletter form { display: grid; gap: .8rem; margin-top: 1rem; text-align: left; }
.newsletter form[hidden] { display: none; }

/* ---------- Events / Merch / Clan ---------- */
.textblock { text-align: center; max-width: 46rem; margin-inline: auto; font-size: calc(clamp(1rem, 2.1vw, 1.15rem) * var(--fs-text)); }
.photo { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 18px rgba(50,25,8,.35); max-width: 760px; margin: 1.2rem auto 0; }
.photo img { width: 100%; }
/* Eigene Seite: Kopfbild über der Überschrift */
.custom-hero { margin: 0 auto 1.4rem; }
.merch { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; max-width: 820px; margin: 1.2rem auto 0; }
.merch .photo { margin: 0; }
.merch-photos { display: grid; gap: clamp(.8rem, 2vw, 1.2rem); }
.merch-info { text-align: center; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2vw, 1.4rem); margin-top: 1.2rem; }
.tiles a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(50,25,8,.35); transition: transform .25s; }
.tiles a:hover { transform: translateY(-3px); }
@media (max-width: 600px) { .merch { grid-template-columns: 1fr; } .merch-photos { max-width: 320px; width: 100%; margin-inline: auto; } }

.clan-pic { position: relative; max-width: 440px; margin: 1rem auto 0; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 18px rgba(50,25,8,.35); cursor: pointer; aspect-ratio: 480 / 390; }
.clan-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease, transform .7s ease; }
.clan-pic .comic { opacity: 0; transform: scale(1.04); }
.clan-pic.is-comic .comic, .clan-pic:hover .comic, .clan-pic:focus-visible .comic { opacity: 1; transform: none; }
.clan-pic .hint { position: absolute; z-index: 2; right: .5rem; bottom: .5rem; padding: .2rem .6rem; border-radius: 6px; background: rgba(40,20,5,.65); color: #fff; font-size: calc(.8rem * var(--fs-small)); pointer-events: none; }
.clan-dots { display: flex; gap: .4rem; justify-content: center; margin-top: .6rem; }
.clan-dots button { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--wood); background: transparent; padding: 0; cursor: pointer; }
.clan-dots button[aria-current="true"] { background: var(--wood); }

/* ---------- Shop-Raster (Hoodies/Shirts) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; margin-top: 1.2rem; }
.card { display: flex; flex-direction: column; text-align: center; align-items: center; }
.card a.pic { display: block; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(50,25,8,.3); }
.card a.pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card h3 { margin: .6rem 0 0; font-size: calc(1.1rem * var(--fs-h2)); }
.empty { text-align: center; color: var(--ink-soft); }

/* ---------- Warenkorb / Kasse / Formulare ---------- */
.panel { background: rgba(255,248,230,.55); border: 2px solid rgba(107,61,30,.35); border-radius: 10px; padding: clamp(1rem, 3vw, 1.6rem); font-variant-caps: normal; font-family: var(--serif); font-weight: 400; }
.panel h1, .panel h2, .panel h3 { font-family: var(--caps); font-variant-caps: var(--caps-variant); }
.cart-table { width: 100%; border-collapse: collapse; font-size: calc(.95rem * var(--fs-text)); }
.cart-table th, .cart-table td { padding: .65rem .4rem; border-bottom: 1px solid rgba(107,61,30,.3); text-align: left; vertical-align: middle; }
.cart-table th { font-family: var(--caps); font-variant-caps: var(--caps-variant); }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table tfoot td { border-bottom: 0; }
.cart-table tfoot tr.total td { font: 700 calc(1.15rem * var(--fs-btn)) var(--caps); font-variant-caps: var(--caps-variant); border-top: 2px solid var(--wood); }
.cart-table img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.cart-table .opts { display: block; font-size: calc(.85rem * var(--fs-small)); color: var(--ink-soft); }
.link-btn { background: none; border: 0; padding: .2rem; color: var(--err); cursor: pointer; font: inherit; text-decoration: underline; }
@media (max-width: 560px) { .cart-table .hide-s { display: none; } }
.steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.4rem; flex-wrap: wrap; font-family: var(--caps); font-variant-caps: var(--caps-variant); font-weight: 700; }
.steps li { padding: .3rem .8rem; border-radius: 6px; border: 2px solid rgba(107,61,30,.35); color: var(--ink-soft); }
.steps li[aria-current="step"] { background: var(--wood); border-color: var(--wood-dark); color: var(--gold); }
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .row.plz { grid-template-columns: 9rem 1fr; }
@media (max-width: 560px) { .form .row, .form .row.plz { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: .25rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .65rem .8rem; color: var(--ink); background: #fffaf0; border: 2px solid #b48a5a; border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wood-dark); outline: none; box-shadow: 0 0 0 3px rgba(31,95,168,.3); }
.field textarea { min-height: 140px; resize: vertical; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.check { display: flex; gap: .7rem; align-items: start; font-size: calc(.95rem * var(--fs-text)); font-family: var(--serif); font-variant-caps: normal; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--wood); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; padding: .85rem 1.1rem; border-radius: 6px; font-family: var(--serif); font-variant-caps: normal; text-align: left; }
.status.ok { display: block; background: rgba(61,107,53,.15); border-left: 5px solid var(--ok); }
.status.err { display: block; background: rgba(155,44,31,.12); border-left: 5px solid var(--err); }
.status.info { display: block; background: rgba(243,212,139,.4); border-left: 5px solid var(--wood); }
#sumup-card { margin-top: 1rem; background: #fff; border-radius: 10px; padding: .5rem; min-height: 4rem; }
.legal { font-family: var(--serif); font-variant-caps: normal; max-width: 46rem; margin-inline: auto; }
.legal h1, .legal h2 { font-family: var(--caps); font-variant-caps: var(--caps-variant); text-align: left; }

/* ---------- Fuß ---------- */
.site-footer {
  position: relative; z-index: 2; margin-top: calc(var(--beam-h) * -.3);
  border-style: solid; border-width: 0;
  border-image: url('../img/ui/balken-fuss.png') 0 46 fill / 0 calc(var(--beam-h) * .62) stretch;
  /* Pergament unter dem Balken, damit an den runden Enden nicht der dunkle body-Hintergrund durchscheint */
  background: #f0d6a2 url('../img/pergament.jpg') center bottom / 100% auto no-repeat;
  min-height: var(--beam-h); padding: calc(var(--beam-h) * .18) calc(var(--beam-h) * .75);
  display: flex; align-items: center; justify-content: center;
}
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem clamp(.3rem, 1.4vw, 1rem); margin: 0; padding: 0; }
.site-footer a, .site-footer .cookie-open {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 1.1rem; text-decoration: none; white-space: nowrap;
  font: 400 calc(clamp(.72rem, 1.2vw, .9rem) * var(--fs-small))/1 var(--caps); font-variant-caps: var(--caps-variant); color: var(--ink);
  border-style: solid; border-width: 0; border-image: url('../img/ui/leiste-1.png') 0 32 fill / 0 18px stretch;
}
.site-footer a:hover, .site-footer .cookie-open:hover { filter: brightness(1.1); }
.site-footer .cookie-open { background: none; cursor: pointer; }
@media (max-width: 600px) { .site-footer { border-image-width: 0 26px; padding: .7rem 1.6rem; } }
@media (max-width: 380px) { .beam { padding-left: 64px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.leaf.turned { box-shadow: none; transition: transform 1.1s cubic-bezier(.45,.05,.35,1), box-shadow 0s 1.1s; }

/* ---------- Leiste für angemeldete Admins ---------- */
.admin-bar { position: sticky; top: 0; z-index: 400; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; align-items: center;
  padding: .45rem 1rem; background: #1f2a37; color: #fff; font: 400 .88rem/1.4 system-ui, sans-serif; font-variant-caps: normal; }
.admin-bar a { color: #ffd88a; margin-left: .8rem; }
.admin-bar strong { color: #fff; }
.tiles .tile-text { display: grid; place-items: center; aspect-ratio: 1; background: #e9cf9c; font: 700 calc(1.2rem * var(--fs-h2)) var(--caps); font-variant-caps: var(--caps-variant); color: var(--ink); }
.lead p { margin: 0; }
.intro p { margin: 0 0 1em; }
.clan p { margin: 0; }

/* ---------- Kasse: Zahlungsart, Vorauszahlung ---------- */
.pay-choice { border: 0; padding: 0; margin: 1rem 0 0; }
.pay-choice legend { font-weight: 700; margin-bottom: .3rem; }
.prepay { margin: 1.2rem 0; padding: 1rem 1.2rem; background: rgba(255, 246, 226, .75); border: 2px solid var(--wood); border-radius: 10px; }
.prepay h2 { margin-top: 0; font-size: calc(1.2rem * var(--fs-h2)); }
.prepay-data { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; }
.prepay-data dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; flex: 1 1 16rem; }
.prepay-data dt { font-weight: 700; }
.prepay-data dd { margin: 0; overflow-wrap: anywhere; }
.prepay .mono { font-family: Consolas, "Courier New", monospace; }
.girocode { margin: 0; text-align: center; }
.girocode svg { width: 170px; height: 170px; display: block; background: #fff; padding: 4px; border-radius: 6px; }
.girocode figcaption { font-size: calc(.8rem * var(--fs-small)); margin-top: .3rem; }

/* Kachel-Plätze auf der Artikelseite und unter Artikellisten */
.product .blocks, .blocks-liste { margin-top: 1.2rem; }
/* Menü im Holzbalken höchstens 130 % (sonst passt es nicht in den Balken); auf schmalen Bildschirmen Motto und Menü höchstens 120 %, damit nichts das Logo überdeckt */
@media (max-width: 700px) { :root { --fs-cap: 1.2; --fs-cap-menu: 1.2; } }

/* Buchstabenrad (Kachel „wheel“, site.js initWheels) */
.wheel { text-align: center; }
.wheel h2 { margin-bottom: .8rem; }
.wheel-stage { position: relative; width: min(100%, 420px); margin: 0 auto; padding-top: 6%; }
.wheel-disc { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(50,25,8,.4)); }
.wheel-rim { fill: var(--wood-dark); stroke: var(--gold); stroke-width: 2.5; }
.wheel-ring { fill: none; stroke: var(--wood); stroke-width: 2; }
.wheel-rot { transform-origin: 0 0; transition: transform 4.2s cubic-bezier(.12,.67,.12,1); }
.wheel-seg path { stroke: var(--wood); stroke-width: .8; }
.wheel-seg .wa { fill: #f6e7c4; }
.wheel-seg .wb { fill: #e7cb91; }
.wheel-seg text { fill: var(--ink); font-family: var(--caps); font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.wheel-seg.is-used path { fill: #b99a6c; }
.wheel-seg.is-used text { fill: rgba(46,29,16,.35); }
.wheel-hub { fill: var(--wood); stroke: var(--gold); stroke-width: 2.5; }
.wheel-pointer { position: absolute; top: 0; left: 50%; width: 11%; translate: -50% 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.wheel-pointer path { fill: var(--gold); stroke: var(--wood-dark); stroke-width: 3; stroke-linejoin: round; }
.wheel-actions { margin: 1rem 0 0; }
.wheel-result { min-height: 1.5em; margin: .6rem 0 0; }
.wheel-letter { display: inline-grid; place-items: center; min-width: 1.6em; padding: .05em .3em; font: 700 calc(clamp(2.6rem, 9vw, 4rem) * var(--fs-h1))/1.1 var(--caps); color: var(--ink);
  background: #f6e7c4; border: 3px solid var(--wood); border-radius: 12px; box-shadow: 0 4px 10px rgba(50,25,8,.3); }
.wheel-note { display: block; margin-top: .5rem; color: var(--ink-soft); }
.wheel-used { font-size: calc(.95rem * var(--fs-small)); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .wheel-rot { transition: none; } }

/* Cookie-Hinweis (Site.CookieNote, site.js initCookieNote) */
.cookie-note { position: fixed; z-index: 50; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); translate: -50% 0; width: min(40rem, calc(100% - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: .9rem 1.2rem; color: var(--ink);
  background: #fff6e2; border: 3px solid var(--wood); border-radius: 10px; box-shadow: 0 8px 24px rgba(30,15,5,.45); }
.cookie-note[hidden] { display: none; }
.cookie-text { flex: 1 1 18rem; font-size: calc(.92rem * var(--fs-small)); line-height: 1.45; }
.cookie-text p { margin: 0 0 .35rem; }
.cookie-text p:last-child { margin-bottom: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; flex: 0 0 auto; }
@media (max-width: 480px) { .cookie-note { padding: .75rem .9rem; } .cookie-actions { flex: 1 1 100%; } .cookie-actions .btn { flex: 1 1 0; } }

/* Vertrag widerrufen (Pages.Withdraw, site.js initWithdraw) */
.wd-summary { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.wd-summary dt { font-weight: 700; }
.wd-summary dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 480px) { .wd-summary { grid-template-columns: 1fr; } .wd-summary dd { margin-bottom: .4rem; } }
.withdraw h2:focus { outline: none; }

/* Widerrufsbelehrung: Knopf „Vertrag widerrufen“ (Pages.Legal) */
.withdraw-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.4rem; padding: .8rem 1rem; border: 2px solid var(--wood); border-radius: 8px; background: #fff6e2; }
