/* ============================================================
   WerSitztWo? — Website Design System
   Plain CSS, no build step. Tokens extracted from the
   Claude Design handoff (WerSitztWo.dc.html).
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #F4EDE3;          /* warm paper */
  --bg-2: #FCF9F4;        /* lighter panel */
  --bg-3: #FBF7F1;        /* card / shot */
  --bg-card: #F4EDE3;
  --dark: #241F1B;        /* footer, beta card, ink */

  /* Ink / text */
  --ink: #241F1B;
  --ink-soft: #3A332C;
  --muted: #6F665E;
  --muted-2: #8C8073;
  --muted-3: #9C8675;
  --on-dark: #C7BAAB;
  --on-dark-soft: #9A8C7B;
  --on-dark-faint: #7E7264;

  /* Lines */
  --line: #E6DBCC;
  --line-2: #ECE2D4;
  --line-3: #EBE0D0;
  --line-warm: #D9C9B5;

  /* Brand */
  --rust: #BD5B3D;
  --rust-deep: #9C4329;
  --rust-bright: #C2603F;
  --rust-hover: #BD5B3D;
  --olive: #6E7355;
  --olive-deep: #5E6347;
  --gold: #C28A3A;
  --gold-deep: #A06E1F;
  --sand: #C9BBA8;
  --sand-2: #B7A893;

  /* Hero gradient */
  --hero: linear-gradient(155deg, #C2603F 0%, #9C4329 70%);

  /* Type */
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-serif: 'Newsreader', Georgia, serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 1140px;
  --radius: 16px;
  --radius-lg: 18px;
  --shadow-card: 0 18px 40px -26px rgba(60, 40, 20, .45);
  --shadow-lift: 0 26px 50px -28px rgba(60, 40, 20, .5);
  --shadow-window: 0 50px 110px -40px rgba(60, 25, 15, .6);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }

a { color: var(--rust-deep); }

h1, h2, h3, h4 { margin: 0; }

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(189, 91, 61, .22); }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font: 600 14px/1 var(--f-body);
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 28px; }
.section { padding: 86px 0; }
.bg-2 { background: var(--bg-2); }
.bg-paper { background: var(--bg); }
.border-y { border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.border-t { border-top: 1px solid var(--line-3); }

.section-head { max-width: 840px; margin-inline: auto; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; max-width: 720px; }
.eyebrow {
  font: 700 12px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rust);
}
.section-title {
  font: 900 clamp(28px, 4.4vw, 48px)/1.05 var(--f-display);
  letter-spacing: -.03em;
  color: var(--ink);
  margin-top: 16px;
}
.section-lead {
  font: 400 17px/1.6 var(--f-body);
  color: var(--muted);
  max-width: 600px;
  margin: 16px auto 0;
}
.section-head.left .section-lead { margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 14.5px/1 var(--f-body);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-cta { color: #fff; background: var(--rust); }
.btn-cta:hover { filter: brightness(1.06); }
.btn-light { color: var(--rust-deep); background: #FCF6F2; }
.btn-light:hover { filter: brightness(1.03); box-shadow: 0 10px 26px -16px rgba(60, 25, 15, .6); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line-warm); }
.btn-ghost:hover { background: #F4ECE0; }
.btn-outline-light {
  color: #FCF6F2;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .2); }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 237, 227, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 14px;
}
.brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.brand-name {
  font: 900 19px/1 var(--f-display);
  letter-spacing: -.02em;
}
.brand-name .q { color: var(--rust); }
.brand-tag {
  font: 600 9.5px/1 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.main-nav { justify-self: center; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Der Trefferbereich reicht über die volle Höhe der Kopfzeile, damit beim
   Weg zur Klappe darunter kein Loch entsteht. Die negativen Ränder halten
   die Zeilenhöhe unverändert. */
.main-nav > ul > li {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-block: 14px;
  margin-block: -14px;
}
.main-nav a {
  font: 600 13.5px/1 var(--f-body);
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--rust); }
.main-nav > ul > li > a[aria-current] { color: var(--rust); }
.main-nav > ul > li > a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--rust);
  border-radius: 2px;
}
.header-cta { justify-self: end; }
.header-cta .btn { padding: 10px 20px; border-radius: 100px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mega-Menü „Büroplanung" ----------
   Die sechs Rubriken stehen als eigene Karten nebeneinander, damit im
   Untermenü sichtbar bleibt, wo eine Rubrik aufhört und die nächste anfängt.
   Geöffnet wird per Hover, per :focus-within (Tastatur) und per Klapp-Button
   (Touch) — ohne JavaScript funktioniert das Grundverhalten bereits. */
.has-mega { position: static; }
.has-mega:hover > a,
.has-mega.mega-open > a { color: var(--rust); }

.mega-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-2);
  border-radius: 6px;
  cursor: pointer;
  transition: transform .18s ease, color .18s ease;
}
.has-mega:hover .mega-toggle,
.has-mega:focus-within .mega-toggle,
.has-mega.mega-open .mega-toggle { color: var(--rust); transform: rotate(180deg); }
.mega-toggle:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  width: min(1160px, calc(100vw - 36px));
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* Unsichtbare Brücke über den Rand der Kopfzeile hinweg. */
.mega-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
}
.has-mega:hover > .mega-panel,
.has-mega:focus-within > .mega-panel,
.has-mega.mega-open > .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Nach Escape bleibt zu, bis der Zeiger den Punkt einmal verlassen hat. */
.has-mega.mega-closed > .mega-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}

