/* ==========================================================================
   Lamuria E-Rechnung - Design-System v2 ("grüne Wiese", Session 9)
   Eigenständige Produktidentität: Space Grotesk (Display) + Inter (UI),
   Ink-Navy + Petrol/Mint, Papier-Motiv. Klassen-Kontrakt von ui.js /
   viewer-ui.js bleibt vollständig erhalten.
   ========================================================================== */

/* --- Schriften (selbst gehostet, SIL OFL; variable Fonts von Google Fonts,
       Dateien identisch mit dem Bestand der Lamuria-Hauptseite) --- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/spacegrotesk_v22_V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/spacegrotesk_v22_V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter_v20_UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter_v20_UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design-Tokens --- */
:root {
  /* Flächen + Text */
  --ink: #0b1220;          /* dunkelste Fläche / Displaytext */
  --ink-2: #111c30;        /* Karten auf dunklem Grund */
  --ink-3: #1a2740;        /* Linien/Hover auf dunklem Grund */
  --text: #1b2434;         /* Fließtext auf hell */
  --muted: #5b6574;        /* Sekundärtext */
  --paper: #ffffff;
  --paper-2: #f5f7fa;      /* Sektions-Wechselgrund */
  --line: #e3e8ef;
  --line-strong: #cbd4e0;

  /* Marke */
  --brand: #0f766e;        /* Petrol - CTAs, Links, Akzente auf hell */
  --brand-strong: #0c5f58;
  --brand-tint: #e6f4f2;
  --mint: #2dd4bf;         /* Akzent auf dunklem Grund */
  --mint-soft: #99f6e4;

  /* Semantik */
  --ok: #15803d;
  --ok-bg: #e9f6ee;
  --warning: #966b09;
  --warning-bg: #fdf5df;
  --error: #c0392f;
  --error-bg: #fbebe9;

  /* Geometrie */
  --radius: 16px;
  --radius-s: 10px;
  --maxw: 1160px;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px -16px rgba(11, 18, 32, 0.18);
  --shadow-2: 0 2px 4px rgba(11, 18, 32, 0.06), 0 20px 44px -20px rgba(11, 18, 32, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Schrift-Stacks */
  --font-ui: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-ui);
}

/* --- Reset + Basis --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Natives hidden muss immer gewinnen, auch gegen Layout-Regeln wie
   `.plan li { display: flex; }` (sonst behalten [hidden]-Knoten eine
   Layout-Box). Alle Show-Zustände nutzen bereits :not([hidden]). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font: 400 16px/1.65 var(--font-ui);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Screenreader-only (Input bleibt fokussierbar/bedienbar) */
.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;
}

/* ==========================================================================
   Header + Footer (alle Seiten)
   ========================================================================== */
header.site {
  background: var(--ink);
  color: #eef2f7;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px 22px;
  flex-wrap: wrap;
  min-height: 60px;
  position: relative;
  z-index: 20;
}
header.site .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px; letter-spacing: 0.01em;
  color: #fff; text-decoration: none;
  padding: 12px 0;
}
header.site .brand .mark { width: 26px; height: 26px; flex: none; display: block; }
header.site .brand span { color: var(--mint); }
header.site nav { margin-left: auto; display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
header.site nav a {
  color: rgba(238, 242, 247, 0.78);
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.2s;
}
header.site nav a:hover { color: #fff; }
header.site nav a[aria-current="page"] { color: var(--mint); border-bottom-color: var(--mint); }
header.site nav a.nav-home { opacity: 0.6; }

footer.site {
  background: var(--ink);
  color: rgba(238, 242, 247, 0.66);
  margin-top: 72px;
  padding: 34px 24px;
  font-size: 13.5px;
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  align-items: center;
}
footer.site a { color: rgba(238, 242, 247, 0.85); }
footer.site a:hover { color: var(--mint); }
footer.site .attribution { flex-basis: 100%; font-size: 12px; color: rgba(238, 242, 247, 0.45); }
footer.site .attribution a { color: rgba(238, 242, 247, 0.6); }

/* ==========================================================================
   Bausteine: Buttons, Chips, Badges
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--radius-s);
  padding: 11px 20px;
  font: 600 15px/1.2 var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 8px 18px -12px rgba(15, 118, 110, 0.8);
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(15, 118, 110, 0.9); }
.btn:active { transform: none; }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }
.btn.secondary {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); font-weight: 600; box-shadow: none;
}
.btn.secondary:hover { border-color: var(--muted); background: var(--paper-2); color: var(--ink); transform: none; box-shadow: none; }
.btn.outline {
  background: transparent; border: 1px solid var(--brand); color: var(--brand); box-shadow: none;
}
.btn.outline:hover { background: var(--brand-tint); color: var(--brand-strong); transform: none; box-shadow: none; }
.btn.outline:disabled { background: transparent; border-color: var(--line); color: var(--muted); }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Kicker/Eyebrow über Überschriften */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand);
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--mint), var(--brand)); border-radius: 2px; }

