/* ─────────────────────────────────────────────────────────────
   QRFix-Theme — Page styles
   Uses CONTAINER QUERIES (cqw) instead of vw so the page renders
   correctly inside the design-canvas artboards (which set
   container-type: inline-size on .page-host).
───────────────────────────────────────────────────────────── */

/* ---------- SKIP LINK (WCAG) ---------- */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 2147483647;
  padding: 10px 18px; border-radius: 6px;
  background: #1a1a1a; color: #fff;
  font: 600 14px/1 ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-decoration: none; white-space: nowrap;
  translate: 0 calc(-100% - 24px);
  transition: translate 0.15s ease;
}
.skip-link:focus {
  translate: 0 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- THEME: editorial ---------- */
[data-theme="editorial"] {
  /* Neutrale (bg/fg/line) kommen jetzt aus dem gemeinsamen .page-host-Block
     (akzentgetönt via color-mix). Hier nur Akzent-Default für die Demo ohne
     Inline-Akzent, plus Schatten, Schrift, Eckenform. */
  --accent: #8b3a1f;
  --accent-fg: #fbf8f1;
  --accent-soft: #e9d6c3;
  --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.04);
  --shadow: 0 12px 40px -12px rgba(26, 22, 18, 0.18);
  --radius: 2px;
  --radius-lg: 4px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 500;
  --display-tracking: -0.02em;
}

/* ---------- THEME: fresh ---------- */
[data-theme="fresh"] {
  /* Neutrale: siehe .page-host (akzentgetönt). */
  --accent: #5d7a4a;
  --accent-fg: #ffffff;
  --accent-soft: #d4ddc4;
  --shadow-sm: 0 1px 2px rgba(42, 46, 38, 0.04);
  --shadow: 0 12px 40px -10px rgba(42, 46, 38, 0.16);
  --radius: 14px;
  --radius-lg: 24px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: -0.025em;
}

/* ---------- THEME: klar ---------- */
[data-theme="klar"] {
  /* Neutrale: siehe .page-host (akzentgetönt). */
  --accent: #1d3f87;
  --accent-fg: #ffffff;
  --accent-soft: #d6deef;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04);
  --shadow: 0 8px 30px -10px rgba(14, 17, 22, 0.18);
  --radius: 6px;
  --radius-lg: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-tracking: -0.015em;
}

/* ---------- NEUTRALE: dezent aus dem Akzent getönt ----------
   Die ganze Seite „hört" auf die gewählte Farbe: Flächen/Text/Linien werden
   als color-mix von var(--accent) gebildet. --accent ist pro Seite inline am
   #page gesetzt (bereits kontrast-geklemmt), daher tönt sich alles automatisch.
   Lightness der Anker bleibt fix (Flächen ~weiß, Text ~schwarz) → Kontrast
   bleibt hoch (fg/bg ~15:1). Hex-Fallback je Zeile zuerst für Browser ohne
   color-mix (dann sauberes, ungetöntes Neutral). */