/* Auf flachen Bildschirmen scrollt der Inhalt, nicht die Klappe selbst —
   sonst würde die Hover-Brücke am oberen Rand abgeschnitten. */
.mega-inner {
  max-height: calc(100vh - 108px);
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mega-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 13px;
  transition: border-color .16s ease, background-color .16s ease;
}
.mega-col:hover { border-color: var(--line-warm); }
.mega-col.is-active { border-color: var(--rust); background: #F7E7DE; }
.mega-kicker {
  display: block;
  font: 700 9.5px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.mega-panel a { text-decoration: none; }
.mega-panel .mega-head {
  display: block;
  margin-top: 6px;
  padding: 0;
  font: 800 14.5px/1.25 var(--f-display);
  letter-spacing: -.012em;
  color: var(--ink);
}
.mega-panel .mega-head:hover,
.mega-panel .mega-head[aria-current] { color: var(--rust); }
.mega-panel ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--line-warm);
}
.mega-panel li a {
  display: block;
  padding: 3.5px 0;
  font: 500 13px/1.35 var(--f-body);
  color: var(--muted);
}
.mega-panel li a:hover { color: var(--rust); }
.mega-panel li a[aria-current="page"] { color: var(--rust); font-weight: 700; }

.mega-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 13px 3px 1px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.mega-panel .mega-foot a { font: 700 13px/1 var(--f-body); color: var(--rust-deep); }
.mega-panel .mega-foot a:hover { color: var(--rust); text-decoration: underline; }
.mega-note {
  font: 400 11px/1.4 var(--f-mono);
  letter-spacing: .04em;
  color: var(--muted-3);
}

@media (max-width: 1040px) {
  .mega-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero);
  padding: 66px 0 156px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000, transparent);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  border-radius: 100px;
  padding: 7px 15px;
  font: 700 11px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FBE6DC;
}
.badge-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #FBE6DC; }
.hero h1 {
  font: 900 clamp(34px, 6vw, 56px)/1.02 var(--f-display);
  letter-spacing: -.03em;
  color: #FCF6F2;
  margin-top: 22px;
}
.hero-lead {
  font: 400 17px/1.6 var(--f-body);
  color: #F4D9CD;
  max-width: 580px;
  margin: 18px auto 0;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- App window (browser-chrome embed) ---------- */
.window-wrap {
  max-width: 1280px;
  margin: -112px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 2;
}
.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .6);
  background: #FCF9F4;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ED6A5E; }
