/* Base component layer — shared by all three style options. Layout,
 * spacing and structure live here; color/shape/type come from
 * tokens.css (overridden per theme). */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Mobile hygiene (pawfect lesson): the loewe polaroid/door rotations
 * poke 2–10px past the viewport — clip the horizontal axis and kill
 * iOS's lateral bounce so pages never "wiggle" under touch scroll. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }

body {
  margin: 0;
  background: var(--kq-bg);
  color: var(--kq-ink);
  font-family: var(--kq-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Fragment jumps must not land under the sticky header. */
[id] { scroll-margin-top: 96px; }

img { max-width: 100%; height: auto; display: block; }
/* Photo figures: neutral by default (loewe styles them as polaroids). */
figure.kq-polaroid { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--kq-font-display);
  line-height: 1.15;
  margin: 0 0 var(--kq-4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--kq-4); }
a { color: var(--kq-primary); }

.kq-container { max-width: 1120px; margin: 0 auto; padding: 0 var(--kq-5); }

.kq-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--kq-text-sm);
  font-weight: 600;
  color: var(--kq-accent);
  margin-bottom: var(--kq-3);
}

.kq-lede { font-size: var(--kq-text-lg); color: var(--kq-ink-700); max-width: 62ch; }

/* ── Header ─────────────────────────────────────────────────── */
.kq-header {
  display: flex; align-items: center; gap: var(--kq-5);
  padding: var(--kq-4) var(--kq-5);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--kq-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kq-line);
}

.kq-brand { display: inline-flex; align-items: center; gap: var(--kq-3); text-decoration: none; color: var(--kq-ink); }
.kq-brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--kq-primary); color: var(--kq-primary-ink);
}
/* Julia's lion logo (inline <use> of the hidden _lionDefs symbol):
 * sized here so every theme's brand mark shows the lion instead of
 * the old heart glyph. */
.kq-brand__mark .kq-lion { height: 28px; width: auto; display: block; }
/* nowrap on both lines: the lockup is name + tagline, two lines max.
 * Without it the brand wrapped to 4 ragged lines below ~430px and
 * the header grew past the burger panel's old hardcoded offset. */
.kq-brand__text { font-weight: 700; line-height: 1.15; white-space: nowrap; }
.kq-brand__text small { display: block; font-weight: 500; color: var(--kq-ink-500); font-size: 0.72rem; }

.kq-nav { display: flex; align-items: center; gap: var(--kq-2); margin-left: auto; }
.kq-nav__item {
  display: inline-flex; align-items: center; gap: var(--kq-1);
  padding: var(--kq-2) var(--kq-3);
  border-radius: var(--kq-radius-sm);
  text-decoration: none; color: var(--kq-ink-700);
  font-weight: 500; font-size: 0.95rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.kq-nav__item:hover, .kq-nav__item[aria-current="page"] { color: var(--kq-ink); background: var(--kq-tint); }
.kq-nav__item--kurse { color: var(--kq-primary); font-weight: 700; }

.kq-nav__group { position: relative; }
.kq-nav__drop {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  display: none; flex-direction: column; padding: var(--kq-2);
  background: var(--kq-surface); border: 1px solid var(--kq-line);
  border-radius: var(--kq-radius-sm); box-shadow: var(--kq-shadow);
}
.kq-nav__group:hover .kq-nav__drop,
.kq-nav__group:focus-within .kq-nav__drop,
.kq-nav__group[data-open="true"] .kq-nav__drop { display: flex; }
.kq-nav__drop a {
  padding: var(--kq-3); border-radius: var(--kq-radius-sm);
  text-decoration: none; color: var(--kq-ink-700);
}
.kq-nav__drop a:hover { background: var(--kq-tint); color: var(--kq-ink); }

.kq-header__tools { display: flex; align-items: center; gap: var(--kq-2); }
.kq-lang { display: flex; gap: 2px; }
/* 44px touch targets on every header control (WCAG 2.5.8 / iOS HIG). */
.kq-lang a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 4px 10px; border-radius: var(--kq-radius-sm);
  text-decoration: none; text-transform: uppercase; font-size: 0.78rem; font-weight: 700;
  color: var(--kq-ink-500);
}
.kq-lang a[aria-current="true"] { background: var(--kq-tint); color: var(--kq-ink); }