.page-host {
  --bg: #faf9f7;        --bg: color-mix(in oklab, var(--accent) 4%, #ffffff);
  --bg-soft: #efeeec;   --bg-soft: color-mix(in oklab, var(--accent) 7%, #f2f1ef);
  --bg-card: #ffffff;   --bg-card: color-mix(in oklab, var(--accent) 2%, #ffffff);
  --fg: #1b1d20;        --fg: color-mix(in oklab, var(--accent) 9%, #16181b);
  --fg-soft: #4b4e53;   --fg-soft: color-mix(in oklab, var(--accent) 12%, #494c51);
  --fg-muted: #82858b;  --fg-muted: color-mix(in oklab, var(--accent) 14%, #7f8289);
  --line: rgba(20, 22, 26, 0.12);       --line: color-mix(in srgb, var(--accent) 16%, transparent);
  --line-soft: rgba(20, 22, 26, 0.06);  --line-soft: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ---------- DENSITY ---------- */
.page-host[data-density="compact"] { --section-y: 48px; --gap: 18px; }
.page-host[data-density="comfy"]   { --section-y: 88px; --gap: 28px; }
.page-host[data-density="regular"] { --section-y: 64px; --gap: 22px; }

/* ---------- CONTAINER ---------- */
.page-host {
  container-type: inline-size;
  container-name: page;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.page-host *, .page-host *::before, .page-host *::after { box-sizing: border-box; }

.page-host h1, .page-host h2, .page-host h3, .page-host h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
.page-host h1 { font-size: clamp(34px, 5.5cqw, 64px); line-height: 1.05; }
.page-host h2 { font-size: clamp(24px, 3cqw, 40px); line-height: 1.18; }
.page-host h3 { font-size: clamp(18px, 1.5cqw, 22px); line-height: 1.3; }
.page-host p  { margin: 0 0 1em; text-wrap: pretty; }
.page-host p:last-child { margin-bottom: 0; }

.page-host a,
.page-host a:link,
.page-host a:visited { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-host a:hover { text-decoration-thickness: 2px; }
.page-host img { display: block; max-width: 100%; }
.page-host :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- LAYOUT ---------- */
.page-host .container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.page-host .container-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.page-host .block { padding: var(--section-y) 0; }
.page-host .block + .block { padding-top: 0; }
.page-host .block-tight { padding: calc(var(--section-y) * 0.5) 0; }

/* ---------- TEMPLATE SECTION LABELS ---------- */
.page-host .tpl-label { padding: 24px 0 8px; }
.page-host .tpl-label-inner {
  display: flex; align-items: center; gap: 18px;
}
.page-host .tpl-label-n {
  font-family: var(--font-display); font-size: 13px;
  color: var(--accent); font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  letter-spacing: 0.04em; flex-shrink: 0;
}
.page-host .tpl-label-name {
  color: var(--fg); font-family: var(--font-display); font-size: 18px;
  letter-spacing: var(--display-tracking); flex-shrink: 0;
}
.page-host .tpl-label-line { flex: 1; height: 1px; background: var(--line); }

/* ---------- HEADER ---------- */
.page-host .site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.page-host .site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: 1180px; margin: 0 auto; gap: 24px;
}
.page-host .brand,
.page-host .brand:link,
.page-host .brand:visited,
.page-host .brand:hover { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--fg); }
.page-host .brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.page-host .brand-mark {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.page-host .brand-name {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 18px; letter-spacing: var(--display-tracking);
}
.page-host .brand-tag { font-size: 12px; color: var(--fg-muted); letter-spacing: 0.04em; margin-top: 2px; }
.page-host .nav { display: flex; gap: 24px; align-items: center; }
.page-host .nav a {
  color: var(--fg-soft); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 0; position: relative;
}
.page-host .nav a:hover { color: var(--fg); text-decoration: none; }
.page-host .nav a.active { color: var(--fg); }
.page-host .nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--accent);
}
.page-host .nav-cta {
  background: var(--fg); color: var(--bg) !important;
  padding: 10px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important; font-weight: 500; font-size: 13px;
}
.page-host .nav-cta:hover { opacity: 0.85; }
.page-host .nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 8px;
  color: var(--fg);
}

/* Mobile nav active */
.page-host .nav-mobile a.active {
  color: var(--fg) !important;
  font-weight: 600;
}

/* Mobile nav drawer */
.page-host .nav-mobile {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 8px 18px 12px;
  display: flex;
  flex-direction: column;
}
.page-host .nav-mobile[hidden] { display: none; }
.page-host .nav-mobile a {
  color: var(--fg-soft) !important; text-decoration: none !important;
  font-size: 15px; font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  display: block;
}
.page-host .nav-mobile a:last-child { border-bottom: 0; }
.page-host .nav-mobile a:hover { color: var(--fg) !important; }

/* Header variants */
.page-host[data-header="centered"] .site-header-inner {
  flex-direction: column; align-items: center; gap: 14px; padding-top: 20px; padding-bottom: 16px;
}
.page-host[data-header="centered"] .brand { flex-direction: column; gap: 8px; text-align: center; }
.page-host[data-header="centered"] .brand .brand-text { align-items: center; }
.page-host[data-header="centered"] .brand-mark { width: 44px; height: 44px; }
.page-host[data-header="minimal"] .nav { display: none; }
.page-host[data-header="minimal"] .site-header-inner { padding-top: 12px; padding-bottom: 12px; }

@container page (max-width: 720px) {
  .page-host .nav:not(.has-cta-only) { display: none; }
  .page-host .nav-toggle { display: inline-flex; }
}

