/* HEIMWISSEN – Designsystem
   Palette: warmes Papier, tiefes Waldgrün als Schrift, Terrakotta als einziger Akzent.
   Radius-System: 6px für alles (Buttons, Felder, Bilder, Karten). */

:root {
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --surface: #fbfaf7;
  --ink: #17211d;
  --ink-2: #3c4641;
  --muted: #5d6661;
  --line: rgba(23, 33, 29, 0.13);
  --accent: #b4472a;
  --accent-ink: #fbf7f2;
  --accent-soft: rgba(180, 71, 42, 0.1);
  --forest: #1c2b25;
  --forest-ink: #e9e5dd;
  --scrim: rgba(18, 22, 20, 0.52);
  --shadow: 0 18px 40px -24px rgba(40, 30, 20, 0.35);
  --radius: 6px;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --f-display: "Playfair Display", "Times New Roman", serif;
  --f-sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c130f;
    --paper-2: rgba(22, 34, 28, 0.62);
    --surface: rgba(20, 31, 26, 0.86);
    --ink: #ece8e1;
    --ink-2: #cfcac1;
    --muted: #a3a79f;
    --line: rgba(233, 205, 150, 0.14);
    --accent: #d9ab5c;
    --accent-ink: #1a1206;
    --accent-soft: rgba(217, 171, 92, 0.14);
    --forest: rgba(6, 10, 8, 0.78);
    --forest-ink: #e2ddd4;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c130f;
  --paper-2: rgba(22, 34, 28, 0.62);
  --surface: rgba(20, 31, 26, 0.86);
  --ink: #ece8e1;
  --ink-2: #cfcac1;
  --muted: #a3a79f;
  --line: rgba(233, 205, 150, 0.14);
  --accent: #d9ab5c;
  --accent-ink: #1a1206;
  --accent-soft: rgba(217, 171, 92, 0.14);
  --forest: rgba(6, 10, 8, 0.78);
  --forest-ink: #e2ddd4;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.kicker { font-size: 0.8rem; font-weight: 500; color: var(--accent); letter-spacing: 0.01em; }
.eyebrow { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.demo {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px;
  border: 1px dashed currentColor; color: var(--muted); vertical-align: middle; white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 18px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; font-size: 0.95rem; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform .35s var(--ease), background .3s;
}
.btn .btn__ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px;
  background: var(--accent-ink); color: var(--accent); font-size: 1.05rem;
  transition: transform .35s var(--ease);
}
.btn:hover .btn__ico { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost .btn__ico { background: var(--accent); color: var(--accent-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s, gap .3s var(--ease); }
.link-arrow:hover { border-color: var(--accent); gap: 12px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-sans); font-weight: 600; letter-spacing: 0.24em; font-size: 1rem; }
.logo__mark { width: 18px; height: 18px; flex: none; }
.logo__mark path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.logo__mark rect { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Header */
.header { position: absolute; inset: 0 0 auto 0; z-index: 30; color: #f6f2ec; }
.header--solid { position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); font-size: 0.9rem; }
.nav--right { justify-content: flex-end; align-items: center; }
.nav a { opacity: 0.88; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); background: transparent; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); cursor: pointer; font-size: 1.1rem; }
.menu-btn { display: none; }
.catbar { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.catbar__list { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; font-size: 0.82rem; padding: 11px 0; white-space: nowrap; }
.catbar__list::-webkit-scrollbar { display: none; }
.catbar__list a { opacity: 0.8; }
.catbar__list a:hover { opacity: 1; }

.drawer { position: fixed; inset: 0; z-index: 60; background: var(--paper); color: var(--ink); padding: 20px var(--gutter) 40px; transform: translateY(-100%); transition: transform .5s var(--ease); overflow-y: auto; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.drawer__nav { display: grid; gap: 4px; margin-top: 28px; font-family: var(--f-display); font-size: 2rem; }
.drawer__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; background: var(--surface); transition: border-color .2s, background .2s; cursor: pointer; }
.chip:hover { border-color: var(--accent); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header__bar { grid-template-columns: auto 1fr auto; }
  .header__bar .logo { grid-column: 2; justify-self: center; }
  .header__tools { grid-column: 3; }
}
.header__tools { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; color: #f7f3ed; background: #2a2019; }
.hero__media { overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,15,.55) 0%, rgba(14,16,15,.18) 30%, rgba(14,16,15,.35) 58%, rgba(14,16,15,.78) 100%); }
.hero__inner { position: relative; z-index: 5; padding-top: 150px; padding-bottom: clamp(32px, 6vh, 64px); width: 100%; }
.marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1); user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__item { font-family: var(--f-display); font-weight: 500; font-size: clamp(4.2rem, 13.5vw, 13rem); line-height: 0.95; letter-spacing: -0.02em; padding-right: 0.35em; white-space: nowrap; }
.marquee__item sup { font-size: 0.28em; vertical-align: 1.9em; font-family: var(--f-sans); font-weight: 400; margin-left: 0.08em; }
.marquee__item .sep { color: var(--accent); font-size: 0.5em; vertical-align: 0.4em; padding: 0 0.3em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-top: clamp(20px, 3vh, 36px); }
.hero h1 { font-family: var(--f-sans); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.35rem); margin: 0 0 8px; letter-spacing: 0; }
.hero__sub { margin: 0; max-width: 44ch; color: rgba(247,243,237,.86); font-size: 1rem; }

