/* DeskHand – Website
   Layout-Idee: "Schreibtisch". Helle Papierfläche, die dunkelgrüne Schreibunterlage
   als Bühne, und echte Dokumente (Rechnung, Brief, Übersicht) mit der gefalteten
   Ecke aus dem Logo. Farben und Schriften wie Flyer, Infoheft und Beratungsbuch. */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-500-italic.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; }

/* ---------- Farben und Maße ---------- */
:root {
  /* Fläche */
  --paper: #FFFDF9;
  --sheet: #FFFFFF;
  --sand: #F3EEE4;
  --line: #DDD5C6;
  --line-strong: #BDB3A1;
  /* Schrift */
  --ink: #1F1F1C;
  --muted: #55534D;
  --heading: #27403A;
  --accent: #A4482A;
  --link: #27403A;
  /* Schreibunterlage (grüne Bänder) */
  --desk: #27403A;
  --desk-ink: #F3EEE4;
  --desk-muted: #C5D0C9;
  --desk-line: rgba(243, 238, 228, 0.24);
  --gold: #E2C08A;
  --footer: #1E332D;
  /* Knöpfe */
  --btn: #27403A;
  --btn-ink: #F7F3EA;
  --btn-hover: #1B2E29;
  --focus: #A4482A;
  --ok: #2F6B4F;
  --ok-bg: #E4EFE8;
  --shadow: rgba(31, 31, 28, 0.16);
  /* Logo */
  --logo-sq: #27403A;
  --logo-corner: #A4482A;
  --logo-d: #F3EEE4;
  /* Papier-Dokumente bleiben in beiden Ansichten Papier */
  --doc: #FFFFFF;
  --doc-ink: #1F1F1C;
  --doc-muted: #55534D;
  --doc-line: #DDD5C6;
  --doc-head: #27403A;
  --doc-fold: #A4482A;
  --doc-sand: #F3EEE4;
  --doc-btn: #27403A;
  --doc-btn-ink: #F7F3EA;
  --doc-ok: #2F6B4F;
  /* Schrift-Rollen */
  --font-text: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  /* Maße */
  --wrap: 75rem;
  --gutter-l: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
  --section: clamp(3.25rem, 7vw, 5.75rem);
  --fold: 26px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101715;
    --sheet: #17201D;
    --sand: #1B2522;
    --line: #2F3D38;
    --line-strong: #4A5B55;
    --ink: #ECE7DC;
    --muted: #B2B8AF;
    --heading: #EFE8DA;
    --accent: #E29A7F;
    --link: #E2C08A;
    --desk: #1E302B;
    --desk-ink: #F3EEE4;
    --desk-muted: #B9C6BF;
    --desk-line: rgba(243, 238, 228, 0.18);
    --gold: #E2C08A;
    --footer: #0C1311;
    --btn: #E2C08A;
    --btn-ink: #1A1914;
    --btn-hover: #EFD3A4;
    --focus: #E2C08A;
    --ok: #8FD0AE;
    --ok-bg: #1D3329;
    --shadow: rgba(0, 0, 0, 0.5);
    --logo-sq: #F3EEE4;
    --logo-corner: #E2C08A;
    --logo-d: #27403A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101715;
  --sheet: #17201D;
  --sand: #1B2522;
  --line: #2F3D38;
  --line-strong: #4A5B55;
  --ink: #ECE7DC;
  --muted: #B2B8AF;
  --heading: #EFE8DA;
  --accent: #E29A7F;
  --link: #E2C08A;
  --desk: #1E302B;
  --desk-ink: #F3EEE4;
  --desk-muted: #B9C6BF;
  --desk-line: rgba(243, 238, 228, 0.18);
  --gold: #E2C08A;
  --footer: #0C1311;
  --btn: #E2C08A;
  --btn-ink: #1A1914;
  --btn-hover: #EFD3A4;
  --focus: #E2C08A;
  --ok: #8FD0AE;
  --ok-bg: #1D3329;
  --shadow: rgba(0, 0, 0, 0.5);
  --logo-sq: #F3EEE4;
  --logo-corner: #E2C08A;
  --logo-d: #27403A;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 70;
  background: var(--paper);
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
strong, b { font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.15rem + 3.7vw, 3.8rem); line-height: 1.07; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.55rem); line-height: 1.14; letter-spacing: -0.008em; }
h3 { font-size: 1.28rem; line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }
.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;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--btn); color: var(--btn-ink); padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { top: calc(0.5rem + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.wrap-narrow { max-width: 50rem; }

/* Abschnitte */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.bg-sand { background: var(--sand); }
.bg-sheet { background: var(--sheet); }
.bg-desk { background: var(--desk); color: var(--desk-ink); }
.bg-desk h1, .bg-desk h2, .bg-desk h3 { color: var(--desk-ink); }
.bg-desk a:not(.btn) { color: var(--gold); }
.bg-desk .muted { color: var(--desk-muted); }
.rule-top { border-top: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }
.section-head { display: flex; flex-direction: column; gap: 0.85rem; max-width: 48rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 42rem; }
.bg-desk .section-head p { color: var(--desk-muted); }
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--accent);
}
.bg-desk .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }
.prose { display: flex; flex-direction: column; gap: 1rem; }
.prose p, .prose li { max-width: 66ch; }
.prose ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.prose h2 { margin-top: 1.25rem; }
.prose h3 { margin-top: 0.75rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.split-even { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--heading); border-color: currentColor; }
.btn-ghost:hover { background: var(--sand); }
.bg-desk .btn-primary, .desk .btn-primary { background: var(--gold); color: #1A1914; }
.bg-desk .btn-primary:hover, .desk .btn-primary:hover { background: #EFD3A4; }
.bg-desk .btn-ghost { color: var(--desk-ink); }
.bg-desk .btn-ghost:hover { background: rgba(243, 238, 228, 0.1); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 0.85rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: "→"; transition: transform 0.15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 1.9rem; height: 2.3rem; flex: none; }
.brand-mark .sq { fill: var(--logo-sq); }
.brand-mark .co { fill: var(--logo-corner); }
.brand-mark .d { fill: var(--logo-d); }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 0.2rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--heading); letter-spacing: -0.005em; }
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.015em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  padding: 0.55rem 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--heading); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--accent); }
.header-call { flex: none; }
.menu { display: none; margin-left: auto; }
.menu > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.45rem 0.85rem;
  border: 2px solid var(--heading); color: var(--heading);
  font-weight: 600; cursor: pointer; border-radius: 2px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 1.1rem; height: 1.1rem; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px var(--shadow);
  padding: 0.5rem var(--gutter-r) 1.25rem var(--gutter-l);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}
