/* Website – Rechnungsportal (Arbeitstitel "Kontor").
   Gemeinsames Stylesheet für Startseite und Rechtstexte.
   Keine externen Ressourcen: Schriften liegen in /fonts/ (fonts.css). */

:root {
  --papier: #f3f5f3;
  --flaeche: #fff;
  --tinte: #14201c;
  --matt: #5b6a65;
  --linie: #dde3e0;
  --weich: #eef2f0;
  --gruen: #1d6b55;
  --gruen-weich: #e2efe9;
  --offen: #9a6512;
  --ueber: #b3362a;

  --gruen-tief: #175846;
  --auf-gruen: #fff;
  --offen-weich: #f6ecdc;
  --ph-grund: #fff1b8;
  --ph-tinte: #4d3a00;
  --ph-rand: #e0b800;
  --schatten: 0 1px 0 rgb(20 32 28 / 4%), 0 18px 40px -18px rgb(20 32 28 / 28%);
  --schatten-klein: 0 1px 2px rgb(20 32 28 / 6%), 0 6px 16px -10px rgb(20 32 28 / 25%);
  --beleg-papier: #fdfdfb;
  --beleg-tinte: #14201c;
  --beleg-matt: #5b6a65;
  --beleg-linie: #e2e7e4;

  --schrift: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --rand: 16px;
  --breite: 1180px;
  --radius: 14px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0e1412;
    --flaeche: #151d1a;
    --tinte: #e5ebe8;
    --matt: #91a19b;
    --linie: #25302c;
    --weich: #1b2420;
    --gruen: #4cbf96;
    --gruen-weich: #173328;
    --offen: #e0a64a;
    --ueber: #ef7a6d;

    --gruen-tief: #6fd3ad;
    --auf-gruen: #08150f;
    --offen-weich: #2e2414;
    --ph-grund: #3d3200;
    --ph-tinte: #ffe48a;
    --ph-rand: #8c7300;
    --schatten: 0 1px 0 rgb(0 0 0 / 30%), 0 22px 44px -18px rgb(0 0 0 / 70%);
    --schatten-klein: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 18px -10px rgb(0 0 0 / 60%);
    --beleg-papier: #e4e9e6;
    --beleg-linie: #c9d1cd;
  }
}

@media (min-width: 768px) {
  :root { --rand: 32px; }
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 0.8em; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.mono, code, kbd, samp {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 6px;
}

.nur-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.skip {
  position: absolute;
  left: var(--rand); top: -100px;
  z-index: 100;
  background: var(--tinte); color: var(--papier);
  padding: 12px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.rahmen {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-stretch: 94%;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.knopf:hover { text-decoration: none; }
.knopf:active { transform: translateY(1px); }

.knopf-voll { background: var(--gruen); color: var(--auf-gruen); }
.knopf-voll:hover { background: var(--gruen-tief); }

.knopf-linie { border-color: var(--tinte); color: var(--tinte); background: transparent; }
.knopf-linie:hover { background: var(--tinte); color: var(--papier); }

.knopf-leise { color: var(--tinte); background: transparent; padding-inline: 12px; }
.knopf-leise:hover { background: var(--weich); }

.knopf-gross { min-height: 54px; padding: 0 24px; font-size: 1.0625rem; border-radius: 12px; }

.pfeil::after {
  content: "";
  width: 0.5em; height: 0.5em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.1em;
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papier) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }

.kopf-innen {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.logo svg { width: 26px; height: 26px; flex: none; }
.logo .z-grund { fill: var(--gruen); }
.logo .z-strich { fill: var(--papier); }

.kopf-nav { display: none; gap: 4px; margin-right: 8px; }
.kopf-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--matt);
  font-weight: 600;
}
.kopf-nav a:hover { color: var(--tinte); background: var(--weich); }

.kopf-aktion { display: flex; gap: 6px; }
.kopf-aktion .knopf { padding-inline: 14px; }
.kopf-aktion .lang { display: none; }

@media (min-width: 880px) {
  .kopf-nav { display: flex; }
  .kopf-aktion .lang { display: inline; }
  .kopf-aktion .kurz { display: none; }
}

/* ---------- Abschnitte allgemein ---------- */

.abschnitt { padding-block: 72px; }
.abschnitt + .abschnitt, .naht { border-top: 1px dashed var(--linie); }

@media (min-width: 900px) {
  .abschnitt { padding-block: 112px; }
}

.augenbraue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gruen);
}
.augenbraue::before {
  content: "";
  width: 18px; height: 2px;
  background: currentColor;
}