/* ---------- HERO ---------- */
.page-host .hero {
  padding: clamp(40px, 6cqw, 88px) 0 clamp(32px, 5cqw, 64px);
}
.page-host .hero-eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 500;
}
.page-host .hero-lead {
  font-size: clamp(16px, 1.4cqw, 20px);
  color: var(--fg-soft); max-width: 56ch;
}
.page-host .hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- BUTTONS ---------- */
.page-host .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-family: inherit; font-size: 14px; font-weight: 500;
  text-decoration: none !important; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; line-height: 1.2;
  transition: opacity 0.15s, background 0.15s;
}
.page-host .btn-primary { background: var(--accent); color: var(--accent-fg) !important; }
.page-host .btn-primary:hover { opacity: 0.92; }
.page-host .btn-secondary {
  background: transparent; color: var(--fg) !important;
  border-color: color-mix(in oklab, var(--fg) 25%, transparent);
}
.page-host .btn-secondary:hover { background: var(--bg-soft); }
.page-host .btn-arrow svg { transition: transform 0.15s; }
.page-host .btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- TPL: Big image ---------- */
.page-host .tpl-bigimage figure { margin: 0; }
.page-host .tpl-bigimage img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg);
}
.page-host .tpl-bigimage figcaption {
  font-size: 13px; color: var(--fg-muted); margin-top: 12px;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ---------- TPL: Prose ---------- */
.page-host .tpl-prose { font-size: 1.02rem; line-height: 1.7; }
.page-host .tpl-prose h2 { margin-bottom: 0.6em; }
.page-host .tpl-prose .lede {
  font-size: 1.18rem; line-height: 1.5; color: var(--fg-soft);
  margin-bottom: 1.4em;
}
.page-host .tpl-prose blockquote {
  margin: 1.4em 0; padding: 0 0 0 22px;
  border-left: 2px solid var(--accent); font-style: italic; color: var(--fg-soft);
}

/* ---------- TPL: Image-Text 50/50 ---------- */
.page-host .tpl-imgtext {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3cqw, 56px); align-items: center;
}
.page-host .tpl-imgtext.is-flipped > .img-wrap { order: 2; }
.page-host .tpl-imgtext .img-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-host .tpl-imgtext .img-wrap img {
  width: 100%; object-fit: cover;
  aspect-ratio: 4/5; border-radius: var(--radius-lg); max-height: 520px;
}
.page-host .tpl-imgtext .text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-host .tpl-imgtext .eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  font-weight: 600;
}

/* Generic figure caption */
.page-host figcaption,
.page-host .img-caption {
  font-size: 13px; color: var(--fg-muted);
  font-family: var(--font-mono); letter-spacing: 0.02em;
  line-height: 1.5; margin-top: 6px;
}

/* ---------- TPL: Image with text wrapping ---------- */
.page-host .tpl-imgwrap .img-wrap {
  float: left; margin: 4px 36px 20px 0;
  width: 38%; min-width: 180px;
  shape-outside: margin-box;
  shape-margin: 12px;
}
.page-host .tpl-imgwrap .img-wrap img {
  width: 100%;
  aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
}
.page-host .tpl-imgwrap.is-right .img-wrap { float: right; margin: 4px 0 20px 36px; }
.page-host .tpl-imgwrap::after { content: ""; display: block; clear: both; }

/* ---------- TPL: Columns ---------- */
.page-host .tpl-cols {
  display: grid; gap: clamp(20px, 2.5cqw, 36px);
}
.page-host .tpl-cols.is-2 { grid-template-columns: repeat(2, 1fr); }
.page-host .tpl-cols.is-3 { grid-template-columns: repeat(3, 1fr); }
.page-host .tpl-cols .col img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 12px;
}
.page-host .tpl-cols .col .img-caption { margin-top: -4px; margin-bottom: 12px; }
.page-host .tpl-cols .col h3 { margin-bottom: 8px; }
.page-host .tpl-cols .col p { color: var(--fg-soft); font-size: 0.95rem; }

