/* ==========================================================================
   WIROBIT — Designsystem
   Marke: WIRO Bausysteme Vertriebs-GmbH · Produktmarke WIROBIT
   Basisfarben real aus wirobit.de (Elementor Global Kit) übernommen:
   Akzent #FF4438, Schwarz/Weiß als Kernkontrast. Siehe /analysis/site-analysis.md
   ========================================================================== */

/* Lokal gehostete Schriften (kein Google-Fonts-CDN-Request mehr — siehe
   /analysis/site-analysis.md). Variable Fonts: eine Datei deckt je Familie
   alle genutzten Schnitte ab (Browser wählt den Schnitt über font-weight). */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-slab-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --ink: #111110;
  --ink-soft: #2b2924;
  --paper: #ffffff;
  --paper-warm: #faf9f7;
  --paper-line: #e7e4de;        /* decorative hairlines only (hr, static dividers) — not for interactive borders */
  --border-interactive: #948a75; /* 3.4:1 on white — chips, form fields, persona-switch: needs to read as a real boundary */
  --accent: #ff4438;
  --accent-ink: #c9291f;    /* AA-safer shade — 5.5:1 on white, and white-on-this passes for button labels too */
  --accent-ink-hover: #a8221a;
  --accent-soft: #fff1ef;   /* tint for subtle fills */
  --muted: #5c584f;
  --muted-2: #75705f;       /* 4.95:1 on white — was #8a8578 (3.68:1, failed AA for small text) */

  /* Feedback */
  --ok: #1f7a4d;

  /* Typography */
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Roboto Slab", Georgia, serif;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.4vw, 3.6rem);
  --step-5:  clamp(3rem, 2.05rem + 4.4vw, 5.6rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3.25rem;
  --sp-6: 5.25rem;
  --sp-7: 8rem;

  --container: 1280px;
  --container-narrow: 780px;
  --radius-sm: 3px;
  --radius-bento: 20px;  /* deliberate exception for the bento tile mosaic only — the rest of the system stays sharp */
  --border: 1px solid var(--paper-line);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Headings on mobile: the desktop-tuned scale wraps a lot on a narrow
   screen (long German compound words don't help). Scale down --step-1
   through --step-5 specifically — every heading uses one of these tokens,
   whether via the bare h1–h4 rule or a component-specific override, so
   this reaches all of them without hunting down each selector. --step--1
   and --step-0 (body copy, buttons, labels) are left alone on purpose. */
@media (max-width: 47.99em) {
  :root {
    --step-1: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    --step-2: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
    --step-3: clamp(1.6rem, 1.4rem + 1vw, 1.95rem);
    --step-4: clamp(2rem, 1.65rem + 1.6vw, 2.5rem);
    --step-5: clamp(2.4rem, 1.85rem + 2.6vw, 3rem);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Flex/grid items default to min-width:auto, i.e. they refuse to shrink
   below their content's natural size (a heading's full-line width, a
   table's explicit min-width, an unbreakable word) — this is the standard
   cause of horizontal page overflow in any flex/grid layout ("flexbug #6").
   Resetting it to 0 everywhere is safe: it only changes behavior for
   flex/grid items, where auto ≠ 0; normal block/inline elements already
   behave as if min-width were 0. */
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.45em; /* breathing room to its own text — kept well below inter-group gaps so proximity still reads correctly */
  /* Long German compound words (Flachdachrichtlinie, Untergrundvorbereitung …)
     don't wrap by default and silently overflow their box at large heading
     sizes — invisible in layout-box measurements since overflow is visible,
     but it still widens the actual page. hyphens:auto (lang="de" is set on
     <html> sitewide) gives proper break points; break-word is the fallback
     for anywhere hyphenation doesn't apply. */
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; }
p { max-width: 68ch; overflow-wrap: break-word; }
p.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-3); }
@media (min-width: 56em) { .container { padding-inline: var(--sp-4); } }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--dark { background: var(--ink); color: #f2f1ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--warm { background: var(--paper-warm); }
.section--border-top { border-top: var(--border); }
.hr { border: 0; border-top: var(--border); margin-block: var(--sp-5); }

.grid { display: grid; gap: var(--sp-4); }
@media (min-width: 56em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--12 { grid-template-columns: repeat(12, 1fr); }
  /* Side-by-side text groups (heading+paragraph columns) need an explicit
     boundary — whitespace alone reads ambiguously once paragraphs wrap to
     different heights. One vertical rule per column gap, none before the
     first item. Only meaningful once items actually sit in a row. */
  .grid--divided > *:not(:first-child) { border-left: 1px solid var(--paper-line); padding-left: var(--sp-4); }
  .section--dark .grid--divided > *:not(:first-child) { border-left-color: rgba(255, 255, 255, 0.15); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 0.5em; height: 0.5em; background: var(--accent); display: inline-block; }
.section-head { max-width: 62ch; margin-bottom: var(--sp-5); }
/* A section-head wrapping a page's own <h1> holds a display-size headline,
   not body-sized copy. `ch` here is computed against the wrapper's own
   body font-size (~62ch ≈ 600px), which is far too narrow once the h1's
   much larger font-size renders inside that box — words wrap/hyphenate
   across several lines instead of a normal 2–3 line headline. Use an
   absolute width sized to the display type instead. */
.section-head:has(> h1) { max-width: 920px; }
.section-head:has(> h1) > p.lede { max-width: 58ch; }
.section-head > .eyebrow { margin-bottom: var(--sp-2); }
.section-head h2 { margin-bottom: var(--sp-2); }
.section-head-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.9em 1.5em;
  font-weight: 700; font-size: var(--step--1); letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-ink); color: #fff; } /* raw --accent is only 3.4:1 for white text — fails AA at button-label size */
.btn-primary:hover { background: var(--accent-ink-hover); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(201,41,31,0.55); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--paper-line);
  padding-bottom: 0.15em;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), gap 0.18s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent-ink); gap: 0.75em; }
