/* ==========================================================================
   Smart Templates — Verkaufsseite
   Bild: ein Schreibtisch mit Belegen. Papiergrund mit Millimeterraster, Tinte in
   Marineblau, das Blau der Feldmarken aus dem Designer als einzige Akzentfarbe;
   ein dunkles Tintenband für das Kapitel Sicherheit.
   Schrift: Bahnschrift (DIN 1451, auf jedem Windows) für Überschriften, Segoe UI
   für Fließtext — keine fremden Schriften, keine Inline-Stile (siehe _headers).
   Browser-Cache 24 h (_headers, /assets/*): braucht kontakt.html oder en/contact.html
   eine Änderung hier, dort den Zusatz ?v=… hochzählen (tools/webseite/LIESMICH.md).
   ========================================================================== */

:root {
  /* Farben — hell */
  --papier:        #F3F5FA;
  --blatt:         #FFFFFF;
  --tinte:         #14204A;
  --tinte-weich:   #46507A;
  --tinte-leise:   #646E90;
  --linie:         #DCE2EE;
  --linie-stark:   #C3CBDE;
  --marke:         #2B4CC4;
  --marke-tief:    #1E3A9E;
  --marke-grund:   #E7ECFD;
  --marke-text:    #FFFFFF;
  --violett:       #6B3FA0;
  --gruen:         #1F7A4D;
  --gruen-grund:   #E6F4EC;
  --fehler:        #B3261E;
  --fehler-grund:  #FCEBE9;
  --raster:        rgba(43, 76, 196, .055);
  --raster-cm:     rgba(43, 76, 196, .10);
  --schatten-blatt: 0 1px 1px rgba(20, 32, 74, .06), 0 10px 30px -8px rgba(20, 32, 74, .22);
  --schatten-weich: 0 1px 2px rgba(20, 32, 74, .05), 0 8px 24px -10px rgba(20, 32, 74, .16);
  --kopf-grund:    rgba(243, 245, 250, .86);
  /* Diagramm (geprüft mit dem Palettenprüfer: hell gegen #FCFCFB, dunkel gegen #141D44) */
  --reihe-abo:     #B5651D;
  --reihe-kauf:    #2B4CC4;

  /* Das Tintenband bleibt in beiden Farbschemata dunkel */
  --band:          #101A40;
  --band-blatt:    #172352;
  --band-text:     #E8ECF8;
  --band-leise:    #A9B3D3;
  --band-linie:    #2A3768;
  --band-marke:    #8EA5FF;

  /* Schrift */
  --anzeige: "Bahnschrift", "DIN Alternate", "DIN 2014", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --text:    "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono:    "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --beleg:   Arimo, Arial, "Helvetica Neue", Helvetica, sans-serif;

  /* Maße */
  --breite:  1200px;
  --rand:    max(20px, env(safe-area-inset-left, 0px));
  --rand-r:  max(20px, env(safe-area-inset-right, 0px));
  --r:       14px;
  --r-s:     9px;
  --kopf-h:  68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier:        #0B1230;
    --blatt:         #141D44;
    --tinte:         #E8ECF8;
    --tinte-weich:   #B6BFDB;
    --tinte-leise:   #8F99BC;
    --linie:         #253160;
    --linie-stark:   #34417A;
    --marke:         #8EA5FF;
    --marke-tief:    #B3C2FF;
    --marke-grund:   rgba(142, 165, 255, .14);
    --marke-text:    #0B1230;
    --violett:       #B48CE6;
    --gruen:         #5CC08E;
    --gruen-grund:   rgba(92, 192, 142, .13);
    --fehler:        #FF9C93;
    --fehler-grund:  rgba(255, 156, 147, .12);
    --raster:        rgba(142, 165, 255, .045);
    --raster-cm:     rgba(142, 165, 255, .085);
    --schatten-blatt: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 34px -10px rgba(0, 0, 0, .65);
    --schatten-weich: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 26px -12px rgba(0, 0, 0, .55);
    --kopf-grund:    rgba(11, 18, 48, .84);
    --reihe-abo:     #C27A3E;
    --reihe-kauf:    #6A84F0;
    --band:          #060B24;
    --band-blatt:    #0F1838;
    --band-linie:    #222E5C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier:        #0B1230;
  --blatt:         #141D44;
  --tinte:         #E8ECF8;
  --tinte-weich:   #B6BFDB;
  --tinte-leise:   #8F99BC;
  --linie:         #253160;
  --linie-stark:   #34417A;
  --marke:         #8EA5FF;
  --marke-tief:    #B3C2FF;
  --marke-grund:   rgba(142, 165, 255, .14);
  --marke-text:    #0B1230;
  --violett:       #B48CE6;
  --gruen:         #5CC08E;
  --gruen-grund:   rgba(92, 192, 142, .13);
  --fehler:        #FF9C93;
  --fehler-grund:  rgba(255, 156, 147, .12);
  --raster:        rgba(142, 165, 255, .045);
  --raster-cm:     rgba(142, 165, 255, .085);
  --schatten-blatt: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 34px -10px rgba(0, 0, 0, .65);
  --schatten-weich: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 26px -12px rgba(0, 0, 0, .55);
  --kopf-grund:    rgba(11, 18, 48, .84);
  --reihe-abo:     #C27A3E;
  --reihe-kauf:    #6A84F0;
  --band:          #060B24;
  --band-blatt:    #0F1838;
  --band-linie:    #222E5C;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--papier);
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--marke); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--marke-tief); }
:focus-visible { outline: 2px solid var(--marke); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--anzeige);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.35rem); font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.32rem; line-height: 1.25; }
p { margin: 0; }
strong, b { font-weight: 600; }

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