.kq-theme-toggle, .kq-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--kq-radius-sm);
  border: 1px solid var(--kq-line); background: var(--kq-surface);
  color: var(--kq-ink-700); cursor: pointer;
}
/* theme.js flips the two glyphs via [data-theme] */
.hb-theme-toggle__ico--sun { display: none; }
[data-theme="dark"] .hb-theme-toggle__ico--sun { display: inline-flex; }
[data-theme="dark"] .hb-theme-toggle__ico--moon { display: none; }

.kq-burger { display: none; }

/* Mobile-only rows that live INSIDE the burger panel (lang switcher
 * on phones + the HB Labs lockup). Doubled-class selectors on
 * purpose: they must outrank the generic .kq-lang / .hb-trademark
 * display rules, otherwise the rows leak into the desktop nav bar
 * (the exact bug pawfect-landing already paid for). */
.kq-nav__lang.kq-lang { display: none; }
.kq-nav__trademark.hb-trademark { display: none; }

@media (max-width: 900px) {
  .kq-burger { display: inline-flex; }
  .kq-header__tools { margin-left: auto; }

  /* The panel hangs off the sticky header itself (top:100%), so it
   * always opens under the REAL header height — never a hardcoded
   * offset (the old inset:65px panel covered the brand whenever the
   * lockup was taller). Triple gate (opacity+transform+max-height)
   * animates open/close; visibility's asymmetric delay keeps the
   * closed panel from intercepting taps while still animating out. */
  .kq-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    display: flex; flex-direction: column; align-items: stretch;
    gap: 2px; margin: 0; padding: var(--kq-3) var(--kq-5) var(--kq-4);
    background: color-mix(in srgb, var(--kq-bg) 96%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--kq-line);
    box-shadow: var(--kq-shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    max-height: 0; overflow: hidden;
    transition:
      opacity 220ms ease,
      transform 280ms cubic-bezier(.16, 1, .3, 1),
      max-height 320ms cubic-bezier(.16, 1, .3, 1),
      visibility 0s linear 320ms;
  }
  .kq-nav[data-open="true"] {
    opacity: 1; visibility: visible; transform: translateY(0);
    /* Room below the tallest header; scrolls internally when short
     * (landscape phones). */
    max-height: calc(100dvh - 100px);
    overflow-y: auto; overscroll-behavior: contain;
    transition:
      opacity 220ms ease,
      transform 280ms cubic-bezier(.16, 1, .3, 1),
      max-height 320ms cubic-bezier(.16, 1, .3, 1),
      visibility 0s linear 0s;
  }
  .kq-nav__item { width: 100%; padding: var(--kq-3) var(--kq-4); border-radius: var(--kq-radius-sm); }

  /* The group label STAYS visible as a static heading: the
   * Familien/Einrichtungen dichotomy must read on mobile too
   * (hiding the button left Schulen/Kitas/Träger looking like
   * children of "Kurse für Familien"). */
  .kq-nav__group-btn {
    pointer-events: none;
    margin-top: var(--kq-2); padding-bottom: var(--kq-1);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; color: var(--kq-ink-500);
  }
  .kq-nav__group-btn svg { display: none; }
  .kq-nav__drop {
    position: static; display: flex; min-width: 0;
    border: 0; box-shadow: none; background: none;
    padding: 0 0 0 var(--kq-4);
  }
  .kq-nav__drop a { padding: var(--kq-3) var(--kq-4); }

  /* "crafted by HB Labs" — last row of the panel, centered under a
   * divider (Helmer's explicit ask; same lockup as the footer). */
  .kq-nav__trademark.hb-trademark {
    display: inline-flex;
    width: 100%; justify-content: center; min-height: 44px;
    margin-top: var(--kq-3); padding-top: var(--kq-4);
    border-top: 1px solid var(--kq-line);
    font-size: var(--kq-text-sm);
  }

  /* Row stagger on open (items → lang → trademark enters with the
   * panel itself). */
  .kq-nav[data-open="true"] > * { animation: kq-nav-row 320ms cubic-bezier(.16, 1, .3, 1) both; }
  .kq-nav[data-open="true"] > :nth-child(2) { animation-delay: 40ms; }
  .kq-nav[data-open="true"] > :nth-child(3) { animation-delay: 80ms; }
  .kq-nav[data-open="true"] > :nth-child(4) { animation-delay: 120ms; }
  .kq-nav[data-open="true"] > :nth-child(5) { animation-delay: 160ms; }
  .kq-nav[data-open="true"] > :nth-child(n+6) { animation-delay: 200ms; }
}