.link-arrow svg { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { border-color: var(--paper-line); box-shadow: 0 8px 24px -20px rgba(17,17,16,0.25); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-block: 1.1rem;
}
.site-header__logo { display: flex; align-items: center; flex: none; }
.site-header__logo img { height: 30px; width: auto; }
.site-nav { display: none; }
@media (min-width: 68em) {
  .site-nav { display: flex; align-items: center; gap: var(--sp-4); margin-inline: auto; padding-left: var(--sp-4); }
  .site-nav ul { display: flex; gap: var(--sp-3); }
  .site-nav a { font-weight: 500; font-size: var(--step--1); padding: 0.4em 0; border-bottom: 2px solid transparent; }
  .site-nav a:hover { border-color: var(--accent); color: var(--accent-ink); }
}
.site-header__actions { display: flex; align-items: center; gap: var(--sp-2); }
/* Below the nav breakpoint there isn't room for logo + pill + CTA + burger in
   one row — both duplicated in the mobile-nav drawer already, so hide them
   here instead of letting the header overflow the viewport. */
.site-header__actions .persona-switch,
.site-header__actions > .btn-primary { display: none; }
@media (min-width: 68em) {
  .site-header__actions .persona-switch { display: inline-flex; }
  .site-header__actions > .btn-primary { display: inline-flex; }
}

.persona-switch {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border-interactive); border-radius: 999px; padding: 3px;
  font-size: var(--step--1); font-weight: 700;
}
.persona-switch a {
  padding: 0.45em 0.95em; border-radius: 999px; color: var(--muted); transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.persona-switch a[aria-pressed="true"] { background: var(--ink); color: #fff; }
.persona-switch a:not([aria-pressed="true"]):hover { color: var(--ink); }

.nav-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
@media (min-width: 68em) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: flex; flex-direction: column; padding: var(--sp-3);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(-100%); transition: transform 0.28s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; padding-block: 0.7rem; }
.mobile-nav__top img { height: 26px; }
.mobile-nav ul { margin-top: var(--sp-4); display: flex; flex-direction: column; }
.mobile-nav ul a { display: block; padding: 0.9em 0; font-family: var(--font-head); font-size: var(--step-2); border-bottom: var(--border); }
.mobile-nav__foot { margin-top: auto; padding-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.mobile-nav__foot .persona-switch { align-self: flex-start; } /* size to content — only the CTA button below it should stretch full-width */
@media (min-width: 68em) { .mobile-nav { display: none; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: var(--sp-2); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4em; font-size: var(--step--1); color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5em; color: var(--paper-line); }

/* ---------- Hero (Home) ---------- */
.hero { padding-top: var(--sp-6); padding-bottom: var(--sp-5); }
.hero__claim { font-size: var(--step-5); max-width: 16ch; margin-bottom: var(--sp-3); }
.hero__claim em { font-style: normal; color: var(--accent-ink); }
.hero__row { display: grid; gap: var(--sp-5); }
@media (min-width: 62em) { .hero__row { grid-template-columns: 1.1fr 0.9fr; align-items: end; } }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5) var(--sp-4); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: var(--border); position: relative; }
.hero__facts::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 3px; background: var(--accent);
}
.hero__fact { text-align: center; max-width: 220px; }
.hero__fact b { display: block; font-family: var(--font-head); font-size: var(--step-2); }
.hero__fact span { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 0.35em; }
@media (min-width: 56em) {
  .hero__fact:not(:first-child) { border-left: 1px solid var(--paper-line); padding-left: var(--sp-4); }
}
.hero__media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); box-shadow: 14px 14px 0 0 var(--accent); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 36em) { .hero__media { box-shadow: 8px 8px 0 0 var(--accent); } }