/* Vertrauens-Chip ("100 % lokal") */
.local-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ok-bg); color: var(--ok);
  border: 1px solid #cdebd8;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 26px;
}
.local-badge svg { width: 14px; height: 14px; flex: none; }

.lead { color: var(--muted); max-width: 760px; margin-bottom: 26px; font-size: 17px; }
h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }

/* Haupt-Container der Tool-Seiten */
main { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 72px; }
main.landing { max-width: none; padding: 0; }

/* ==========================================================================
   Landingpage
   ========================================================================== */
section.band { padding: 84px 0; }
section.band.alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* --- Hero --- */
.hero {
  position: relative;
  background:
    radial-gradient(90% 70% at 82% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0e1930 100%);
  color: #eef2f7;
  padding: 76px 0 88px;
  overflow: hidden;
}
/* Papier-Motiv: feine "Belegzeilen" im Hintergrund */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 34px, rgba(238, 242, 247, 0.035) 34px 35px);
  mask-image: linear-gradient(75deg, transparent 42%, #000 78%);
  -webkit-mask-image: linear-gradient(75deg, transparent 42%, #000 78%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center; position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--mint-soft);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .sub { color: rgba(238, 242, 247, 0.78); font-size: clamp(16px, 1.8vw, 18.5px); max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.btn.on-dark { background: var(--mint); border-color: var(--mint); color: #052e2a; box-shadow: 0 14px 30px -14px rgba(45, 212, 191, 0.7); }
.btn.on-dark:hover { background: var(--mint-soft); border-color: var(--mint-soft); color: #052e2a; }
.btn.ghost {
  background: transparent; border: 1px solid rgba(238, 242, 247, 0.3);
  color: #eef2f7; box-shadow: none;
}
.btn.ghost:hover { border-color: var(--mint); background: rgba(45, 212, 191, 0.1); color: #fff; transform: none; }
.hero-formats { color: rgba(238, 242, 247, 0.55); font-size: 13px; letter-spacing: 0.04em; }
.hero-formats strong { color: rgba(238, 242, 247, 0.8); font-weight: 600; }

/* Hero-Visual: Beleg-Karte mit Prüf-Badges (reines CSS) */
.hero-visual { position: relative; min-height: 380px; }
.mock-invoice {
  position: relative;
  background: #fff; color: var(--text);
  border-radius: 14px;
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.65);
  padding: 26px 28px;
  max-width: 400px;
  margin-left: auto;
  transform: rotate(2.2deg);
  transition: transform 0.5s var(--ease);
}
.hero-visual:hover .mock-invoice { transform: rotate(0.6deg) translateY(-4px); }
.mock-invoice .mi-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mock-invoice .mi-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.mock-invoice .mi-no { font-size: 12px; color: var(--muted); }
.mock-invoice .mi-meta { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.mock-invoice table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 12px; }
.mock-invoice th { text-align: left; color: var(--muted); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.mock-invoice td { padding: 6px 0; border-bottom: 1px solid var(--paper-2); }
.mock-invoice td:last-child, .mock-invoice th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mock-invoice .mi-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 14.5px; padding-top: 6px; color: var(--ink); }
.mock-invoice .mi-format {
  position: absolute; top: -13px; left: 22px;
  background: var(--ink); color: var(--mint);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px; padding: 4px 12px;
}
.check-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ok);
  border-radius: 999px;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.5);
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 700;
}
.check-chip svg { width: 15px; height: 15px; flex: none; }
.check-chip small { color: var(--muted); font-weight: 500; }
.check-chip.c1 { right: 2px; bottom: 46px; }
.check-chip.c2 { left: 6px; bottom: -8px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { max-width: none; }
  .mock-invoice { margin: 0 auto; }
  .hero-visual { min-height: 0; padding-bottom: 20px; }
}
@media (max-width: 640px) {
  /* Chips würden den Gesamtbetrag überdecken -> unter die Karte in den Fluss */
  .hero-visual { text-align: center; }
  .check-chip { position: static; margin: 12px 5px 0; }
}

/* --- Trustbar unterm Hero --- */
.trustbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trustbar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding-top: 22px; padding-bottom: 22px;
}
.trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.trust-item svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }
.trust-item strong { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .trustbar .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .trustbar .wrap { grid-template-columns: 1fr; } }