.search { position: relative; }
.search__box { display: flex; align-items: center; gap: 10px; background: #fbf9f5; color: #17211d; border-radius: var(--radius); padding: 6px 6px 6px 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
.search__box i { font-size: 1.25rem; color: #5d6661; }
.search__box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1.02rem; padding: 12px 0; color: #17211d; }
.search__box input::placeholder { color: #5d6661; }
.search__box .btn { padding: 6px; }
.search__box .btn span.lbl { padding-left: 10px; }
.search__examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search__examples button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #f7f3ed; border-radius: 999px; padding: 6px 12px; font-size: 0.84rem; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s; }
.search__examples button:hover { background: rgba(255,255,255,.24); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 20; max-height: min(60vh, 460px); overflow-y: auto; display: none; }
.results.is-open { display: block; }
.results__group { padding: 10px 8px 6px; }
.results__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; }
.results a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 4px; }
.results a:hover, .results a.is-active { background: var(--accent-soft); }
.results a i { font-size: 1.15rem; color: var(--accent); margin-top: 2px; }
.results a strong { font-weight: 500; display: block; line-height: 1.35; }
.results a small { color: var(--muted); font-size: 0.82rem; }
.results__empty { padding: 18px; font-size: 0.92rem; }
.results__empty p { margin: 0 0 10px; }
.search--light .search__box { border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: none; }
.search--light .search__box input { color: var(--ink); }
.search--light .search__box input::placeholder, .search--light .search__box i { color: var(--muted); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__inner { padding-top: 120px; }
  .search__box .btn span.lbl { display: none; }
}

/* Intro + Kategorien */
.intro { text-align: center; max-width: 820px; margin: 0 auto; }
.intro p { color: var(--ink-2); margin: 20px auto 0; max-width: 60ch; }
.intro p em { font-style: normal; color: var(--accent); }
.journey { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 28px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.journey span { color: var(--muted); }
.journey i { color: var(--accent); font-size: 0.9rem; align-self: center; }

.cats { --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 8px var(--edge) 18px; margin-top: 56px; scrollbar-width: thin; }
.cat { scroll-snap-align: start; display: block; }
.cat__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; margin: 14px 0 4px; }
.cat p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.cats__nav { display: flex; gap: 8px; justify-content: flex-end; }

/* Probleme */
.problems { background: var(--paper-2); }
.problems__head { max-width: 980px; }
.problems__head p { margin-top: 16px; }
.problems__ui { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); margin-top: 48px; align-items: start; }
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plist button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 0.92rem; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.plist button i { font-size: 1.2rem; color: var(--accent); flex: none; }
.plist button:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.plist button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plist button[aria-selected="true"] i { color: inherit; }
.ppanel { display: grid; grid-template-columns: 0.9fr 1fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.ppanel__img { position: relative; min-height: 240px; }
.ppanel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ppanel__body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.ppanel__body h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; line-height: 1.15; margin: 0; }
.ppanel__body ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 0.94rem; }
.ppanel__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.tag--neutral { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.ppanel__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.fade-swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 980px) {
  .problems__ui { grid-template-columns: 1fr; }
  .ppanel { grid-template-columns: 1fr; }
  .ppanel__img { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) { .plist button { padding: 10px; font-size: 0.86rem; gap: 8px; } }
@media (max-width: 340px) { .plist { grid-template-columns: 1fr; } }

/* Ratgeber-Raster */
.guides { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 28px 20px; margin-top: 48px; }
.guide { display: flex; flex-direction: column; gap: 10px; }
.guide__img { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); aspect-ratio: 4 / 3; }
.guide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.guide:hover .guide__img img { transform: scale(1.04); }
.guide--feature { grid-row: span 2; }
.guide--feature .guide__img { aspect-ratio: auto; flex: 1; min-height: 420px; }
.guide h3 { font-family: var(--f-sans); font-weight: 500; font-size: 1.05rem; margin: 0; line-height: 1.35; }
.guide--feature h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.guide__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.guide p { margin: 0; color: var(--ink-2); font-size: 0.95rem; max-width: 52ch; }
@media (max-width: 980px) {
  .guides { grid-template-columns: 1fr 1fr; }
  .guide--feature { grid-column: 1 / -1; grid-row: auto; }
  .guide--feature .guide__img { min-height: 300px; }
}
@media (max-width: 600px) { .guides { grid-template-columns: 1fr; } }
.center { display: flex; justify-content: center; margin-top: 44px; }