.kopfzeile { max-width: 760px; margin-bottom: 48px; }
.kopfzeile h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); }
.kopfzeile p:not(.augenbraue) { margin-top: 18px; font-size: 1.125rem; color: var(--matt); max-width: 62ch; }

/* ---------- Held ---------- */

.held { padding-block: 40px 64px; overflow: hidden; }

.held-raster { display: grid; gap: 44px; }

@media (min-width: 980px) {
  .held { padding-block: 72px 104px; }
  .held-raster {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: center;
    gap: 56px;
  }
}

.held h1 {
  font-size: clamp(2.6rem, 1.55rem + 4.4vw, 4.9rem);
  font-stretch: 86%;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.held h1 .gruen { color: var(--gruen); }

.held-unter {
  margin-top: 22px;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--matt);
  max-width: 36em;
}
.held-unter strong { color: var(--tinte); font-weight: 650; }

.held-aktion { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 560px) {
  .held-aktion .knopf { flex: 1 1 100%; }
}

.held-klein {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--matt);
}

.haken-liste {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--linie);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tinte);
}
.haken-liste li { display: inline-flex; align-items: center; gap: 8px; }
.haken-liste li::before, .haken::before {
  content: "";
  flex: none;
  width: 11px; height: 6px;
  border-left: 2px solid var(--gruen);
  border-bottom: 2px solid var(--gruen);
  transform: rotate(-45deg) translate(1px, -2px);
}

/* ---------- Schaubild: Beleg + Handy ---------- */

.schau {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.96;
}

.beleg {
  position: absolute;
  left: 0;
  top: 9%;
  width: 63%;
  padding: 5.4cqw 5.2cqw 4.6cqw;
  background: var(--beleg-papier);
  color: var(--beleg-tinte);
  border-radius: 0.6cqw;
  box-shadow: var(--schatten);
  font-size: 2.12cqw;
  line-height: 1.4;
  transform: rotate(-2.2deg);
  transform-origin: 30% 20%;
}

.beleg-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2cqw;
  padding-bottom: 2.4cqw;
  border-bottom: 0.25cqw solid var(--beleg-tinte);
}
.beleg-kopf strong { display: block; font-size: 1.32em; font-weight: 800; font-stretch: 88%; line-height: 1.1; }
.beleg-kopf span { color: var(--beleg-matt); }
.beleg-signet {
  flex: none;
  display: grid; place-items: center;
  width: 7.2cqw; height: 7.2cqw;
  border-radius: 1.2cqw;
  background: #1d6b55;
  color: #fff !important;
  font-weight: 800; font-stretch: 85%;
  font-size: 1.15em;
}

.beleg-an { margin-top: 3cqw; display: flex; justify-content: space-between; gap: 2cqw; }
.beleg-an small { display: block; color: var(--beleg-matt); font-size: 0.82em; }
.beleg-an .mono { text-align: right; }

.beleg h3 {
  margin-top: 3.4cqw;
  font-size: 1.9em;
  font-weight: 800;
  font-stretch: 86%;
}
.beleg h3 .mono { font-size: 0.62em; font-weight: 500; color: var(--beleg-matt); margin-left: 0.4em; letter-spacing: 0; }