/* --- Werkzeug-Karten --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card .tool-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.card .tool-icon svg { width: 22px; height: 22px; }
.card h2, .card h3 { font-size: 18.5px; }
.card p { color: var(--muted); font-size: 14.5px; flex-grow: 1; }
.card .status {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; color: var(--ok);
  background: var(--ok-bg); border-radius: 999px; padding: 3px 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.card .status.soon { color: var(--warning); background: var(--warning-bg); }
.card .card-cta { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }
.card .card-cta .arr { transition: transform 0.2s var(--ease); }
.card:hover .card-cta .arr { transform: translateX(4px); }
.card .meta { font-size: 12px; color: var(--muted); }
/* Ganze Werkzeugkarte klickbar (Karte hat position: relative) */
.card .card-cta::after { content: ""; position: absolute; inset: 0; }
/* CTA-Zeile unter der Werkzeug-Sektion */
.tools-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.tools-cta-fine { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin: 0; }

/* --- Ablauf (3 Schritte) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-1); counter-increment: step; position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--brand-tint); background: var(--brand-tint);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* --- Privacy-Sektion (dunkles Panel) --- */
.privacy-band { padding: 84px 0; }
.privacy-panel {
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(45, 212, 191, 0.14), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, #0e1930 100%);
  color: #eef2f7;
  border-radius: 24px;
  padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  overflow: hidden; position: relative;
}
.privacy-panel h2 { color: #fff; font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 14px; }
.privacy-panel p { color: rgba(238, 242, 247, 0.75); font-size: 15.5px; margin-bottom: 12px; }
.privacy-panel .kicker { color: var(--mint); }
.privacy-panel .kicker::before { background: var(--mint); }
.privacy-panel strong { color: #fff; }
.privacy-list { list-style: none; margin-top: 6px; }
.privacy-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; color: rgba(238, 242, 247, 0.85); }
.privacy-list svg { width: 18px; height: 18px; flex: none; color: var(--mint); margin-top: 3px; }
.privacy-fine { font-size: 13px !important; color: rgba(238, 242, 247, 0.55) !important; margin-top: 16px !important; }
.privacy-fine a { color: var(--mint-soft); }
/* Mini-Diagramm rechts */
.flow-card {
  background: rgba(238, 242, 247, 0.05);
  border: 1px solid rgba(238, 242, 247, 0.14);
  border-radius: 16px; padding: 22px; align-self: center;
}
.flow-card .flow-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(238, 242, 247, 0.55); margin-bottom: 14px; }
.flow-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(238, 242, 247, 0.06); border-radius: 10px; font-size: 14px; margin-bottom: 8px; }
.flow-step svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
.flow-arrow { text-align: center; color: rgba(238, 242, 247, 0.4); font-size: 14px; margin: 2px 0; }
.flow-no {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px dashed rgba(238, 242, 247, 0.25); border-radius: 10px;
  font-size: 13.5px; color: rgba(238, 242, 247, 0.55); margin-top: 14px;
}
.flow-no svg { width: 18px; height: 18px; flex: none; color: #f87171; }
@media (max-width: 900px) { .privacy-panel { grid-template-columns: 1fr; } }

/* --- Preise (Free/Pro) --- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-1); display: flex; flex-direction: column;
  position: relative;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 2px 4px rgba(15, 118, 110, 0.05), 0 24px 48px -24px rgba(15, 118, 110, 0.35); }
.plan .plan-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--ink); color: var(--mint);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.plan h3 { font-size: 20px; margin-bottom: 2px; }
.plan .plan-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan .price { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--ink); line-height: 1; }
.plan .price small { font-size: 14px; color: var(--muted); font-family: var(--font-ui); font-weight: 500; }
.plan .price-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; }
.plan li svg { width: 17px; height: 17px; flex: none; color: var(--brand); margin-top: 3px; }
/* Listentext immer als EIN Flex-Item halten: ohne den Span würden
   <strong> und nachfolgender Text zu zwei nebeneinander liegenden
   Spalten mit hässlichem Umbruch (der "clunky" Zwei-Spalten-Effekt). */
.plan li > span { flex: 1; min-width: 0; }
.plan li.pro-only svg { color: var(--warning); }
.plan .btn { margin-top: auto; }
.plans-fine { font-size: 12px; color: var(--muted); margin-top: 16px; max-width: 720px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* --- Sales-Bausteine (Session 10: Countdown, 3-Spalten-Preise, Anker,
       Risikoumkehr, Einwand-FAQ) --- */

/* Fristen-Countdown im Hero (dunkler Grund, ruhig und faktisch) */
.deadline-bar {
  border: 1px solid rgba(238, 242, 247, 0.16);
  background: rgba(238, 242, 247, 0.05);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  max-width: 560px;
}
.deadline-item {
  display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(238, 242, 247, 0.75);
  padding: 4px 0;
}
.deadline-item > strong { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deadline-days:not([hidden]) {
  display: inline-flex; align-items: baseline; gap: 4px;
  margin-left: auto;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--mint-soft);
  border-radius: 999px; padding: 1px 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.deadline-note {
  border-top: 1px solid rgba(238, 242, 247, 0.12);
  margin-top: 8px; padding-top: 9px;
  font-size: 12.5px; color: rgba(238, 242, 247, 0.55);
}
.deadline-note a { color: var(--mint-soft); }

/* Preistabelle: 3 Spalten (Free / Pro Monat / Pro Jahr) */
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; align-items: stretch; }
.plan .plan-cycle {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em;
  margin-left: 6px;
}
.plan [data-buy-cta]:not([hidden]) { display: grid; margin-top: auto; }
.plan [data-sales-soon]:not([hidden]) { display: grid; gap: 8px; margin-top: auto; }
.plan .soon-note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 980px) { .plans.plans-3 { grid-template-columns: 1fr; max-width: 560px; } }

/* Risikoumkehr-Leiste unter der Preistabelle */
.assurance {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 26px 0 6px;
}
.assurance li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper);
  padding: 12px 14px;
}
.assurance svg { width: 19px; height: 19px; flex: none; color: var(--brand); margin-top: 1px; }
.assurance strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .assurance { grid-template-columns: 1fr; } }