.menu-panel nav { display: flex; flex-direction: column; }
.menu-panel nav a {
  display: block; padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.1rem;
}
.menu-panel nav a[aria-current="page"] { color: var(--heading); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); padding-left: 0.75rem; }
.menu-panel .btn-row { margin-top: 1rem; }
.menu-panel .btn { flex: 1 1 12rem; }
@media (max-width: 1100px) {
  .nav, .header-call { display: none; }
  .menu { display: block; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
}

/* ---------- Startbereich (Hero) ---------- */
.hero { padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.75rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 1rem; }
.hero-side { display: flex; flex-direction: column; gap: 1.15rem; }
.hero-sub { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent); font-size: clamp(1.45rem, 1.05rem + 1.4vw, 2.1rem); line-height: 1.2; }
.hero-note { display: flex; align-items: center; gap: 0.6rem; font-size: 1rem; color: var(--muted); }
.hero-note strong { color: var(--ink); }
.hero-note .dot { width: 0.55rem; height: 0.55rem; background: var(--accent); flex: none; }
.page-hero { padding-block: clamp(2.25rem, 6vw, 4.25rem) clamp(1.75rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 1rem; }
.page-hero .eyebrow { margin-bottom: 0.75rem; display: block; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- Schreibunterlage mit Dokumenten ---------- */
.desk {
  position: relative;
  background: var(--desk);
  color: var(--desk-ink);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.desk::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--desk-line);
  pointer-events: none;
}
.desk-stage { position: relative; z-index: 1; display: grid; gap: 0.85rem; }
.desk-label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--desk-muted);
  font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
}
.desk-label .n {
  display: inline-grid; place-items: center;
  width: 1.35rem; height: 1.35rem;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.75rem; letter-spacing: 0;
}
.desk-step { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; max-width: 24rem; }
.hero-desk { margin-top: clamp(2rem, 5vw, 3.25rem); }
.desk-flow {
  list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.2vw, 2.75rem); align-items: start;
}
.desk-flow > li { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; position: relative; }
.desk-flow > li + li::before {
  content: ""; position: absolute; top: 0.68rem; right: calc(100% + 0.45rem);
  width: calc(clamp(1.5rem, 3.2vw, 2.75rem) - 0.9rem); border-top: 1px dashed var(--gold);
}
.desk-flow .doc-wrap { transform: rotate(-0.6deg); }
.desk-note { color: var(--desk-muted); font-size: 0.93rem; line-height: 1.5; }
@media (max-width: 1060px) {
  .desk-flow { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; }
  .desk-flow > li + li::before { display: none; }
  .desk-flow .doc-wrap { transform: none; }
}