.huelle {
  max-width: var(--breite);
  margin-inline: auto;
  padding-left: var(--rand);
  padding-right: var(--rand-r);
}

.springe {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--marke); color: var(--marke-text); padding: 8px 14px; border-radius: 8px;
}
.springe:focus { top: 12px; }

/* Überzeile: kleine DIN-Großbuchstaben mit Millimeter-Strich davor */
.ueberzeile {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--anzeige); font-weight: 500;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--marke);
}
.ueberzeile::before {
  content: ""; width: 22px; height: 7px; flex: none;
  background:
    linear-gradient(var(--marke), var(--marke)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--marke) 0 1px, transparent 1px 5.25px) left bottom / 100% 4px no-repeat;
  opacity: .8;
}

.leit { font-size: 1.16rem; line-height: 1.6; color: var(--tinte-weich); max-width: 60ch; }
.leise { color: var(--tinte-leise); }
.klein { font-size: .9rem; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--text);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.knopf-voll { background: var(--marke); color: var(--marke-text); }
.knopf-voll:hover { background: var(--marke-tief); color: var(--marke-text); }
.knopf-rand { background: transparent; color: var(--tinte); border-color: var(--linie-stark); }
.knopf-rand:hover { border-color: var(--marke); color: var(--marke); }
.knopf svg { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .knopf:active { transform: translateY(1px); }
}

/* Feldmarke wie auf der Entwurfsfläche des Designers */
.feld {
  display: inline-block;
  padding: 0 .28em;
  border-radius: 3px;
  background: var(--marke-grund);
  color: var(--marke);
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Kopf
   -------------------------------------------------------------------------- */
.kopf {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--kopf-grund);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; gap: 24px; min-height: var(--kopf-h); }
.kopf-logo, .marke-wort {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--tinte); text-decoration: none; flex: none;
}
.kopf-logo:hover { color: var(--tinte); }
.kopf-logo img, .marke-wort img { width: 26px; height: auto; }
.wortmarke { display: grid; line-height: 1; }
.wortmarke b { font-family: var(--anzeige); font-weight: 600; font-size: 1.12rem; letter-spacing: .01em; }
.wortmarke span { font-family: var(--anzeige); font-weight: 400; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-leise); margin-top: 3px; }

.kopf-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.kopf-nav a:not(.knopf) {
  color: var(--tinte-weich); text-decoration: none; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.kopf-nav a:not(.knopf):hover { color: var(--tinte); background: var(--marke-grund); }
.kopf-nav .knopf { min-height: 40px; padding: 8px 18px; font-size: .95rem; margin-left: 8px; white-space: nowrap; }
.menue-knopf {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--linie-stark); color: var(--tinte);
  border-radius: 10px; min-height: 40px; padding: 6px 12px; font: 600 .95rem var(--text); cursor: pointer;
}

@media (max-width: 1100px) {
  .menue-knopf { display: inline-flex; align-items: center; gap: 8px; }
  .kopf-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--blatt); border-bottom: 1px solid var(--linie);
    padding: 10px var(--rand-r) 16px var(--rand);
    box-shadow: var(--schatten-weich);
  }
  .kopf.offen .kopf-nav { display: flex; }
  .kopf-nav .knopf { margin: 8px 0 0; }
  /* Rechtstexte: nur ein Verweis zurück, kein Menü */
  .kopf-nav.kopf-nav-fest {
    display: flex; position: static; flex-direction: row;
    background: transparent; border: 0; box-shadow: none; padding: 0;
  }
}

/* --------------------------------------------------------------------------
   Bühne
   -------------------------------------------------------------------------- */