/* Kosten */
.costs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.costs__tabs { display: grid; gap: 2px; margin-top: 32px; }
.costs__tabs button { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 2px; text-align: left; cursor: pointer; font-size: 1.02rem; color: var(--ink-2); transition: color .2s, padding .3s var(--ease); }
.costs__tabs button i { opacity: 0; transition: opacity .2s, transform .3s var(--ease); color: var(--accent); }
.costs__tabs button:hover { color: var(--ink); }
.costs__tabs button[aria-selected="true"] { color: var(--ink); padding-left: 10px; font-weight: 500; }
.costs__tabs button[aria-selected="true"] i { opacity: 1; }
.costcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.2vw, 40px); box-shadow: var(--shadow); }
.costcard__q { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 0 0 6px; font-weight: 500; }
.costcard__range { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.costcard__range strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; color: var(--accent); }
.costcard__unit { color: var(--muted); font-size: 0.9rem; }
.chain { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .chain { grid-template-columns: 1fr 1fr; } }
.chain li { position: relative; padding: 12px 12px 12px 14px; border-radius: var(--radius); background: var(--paper); font-size: 0.86rem; line-height: 1.4; }
.chain li strong { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.chain li span { color: var(--muted); }
.costcard__note { margin: 22px 0 0; font-size: 0.84rem; color: var(--muted); display: flex; gap: 8px; }
.costcard__note i { color: var(--accent); font-size: 1rem; margin-top: 2px; }
@media (max-width: 900px) { .costs { grid-template-columns: 1fr; } }

/* Checklisten */
.checks { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.checks__visual { position: relative; }
.checks__visual > img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.checkcard { position: absolute; right: clamp(-8px, -2vw, -32px); bottom: -36px; width: min(380px, 86%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.checkcard h3 { margin: 0 0 4px; font-weight: 500; font-size: 1.05rem; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.progress__bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.tick { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; cursor: pointer; font-size: 0.93rem; line-height: 1.4; }
.tick input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 4px; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.tick input::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease); }
.tick input:checked { background: var(--accent); border-color: var(--accent); }
.tick input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.tick input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
@media (max-width: 900px) {
  .checks { grid-template-columns: 1fr; }
  .checkcard { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -48px; margin-left: auto; max-width: 92%; }
}

/* Experten */
.bigline { font-family: var(--f-sans); font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(2.4rem, 7.4vw, 6.6rem); line-height: 1.05; padding-top: 0.08em; margin: 0; white-space: nowrap; overflow: hidden; }
.bigline span { color: var(--accent); }
.experts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.expert { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 520px; color: #f5f1ea; display: flex; align-items: flex-end; }
.expert > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.expert:hover > img { transform: scale(1.04); }
.expert::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,14,.05) 0%, rgba(15,15,14,.35) 38%, rgba(15,15,14,.9) 100%); }
.expert__body { position: relative; z-index: 2; padding: clamp(22px, 3vw, 36px); max-width: 520px; }
.expert__body h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.15; margin: 0 0 10px; }
.expert__body p { margin: 0 0 16px; color: rgba(245,241,234,.86); font-size: 0.95rem; }
.expert__body ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.expert__body li { display: flex; gap: 8px; }
.expert__body li i { color: #f0a488; margin-top: 4px; }
.expert .link-arrow { border-color: rgba(245,241,234,.4); }
@media (max-width: 860px) { .experts { grid-template-columns: 1fr; } .expert { min-height: 440px; } .bigline { white-space: normal; } }

/* Vergleich */
.compare { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.compare__list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 0.94rem; }
.compare__list li { display: flex; gap: 10px; align-items: center; }
.compare__list i { color: var(--accent); font-size: 1.1rem; }
.ctable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ctable__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.9rem; flex-wrap: wrap; }
.ctable__scroll { overflow-x: auto; }
.ctable table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.ctable th, .ctable td { text-align: left; padding: 14px 20px; vertical-align: top; }
.ctable thead th { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.ctable tbody tr + tr td { border-top: 1px solid var(--line); }
.ctable td strong { font-weight: 500; display: block; }
.ctable td small { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.02em; }
.badge--ed { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.badge--ad { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .compare__list { grid-template-columns: 1fr; } }

/* Neu – Karussell */
.latest__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 26%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin-top: 40px; padding-bottom: 12px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.post { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.post__img { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post h3 { margin: 0; font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.post time { font-size: 0.8rem; color: var(--muted); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; transition: background .2s, color .2s; }
.arrows button:last-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.arrows button:active { transform: scale(0.96); }

/* Vertrauen */
.trust { background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.trust::before { content: ""; position: absolute; width: 140%; aspect-ratio: 3 / 1; left: -20%; top: 18%; border: 1px solid color-mix(in srgb, var(--accent-ink) 18%, transparent); border-radius: 50%; pointer-events: none; }
.trust__inner { position: relative; }
.trust__quote { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.2; max-width: 26ch; margin: 0 auto; text-align: center; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; margin-top: clamp(48px, 7vw, 80px); }
.trust__grid h3 { font-size: 1rem; font-weight: 600; margin: 10px 0 6px; }
.trust__grid p { margin: 0; font-size: 0.92rem; opacity: 0.88; }
.trust__grid i { font-size: 1.5rem; }
.trust .center .btn { background: var(--accent-ink); color: var(--accent); }
.trust .center .btn .btn__ico { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 860px) { .trust__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust__grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--forest); color: var(--forest-ink); padding: clamp(56px, 8vw, 96px) 0 32px; font-size: 0.9rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; opacity: 0.7; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { opacity: 0.86; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__claim { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.25; margin: 18px 0 0; max-width: 20ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(233,229,221,.14); margin-top: 56px; padding-top: 24px; font-size: 0.8rem; opacity: 0.8; }
.footer .logo__mark rect { stroke: currentColor; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Artikel-Template */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--muted); padding: 22px 0 0; list-style: none; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
.article-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); padding: 28px 0 48px; align-items: end; }
.article-hero h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.05; margin: 12px 0 18px; letter-spacing: -0.01em; }
.answer { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; margin: 0; }
.article-hero__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.article-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.84rem; color: var(--muted); margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.byline span { display: inline-flex; gap: 6px; align-items: center; }
.byline i { color: var(--accent); }
@media (max-width: 900px) { .article-hero { grid-template-columns: 1fr; } }

.article { display: grid; grid-template-columns: 210px minmax(0, 1fr) 290px; gap: clamp(24px, 4vw, 64px); padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.88rem; }
.toc h2 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
.prose { min-width: 0; max-width: 740px; }
.prose h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 64px 0 16px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.prose a:not(.btn):not(.chip) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.box { border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; background: var(--surface); border: 1px solid var(--line); }
.box h3 { margin-top: 0; }
.box--key { background: var(--paper-2); border: 0; }
.box--key ul { margin: 0; }
.box--warn { border-left: 3px solid var(--accent); }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 14px !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--accent); background: var(--surface); }
.steps li strong { color: var(--ink); font-weight: 600; }
.dontlist li::marker { color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.split > div { border-radius: var(--radius); padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.split h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.split h3 i { color: var(--accent); }
.split ul { margin: 0; font-size: 0.94rem; }
@media (max-width: 600px) { .split { grid-template-columns: 1fr; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 18px 0; }
.tbl th, .tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .3s var(--ease); color: var(--accent); flex: none; margin-top: 4px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.related a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; text-decoration: none !important; color: var(--ink) !important; }
.related a:hover { border-color: var(--accent); }
.related small { color: var(--accent); font-weight: 500; }
@media (max-width: 600px) { .related { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 14px; }
.aside .box { margin: 0; font-size: 0.9rem; }
.aside h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 8px; }
.aside p { margin: 0 0 12px; color: var(--ink-2); }
.expertbox { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.expertbox__av { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--accent); font-size: 1.5rem; }
.sources { font-size: 0.86rem; }
@media (max-width: 1200px) { .article { grid-template-columns: 200px minmax(0, 1fr); } .aside { position: static; grid-column: 2; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; border: 0; } .toc a { border-left: 0; padding-left: 0; } .aside { grid-column: auto; } }

/* Rechner */
.calc { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--ink); }
.field select, .field input[type="number"] { border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--paper); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); }
.field small { font-size: 0.8rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; background: var(--surface); transition: background .2s, border-color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__out { border-radius: var(--radius); background: var(--paper-2); padding: 20px; }
.calc__out strong { font-family: var(--f-display); font-size: 2.2rem; font-weight: 500; color: var(--accent); display: block; line-height: 1.1; }

/* Checklisten-Seite */
.cl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); padding-bottom: 96px; }
.cl-group { margin-bottom: 36px; }
.cl-group h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cl-group h2 small { font-family: var(--f-sans); font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.cl-group .tick { border-bottom: 1px solid var(--line); padding: 13px 0; }
.cl-group .tick small { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 2px; text-decoration: none; }
.cl-side { position: sticky; top: 96px; align-self: start; display: grid; gap: 14px; }
.ring { width: 120px; height: 120px; }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); transform: rotate(-90deg); transform-origin: 50% 50%; }
@media (max-width: 900px) { .cl-layout { grid-template-columns: 1fr; } .cl-side { position: static; order: -1; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .header, .footer, .toc, .aside, .cl-side, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .cl-layout { display: block; }
}

/* Fachbetriebe in den Suchergebnissen */
.results__group--firms { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.results__group--firms a:hover, .results__group--firms a.is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ============ Eingang: Zoom durch den Torbogen ============ */
:root { --wall: #ece4d8; --floor: #e2d3bd; --rim-a: #f3ede3; --rim-b: #d9cbb6; --rim-shade: rgba(90, 64, 36, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wall: #1c2420; --floor: #151c18; --rim-a: #2a342f; --rim-b: #1f2824; --rim-shade: rgba(0, 0, 0, .6); } }
:root[data-theme="dark"] { --wall: #1c2420; --floor: #151c18; --rim-a: #2a342f; --rim-b: #1f2824; --rim-shade: rgba(0, 0, 0, .6); }

.portal { --p: 0; position: relative; height: 270vh; }
.portal__stage { position: sticky; top: 0; z-index: 3; height: 100vh; height: 100dvh; background: #2a2019; }
.portal__clip { position: absolute; inset: 0; overflow: hidden; z-index: 20; pointer-events: none; }
.portal__clip .btn { pointer-events: auto; }
.portal .header { position: absolute; transition: color .5s var(--ease); }
.portal:not(.is-inside) .header { color: var(--ink); }
.portal:not(.is-inside) .header .icon-btn { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.portal .hero { position: absolute; inset: 0; min-height: 0; }
.portal .hero__media video { transform: scale(calc(1.28 - var(--zoom, 0) * .28)); transform-origin: 50% 58%; will-change: transform; }
.portal .hero__inner { opacity: var(--content, 1); transform: translateY(calc((1 - var(--content, 1)) * 40px)); }
.portal:not(.is-open) .hero__inner { pointer-events: none; }
.portal__wall { position: absolute; inset: 0; opacity: var(--wall-op, 1); }
.portal__copy, .portal__floorcopy { transform-origin: 50% 58%; transform: scale(var(--copy-scale, 1)); opacity: var(--copy-op, 1); }
.portal.is-open .portal__wall { visibility: hidden; }
.portal__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portal__wallfill { fill: var(--wall); }
.portal__floor { fill: var(--floor); }
.portal__inner { stroke: var(--rim-shade); stroke-width: 14; }
.portal__copy { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; gap: 40px; pointer-events: none; color: var(--ink); }
.portal__lead { font-size: clamp(2rem, 3.6vw, 3.4rem); max-width: 9ch; margin: 0; line-height: 1.05; }
.portal__side { max-width: 28ch; margin: 0; color: var(--ink-2); font-size: 1rem; text-align: right; }
.portal__floorcopy { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 56px); display: flex; justify-content: center; }
@media (max-width: 1080px) { .portal__copy { display: none; } }
@media (max-height: 560px) { .portal__floorcopy { display: none; } }

/* ============ Überblick: Karton landet im Raster ============ */
.drop { --p: 1; position: relative; z-index: 1; height: 240vh; }
.drop__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; }
.drop__inner { width: 100%; }
.drop__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(20px, 3vh, 32px); transform: translateY(var(--head-y, 0px)); }
.drop__head .h2 { max-width: 12ch; }
.drop__side { max-width: 34ch; text-align: right; display: grid; justify-items: end; gap: 12px; }
.drop__side p { margin: 0; color: var(--ink-2); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; height: min(62vh, 620px); }
.bento__col { display: grid; grid-template-rows: 1.35fr 1fr; gap: 12px; min-height: 0; }
.bento__col:nth-child(even) { grid-template-rows: 1fr 1.35fr; }
.tile { position: relative; border-radius: 20px; overflow: hidden; min-height: 0; opacity: var(--tile-op, 1); transform: translateY(var(--tile-y, 0px)); }
.tile--img img { width: 100%; height: 100%; object-fit: cover; }
.tile--text { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 1.6vw, 24px); background: var(--paper-2); color: var(--ink); transition: background .3s; }
.tile--text:hover { background: color-mix(in srgb, var(--accent) 12%, var(--paper-2)); }
.tile--text p { margin: 0; font-size: 0.92rem; color: var(--ink-2); max-width: 24ch; }
.tile--text strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; margin-top: auto; }
.tile--text strong.tile__word { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.tile--text span { font-size: 0.9rem; font-weight: 500; margin-top: 6px; }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--accent p { color: color-mix(in srgb, var(--accent-ink) 85%, transparent); }
.tile--accent:hover { background: color-mix(in srgb, var(--accent) 90%, var(--ink)); }
.section--themen { padding-top: clamp(40px, 6vw, 72px); }
.section--themen .cats { margin-top: 32px; }

/* Ohne Animation: statisches Layout, Karton liegt bereits im Raster */
.no-scene .portal { height: auto; }
.no-scene .portal__stage { position: relative; height: 100dvh; }
.no-scene .portal__clip { display: none; }
.no-scene .portal .header { color: #f6f2ec; }
.no-scene .portal .hero__inner { opacity: 1; transform: none; pointer-events: auto; }
.no-scene .portal .hero__media video { transform: none; }
.no-scene .drop, .no-drop .drop { height: auto; }
.no-scene .drop__stage, .no-drop .drop__stage { position: relative; height: auto; padding: clamp(64px, 9vw, 120px) 0; }
.no-scene .tile, .no-scene .drop__head, .no-drop .tile, .no-drop .drop__head { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .drop__head { flex-direction: column; align-items: start; }
  .drop__side { text-align: left; justify-items: start; }
  .bento { grid-template-columns: 1fr 1fr; height: auto; }
  .bento__col { grid-template-rows: auto auto; }
  .bento__col:nth-child(even) { grid-template-rows: auto auto; }
  .tile--img { aspect-ratio: 4 / 5; }
  .tile--text { min-height: 190px; }
}

.results.is-up { top: auto; bottom: calc(100% + 8px); }

/* ============ Der Heimwissen-Schlüssel wandert durch die Seite ============ */
.key-dock { position: absolute; pointer-events: none; visibility: hidden; }
.key-dock--final { visibility: visible; }
.keyfly { position: fixed; left: 0; top: 0; width: 120px; z-index: 40; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; opacity: 0; filter: drop-shadow(0 22px 22px rgba(40, 25, 5, .35)) drop-shadow(0 2px 3px rgba(40, 25, 5, .25)); }
.no-key .keyfly { display: none; }

/* Finale: Schlüssel gleitet ins Schloss und dreht sich */
.finale { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); margin-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid rgba(233, 229, 221, .14); }
.finale__lock { position: relative; width: 120px; height: 300px; }
.finale__lock::before { content: ""; position: absolute; left: 50%; top: 219px; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 196, 120, .55), rgba(226, 117, 82, .18) 40%, transparent 70%); opacity: 0; transform: scale(.6); transition: opacity 1.2s var(--ease) .9s, transform 1.6s var(--ease) .9s; pointer-events: none; }
.finale__plate { position: absolute; left: 15px; top: 135px; width: 90px; height: 165px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.finale__keywrap { position: absolute; left: 0; top: 0; width: 120px; height: 193px; overflow: hidden; }
.finale__key { position: absolute; left: 25px; top: 42px; width: 70px; height: 192.5px; transform: translateY(-44px); transition: transform .7s var(--ease), opacity .3s; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .4)); }
.key-journey:not(.key-arrived) .finale__key { opacity: 0; }
.finale__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; margin: 0; opacity: .38; transition: opacity 1s var(--ease) .8s; }
.finale__sub { margin: 16px 0 0; max-width: 52ch; opacity: .75; }
.finale.is-unlocked .finale__key { transform: translateY(0); animation: keyturn .8s var(--ease) .75s forwards; }
.finale.is-unlocked .finale__lock::before { opacity: 1; transform: scale(1); }
.finale.is-unlocked .finale__title { opacity: 1; }
@keyframes keyturn { to { transform: translateY(0) scaleX(.28); } }
@media (max-width: 640px) { .finale { grid-template-columns: 1fr; justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .finale__key, .finale.is-unlocked .finale__key { transform: none; animation: none; } .finale__title { opacity: 1; } }

/* Logo: Schlüssel + Wortmarke */
.logo { letter-spacing: 0; line-height: 0; }
.logo__svg { display: block; height: 50px; width: auto; overflow: visible; }
.header .logo__svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.drawer .logo__svg { height: 36px; }
.footer__brand .logo__svg { height: 74px; }
.footer__bottom .logo__svg { height: 38px; }
@media (max-width: 1100px) { .header .logo__svg { height: 40px; } }
@media (max-width: 420px) { .header .logo__svg { height: 34px; } }
/* ============ Fachbetriebe: Smartphone auf Samt ============ */
.showcase { position: relative; overflow: hidden; color: #ece8e1; background: #0d1411; padding: clamp(80px, 11vw, 150px) 0; isolation: isolate; }
.showcase__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 55% at 72% 58%, rgba(226, 178, 96, .16), transparent 70%),
  linear-gradient(180deg, rgba(10, 16, 13, .88) 0%, rgba(10, 16, 13, .55) 45%, rgba(10, 16, 13, .35) 70%, rgba(10, 16, 13, .9) 100%),
  url("https://images.pexels.com/photos/16202290/pexels-photo-16202290.jpeg?auto=compress&cs=tinysrgb&w=1800") center 70% / cover no-repeat; }