/* ---------- Persona picker ---------- */
.persona-picker { display: grid; gap: var(--sp-3); }
@media (min-width: 56em) { .persona-picker { grid-template-columns: 1fr 1fr; } }
.persona-card {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; text-align: left;
  padding: var(--sp-5) var(--sp-4);
  color: #fff;
  border-radius: var(--radius-bento);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.persona-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(17,17,16,0.35); }
.persona-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 0.6s var(--ease);
}
.persona-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17,17,16,0.15) 0%, rgba(17,17,16,0.85) 85%);
}
.persona-card:hover img { transform: scale(1.045); }
.persona-card .eyebrow { color: #ffb3ac; }
.persona-card .eyebrow::before { background: #ffb3ac; }
.persona-card h3 { color: #fff; font-size: var(--step-3); margin-bottom: var(--sp-2); }
.persona-card p { color: rgba(255,255,255,0.82); margin-bottom: var(--sp-3); }
.persona-card__tags { display: flex; flex-wrap: wrap; gap: 0.5em; margin-bottom: var(--sp-4); }
.persona-card__tags span { font-size: var(--step--1); border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 0.3em 0.8em; }
.persona-card__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.persona-card.is-active { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ---------- Media frame (generic cropped image box, sizing set inline per use) ---------- */
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Willkommens-Splash + Frame (nur /visitenkarte/, mobil) ----------
   Fresh from a business-card QR scan on a phone: a brief full-screen
   splash (the "app launch" moment) fades in, holds, then disappears
   completely via a small inline script — leaving just the Planer/
   Verarbeiter picker, sized via flexbox to fill exactly one screen
   (a "frame") with no scrolling needed to see both choices. Desktop
   keeps a normal static heading instead of the overlay/frame behavior. */
.welcome-splash-overlay { display: none; }
@media (max-width: 47.99em) {
  .welcome-static { display: none; }
  .welcome-splash-overlay {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
    position: fixed; inset: 0; z-index: 500;
    background: var(--ink); color: #fff; text-align: center; padding: var(--sp-4);
    /* Sofort voll sichtbar, kein Einblenden — ein Fade von opacity:0 würde
       die echte Seite darunter für einen Moment durchscheinen lassen. Nur
       das spätere Ausblenden (per JS) ist animiert. */
  }
  .welcome-splash-overlay img { height: 30px; margin-bottom: var(--sp-2); }
  .welcome-splash-overlay .eyebrow { color: #ffb3ac; }
  .welcome-splash-overlay .eyebrow::before { background: #ffb3ac; }
  .welcome-splash-overlay__heading { color: #fff; font-family: var(--font-head); font-size: var(--step-3); max-width: 14ch; margin: 0; }

  body[data-frame-page] { display: flex; flex-direction: column; min-height: 100dvh; }
  body[data-frame-page] main { flex: 1; display: flex; flex-direction: column; }
  body[data-frame-page] [data-persona-frame] { flex: 1; display: flex; flex-direction: column; padding-block: var(--sp-3); }
  body[data-frame-page] [data-persona-frame] .container,
  body[data-frame-page] [data-persona-frame] .persona-picker { flex: 1; display: flex; flex-direction: column; }
  body[data-frame-page] [data-persona-frame] .persona-card { flex: 1; min-height: 0; padding: var(--sp-4); overflow-y: auto; }
  body[data-frame-page] [data-persona-frame] .persona-card p,
  body[data-frame-page] [data-persona-frame] .persona-card__tags { display: none; }
  body[data-frame-page] [data-persona-frame] .persona-card h3 { margin-bottom: var(--sp-2); }
}

/* ---------- Bento grid (Lösungen) ----------
   An asymmetric tile mosaic — one featured tile plus supporting tiles of
   varying size, each a full-bleed photo with an overlay label — instead
   of a uniform numbered thumbnail+headline stack (which read as a news/
   article feed rather than a set of distinct solutions). Deliberately
   its own visual language (soft rounded tiles, elevation on hover),
   scoped to this one component; the rest of the system stays sharp/flat. */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 56em) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; grid-template-areas: "a a b c" "a a d e"; }
  .bento-grid--split { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; grid-template-areas: "a b" "a c"; }
}
.bento-item {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: var(--radius-bento);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bento-item:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(17,17,16,0.35); }
.bento-item picture, .bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-item img { transition: transform 0.5s var(--ease); }
.bento-item:hover img { transform: scale(1.05); }
.bento-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(17,17,16,0.85) 0%, rgba(17,17,16,0.2) 55%, rgba(17,17,16,0) 78%);
}
.bento-item__body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-3); color: #fff; }
.bento-item__body h3 { color: #fff; margin-bottom: 0.25em; font-size: var(--step-1); }
.bento-item__body p { color: rgba(255,255,255,0.85); font-size: var(--step--1); margin-bottom: 0.6em; max-width: 40ch; }
.bento-item__cta { display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--step--1); font-weight: 700; color: #fff; }
.bento-item__cta svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.bento-item:hover .bento-item__cta svg { transform: translateX(3px); }
/* grid-area:a only means something once grid-template-areas defines "a"
   (≥56em) — applying it unconditionally makes the grid invent extra
   implicit columns for the unmatched named line, overflowing on mobile. */
@media (min-width: 56em) { .bento-item--lg { grid-area: a; } }
.bento-item--lg { aspect-ratio: 4/5; } /* only takes effect on mobile — the explicit ≥56em row/column span sizes it there instead; taller ratio gives the bigger heading room without being clipped */
@media (max-width: 22em) { .bento-item--lg { aspect-ratio: 3/5; } } /* extra headroom for longer titles ("WIROBIT Notabdichtung") on very narrow phones */
.bento-item--lg .bento-item__body { padding: var(--sp-4); }
.bento-item--lg h3 { font-size: var(--step-2); }
.bento-item--lg p { font-size: var(--step-0); max-width: 46ch; }
@media (min-width: 56em) { .bento-item--lg h3 { font-size: var(--step-3); } }

/* ---------- Cards (used sparingly) ---------- */
.card { border: var(--border); padding: var(--sp-4); border-radius: var(--radius-sm); transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.card--product { display: flex; flex-direction: column; height: 100%; }
.card--product:hover { transform: translateY(-4px); border-color: var(--ink); }
.card--product .card__media { aspect-ratio: 3/2; overflow: hidden; margin: calc(var(--sp-4) * -1) calc(var(--sp-4) * -1) var(--sp-3); border-bottom: var(--border); }
.card--product .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--product h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.card--product p { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--sp-3); }
.card--product .link-arrow { margin-top: auto; }

/* ---------- Stat / trust strip ---------- */
.stat-strip { display: grid; gap: var(--sp-3); }
@media (min-width: 56em) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip__item {
  background: var(--paper-warm); border: var(--border); border-radius: var(--radius-bento);
  padding: var(--sp-4);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.stat-strip__item:hover { transform: translateY(-3px); border-color: var(--ink); }
.stat-strip__item b { display: block; font-family: var(--font-head); font-size: var(--step-3); }
.stat-strip__item span { color: var(--muted); font-size: var(--step--1); }

/* ---------- Tables (technical data) ---------- */
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--radius-sm); }
table.data-table { min-width: 480px; }
.data-table th, .data-table td { text-align: left; padding: 0.9em 1.1em; font-size: var(--step--1); border-bottom: var(--border); }
.data-table th { font-weight: 700; background: var(--paper-warm); }
.data-table tr:last-child td { border-bottom: none; }

/* Below 42em: stack each row as a label:value card instead of a
   horizontally scrollable table — column headers move into a ::before on
   each cell (from data-label, see analysis/inject_table_labels.py) and
   stay screen-reader-accessible via the visually-hidden <thead>. No more
   sideways swiping to read a two- or three-column spec table on a phone. */
@media (max-width: 42em) {
  .table-wrap { overflow-x: visible; border: none; border-radius: 0; }
  table.data-table { min-width: 0; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table tr { border: var(--border); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2); }
  .data-table tr:last-child { margin-bottom: 0; }
  .data-table td {
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
    padding: 0.5em 0; border-bottom: 1px solid var(--paper-line); text-align: right;
  }
  .data-table td:last-child { border-bottom: none; }
  .data-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted-2); text-align: left; flex: none; max-width: 55%; }
}