/* Browsers without backdrop-filter get a fully opaque panel instead
 * of un-blurred page text ghosting through the 4% gap. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .kq-nav[data-open="true"] { background: var(--kq-bg); }
}

@keyframes kq-nav-row {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kq-nav { transition: none; }
  .kq-nav[data-open="true"] { transition: none; }
  .kq-nav[data-open="true"] > * { animation: none; }
}

/* Phones: the lang switcher migrates from the header into the burger
 * panel — the header stays brand + theme + burger and the nowrap
 * lockup fits even at 360px. */
@media (max-width: 540px) {
  .kq-header { padding-inline: var(--kq-4); gap: var(--kq-3); }
  .kq-header__tools .kq-lang { display: none; }
  .kq-nav { padding-inline: var(--kq-4); }
  .kq-nav__lang.kq-lang {
    display: flex; justify-content: center; gap: var(--kq-2);
    margin-top: var(--kq-2);
  }
  .kq-brand__text { font-size: 0.95rem; }
}
/* Very narrow devices (≤350px): drop the tagline before it clips. */
@media (max-width: 350px) {
  .kq-brand__text small { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.kq-hero { padding: var(--kq-8) 0 var(--kq-7); }
.kq-hero__inner { display: grid; grid-template-columns: 3fr 2fr; gap: var(--kq-7); align-items: center; }
.kq-hero__copy h1 em { font-style: normal; color: var(--kq-primary); }
.kq-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--kq-3); margin-top: var(--kq-5); }
.kq-hero__media img { border-radius: var(--kq-radius); box-shadow: var(--kq-shadow); }
@media (max-width: 720px) {
  .kq-hero { padding: var(--kq-6) 0; }
  .kq-hero__inner { grid-template-columns: 1fr; }
}

/* ── Sections / cards ───────────────────────────────────────── */
/* padding-BLOCK, not the `padding: y 0` shorthand: 12 templates put
 * kq-section and kq-container on the SAME element, and the physical
 * shorthand (declared after .kq-container) was zeroing the
 * container's horizontal padding — text touched the screen edge on
 * every subpage below ~760px. */
.kq-section { padding-block: var(--kq-7); }
.kq-section--tint { background: var(--kq-tint); }
.kq-section__head { max-width: 70ch; margin-bottom: var(--kq-6); }

/* Section head with a portrait beside the copy (e.g. /kurse). */
.kq-section__head--media { max-width: none; display: grid; grid-template-columns: minmax(0, 70ch) auto; gap: var(--kq-6); align-items: center; }
.kq-section__head--media > img, .kq-section__head--media > figure img { width: min(300px, 36vw); }
/* A framed figure must shrink-wrap its photo, not stretch to the
 * grid column (the mat would hang beside the image). */
.kq-section__head--media > figure { width: fit-content; justify-self: center; }
@media (max-width: 720px) { .kq-section__head--media { grid-template-columns: 1fr; } }

/* Photo figure floated inside long-form prose (all themes; loewe
 * adds the polaroid frame on top). */
.kq-prose .kq-polaroid { float: right; width: min(300px, 44%); margin: 0 0 var(--kq-5) var(--kq-6); }
@media (max-width: 720px) { .kq-prose .kq-polaroid { float: none; width: 100%; margin: var(--kq-5) 0; } }

.kq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--kq-5); }
.kq-cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .kq-cards, .kq-cards--4 { grid-template-columns: 1fr; } }