.beleg-pos { width: 100%; margin-top: 2.2cqw; border-collapse: collapse; }
.beleg-pos td { padding: 1cqw 0; border-bottom: 0.15cqw solid var(--beleg-linie); vertical-align: top; }
.beleg-pos td + td { text-align: right; padding-left: 2cqw; white-space: nowrap; font-family: var(--mono); }
.beleg-pos td small { display: block; color: var(--beleg-matt); font-family: var(--mono); font-size: 0.86em; }
.beleg-pos .zw td { border-bottom: 0; padding-block: 0.5cqw; color: var(--beleg-matt); }
.beleg-pos .zw:first-of-type td { padding-top: 1.4cqw; }
.beleg-pos .gesamt td {
  padding-top: 1.4cqw;
  border-top: 0.25cqw solid var(--beleg-tinte);
  border-bottom: 0;
  font-weight: 800;
  font-size: 1.22em;
  color: var(--beleg-tinte);
}
.beleg-pos .gesamt td + td { font-weight: 600; }

.beleg-fuss {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  margin-top: 3.2cqw;
  padding: 2.2cqw;
  border: 0.15cqw dashed var(--beleg-linie);
  border-radius: 1cqw;
}
.beleg-fuss .qr {
  flex: none;
  width: 13cqw;
  background: #fff;
  padding: 0.4cqw;
}
.beleg-fuss .qr svg { width: 100%; height: auto; fill: #14201c; }
.beleg-fuss p { color: var(--beleg-matt); font-size: 0.92em; }
.beleg-fuss p b { display: block; color: var(--beleg-tinte); font-size: 1.08em; margin-bottom: 0.3em; }
.beleg-fuss .giro-tag {
  display: inline-block;
  margin-top: 0.6em;
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--beleg-tinte);
}

.stempel {
  position: absolute;
  left: 30%;
  top: 50%;
  padding: 0.9cqw 2.2cqw 0.8cqw;
  border: 0.55cqw solid #1d6b55;
  border-radius: 1.2cqw;
  color: #1d6b55;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 3.6cqw;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-11deg);
  opacity: 0.9;
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 0.25cqw rgb(255 255 255 / 40%);
}
.stempel small { display: block; margin-top: 0.5cqw; font-size: 0.42em; letter-spacing: 0.08em; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .stempel { animation: stempeln .45s cubic-bezier(.2, .9, .3, 1.3) 0.9s both; }
  @keyframes stempeln {
    from { opacity: 0; transform: rotate(-11deg) scale(1.7); }
    to { opacity: 0.9; transform: rotate(-11deg) scale(1); }
  }
}

.handy {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  aspect-ratio: 9 / 19;
  padding: 1.5cqw;
  border-radius: 7cqw;
  background: #0b0f0e;
  box-shadow: var(--schatten), inset 0 0 0 0.35cqw #2a3330;
}
.handy::before {
  content: "";
  position: absolute;
  top: 3cqw; left: 50%;
  width: 11cqw; height: 3.1cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #0b0f0e;
  z-index: 2;
}

.handy-schirm {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 5.7cqw;
  background: var(--papier);
  color: var(--tinte);
  font-size: 2.12cqw;
  line-height: 1.28;
  display: flex;
  flex-direction: column;
  padding: 8.6cqw 2.6cqw 2.8cqw;
  gap: 1.4cqw;
}

.app-leiste {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1cqw;
}
.app-leiste b { font-size: 1.3em; font-weight: 800; font-stretch: 88%; }
.app-leiste .mono { font-size: 0.86em; color: var(--matt); }

.app-feld, .app-pos {
  background: var(--flaeche);
  border: 0.15cqw solid var(--linie);
  border-radius: 1.6cqw;
  padding: 1.4cqw 1.9cqw;
}
.app-feld small, .app-pos small { display: block; color: var(--matt); font-size: 0.82em; }
.app-feld b { font-weight: 650; }
.app-feld .mono { color: var(--gruen); font-weight: 600; }

.app-pos { display: flex; justify-content: space-between; align-items: center; gap: 1.5cqw; }
.app-pos b { font-weight: 650; display: block; }
.app-pos > .mono { font-weight: 600; }