/* ---------- FAQ / Accordion ---------- */
.accordion__item { border-bottom: var(--border); }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding-block: var(--sp-3); text-align: left; font-family: var(--font-head); font-size: var(--step-1); font-weight: 700;
  hyphens: auto; overflow-wrap: break-word;
  transition: color 0.15s var(--ease);
}
.accordion__trigger:hover { color: var(--accent-ink); }
.accordion__trigger svg { flex: none; width: 20px; height: 20px; color: var(--accent-ink); transition: transform 0.25s var(--ease); }
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.accordion__panel__inner { padding-bottom: var(--sp-4); color: var(--muted); max-width: 68ch; }

/* ---------- FAQ page: search, quick-jump, categories ---------- */
.faq-search { position: relative; max-width: 480px; margin: 0 auto var(--sp-5); }
.faq-search input {
  width: 100%; padding: 0.9em 1.1em 0.9em 2.7em; border: 1.5px solid var(--border-interactive);
  border-radius: 999px; background: var(--paper); font-size: var(--step-0);
}
.faq-search input:focus { border-color: var(--ink); }
.faq-search svg { position: absolute; left: 0.95em; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; }

.faq-jumpnav { display: flex; flex-wrap: wrap; gap: 0.6em; justify-content: center; margin-bottom: var(--sp-6); }
.faq-jumpnav a { border: 1.5px solid var(--border-interactive); border-radius: 999px; padding: 0.45em 1.05em; font-size: var(--step--1); font-weight: 600; }
.faq-jumpnav a:hover { border-color: var(--ink); background: var(--paper-warm); }