.kq-card {
  display: flex; flex-direction: column; gap: var(--kq-3);
  padding: var(--kq-5);
  background: var(--kq-surface);
  border: 1px solid var(--kq-line);
  border-radius: var(--kq-radius);
  text-decoration: none; color: var(--kq-ink);
}
a.kq-card:hover { box-shadow: var(--kq-shadow); border-color: var(--kq-primary); }
.kq-card__ico { color: var(--kq-accent); }
.kq-card p { color: var(--kq-ink-700); margin: 0; flex: 1; }
.kq-card__more { color: var(--kq-primary); font-weight: 600; display: inline-flex; align-items: center; gap: var(--kq-1); }

.kq-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--kq-7); }
@media (max-width: 900px) { .kq-split { grid-template-columns: 1fr; } }

/* ── Home entry doors (Familien vs. Einrichtungen) ──────────── */
.kq-doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--kq-5); }
@media (max-width: 900px) { .kq-doors { grid-template-columns: 1fr; } }
.kq-door {
  padding: var(--kq-6); border-radius: var(--kq-radius);
  background: var(--kq-surface); border: 1px solid var(--kq-line);
  display: flex; flex-direction: column; gap: var(--kq-3);
}
.kq-door__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-weight: 600; }
/* min-height 44px: these branch links are primary touch targets. */
.kq-door__links a { display: inline-flex; align-items: center; gap: var(--kq-1); min-height: 44px; text-decoration: none; }
/* Eyebrows inside the flex doors must hug their text, not stretch
 * into a full-width banner (flex blockifies inline-block). */
.kq-door .kq-eyebrow { align-self: flex-start; }
.kq-door img { max-width: 240px; }
.kq-door figure { align-self: flex-start; }  /* shrink-wrap polaroid frames */
/* Both doors: the brand mark instead of a portrait (Julia, Sept 2026). */
.kq-door__logo { align-self: flex-start; }
.kq-door__logo img { width: 240px; height: auto; }
.kq-door__logo .kq-brand__mark { width: 120px; height: 120px; }
.kq-door__logo .kq-brand__mark .kq-lion { height: 88px; }
.kq-door .kq-btn { align-self: flex-start; margin-top: auto; }

.kq-cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--kq-5); flex-wrap: wrap; }
.kq-cta-band h2 { margin: 0; }

.kq-quote blockquote { margin: 0; text-align: center; }
.kq-quote p { font-family: var(--kq-font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--kq-ink); }
.kq-quote cite { color: var(--kq-ink-500); font-style: normal; }

/* ── Buttons ────────────────────────────────────────────────── */
.kq-btn {
  display: inline-flex; align-items: center; gap: var(--kq-2);
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.kq-btn--primary { background: var(--kq-primary); color: var(--kq-primary-ink); }
.kq-btn--primary:hover { filter: brightness(1.06); }
.kq-btn--ghost { border-color: var(--kq-line); color: var(--kq-ink); background: var(--kq-surface); }
.kq-btn--ghost:hover { border-color: var(--kq-primary); color: var(--kq-primary); }

/* ── Courses ────────────────────────────────────────────────── */
.kq-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--kq-5); }
.kq-course {
  padding: var(--kq-5); background: var(--kq-surface);
  border: 1px solid var(--kq-line); border-radius: var(--kq-radius);
  display: flex; flex-direction: column; gap: var(--kq-4);
}
.kq-course__facts { margin: 0; display: grid; gap: var(--kq-2); }
.kq-course__facts div { display: flex; gap: var(--kq-2); }
.kq-course__facts dt { font-weight: 600; color: var(--kq-ink-500); min-width: 100px; }
.kq-course__facts dd { margin: 0; }

.kq-empty { text-align: center; padding: var(--kq-7) var(--kq-5); }
.kq-empty .kq-btn, .kq-empty .kq-hero__ctas { justify-content: center; margin-top: var(--kq-4); }

/* ── Kontakt ────────────────────────────────────────────────── */
.kq-kontakt { display: grid; grid-template-columns: 2fr 3fr; gap: var(--kq-7); }
@media (max-width: 900px) { .kq-kontakt { grid-template-columns: 1fr; } }
/* Framed figures in the kontakt/ueber-mich columns shrink-wrap their
 * photo (same rule .kq-section__head--media already needed): when the
 * grid collapses to 1fr on tablet, a stretched figure left half a
 * mat empty beside the intrinsic-width image. */