.showcase__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.showcase .eyebrow { color: #e9b872; }
.showcase h2 { margin-top: 14px; max-width: 14ch; }
.showcase__lead { color: rgba(236, 232, 225, .78); max-width: 46ch; margin: 18px 0 28px; }
.showcase__note { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: rgba(236, 232, 225, .55); margin: 18px 0 0; }
.firmlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.firmlist button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; text-align: left; padding: 8px 10px 8px 8px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; transition: background .3s, border-color .3s; }
.firmlist button:hover { background: rgba(255, 255, 255, .05); }
.firmlist button[aria-selected="true"] { background: rgba(233, 184, 114, .1); border-color: rgba(233, 184, 114, .35); }
.firmlist .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: #2b1d08; background: linear-gradient(135deg, #fff0c4, #d9aa55 45%, #9b6f2a 75%, #ecca7b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 10px rgba(0, 0, 0, .35); }
.firmlist strong { display: block; font-weight: 500; font-size: .9rem; line-height: 1.25; }
.firmlist small { display: block; font-size: .74rem; color: rgba(236, 232, 225, .55); }

.stage { position: relative; height: 700px; display: grid; place-items: center; perspective: 1400px; }
.stage__glow { position: absolute; left: 50%; bottom: 28px; width: 360px; height: 70px; margin-left: -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); filter: blur(6px); }
.phone { --rx: 10deg; --ry: -12deg; --ty: 0px; position: relative; width: 304px; height: 626px; transform-style: flat; transform: translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.phone__frame { position: absolute; inset: 0; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #5c6560 0%, #1b211e 18%, #2e3632 50%, #0f1412 80%, #4b544f 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 4px #0a0d0c, 0 50px 80px -30px rgba(0, 0, 0, .85), 0 20px 30px -20px rgba(0, 0, 0, .6); }
.phone__frame::before, .phone__frame::after { content: ""; position: absolute; left: -3px; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #262d29, #56605a); }
.phone__frame::before { top: 120px; height: 34px; }
.phone__frame::after { top: 170px; height: 58px; }
.phone__screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #16211c 0%, #0f1714 60%, #0b110f 100%); }
.phone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6; background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, .04) 100%); }
.phone__island { position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 5; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 14px 12px; font-family: var(--f-sans); }
.app__status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 0 12px; color: #f2eee7; height: 24px; align-items: center; }
.app__status i { font-size: 12px; }
.app__top { display: flex; justify-content: space-between; align-items: center; margin: 16px 4px 12px; }
.app__brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 19px; color: #f5efe4; }
.app__brand img { width: 26px; height: 26px; }
.app__count { font-size: 11px; letter-spacing: .08em; color: rgba(242, 238, 231, .6); font-variant-numeric: tabular-nums; }
.app__deck { position: relative; flex: 1; }
.app__dots { display: flex; justify-content: center; gap: 5px; padding-top: 10px; }
.app__dots span { width: 5px; height: 5px; border-radius: 3px; background: rgba(242, 238, 231, .25); transition: width .4s var(--ease), background .4s; }
.app__dots span.on { width: 16px; background: #e9b872; }

.fcard { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 24px; background: #f7f3ec; color: #17211d; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .7); will-change: transform; }
.fcard__img { height: 128px; border-radius: 24px 24px 0 0; overflow: hidden; flex: none; }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; }
.fcard__medal { position: absolute; top: 96px; right: 18px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #2b1d08; background: radial-gradient(circle at 32% 28%, #fff5d3, #e6c070 38%, #a97b30 70%, #6e4c1c); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(80, 50, 10, .45), 0 14px 22px -8px rgba(40, 25, 5, .6); z-index: 2; }
.fcard__medal::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(255, 244, 210, .55); }
.fcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.fcard__label { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #b4472a; padding-right: 64px; }
.fcard__name { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.1; margin: 0; padding-right: 58px; }
.fcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: #4b5550; }
.fcard__meta a, .fcard__meta span { display: inline-flex; align-items: center; gap: 4px; }
.fcard__meta a { color: #17211d; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(23, 33, 29, .3); }
.fcard__desc { font-size: 12px; line-height: 1.45; color: #3c4641; margin: 4px 0 2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fcard__svc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.fcard__svc li { font-size: 10.5px; padding: 4px 8px; border-radius: 999px; background: #ebe4d7; color: #2a332e; }
.fcard__cta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 11px 12px 11px 16px; border-radius: 14px; background: #17211d; color: #f5efe4; font-size: 13px; font-weight: 500; }
.fcard__cta i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #fff0c4, #d9aa55 50%, #a97b30); color: #2b1d08; }

.stage__controls { position: absolute; bottom: 0; right: 0; display: flex; gap: 8px; z-index: 11; }
.stage__controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(236, 232, 225, .25); background: rgba(255, 255, 255, .06); color: #ece8e1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s; }
.stage__controls button:hover { background: rgba(233, 184, 114, .2); }
@media (max-width: 980px) {
  .showcase__inner { grid-template-columns: minmax(0, 1fr); }
  .showcase__inner > * { min-width: 0; }
  .firmlist { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .firmlist li { scroll-snap-align: start; }
  .stage { height: 660px; }
}
@media (max-width: 420px) { .stage { height: 600px; } .phone { transform: scale(.88) translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry)); } }

/* ============ Samt-Thema: grüner Samt als durchgehende Grundfläche, Gold als Akzent ============ */
:root { --velvet: url("https://images.pexels.com/photos/16202290/pexels-photo-16202290.jpeg?auto=compress&cs=tinysrgb&w=2000"); }
:root[data-theme="dark"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(217, 171, 92, .07), transparent 60%),
    linear-gradient(180deg, rgba(8, 13, 11, .80), rgba(8, 13, 11, .88)),
    var(--velvet) center 60% / cover no-repeat;
}
:root[data-theme="dark"] body { background: #0a100d; }

/* Flächen: leicht durchscheinend, damit der Samt überall mitschwingt */
:root[data-theme="dark"] .costcard,
:root[data-theme="dark"] .checkcard,
:root[data-theme="dark"] .box,
:root[data-theme="dark"] .ppanel,
:root[data-theme="dark"] .plist button:not([aria-selected="true"]),
:root[data-theme="dark"] .results,
:root[data-theme="dark"] .related a,
:root[data-theme="dark"] .split > div,
:root[data-theme="dark"] .chip { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
:root[data-theme="dark"] .costcard,
:root[data-theme="dark"] .checkcard,
:root[data-theme="dark"] .ppanel { border-color: rgba(233, 205, 150, .18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 240, 200, .06); }
:root[data-theme="dark"] .tile--text { background: rgba(22, 34, 28, .72); }
:root[data-theme="dark"] .tile--accent { background: linear-gradient(135deg, #e7c47f, #c9994a 55%, #9b6f2a); color: #1a1206; }
:root[data-theme="dark"] .plist button[aria-selected="true"] { background: linear-gradient(135deg, #e7c47f, #c9994a); color: #1a1206; border-color: transparent; }
:root[data-theme="dark"] .btn .btn__ico { background: #1a1206; color: #e7c47f; }
:root[data-theme="dark"] .btn { background: linear-gradient(135deg, #f0d08d, #d4a553 55%, #b3833a); }
:root[data-theme="dark"] .btn--ghost { background: rgba(20, 31, 26, .7); color: var(--ink); }
:root[data-theme="dark"] .btn--ghost .btn__ico { background: linear-gradient(135deg, #f0d08d, #c9994a); color: #1a1206; }
:root[data-theme="dark"] .arrows button:last-child { background: linear-gradient(135deg, #f0d08d, #c9994a); color: #1a1206; border-color: transparent; }
:root[data-theme="dark"] .display, :root[data-theme="dark"] .h3 { color: #f3ede2; }

/* Vertrauen: statt Terrakotta-Fläche ein goldgerahmtes Samtband */
:root[data-theme="dark"] .trust { background: linear-gradient(180deg, rgba(217, 171, 92, .10), rgba(217, 171, 92, .04)); color: var(--ink); border-top: 1px solid rgba(233, 205, 150, .22); border-bottom: 1px solid rgba(233, 205, 150, .22); }
:root[data-theme="dark"] .trust::before { border-color: rgba(233, 205, 150, .16); }
:root[data-theme="dark"] .trust__quote { color: #f3ede2; }
:root[data-theme="dark"] .trust__grid i { color: #e7c47f; }
:root[data-theme="dark"] .trust .center .btn { background: linear-gradient(135deg, #f0d08d, #c9994a); color: #1a1206; }
:root[data-theme="dark"] .trust .center .btn .btn__ico { background: #1a1206; color: #e7c47f; }

/* Header auf Unterseiten und Footer: Samt statt flacher Farbe */
:root[data-theme="dark"] .header--solid { background: rgba(10, 16, 13, .78); border-bottom-color: rgba(233, 205, 150, .14); }
:root[data-theme="dark"] .footer { background: rgba(5, 8, 7, .72); border-top: 1px solid rgba(233, 205, 150, .14); }
:root[data-theme="dark"] .problems { background: rgba(22, 34, 28, .45); }

/* Torbogen: Wand aus demselben Samt */
.portal__velvet { display: none; }
:root[data-theme="dark"] .portal__velvet { display: inline; }
:root[data-theme="dark"] .portal__wallfill { fill: rgba(16, 24, 20, .72); }
:root[data-theme="dark"] .portal__floor { fill: rgba(8, 12, 10, .82); }
:root[data-theme="dark"] { --rim-a: #3a4a41; --rim-b: #1c2621; }