.faq-category { margin-bottom: var(--sp-6); scroll-margin-top: 6rem; }
.faq-category[hidden] { display: none; }
.faq-category__head { display: flex; align-items: baseline; gap: 0.85em; margin-bottom: var(--sp-2); }
.faq-category__index { font-family: var(--font-head); font-size: var(--step-2); color: var(--paper-line); flex: none; }
.faq-category__head h2 { margin: 0; }
.faq-category__count { color: var(--muted-2); font-size: var(--step--1); margin-left: auto; }

.faq-empty { display: none; text-align: center; color: var(--muted); padding: var(--sp-6) 0; }
.faq-empty.is-visible { display: block; }

/* ---------- Download center ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-4); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); border-bottom: var(--border); }
.filter-group { display: flex; flex-direction: column; gap: 0.5em; }
.filter-group__label { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); }
.filter-group__opts { display: flex; flex-wrap: wrap; gap: 0.5em; }
.chip {
  border: 1.5px solid var(--border-interactive); border-radius: 999px; padding: 0.4em 0.9em; font-size: var(--step--1); font-weight: 600;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:not([aria-pressed="true"]):hover { border-color: var(--ink); }

.doc-list { display: flex; flex-direction: column; border-top: var(--border); }
.doc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon text" "action action";
  gap: var(--sp-2) var(--sp-3);
  align-items: center;
  padding-block: var(--sp-3); border-bottom: var(--border);
}
.doc-row__icon { grid-area: icon; width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border: var(--border); border-radius: var(--radius-sm); color: var(--accent-ink); }
.doc-row__icon svg { width: 20px; height: 20px; }
.doc-row > div:nth-child(2) { grid-area: text; }
.doc-row__title { font-weight: 700; hyphens: auto; overflow-wrap: break-word; }
.doc-row__meta { font-size: var(--step--1); color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: 0.2em; }
.doc-row__meta span:not(:last-child)::after { content: "·"; margin-left: 0.6em; color: var(--paper-line); }
.doc-row__action {
  grid-area: action; justify-self: start; margin-left: calc(40px + var(--sp-3));
  font-size: var(--step--1); display: flex; align-items: center; gap: 0.6em;
}
@media (min-width: 34em) {
  .doc-row { grid-template-columns: auto 1fr auto; grid-template-areas: "icon text action"; gap: var(--sp-3); }
  .doc-row__action { margin-left: 0; }
}
.doc-row__preview {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border-interactive);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.doc-row__preview:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-warm); }
.doc-row__preview svg { width: 17px; height: 17px; }
.doc-count { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--sp-2); }
.no-results { padding: var(--sp-5) 0; text-align: center; color: var(--muted); display: none; }
.no-results.is-visible { display: block; }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 0.5em; margin-bottom: var(--sp-3); }
.form-field label { font-size: var(--step--1); font-weight: 700; }
.form-field input, .form-field textarea, .form-field select {
  border: 1.5px solid var(--border-interactive); border-radius: var(--radius-sm); padding: 0.85em 1em; background: var(--paper);
  transition: border-color 0.15s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--ink); }
.form-row { display: grid; gap: var(--sp-3); }
@media (min-width: 42em) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--step--1); color: var(--muted-2); }

.contact-mailto p { color: var(--muted); max-width: 60ch; margin-bottom: var(--sp-3); }

/* ---------- Fact panel (E-E-A-T: Herausgeber, Prüfdatum, Quellen) ---------- */
/* Wiederverwendbare Komponente für Wissens-/Lösungs-/Produktseiten. Autor ist
   die Organisation (echte, verifizierte Angabe) statt einer erfundenen Person —
   siehe partials/BUILD-GUIDE.md, Abschnitt "Fachliche Einordnung". */