/* Sprachnachricht */
.voice {
  background: #F3EEE4;
  color: #1F1F1C;
  padding: 0.75rem 0.9rem 0.8rem;
  border-radius: 2px 14px 14px 14px;
  display: flex; flex-direction: column; gap: 0.55rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.voice-row { display: flex; align-items: center; gap: 0.7rem; }
.voice-play { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #27403A; display: grid; place-items: center; flex: none; }
.voice-play svg { width: 0.85rem; height: 0.85rem; fill: #F3EEE4; margin-left: 2px; }
.wave { display: flex; align-items: center; gap: 3px; height: 1.8rem; flex: 1; min-width: 0; overflow: hidden; }
.wave i { display: block; width: 3px; background: #27403A; opacity: 0.75; border-radius: 2px; flex: none; animation: wave 1.6s ease-in-out infinite; }
.voice-time { font-size: 0.8rem; color: #55534D; font-variant-numeric: tabular-nums; flex: none; }
.voice-text { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.4; }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }

/* Papier-Dokument mit gefalteter Ecke */
.doc-wrap { filter: drop-shadow(0 14px 22px var(--shadow)) drop-shadow(0 2px 3px var(--shadow)); min-width: 0; }
.doc {
  position: relative;
  background: var(--doc);
  color: var(--doc-ink);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
  padding: clamp(1rem, 2.6vw, 1.6rem);
  font-size: 0.86rem;
  line-height: 1.45;
}
.doc::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: var(--fold); height: var(--fold);
  background: var(--doc-fold);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.doc-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 2px solid var(--doc-head); padding-bottom: 0.6rem; margin-bottom: 0.75rem; padding-right: 1.25rem; }
.doc-firm { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--doc-head); line-height: 1.2; }
.doc-firm small { display: block; font-family: var(--font-text); font-weight: 400; font-size: 0.72rem; color: var(--doc-muted); margin-top: 0.15rem; }
.stamp {
  border: 2px solid var(--doc-fold); color: var(--doc-fold);
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em;
  padding: 0.1rem 0.4rem; transform: rotate(-6deg); flex: none; margin-top: 0.15rem;
}
.doc-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem 1rem; margin-bottom: 0.85rem; }
.doc-meta dl { display: grid; grid-template-columns: auto auto; gap: 0.05rem 0.75rem; margin: 0; font-size: 0.78rem; }
.doc-meta dt { color: var(--doc-muted); }
.doc-meta dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.doc-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--doc-ink); }
.doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc th { text-align: left; font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--doc-muted); padding: 0.3rem 0.35rem; border-bottom: 1px solid var(--doc-line); }
.doc td { padding: 0.34rem 0.35rem; border-bottom: 1px solid var(--doc-line); vertical-align: top; }
.doc td.r, .doc th.r { text-align: right; white-space: nowrap; }
.doc tfoot td { border-bottom: 0; padding-top: 0.3rem; padding-bottom: 0.15rem; }
.doc tfoot tr.total td { font-weight: 700; font-size: 0.95rem; border-top: 1px solid var(--doc-ink); padding-top: 0.4rem; }
.doc-foot { margin-top: 0.7rem; font-size: 0.72rem; color: var(--doc-muted); }
.doc .hl { background: var(--doc-sand); }
.doc-letter { font-size: 0.92rem; line-height: 1.55; display: flex; flex-direction: column; gap: 0.7rem; }
.doc-letter .addr { font-size: 0.8rem; color: var(--doc-muted); }