.app-plus {
  border: 0.18cqw dashed var(--linie);
  border-radius: 1.8cqw;
  padding: 1.5cqw;
  text-align: center;
  color: var(--gruen);
  font-weight: 650;
}

.app-summe {
  margin-top: auto;
  padding-top: 1.8cqw;
  border-top: 0.15cqw dashed var(--linie);
  display: grid;
  gap: 0.3cqw;
}
.app-summe .zeile { display: flex; justify-content: space-between; color: var(--matt); font-size: 0.9em; }
.app-summe .zeile.gross { color: var(--tinte); font-size: 1.32em; font-weight: 800; align-items: baseline; }
.app-summe .zeile.gross .mono { font-weight: 600; }

.app-knopf {
  background: var(--gruen);
  color: var(--auf-gruen);
  border-radius: 2cqw;
  padding: 2.2cqw;
  text-align: center;
  font-weight: 750;
  font-size: 1.08em;
}
.app-hinweis { text-align: center; color: var(--matt); font-size: 0.8em; }

.uhr {
  position: absolute;
  right: 32%;
  top: 4%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.1cqw 2cqw;
  border-radius: 99px;
  background: var(--tinte);
  color: var(--papier);
  font-family: var(--mono);
  font-size: 2.2cqw;
  font-weight: 500;
  box-shadow: var(--schatten-klein);
}
.uhr::before {
  content: "";
  width: 1.4cqw; height: 1.4cqw;
  border-radius: 50%;
  background: var(--gruen);
}

/* ---------- Für wen ---------- */

.branchen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--tinte);
}
.branchen li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 4px 12px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--linie);
}
.branchen .nr { font-family: var(--mono); font-size: 0.8125rem; color: var(--matt); padding-top: 0.35em; }
.branchen h3 { font-size: 1.375rem; }
.branchen p { grid-column: 2; color: var(--matt); }

@media (min-width: 760px) {
  .branchen { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
@media (min-width: 1100px) {
  .branchen { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0; border-top: 0; }
  .branchen li {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 22px 22px 26px;
    border: 0;
    border-top: 1px solid var(--tinte);
    border-left: 1px dashed var(--linie);
  }
  .branchen li:first-child { border-left: 0; padding-left: 0; }
  .branchen p { grid-column: 1; margin-top: 8px; }
  .branchen .nr { padding: 0 0 18px; }
}

/* ---------- Funktionen ---------- */

.gruppe {
  display: grid;
  gap: 32px;
  padding-block: 44px;
  border-top: 1px solid var(--linie);
}
.gruppe:first-of-type { border-top: 1px solid var(--tinte); }

@media (min-width: 980px) {
  .gruppe {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 64px;
    padding-block: 64px;
  }
  .gruppe-seite { position: sticky; top: 96px; align-self: start; }
}

.gruppe-seite h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); }
.gruppe-seite > p { margin-top: 12px; color: var(--matt); max-width: 44ch; }
.gruppe-seite .kennung {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--matt);
}

.posten { list-style: none; margin: 0; padding: 0; }
.posten li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 6px 10px;
  padding: 20px 0 22px;
  border-bottom: 1px dashed var(--linie);
}
.posten li:first-child { padding-top: 0; }
.posten .nr { font-family: var(--mono); font-size: 0.8125rem; color: var(--gruen); padding-top: 0.25em; font-weight: 500; }
.posten h4 { font-size: 1.25rem; font-stretch: 92%; font-weight: 750; letter-spacing: -0.005em; line-height: 1.2; }
.posten p { grid-column: 2; color: var(--matt); }
.posten p strong { color: var(--tinte); font-weight: 650; }

.marke-klein {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  vertical-align: 0.2em;
  border-radius: 99px;
  background: var(--offen-weich);
  color: var(--offen);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Karten neben den Funktionen (Kundenkartei, Kontoauszug, Nummernkreis, Export) */
.karte {
  margin-top: 28px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-klein);
  font-size: 0.875rem;
  overflow: hidden;
}
.karte-kopf {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--linie);
  background: var(--weich);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--matt);
}
.karte-kopf b { color: var(--tinte); font-weight: 600; }