/* Einwand-FAQ direkt an der Preiskarte */
section.faq.objections { margin-top: 30px; max-width: 880px; }
section.faq.objections h3 { font-size: 17px; margin-bottom: 12px; color: var(--ink); }

/* Kauf-CTA-Plätze: gesperrtes Pro-Panel, CTA-Boxen, Abschluss-CTA */
.pro-locked [data-buy-cta]:not([hidden]) { display: grid; margin: 4px 0 14px; }
.cta-box [data-buy-cta]:not([hidden]) { display: inline-flex; margin: 6px 0 0 10px; vertical-align: middle; }
.cta-box .cta-box-fine { font-size: 12.5px; color: rgba(238, 242, 247, 0.6); margin: 14px 0 0; }
.cta-box .cta-box-fine a { color: var(--mint-soft); }
.cta-box .cta-box-fine [data-sales-soon] { font-style: italic; }
.cta-final [data-buy-cta]:not([hidden]) { display: inline-flex; margin: 6px 0 0 12px; vertical-align: middle; }

/* Pro-Hinweisbox in der Generator-Sidebar (statisch, config-gated CTA) */
.pro-cta { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pro-cta-title { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.pro-cta-text { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 4px 0 8px; }
.pro-cta [data-buy-cta]:not([hidden]) { display: grid; margin-bottom: 8px; }
.pro-cta-links { font-size: 12.5px; }
.pro-cta-links [data-sales-soon] { color: var(--muted); font-style: italic; }

/* --- Wissens-/Ratgeber-Karten --- */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.kb-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
}
.kb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.kb-card .kb-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.kb-card h3 { font-size: 17px; line-height: 1.3; }
.kb-card h3 a { color: var(--ink); }
.kb-card h3 a:hover { color: var(--brand); }
/* Ganze Ratgeber-Karte klickbar über den Titel-Link */
.kb-card h3 a::after { content: ""; position: absolute; inset: 0; }
.kb-card p { color: var(--muted); font-size: 14px; flex-grow: 1; }
.kb-card .meta { font-size: 12.5px; color: var(--muted); }
/* Eine konkrete Leserfrage als Blickfang je Karte */
.kb-card .kb-question {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; line-height: 1.45;
  color: var(--ink);
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 9px 12px;
  margin: 2px 0;
  flex-grow: 0;
}
.kb-card .kb-more {
  font-weight: 600; font-size: 13.5px; color: var(--brand);
  display: inline-flex; align-items: center; gap: 7px; margin-top: 2px;
}
.kb-card .kb-more .arr { transition: transform 0.2s var(--ease); }
.kb-card:hover .kb-more .arr { transform: translateX(4px); }

/* --- FAQ --- */
section.faq { margin-top: 48px; max-width: 800px; }
.band section.faq, section.band section.faq { margin-top: 0; }
section.faq h2 { font-size: 24px; margin-bottom: 16px; }
section.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.25s;
}
section.faq details[open] { border-color: var(--brand); }
section.faq summary {
  font-weight: 600; cursor: pointer; padding: 16px 46px 16px 18px;
  list-style: none; position: relative; font-size: 15.5px; color: var(--ink);
}
section.faq summary::-webkit-details-marker { display: none; }
section.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-size: 20px; color: var(--brand);
  transition: transform 0.25s var(--ease);
}
section.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
section.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }
section.faq details p + p { margin-top: -6px; }

/* --- Abschluss-CTA --- */
.cta-final {
  background: linear-gradient(180deg, var(--ink) 0%, #0e1930 100%);
  color: #eef2f7; text-align: center;
  padding: 72px 24px;
}
.cta-final h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); max-width: 24ch; margin: 0 auto 12px; }
.cta-final p { color: rgba(238, 242, 247, 0.7); max-width: 52ch; margin: 0 auto 28px; }

/* ==========================================================================
   Tool-Seiten: Kopfbereich + Generator
   ========================================================================== */