.kq-kontakt figure.kq-polaroid,
.kq-ueber__media figure.kq-polaroid { width: fit-content; max-width: 100%; margin-inline: auto; }
.kq-kontakt__region { display: flex; align-items: center; gap: var(--kq-2); color: var(--kq-ink-700); font-weight: 600; }
.kq-kontakt__channels { display: flex; flex-direction: column; gap: var(--kq-3); }
.kq-channel {
  display: flex; align-items: center; gap: var(--kq-4);
  padding: var(--kq-4); border: 1px solid var(--kq-line);
  border-radius: var(--kq-radius); text-decoration: none; color: var(--kq-ink);
  background: var(--kq-surface);
}
.kq-channel:hover { border-color: var(--kq-primary); }
.kq-channel__ico { color: var(--kq-accent); }
.kq-channel__label { font-size: var(--kq-text-sm); color: var(--kq-ink-500); }
.kq-channel__value { font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────────── */
.kq-form { display: flex; flex-direction: column; gap: var(--kq-4); }
.kq-form label { display: flex; flex-direction: column; gap: var(--kq-1); font-weight: 600; font-size: var(--kq-text-sm); }
.kq-form input, .kq-form textarea, .kq-form select {
  padding: 12px 14px; border-radius: var(--kq-radius-sm);
  border: 1px solid var(--kq-line); background: var(--kq-surface);
  color: var(--kq-ink); font: inherit;
}
.kq-form input:focus, .kq-form textarea:focus, .kq-form select:focus { outline: 2px solid var(--kq-primary); border-color: transparent; }
.kq-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--kq-4); }
@media (max-width: 720px) { .kq-form__row { grid-template-columns: 1fr; } }
.kq-form__consent { flex-direction: row !important; align-items: flex-start; gap: var(--kq-3) !important; font-weight: 400 !important; color: var(--kq-ink-700); }
/* A finger-sized checkbox (the 13px default failed every touch
 * audit); accent-color keeps it on-palette in all 10 themes. */
.kq-form__consent input {
  margin-top: 1px; width: 24px; height: 24px; flex-shrink: 0;
  accent-color: var(--kq-primary);
}
.kq-form__note { padding: var(--kq-4); border-radius: var(--kq-radius-sm); font-weight: 600; }
.kq-form__note--ok { background: color-mix(in srgb, var(--kq-accent) 15%, transparent); color: var(--kq-accent); }
.kq-form__note--err { background: color-mix(in srgb, var(--kq-primary) 15%, transparent); color: var(--kq-primary); }
/* Honeypot: visually gone, still fillable by naive bots. Not
 * display:none — some bots skip obviously hidden fields. */
.kq-field-website { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Über mich ──────────────────────────────────────────────── */
.kq-ueber__media img { border-radius: var(--kq-radius); box-shadow: var(--kq-shadow); }
.kq-quali { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--kq-3); }
.kq-quali li { display: flex; align-items: center; gap: var(--kq-3); font-weight: 600; }
.kq-quali li svg { color: var(--kq-accent); flex-shrink: 0; }

/* Qualification cards (ueber-mich): 2×2 grid of token-styled boxes
   with a big icon badge, so every theme renders them decently;
   theme-loewe adds its amber blob + highlighter on top. */
.kq-quali-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--kq-5); margin-block: var(--kq-5); }
@media (max-width: 720px) { .kq-quali-grid { grid-template-columns: 1fr; } }
.kq-quali-card {
  display: flex; flex-direction: column; gap: var(--kq-3);
  padding: var(--kq-5);
  background: var(--kq-surface);
  border: 1px solid var(--kq-line);
  border-radius: var(--kq-radius);
}
.kq-quali-card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: color-mix(in srgb, var(--kq-accent) 16%, transparent);
  color: var(--kq-accent);
}
.kq-quali-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.kq-quali-card p { margin: 0; color: var(--kq-ink-700); }