/* Freigabe-Karte (wie auf dem Handy) */
.approve {
  background: #FFFFFF;
  color: #1F1F1C;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.18);
  padding: 0.95rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  font-size: 0.92rem;
}
.approve-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #55534D; }
.approve-top .app { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: #27403A; }
.approve-top .app svg { width: 0.85rem; height: 1rem; }
.approve-title { font-weight: 700; font-size: 1rem; }
.approve-lines { color: #3C3B37; line-height: 1.4; }
.approve-sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #DDD5C6; padding-top: 0.5rem; }
.approve-sum strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.approve-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.approve-btns button {
  font: inherit; font-weight: 600; min-height: 2.6rem; border-radius: 8px; cursor: pointer;
  border: 2px solid #27403A;
}
.approve-btns .yes { background: #27403A; color: #F7F3EA; }
.approve-btns .yes:hover { background: #1B2E29; }
.approve-btns .no { background: #FFFFFF; color: #27403A; }
.approve-btns .no:hover { background: #F3EEE4; }
.approve-btns button:focus-visible { outline: 3px solid #A4482A; outline-offset: 2px; }
.approve-status { font-size: 0.85rem; line-height: 1.4; }
.approve-status:empty { display: none; }
.approve-status.ok { color: #2F6B4F; background: #E4EFE8; padding: 0.55rem 0.65rem; border-radius: 6px; }
.approve-status.edit { color: #3C3B37; background: #F3EEE4; padding: 0.55rem 0.65rem; border-radius: 6px; }
.approve.done .approve-btns { display: none; }

/* ---------- Bausteine ---------- */
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  min-width: 0;
}
.bg-sheet .card { background: var(--paper); }
.card p { color: var(--muted); }
.card h3 { color: var(--heading); }
.card .tag { align-self: flex-start; }
.card-flat { background: transparent; border: 0; padding: 0; }
.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--heading);
  border: 1px solid var(--line-strong);
  padding: 0.15rem 0.5rem;
  background: var(--paper);
}
.tag-accent { color: var(--accent); border-color: currentColor; background: transparent; }

/* Liste mit Häkchen */
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.checks li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.checks li::before {
  content: "";
  width: 1.05rem; height: 1.05rem; margin-top: 0.28rem;
  background: var(--heading);
  -webkit-mask: url("../img/check.svg") center / contain no-repeat;
  mask: url("../img/check.svg") center / contain no-repeat;
}
.bg-desk .checks li::before { background: var(--gold); }
.crosses { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.crosses li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.crosses li::before {
  content: ""; width: 0.95rem; height: 0.95rem; margin-top: 0.32rem;
  background: var(--accent);
  -webkit-mask: url("../img/cross.svg") center / contain no-repeat;
  mask: url("../img/cross.svg") center / contain no-repeat;
}

/* Schritte (echte Reihenfolge) */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps > li { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding-top: 3.4rem; min-width: 0; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  background: var(--desk); color: var(--desk-ink);
}
.steps > li::after {
  content: ""; position: absolute; top: 1.3rem; left: 3.1rem; right: -1rem;
  border-top: 1px dashed var(--line-strong);
}
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); }
.bg-desk .steps > li::before { background: var(--gold); color: #1A1914; }
.bg-desk .steps p { color: var(--desk-muted); }
@media (max-width: 980px) {
  .steps, .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li::after { display: none; }
}
@media (max-width: 560px) {
  .steps, .steps.five { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps > li { padding-top: 0; padding-left: 3.6rem; min-height: 2.6rem; }
}

/* Leistungen als Dokumentarten */
.doc-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.doc-type { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(1.1rem, 2.4vw, 1.6rem); display: flex; flex-direction: column; gap: 0.55rem; background: var(--sheet); min-width: 0; }
.doc-type p { color: var(--muted); }
.doc-type .tag { align-self: flex-start; }
@media (max-width: 980px) { .doc-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .doc-types { grid-template-columns: minmax(0, 1fr); } }

/* Grundsätze */
.principles { list-style: none; padding: 0; counter-reset: pr; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--desk-ink); }
.principles li { counter-increment: pr; padding: 1.2rem 1.1rem 0.4rem 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.principles li + li { padding-left: 1.1rem; border-left: 1px solid var(--desk-line); }
.principles li::before { content: counter(pr); font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold); font-weight: 500; }
.principles h3 { font-size: 1.12rem; }
.principles p { color: var(--desk-muted); font-size: 0.98rem; }
@media (max-width: 1100px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li, .principles li + li { padding: 1.2rem 1rem 1rem 0; border-left: 0; border-bottom: 1px solid var(--desk-line); }
}
@media (max-width: 600px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Preis-Karten */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.way { background: var(--sheet); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.way-head { padding: 1.35rem 1.4rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.35rem; }
.way-head h3 { font-size: 1.45rem; }
.way-price { font-family: var(--font-display); font-weight: 600; color: var(--heading); font-size: 2.1rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.way-price small { font-family: var(--font-text); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.way-for { color: var(--muted); font-size: 0.98rem; }
.way-body { padding: 1.1rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.way-body .checks { font-size: 0.98rem; }
.way-body .text-link { margin-top: auto; }
.way.featured { border: 2px solid var(--heading); }
.way.featured .way-head { background: var(--sand); }
@media (max-width: 980px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Tabellen */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--sheet); max-width: 100%; }
.tbl { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.tbl caption { text-align: left; padding: 0.9rem 1rem; font-weight: 600; color: var(--heading); font-family: var(--font-display); font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.tbl th, .tbl td { padding: 0.72rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--sand); white-space: nowrap; }
.tbl tbody th { font-weight: 500; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.tbl thead th.num { text-align: right; }
.tbl .c { text-align: center; }
.tbl tr.em td, .tbl tr.em th { font-weight: 700; }
.tbl tr.hl > * { background: var(--sand); }
.tbl-pack { min-width: 44rem; }
.tbl-pack thead th { font-family: var(--font-display); font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--heading); text-align: right; }
.tbl-pack thead th:first-child { text-align: left; font-family: var(--font-text); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tbl-pack tbody th { position: sticky; left: 0; background: var(--sheet); z-index: 1; min-width: 12rem; }
.tbl-pack tr.price td { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--heading); }
.tbl-wide { min-width: 40rem; }
.yes-mark, .no-mark { display: inline-block; width: 1.1rem; height: 1.1rem; vertical-align: -0.2rem; }
.yes-mark { background: var(--ok); -webkit-mask: url("../img/check.svg") center / contain no-repeat; mask: url("../img/check.svg") center / contain no-repeat; }
.no-mark { background: var(--line-strong); -webkit-mask: url("../img/dash.svg") center / contain no-repeat; mask: url("../img/dash.svg") center / contain no-repeat; }
.note { font-size: 0.88rem; color: var(--muted); margin-top: 0.75rem; max-width: 70ch; }

/* Rechenzettel (Beispielrechnung) */
.slip { background: var(--sheet); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 0.25rem; font-variant-numeric: tabular-nums; }
.slip-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.slip-row span:last-child { white-space: nowrap; text-align: right; }
.slip-row.sum { border-bottom: 0; font-weight: 700; }
.slip-row.sum span:last-child { border-bottom: 3px double var(--ink); padding-bottom: 0.1rem; }
.slip-row.ours { color: var(--heading); font-weight: 600; }
.slip-row.ours span:last-child { font-family: var(--font-display); font-size: 1.15rem; }
.slip-result { margin-top: 0.9rem; background: var(--sand); padding: 1rem 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.slip-result strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--heading); }
.slip-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--heading); margin-bottom: 0.4rem; }

/* Beispiel-Karten */
.example { background: var(--sheet); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.example-head { padding: 1.2rem 1.3rem 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; border-bottom: 1px solid var(--line); }
.example-head h3 { font-size: 1.15rem; }
.example-head p { color: var(--muted); font-size: 0.95rem; }
.example-body { padding: 0.9rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; font-variant-numeric: tabular-nums; font-size: 0.95rem; flex: 1; }
.example-body .slip-row { padding: 0.32rem 0; }
.example-body .best { margin-top: auto; padding-top: 0.75rem; display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; flex-wrap: wrap; }
.example-body .best strong { color: var(--heading); font-family: var(--font-display); font-size: 1.15rem; }

/* Zeitleiste (Mahnplan, E-Rechnung) */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--heading); }
.timeline li { padding: 0.9rem 1rem 0.5rem 0; position: relative; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: -0.45rem; left: 0; width: 0.8rem; height: 0.8rem; background: var(--paper); border: 2px solid var(--heading); }
.bg-sand .timeline li::before { background: var(--sand); }
.timeline .when { font-family: var(--font-display); font-weight: 600; color: var(--heading); font-size: 1.15rem; }
.timeline .what { font-weight: 600; }
.timeline .tone { color: var(--muted); font-size: 0.92rem; }
.timeline.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .timeline, .timeline.four { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--heading); }
  .timeline li { padding: 0 0 1.2rem 1.25rem; }
  .timeline li::before { top: 0.35rem; left: -0.5rem; }
}

/* Fragen (aufklappbar) */
.faq-list { border-bottom: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq > summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.35;
  color: var(--heading);
  position: relative;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 1.4rem; height: 1.4rem; margin-top: -0.7rem;
  background: var(--heading);
  -webkit-mask: url("../img/plus.svg") center / contain no-repeat;
  mask: url("../img/plus.svg") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.faq[open] > summary::after { transform: rotate(45deg); }
.faq > summary:hover { color: var(--accent); }
.faq-body { padding: 0 0 1.3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-body p { max-width: 66ch; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Checkliste "Kommt Ihnen das bekannt vor?" */
.tick-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.tick-list label {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.7rem; align-items: start;
  background: var(--sheet); border: 1px solid var(--line);
  padding: 0.85rem 1rem; cursor: pointer; line-height: 1.45;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tick-list label:hover { border-color: var(--line-strong); }
.tick-list input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--heading); }
.tick-list input:checked + span { color: var(--heading); font-weight: 500; }
.tick-list label:has(input:checked) { border-color: var(--heading); background: var(--paper); }
.tick-result { margin-top: 1.25rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; background: var(--sheet); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.tick-result p { font-weight: 500; }
.tick-result .count { font-family: var(--font-display); font-weight: 600; color: var(--heading); }
.tick-result.hit { border-color: var(--heading); background: var(--paper); }
@media (max-width: 700px) { .tick-list { grid-template-columns: minmax(0, 1fr); } }

/* Gewerke */
.trades { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trades li { border: 1px solid var(--line-strong); padding: 0.45rem 0.85rem; background: var(--sheet); font-weight: 500; }

/* Personen-Block */
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.monogram { width: 5.5rem; height: 6.6rem; flex: none; }
.monogram .sq { fill: var(--logo-sq); }
.monogram .co { fill: var(--logo-corner); }
.monogram .d { fill: var(--logo-d); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.value { border-top: 2px solid var(--heading); padding-top: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }
.value p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* Zitat / Hinweis */
.quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); line-height: 1.4; color: var(--heading); border-left: 3px solid var(--accent); padding-left: 1.1rem; max-width: 40rem; }
.callout { background: var(--sand); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; border-left: 3px solid var(--heading); }
.callout p { max-width: 66ch; }
.callout strong:first-child { color: var(--heading); }
.bg-sand .callout { background: var(--sheet); }
.good-bad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.good, .bad { padding: 1rem 1.15rem; border: 1px solid var(--line); background: var(--sheet); display: flex; flex-direction: column; gap: 0.45rem; }
.good { border-top: 3px solid var(--ok); }
.bad { border-top: 3px solid var(--accent); }
.good p.say, .bad p.say { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
@media (max-width: 700px) { .good-bad { grid-template-columns: minmax(0, 1fr); } }

/* Großer Aufruf */
.cta-band { padding-block: clamp(3rem, 7vw, 5rem); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.cta-phone { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); color: var(--desk-ink); text-decoration: none; letter-spacing: 0.01em; font-variant-numeric: lining-nums; white-space: nowrap; }
.bg-desk a.cta-phone { color: var(--desk-ink); }
.cta-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.cta-box { border: 1px solid var(--desk-line); padding: clamp(1.2rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: 0.9rem; }
.cta-box .muted { font-size: 0.95rem; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* Kontakt */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.channel { background: var(--sheet); border: 1px solid var(--line); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.channel .big { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--heading); overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.channel p { color: var(--muted); font-size: 0.95rem; }
.channel .btn-row { margin-top: auto; }
@media (max-width: 900px) { .channels { grid-template-columns: minmax(0, 1fr); } }
.copy-ok { font-size: 0.85rem; color: var(--ok); }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.7rem 0.8rem; min-height: 3rem;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--sheet); color: var(--ink);
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--heading); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.45rem 0.9rem; border: 1px solid var(--line-strong); background: var(--sheet); font-weight: 500; cursor: pointer; }
.choice input:checked + span { background: var(--heading); color: var(--paper); border-color: var(--heading); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { font-size: 0.88rem; color: var(--muted); max-width: 62ch; }
.form-msg { font-size: 0.95rem; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); }
.form-msg.warn { color: var(--accent); }
.preview-box { background: var(--sand); padding: 0.9rem 1rem; font-size: 0.92rem; white-space: pre-wrap; font-family: var(--font-text); border-left: 3px solid var(--heading); overflow-wrap: anywhere; max-height: 16rem; overflow-y: auto; }

/* Rechner */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); border: 1px solid var(--line); background: var(--sheet); }
.calc-in { background: var(--sand); padding: clamp(1.2rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 1.35rem; }
.calc-out { padding: clamp(1.2rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.calc .field input[type="number"] { font-variant-numeric: tabular-nums; max-width: 9rem; }
.calc .field input[type="range"] { padding: 0; min-height: 1.5rem; border: 0; background: transparent; accent-color: var(--heading); }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 0.75rem; align-items: center; }
.calc-best { display: flex; flex-direction: column; gap: 0.25rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.calc-best .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; }
.calc-best .name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--heading); line-height: 1.2; }
.calc-best .price { font-family: var(--font-display); font-weight: 600; font-size: 2.3rem; color: var(--heading); line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.calc-best .price small { font-family: var(--font-text); font-size: 1rem; color: var(--muted); font-weight: 500; }
.calc-best .detail { color: var(--muted); font-size: 0.95rem; }
.calc-alts { list-style: none; padding: 0; display: flex; flex-direction: column; }
.calc-alts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.calc-alts li .what { min-width: 0; }
.calc-alts li .what small { display: block; color: var(--muted); font-size: 0.85rem; }
.calc-alts li .cost { text-align: right; white-space: nowrap; font-weight: 600; }
.calc-alts li .cost small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.calc-time { background: var(--sand); padding: 1rem 1.1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.calc-time div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.calc-time span { font-size: 0.8rem; color: var(--muted); }
.calc-time strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--heading); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .calc-time { grid-template-columns: minmax(0, 1fr); } }

/* Monatsübersicht (Dokument) */
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0.4rem 0 0.8rem; }
.mini-stats div { background: var(--doc-sand); padding: 0.45rem 0.55rem; display: flex; flex-direction: column; }
.mini-stats span { font-size: 0.68rem; color: var(--doc-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mini-stats strong { font-size: 0.98rem; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Rechtstexte */
.legal { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.legal h2 { font-size: 1.45rem; margin-top: 1.5rem; }
.legal h3 { font-size: 1.12rem; margin-top: 0.75rem; }
.legal p, .legal li { max-width: 70ch; }
.legal ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.legal address { font-style: normal; }
.legal .box { background: var(--sand); padding: 1rem 1.2rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--footer); color: var(--desk-ink); padding-block: clamp(2.75rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.site-footer h2 { font-family: var(--font-text); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gold); font-weight: 600; margin-bottom: 0.85rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { color: var(--desk-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-name { color: var(--desk-ink); }
.site-footer .brand-tag { color: var(--desk-muted); }
.site-footer .brand-mark .sq { fill: #F3EEE4; }
.site-footer .brand-mark .co { fill: #E2C08A; }
.site-footer .brand-mark .d { fill: #27403A; }
.footer-claim { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--desk-ink); margin-top: 1rem; max-width: 22rem; line-height: 1.4; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--desk-line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; color: var(--desk-muted); }
.footer-contact li { color: var(--desk-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Schnellkontakt unten auf dem Handy ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  background: var(--desk);
  padding: 0.45rem max(0.6rem, env(safe-area-inset-right, 0px)) calc(0.45rem + env(safe-area-inset-bottom, 0px)) max(0.6rem, env(safe-area-inset-left, 0px));
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-height: 3.1rem; color: var(--desk-ink); text-decoration: none; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--desk-line);
}
.action-bar a:first-child { background: var(--gold); color: #1A1914; border-color: var(--gold); }
.action-bar svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 760px) {
  .action-bar { display: grid; }
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Fehlerseite ---------- */
.error-page { padding-block: clamp(3rem, 10vw, 7rem); }
.error-code { font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--line-strong); }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  :root { --paper: #fff; --sheet: #fff; --sand: #f3eee4; --ink: #000; --muted: #333; --heading: #27403A; }
  body { font-size: 11pt; }
  .site-header, .action-bar, .menu, .btn, .btn-row, .skip, .calc-in input[type="range"] { display: none !important; }
  .bg-desk { background: #fff !important; color: #000 !important; }
  .bg-desk h1, .bg-desk h2, .bg-desk h3, .bg-desk .muted, .bg-desk p { color: #000 !important; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, .site-footer .brand-name { color: #000; }
  .section { padding-block: 1.25rem; }
  a { color: #000; text-decoration: none; }
  .table-scroll { overflow: visible; }
  .tbl-pack, .tbl-wide { min-width: 0; }
}

/* Wellenform der Sprachnachricht (ohne Inline-Styles, wegen Sicherheitsregeln) */
.wave i { height: 45%; }
.wave i:nth-child(3n+1) { height: 62%; animation-delay: -0.2s; }
.wave i:nth-child(3n+2) { height: 84%; animation-delay: -0.5s; }
.wave i:nth-child(4n) { height: 38%; animation-delay: -0.9s; }
.wave i:nth-child(5n) { height: 96%; animation-delay: -1.2s; }
.wave i:nth-child(7n) { height: 30%; animation-delay: -0.7s; }
.wave i:nth-child(11n) { height: 72%; animation-delay: -1.4s; }

/* Sprungmarken auf Unterseiten */
.jump { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.jump a { font-size: 0.9rem; font-weight: 500; text-decoration: none; border: 1px solid var(--line-strong); padding: 0.35rem 0.7rem; color: var(--ink); background: var(--sheet); }
.jump a:hover { border-color: var(--heading); color: var(--heading); }

/* Grenzen der Kleinrechnung */
.limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.limit { background: var(--sheet); border: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.limit strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--heading); font-variant-numeric: lining-nums; line-height: 1.2; }
.limit span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Abschnitte innerhalb einer Seite */
.block { margin-top: clamp(2rem, 5vw, 3rem); }
.wrap + .wrap { margin-top: clamp(2rem, 5vw, 3rem); }
.sub-h { font-size: 1.2rem; margin-bottom: 0.6rem; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list li { background: var(--sand); padding: 0.4rem 0.75rem; font-size: 0.95rem; }
.bg-sand .pill-list li { background: var(--sheet); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv dd { margin-bottom: 0.4rem; } }
.preset-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.preset-row button { font: inherit; font-size: 0.88rem; font-weight: 500; padding: 0.35rem 0.7rem; min-height: 2.3rem; border: 1px solid var(--line-strong); background: var(--sheet); color: var(--ink); cursor: pointer; border-radius: 2px; }
.preset-row button:hover { border-color: var(--heading); color: var(--heading); }
.download { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; background: var(--sheet); border: 1px solid var(--line); padding: 1rem 1.1rem; text-decoration: none; color: inherit; }
.download:hover { border-color: var(--heading); }
.download .ico { width: 2.6rem; height: 3.1rem; }
.download .ico .sq { fill: var(--logo-sq); }
.download .ico .co { fill: var(--logo-corner); }
.download strong { color: var(--heading); display: block; }
.download span { color: var(--muted); font-size: 0.9rem; }
.bg-desk .download { background: transparent; border-color: var(--desk-line); }
.bg-desk .download strong { color: var(--desk-ink); }
.bg-desk .download span { color: var(--desk-muted); }
.bg-desk .download .ico .sq { fill: #F3EEE4; }
.bg-desk .download .ico .co { fill: #E2C08A; }

/* Logo in der Freigabe-Karte bleibt in beiden Ansichten grün (die Karte ist immer weiß) */
.approve .brand-mark .sq { fill: #27403A; }
.approve .brand-mark .co { fill: #A4482A; }
.approve .brand-mark .d { fill: #F3EEE4; }

/* Abstände zwischen Bausteinen */
.doc-types + .callout { margin-top: 1.5rem; }
.note + .btn-row { margin-top: 1.25rem; }
.section-head .text-link { align-self: flex-start; }

/* Fragen-Seite: Themen links, Antworten rechts */
.faq-layout { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.faq-nav { position: sticky; top: calc(5.75rem + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 1rem; }
.faq-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.faq-nav a { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.45rem 0.9rem; text-decoration: none; color: var(--ink); font-weight: 500; margin-left: -2px; border-left: 2px solid transparent; }
.faq-nav a:hover { color: var(--heading); border-left-color: var(--accent); }
.faq-nav .count { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.faq-groups { min-width: 0; max-width: 48rem; }
.faq-group { scroll-margin-top: 6rem; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-nav { position: static; }
  .faq-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0.45rem; border-left: 0; }
  .faq-nav a { border: 1px solid var(--line-strong); margin-left: 0; padding: 0.35rem 0.75rem; }
  .faq-nav a:hover { border-color: var(--heading); }
  .faq-nav .callout { display: none; }
}

/* Breite Texttabellen auf dem Handy untereinander statt seitlich scrollend */
@media (max-width: 640px) {
  .tbl-wide { min-width: 0; }
  .tbl-wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl-wide, .tbl-wide tbody, .tbl-wide tr, .tbl-wide th, .tbl-wide td { display: block; }
  .tbl-wide tr { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
  .tbl-wide tbody tr:last-child { border-bottom: 0; }
  .tbl-wide th, .tbl-wide td, .tbl-wide tbody tr:last-child th, .tbl-wide tbody tr:last-child td { border: 0; padding: 0.1rem 0; }
  .tbl-wide tbody th { font-weight: 600; color: var(--heading); }
  .tbl-wide td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-top: 0.45rem; }
}

/* Beispiel-Dokumente auf schmalen Bildschirmen etwas kompakter */
@media (max-width: 520px) {
  .doc { font-size: 0.8rem; }
  .doc .opt { display: none; }
  .doc th, .doc td { padding-inline: 0.2rem; }
  .doc-meta { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .doc-meta dl { justify-self: start; }
  .doc-meta dd { text-align: left; }
}

.timeline { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.copy-ok:empty { display: none; }