.page-head { margin-bottom: 30px; }
.page-head .lead { margin-bottom: 18px; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 940px) {
  /* minmax(0,1fr) statt 1fr: sonst floored das Grid-Item auf seine
     min-content-Breite (Positionstabelle!) und die Seite überläuft */
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  aside.summary { position: static; }
}

form.invoice { counter-reset: fs; }
form.invoice fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px 22px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-1);
  /* Browser-Default min-inline-size:min-content aushebeln - sonst
     spannt die Positionstabelle die ganze Seite auf (Mobil-Overflow) */
  min-inline-size: 0;
}
form.invoice legend {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0 10px;
  font-size: 15.5px;
  color: var(--ink);
  counter-increment: fs;
}
form.invoice legend::before {
  content: counter(fs);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 8px;
  background: var(--brand-tint); color: var(--brand);
  border-radius: 999px; font-size: 12.5px; font-weight: 700;
  font-family: var(--font-ui);
  vertical-align: text-bottom;
}
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px 16px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

label.field { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
label.field input, label.field select, label.field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: 400 15px/1.4 var(--font-ui);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
label.field input:hover, label.field select:hover, label.field textarea:hover { border-color: var(--muted); }
label.field input:focus, label.field select:focus, label.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  background: #fff;
}
label.field.invalid input, label.field.invalid select { border-color: var(--error); }

.radio-row { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.radio-row label {
  font-size: 14px; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio-row label:hover { border-color: var(--brand); }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); font-weight: 600; }
.radio-row input { accent-color: var(--brand); }

/* Positionen */
/* 7 Spalten sprengen schmale Screens -> Tabelle scrollt im Wrapper,
   die Seite selbst bleibt overflow-frei */
.lines-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.lines { width: 100%; border-collapse: collapse; }
@media (max-width: 720px) {
  table.lines { min-width: 600px; }
}
table.lines th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 6px 8px 0;
}
table.lines td { padding: 4px 6px 4px 0; vertical-align: top; }
table.lines input, table.lines select {
  width: 100%;
  padding: 9px 10px;
  font: 400 14.5px/1.4 var(--font-ui);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}
table.lines input:focus, table.lines select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
table.lines .num { text-align: right; font-variant-numeric: tabular-nums; }
td.line-total { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 13px; font-weight: 600; font-size: 14.5px; }
button.remove-line {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 9px 4px;
  border-radius: 6px; transition: color 0.15s;
}
button.remove-line:hover { color: var(--error); }
td.line-actions { white-space: nowrap; }
/* Rabatt-Liste: ein Eintrag je Zeile - Ziel (Gesamtbetrag/Position),
   Art, Wert, Grund, Entfernen. Aufbau in ui.js (renderDiscounts). */
.discount-list:empty { display: none; }
.discount-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 10px 12px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.discount-row:first-child { padding-top: 2px; }
button.remove-discount {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 9px 6px; margin-bottom: 1px;
  border-radius: 6px; transition: color 0.15s;
}
button.remove-discount:hover { color: var(--error); }
@media (max-width: 720px) {
  .discount-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .discount-row label.field:first-child { grid-column: 1 / -1; }
  button.remove-discount { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
}

/* Zusammenfassung rechts: helle Karte mit Ink-Kopf */
aside.summary {
  position: sticky;
  top: 20px;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 22px;
  overflow: hidden;
}
aside.summary::before {
  /* Marken-Kante oben */
  content: ""; display: block;
  height: 4px; margin: -22px -22px 18px;
  background: linear-gradient(90deg, var(--mint), var(--brand));
}
aside.summary h2 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; font-family: var(--font-ui); font-weight: 700;
}
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 3px 0; color: var(--text); }
.sum-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}
.sum-row .amount { font-variant-numeric: tabular-nums; }

.issues { margin-top: 16px; font-size: 13.5px; }
.issues h3 { font-size: 13px; margin-bottom: 6px; color: var(--ink); font-family: var(--font-ui); }
.issues ul { list-style: none; }
.issues li { padding: 3px 0 3px 18px; position: relative; }
.issues li::before { content: "•"; position: absolute; left: 4px; }
.issues li.error { color: var(--error); }
.issues li.warning { color: var(--warning); }
.issues .all-good { color: var(--ok); font-weight: 600; }

aside.summary .actions { margin-top: 18px; display: grid; gap: 10px; }
.download-status { font-size: 12.5px; color: var(--muted); margin: -2px 0 0; }
.download-status.status-error { color: var(--error); }
aside.summary .privacy-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.55; }
aside.summary .privacy-note strong { color: var(--ink); }

.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 22px; max-width: 800px; }

/* ==========================================================================
   Paywall (Free-Limit)
   ========================================================================== */