.suche {
  margin: 14px 16px 6px;
  padding: 9px 12px;
  border: 1.5px solid var(--gruen);
  border-radius: 9px;
  font-family: var(--mono);
  color: var(--tinte);
}
.suche .cursor { display: inline-block; width: 1.5px; height: 1.05em; background: var(--gruen); vertical-align: -0.15em; margin-left: 1px; }

.zeilen { list-style: none; margin: 0; padding: 0 0 6px; }
.zeilen li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 10px 16px;
  border-bottom: 1px dashed var(--linie);
}
.zeilen li:last-child { border-bottom: 0; }
.zeilen .mono { font-size: 0.8125rem; }
.zeilen .wer { min-width: 0; }
.zeilen .wer small { display: block; color: var(--matt); font-size: 0.8125rem; }
.zeilen .rechts { text-align: right; color: var(--matt); font-family: var(--mono); font-size: 0.75rem; }

.betrag-plus { color: var(--gruen); font-weight: 600; }
.betrag-minus { color: var(--tinte); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 0.71875rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip-ok { background: var(--gruen-weich); color: var(--gruen); }
.chip-leer { background: var(--weich); color: var(--matt); font-weight: 500; }
.chip-offen { background: var(--offen-weich); color: var(--offen); }

.auszug li { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
.auszug .zweck { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--matt); text-transform: uppercase; letter-spacing: 0.01em; }
.auszug .treffer { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; }
.auszug .treffer .pfeilchen { color: var(--matt); font-family: var(--mono); font-size: 0.75rem; }

.nummern li { grid-template-columns: auto minmax(0, 1fr) auto; }
.nummern .schloss { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; display: inline-block; vertical-align: -2px; }
.formate { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--linie); }
.formate .chip { background: var(--weich); color: var(--tinte); font-weight: 500; }

.baum { margin: 0; padding: 16px; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.75; color: var(--tinte); white-space: pre-wrap; }
.baum .m { color: var(--matt); }

/* ---------- Schritte ---------- */

.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: schritt; }
@media (min-width: 860px) { .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

.schritte li { filter: drop-shadow(0 1px 0 rgb(20 32 28 / 4%)) drop-shadow(0 10px 18px rgb(20 32 28 / 10%)); }
@media (prefers-color-scheme: dark) {
  .schritte li { filter: drop-shadow(0 10px 18px rgb(0 0 0 / 45%)); }
}

.bon {
  --zacke: 9px;
  height: 100%;
  background: var(--flaeche);
  padding: 26px 24px calc(30px + var(--zacke));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zacke)) 100%;
}
.bon-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--linie);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--matt);
}
.bon-kopf .gross {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 600;
  color: var(--gruen);
}
.bon h3 { font-size: 1.5rem; }
.bon p { margin-top: 10px; color: var(--matt); }
.bon-fuss {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--linie);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--matt);
}

/* ---------- Preise ---------- */

.rechner {
  display: grid;
  gap: 28px;
  padding: 24px 20px;
  margin-bottom: 28px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .rechner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding: 32px 36px; align-items: center; }
}

.rechner label { display: block; font-weight: 700; font-size: 1.0625rem; }
.rechner-zahl {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 4px;
}
.rechner-zahl output {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.8rem, 2.2rem + 2vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rechner-zahl span { color: var(--matt); }

.regler {
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  accent-color: var(--gruen);
  cursor: pointer;
  background: transparent;
}
.regler-skala {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--matt);
}

.rechner-ergebnis { min-width: 0; }
.rechner-satz { font-size: 1.0625rem; margin-bottom: 16px; min-height: 3.2em; }
.rechner-satz strong { font-weight: 750; }
.rechner-satz .mono { font-weight: 600; }

.balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.balken li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) 6.2rem;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}
.balken .name { font-weight: 700; }
.balken .spur { height: 12px; border-radius: 99px; background: var(--weich); overflow: hidden; }
.balken .fuell {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--matt) 55%, transparent);
  transition: width .25s ease-out;
}
.balken .wert { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.balken li.bester .fuell { background: var(--gruen); }
.balken li.bester .wert, .balken li.bester .name { color: var(--gruen); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .balken .fuell { transition: none; } }

.tarife { display: grid; gap: 20px; }
@media (min-width: 900px) { .tarife { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }

.tarif {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.tarif.empfohlen { border: 2px solid var(--gruen); padding: 25px 21px 21px; }
.tarif.guenstig { box-shadow: 0 0 0 4px var(--gruen-weich); }

.tarif-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.tarif h3 { font-size: 1.6rem; }
.tarif .abzeichen {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--gruen);
  color: var(--auf-gruen);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tarif .abzeichen.passt { background: var(--gruen-weich); color: var(--gruen); }
.tarif-satz { margin-top: 6px; color: var(--matt); min-height: 3em; }

.tarif-preis { margin-top: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--linie); }
.tarif-preis .betrag {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tarif-preis .euro { margin-left: 0.15em; font-size: 1.9rem; font-weight: 700; }
.tarif-preis .einheit { margin-left: 4px; color: var(--matt); font-weight: 600; }
.tarif-preis .zusatz { margin-top: 8px; font-size: 0.9375rem; color: var(--tinte); }
.tarif-preis .ust { margin-top: 2px; font-size: 0.8125rem; color: var(--matt); }

.tarif-liste { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; font-size: 0.96875rem; }
.tarif-liste li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.tarif-liste li::before {
  content: "";
  width: 11px; height: 6px;
  border-left: 2px solid var(--gruen);
  border-bottom: 2px solid var(--gruen);
  transform: rotate(-45deg) translate(1px, -3px);
}
.tarif-liste .mono { font-size: 0.92em; font-weight: 500; }
.tarif .knopf { margin-top: auto; width: 100%; }

.preis-fuss { margin-top: 22px; font-size: 0.9375rem; color: var(--matt); max-width: 80ch; }
.preis-fuss p + p { margin-top: 6px; }

/* ---------- FAQ ---------- */

.fragen { border-top: 1px solid var(--tinte); max-width: 860px; }
.fragen details { border-bottom: 1px dashed var(--linie); }
.fragen summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
  font-stretch: 94%;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--linie);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--gruen);
}
.fragen details[open] summary::after { content: "–"; }
.fragen summary:hover::after { border-color: var(--gruen); }
.fragen .antwort { padding: 0 0 24px; color: var(--matt); max-width: 70ch; }
.fragen .antwort strong { color: var(--tinte); }
.fragen .antwort ul { margin: 0.6em 0 0; padding-left: 1.2em; }
.fragen .antwort li + li { margin-top: 0.3em; }

/* ---------- Schluss-Aufruf ---------- */