.buehne {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 70%, var(--papier)),
    repeating-linear-gradient(0deg, var(--raster-cm) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--raster-cm) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, var(--raster) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--raster) 0 1px, transparent 1px 8px);
  border-bottom: 1px solid var(--linie);
}
.buehne-innen {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px);
}
.buehne-text { display: grid; gap: 26px; min-width: 0; }
.buehne h1 .zweit { display: block; color: var(--marke); }
.buehne .leit { font-size: 1.2rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.zusagen {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .95rem; color: var(--tinte-weich);
}
.zusagen li { display: inline-flex; align-items: center; gap: 8px; }
.zusagen svg { width: 18px; height: 18px; color: var(--gruen); flex: none; }

/* Der Stapel: drei echte PDFs aus derselben Vorlage */
.stapel { margin: 0; display: grid; gap: 34px; justify-items: center; min-width: 0; }
.stapel-flaeche {
  position: relative;
  isolation: isolate;
  width: min(100%, 420px);
  aspect-ratio: 210 / 297;
}
.blatt {
  position: absolute; inset: 0;
  margin: 0;
  background: #FFFFFF;
  border-radius: 3px;
  box-shadow: var(--schatten-blatt);
  transform-origin: 50% 80%;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, filter .3s ease;
}
.blatt img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.blatt[data-lage="0"] { z-index: 3; transform: none; }
.blatt[data-lage="1"] { z-index: 2; transform: translate(9%, 3.5%) rotate(4.5deg); filter: brightness(.97); }
.blatt[data-lage="2"] { z-index: 1; transform: translate(-8%, 5%) rotate(-5deg); filter: brightness(.94); }
@media (prefers-reduced-motion: reduce) { .blatt { transition: none; } }

.stapel-wahl {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 4px; border-radius: 999px;
  background: var(--blatt); border: 1px solid var(--linie);
}
.stapel-wahl button {
  border: 0; background: transparent; color: var(--tinte-weich);
  font: 500 .86rem/1.2 var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.stapel-wahl button[aria-pressed="true"] { background: var(--marke); color: var(--marke-text); }
.stapel figcaption { font-size: .86rem; color: var(--tinte-leise); text-align: center; max-width: 46ch; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .leit, .buehne .leit { font-size: 1.06rem; }
}
@media (max-width: 900px) {
  .buehne-innen { grid-template-columns: minmax(0, 1fr); }
  .stapel-flaeche { width: min(82%, 400px); }
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
.abschnitt { padding-block: clamp(72px, 9vw, 128px); }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.abschnitt-kopf { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.abschnitt-kopf.mittig { margin-inline: auto; text-align: center; justify-items: center; }

/* --- KI: Umstieg von Word ------------------------------------------------ */
.umstieg {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px 40px; align-items: center;
  padding: clamp(22px, 3.4vw, 36px);
  margin-bottom: clamp(56px, 7vw, 96px);
  border-radius: 18px;
  border: 1px solid var(--linie-stark);
  background:
    repeating-linear-gradient(0deg, var(--raster) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--raster) 0 1px, transparent 1px 8px),
    var(--blatt);
}
.umstieg-text { display: grid; gap: 12px; justify-items: start; }
.umstieg-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.umstieg-text p { color: var(--tinte-weich); }
.umstieg-weg {
  list-style: none; margin: 0; padding: 0; counter-reset: weg;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.umstieg-weg li {
  position: relative; counter-increment: weg;
  display: grid; gap: 4px; align-content: start;
  padding: 14px 14px 16px; border-radius: 12px;
  background: var(--papier); border: 1px solid var(--linie);
}
.umstieg-weg li::before {
  content: counter(weg);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--marke); color: var(--marke-text); font: 600 .85rem/1 var(--anzeige);
  margin-bottom: 6px;
}
.umstieg-weg li:not(:last-child)::after {
  content: "›"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%);
  color: var(--marke); font: 600 1.3rem/1 var(--anzeige); z-index: 1;
}
.umstieg-weg b { font-family: var(--anzeige); font-weight: 600; font-size: 1rem; }
.umstieg-weg span { font-size: .86rem; color: var(--tinte-weich); line-height: 1.4; }
@media (max-width: 900px) { .umstieg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .umstieg-weg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .umstieg-weg li:nth-child(2)::after { content: none; }
}

/* Testversion: dieselben Schritte, drei statt vier */
.test-weg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schluss .test-weg li { background: var(--blatt); }
@media (max-width: 560px) {
  .test-weg { grid-template-columns: minmax(0, 1fr); }
  .test-weg li::after { content: none !important; }
}
.kontakt h3 { font-size: 1.25rem; }
.kontakt > p { color: var(--tinte-weich); }

.ki-handbuch {
  display: grid; gap: 6px; justify-items: start;
  padding: 16px 18px; border-radius: 12px;
  background: var(--papier); border: 1px dashed var(--linie-stark);
}
.ki-handbuch b { font-family: var(--anzeige); font-weight: 600; font-size: 1.05rem; }
.ki-handbuch p { font-size: .95rem; }

/* --- E-Rechnung: der Beleg mit seiner XML ------------------------------- */
.erechnung { margin: 0; display: grid; gap: 16px; min-width: 0; }
.erechnung-buehne { position: relative; padding-bottom: 18%; }
.erechnung-blatt { width: 70%; }
.erechnung-blatt img { border-radius: 3px; box-shadow: var(--schatten-blatt); background: #FFFFFF; }
.xml-karte {
  position: absolute; right: 0; bottom: 0; width: 80%;
  border-radius: 12px; overflow: hidden;
  background: #111A3A; color: #D5DCF0;
  box-shadow: 0 18px 40px -14px rgba(10, 16, 40, .55);
  border: 1px solid #26305A;
}
.xml-kopf {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid #26305A;
  font: 600 .78rem/1.3 var(--mono); color: #8E99BE;
}
.xml-kopf span:last-child { font-family: var(--text); font-weight: 500; }
.xml-karte pre { margin: 0; padding: 12px 14px 14px; overflow-x: auto; }
.xml-karte code { font: 12px/1.6 var(--mono); white-space: pre; }
.x-t { color: #A8BEFF; }
.x-w { color: #B5E4C9; }
.x-z { color: #F5CF8E; }
.x-a { color: #D5DCF0; }
.x-l { color: #8E99BE; }
.normen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.normen li {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--linie-stark); background: var(--blatt);
  font: 600 .85rem/1.2 var(--anzeige); letter-spacing: .04em; color: var(--tinte);
}
.erechnung figcaption { font-size: .88rem; color: var(--tinte-leise); }
@media (max-width: 760px) {
  .erechnung-buehne { padding-bottom: 0; display: grid; gap: 0; }
  .erechnung-blatt { width: 82%; justify-self: center; }
  .xml-karte { position: relative; width: 100%; margin-top: -18%; }
}

/* --- Bildschirmfotos ----------------------------------------------------- */
.foto {
  margin: 0;
  display: grid; gap: 12px;
  min-width: 0;
}
.foto-rahmen {
  border-radius: var(--r);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--linie);
  box-shadow: var(--schatten-weich);
}
.foto figcaption { font-size: .88rem; color: var(--tinte-leise); }
.foto figcaption a { white-space: nowrap; }

/* Designer im Ganzen, mit Legende */
.designer-bild { position: relative; }
.designer-bild .foto-rahmen { border-radius: 12px; }
.werkzeuge {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--linie);
}
.werkzeuge > div { padding: 24px 24px 4px 0; display: grid; gap: 8px; align-content: start; }
.werkzeuge > div + div { padding-left: 24px; border-left: 1px solid var(--linie); }
.werkzeuge h3 { font-size: 1.12rem; }
.werkzeuge p { color: var(--tinte-weich); font-size: .97rem; }
@media (max-width: 860px) {
  .werkzeuge { grid-template-columns: minmax(0, 1fr); }
  .werkzeuge > div, .werkzeuge > div + div { padding: 22px 0 0; border-left: 0; }
}

/* --- Funktionen in Zeilen ----------------------------------------------- */
.zeilen { display: grid; gap: clamp(64px, 8vw, 112px); }
.zeile {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.zeile.gespiegelt { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.zeile.gespiegelt .zeile-text { order: 2; }
.zeile.gleich { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.zeile.gleich .zeile-text { gap: 20px; }
.zeile-text { display: grid; gap: 16px; min-width: 0; }
.zeile-text p { color: var(--tinte-weich); }
.haken { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.haken li { position: relative; padding-left: 28px; color: var(--tinte-weich); }
.haken li::before {
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--marke); border-bottom: 2px solid var(--marke);
  transform: rotate(-45deg);
}
.mehr { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.mehr:hover { text-decoration: underline; }
.mehr::after { content: "›"; font-size: 1.15em; line-height: 1; }

.seitenreihe {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--r);
  background:
    repeating-linear-gradient(0deg, var(--raster) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--raster) 0 1px, transparent 1px 8px),
    var(--blatt);
  border: 1px solid var(--linie);
}
.seitenreihe img { border-radius: 2px; box-shadow: var(--schatten-blatt); background: #FFFFFF; }
.seitenreihe figcaption { grid-column: 1 / -1; font-size: .88rem; color: var(--tinte-leise); padding-top: 4px; }

/* Das Fenster und daneben, halb darüber, der gedruckte Ausschnitt */
.paar { position: relative; padding-bottom: 84px; }
.paar > .foto:first-child { width: 78%; }
.paar > .foto:last-child { position: absolute; right: 0; bottom: 0; width: 64%; }
.paar .foto-rahmen.beleg { box-shadow: var(--schatten-blatt); border: 0; border-radius: 3px; transform: rotate(-1.2deg); }
.paar > .foto:last-child figcaption { text-align: right; padding-right: 4px; }
.schmal-foto { max-width: 470px; justify-self: center; width: 100%; }

@media (max-width: 900px) {
  .zeile, .zeile.gespiegelt, .zeile.gleich { grid-template-columns: minmax(0, 1fr); }
  .zeile.gespiegelt .zeile-text { order: 0; }
}
@media (max-width: 560px) {
  .paar { padding-bottom: 0; display: grid; gap: 16px; }
  .paar > .foto:first-child, .paar > .foto:last-child { position: static; width: 100%; }
}

.kacheln {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden;
  background: var(--blatt);
}
.kacheln > div { padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.kacheln > div:nth-child(4n) { border-right: 0; }
.kacheln > div:nth-last-child(-n+4) { border-bottom: 0; }
.kacheln h3 { font-size: 1.04rem; }
.kacheln p { font-size: .92rem; color: var(--tinte-weich); line-height: 1.5; }
.kacheln h3 a { color: inherit; text-decoration: none; }
.kacheln h3 a:hover { color: var(--marke); text-decoration: underline; }
@media (max-width: 960px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kacheln > div:nth-child(4n) { border-right: 1px solid var(--linie); }
  .kacheln > div:nth-child(2n) { border-right: 0; }
  .kacheln > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--linie); }
  .kacheln > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .kacheln { grid-template-columns: minmax(0, 1fr); }
  .kacheln > div, .kacheln > div:nth-child(4n) { border-right: 0; border-bottom: 1px solid var(--linie); }
  .kacheln > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--linie); }
  .kacheln > div:last-child { border-bottom: 0; }
}

/* --- Aus Dynamics heraus ------------------------------------------------- */
.leiste-bild { margin-bottom: 18px; }
.leiste-bild .foto-rahmen { border-radius: 10px; }
.drei-wege { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.drei-wege li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px;
  padding: 16px 18px; border-radius: var(--r-s);
  background: var(--blatt); border: 1px solid var(--linie);
}
.drei-wege svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--marke-grund); color: var(--marke); }
.drei-wege b { font-family: var(--anzeige); font-weight: 600; font-size: 1.05rem; }
.drei-wege span { color: var(--tinte-weich); font-size: .95rem; }

/* --- KI -------------------------------------------------------------------- */
.gespraech { display: grid; gap: 14px; }
.gespraech .foto-rahmen { border-radius: 12px; }
.gespraech .nutzer { justify-self: end; width: min(100%, 560px); }
.gespraech .antwort { width: min(100%, 600px); }
.gespraech .meldung { justify-self: center; width: min(100%, 470px); }
.ki-zwei {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
}
.ki-zwei > div {
  padding: 24px; border-radius: var(--r); background: var(--blatt); border: 1px solid var(--linie);
  display: grid; gap: 10px; align-content: start;
}
.ki-zwei h3 { font-size: 1.15rem; }
.ki-zwei p { color: var(--tinte-weich); font-size: .97rem; }
.ki-zwei .klein { color: var(--tinte-leise); }
@media (max-width: 760px) { .ki-zwei { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Tintenband: Sicherheit
   -------------------------------------------------------------------------- */
.band {
  background: var(--band);
  color: var(--band-text);
  padding-block: clamp(80px, 10vw, 136px);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(142, 165, 255, .06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(142, 165, 255, .06) 0 1px, transparent 1px 40px);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.band .huelle { position: relative; }
.band .ueberzeile { color: var(--band-marke); }
.band .ueberzeile::before {
  background:
    linear-gradient(var(--band-marke), var(--band-marke)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--band-marke) 0 1px, transparent 1px 5.25px) left bottom / 100% 4px no-repeat;
}
.band .leit { color: var(--band-leise); }
.band a { color: var(--band-marke); }
.sicher {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.plan { width: 100%; height: auto; display: block; }
.plan .p-rahmen { fill: rgba(142, 165, 255, .05); stroke: var(--band-marke); stroke-width: 1.5; }
.plan .p-kasten { fill: var(--band-blatt); stroke: var(--band-linie); stroke-width: 1.2; }
.plan .p-kasten-hell { fill: #FFFFFF; stroke: none; }
.plan .p-text { fill: var(--band-text); font-family: var(--text); font-size: 14px; }
.plan .p-titel { fill: var(--band-text); font-family: var(--anzeige); font-weight: 600; font-size: 15.5px; }
.plan .p-leise { fill: var(--band-leise); font-family: var(--text); font-size: 12.5px; }
.plan .p-etikett { fill: var(--band-marke); font-family: var(--anzeige); font-weight: 500; font-size: 12px; letter-spacing: .12em; }
.plan .p-pfeil { fill: none; stroke: var(--band-marke); stroke-width: 1.6; }
.plan .p-spitze { fill: var(--band-marke); }
.plan .p-aussen { fill: none; stroke: #7A84A8; stroke-width: 1.2; stroke-dasharray: 5 5; }
.plan .p-aussen-text { fill: #9AA3C4; font-family: var(--text); font-size: 13px; }
.plan .p-kreuz { stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; }
.plan .p-kreuz-grund { fill: #D9534A; }
.plan .p-nein { fill: #F2A29B; font-family: var(--anzeige); font-weight: 600; font-size: 13.5px; }
.plan .p-blatt-linie { stroke: #C9D2EA; stroke-width: 2; stroke-linecap: round; }
.plan .p-blatt-akzent { fill: #0E6B72; }

.belege-sicher { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.belege-sicher li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 14px; }
.belege-sicher svg { grid-row: span 2; width: 22px; height: 22px; color: var(--band-marke); margin-top: 3px; }
.belege-sicher b { font-family: var(--anzeige); font-weight: 600; font-size: 1.1rem; }
.belege-sicher span { color: var(--band-leise); font-size: .97rem; }

.fakten {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--band-linie);
}
.fakten > div { padding: 26px 20px 0 0; display: grid; gap: 6px; align-content: start; }
.fakten > div + div { padding-left: 20px; border-left: 1px solid var(--band-linie); }
.band .leise-band { color: var(--band-leise); margin-top: 32px; max-width: 80ch; }
.fakten .zahl { font-family: var(--anzeige); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fakten .zahl small { font-size: .5em; letter-spacing: .02em; color: var(--band-leise); margin-left: 2px; }
.fakten p { color: var(--band-leise); font-size: .93rem; }
@media (max-width: 900px) {
  .sicher { grid-template-columns: minmax(0, 1fr); }
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .fakten > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .fakten { grid-template-columns: minmax(0, 1fr); }
  .fakten > div, .fakten > div + div { padding: 22px 0 0; border-left: 0; }
}

/* --------------------------------------------------------------------------
   Unbegrenzt
   -------------------------------------------------------------------------- */
.ohne-grenze {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-block: 1px solid var(--linie);
}
.ohne-grenze > div { padding: 30px 26px 30px 0; display: grid; gap: 6px; align-content: start; }
.ohne-grenze > div + div { padding-left: 26px; border-left: 1px solid var(--linie); }
.ohne-grenze .unendlich {
  font-family: var(--anzeige); font-weight: 400; font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: .9;
  color: var(--marke);
}
.ohne-grenze b { font-family: var(--anzeige); font-weight: 600; font-size: 1.25rem; }
.ohne-grenze p { color: var(--tinte-weich); font-size: .97rem; }
@media (max-width: 760px) {
  .ohne-grenze { grid-template-columns: minmax(0, 1fr); }
  .ohne-grenze > div, .ohne-grenze > div + div { padding: 24px 0; border-left: 0; }
  .ohne-grenze > div + div { border-top: 1px solid var(--linie); }
}

/* --------------------------------------------------------------------------
   Preise
   -------------------------------------------------------------------------- */
.preise {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  align-items: stretch;
  margin-top: clamp(40px, 5vw, 64px);
}
.preis {
  position: relative;
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: 18px;
  background: var(--blatt);
  border: 1px solid var(--linie);
}
.preis.empfohlen { border: 2px solid var(--marke); box-shadow: var(--schatten-weich); }
.preis-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
/* Drei Karten nebeneinander: Der Titel »Kauf + Wartungsvertrag« bricht mit seiner Marke um; die Kopfzeilen der anderen halten dieselbe Höhe, damit die Beträge auf einer Linie stehen. */
@media (min-width: 1001px) { .preis-kopf { min-height: 66px; align-content: flex-start; } }
.preis h3 { font-size: 1.45rem; }
.etikett {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font: 600 .74rem/1.3 var(--anzeige); letter-spacing: .1em; text-transform: uppercase;
  background: var(--marke-grund); color: var(--marke);
}
.betrag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.betrag .zahl {
  font-family: var(--anzeige); font-weight: 600; font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.betrag .einheit { color: var(--tinte-weich); font-size: 1rem; }
.preis > p { color: var(--tinte-weich); }
.preis .haken { align-content: start; }
.zusatz {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 16px 18px; border-radius: 12px;
  background: var(--papier); border: 1px dashed var(--linie-stark);
}
.zusatz b { font-family: var(--anzeige); font-weight: 600; font-size: 1.06rem; }
.zusatz .zusatz-preis { font-family: var(--anzeige); font-weight: 600; font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zusatz p { grid-column: 1 / -1; color: var(--tinte-weich); font-size: .93rem; }
.preis-fuss { font-size: .9rem; color: var(--tinte-leise); margin-top: 18px; max-width: 90ch; }
@media (max-width: 1000px) { .preise { grid-template-columns: minmax(0, 1fr); } }

.allen { margin-top: 22px; padding: 22px 26px; border-radius: 14px; border: 1px solid var(--linie); background: var(--blatt);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 24px; align-items: center; }
.allen b { font-family: var(--anzeige); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.allen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--tinte-weich); font-size: .95rem; }
.allen p { color: var(--tinte-weich); font-size: .95rem; }
.allen li { display: inline-flex; gap: 8px; align-items: center; }
.allen li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--marke); flex: none; }
@media (max-width: 700px) { .allen { grid-template-columns: minmax(0, 1fr); } }

/* Kosten über die Jahre */
.verlauf {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.verlauf-text { display: grid; gap: 14px; }
.verlauf-text p { color: var(--tinte-weich); }
.schwelle { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.schwelle li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; }
.schwelle .jahr {
  font-family: var(--anzeige); font-weight: 600; font-size: 1.05rem; color: var(--marke);
  min-width: 5.5em; font-variant-numeric: tabular-nums;
}
.schwelle span:last-child { color: var(--tinte-weich); font-size: .96rem; }

.diagramm {
  background: var(--blatt); border: 1px solid var(--linie); border-radius: var(--r);
  padding: 18px 18px 12px; display: grid; gap: 10px; min-width: 0;
}
.diagramm-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.diagramm-kopf h3 { font-size: 1.05rem; }
.diagramm-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--tinte-weich); list-style: none; margin: 0; padding: 0; }
.diagramm-legende li { display: inline-flex; align-items: center; gap: 7px; }
.diagramm-legende svg { width: 24px; height: 10px; }
.diagramm-legende line { stroke-width: 2.5; stroke-linecap: round; }
.diagramm-legende .leg-abo { stroke: var(--reihe-abo); }
.diagramm-legende .leg-kauf { stroke: var(--reihe-kauf); }
.diagramm-legende .gestrichelt { stroke-dasharray: 5 4; stroke-linecap: butt; }
.diagramm-flaeche { position: relative; }
.diagramm svg.kurven { width: 100%; height: auto; display: block; overflow: visible; }
.kurven .gitter { stroke: var(--linie); stroke-width: 1; }
.kurven .achse { stroke: var(--linie-stark); stroke-width: 1; }
.kurven .beschriftung { fill: var(--tinte-leise); font: 12px var(--text); font-variant-numeric: tabular-nums; }
.kurven .linie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kurven .linie.abo { stroke: var(--reihe-abo); }
.kurven .linie.kauf { stroke: var(--reihe-kauf); }
.kurven .linie.gestrichelt { stroke-dasharray: 6 5; }
.kurven .punkt-m { stroke: var(--blatt); stroke-width: 2; }
.kurven .punkt-m.abo { fill: var(--reihe-abo); }
.kurven .punkt-m.kauf { fill: var(--reihe-kauf); }
.kurven .punkt-m.hohl { fill: var(--blatt); stroke: var(--reihe-kauf); stroke-width: 2; }
.kurven .namen { fill: var(--tinte-weich); font: 600 12px var(--text); }
.kurven .fadenkreuz { stroke: var(--tinte-leise); stroke-width: 1; stroke-dasharray: 3 3; }
.kurven .trefferflaeche { fill: transparent; cursor: crosshair; }
.tipp {
  position: absolute; pointer-events: none; z-index: 2;
  min-width: 210px;
  background: var(--tinte); color: var(--papier);
  border-radius: 10px; padding: 10px 12px;
  font-size: .85rem; line-height: 1.45;
  box-shadow: var(--schatten-weich);
  font-variant-numeric: tabular-nums;
}
.tipp b { font-family: var(--anzeige); font-weight: 600; display: block; margin-bottom: 4px; font-size: .95rem; }
.tipp div { display: flex; justify-content: space-between; gap: 18px; }
.tipp i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.tipp i::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--farbe, currentColor); }
.diagramm details { border-top: 1px solid var(--linie); padding-top: 8px; font-size: .9rem; }
.diagramm summary { cursor: pointer; color: var(--tinte-weich); font-weight: 600; }
.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; }
.tabelle thead th { font-weight: 600; color: var(--tinte-weich); font-size: .84rem; }
@media (max-width: 900px) { .verlauf { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Handbuch
   -------------------------------------------------------------------------- */
.handbuch {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.handbuch-text { display: grid; gap: 18px; }
.handbuch-text p { color: var(--tinte-weich); }
.kapitel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kapitel a {
  display: grid; gap: 4px; height: 100%;
  padding: 18px 20px; border-radius: 12px;
  background: var(--blatt); border: 1px solid var(--linie);
  text-decoration: none; color: var(--tinte);
  transition: border-color .15s ease, transform .15s ease;
}
.kapitel a:hover { border-color: var(--marke); color: var(--tinte); }
@media (prefers-reduced-motion: no-preference) { .kapitel a:hover { transform: translateY(-2px); } }
.kapitel small { font: 500 .72rem/1.3 var(--anzeige); letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-leise); }
.kapitel b { font-family: var(--anzeige); font-weight: 600; font-size: 1.08rem; }
.kapitel span { font-size: .92rem; color: var(--tinte-weich); line-height: 1.45; }
@media (max-width: 900px) { .handbuch { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .kapitel { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Fragen
   -------------------------------------------------------------------------- */
.fragen { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--linie); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center;
  padding: 22px 2px;
  font-family: var(--anzeige); font-weight: 600; font-size: 1.15rem; line-height: 1.3;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: "+"; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--linie-stark); color: var(--marke);
  font: 400 1.2rem/1 var(--text);
}
.fragen details[open] summary::after { content: "–"; }
.fragen .antwort { padding: 0 44px 24px 2px; display: grid; gap: 12px; color: var(--tinte-weich); }

/* --------------------------------------------------------------------------
   Schluss und Fuß
   -------------------------------------------------------------------------- */
.schluss {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 22px;
  background:
    repeating-linear-gradient(0deg, var(--raster) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--raster) 0 1px, transparent 1px 8px),
    var(--blatt);
  border: 1px solid var(--linie);
}
.schluss-text { display: grid; gap: 16px; }
.schluss-text p { color: var(--tinte-weich); }
.kontakt {
  display: grid; gap: 14px; align-self: stretch; align-content: center;
  padding: clamp(20px, 3vw, 30px); border-radius: 16px;
  background: var(--papier); border: 1px solid var(--linie);
}
/* Die Adresse steht in einer Zeile; wird es zu eng, bricht sie nur hinter dem @ um, nie mitten im Wort */
.adresse {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 12px; border: 1px solid var(--linie-stark); background: var(--papier);
}
.adresse-text { flex: 1 1 auto; min-width: 0; font: 600 .95rem/1.35 var(--text); color: var(--tinte); user-select: all; }
.am-stueck { white-space: nowrap; }
.adresse button {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--linie-stark); background: var(--blatt); color: var(--tinte-weich);
  border-radius: 8px; cursor: pointer;
}
.adresse button:hover { border-color: var(--marke); color: var(--marke); }
.adresse button svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.adresse .symbol-haken { display: none; color: var(--gruen); }
.adresse button.kopiert .symbol-kopieren { display: none; }
.adresse button.kopiert .symbol-haken { display: block; }
/* Unter 1240 px nebeneinander zu eng für die Adresse in einer Zeile: dann untereinander */
@media (max-width: 1240px) { .schluss { grid-template-columns: minmax(0, 1fr); } }

.fuss { border-top: 1px solid var(--linie); padding-block: 40px 48px; }
.fuss-oben { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fuss nav a { color: var(--tinte-weich); text-decoration: none; font-size: .93rem; }
.fuss nav a:hover { color: var(--marke); text-decoration: underline; }
.fuss-unten { margin-top: 22px; display: grid; gap: 8px; font-size: .82rem; color: var(--tinte-leise); max-width: 90ch; }
.fuss-unten.schlicht { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; max-width: none; }
.fuss-unten.schlicht nav a { font-size: .82rem; }

/* --------------------------------------------------------------------------
   Rechtstexte (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.rechtstext {
  max-width: 760px; margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--rand-r) 24px var(--rand);
  display: grid; gap: 14px;
}
.rechtstext h1 { font-size: clamp(2.1rem, 4vw, 2.8rem); margin-bottom: 10px; }
.rechtstext h2 { font-size: 1.4rem; margin-top: 22px; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 8px; }
.rechtstext p, .rechtstext li, .rechtstext address { color: var(--tinte-weich); font-style: normal; }
.rechtstext ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.platzhalter {
  padding: 14px 18px; border-radius: 10px;
  background: #FDF4E0; color: #6B4B00; border: 1px solid #E8D5A8; font-size: .95rem;
}
.luecke { background: #FBE7A1; color: #4D3600; padding: 0 4px; border-radius: 3px; }
.mt-xl { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Kontaktseite (kontakt.html): ein Formular für alle Anliegen
   -------------------------------------------------------------------------- */
.formularseite { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px); }
.huelle.formular-huelle { max-width: 800px; }
.formular-kopf { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 36px); }
.formular-kopf > div { display: grid; gap: 14px; }
.formular-kopf h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); }
.formular-kopf .leit { max-width: 62ch; }

.formular {
  display: grid; gap: 20px;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 18px;
  background: var(--blatt);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten-weich);
}
.formular-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.formfeld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.formfeld.voll { grid-column: 1 / -1; }
.formfeld label { font: 600 .92rem/1.3 var(--text); color: var(--tinte); }
.formfeld.pflicht label::after { content: " *"; color: var(--marke); }
.formfeld input, .formfeld select, .formfeld textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  font: 400 1rem/1.4 var(--text); color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--linie-stark); border-radius: 10px;
}
.formfeld textarea { resize: vertical; min-height: 120px; }
.formfeld input:disabled, .formfeld select:disabled, .formfeld textarea:disabled { opacity: .6; }
.formfeld input:focus-visible, .formfeld select:focus-visible, .formfeld textarea:focus-visible { outline-offset: 1px; border-color: var(--marke); }
@media (max-width: 560px) { .formular-raster { grid-template-columns: minmax(0, 1fr); } }

/* Pflicht-Kästchen (»Demo anfordern«: Lizenzbedingungen für die Testphase): Kästchen links, Text daneben in normaler Schrift. */
.formfeld.kaestchen { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 10px; }
.formfeld.kaestchen input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--marke); }
.formfeld.kaestchen label { font-weight: 400; font-size: .95rem; line-height: 1.45; }

/* Der Honigtopf liegt außerhalb des Bildes; Menschen sehen und erreichen ihn nicht. */
.honig { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { min-height: 65px; max-width: 100%; }
.formular-meldung {
  padding: 12px 16px; border-radius: 10px;
  background: var(--fehler-grund); color: var(--fehler);
  border: 1px solid var(--fehler);
  font-size: .95rem; line-height: 1.5;
}
.formular-meldung a { color: inherit; }
.formular-fuss { display: grid; gap: 14px; justify-items: start; }
.formular-fuss .knopf { min-width: 220px; }
.formular-fuss .knopf:disabled { opacity: .55; cursor: not-allowed; }
.formular-fuss p { max-width: 70ch; }

.erfolg {
  display: grid; gap: 14px; justify-items: start;
  padding: clamp(22px, 4vw, 40px); border-radius: 18px;
  background: var(--gruen-grund); border: 1px solid var(--gruen);
}
.erfolg h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.erfolg p { color: var(--tinte-weich); }
.erfolg .vorgang b { font: 600 1.35rem/1.3 var(--mono); letter-spacing: .04em; color: var(--tinte); user-select: all; }
.erfolg:focus { outline: none; }

.hinweis-kasten {
  padding: 14px 18px; border-radius: 10px;
  background: var(--marke-grund); border: 1px solid var(--linie-stark); color: var(--tinte-weich);
}

/* --------------------------------------------------------------------------
   Seite nicht gefunden (404.html)
   -------------------------------------------------------------------------- */
.nichts { padding-block: clamp(64px, 12vw, 160px); }
.nichts .huelle { display: grid; gap: 18px; justify-items: start; max-width: 720px; }
.nichts h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.nichts p { color: var(--tinte-weich); max-width: 56ch; }

/* Sprachumschalter mit Flagge (25.10.2026): Deutschland für Deutsch, USA für Englisch. Die Flaggen sind SVG-Dateien (Windows zeigt
   keine Flaggen-Emojis). Im Kopf als umrandeter Knopf, im Fuß schlicht. */
.sprache { display: inline-flex; align-items: center; gap: 7px; }
.sprache img { width: 20px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20, 32, 74, .18); flex: none; }
.kopf-nav a.sprache { border: 1px solid var(--linie-stark); border-radius: 999px; padding: 5px 12px; margin-left: 6px; }
.kopf-nav a.sprache:hover { border-color: var(--marke); }