/* ---------- TPL: Mosaic ---------- */
.page-host .tpl-mosaic {
  display: grid; gap: 12px;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 16/10;
}
.page-host .tpl-mosaic .cell:nth-child(1) { grid-row: span 2; }
.page-host .tpl-mosaic .cell { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.page-host .tpl-mosaic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-host .tpl-mosaic .cell-caption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: color-mix(in oklab, #000 55%, transparent);
  color: #fff; padding: 6px 10px; border-radius: var(--radius);
  font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

/* ---------- TPL: Video ---------- */
.page-host .tpl-video {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.page-host .tpl-video iframe,
.page-host .tpl-video > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.page-host .tpl-video .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
  color: white; cursor: pointer; padding: 0; border: 0;
}
.page-host .tpl-video .play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #111;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.page-host .tpl-video figcaption { position: absolute; bottom: 16px; left: 20px; right: 20px;
  color: white; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

/* ---------- TPL: Form ---------- */
.page-host .tpl-form {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3cqw, 40px);
  box-shadow: var(--shadow);
}
.page-host .tpl-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.page-host .tpl-form label { font-size: 14px; font-weight: 500; color: var(--fg-soft); }
.page-host .tpl-form .req { color: var(--accent); margin-left: 2px; }
.page-host .tpl-form input,
.page-host .tpl-form textarea,
.page-host .tpl-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg);
  font-family: inherit; font-size: 15px; color: var(--fg);
}
.page-host .tpl-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%23777' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 42px;
}
.page-host .tpl-form input:focus,
.page-host .tpl-form textarea:focus,
.page-host .tpl-form select:focus {
  outline: 0; border-color: var(--accent); background: var(--bg-card);
}
.page-host .tpl-form select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%23777' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.page-host .tpl-form textarea { min-height: 120px; resize: vertical; }
.page-host .tpl-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Anrede — custom radio group */
.page-host .tpl-form .field-radios { margin-bottom: 16px; }
.page-host .tpl-form .field-radios .field-label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--fg-soft); margin-bottom: 10px;
}
.page-host .tpl-form .radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.page-host .tpl-form .radio-opt {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 15px; color: var(--fg);
  user-select: none;
}
.page-host .tpl-form .radio-native {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  pointer-events: none;
}
.page-host .tpl-form .radio-icon {
  width: 20px; height: 20px; flex-shrink: 0; display: block;
  color: var(--fg-muted); transition: color 0.15s;
}
.page-host .tpl-form .radio-ring { stroke: currentColor; fill: none; transition: stroke 0.15s; }
.page-host .tpl-form .radio-dot { fill: currentColor; opacity: 0; transition: opacity 0.15s; }
.page-host .tpl-form .radio-native:checked + .radio-icon { color: var(--accent); }
.page-host .tpl-form .radio-native:checked + .radio-icon .radio-dot { opacity: 1; }
.page-host .tpl-form .radio-opt:hover .radio-icon { color: var(--accent); }
.page-host .tpl-form .radio-native:focus-visible + .radio-icon {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 50%;
}

/* Datenschutz — custom checkbox */
.page-host .tpl-form .check-big {
  display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; font-size: 15px; color: var(--fg-soft);
  line-height: 1.5; user-select: none;
}
.page-host .tpl-form .check-native {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  pointer-events: none;
}
.page-host .tpl-form .check-icon {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; display: block;
}
.page-host .tpl-form .check-bg {
  fill: var(--bg); stroke: var(--line); stroke-width: 1.5;
  transition: fill 0.15s, stroke 0.15s;
}
.page-host .tpl-form .check-mark {
  stroke: var(--accent-fg); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transition: opacity 0.15s;
}
.page-host .tpl-form .check-native:checked + .check-icon .check-bg {
  fill: var(--accent); stroke: var(--accent);
}
.page-host .tpl-form .check-native:checked + .check-icon .check-mark { opacity: 1; }
.page-host .tpl-form .check-big:hover .check-bg { stroke: var(--accent); }
.page-host .tpl-form .check-native:focus-visible + .check-icon {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* Validation error states */
.page-host .tpl-form .field.is-invalid label { color: #d32f2f; }
.page-host .tpl-form .field.is-invalid input,
.page-host .tpl-form .field.is-invalid textarea,
.page-host .tpl-form .field.is-invalid select { border-color: #d32f2f; }
.page-host .tpl-form .field-error { font-size: 12px; color: #d32f2f; margin-top: 4px; display: block; }
.page-host .tpl-form .check-big.is-invalid .check-bg { stroke: #d32f2f; }
.page-host .tpl-form .check-big.is-invalid { color: #d32f2f; }

/* keep legacy .check for any other potential use */
.page-host .tpl-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-soft); }
.page-host .tpl-form .check input { width: auto; margin-top: 3px; }

/* ---------- TPL: Map ---------- */
.page-host .tpl-map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  aspect-ratio: 16/9; background: var(--bg-soft);
  /* Eigener Stacking-Context: hält Leaflets interne z-index (Panes 400-700,
     Controls 1000) im Karten-Kasten. Sonst überlagern sie den Sticky-Header
     (.site-header, z-index 50), wenn man über die Karte scrollt. */
  isolation: isolate;
}
.page-host .tpl-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.page-host .tpl-map__canvas { width: 100%; height: 100%; }
.page-host .tpl-map .leaflet-container { width: 100%; height: 100%; }
.page-host .tpl-map .map-meta {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; box-shadow: var(--shadow-sm);
  max-width: 280px;
}
.page-host .tpl-map .map-meta strong { display: block; margin-bottom: 2px; }

/* ---------- TPL: FAQ ---------- */
.page-host .tpl-faq { border-top: 1px solid var(--line); }
.page-host .tpl-faq .faq-item {
  border-bottom: 1px solid var(--line);
}
.page-host .tpl-faq .faq-q {
  width: 100%; background: transparent; border: 0; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-size: 1.05rem; font-weight: 500;
  font-family: var(--font-display); color: var(--fg); text-align: left;
}
.page-host .tpl-faq .faq-q:hover { color: var(--accent); }
.page-host .tpl-faq .faq-q .chev {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  transition: transform 0.25s ease;
}
.page-host .tpl-faq .faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.page-host .tpl-faq .faq-a-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, padding 0.3s ease;
}
.page-host .tpl-faq .faq-item.is-open .faq-a-wrap {
  grid-template-rows: 1fr; padding-bottom: 20px;
}
.page-host .tpl-faq .faq-a {
  overflow: hidden;
  color: var(--fg-soft); max-width: 70ch; line-height: 1.6;
}

/* ---------- TPL: Hours ---------- */
.page-host .tpl-hours {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 2.5cqw, 32px);
}
.page-host .tpl-hours .hours-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 10px;
}
.page-host .tpl-hours .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
}
.page-host .tpl-hours .pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.page-host .tpl-hours .pill.closed { background: var(--bg-soft); color: var(--fg-muted); }
.page-host .tpl-hours .hours-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; gap: 16px;
  border-bottom: 1px dashed var(--line-soft);
}
.page-host .tpl-hours .hours-row:last-child { border-bottom: 0; }
.page-host .tpl-hours .hours-day { color: var(--fg-soft); font-weight: 500; }
.page-host .tpl-hours .hours-time {
  text-align: right; font-variant-numeric: tabular-nums;
  font-family: var(--font-mono); font-size: 0.9rem;
}
.page-host .tpl-hours .hours-row.today .hours-day,
.page-host .tpl-hours .hours-row.today .hours-time { color: var(--fg); font-weight: 600; }
.page-host .tpl-hours .hours-time.closed { color: var(--fg-muted); }