.schluss {
  --s-grund: #14201c;
  --s-tinte: #f3f5f3;
  --s-matt: #b9c6c1;
  padding-block: 80px;
  background: var(--s-grund);
  color: var(--s-tinte);
}
@media (prefers-color-scheme: dark) {
  .schluss { --s-grund: #173328; --s-tinte: #e5ebe8; --s-matt: #a9bcb4; border-block: 1px solid #22463a; }
}
.schluss .rahmen { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .schluss .rahmen { grid-template-columns: minmax(0, 1.3fr) auto; } .schluss { padding-block: 104px; } }
.schluss h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); font-stretch: 86%; }
.schluss p { margin-top: 14px; color: var(--s-matt); font-size: 1.125rem; }
.schluss .knopf-voll { background: var(--s-tinte); color: var(--s-grund); }
.schluss .knopf-voll:hover { background: #cfe5da; }
.schluss .knopf-linie { border-color: var(--s-tinte); color: var(--s-tinte); }
.schluss .knopf-linie:hover { background: var(--s-tinte); color: var(--s-grund); }
.schluss :focus-visible { outline-color: var(--s-tinte); }
.schluss-aktion { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Fuß ---------- */

.fuss { padding-block: 48px 40px; border-top: 1px dashed var(--linie); font-size: 0.9375rem; color: var(--matt); }
.fuss-raster { display: grid; gap: 28px; }
@media (min-width: 760px) { .fuss-raster { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.fuss .logo { font-size: 1.15rem; color: var(--tinte); margin: 0 0 6px; }
.fuss h2 { font-size: 0.8125rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinte); margin-bottom: 6px; font-stretch: 100%; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.fuss li a:hover { color: var(--tinte); text-decoration: underline; }
.fuss-unten { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.8125rem; }

/* ---------- Rechtstexte ---------- */

.entwurf {
  background: var(--ph-grund);
  color: var(--ph-tinte);
  border-bottom: 2px solid var(--ph-rand);
  font-weight: 700;
  font-size: 0.9375rem;
}
.entwurf .rahmen { display: flex; gap: 10px; align-items: center; padding-block: 12px; }
.entwurf .rahmen::before {
  content: "!";
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ph-tinte);
  color: var(--ph-grund);
  font-family: var(--mono);
  font-weight: 600;
}

.recht { padding-block: 48px 88px; }
.recht-raster { display: grid; gap: 40px; }
@media (min-width: 1020px) {
  .recht-raster { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  .recht-nav { position: sticky; top: 96px; align-self: start; }
}

.recht-nav h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--matt); margin-bottom: 8px; font-stretch: 100%; }
.recht-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1020px) { .recht-nav ul { display: grid; gap: 2px; } }
.recht-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--matt);
  background: var(--weich);
}
@media (min-width: 1020px) { .recht-nav a { background: transparent; } }
.recht-nav a:hover { color: var(--tinte); background: var(--weich); }
.recht-nav a[aria-current="page"] { color: var(--gruen); background: var(--gruen-weich); }

.recht-text { max-width: 74ch; min-width: 0; }
.recht-text h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); font-stretch: 86%; hyphens: manual; }
.recht-text .stand { margin-top: 12px; font-family: var(--mono); font-size: 0.8125rem; color: var(--matt); }
.recht-text .einleitung { margin-top: 20px; font-size: 1.125rem; color: var(--matt); }
.recht-text h2 {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px dashed var(--linie);
  font-size: 1.5rem;
  font-stretch: 92%;
  line-height: 1.2;
}
.recht-text h2 .nr { font-family: var(--mono); font-weight: 500; font-size: 0.8em; color: var(--gruen); margin-right: 0.35em; }
.recht-text h3 { margin-top: 28px; font-size: 1.1875rem; font-stretch: 94%; font-weight: 750; line-height: 1.25; }
.recht-text p, .recht-text ul, .recht-text ol, .recht-text address, .recht-text table { margin-top: 12px; }
.recht-text ul, .recht-text ol { padding-left: 1.3em; }
.recht-text li + li { margin-top: 6px; }
.recht-text address { font-style: normal; }
.recht-text table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.recht-text th, .recht-text td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px dashed var(--linie); min-width: 9em; }
.recht-text th { font-weight: 700; border-bottom: 1px solid var(--tinte); }
.recht-text .hinweis { padding: 14px 16px; border-left: 3px solid var(--gruen); background: var(--gruen-weich); border-radius: 0 10px 10px 0; }
.recht-text dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; }
@media (min-width: 640px) { .recht-text dl { grid-template-columns: 11em minmax(0, 1fr); } }
.recht-text dt { font-weight: 700; padding-top: 8px; }
.recht-text dd { margin: 0; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--linie); }
@media (min-width: 640px) { .recht-text dt { border-bottom: 1px dashed var(--linie); padding-bottom: 8px; } }

mark.ph {
  background: var(--ph-grund);
  color: var(--ph-tinte);
  outline: 1px dashed var(--ph-rand);
  padding: 0 0.25em;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media print {
  .kopf, .entwurf, .recht-nav, .fuss, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