.paywall {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow-2);
}
.paywall h3 { margin-bottom: 8px; font-size: 17px; }
.paywall-copy { font-size: 14px; color: var(--muted); }
.paywall-pro { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.paywall-pro-title { font-size: 14px; }
.paywall-pro ul { margin: 8px 0 8px 2px; font-size: 14px; list-style: none; }
.paywall-pro li { margin: 3px 0; padding-left: 20px; position: relative; }
.paywall-pro li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.paywall-price { font-weight: 700; font-size: 15px; font-family: var(--font-display); color: var(--ink); }
.paywall-privacy { font-size: 13px; color: var(--ok); margin-top: 2px; }
.paywall-soon { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 6px; }
.paywall-buy { margin-top: 8px; }
.paywall-key { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.paywall-key-row { display: flex; gap: 8px; margin-top: 6px; }
.paywall-key-row input {
  flex: 1; min-width: 0;
  padding: 9px 11px; font: 400 14px/1.4 var(--font-ui);
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.paywall-key-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); }
.paywall-close { margin-top: 12px; }

/* ==========================================================================
   Viewer (/anzeigen/) + Prüfer (/pruefen/)
   ========================================================================== */
.drop-zone {
  border: 2px dashed var(--brand);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--brand-tint));
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  max-width: 760px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.drop-zone:hover { border-color: var(--brand-strong); }
.drop-zone:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.drop-zone.dragging { background: var(--brand-tint); border-color: var(--brand-strong); transform: scale(1.01); }
.drop-zone .drop-icon { font-size: 34px; margin-bottom: 4px; }
.drop-zone .drop-icon svg { width: 44px; height: 44px; color: var(--brand); }
.drop-zone p { margin: 4px 0; }
.drop-zone .btn { margin: 12px 0 6px; }

.viewer-status { margin-top: 14px; color: var(--muted); font-size: 14px; }
.viewer-error {
  margin-top: 14px;
  max-width: 760px;
  background: var(--error-bg);
  border: 1px solid #ecc4bf;
  color: var(--error);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-size: 14px;
}

.viewer-toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

.v-source {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px; font-size: 13px; color: var(--muted);
}
.v-badge {
  background: var(--ink); color: var(--mint);
  border-radius: 999px; padding: 3px 12px; font-weight: 600;
}
.v-profile { word-break: break-all; }

.v-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
  max-width: 880px;
  box-shadow: var(--shadow-2);
}
.v-head {
  display: flex; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.v-head strong { font-size: 17px; }
.v-doctitle { text-align: right; }
.v-muted { color: var(--muted); font-size: 13px; }

.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-bottom: 22px; }
@media (max-width: 640px) { .v-grid { grid-template-columns: 1fr; } }
.v-grid h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); margin-bottom: 6px; font-family: var(--font-ui);
}
.v-grid > div > div { font-size: 14.5px; padding: 1px 0; }

.v-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding: 2px 0; }
.v-row .v-value { font-variant-numeric: tabular-nums; text-align: right; }
.v-row.strong { font-weight: 700; }
.v-row.total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 8px; font-size: 16px; }

table.v-lines { width: 100%; border-collapse: collapse; margin: 6px 0 20px; }
table.v-lines th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); border-bottom: 1px solid var(--ink); padding: 0 8px 6px 0;
}
table.v-lines td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--paper-2); font-size: 14px; vertical-align: top; }
table.v-lines .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.v-lines td.desc { word-break: break-word; }
table.v-lines .v-line-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

.v-sums { max-width: 380px; margin-left: auto; margin-bottom: 20px; }
.v-notes { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 20px; }
.v-notes p { font-size: 13px; color: var(--muted); margin-bottom: 6px; white-space: pre-wrap; }