/* ---------- TPL: Prices ---------- */
.page-host .tpl-prices { display: flex; flex-direction: column; gap: 10px; }
.page-host .tpl-prices .item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 18px; align-items: center;
  padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-card);
}
.page-host .tpl-prices .item:hover { border-color: var(--accent); }
.page-host .tpl-prices .thumb {
  width: 80px; height: 80px; border-radius: var(--radius);
  object-fit: cover; background: var(--bg-soft);
}
.page-host .tpl-prices .item-name { font-weight: 600; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.05rem; }
.page-host .tpl-prices .item-desc { font-size: 0.9rem; color: var(--fg-soft); margin: 0; }
.page-host .tpl-prices .price {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; color: var(--accent); white-space: nowrap;
}
.page-host .tpl-prices .price small { font-size: 0.65em; color: var(--fg-muted); font-weight: 400; }

/* ---------- TPL: Quote ---------- */
.page-host .tpl-quote {
  text-align: center; max-width: 760px; margin: 0 auto;
}
.page-host .tpl-quote .mark {
  font-family: var(--font-display); font-size: 4rem; line-height: 0.5;
  color: var(--accent); opacity: 0.5;
}
.page-host .tpl-quote blockquote {
  font-family: var(--font-display); font-size: clamp(20px, 2.4cqw, 32px);
  line-height: 1.35; margin: 16px 0 22px; font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-wrap: balance;
}
.page-host .tpl-quote .cite {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--fg-soft);
}
.page-host .tpl-quote .cite img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.page-host .tpl-quote .cite strong { color: var(--fg); display: block; font-weight: 600; }

/* ---------- TPL: CTA ---------- */
.page-host .tpl-cta {
  background: var(--fg); color: var(--bg);
  border-radius: var(--radius-lg); padding: clamp(32px, 5cqw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  align-items: center; position: relative; overflow: hidden;
}
.page-host .tpl-cta::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--accent); opacity: 0.4; filter: blur(60px);
  pointer-events: none;
}
.page-host .tpl-cta h2 { color: var(--bg); position: relative; }
.page-host .tpl-cta p { color: color-mix(in oklab, var(--bg) 75%, transparent); margin: 12px 0 0; position: relative; }
.page-host .tpl-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
.page-host .tpl-cta .btn-primary { background: var(--bg); color: var(--fg) !important; }
.page-host .tpl-cta .btn-secondary { color: var(--bg) !important; border-color: color-mix(in oklab, var(--bg) 30%, transparent); }
.page-host .tpl-cta .btn-secondary:hover { background: color-mix(in oklab, var(--bg) 10%, transparent); }