.fact-panel {
  border: var(--border); border-radius: var(--radius-sm); background: var(--paper-warm);
  padding: var(--sp-4); margin-block: var(--sp-5); font-size: var(--step--1); color: var(--muted);
}
.fact-panel__title { font-family: var(--font-head); font-size: var(--step-0); color: var(--ink); margin-bottom: var(--sp-3); }
.fact-panel dl { display: grid; gap: var(--sp-2) var(--sp-4); grid-template-columns: 1fr; margin: 0 0 var(--sp-3); }
@media (min-width: 42em) { .fact-panel dl { grid-template-columns: repeat(3, auto); } }
.fact-panel dl > div { display: flex; flex-direction: column; gap: 0.15em; }
.fact-panel dt { font-weight: 700; color: var(--muted-2); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; }
.fact-panel dd { margin: 0; color: var(--ink); }
.fact-panel__sources { margin: 0; padding-top: var(--sp-3); border-top: var(--border); }
.fact-panel__sources strong { color: var(--ink); }
.fact-panel__note { margin: var(--sp-2) 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfccc4; }
.site-footer a:hover { color: #fff; }
.site-footer__top { padding-block: var(--sp-6); display: grid; gap: var(--sp-5); }
@media (min-width: 56em) {
  .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .site-footer__top > *:not(:first-child) { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: var(--sp-4); }
}
.site-footer__brand img { height: 26px; margin-bottom: var(--sp-3); }
.site-footer__brand p { color: #9d9a92; font-size: var(--step--1); max-width: 32ch; }
.site-footer h5 { font-family: var(--font-body); color: #fff; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3); }
.site-footer li { margin-bottom: 0.7em; font-size: var(--step--1); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; font-size: var(--step--1); color: #8d8a82; }
.site-footer__bottom ul { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: var(--sp-3); top: -100px; background: var(--ink); color: #fff; padding: 0.8em 1.2em;
  z-index: 1000; transition: top 0.2s var(--ease); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--sp-3); }
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}
[data-persona-content] { display: none; }
[data-persona-content].is-active { display: block; }
.text-center { text-align: center; margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }

/* ---------- Chatbot (WIROBIT-Assistent) ---------- */
/* WhatsApp-FAB sitzt darunter (bottom: 1.25rem) — Chatbot rückt um dessen
   Höhe + Abstand nach oben (1.25rem + 60px-Höhe + 0.75rem Lücke = 5.75rem). */
.chatbot { position: fixed; right: 1.25rem; bottom: 5.75rem; z-index: 90; }

.whatsapp-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -12px rgba(17,17,16,0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(17,17,16,0.45); background: #20bd5a; }
.whatsapp-fab svg { width: 30px; height: 30px; }
.chatbot-fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--border-interactive);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -12px rgba(17,17,16,0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chatbot-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(17,17,16,0.45); }
.chatbot-fab .mascot { width: 40px; height: 40px; }
.chatbot-fab__badge {
  position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-ink); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.chatbot-fab__badge[hidden] { display: none; }

.chatbot-panel {
  position: fixed; right: 1.25rem; bottom: 10.5rem; z-index: 150;
  width: min(380px, calc(100vw - 2.5rem)); max-height: min(560px, calc(100vh - 8rem));
  background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px -20px rgba(17,17,16,0.35);
  display: flex; flex-direction: column; overflow: hidden;
}
.chatbot-panel[hidden] { display: none; }

.chatbot-panel__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: var(--border); background: var(--paper-warm); flex: none; }
.chatbot-panel__head .mascot { width: 34px; height: 34px; flex: none; }
.chatbot-panel__head-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.chatbot-panel__head-text strong { font-family: var(--font-head); }
.chatbot-panel__head-text span { font-size: var(--step--1); color: var(--muted); }
.chatbot-panel__head button { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.chatbot-panel__head button:hover { background: var(--paper-line); color: var(--ink); }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.chatbot-msg { max-width: 88%; padding: 0.6em 0.85em; border-radius: var(--radius-sm); font-size: var(--step--1); line-height: 1.55; }
.chatbot-msg--bot { align-self: flex-start; background: var(--paper-warm); border: var(--border); }
.chatbot-msg--bot[data-typing] { color: var(--muted-2); animation: chatbot-typing 1.1s ease-in-out infinite; }
@keyframes chatbot-typing { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.chatbot-msg--user { align-self: flex-end; background: var(--ink); color: #fff; }
.chatbot-msg a { font-weight: 700; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 2px; transition: color 0.15s var(--ease); }
.chatbot-msg--bot a { color: var(--accent-ink); }
.chatbot-msg--bot a:hover { color: var(--accent-ink-hover); }
.chatbot-msg--user a { color: #fff; }
.chatbot-msg--user a:hover { opacity: 0.85; }

.chatbot-input-row { display: flex; gap: 0.5em; padding: 0.75rem 1.1rem; border-top: var(--border); flex: none; }
.chatbot-input-row input { flex: 1; min-width: 0; border: 1.5px solid var(--border-interactive); border-radius: var(--radius-sm); padding: 0.65em 0.9em; background: var(--paper); }
.chatbot-input-row input:focus { border-color: var(--ink); }
.chatbot-input-row button { flex: none; width: 42px; display: flex; align-items: center; justify-content: center; background: var(--accent-ink); color: #fff; border-radius: var(--radius-sm); }
.chatbot-input-row button:hover { background: var(--accent-ink-hover); }

.chatbot-disclaimer { font-size: 11px; color: var(--muted-2); padding: 0 1.1rem 0.85rem; flex: none; }
.chatbot-disclaimer a { color: inherit; }

/* Mascot: animated house with a face */
.mascot-roof { fill: var(--accent); }
.mascot-wall { fill: var(--paper); stroke: var(--ink); stroke-width: 2.2; }
.mascot-chimney { fill: var(--ink); }
.mascot-eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: mascot-blink 4.6s ease-in-out infinite; }
.mascot-mouth { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.mascot-steam path { fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: mascot-steam 2.6s ease-in-out infinite; }
.mascot-steam path:nth-child(2) { animation-delay: 0.6s; }
.mascot-body { transform-box: fill-box; transform-origin: center; animation: mascot-bounce 3.4s ease-in-out infinite; }

@keyframes mascot-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes mascot-blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
@keyframes mascot-steam { 0% { opacity: 0; transform: translateY(3px); } 35% { opacity: 0.75; } 100% { opacity: 0; transform: translateY(-7px); } }

@media (max-width: 30em) {
  .whatsapp-fab { right: 1rem; bottom: 1rem; }
  .chatbot { right: 1rem; bottom: 5.25rem; }
  .chatbot-panel { right: 0.75rem; bottom: 9.5rem; }
}

/* ---------- PDF-Vorschau-Modal ---------- */
.pdf-modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-3); background: rgba(17, 17, 16, 0.72);
}
.pdf-modal[hidden] { display: none; }
.pdf-modal__panel {
  background: var(--paper); width: min(920px, 100%); height: min(85vh, 900px);
  border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}
.pdf-modal__head { display: flex; align-items: center; gap: var(--sp-3); padding: 0.9rem 1.1rem; border-bottom: var(--border); flex: none; }
.pdf-modal__head strong { flex: 1; min-width: 0; font-family: var(--font-head); font-size: var(--step-0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-modal__head a { font-size: var(--step--1); white-space: nowrap; flex: none; }
.pdf-modal__close {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.pdf-modal__close:hover { background: var(--paper-line); color: var(--ink); }
.pdf-modal__frame { flex: 1; border: 0; width: 100%; background: var(--paper-warm); }

/* ---------- Cookie-/Consent-Management ---------- */
.cookie-consent__banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper); border-top: 1.5px solid var(--border-interactive);
  box-shadow: 0 -20px 40px -24px rgba(17,17,16,0.35);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.cookie-consent__banner.is-visible { transform: translateY(0); }
.cookie-consent__text { flex: 1 1 420px; min-width: 0; }
.cookie-consent__text strong { display: block; font-family: var(--font-head); font-size: var(--step-0); margin-bottom: 0.3em; }
.cookie-consent__text p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.cookie-consent__text a { color: var(--accent-ink); }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); flex: none; }
.cookie-consent__actions .btn { white-space: nowrap; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: transparent; color: var(--muted); padding-inline: 0.9em; }
.btn-ghost:hover { color: var(--ink); background: var(--paper-warm); }

.cookie-consent__modal {
  position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-3); background: rgba(17, 17, 16, 0.72);
}
.cookie-consent__modal[hidden] { display: none; }
.cookie-consent__modal-inner {
  background: var(--paper); width: min(640px, 100%); max-height: min(85vh, 780px);
  border-radius: var(--radius-sm); overflow-y: auto; padding: var(--sp-4);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
}
.cookie-consent__modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.cookie-consent__modal-head h2 { margin: 0; font-size: var(--step-1); }
.cookie-consent__modal-head button { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.cookie-consent__modal-head button:hover { background: var(--paper-line); color: var(--ink); }
.cookie-consent__modal > p:first-of-type { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--sp-3); }

.cookie-consent__categories { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.cookie-consent__category { border: var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); background: var(--paper-warm); }
.cookie-consent__category-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4em; }
.cookie-consent__category-head strong { font-size: var(--step--1); }
.cookie-consent__category p { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }

.cookie-consent__switch { position: relative; flex: none; width: 42px; height: 24px; }
.cookie-consent__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cookie-consent__switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--paper-line);
  border: 1.5px solid var(--border-interactive); transition: background-color 0.18s var(--ease);
}
.cookie-consent__switch span::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 1px 3px rgba(17,17,16,0.4); transition: transform 0.18s var(--ease);
}
.cookie-consent__switch input:checked + span { background: var(--accent-ink); border-color: var(--accent-ink); }
.cookie-consent__switch input:checked + span::before { transform: translateX(18px); }
.cookie-consent__switch input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.cookie-consent__switch input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.cookie-consent__modal-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }

.chatbot-msg--gate { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6em; }
.chatbot-msg--gate .btn { align-self: flex-start; padding: 0.6em 1.1em; font-size: var(--step--1); }

@media (max-width: 40em) {
  .cookie-consent__banner { flex-direction: column; align-items: stretch; gap: var(--sp-2); padding: var(--sp-3); }
  /* flex-basis 420px wäre hier eine Höhen-, nicht Breitenvorgabe (Spalten-Layout) —
     ohne flex:none reißt das den Textblock samt Lücke vor den Buttons unnötig auf. */
  .cookie-consent__text { flex: none; }
  .cookie-consent__actions { justify-content: stretch; }
  .cookie-consent__actions .btn { flex: 1; justify-content: center; }
}