/* ── "Mein Weg" journey (ueber-mich, ronda 5): big icon stations
   with short labels summarizing Julia's story. Desktop: horizontal
   6-across with a dashed connector behind the icons; mobile:
   stacked vertical with the connector running down the icon rail.
   Neutral tokens here so all 10 themes render it decently;
   theme-loewe adds amber blobs + orange connector on top. */
.kq-journey {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--kq-4);
}
/* Connector: one line behind all icons, from the first icon's
   center column to the last's (≈ half a column in from each edge);
   the opaque icon discs sit on top of it. */
.kq-journey::before {
  content: ""; position: absolute; top: 31px;
  left: calc(100% / 12); right: calc(100% / 12);
  border-top: 3px dashed color-mix(in srgb, var(--kq-accent) 40%, transparent);
}
.kq-journey__step {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--kq-3);
}
.kq-journey__ico {
  position: relative; z-index: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in srgb, var(--kq-accent) 16%, var(--kq-bg));
  color: var(--kq-accent);
}
.kq-journey__label { margin: 0; font-weight: 600; font-size: 0.92rem; line-height: 1.45; color: var(--kq-ink-700); }
@media (max-width: 900px) {
  .kq-journey { grid-template-columns: 1fr; gap: var(--kq-5); }
  .kq-journey::before { content: none; }
  .kq-journey__step { flex-direction: row; text-align: left; gap: var(--kq-4); align-items: center; }
  .kq-journey__ico { width: 56px; height: 56px; }
  .kq-journey__step:not(:last-child)::after {
    content: ""; position: absolute; left: 26px; top: 62px;
    bottom: calc(-1 * var(--kq-5));
    border-left: 3px dashed color-mix(in srgb, var(--kq-accent) 40%, transparent);
  }
}

/* ── Long-form prose (curated copy pages) ───────────────────── */
.kq-prose { max-width: 76ch; display: flow-root; /* contain floated photo figures */ }
.kq-prose h1 { margin-bottom: var(--kq-5); }
.kq-prose h2 { margin-top: var(--kq-7); font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.kq-prose p { color: var(--kq-ink-700); }
.kq-prose p strong { color: var(--kq-ink); }
.kq-prose ul { color: var(--kq-ink-700); padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--kq-2); margin: 0 0 var(--kq-4); }
.kq-prose li::marker { color: var(--kq-primary); }
.kq-prose .kq-btn { margin-top: var(--kq-4); }
.kq-quote-inline { margin: var(--kq-6) 0 0; padding-left: var(--kq-5); border-left: 3px solid var(--kq-primary); }
.kq-quote-inline p { font-family: var(--kq-font-display); font-size: var(--kq-text-lg); color: var(--kq-ink); margin-bottom: var(--kq-2); }
.kq-quote-inline cite { color: var(--kq-ink-500); font-style: normal; }

/* ── Prose bullet lists as UI objects (Einrichtungen pages, ronda 5).
   Copy stays 1:1 — presentation only. Two flavors by content type:
   .kq-facts    — compact logistics rows (duration, booking, place,
                  material): tinted rows with a small inline icon.
   .kq-benefits — outcome/need tiles: token-styled cards with the
                  icon in a soft accent blob (echoes .kq-quali-card
                  so every theme renders them decently).
   Declared after the .kq-prose rules on purpose: same specificity,
   later source order wins over `.kq-prose ul`. */
ul.kq-facts {
  list-style: none; padding: 0; margin: 0 0 var(--kq-5);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--kq-3);
  clear: both; /* grids are BFC roots: don't let a floated polaroid squeeze them */
}
ul.kq-facts li {
  display: flex; align-items: flex-start; gap: var(--kq-3);
  padding: 10px 14px; border-radius: var(--kq-radius-sm);
  background: var(--kq-tint);
  color: var(--kq-ink); font-weight: 500;
}
ul.kq-facts li svg { flex-shrink: 0; margin-top: 4px; color: var(--kq-accent); }
ul.kq-benefits {
  list-style: none; padding: 0; margin: 0 0 var(--kq-5);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--kq-4);
  clear: both; /* see .kq-facts */
}
ul.kq-benefits li {
  display: flex; align-items: flex-start; gap: var(--kq-3);
  padding: var(--kq-4);
  background: var(--kq-surface); border: 1px solid var(--kq-line);
  border-radius: var(--kq-radius);
  color: var(--kq-ink-700);
}
.kq-benefits__ico {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--kq-accent) 16%, transparent);
  color: var(--kq-accent);
}
@media (max-width: 720px) { ul.kq-facts, ul.kq-benefits { grid-template-columns: 1fr; } }