/* ---------- TPL: Events ---------- */
.page-host .tpl-events { display: flex; flex-direction: column; }
.page-host .tpl-events .event {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 22px; align-items: center; padding: 20px 0;
  border-top: 1px solid var(--line);
}
.page-host .tpl-events .event:last-child { border-bottom: 1px solid var(--line); }
.page-host .tpl-events .date {
  text-align: center; font-family: var(--font-display);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 4px; line-height: 1; background: var(--bg-card);
}
.page-host .tpl-events .date .day { font-size: 1.55rem; font-weight: 600; display: block; }
.page-host .tpl-events .date .mon { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-top: 4px; display: block; }
.page-host .tpl-events .event-name { font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.page-host .tpl-events .meta { font-size: 13px; color: var(--fg-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.page-host .tpl-events .event-tag {
  padding: 4px 12px; border-radius: 999px; font-size: 12px;
  background: var(--bg-soft); color: var(--fg-soft); white-space: nowrap;
}

/* ---------- TPL: Gallery ---------- */
.page-host .tpl-gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.page-host .tpl-gallery .gal-btn {
  background: none; border: 0; padding: 0; cursor: zoom-in;
  display: block; overflow: hidden; border-radius: var(--radius);
}
.page-host .tpl-gallery .gal-btn img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.2s;
  display: block;
}
.page-host .tpl-gallery .gal-btn:hover img { transform: scale(1.04); }

/* ---------- LIGHTBOX ---------- */
.qr-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 6, 4, 0.92); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px;
  animation: lb-fade 0.18s ease-out;
}
.qr-lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.qr-lightbox img {
  max-width: min(1200px, 92vw); max-height: 78vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.qr-lightbox .lb-caption {
  margin-top: 18px; color: rgba(255,255,255,0.88);
  font-family: ui-monospace, monospace; font-size: 14px;
  letter-spacing: 0.04em; max-width: 720px; text-align: center;
}
.qr-lightbox .lb-counter {
  margin-top: 6px; color: rgba(255,255,255,0.55);
  font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: 0.1em;
}
.qr-lightbox .lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qr-lightbox .lb-close:hover { background: rgba(255,255,255,0.2); }
.qr-lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qr-lightbox .lb-nav:hover { background: rgba(255,255,255,0.2); }
.qr-lightbox .lb-prev { left: 18px; }
.qr-lightbox .lb-next { right: 18px; }
@media (max-width: 600px) {
  .qr-lightbox .lb-nav { width: 40px; height: 40px; }
  .qr-lightbox .lb-prev { left: 8px; }
  .qr-lightbox .lb-next { right: 8px; }
}

/* ---------- TPL: About ---------- */
.page-host .tpl-about {
  display: grid; grid-template-columns: 260px 1fr;
  gap: clamp(24px, 4cqw, 48px); align-items: start;
}
.page-host .tpl-about .portrait-wrap { display: flex; flex-direction: column; gap: 8px; }
.page-host .tpl-about .portrait {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
}
.page-host .tpl-about .signature {
  margin-top: 16px; font-family: var(--font-display);
  font-style: italic; font-size: 1.3rem; color: var(--accent);
}

/* ---------- TPL: Social ---------- */
.page-host .tpl-social {
  display: flex; gap: 14px; flex-wrap: wrap;
  align-items: center; justify-content: center;
}
.page-host .tpl-social .label { font-size: 14px; color: var(--fg-muted); margin-right: 8px; }
.page-host .tpl-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center;
  color: var(--fg) !important; text-decoration: none !important;
}
.page-host .tpl-social a:hover { background: var(--accent); color: var(--accent-fg) !important; border-color: var(--accent); }