/* --- Druckansicht: nur der Beleg --- */
@media print {
  header.site, footer.site, .viewer-toolbar, .no-print, .v-source { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .v-sheet { border: none; box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
}

/* ==========================================================================
   Bewegung (reveal on scroll, site.js) + Reduced Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .kb-card, .mock-invoice, .drop-zone { transition: none; }
}

/* ==========================================================================
   Prüfbericht (/pruefen/)
   ========================================================================== */
.verdict {
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  max-width: 880px;
}
.verdict.ok { background: var(--ok-bg); border-color: #bfe3cc; }
.verdict.mid { background: var(--warning-bg); border-color: #ecd9a0; }
.verdict.bad { background: var(--error-bg); border-color: #ecc4bf; }
.verdict-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink); }
.verdict.ok .verdict-title { color: var(--ok); }
.verdict.mid .verdict-title { color: var(--warning); }
.verdict.bad .verdict-title { color: var(--error); }
.verdict-text { color: var(--text); font-size: 14.5px; margin-top: 4px; }
.verdict-meta { color: var(--muted); font-size: 13px; margin-top: 8px; }

.check-group { max-width: 880px; margin-bottom: 22px; }
.check-group h2 { font-size: 17px; margin-bottom: 2px; }
.check-group.error h2 { color: var(--error); }
.check-group.warning h2 { color: var(--warning); }
.check-group.info h2 { color: var(--muted); }
.check-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.check-list { list-style: none; display: grid; gap: 8px; }
.check-item {
  display: flex; gap: 12px; align-items: baseline; justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
}
.check-item.error { border-left-color: var(--error); }
.check-item.warning { border-left-color: var(--warning); }
.check-item.info { border-left-color: var(--line-strong); }
.check-item.pass { border-left-color: var(--ok); }
.check-msg { flex: 1; }
.check-id {
  flex: none; font-size: 11px; color: var(--muted);
  background: var(--paper-2); border-radius: 6px; padding: 2px 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  white-space: nowrap;
}

.check-passed { max-width: 880px; margin: 18px 0 26px; }
.check-passed summary {
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ok);
  padding: 6px 0; list-style: none;
}
.check-passed summary::-webkit-details-marker { display: none; }
.check-passed summary::before { content: "\2713\00a0 "; }
.check-passed .check-list { margin-top: 10px; }

.report-teaser {
  max-width: 880px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 20px 22px;
  margin-top: 8px;
}
.report-teaser-title { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.report-teaser-text { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; max-width: 68ch; }

/* ==========================================================================
   Ratgeber (Artikel + Hub)
   ========================================================================== */
.article { max-width: 780px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.article h1 { font-size: clamp(27px, 3.6vw, 36px); margin-bottom: 10px; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.article h2 { font-size: 23px; margin: 40px 0 12px; }
.article h3 { font-size: 17.5px; margin: 26px 0 8px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; }
.article li { margin: 4px 0; }
.article strong { color: var(--ink); }

/* Kurzantwort-Box (Featured-Snippet-/AI-Format) */
.answer-box {
  background: var(--brand-tint);
  border: 1px solid #c5e6e1;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 26px;
}
.answer-box .answer-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-strong); margin-bottom: 8px;
}
.answer-box p, .answer-box li { font-size: 15px; }
.answer-box ul { margin: 6px 0 0 20px; }
.answer-box p:last-child { margin-bottom: 0; }

/* Inhaltsverzeichnis */
.toc {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 18px; margin-bottom: 26px; font-size: 14px;
  background: var(--paper-2);
}
.toc strong { display: block; margin-bottom: 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { margin: 0 0 0 20px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--brand); }

/* Tabellen (z.B. Fristen-Matrix) */
.article table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14.5px; }
.article th {
  text-align: left; background: var(--ink); color: #eef2f7;
  padding: 10px 12px; font-weight: 600; font-size: 13px;
}
.article th:first-child { border-radius: 8px 0 0 0; }
.article th:last-child { border-radius: 0 8px 0 0; }
.article td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tr:nth-child(even) td { background: var(--paper-2); }

/* CTA-Box zu den Werkzeugen */
.cta-box {
  background: linear-gradient(180deg, var(--ink) 0%, #0e1930 100%);
  color: #eef2f7;
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 34px 0;
}
.cta-box p { color: rgba(238, 242, 247, 0.8); margin-bottom: 14px; }
.cta-box .cta-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; margin-bottom: 6px; }

/* Quellen */
.sources { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; font-size: 13.5px; color: var(--muted); }
.sources h2 { font-size: 15px; margin: 0 0 10px; }
.sources ol { margin-left: 20px; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }

/* Hinweis-Kasten (ehrliche Einordnung) */
.note-box {
  border-left: 3px solid var(--warning);
  background: var(--warning-bg);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
}
.note-box strong { color: var(--warning); }

/* Preiszusatz "regulär ..." in Paywall + Preiskarten */
.paywall-price-regular { font-family: var(--font-ui); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.price .was { font-size: 15px; color: var(--muted); font-family: var(--font-ui); font-weight: 500; text-decoration: line-through; margin-right: 6px; }

/* ==========================================================================
   Pro-Werkzeuge (Generator): Stammdaten, Nummernkreis, Logo, Backup
   ========================================================================== */
.pro-tools {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  margin-bottom: 18px;
}
.pro-tools > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.pro-tools > summary::-webkit-details-marker { display: none; }
.pro-tools > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 600; font-size: 17px; }
.pro-tools[open] > summary::after { content: "\2013"; }
.pro-badge {
  background: var(--ink); color: var(--mint);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 10px;
}
.pro-tools-state { color: var(--brand); font-size: 12.5px; font-weight: 700; }
.pro-tools-body { padding: 2px 18px 16px; border-top: 1px solid var(--line); }
.pro-locked p { font-size: 14px; color: var(--text); margin: 12px 0; line-height: 1.6; }
.pro-key-row { display: flex; gap: 8px; margin-top: 6px; }
.pro-key-row input {
  flex: 1; min-width: 0;
  padding: 9px 11px; font: 400 14px/1.4 var(--font-ui);
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.pro-key-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); }
.pro-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.pro-row:last-child { border-bottom: none; }
.pro-row .hint { margin-top: 8px; }
.pro-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pro-controls .btn { padding: 7px 12px; font-size: 13px; }
.pro-row select { max-width: 340px; }
.pro-row-number { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; align-items: end; }
.pro-row-number .pro-number-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.pro-row-number .hint { grid-column: 1 / -1; margin-top: 2px; }
.pro-preview { font-size: 13px; color: var(--muted); }
.pro-preview code {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 8px; font-size: 12.5px; color: var(--ink);
}
img[data-pt-logo-preview] {
  max-height: 34px; max-width: 140px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper-2); padding: 2px;
}
.pro-license-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--muted); }
button.save-template-line {
  background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer; padding: 9px 2px;
  border-radius: 6px; transition: color 0.15s, transform 0.15s;
}
button.save-template-line:hover { color: var(--brand); }
/* Favoriten-Zustand: Zeile ist exakt so als Vorlage gespeichert
   (aria-pressed="true", gefüllter Stern in Markenfarbe) */