/* ── Legal ──────────────────────────────────────────────────── */
.kq-legal { max-width: 76ch; }
.kq-legal h2 { font-size: 1.2rem; margin-top: var(--kq-6); }
.kq-legal__note { padding: var(--kq-3) var(--kq-4); background: var(--kq-tint); border-radius: var(--kq-radius-sm); font-size: var(--kq-text-sm); }

/* ── Footer ─────────────────────────────────────────────────── */
.kq-footer { border-top: 1px solid var(--kq-line); background: var(--kq-tint); margin-top: var(--kq-8); }
.kq-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--kq-6); padding-top: var(--kq-7); padding-bottom: var(--kq-6); }
@media (max-width: 900px) { .kq-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .kq-footer__inner { grid-template-columns: 1fr; } }
.kq-footer__lede { color: var(--kq-ink-700); margin-top: var(--kq-4); }
.kq-footer__col h4 { margin-bottom: var(--kq-3); }
.kq-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--kq-2); }
.kq-footer__col a { color: var(--kq-ink-700); text-decoration: none; }
.kq-footer__col a:hover { color: var(--kq-primary); }
/* Touch devices get taller footer link rows. */
@media (max-width: 900px) {
  .kq-footer__col ul { gap: 0; }
  .kq-footer__col a { display: inline-block; padding: 10px 0; }
  .kq-footer__bottom .hb-trademark { min-height: 44px; }
}
.kq-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--kq-3);
  padding-top: var(--kq-4); padding-bottom: var(--kq-5);
  border-top: 1px solid var(--kq-line);
  color: var(--kq-ink-500); font-size: var(--kq-text-sm);
}
/* The © line must sit on the same vertical center as the trademark
 * group — kill the global paragraph bottom margin here. */
.kq-footer__bottom p { margin: 0; }
.kq-footer__meta { display: inline-flex; align-items: center; gap: var(--kq-4); flex-wrap: wrap; }
.hb-trademark { display: inline-flex; align-items: center; gap: var(--kq-2); text-decoration: none; color: var(--kq-ink-500); }
.hb-trademark:hover, .hb-trademark:hover .hb-trademark__name { color: var(--kq-ink); }
.hb-trademark__name { font-weight: 700; }
/* Mono logo pair from the shared uikit brand set (same lockup as
   pawfect-landing): ink version by day, paper version by night,
   swapped via [data-theme] like the theme-toggle glyphs. */
.hb-trademark__logo { height: 16px; width: auto; }
.hb-trademark__logo--light { display: inline-block; }
.hb-trademark__logo--dark  { display: none; }
[data-theme="dark"] .hb-trademark__logo--light { display: none; }
[data-theme="dark"] .hb-trademark__logo--dark  { display: inline-block; }
.kq-build-info { color: var(--kq-ink-500); }

/* ── Cookie banner ──────────────────────────────────────────── */
.kq-cookies {
  position: fixed; inset: auto var(--kq-4) var(--kq-4) var(--kq-4); z-index: 100;
  display: none; justify-content: center;
}
.kq-cookies[data-open="true"] { display: flex; }
.kq-cookies__inner {
  max-width: 560px; padding: var(--kq-5);
  background: var(--kq-surface); border: 1px solid var(--kq-line);
  border-radius: var(--kq-radius); box-shadow: var(--kq-shadow);
}
.kq-cookies__eyebrow { display: flex; align-items: center; gap: var(--kq-2); color: var(--kq-accent); font-weight: 700; font-size: var(--kq-text-sm); margin: 0 0 var(--kq-2); }
.kq-cookies__title { margin-bottom: var(--kq-2); }
.kq-cookies__body, .kq-cookies__cat { color: var(--kq-ink-700); font-size: var(--kq-text-sm); }
.kq-cookies__actions { display: flex; justify-content: flex-end; margin-top: var(--kq-4); }