/* ---------- TPL: Directions ---------- */
.page-host .tpl-directions {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
.page-host .tpl-directions .lines { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-host .tpl-directions .addr { font-weight: 600; }
.page-host .tpl-directions .sub { color: var(--fg-soft); font-size: 0.92rem; }

/* ---------- TPL: Divider ---------- */
.page-host .tpl-divider {
  display: flex; align-items: center; gap: 18px;
  color: var(--fg-muted); padding: 24px 0;
}
.page-host .tpl-divider::before,
.page-host .tpl-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.page-host .tpl-divider .glyph { font-family: var(--font-display); font-size: 1.4rem; }
.page-host .tpl-divider .glyph--svg { display: inline-flex; color: var(--accent, currentColor); }
.page-host .tpl-divider .glyph--svg svg { width: 28px; height: 28px; display: block; }

/* ---------- FOOTER ---------- */
.page-host .site-footer {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 48px 0 28px; margin-top: 64px;
}
.page-host .site-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; max-width: 1180px; margin: 0 auto; padding: 0 28px;
}
.page-host .site-footer h4 {
  font-size: 12px; font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 12px;
}
.page-host .site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.page-host .site-footer a {
  color: var(--fg-soft) !important; text-decoration: none !important; font-size: 14px;
}
.page-host .site-footer a:hover { color: var(--fg) !important; text-decoration: underline !important; }
.page-host .site-footer .colophon {
  border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--fg-muted);
  max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px;
}
.page-host .site-footer .colophon-credit { color: var(--fg-muted); letter-spacing: 0.01em; }
.page-host .site-footer .colophon-credit a { font-weight: 500; }
.page-host .site-footer .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- CONTAINER-QUERY RESPONSIVE ---------- */
@container page (max-width: 720px) {
  .page-host .container,
  .page-host .container-narrow { padding: 0 18px; }
  .page-host .tpl-imgtext { grid-template-columns: 1fr; }
  .page-host .tpl-imgtext img { aspect-ratio: 16/10; max-height: none; }
  .page-host .tpl-imgtext.is-flipped > .img-wrap { order: 0; }
  .page-host .tpl-cols.is-2,
  .page-host .tpl-cols.is-3 { grid-template-columns: 1fr; }
  .page-host .tpl-cta { grid-template-columns: 1fr; text-align: left; }
  .page-host .tpl-cta .actions { justify-content: flex-start; }
  .page-host .tpl-mosaic { grid-template-columns: 1fr; aspect-ratio: auto; }
  .page-host .tpl-mosaic > * { aspect-ratio: 16/10; }
  .page-host .tpl-mosaic > *:nth-child(1) { grid-row: auto; }
  .page-host .tpl-about { grid-template-columns: 1fr; }
  .page-host .tpl-about .portrait { max-width: 220px; }
  .page-host .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .page-host .tpl-prices .item { grid-template-columns: 60px 1fr auto; gap: 12px; }
  .page-host .tpl-prices .thumb { width: 60px; height: 60px; }
  .page-host .tpl-events .event { grid-template-columns: 64px 1fr; gap: 14px; }
  .page-host .tpl-events .event > .event-tag { display: none; }
  .page-host .tpl-form .row-2 { grid-template-columns: 1fr; }
  .page-host .tpl-directions { grid-template-columns: 1fr; }
  .page-host .site-header-inner { padding: 12px 18px; }
  .page-host .nav-cta { padding: 8px 18px; font-size: 12px; }
  .page-host .tpl-map .map-meta { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}
@container page (max-width: 480px) {
  .page-host .site-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-host .brand-tag { display: none; }
  .page-host .hero { padding: 32px 0 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-host *, .page-host *::before, .page-host *::after {
    animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
  }
}

/* ---------- ANIMATIONS ---------- */
.page-host.is-anim-subtle .btn,
.page-host.is-anim-playful .btn {
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.page-host.is-anim-subtle .tpl-mosaic .cell,
.page-host.is-anim-playful .tpl-mosaic .cell,
.page-host.is-anim-subtle .tpl-gallery .gal-btn,
.page-host.is-anim-playful .tpl-gallery .gal-btn,
.page-host.is-anim-subtle .tpl-cols .col,
.page-host.is-anim-playful .tpl-cols .col,
.page-host.is-anim-subtle .tpl-bigimage,
.page-host.is-anim-playful .tpl-bigimage,
.page-host.is-anim-subtle .tpl-imgtext .img-wrap,
.page-host.is-anim-playful .tpl-imgtext .img-wrap {
  overflow: hidden;
}
.page-host.is-anim-subtle .tpl-mosaic .cell img,
.page-host.is-anim-playful .tpl-mosaic .cell img,
.page-host.is-anim-subtle .tpl-gallery .gal-btn img,
.page-host.is-anim-playful .tpl-gallery .gal-btn img,
.page-host.is-anim-subtle .tpl-cols .col img,
.page-host.is-anim-playful .tpl-cols .col img,
.page-host.is-anim-subtle .tpl-bigimage img,
.page-host.is-anim-playful .tpl-bigimage img,
.page-host.is-anim-subtle .tpl-imgtext .img-wrap img,
.page-host.is-anim-playful .tpl-imgtext .img-wrap img {
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
@media (hover: hover) {
  .page-host.is-anim-subtle .tpl-mosaic .cell:hover img,
  .page-host.is-anim-subtle .tpl-gallery .gal-btn:hover img,
  .page-host.is-anim-subtle .tpl-cols .col:hover img,
  .page-host.is-anim-subtle .tpl-bigimage:hover img,
  .page-host.is-anim-subtle .tpl-imgtext:hover .img-wrap img { transform: scale(1.04); }
}

/* Reveal on scroll */
.page-host.is-anim-subtle [data-reveal],
.page-host.is-anim-playful [data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.page-host.is-anim-subtle [data-reveal].is-revealed,
.page-host.is-anim-playful [data-reveal].is-revealed {
  opacity: 1; transform: none;
}

/* ---------- PROSE / TEXT PAGES ---------- */
.page-host .prose-page {
  padding: 56px 0 96px;
}
.page-host .prose-page .prose-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--fg-muted); text-decoration: none;
  margin-bottom: 36px; transition: color 0.15s;
}
.page-host .prose-page .prose-back:hover { color: var(--accent); text-decoration: none; }
.page-host .prose-page h1 {
  font-size: clamp(1.75rem, 3.5cqw, 2.4rem);
  margin: 0 0 10px;
}
.page-host .prose-page .prose-meta {
  font-size: 14px; color: var(--fg-muted);
  margin-bottom: 40px; padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.page-host .prose-page h2 {
  font-size: clamp(1.1rem, 1.8cqw, 1.25rem);
  margin: 40px 0 12px;
}
.page-host .prose-page h3 {
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0;
  color: var(--fg); margin: 28px 0 8px;
}
.page-host .prose-page p,
.page-host .prose-page ul,
.page-host .prose-page ol {
  font-size: 15px; line-height: 1.8; color: var(--fg-soft);
}
.page-host .prose-page ul,
.page-host .prose-page ol { padding-left: 22px; margin: 0 0 16px; }
.page-host .prose-page li { margin-bottom: 4px; }
.page-host .prose-page address { font-style: normal; }
.page-host .prose-page strong { color: var(--fg); }

/* ---------- TWEAKS PANEL ---------- */
.twk-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483646; width: 280px;
  max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: rgba(250,249,247,.88); color: #29261b;
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: .5px solid rgba(255,255,255,.6); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 40px rgba(0,0,0,.18);
  font: 11.5px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif; overflow: hidden;
}
.twk-panel[hidden] { display: none; }
.twk-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px 10px 14px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.twk-hd b { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.twk-x {
  appearance: none; border: 0; background: transparent; color: rgba(41,38,27,.55);
  width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.twk-x:hover { background: rgba(0,0,0,.06); color: #29261b; }
.twk-body {
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; overflow-x: hidden; min-height: 0;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.15) transparent;
}
.twk-sect {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(41,38,27,.45); padding-top: 6px;
}
.twk-sect:first-child { padding-top: 0; }
.twk-row { display: flex; flex-direction: column; gap: 5px; }
.twk-lbl { display: flex; justify-content: space-between; align-items: baseline; color: rgba(41,38,27,.72); }
.twk-lbl > span:first-child { font-weight: 500; }
.twk-seg {
  position: relative; display: flex; padding: 2px; border-radius: 8px;
  background: rgba(0,0,0,.06); user-select: none;
}
.twk-seg-thumb {
  position: absolute; top: 2px; bottom: 2px; border-radius: 6px;
  background: rgba(255,255,255,.9); box-shadow: 0 1px 2px rgba(0,0,0,.12);
  transition: left .15s cubic-bezier(.3,.7,.4,1), width .15s;
  pointer-events: none;
}
.twk-seg button {
  appearance: none; position: relative; z-index: 1; flex: 1; border: 0;
  background: transparent; color: inherit; font: inherit; font-weight: 500;
  min-height: 22px; border-radius: 6px; cursor: pointer; padding: 4px 6px;
  line-height: 1.2;
}

/* Tweaks trigger */
.twk-trigger {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483645;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent, #5d7a4a); color: var(--accent-fg, #fff);
  border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: opacity 0.15s;
}
.twk-trigger:hover { opacity: 0.9; }
.twk-trigger[hidden] { display: none; }