button.save-template-line.is-saved,
button.save-template-line[aria-pressed="true"] { color: var(--brand); }
button.save-template-line[aria-pressed="true"]:hover { color: var(--error); }
button.save-template-line:focus-visible,
button.remove-line:focus-visible,
button.remove-discount:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
@media (max-width: 640px) {
  .pro-row-number { grid-template-columns: 1fr; }
}

/* Excel-Import (import-ui.js): Panel wie die Pro-Werkzeuge, darunter
   Vorschau-Tabelle mit ausklappbaren Meldungen und ZIP/Paywall-Aktionen */
.import-tools { margin-top: 12px; }
.import-intro { font-size: 14px; color: var(--text); margin: 12px 0; line-height: 1.6; }
.import-controls { margin-top: 4px; }
.import-summary { font-size: 14px; font-weight: 600; color: var(--ink); margin: 14px 0 8px; }
.import-file-issues, .import-issues { list-style: none; margin: 0; padding: 0; }
.import-file-issues { margin-bottom: 10px; }
.import-issue { font-size: 13px; line-height: 1.5; padding: 5px 8px 5px 26px; margin: 0 0 4px; border-radius: 6px; position: relative; }
.import-issue::before { position: absolute; left: 9px; top: 5px; font-weight: 700; }
.import-issue-error { background: rgba(190, 24, 60, 0.08); color: var(--error); }
.import-issue-error::before { content: "\2717"; }
.import-issue-warning { background: rgba(217, 119, 6, 0.1); color: #92400e; }
.import-issue-warning::before { content: "!"; }
.import-issue-info { background: var(--paper-2); color: var(--muted); }
.import-issue-info::before { content: "i"; }
table.import-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.import-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding: 0 8px 8px 0; white-space: nowrap;
}
table.import-table td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.import-table td:first-child, table.import-table td:nth-child(2) { white-space: nowrap; }
table.import-table th.num, table.import-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.import-table tr.import-detail td { padding-top: 0; border-top: none; }
table.import-table .import-row-actions .btn { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
button.import-status {
  background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: 600 12.5px/1.4 var(--font-ui); padding: 3px 10px; white-space: nowrap;
}
button.import-status.import-status-ok { color: var(--brand-strong); background: var(--brand-tint); }
button.import-status.import-status-warn { color: #92400e; background: rgba(217, 119, 6, 0.12); }
button.import-status.import-status-bad { color: var(--error); background: rgba(190, 24, 60, 0.1); }
button.import-status:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.import-actions { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.import-format label { font-size: 13.5px; }
.import-paywall { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-s, 10px); padding: 12px 14px; }
.import-paywall-text { margin: 0 0 10px; font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.import-paywall .paywall-buy { margin-bottom: 8px; }
.import-paywall .paywall-price-regular { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 720px) {
  table.import-table { min-width: 640px; }
}
/* Hilfeseite /excel-import/: Farb-Chips wie in der Vorlage, scrollbare Tabellen */
.import-chip {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.import-legend { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.article .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 22px; }
.article .table-scroll table { margin: 0; min-width: 640px; }
.article .table-scroll td:last-child { min-width: 260px; }
/* Breite Referenztabellen: Fließtext bleibt bei 780px Zeilenlänge, die
   Tabellen nutzen die volle Hauptspalte (kein Scrollen der Erklärungsspalte). */
.article.article-wide-tables { max-width: none; }
.article.article-wide-tables > :not(.table-scroll) { max-width: 780px; }
/* Soft-Pro-Hinweis nach erfolgreichem Free-Download (dezent, statisch) */
.soft-pro-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 2px 0 0; }
.soft-pro-hint a { font-weight: 600; }