.dot-y { background: #F4BE4F; }
.dot-g { background: #61C554; }
.window-title {
  flex: 1;
  text-align: center;
  font: 400 12px/1 var(--f-mono);
  color: #A2937F;
}
.winbtn {
  position: absolute;
  top: 48px;
  right: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #E1D4C2;
  background: rgba(252, 249, 244, .92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #7A6E5F;
  border-radius: 9px;
  padding: 8px 13px;
  font: 600 12px/1 var(--f-body);
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(60, 40, 20, .4);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.winbtn:hover { background: #E7DAC8; color: #241F1B; }
.window-stage { height: 600px; }

/* ---------- Wireframe placeholder ---------- */
.wf {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FBF9F5;
  overflow: hidden;
  position: relative;
}
.wf-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1.5px dashed #D9D0C1;
  flex: 0 0 auto;
}
.wf-logo { width: 128px; height: 26px; border-radius: 7px; background: #EAE3D8; border: 1px solid #DDD4C6; }
.wf-tabs { display: flex; gap: 5px; padding: 3px; background: #EFE9DF; border-radius: 9px; }
.wf-tab { width: 42px; height: 20px; border-radius: 6px; background: #EAE3D8; }
.wf-tab.active { background: #D8CEBE; }
.wf-spacer { flex: 1; }
.wf-icon { width: 34px; height: 26px; border-radius: 7px; background: #EAE3D8; border: 1px solid #DDD4C6; }
.wf-body { flex: 1; display: flex; min-height: 0; }
.wf-left { width: 212px; flex: 0 0 auto; border-right: 1.5px dashed #D9D0C1; padding: 12px; display: flex; flex-direction: column; gap: 11px; }
.wf-search { height: 34px; border-radius: 9px; background: #EFE9DF; border: 1px solid #DDD4C6; }
.wf-list { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.wf-row { display: flex; align-items: center; gap: 10px; }
.wf-av { width: 28px; height: 28px; border-radius: 8px; background: #D8CEBE; flex: 0 0 auto; }
.wf-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.wf-line { height: 8px; border-radius: 4px; background: #E0D8CB; }
.wf-line.sm { height: 7px; background: #EAE3D8; }
.wf-center { flex: 1; position: relative; min-width: 0; background: #F6F1E9; }
.wf-rooms { position: absolute; inset: 20px; }
.wf-room { position: absolute; border: 1.5px dashed #CFC5B4; border-radius: 12px; }
.wf-desk { position: absolute; width: 40px; height: 40px; border-radius: 9px; background: #DCD2C2; }
.wf-desk.empty { background: transparent; border: 1.5px dashed #CDC2B0; }
.wf-pill {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FBF9F5;
  border: 1px solid #E2DACE;
  border-radius: 100px;
  padding: 6px 14px;
}
.wf-pill .pdot { width: 7px; height: 7px; border-radius: 50%; background: #C9BCA8; }
.wf-pill span { font: 600 11px/1 var(--f-mono); letter-spacing: .04em; color: #A89C8A; }
.wf-right { width: 228px; flex: 0 0 auto; border-left: 1.5px dashed #D9D0C1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wf-detail-head { display: flex; align-items: center; gap: 11px; }
.wf-detail-av { width: 44px; height: 44px; border-radius: 12px; background: #D5CBBC; flex: 0 0 auto; }
.wf-stat-row { display: flex; gap: 8px; }
.wf-stat { flex: 1; height: 46px; border-radius: 10px; background: #EFE9DF; border: 1px solid #E2DACE; }
.wf-field { height: 34px; border-radius: 9px; background: #EFE9DF; border: 1px solid #E2DACE; }
.wf-cta { height: 40px; border-radius: 10px; background: #D5CBBC; }

/* ---------- Feature cards ---------- */
.grid-4 {
  max-width: var(--wrap-narrow);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 21px;
  transition: border-color .2s, box-shadow .2s;
}
.fcard:hover { border-color: #D9BBA8; box-shadow: 0 14px 34px -22px rgba(60, 40, 20, .45); }
.fcard-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.ico-rust { background: rgba(189, 91, 61, .12); border: 1px solid rgba(189, 91, 61, .28); color: var(--rust); }
.ico-olive { background: rgba(110, 115, 85, .14); border: 1px solid rgba(110, 115, 85, .3); color: var(--olive-deep); }
.ico-gold { background: rgba(194, 138, 58, .14); border: 1px solid rgba(194, 138, 58, .3); color: var(--gold-deep); }
.fcard-num { font: 700 9px/1 var(--f-mono); letter-spacing: .1em; color: var(--sand-2); margin-top: 20px; }
.fcard h3 { font: 700 17px/1.25 var(--f-body); margin-top: 7px; }
.fcard p { font: 400 13px/1.55 var(--f-body); color: var(--muted); margin-top: 8px; }

/* ---------- Screenshots ---------- */
.shot {
  border: 1px solid #E1D4C2;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.shot-figure { margin: 0; }
.shot-img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line-2); background: #F1E7D8; }
.shot-cap { padding: 13px 15px; }
.shot-cap .t { font: 700 13px/1 var(--f-body); }
.shot-cap .d { font: 400 11.5px/1.4 var(--f-body); color: var(--muted-2); margin-top: 4px; }

/* Screenshots page — larger alternating rows */
.shots-list { max-width: var(--wrap-narrow); margin: 56px auto 0; display: flex; flex-direction: column; gap: 28px; }
.shot-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.shot-row:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.shot-row:nth-child(even) .shot-media { order: 2; }
.shot-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-card);
  background: #F1E7D8;
}
.shot-media img { width: 100%; height: auto; }
.shot-text .num { font: 700 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--rust); text-transform: uppercase; }
.shot-text h3 { font: 800 24px/1.15 var(--f-display); letter-spacing: -.02em; margin-top: 10px; }
.shot-text p { font: 400 15px/1.6 var(--f-body); color: var(--muted); margin-top: 12px; }
.shot-text ul { margin: 14px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.shot-text li { font: 500 14px/1.5 var(--f-body); color: var(--ink-soft); position: relative; padding-left: 22px; }
.shot-text li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rust); font-weight: 800; }

/* ---------- Pricing ---------- */
.beta-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: 20px;
  padding: 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 30px 60px -32px rgba(60, 40, 20, .55);
}
.beta-card .grid-tex {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.beta-main { position: relative; max-width: 580px; }
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(224, 168, 126, .4);
  background: rgba(189, 91, 61, .18);
  border-radius: 100px;
  padding: 6px 13px;
  font: 700 10px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F0B393;
}
.beta-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #E0A87E; }
.beta-price { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.beta-price .amt { font: 900 44px/1 var(--f-display); color: #FCF9F4; }
.beta-price .note { font: 600 14px/1 var(--f-body); color: var(--on-dark); }
.beta-main p { font: 400 14px/1.6 var(--f-body); color: var(--on-dark); margin-top: 14px; }
.beta-side { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.beta-side .small { font: 500 11.5px/1 var(--f-body); color: #8A7E70; padding-left: 2px; }

.tier-note { max-width: 1080px; margin: 24px auto 0; text-align: center; }
.tier-note span {
  font: 700 10px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sand-2);
}

.tiers {
  max-width: 1080px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.tier {
  background: #F2EEE8;
  border: 1px solid #E4DED4;
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.tier.dim { opacity: .82; filter: grayscale(.4); }
.tier-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier-name {
  font: 700 10px/1 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #A89E90;
}
.tier-flag {
  font: 600 8px/1 var(--f-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #A89E90;
  border: 1px solid #DDD6CB;
  border-radius: 100px;
  padding: 4px 7px;
  white-space: nowrap;
}
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.tier-price .amt { font: 800 28px/1 var(--f-display); color: #8A8175; }
.tier-price .per { font: 500 11px/1 var(--f-body); color: #A89E90; }
.tier-rule { height: 1px; background: #E4DED4; margin: 16px 0; }
.tier-feats { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.tier-feats li { position: relative; padding-left: 12px; font: 500 12.5px/1.4 var(--f-body); color: var(--muted); }
.tier-feats li::before { content: "·"; position: absolute; left: 0; top: 0; color: #B7AD9E; }
.tier-spacer { flex: 1; }
.tier-btn {
  margin-top: 20px;
  text-align: center;
  font: 600 12.5px/1 var(--f-body);
  color: #A89E90;
  background: #ECE7DF;
  border: 1px solid #DDD6CB;
  padding: 11px;
  border-radius: 10px;
  cursor: not-allowed;
}

.contact-strip {
  max-width: 1080px;
  margin: 18px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-strip .t { font: 700 15px/1.3 var(--f-display); color: var(--ink); }
.contact-strip p { font: 400 13px/1.55 var(--f-body); color: var(--muted); margin-top: 6px; max-width: 660px; }

/* compact pricing (home) */
.tiers.compact { margin-top: 28px; }
.tiers.compact .tier { background: var(--bg-2); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 90px 0; text-align: center; }
.final-cta h2 {
  font: 600 clamp(28px, 4.4vw, 40px)/1.1 var(--f-serif);
  letter-spacing: -.01em;
  max-width: 640px;
  margin-inline: auto;
}
.final-cta p { font: 400 16px/1.6 var(--f-body); color: var(--muted); max-width: 480px; margin: 16px auto 0; }
.final-cta .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 54px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-brand .name { font: 800 18px/1 var(--f-display); color: #FCF9F4; }
.footer-brand .name .q { color: #E0A87E; }
.footer-brand p { font: 400 13px/1.6 var(--f-body); color: var(--on-dark-soft); margin-top: 12px; max-width: 260px; }
.footer-col h3 {
  font: 700 10px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.footer-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font: 500 13px/1 var(--f-body); color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-brand address {
  font: 400 12.5px/1.7 var(--f-body);
  font-style: normal;
  color: var(--on-dark-soft);
  margin-top: 14px;
}
.footer-brand address a { color: var(--on-dark); text-decoration: none; }
.footer-brand address a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #3C342D;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font: 400 12px/1 var(--f-mono);
  color: var(--on-dark-faint);
}
.status-group { display: flex; flex-wrap: wrap; gap: 18px; }
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 400 11.5px/1 var(--f-mono);
  letter-spacing: .02em;
  color: var(--on-dark);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #61C554;
  box-shadow: 0 0 0 3px rgba(97, 197, 84, .18);
  flex: 0 0 auto;
}

/* ---------- App page: TOC + prose ---------- */
.subhero {
  background: var(--hero);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.subhero .hero-grid { mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000, transparent); }
.subhero-inner { position: relative; max-width: 820px; }
.subhero h1 { font: 900 clamp(30px, 5vw, 46px)/1.04 var(--f-display); letter-spacing: -.03em; color: #FCF6F2; margin-top: 18px; }
.subhero p { font: 400 16px/1.6 var(--f-body); color: #F4D9CD; max-width: 600px; margin-top: 16px; }
.subhero .hero-actions { justify-content: flex-start; }

.app-layout {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 64px 28px 86px;
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 48px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.toc h2 {
  font: 700 11px/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand-2);
  margin-bottom: 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font: 600 13px/1.35 var(--f-body);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font: 700 10px/1.5 var(--f-mono); color: var(--rust); }
.toc a:hover { background: #F4ECE0; color: var(--rust-deep); }
.toc a.active { background: rgba(189, 91, 61, .1); color: var(--rust-deep); }

.prose { max-width: 760px; }
.prose section { scroll-margin-top: 92px; padding-top: 8px; }
.prose section + section { margin-top: 52px; }
.prose .eyebrow { display: block; margin-bottom: 10px; }
.prose h2 { font: 800 clamp(24px, 3vw, 30px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.prose h3 { font: 700 18px/1.3 var(--f-body); margin-top: 26px; color: var(--ink); }
.prose p { font: 400 16px/1.7 var(--f-body); color: var(--ink-soft); margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
/* Kein Flex auf dem li: sonst wird jedes <strong> und jedes <a> zu einem
   eigenen Flex-Element und bekommt den gap als Abstand untergeschoben. Der
   Aufzählungspunkt hängt deshalb absolut daneben, der Text bleibt ein Fluss. */
.prose ul li { font: 400 15.5px/1.6 var(--f-body); color: var(--ink-soft); position: relative; padding-left: 18px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--rust); transform: rotate(45deg); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .lead { font-size: 18px; color: var(--muted); }

.inline-cta {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.inline-cta .t { font: 700 16px/1.3 var(--f-display); }
.inline-cta p { font: 400 13.5px/1.5 var(--f-body); color: var(--muted); margin-top: 4px; }

/* keyword chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font: 600 12px/1 var(--f-body);
  color: var(--ink-soft);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 13px;
}

/* FAQ */
.faq { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
}
.faq summary {
  font: 700 16px/1.4 var(--f-body);
  color: var(--ink);
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--f-display); color: var(--rust); }
.faq details[open] summary::after { content: "–"; }
.faq details p { font: 400 15px/1.65 var(--f-body); color: var(--muted); padding: 0 0 16px; margin: 0; }

/* ---------- Prose links (Ratgeber / Büroplanung) ---------- */
.prose a:not(.btn) {
  color: var(--rust-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}
.prose a:not(.btn):hover { color: var(--rust); }
.prose a[target="_blank"]::after { content: " ↗"; font-size: .85em; color: var(--muted-2); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font: 500 13px/1.5 var(--f-body); color: var(--muted-2); margin: 0 0 4px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--sand-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rust-deep); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------- Hub cluster cards (clickable) ---------- */
a.fcard { text-decoration: none; color: inherit; display: block; }
a.fcard:hover h3 { color: var(--rust-deep); }
a.fcard .more { display: inline-block; margin-top: 12px; font: 700 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--rust-deep); }

/* ---------- Download callout (Vorlagen / Checklisten) ---------- */
.dl-card {
  margin-top: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-warm);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.dl-card .t { font: 700 16px/1.3 var(--f-display); color: var(--ink); }
.dl-card p { font: 400 13.5px/1.55 var(--f-body); color: var(--muted); margin-top: 4px; max-width: 46ch; }

/* ---------- Comparison / content tables ---------- */
.table-scroll { margin-top: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.cmp { width: 100%; border-collapse: collapse; font: 400 14.5px/1.5 var(--f-body); min-width: 520px; }
.cmp th, .cmp td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.cmp thead th { background: var(--bg-2); font: 700 13px/1.3 var(--f-body); color: var(--ink); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child, .cmp th:first-child { font-weight: 600; color: var(--ink); }
.cmp td:last-child { color: var(--rust-deep); font-weight: 600; }

/* ---------- Related links (Weiterlesen) ---------- */
.related { margin-top: 48px; border-top: 1px solid var(--line-3); padding-top: 28px; }
.related h2 { font: 800 20px/1.2 var(--f-display); color: var(--ink); }
.related ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.related a { color: var(--rust-deep); font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---------- Print (Checklisten / Ratgeber als PDF speichern) ---------- */
@media print {
  .site-header, .site-footer, .cookie, .final-cta, .subhero .hero-actions,
  .nav-toggle, .crumbs, .toc, .inline-cta, .dl-card, .related, .skip-link { display: none !important; }
  .app-layout { display: block; }
  .prose { max-width: none; }
  .subhero { background: none; color: #000; padding: 0 0 12px; }
  .subhero h1, .subhero p { color: #000; }
  body { background: #fff; }
  a[target="_blank"]::after { content: ""; }
  .prose a:not(.btn) { color: #000; text-decoration: none; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 28px 86px; }
.legal h1 { font: 900 clamp(28px, 4vw, 40px)/1.1 var(--f-display); letter-spacing: -.025em; }
.legal .updated { font: 500 13px/1 var(--f-body); color: var(--muted-2); margin-top: 12px; }
.legal h2 { font: 800 22px/1.25 var(--f-display); margin-top: 40px; color: var(--ink); }
.legal h3 { font: 700 16px/1.3 var(--f-body); margin-top: 24px; }
.legal p { font: 400 15.5px/1.7 var(--f-body); color: var(--ink-soft); margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li { font: 400 15.5px/1.7 var(--f-body); color: var(--ink-soft); }
.legal a { color: var(--rust-deep); }
.legal .note {
  margin-top: 14px;
  background: #FBF1E9;
  border: 1px solid #EAD7C4;
  border-radius: 10px;
  padding: 14px 16px;
  font: 500 13.5px/1.6 var(--f-body);
  color: #8A5A3C;
}

/* ---------- Smartphone-Hinweis (App ist für den Desktop gebaut) ---------- */
.mgate {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(28, 23, 19, .58);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}
.mgate.open { display: flex; animation: mgate-fade .28s ease both; }
@keyframes mgate-fade { from { opacity: 0; } to { opacity: 1; } }

.mgate-card {
  position: relative;
  width: min(94vw, 452px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(194, 96, 63, .12), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 30px 26px;
  text-align: center;
  box-shadow: 0 40px 90px -36px rgba(60, 25, 15, .65), 0 2px 0 rgba(255, 255, 255, .6) inset;
  animation: mgate-pop .34s cubic-bezier(.2, .9, .3, 1.1) both;
}
@keyframes mgate-pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.mgate-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.mgate-x:hover { background: #F3E4D8; color: var(--rust-deep); border-color: var(--line-warm); }

/* Kleine Schreibtisch-Bildschirm-Illustration (rein CSS) */
.mgate-art { display: flex; flex-direction: column; align-items: center; margin: 4px 0 20px; }
.mgate-screen {
  position: relative;
  width: 176px;
  height: 110px;
  border-radius: 13px;
  background: linear-gradient(162deg, #FFFDFA, #F5ECE0);
  border: 3px solid var(--rust);
  box-shadow: inset 0 0 0 4px #fff, 0 16px 28px -18px rgba(150, 60, 30, .6);
  overflow: hidden;
}
.mgate-grid {
  position: absolute;
  inset: 9px;
  border-radius: 5px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: .85;
}
.mgate-desk {
  position: absolute;
  width: 30px;
  height: 22px;
  border-radius: 5px;
  left: 26px;
  top: 30px;
  background: rgba(189, 91, 61, .16);
  border: 2.5px solid var(--rust);
}
.mgate-desk.t2 {
  left: auto;
  right: 28px;
  top: 54px;
  background: rgba(110, 115, 85, .16);
  border-color: var(--olive);
}
.mgate-pin {
  position: absolute;
  right: 30px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px rgba(189, 91, 61, .22);
}
.mgate-neck { width: 16px; height: 12px; background: var(--rust); opacity: .9; }
.mgate-base { width: 64px; height: 8px; border-radius: 0 0 7px 7px; background: var(--rust); }

.mgate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust-deep);
}
.mgate-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rust); }
.mgate-title {
  margin: 14px 0 0;
  font: 800 clamp(23px, 6vw, 28px)/1.12 var(--f-display);
  letter-spacing: -.02em;
  color: var(--ink);
}
.mgate-lead { margin: 13px 0 0; font: 400 15px/1.6 var(--f-body); color: var(--muted); }
.mgate-sub { margin: 11px 0 0; font: 500 14px/1.55 var(--f-body); color: var(--ink-soft); }
.mgate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.mgate-actions .btn { width: 100%; justify-content: center; }
.mgate-copy.copied { background: var(--olive); border-color: var(--olive); }
.mgate-foot { margin: 16px 0 0; font: 500 12px/1.5 var(--f-mono); color: var(--muted-2); }

body.no-scroll { overflow: hidden; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: 720px;
  margin-inline: auto;
  background: var(--dark);
  color: var(--on-dark);
  border: 1px solid #3C342D;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  display: none;
}
.cookie.show { display: block; }
.cookie h2 { font: 800 16px/1.2 var(--f-display); color: #FCF9F4; }
.cookie p { font: 400 13px/1.6 var(--f-body); color: var(--on-dark); margin-top: 8px; }
.cookie p a { color: #F0B393; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 18px; font-size: 13.5px; }
.cookie .btn-mini-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #FCF9F4;
}
.cookie .btn-mini-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.mt-s { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .app-layout { grid-template-columns: 210px 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(60, 40, 20, .5);
    display: none;
    justify-self: stretch;
    /* Mit aufgeklapptem Untermenü wird der Auszug länger als der Bildschirm. */
    max-height: calc(100vh - 71px);
    max-height: calc(100dvh - 71px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav > ul > li {
    display: block;
    border-top: 1px solid var(--line-2);
    padding-block: 0;
    margin-block: 0;
  }
  .main-nav > ul > li:first-child { border-top: 0; }
  .main-nav > ul > li > a { padding: 14px 28px; display: block; }
  .main-nav > ul > li > a[aria-current]::after { display: none; }
  .header-cta { display: none; }

  /* Im Auszug wird aus dem Mega-Menü eine aufklappbare Liste. */
  .main-nav > ul > li.has-mega { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav > ul > li.has-mega > a { flex: 1; }
  .mega-toggle {
    width: 50px;
    height: 48px;
    margin-right: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-3);
    color: var(--ink-soft);
  }
  .has-mega:hover .mega-toggle,
  .has-mega:focus-within .mega-toggle { color: var(--ink-soft); transform: none; }
  .has-mega.mega-open .mega-toggle { color: var(--rust); transform: rotate(180deg); }
  .mega-panel {
    position: static;
    z-index: auto;
    width: 100%;
    flex-basis: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line-2);
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-3);
    transition: none;
  }
  .mega-panel::before { display: none; }
  .has-mega:hover > .mega-panel,
  .has-mega:focus-within > .mega-panel,
  .has-mega.mega-closed > .mega-panel { display: none; }
  .has-mega.mega-open > .mega-panel { display: block; transform: none; }
  .mega-inner { max-height: none; overflow: visible; }
  .mega-cols { grid-template-columns: 1fr; gap: 0; }
  .mega-col {
    background: none;
    border: 0;
    border-top: 1px solid var(--line-2);
    border-radius: 0;
    padding: 13px 28px 15px;
  }
  .mega-col:first-child { border-top: 0; }
  .mega-col:hover { border-color: var(--line-2); }
  .mega-col.is-active { background: rgba(189, 91, 61, .06); border-color: var(--line-2); }
  .mega-panel li a { padding: 7px 0; }
  .mega-foot { margin: 0; padding: 14px 28px 16px; }
  .nav-toggle { display: inline-flex; }
  .app-layout { grid-template-columns: 1fr; }
  .toc { position: static; top: auto; }
  .shot-row, .shot-row:nth-child(even) { grid-template-columns: 1fr; }
  .shot-row:nth-child(even) .shot-media { order: 0; }
  .window-stage { height: 460px; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding-inline: 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 130px; }
  .window-wrap { padding-inline: 14px; }
  .window-stage { height: 420px; }
  .wf-left { width: 150px; }
  .wf-right { display: none; }
  .beta-card, .contact-strip { padding: 22px; }
  .final-cta { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   Wissensbereich /bueroplanung/ — Artikelbausteine
   Byline, Antwortblock, Diagramme, Rechenbeispiele, Quellen
   ============================================================ */

/* ---------- Byline unter der H1 ---------- */
.byline {
  font: 500 13px/1.6 var(--f-body);
  color: var(--muted-2);
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
}
.byline a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.byline a:hover { color: var(--rust-deep); }
.byline .sep { color: var(--sand-2); }
.subhero .byline { color: #EFCFC0; }
.subhero .byline a { color: #FBEAE2; }
.subhero .byline .sep { color: rgba(255, 255, 255, .45); }

/* ---------- Antwortblock „Das Wichtigste in Kürze" ---------- */
.answer {
  margin-top: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line-warm);
  border-left: 5px solid var(--olive);
  border-radius: 14px;
  padding: 22px 26px 24px;
}
.answer h2 { font: 800 20px/1.25 var(--f-display) !important; letter-spacing: -.01em; }
.prose .answer ul { margin-top: 14px; gap: 11px; }
.prose .answer ul li { font-size: 15px; color: var(--ink-soft); }
.prose .answer ul li::before { background: var(--olive); }
.prose .answer p { font-size: 14.5px; }

/* ---------- Diagramme / Bilder im Artikel ---------- */
.prose figure { margin: 26px 0 0; }
.prose figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-3);
}
.prose figcaption {
  font: 400 13px/1.6 var(--f-body);
  color: var(--muted-2);
  margin-top: 10px;
  padding-left: 2px;
}
.prose figcaption b { color: var(--muted); font-weight: 700; }
/* erstes Bild direkt unter der H1 – above the fold */
.fig-lead { margin-top: 4px !important; }
.fig-lead img { border-color: var(--line-warm); }

/* ---------- Rechenbeispiel / Formelkasten ---------- */
.calc {
  margin-top: 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.calc .lbl {
  font: 700 10.5px/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust-deep);
}
.calc .formula {
  font: 700 16px/1.5 var(--f-mono);
  color: var(--ink);
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(36, 31, 27, .045);
  border-radius: 9px;
  overflow-x: auto;
}
.prose .calc p { font-size: 14.5px; margin-top: 12px; }
.prose .calc ul { margin-top: 12px; gap: 8px; }
.prose .calc ul li { font-size: 14.5px; }
.calc .result {
  margin-top: 14px;
  font: 700 15px/1.5 var(--f-body);
  color: var(--rust-deep);
  border-top: 1px dashed var(--line-warm);
  padding-top: 12px;
}

/* ---------- Hinweiskästen ---------- */
.note {
  margin-top: 22px;
  border-radius: 13px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand-2);
  background: var(--bg-2);
}
.note .nh {
  font: 700 11px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: 9px;
}
.prose .note p { font-size: 15px; margin-top: 0; }
.prose .note p + p { margin-top: 11px; }
.prose .note ul { margin-top: 11px; }
.prose .note ul li { font-size: 14.5px; }
.note-warn { border-left-color: var(--rust); }
.note-warn .nh { color: var(--rust-deep); }
.note-law { border-left-color: var(--gold); }
.note-law .nh { color: var(--gold-deep); }
.note-tip { border-left-color: var(--olive); }
.note-tip .nh { color: var(--olive-deep); }

/* ---------- Nummerierte Listen im Artikel ---------- */
.prose ol {
  margin: 16px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: pstep;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prose ol li {
  counter-increment: pstep;
  font: 400 15.5px/1.6 var(--f-body);
  color: var(--ink-soft);
  position: relative;
  padding-left: 35px;
}
.prose ol li::before {
  content: counter(pstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: rgba(189, 91, 61, .12);
  border: 1px solid rgba(189, 91, 61, .26);
  color: var(--rust-deep);
  font: 700 11.5px/21px var(--f-mono);
  text-align: center;
}
.prose ol.plain { counter-reset: none; }
.prose ol.plain li { padding-left: 0; }
.prose ol.plain li::before { content: none; }

/* ---------- Definitionsliste (Begriffsabgrenzung) ---------- */
.prose dl { margin: 18px 0 0; }
.prose dt {
  font: 700 15.5px/1.4 var(--f-body);
  color: var(--ink);
  margin-top: 16px;
}
.prose dt:first-child { margin-top: 0; }
.prose dd {
  margin: 6px 0 0;
  font: 400 15.5px/1.65 var(--f-body);
  color: var(--ink-soft);
  padding-left: 16px;
  border-left: 2px solid var(--line-warm);
}

/* ---------- Quellenkasten ---------- */
.sources {
  margin-top: 34px;
  border-top: 1px solid var(--line-3);
  padding-top: 20px;
}
.sources h2 { font: 800 17px/1.2 var(--f-display) !important; color: var(--ink); }
.sources ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sources li {
  font: 400 13.5px/1.6 var(--f-body);
  color: var(--muted);
  display: block !important;
}
.sources li::before { content: none !important; }
.sources a { color: var(--rust-deep); font-weight: 600; }
.legal-note {
  margin-top: 16px;
  font: 400 12.5px/1.65 var(--f-body);
  color: var(--muted-2);
  background: rgba(36, 31, 27, .035);
  border-radius: 10px;
  padding: 13px 16px;
}

/* ---------- Vergleichstabelle: Erweiterungen ---------- */
.cmp td:last-child { color: inherit; font-weight: inherit; }
.cmp.accent-last td:last-child { color: var(--rust-deep); font-weight: 600; }
.cmp caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 14px 12px;
  font: 400 12.5px/1.55 var(--f-body);
  color: var(--muted-2);
}
.cmp .yes { color: var(--olive-deep); font-weight: 700; }
.cmp .no { color: var(--rust-deep); font-weight: 700; }
.cmp tbody th { background: var(--bg-2); font: 700 13.5px/1.35 var(--f-body); }

/* ---------- Rubrikseiten (Ebene 1) ---------- */
.cluster-list { margin-top: 30px; display: grid; gap: 14px; }
.cluster-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.cluster-item:hover { border-color: #D9BBA8; box-shadow: 0 14px 34px -24px rgba(60, 40, 20, .5); }
.cluster-item .ci-num { font: 700 10px/1 var(--f-mono); letter-spacing: .12em; color: var(--sand-2); }
.cluster-item h3 { font: 700 18px/1.3 var(--f-body); color: var(--ink); margin-top: 8px; }
.cluster-item:hover h3 { color: var(--rust-deep); }
.cluster-item p { font: 400 14.5px/1.6 var(--f-body); color: var(--muted); margin-top: 7px; }
.cluster-item .ci-go { display: inline-block; margin-top: 11px; font: 700 12px/1 var(--f-mono); color: var(--rust-deep); }

/* ---------- Cluster-Navigation im Hub ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }

@media (max-width: 720px) {
  .answer { padding: 18px 18px 20px; }
  .calc { padding: 16px 16px; }
  .calc .formula { font-size: 14px; }
  .prose figure { margin-top: 20px; }
}

@media print {
  .answer, .note, .calc { break-inside: avoid; }
  .prose figure { break-inside: avoid; }
}

/* ---------- Kompakter Artikel-Header: erstes Diagramm above the fold ---------- */
.subhero.compact { padding: 44px 0 40px; }
.subhero.compact h1 { font-size: clamp(27px, 4vw, 39px); margin-top: 14px; }
.subhero.compact p { font-size: 15.5px; margin-top: 13px; max-width: 660px; }
.section.tight { padding-top: 30px; padding-bottom: 40px; }
.section.tight .app-layout { padding-top: 26px; padding-bottom: 60px; }
