/* Kundencenter besser brinkmann.
   Die Seite ist das Angebot selbst: dunkler Grund wie das PDF, Hausform an
   allen Kästen (drei runde Ecken, unten links spitz), Weiß für das, was zählt
   und was man anfasst. Das Wort ANGEBOT steht ganz lesbar am Rand und bleibt
   stehen, das Dokument läuft in der Mitte. Die Seiten für Angemeldete stehen
   im selben Rahmen: Das Wort nennt den Bereich, die Leiste unten führt durch.
   Keine eingebetteten Stile, die CSP lässt sie nicht zu. */

@font-face { font-family: "Josefin Sans"; font-weight: 100 700; font-display: swap;
  src: url(schrift/josefin-sans-latin.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+2212; }
@font-face { font-family: "Josefin Sans"; font-weight: 100 700; font-display: swap;
  src: url(schrift/josefin-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF; }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap;
  src: url(schrift/montserrat-latin.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+2212; }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap;
  src: url(schrift/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF; }

:root {
  color-scheme: dark;
  --grund: #191e28;
  --tief: #141820;
  --text: #d4d6d3;
  --text-leise: #a3a8ae;
  --weiss: #fff;
  --akzent: #c5c7c4;
  --linie: rgba(197, 199, 196, .25);
  --linie-hell: rgba(232, 232, 232, .6);
  --tinte: #191e28;
  --tinte-leise: #565c68;
  --fokus: #7ba8ff;
  --fokus-papier: #1d3fa8;
  --fehler: #ef6b6b;
  --marke: #c92f3c;
  --fehler-papier: #a4161a;
  --haus: 30px 30px 30px 0;
  --haus-klein: 10px 10px 10px 0;
  --kopf: "Josefin Sans", "Century Gothic", sans-serif;
  --lauf: "Montserrat", "Segoe UI", sans-serif;
  --zug: cubic-bezier(.16, 1, .3, 1);
  --leiste: 5.4rem;
  --rand: clamp(1.1rem, 5vw, 2rem);
  /* So viele Schriftgrößen ist das Wort ANGEBOT lang: gemessen 5,83, dazu etwas Luft */
  --wort-k: 5.9;
}

/* Jedes große Wort hat seine Länge, gemessen in Schriftgrößen: quer mit etwas
   Luft, hochkant ohne den Abstand hinter dem letzten Buchstaben und um .2
   gekürzt, damit es oben und unten je ein Zehntel übersteht. */
.wort-angebot { --wort-k: 5.9; --wort-hoch: 5.55; }
.wort-aktuell { --wort-k: 5.44; --wort-hoch: 5.09; }
.wort-belege { --wort-k: 8.93; --wort-hoch: 8.58; }
.wort-konto { --wort-k: 7.77; --wort-hoch: 7.42; }
.wort-anmelden { --wort-k: 6.84; --wort-hoch: 6.49; }
.wort-rechnung { --wort-k: 6.83; --wort-hoch: 6.48; }
.wort-projekte { --wort-k: 6.27; --wort-hoch: 5.92; }
.wort-projekt { --wort-k: 5.52; --wort-hoch: 5.17; }
.wort-support { --wort-k: 5.74; --wort-hoch: 5.39; }
.wort-anfrage { --wort-k: 5.82; --wort-hoch: 5.47; }
/* Die Tür hat keine Leiste, das Wort reicht bis zum unteren Rand */
.seite-anmelden { --leiste: 0rem; }

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

html {
  font-size: clamp(100%, .35vw + .72rem, 118.75%);
  background: var(--grund);
  scrollbar-color: #4a5060 var(--grund);
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--leiste) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 1rem/1.7 var(--lauf);
  caret-color: var(--weiss);
  overflow-wrap: break-word;
}

::selection { background: var(--akzent); color: var(--tinte); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--weiss); }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
/* Was verborgen ist, bleibt es, auch wenn eine Klasse ihm eine Anzeige gibt */
[hidden] { display: none !important; }

.sym { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.unter { text-decoration: underline; text-underline-offset: .22em; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .7rem 1rem; background: var(--weiss);
  color: var(--tinte); border-radius: var(--haus-klein); }
.sprung:focus { top: 1rem; }
.sprung:hover { color: var(--tinte); }

/* ── Knöpfe ──────────────────────────────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .2rem 1.35rem 0;
  font: 600 .74rem/1 var(--kopf); letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--haus-klein); cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--zug);
}
.knopf .sym { margin-top: -.2rem; }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: .45; cursor: not-allowed; }
.knopf-hell { background: var(--weiss); color: var(--tinte); }
.knopf-hell:hover { background: #e8e8e8; color: var(--tinte); }
.knopf-leise { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf-leise:not([disabled]):hover { border-color: var(--weiss); color: var(--weiss); }
a.knopf-leise { color: var(--text); }
.knopf-dunkel { background: var(--tinte); color: var(--weiss); }
.knopf-dunkel:not([disabled]):hover { background: #2a3142; }
.textknopf { padding: .35rem 0; background: none; border: 0; color: inherit; font: 500 .8rem var(--lauf);
  text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.textknopf[disabled] { opacity: .6; text-decoration: none; cursor: default; }

/* ── Kopf ────────────────────────────────────────────────────────────────────
   Am Handy steht das Wort quer über dem Dokument, so breit wie der Bildschirm.
   Ab 60rem steht es hochkant am linken Rand (siehe unten). */
.kulisse { display: none; }
.kopfteil {
  --kopf-luft: clamp(1.75rem, 9vw, 3.25rem);
  display: grid; justify-items: end; gap: var(--kopf-luft);
  padding: 1.25rem var(--rand) 1.5rem;
  background-color: var(--tief); background-size: cover; background-position: 62% 40%;
}
.logo { width: clamp(8.5rem, 38vw, 12rem); }
.logo-heim { display: block; line-height: 0; }
.wort {
  justify-self: start;
  font: 800 min(calc((100vw - 2 * var(--rand)) / var(--wort-k)), 6.5rem)/.8 var(--lauf);
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--weiss); user-select: none;
}

/* Die Nummer des Belegs steht am Wort wie im Kopf des PDF: am Handy darunter,
   am Rechner hochkant daneben, vom Anfang des Wortes an. */
.wort-nummer { justify-self: start; margin-top: calc(.6rem - var(--kopf-luft));
  font: 600 clamp(1.05rem, 5vw, 1.45rem)/1 var(--kopf); letter-spacing: .16em; color: var(--weiss);
  font-variant-numeric: tabular-nums; white-space: nowrap; user-select: none; }


.titelblock { display: grid; gap: 1.1rem; margin-bottom: 2.25rem; }
/* Titelblatt eines Angebots: das Motiv rechts, der Titel links auf dem Dunkel. Am Handy liegt das Motiv als Band oben. */
.titelblatt { position: relative; isolation: isolate; overflow: hidden; gap: .7rem; padding: 9.5rem 1.4rem 1.4rem;
  border: 1px solid var(--linie-hell); border-radius: var(--haus); background: var(--tief); }
.titelblatt-bild { position: absolute; inset: -1rem -8% auto; height: 12rem; z-index: -2; background-size: cover; background-position: 0 0;
  transform: scaleX(-1) scale(1.02); }
.titelblatt::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0) 0, rgba(20, 24, 32, .1) 4rem, #141820 9rem); }
.titelblatt-art { font: 400 .68rem/1.4 var(--kopf); letter-spacing: .3em; text-transform: uppercase; color: var(--akzent); }
.titelblatt .kasten { margin-top: .9rem; padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--linie); border-radius: 0; }
/* Ein Titel, den der Kunde selbst geschrieben hat, ist ein Satz und kein Schlagwort */
.titel.titel-satz { font-size: clamp(1.2rem, 4.6vw, 1.7rem); line-height: 1.25; letter-spacing: .01em; text-transform: none; overflow-wrap: anywhere; }
.titel {
  font: 700 clamp(1.45rem, 5.6vw, 2.3rem)/1.14 var(--kopf);
  letter-spacing: .015em; text-transform: uppercase; color: var(--weiss);
  text-wrap: balance; hyphens: auto;
}
.kasten {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
  padding: 1.3rem clamp(1rem, 4.5vw, 1.5rem) 1.2rem;
  border: 1px solid var(--linie-hell); border-radius: var(--haus);
}
.kasten-kunde p { font: 700 clamp(.7rem, 3.1vw, .8rem)/1.85 var(--lauf); letter-spacing: .07em; text-transform: uppercase;
  color: var(--weiss); overflow-wrap: anywhere; hyphens: auto; }
.kasten-daten { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: .95rem; border-top: 1px solid var(--linie); }
.kasten-daten dt { font: 400 .6rem/1.5 var(--kopf); letter-spacing: .22em; text-transform: uppercase; color: var(--akzent); }
.kasten-daten dd { font: 600 .84rem/1.4 var(--lauf); color: var(--weiss); font-variant-numeric: tabular-nums; }

.vorspann { font-size: 1.05rem; line-height: 1.6; }
.zurueck { margin: -.6rem 0 1.4rem; }
.zurueck a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem;
  font: 600 .7rem/1 var(--kopf); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; color: var(--akzent); }
.zurueck a:hover { color: var(--weiss); }
.zurueck .sym { margin-top: -.15rem; transition: transform .35s var(--zug); }
.zurueck a:hover .sym { transform: translateX(-3px); }

/* ── Dokument ────────────────────────────────────────────────────────────── */
.dokument { max-width: 46rem; margin-inline: auto; padding: 2rem var(--rand) 3.5rem; }
.hinweis { margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--linie-hell);
  border-radius: var(--haus-klein); color: var(--weiss); }
.werkzeug { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.75rem; }

.text { margin-bottom: 2.75rem; }
.text h2, .freitext h3 { margin-bottom: .65rem; font: 700 1.12rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.luft { height: .95em; }
.punkte { margin: .15rem 0; padding: 0; list-style: none; }
.punkte li { position: relative; padding-left: 1.15em; }
.punkte li::before { content: ""; position: absolute; left: .1em; top: .78em; width: .45em; height: 1px; background: var(--akzent); }

.positionen { display: grid; gap: 1.1rem; margin-bottom: 3.25rem; }
.freitext { padding: .5rem .2rem; }
/* Was zum Angebot gehört und zählt, steht hell da: weiße Linie, leicht gehobener
   Grund. Was man erst dazunehmen oder wählen kann, bleibt dunkel und gestrichelt,
   bis es gewählt ist. */
.position {
  position: relative;
  padding: 1.9rem 1.55rem 1.5rem;
  border: 1px solid var(--weiss); border-radius: var(--haus); background: rgba(255, 255, 255, .035);
  /* Die Einrückung wechselt ohne Übergang: Mit ihr ändert sich die Breite, und der Text bräche bei jedem Bild neu um */
  transition: border-color .6s var(--zug), background-color .6s var(--zug);
}
.position.ist-optional { border-style: dashed; border-color: rgba(197, 199, 196, .42); background: none; }
/* Von zwei Varianten steht die, die nicht zählt, eingerückt. Wählt man sie,
   rückt sie in die Reihe und die andere hinaus. */
.position.ist-variante.ist-optional { margin-left: clamp(1.1rem, 5vw, 3.25rem); }
.position-alt { font-weight: 700; color: var(--weiss); }
/* Was noch nicht in der Summe steckt, sagt es laut: eine rote Marke auf der oberen Kante der Karte.
   Sie verschwindet, sobald die Position dazugenommen oder gewählt ist. */
.position-marke { display: none; position: absolute; top: 0; right: 1.9rem; transform: translateY(-50%);
  padding: .42rem .7rem .3rem; border-radius: var(--haus-klein); background: var(--marke); color: var(--weiss);
  font: 700 .6rem/1.2 var(--kopf); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.position.ist-optional .position-marke { display: block; }
.position-nr { margin-bottom: .6rem; font: 400 .64rem/1.4 var(--kopf); letter-spacing: .26em; text-transform: uppercase; color: var(--akzent); }
.position-titel { margin-bottom: .95rem; font: 700 1.06rem/1.38 var(--kopf); letter-spacing: .075em; text-transform: uppercase;
  color: var(--weiss); hyphens: auto; }
.position-text { font-size: .92rem; line-height: 1.66; }
/* Gekürzt auf gut drei Zeilen (Zeilenhöhe 1.66): zwei stehen klar da, die dritte läuft aus */
.position-text.ist-lang:not(.ist-offen) { max-height: 5.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 56%, transparent); mask-image: linear-gradient(#000 56%, transparent); }
/* Auch ein Textknopf ist ein Ziel für den Finger */
.position-mehr { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .1rem; }
.position-rabatt { margin-top: 1rem; font-size: .8rem; text-align: right; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.position-fuss { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.15rem;
  font-weight: 700; color: var(--weiss); font-variant-numeric: tabular-nums; }
.position-rabatt + .position-fuss { margin-top: .35rem; }
.position-preis { text-align: right; }

.wahl { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  min-height: 3rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); cursor: pointer; }
.wahl-text { font-size: .84rem; line-height: 1.5; color: var(--text-leise); }
.wahl-feld { position: absolute; right: 0; bottom: 0; width: 3.4rem; height: 2rem; margin: 0; opacity: 0; cursor: pointer; }
.wahl-feld[disabled] { cursor: not-allowed; }
.wahl-schalter { position: relative; width: 3.4rem; height: 2rem; border: 1px solid var(--akzent);
  border-radius: 1rem 1rem 1rem 0; transition: background-color .35s var(--zug), border-color .35s; }
.wahl-schalter::after { content: ""; position: absolute; left: .28rem; top: .28rem; width: 1.32rem; height: 1.32rem;
  border-radius: 50%; background: var(--weiss); transition: transform .45s var(--zug), background-color .35s; }
.wahl-feld:checked + .wahl-schalter { background: var(--weiss); border-color: var(--weiss); }
.wahl-feld:checked + .wahl-schalter::after { transform: translateX(1.4rem); background: var(--tinte); }
.wahl-feld:focus-visible + .wahl-schalter { outline: 2px solid var(--fokus); outline-offset: 3px; }
.wahl-feld[disabled] + .wahl-schalter { opacity: .45; }
.wahl-fehler { grid-column: 1 / -1; font-size: .82rem; color: var(--fehler); }
/* Zahlweisen in der Karte (15.11.2026): Auswahlfelder wie bei der Anfrage statt des Schalters */
.wahl-zahlweise { grid-template-columns: 1fr; gap: .6rem; cursor: default; }
.auswahl-feld input.wahl-zw { position: static; width: 1.15rem; height: 1.15rem; opacity: 1; }

/* ── Bilder an einer Position ────────────────────────────────────────────── */
.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .6rem;
  margin: 1.1rem 0 0; padding: 0; list-style: none; }
.bilder a { display: block; overflow: hidden; border: 1px solid var(--linie); border-radius: var(--haus-klein);
  transition: border-color .25s; }
.bilder a:hover, .bilder a:focus-visible { border-color: var(--weiss); }
.bilder img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bildschau { max-width: min(96vw, 72rem); max-height: 94vh; padding: 0; border: 1px solid var(--linie-hell);
  border-radius: var(--haus-klein); background: var(--tief); color: var(--text); overflow: hidden; }
.bildschau::backdrop, .agb-frage::backdrop { background: rgba(10, 12, 17, .86); }
/* Neue AGB-Fassung: dasselbe Fenster wie die Bildschau. Oben die Frage, in der Mitte der Wortlaut zum Durchlesen,
   unten die Knöpfe; nur die Mitte rollt. */
.agb-frage { width: min(94vw, 44rem); max-height: min(90dvh, 56rem); padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--linie-hell); border-radius: var(--haus); background: var(--tief); color: var(--text); }
.agb-frage[open] { display: flex; flex-direction: column; }
.agb-frage h2 { margin-bottom: .7rem; font: 700 1.12rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.agb-frage > p { margin-bottom: .9rem; line-height: 1.6; }
.agb-wortlaut { flex: 1 1 auto; min-height: 9rem; overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem 1.1rem; border: 1px solid var(--linie); border-radius: var(--haus-klein);
  font-size: .84rem; line-height: 1.6; }
.agb-wortlaut:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.agb-wortlaut p { margin-bottom: .7rem; }
.agb-wortlaut h3 { margin: 1.6rem 0 .6rem; font: 700 1rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.agb-wortlaut h4 { margin: 1.2rem 0 .45rem; font: 600 .88rem/1.4 var(--lauf); color: var(--weiss); }
.agb-wortlaut strong { color: var(--weiss); font-weight: 600; }
.agb-laedt { color: var(--text-leise); }
.agb-frage-fehler[hidden] { display: none; }
.agb-frage > .agb-frage-fehler { margin: .8rem 0 0; color: var(--fehler); }
.agb-frage .knopfzeile { margin-top: 1.1rem; }
@media (max-width: 41.99rem) {
  .agb-frage { padding: 1.2rem 1rem 1rem; max-height: 94dvh; }
  .agb-wortlaut { padding: .8rem .85rem; }
}
.bildschau img { display: block; max-width: 100%; max-height: 82vh; margin-inline: auto; }
.bildschau-fuss { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem .7rem; }
.bildschau-fuss p { font-size: .88rem; }
.bildschau .textknopf { min-height: 2.75rem; padding-inline: .4rem; }
.bildschau-buehne { position: relative; background: var(--tief); touch-action: pan-y; }
.bildschau-buehne img { transition: opacity .15s; }
.bildschau-buehne img.laedt { opacity: .25; }
.bildschau-pfeil { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center;
  width: 3rem; height: 3rem; padding: 0; border: 1px solid var(--linie-hell); border-radius: 50%;
  background: rgba(20, 24, 32, .72); color: var(--weiss); cursor: pointer; transition: background .2s, border-color .2s; }
.bildschau-pfeil:hover, .bildschau-pfeil:focus-visible { background: rgba(20, 24, 32, .94); border-color: var(--weiss); }
.bildschau-pfeil svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.bildschau-zurueck { left: .75rem; }
.bildschau-weiter { right: .75rem; }
.bildschau-pfeil[hidden], .bildschau-laden[hidden] { display: none; }
.bildschau-text { display: grid; gap: .1rem; min-width: 0; }
.bildschau-text p { margin: 0; overflow-wrap: anywhere; }
.bildschau-zahl { color: var(--text-leise); font-size: .8rem; }
.bildschau-knoepfe { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: flex-end; }
.bildschau-laden { color: var(--text); }
@media (max-width: 41.99rem) {
  .bildschau { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; border-inline: 0; }
  .bildschau img { max-height: 74dvh; }
  .bildschau-pfeil { width: 2.75rem; height: 2.75rem; }
  .bildschau-zurueck { left: .4rem; }
  .bildschau-weiter { right: .4rem; }
}

/* ── Fragen und Anmerkungen ──────────────────────────────────────────────── */
.frage { margin-top: 1.1rem; padding-top: .5rem; border-top: 1px solid var(--linie); }
.frage summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; list-style: none;
  font-size: .84rem; color: var(--text-leise); text-decoration: underline; text-underline-offset: .22em; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary:hover, .frage[open] summary { color: var(--weiss); }
/* Das Gespräch zum ganzen Angebot hat seinen eigenen Raum: dunkler als das Blatt, mit heller Linie */
.fragen { margin-bottom: 3.25rem; padding: 1.6rem 1.25rem 1.5rem; border: 1px solid var(--linie-hell);
  border-radius: var(--haus); background: var(--tief); }
.fragen h2 { margin-bottom: .65rem; font: 700 1.12rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.fragen > p { margin-bottom: 1.1rem; }
/* Der Verlauf hat eine feste Höhe und rollt in sich, sonst schiebt ein langes
   Gespräch das Angebot auseinander. Das Skript stellt ihn auf die neueste Nachricht. */
.verlauf { display: grid; gap: .8rem; margin: .6rem 0 1.4rem; padding: .15rem .55rem .15rem 0; list-style: none;
  max-height: min(55vh, 26rem); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #5a6172 transparent; }
.verlauf:focus-visible { outline: 2px solid var(--fokus); outline-offset: 4px; }
/* Eine Antwort von Lars steht auf Weiß, wie alles, was zählt, mit seinem Bild
   daneben und der spitzen Ecke zu ihm hin. Was der Kunde schrieb, steht rechts
   auf Dunkel mit heller Linie und spiegelt die Form. */
.nachricht { position: relative; justify-self: start; max-width: min(100% - 2.9rem, 38rem); margin-left: 2.9rem;
  padding: .75rem 1.05rem .85rem; border-radius: 14px 14px 14px 0; background: var(--weiss); color: var(--tinte); }
.nachricht::before { content: ""; position: absolute; left: -2.9rem; bottom: 0; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; border: 1px solid var(--akzent); background: var(--tief) url(bild/lars-brinkmann.webp) 50% 20% / cover; }
.nachricht-kunde { justify-self: end; max-width: min(100%, 38rem); margin-left: 0; border: 1px solid var(--linie-hell);
  border-radius: 14px 14px 0 14px; background: rgba(255, 255, 255, .09); color: var(--weiss); }
.nachricht-kunde::before { content: none; }
.nachricht-kopf { font: 400 .6rem/1.6 var(--kopf); letter-spacing: .18em; text-transform: uppercase; color: var(--tinte-leise); }
.nachricht-zu { font-size: .78rem; color: var(--tinte-leise); }
.nachricht-text { font-size: .95rem; line-height: 1.6; white-space: pre-line; }
/* Eine lange Adresse bricht um, statt die Seite am Handy zu verbreitern */
.nachricht-text a, .eintrag-text a { overflow-wrap: anywhere; }
/* Beim Überfahren wird ein Link kräftiger unterstrichen. Auf der weißen Blase von Lars bleibt er dunkel: Die
   allgemeine Regel färbte ihn weiß, und er verschwand auf dem Weiß (Lars, 31.10.2026). */
.nachricht-text a:hover { text-decoration-thickness: 2px; }
.nachricht:not(.nachricht-kunde) .nachricht-text a:hover { color: var(--tinte); }
.nachricht-kunde .nachricht-kopf { color: var(--akzent); }
.nachricht-kunde .nachricht-zu { color: var(--text-leise); }
.nachricht ::selection { background: var(--tinte); color: var(--weiss); }
.nachricht-kunde ::selection { background: var(--akzent); color: var(--tinte); }
.nachricht-form { display: grid; gap: .55rem; }
.nachricht-form label { font-size: .84rem; color: var(--text-leise); }
.nachricht-form textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--linie-hell); border-radius: var(--haus-klein);
  background: transparent; color: var(--weiss); font: 400 .95rem/1.5 var(--lauf); resize: vertical; }
.nachricht-form textarea:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.nachricht-form .knopf { justify-self: start; }
/* Der Hinweis auf die Tasten nur dort, wo es eine Tastatur mit Umschalttaste gibt */
.nachricht-hilfe { display: none; font-size: .76rem; color: var(--text-leise); }
@media (hover: hover) and (pointer: fine) { .nachricht-hilfe { display: block; } }
.nachricht-fehler { font-size: .84rem; color: var(--fehler); }

/* ── Anfragen ────────────────────────────────────────────────────────────── */
/* Der Auftritt: Titel und ein Satz zur Seite, auf der Support-Seite dazu der Knopf. Am Handy ist er
   nur eine Klammer, dort trägt der Kopf mit dem großen Wort das Bild. Am Rechner siehe unten. */
.auftritt .titelblock:has(+ .knopf) { margin-bottom: 1.4rem; }
.auftritt > .knopf { margin-bottom: 3rem; }
/* Auf den drei Listen sagt unterhalb von 60rem schon das große Wort im Kopf, wo man ist:
   Die Überschrift bleibt dort für alle, die es nicht sehen. */
@media (max-width: 59.99rem) {
  .auftritt-liste .titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Auf der Seite einer Anfrage ist der Verlauf die Seite: Er steht in voller Länge da */
.verlauf-offen { max-height: none; overflow: visible; padding-right: 0; }
.anhaenge { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .1rem; padding: 0; list-style: none; }
.anhang-bild { display: block; line-height: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--linie-hell); }
.anhang-bild img { display: block; width: auto; height: 6.5rem; max-width: 100%; object-fit: cover; }
.anhang-datei { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .2rem .8rem;
  border: 1px solid currentColor; border-radius: 8px; font-size: .84rem; text-decoration: none; color: inherit; }
.anhang-datei .sym { flex: none; }
.anhang-name { overflow-wrap: anywhere; }
.anhang-meta { flex: none; font-size: .76rem; opacity: .7; }
.nachricht .anhang-datei:hover { background: var(--tinte); color: var(--weiss); }
.nachricht-kunde .anhang-datei:hover { background: var(--weiss); color: var(--tinte); }

.anfrage-form { display: grid; gap: 2rem; margin-bottom: 3.25rem; }
.anfrage-form > .knopf { justify-self: start; min-height: 3.4rem; padding-inline: 1.8rem; }
.auswahl { margin: 0; padding: 0; border: 0; min-width: 0; }
.auswahl legend, .schreibfeld label { display: block; margin-bottom: .7rem; padding: 0; font: 700 1.12rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.auswahl-felder { display: grid; gap: .5rem; }
.auswahl-feld { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 3.25rem; padding: .5rem 1rem;
  border: 1px solid var(--linie-hell); border-radius: var(--haus-klein); cursor: pointer; transition: border-color .25s, background-color .25s; }
.auswahl-feld input { flex: none; appearance: none; width: 1.15rem; height: 1.15rem; margin: 0; border: 1px solid var(--akzent); border-radius: 50%;
  background: transparent; cursor: pointer; }
.auswahl-feld input:checked { border: .36rem solid var(--weiss); }
.auswahl-feld input:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }
.auswahl-feld:hover { border-color: var(--weiss); }
.auswahl-feld:has(input:checked) { border-color: var(--weiss); background: rgba(255, 255, 255, .07); color: var(--weiss); }
.schreibfeld textarea { width: 100%; padding: .8rem .95rem; border: 1px solid var(--linie-hell); border-radius: var(--haus-klein);
  background: transparent; color: var(--weiss); font: 400 1rem/1.55 var(--lauf); resize: vertical; }
.schreibfeld textarea:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.feld-hilfe { display: block; margin-top: .5rem; font-size: .82rem; line-height: 1.5; font-weight: 400; color: var(--text-leise); }
.anhangfeld { display: grid; justify-items: start; }
/* Das Feld selbst ist unsichtbar, sein Knopf ist die Beschriftung. Mit der Tastatur bleibt es erreichbar. */
.anhang-wahl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.anhang-wahl:focus-visible + .knopf { outline: 2px solid var(--fokus); outline-offset: 3px; }
.anhang-liste { display: grid; gap: .4rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.anhang-liste:not(:empty) { margin-top: 1rem; }
.anhang-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .2rem 1rem;
  padding: .45rem .5rem .45rem .9rem; border: 1px solid var(--linie); border-radius: var(--haus-klein); font-size: .88rem; }
.anhang-liste .anhang-name { color: var(--weiss); }
.anhang-liste .anhang-stand { grid-column: 1; font-size: .78rem; color: var(--text-leise); }
.anhang-liste .ist-fehler .anhang-stand { color: var(--fehler); }
.anhang-liste button { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: none; border: 0; color: var(--akzent); cursor: pointer; }
.anhang-liste button:hover { color: var(--weiss); }
/* ── Konto: Kontaktdaten und Benachrichtigungen ──────────────────────────── */
.klappe > summary { display: inline-flex; align-items: center; min-height: 3rem; padding: .2rem 1.35rem 0; cursor: pointer; list-style: none;
  border: 1px solid var(--linie); border-radius: var(--haus-klein);
  font: 600 .74rem/1 var(--kopf); letter-spacing: .13em; text-transform: uppercase; color: var(--text); }
.klappe > summary::-webkit-details-marker { display: none; }
.klappe > summary:hover, .klappe[open] > summary { border-color: var(--weiss); color: var(--weiss); }
.antrag-form { display: grid; gap: 1.2rem; max-width: 30rem; margin-top: 1.5rem; }
.antrag-form .schreibfeld label { margin-bottom: .4rem; font: 400 .84rem/1.4 var(--lauf); letter-spacing: 0; color: var(--text-leise); }
.schreibfeld input { width: 100%; min-height: 3rem; padding: .6rem .95rem; border: 1px solid var(--linie-hell); border-radius: var(--haus-klein);
  background: transparent; color: var(--weiss); font: 400 1rem/1.4 var(--lauf); }
.schreibfeld input:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.antrag-form .knopf { justify-self: start; }
.antrag-breit { max-width: none; }
/* Knöpfe nebeneinander, darunter klappt das Formular des gedrückten auf */
.knopfzeile { display: flex; flex-wrap: wrap; gap: .6rem; }
.knopfzeile .knopf-leise[aria-expanded="true"] { border-color: var(--weiss); color: var(--weiss); }
.knopfzeile .knopf-hell[aria-expanded="true"] { background: #e8e8e8; }
.mailwahl { border-top: 1px solid var(--linie); }
.mailwahl-reihe { display: grid; gap: .75rem; margin: 0; padding: 1.1rem .25rem 1.2rem; border: 0; border-bottom: 1px solid var(--linie); min-width: 0; }
.mailwahl-reihe legend { display: contents; }
.mailwahl-titel { display: block; font: 600 1rem/1.4 var(--lauf); color: var(--weiss); }
.mailwahl-wann { display: block; font-size: .84rem; color: var(--text-leise); }
.mailwahl-felder { display: flex; flex-wrap: wrap; gap: .45rem; }
.mailwahl-felder label { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .1rem 1rem 0;
  border: 1px solid var(--linie); border-radius: var(--haus-klein); font-size: .88rem; cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s; }
.mailwahl-felder input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.mailwahl-felder label:hover { border-color: var(--weiss); }
.mailwahl-felder label:has(input:checked) { background: var(--weiss); border-color: var(--weiss); color: var(--tinte); font-weight: 600; }
.mailwahl-felder label:has(input:focus-visible) { outline: 2px solid var(--fokus); outline-offset: 3px; }
.abschnitt-stand { min-height: 1.5rem; margin-top: .8rem; font-size: .84rem; color: var(--weiss); }
@media (min-width: 40rem) {
  .mailwahl-reihe { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.5rem; }
  .mailwahl-titel, .mailwahl-wann { grid-column: 1; }
  .mailwahl-felder { grid-column: 2; grid-row: 1 / span 2; }
}

/* Der Hinweis auf der Startseite, solange der Vertrag über Auftragsverarbeitung wartet */
.vertragshinweis { display: grid; gap: 1.1rem; margin-bottom: 2.25rem; padding: 1.4rem 1.5rem; border: 1px solid var(--weiss);
  border-radius: var(--haus); background: rgba(255, 255, 255, .035); }
.vertragshinweis h2 { margin-bottom: .45rem; font: 700 1.06rem/1.35 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.vertragshinweis p { font-size: .92rem; line-height: 1.6; }
.vertragshinweis .knopf { justify-self: start; }

/* Vorschau aus dem ERP: ein Balken ganz oben, der sich nicht übersehen lässt */
.vorschau-balken { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: .3rem 1.2rem; padding: .65rem 1rem; background: var(--weiss); color: var(--tinte);
  font-size: .85rem; line-height: 1.45; text-align: center; }
.vorschau-balken a { color: var(--tinte); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

/* ── Vertragstext ────────────────────────────────────────────────────────── */
.vertrag { margin-bottom: 3.25rem; font-size: .92rem; line-height: 1.66; }
.vertrag h2 { margin: 2.1rem 0 .7rem; font: 700 1.12rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.vertrag h2:first-child, .vertrag h2.vertrag-anlage { margin-top: 0; }
.vertrag h3 { margin: 1.5rem 0 .5rem; font: 600 .95rem/1.4 var(--lauf); color: var(--weiss); }
.vertrag p { margin-bottom: .7rem; }
.vertrag .punkte { margin-bottom: .9rem; }
.vertrag .punkte li { margin-bottom: .35rem; }
.klausel-nr { font-weight: 600; color: var(--weiss); font-variant-numeric: tabular-nums; }
.vertrag-parteien { display: grid; gap: 1.4rem; margin-bottom: 1.6rem; padding: 1.3rem 1.4rem; border: 1px solid var(--linie);
  border-radius: var(--haus); }
.vertrag-parteien p { margin: 0; }
.vertrag-rolle { font: 400 .6rem/1.8 var(--kopf); letter-spacing: .22em; text-transform: uppercase; color: var(--akzent); }
.vertrag-name { font-weight: 600; color: var(--weiss); }
/* Schmal steht jede Zeile der Tabelle als Block da, mit der Spaltenüberschrift vor jedem Wert */
.vertragstabelle { width: 100%; margin: .6rem 0 1.4rem; border-collapse: collapse; font-size: .86rem; line-height: 1.55; }
.vertragstabelle thead { display: none; }
.vertragstabelle tr { display: block; padding: .8rem 0; border-top: 1px solid var(--linie); }
.vertragstabelle td { display: block; padding: 0 0 .5rem; hyphens: auto; overflow-wrap: break-word; }
.vertragstabelle td::before { content: attr(data-kopf); display: block; font: 400 .58rem/1.9 var(--kopf); letter-spacing: .2em;
  text-transform: uppercase; color: var(--akzent); }
.vertragstabelle td:first-child { font-weight: 600; color: var(--weiss); }

/* Ein Haken auf dunklem Grund. Der im Annahmeformular (.haken) steht auf Papier und sieht anders aus. */
.ankreuz { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; cursor: pointer; }
.ankreuz input { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--weiss); color-scheme: dark; cursor: pointer; }
.ankreuz input:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }
.ankreuz strong { color: var(--weiss); }
.ankreuz .feld-hilfe { margin-top: .15rem; }

/* ── Summen: weiße Boxen wie im PDF ──────────────────────────────────────── */
.summen { display: grid; gap: 2rem 1.5rem; margin-bottom: 3.25rem; }
.summe-titel { margin-bottom: .7rem; font: 700 1.05rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.summe-box { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1.05rem 1.15rem .95rem; background: var(--weiss); color: var(--tinte); border-radius: 12px 12px 12px 0; }
.summe-was { font: 400 .68rem/1.5 var(--kopf); letter-spacing: .22em; text-transform: uppercase; }
.summe-was span { display: block; font-size: .6rem; color: var(--tinte-leise); }
.summe-betrag { font: 700 1.4rem/1.15 var(--kopf); text-align: right; }
.summe-zusatz { display: block; font: 400 .68rem/1.6 var(--lauf); color: var(--tinte-leise); }
.summe-rest { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.1rem; margin: .8rem 1.15rem 0; font-size: .86rem; }
.summe-rest dt { text-align: right; }
.summe-rest dt span { font-size: .72rem; color: var(--text-leise); }
.summe-rest dd { text-align: right; font-weight: 600; color: var(--weiss); }
.summe-rest .summe-zusatz { font-weight: 400; color: var(--text-leise); }

/* ── Annahme: ein weißes Blatt im dunklen Dokument ───────────────────────── */
.annahme { margin-bottom: 3.25rem; padding: 2rem 1.55rem 1.7rem; background: var(--weiss); color: var(--tinte);
  border-radius: var(--haus); caret-color: var(--tinte); color-scheme: light; }
.annahme ::selection { background: var(--tinte); color: var(--weiss); }
.annahme :focus-visible { outline-color: var(--fokus-papier); }
.annahme a:hover { color: var(--tinte); }
/* Vor der Annahme: das Angebot mit der eigenen Auswahl zum Speichern (AGB 1.4.8) */
.annahme-speichern { margin: -.4rem 0 1.4rem; font-size: .9rem; }
.annahme-speichern a { display: inline-flex; align-items: center; gap: .45rem; }
.annahme h2 { margin-bottom: .9rem; font: 400 .7rem/1.4 var(--kopf); letter-spacing: .24em; text-transform: uppercase; color: var(--tinte-leise); }
.feld { margin-top: 1.35rem; }
.feld label, .unterschrift-kopf > span { display: block; font: 400 .64rem/1.5 var(--kopf); letter-spacing: .2em;
  text-transform: uppercase; color: var(--tinte-leise); }
.feld input { width: 100%; min-height: 2.75rem; padding: .5rem 0 .45rem; border: 0; border-bottom: 1px solid var(--tinte); border-radius: 0;
  background: transparent; color: var(--tinte); font: 500 1rem/1.4 var(--lauf); }
.feld input:focus-visible { outline: 0; border-bottom-width: 2px; padding-bottom: calc(.45rem - 1px); border-color: var(--fokus-papier); }
.unterschrift { margin-top: 1.6rem; }
.unterschrift-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 1.9rem; }
.unterschrift-flaeche { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--tinte);
  touch-action: none; cursor: crosshair; }
.unterschrift-hilfe { margin-top: .4rem; font-size: .78rem; color: var(--tinte-leise); }
.haken { display: grid; grid-template-columns: auto 1fr; gap: .8rem; margin-top: 1.15rem; font-size: .88rem; line-height: 1.5; cursor: pointer; }
.haken input { width: 1.35rem; height: 1.35rem; margin: .05rem 0 0; accent-color: var(--tinte); }
.annahme .knopf-dunkel { width: 100%; min-height: 3.4rem; margin-top: 1.7rem; }
.annahme-entwurf { margin-top: .8rem; font-size: .78rem; color: var(--tinte-leise); }
.annahme-fehler { margin-top: 1.1rem; padding: .7rem .9rem; border: 1px solid var(--fehler-papier); border-radius: var(--haus-klein);
  font-size: .88rem; color: var(--fehler-papier); }
.annahme-umfang { margin-top: 1.4rem; }
.umfang { display: grid; gap: .7rem; padding-top: 1.1rem; border-top: 1px solid rgba(25, 30, 40, .18); }
.umfang dt { font: 400 .62rem/1.5 var(--kopf); letter-spacing: .2em; text-transform: uppercase; color: var(--tinte-leise); }
.umfang dd { font-size: .9rem; line-height: 1.5; }
.umfang .zahl { font-weight: 700; }
.unterschrift-bild { display: block; width: 100%; height: auto; margin-bottom: .4rem; border-bottom: 1px solid var(--tinte);
  fill: none; stroke: var(--tinte); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ablehnen { margin-top: 1.8rem; font-size: .86rem; }
.ablehnen summary { display: inline-block; min-height: 2.75rem; padding: .7rem 0; cursor: pointer; color: var(--tinte-leise);
  text-decoration: underline; text-underline-offset: .22em; list-style: none; }
.ablehnen summary::-webkit-details-marker { display: none; }
.ablehnen label { display: block; margin-bottom: .45rem; }
.ablehnen textarea, .annahme-form textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--tinte); border-radius: var(--haus-klein);
  background: transparent; color: var(--tinte); font: 400 .95rem/1.5 var(--lauf); resize: vertical; }
.ablehnen textarea:focus-visible, .annahme-form textarea:focus-visible { outline: 2px solid var(--fokus-papier); outline-offset: 2px; }
.knopf-papier { margin-top: .9rem; background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf-papier:hover { background: var(--tinte); color: var(--weiss); }
a.knopf-dunkel, a.knopf-dunkel:hover { color: var(--weiss); }

/* ── Seiten für Angemeldete: Listen statt Karten ─────────────────────────────
   Eine Zeile je Angebot oder Gerät, getrennt durch die hauchdünne Linie. Das
   weiße Blatt bleibt dem vorbehalten, was auf eine Entscheidung wartet. */
.abschnitt { margin-bottom: 3.25rem; }
.abschnitt h2 { margin-bottom: .7rem; font: 700 1.12rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.reihen { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.reihen > li { border-bottom: 1px solid var(--linie); }
.reihe { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem 1rem;
  min-height: 4.5rem; padding: 1rem .25rem; color: inherit; text-decoration: none; }
/* Kein Kasten hinter der Zeile: Der Pfeil rückt vor, die Nebenzeile wird heller */
a.reihe:hover { color: inherit; }
a.reihe:hover .reihe-meta { color: var(--text); }
.reihe-haupt { display: grid; gap: .15rem; }
.reihe-titel { font: 600 1rem/1.4 var(--lauf); color: var(--weiss); hyphens: auto; }
.reihe-meta { font-size: .8rem; line-height: 1.5; color: var(--text-leise); transition: color .35s var(--zug); }
.reihe-wert { grid-column: 1; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; font-size: .8rem; color: var(--text-leise); }
.reihe-wert .zahl { font-weight: 700; font-size: .92rem; color: var(--weiss); }
.reihe > .sym { grid-column: 2; grid-row: 1 / span 2; color: var(--akzent); transition: transform .35s var(--zug); }
a.reihe:hover > .sym { transform: translateX(6px); color: var(--weiss); }
.reihe-geraet .knopf { min-height: 2.75rem; padding-inline: 1rem; }
.reihe-dringend { font-weight: 700; color: var(--weiss); }
/* Ampel am Stand: Rot heißt, der Kunde ist dran oder im Verzug. Gelb ruht oder ist offen, Grün läuft oder ist erledigt */
.ampel { display: inline-block; width: .6rem; height: .6rem; margin-right: .5rem; border-radius: 50%; background: var(--text-leise);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ampel[hidden] { display: none; }
.ampel-rot { background: var(--fehler); }
.ampel-gelb { background: #f0b849; }
.ampel-gruen { background: #4cc38a; }
.ampel-grau { background: #6f7682; }

/* ── Projekt: was zuletzt geschah, Dateien, Stunden ──────────────────────── */
.verlauf-projekt { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.verlauf-projekt > li { display: grid; gap: .3rem; padding: 1.1rem .25rem 1.2rem; border-bottom: 1px solid var(--linie); }
.eintrag-tag { font: 400 .62rem/1.5 var(--kopf); letter-spacing: .2em; text-transform: uppercase; color: var(--akzent); }
.eintrag-stand { font: 700 .95rem/1.4 var(--lauf); color: var(--weiss); }
.eintrag-text { white-space: pre-line; }
.monat { border-bottom: 1px solid var(--linie); }
.monat:first-of-type { border-top: 1px solid var(--linie); }
.monat-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .2rem 1.5rem; padding: 1.05rem .25rem .3rem; }
.monat-kopf h3 { font: 600 1rem/1.4 var(--lauf); color: var(--weiss); }
.monat-summe { font: 700 1rem/1.4 var(--lauf); color: var(--weiss); font-variant-numeric: tabular-nums; }
.monat-kontingent { grid-column: 1 / -1; font-size: .84rem; color: var(--text); }
/* Wie viel vom Kontingent genutzt ist: eine dünne Linie, ihr Wert kommt aus dem Element selbst */
.monat-mass { grid-column: 1 / -1; display: block; width: 100%; height: .3rem; margin-top: .25rem; border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .14); appearance: none; overflow: hidden; }
.monat-mass::-webkit-progress-bar { background: rgba(255, 255, 255, .14); }
.monat-mass::-webkit-progress-value { background: var(--weiss); }
.monat-mass::-moz-progress-bar { background: var(--weiss); }
.monat details { padding: 0 .25rem .9rem; }
/* Der Auftrag steht über den Monaten und klappt nichts auf: unten eigener Abstand */
.monat-auftrag .monat-kopf { padding-bottom: 1.05rem; }
.monat summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; list-style: none;
  font-size: .84rem; color: var(--text-leise); text-decoration: underline; text-underline-offset: .22em; }
.monat summary::-webkit-details-marker { display: none; }
.monat summary:hover, .monat details[open] summary { color: var(--weiss); }
.zeiten { width: 100%; margin: .2rem 0 .9rem; border-collapse: collapse; font-size: .9rem; }
.zeiten th { padding: .3rem .6rem .45rem 0; font: 400 .6rem/1.5 var(--kopf); letter-spacing: .2em; text-transform: uppercase;
  text-align: left; color: var(--akzent); border-bottom: 1px solid var(--linie-hell); }
.zeiten td { padding: .55rem .6rem .55rem 0; vertical-align: top; border-bottom: 1px solid var(--linie); }
.zeiten td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.zeiten th:last-child, .zeiten td:last-child { padding-right: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zeiten td:nth-child(2) { color: var(--weiss); overflow-wrap: anywhere; }
/* Wie bezahlt wird: Angaben zum Abschreiben, die Kontonummer lässt sich mit einem Tippen ganz markieren */
.zahlweg dd { overflow-wrap: anywhere; }
.zahlweg .zum-kopieren { user-select: all; font-variant-numeric: tabular-nums; }
.annahme.zahlweg h2 { margin-bottom: .45rem; font: 700 1.28rem/1.25 var(--kopf); letter-spacing: .04em; text-transform: uppercase;
  color: var(--tinte); text-wrap: balance; }
.annahme.zahlweg > p { font: 400 .95rem/1.55 var(--lauf); color: var(--tinte); }
.annahme.zahlweg .umfang { margin-top: 1.3rem; }
/* GiroCode: am Handy unter den Kontodaten, am Rechner links unter dem Satz */
.girocode { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.7rem; }
.girocode svg { flex: none; }
.girocode p { font: 400 .8rem/1.5 var(--lauf); color: var(--tinte-leise); }
.girocode span { display: block; margin-bottom: .25rem; font: 400 .62rem/1.5 var(--kopf); letter-spacing: .2em; text-transform: uppercase; }
.abschnitt-hinweis { margin: 1.1rem 0 1.5rem; font-size: .88rem; color: var(--text-leise); }
/* Der Rabattstand bei „Wirb einen Kunden“: der eine Satz, um den es auf der Seite geht */
.empfehlung-stand { margin: 1.1rem 0 0; font-size: 1.12rem; line-height: 1.55; color: var(--weiss); }
/* Ältere Wartungsprotokolle hinter einem Aufklapper */
.aeltere { margin-top: 1.2rem; }
.aeltere .reihen { margin-top: .9rem; }
.abschnitt-fehler { margin-top: 1rem; font-size: .88rem; color: var(--fehler); }

/* ── Startseite: jedes Thema in seiner Kachel ────────────────────────────────
   Leise gehalten, nur eine dünne Linie: Das offene Angebot darüber bleibt das
   Lauteste auf der Seite. Nebeneinander, so viele die Breite hergibt. */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: 1rem; margin-bottom: 3.25rem; }
/* Vier Kacheln stehen als zwei Paare, nie als drei und eine. Die breite Kachel am Ende zählt nicht mit. */
.kacheln:has(> :nth-child(4):last-child:not(.kachel-breit)),
.kacheln:has(> :nth-child(5).kachel-breit:last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.kachel { display: grid; grid-template-rows: auto 1fr; align-content: start; min-width: 0; padding: 1.35rem 1.3rem 1.1rem;
  border: 1px solid var(--linie); border-radius: var(--haus); }
.kachel h2 { margin-bottom: .7rem; font: 700 1.12rem/1.3 var(--kopf); letter-spacing: .02em; color: var(--weiss); }
.kachel .reihen { align-self: start; }
.kachel .reihen > li:last-child { border-bottom: 0; }
/* In der Kachel steht der Wert immer unter dem Text, auch am Rechner: Sie ist schmal */
.kachel .reihe { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .75rem; padding-inline: 0; }
.kachel .reihe-wert { grid-column: 1; display: flex; justify-items: start; }
.kachel .reihe > .sym { grid-column: 2; grid-row: 1 / span 2; }
.kachel > p { align-self: start; margin-bottom: 1.2rem; font-size: .88rem; line-height: 1.6; color: var(--text-leise); }
.kachel > .knopf { justify-self: start; align-self: end; margin-bottom: .25rem; }
/* Wirb einen Kunden: der Link zum Kopieren und die Wege zum Teilen */
.empfehlung-link { display: flex; gap: .5rem; min-width: 0; margin-bottom: .8rem; }
.empfehlung-link input { flex: 1; min-width: 0; min-height: 2.75rem; padding: .5rem .8rem; border: 1px solid var(--linie-hell);
  border-radius: var(--haus-klein); background: transparent; color: var(--weiss); font: 400 .84rem/1.4 var(--lauf); }
.empfehlung-link input:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.empfehlung-teilen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: 1.2rem; }
.empfehlung-mehr { font-size: .88rem; color: var(--weiss); }
/* Wirb einen Kunden steht als Letztes in einer eigenen Zeile. Am Rechner links der Text, rechts Link und Teilen. */
.kachel-breit { grid-column: 1 / -1; }
/* Beide Seiten senkrecht mittig (Lars, 01.11.2026): Die leeren Zeilen oben und unten nehmen auf, was die höhere
   Seite mehr braucht. Ohne Abstand unter dem letzten Absatz, sonst säße alles zu hoch. */
@media (min-width: 60rem) {
  .kachel-breit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
    column-gap: 3rem; padding-bottom: 1.35rem; }
  .kachel-breit > h2 { grid-area: 2 / 1; }
  .kachel-breit > p { grid-area: 3 / 1; margin-bottom: 0; }
  .kachel-breit > .empfehlung-wege { grid-area: 1 / 2 / 5 / 3; align-self: center; }
  .kachel-breit .empfehlung-teilen { margin-bottom: 0; }
}
/* Wirb einen Kunden, so läuft es: vier Schritte mit je einem Symbol. Am Rechner zwei nebeneinander, am Handy untereinander */
.geschichte { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
@media (min-width: 40rem) { .geschichte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.geschichte > li { counter-increment: schritt; display: grid; align-content: start; gap: .45rem; min-width: 0;
  padding: 1.4rem 1.3rem 1.2rem; border: 1px solid var(--linie); border-radius: var(--haus); background: var(--tief); }
.geschichte .schritt-sym { width: 2.6rem; height: 2.6rem; margin-bottom: .55rem; fill: none; stroke: var(--akzent);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.geschichte h3 { font: 700 1rem/1.3 var(--kopf); color: var(--weiss); }
.geschichte h3::before { content: counter(schritt) ". "; }
.geschichte p { font-size: .88rem; line-height: 1.55; color: var(--text-leise); }
/* „Alle ansehen" unter den ersten drei Einträgen */
.kachel-alle { display: flex; align-items: center; gap: .55rem; align-self: end; min-height: 2.9rem; padding-top: .15rem;
  border-top: 1px solid var(--linie); font: 600 .7rem/1 var(--kopf); letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; color: var(--akzent); }
.kachel-alle:hover { color: var(--weiss); }
.kachel-alle .sym { margin-top: -.15rem; transition: transform .35s var(--zug); }
.kachel-alle:hover .sym { transform: translateX(6px); }
.leer { margin-bottom: 3.25rem; }

/* ── Das offene Angebot auf der Startseite: sein Deckblatt ───────────────────
   Wie das Deckblatt des PDF: dunkel, Tinte in Kupfer, der Titel groß, die
   Beträge groß. Weiß ist hier nur der Knopf, die ganze Fläche führt zu ihm.
   Die Tinte treibt langsam: die eine Bewegung dieser Seite. */
.deckblatt { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1.7rem;
  margin-bottom: 2rem; padding: 10.5rem 1.55rem 1.6rem;
  border: 1px solid var(--linie-hell); border-radius: var(--haus); background: var(--tief);
  transition: border-color .5s var(--zug); }
/* Der ganze Kasten führt zum Angebot (der Knopf spannt sich darüber). Unter der Maus zeigt er das auch */
.deckblatt { cursor: pointer; }
.deckblatt:hover, .deckblatt:focus-within { border-color: var(--weiss); }
.deckblatt:hover .deckblatt-knopf { background: #e8e8e8; }
/* Das Motiv gespiegelt: Das Kupfer steht rechts oben. Am Handy ist es ein Band
   am oberen Rand, der Text beginnt darunter auf dem Dunkel. */
.deckblatt-bild { position: absolute; inset: -1rem -8% auto; height: 13rem; z-index: -2; background-size: cover; background-position: 0 0;
  transform: scaleX(-1) scale(1.02); animation: tinte 28s ease-in-out infinite alternate; will-change: transform; }
.deckblatt::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0) 0, rgba(20, 24, 32, .1) 4rem, #141820 9.75rem); }
@keyframes tinte { to { transform: scaleX(-1) scale(1.13) translate(2.5%, -2%); } }
.deckblatt h2 { font: 700 clamp(1.55rem, 6.4vw, 2.5rem)/1.1 var(--kopf); letter-spacing: .02em; text-transform: uppercase;
  color: var(--weiss); text-wrap: balance; hyphens: auto; }
.deckblatt-meta { margin-top: .55rem; font-size: .86rem; line-height: 1.5; }
.deckblatt-betraege { display: flex; flex-wrap: wrap; gap: .7rem 2.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.deckblatt-betraege li { font-size: .8rem; line-height: 1.5; }
.deckblatt-betraege .zahl { display: block; font: 700 clamp(1.55rem, 6vw, 2.05rem)/1.15 var(--kopf); color: var(--weiss); }
.deckblatt-art { margin-top: .55rem; font-size: .72rem; color: var(--text-leise); }
.deckblatt-ruf { display: grid; gap: .85rem; }
.deckblatt-frist { font: 600 1rem/1.45 var(--lauf); color: var(--weiss); }
.deckblatt-frist .eilig { font-weight: 800; }
.deckblatt-knopf { justify-content: space-between; gap: 1rem; min-height: 3.9rem; padding-inline: 1.6rem 1.35rem; font-size: .86rem; }
.deckblatt-knopf .sym { margin-top: -.15rem; width: 1.35em; height: 1.35em; stroke-width: 2; transition: transform .5s var(--zug); }
.deckblatt:hover .deckblatt-knopf .sym, .deckblatt-knopf:focus-visible .sym { transform: translateX(7px); }
/* Die ganze Fläche ist der Knopf */
.deckblatt-knopf::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* ⚠️ Kein transform am gedrückten Knopf: Sonst misst sich die Fläche darüber am Knopf statt am Kasten, schrumpft
   beim Drücken auf den Knopf zusammen, und der Klick daneben geht ins Leere. */
.deckblatt-knopf:active { transform: none; }
.deckblatt-weg { font-size: .8rem; line-height: 1.5; }

.annahme.anmeldung h2 { margin-bottom: .45rem; font: 700 1.28rem/1.25 var(--kopf);
  letter-spacing: .04em; text-transform: uppercase; color: var(--tinte); text-wrap: balance; hyphens: auto; }
.annahme.anmeldung > p { font: 400 .9rem/1.55 var(--lauf); color: var(--tinte-leise); }
.anmeldung form > .feld:first-child { margin-top: 1.5rem; }
.anmeldung-stand { margin-top: 1.5rem; font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.anmeldung-stand:focus-visible { outline: 0; }
.anmeldung-wege { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin-top: .9rem; }
.anmeldung-wege .textknopf { min-height: 2.75rem; color: var(--tinte-leise); }
.anmeldung-wege .textknopf:hover { color: var(--tinte); }
/* Zwei Wege zur Anmeldung (seit 28.10.2026): Reiter auf dem Papier */
.anmelde-reiter { display: flex; gap: .3rem; margin-top: 1.1rem; border-bottom: 1px solid rgba(25, 30, 40, .18); }
.anmelde-reiter [role="tab"] { min-height: 2.75rem; margin-bottom: -1px; padding: .2rem 1rem 0; background: none; border: 0;
  border-bottom: 2px solid transparent; color: var(--tinte-leise); font: 600 .9rem var(--lauf); cursor: pointer;
  transition: color .2s, border-color .2s; }
.anmelde-reiter [role="tab"]:hover { color: var(--tinte); }
.anmelde-reiter [role="tab"][aria-selected="true"] { color: var(--tinte); border-bottom-color: var(--tinte); }
.anmelde-reiter [role="tab"]:focus-visible { outline: 2px solid var(--fokus-papier); outline-offset: 2px; }
.anmelde-weg-text { margin-top: 1rem; font: 400 .9rem/1.55 var(--lauf); color: var(--tinte-leise); }
/* Bestätigung nach „Passwort vergessen“: steht an der Stelle des Formulars (seit 22.11.2026) */
.vergessen-fertig { margin-top: 1.5rem; }
.vergessen-titel { font: 700 1rem/1.3 var(--kopf); letter-spacing: .04em; text-transform: uppercase; color: var(--tinte); }
.vergessen-titel:focus-visible { outline: 0; }
.vergessen-fertig .anmeldung-stand { margin-top: .5rem; }
/* Das Feld für Programme beim Registrieren: für Menschen nicht da, auch nicht für Vorleseprogramme (aria-hidden) */
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Ansprechpartner, wie auf der Website ────────────────────────────────── */
.ansprechpartner { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1.1rem; align-items: center;
  padding: 1.7rem 1.4rem; border: 1px solid var(--linie); border-radius: var(--haus-klein);
  background-color: var(--tief);
  background-size: cover; background-position: 30% 50%; }
.ansprechpartner-bild { width: 4.75rem; height: 4.75rem; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 2px solid var(--akzent); }
.ansprechpartner h2 { grid-column: 1 / -1; font: 700 1.3rem/1.2 var(--kopf); letter-spacing: .01em; text-transform: uppercase; color: var(--weiss); }
.ansprechpartner-rest { grid-column: 1 / -1; }
.ansprechpartner-name { font: 700 1rem/1.4 var(--kopf); letter-spacing: .04em; text-transform: uppercase; color: var(--weiss); }
.ansprechpartner-rolle { font: 400 .63rem/1.6 var(--kopf); letter-spacing: .16em; text-transform: uppercase; color: var(--akzent); }
.ansprechpartner-text { font-size: .9rem; line-height: 1.75; }
.ansprechpartner-wege { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.05rem; }
.ansprechpartner-wege a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  font: 400 .72rem/1.3 var(--kopf); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--akzent);
  overflow-wrap: anywhere; }
.ansprechpartner-wege a:hover { color: var(--weiss); }
.ansprechpartner-wege .sym { margin-top: -.15rem; }

.fuss { padding: 1.5rem 1rem calc(var(--leiste) + 2.25rem); text-align: center; font-size: .78rem; color: var(--text-leise); }
.fuss a { margin: 0 .75rem; }

/* ── Leiste: der Betrag bleibt im Blick ──────────────────────────────────── */
.leiste { position: fixed; inset: auto 0 0; z-index: 10; background: var(--tief); border-top: 1px solid var(--linie);
  padding: .7rem var(--rand) calc(.7rem + env(safe-area-inset-bottom)); }
.leiste-innen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 42rem; margin-inline: auto; }
.leiste-betraege p { font: 700 1.04rem/1.3 var(--kopf); color: var(--weiss); }
.leiste-zusatz { font: 400 .72rem/1 var(--lauf); color: var(--text-leise); }
.leiste-betraege .leiste-art { font: 400 .66rem/1.5 var(--lauf); color: var(--text-leise); }
.leiste-stand { display: inline-flex; align-items: center; gap: .5rem; font: 600 .74rem/1 var(--kopf); letter-spacing: .13em;
  text-transform: uppercase; color: var(--weiss); }

/* Im Angebot eines Angemeldeten: der Weg zurück zur Übersicht, immer im Blick.
   Am Handy nur der Pfeil, das Wort steht für Vorleseprogramme da. */
.leiste-zurueck { flex: none; min-width: 2.75rem; min-height: 2.75rem; padding-inline: 0; }
/* Am Handy teilen sich drei Dinge die Leiste: enger zusammen, damit der Betrag auf seiner Zeile bleibt */
@media (max-width: 41.99rem) {
  .leiste-innen:has(.leiste-zurueck) { gap: .65rem; }
  .leiste-innen:has(.leiste-zurueck) .knopf-hell { padding-inline: .95rem; }
}
.leiste-zurueck span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.leiste-zurueck + [data-leiste] { margin-right: auto; }

/* Auf den Seiten der Angemeldeten führt die Leiste durch die Bereiche. Wo man
   gerade ist, zeigt ein weißes Stück in ihrer oberen Linie. */
.leiste-nav { padding-block: 0 env(safe-area-inset-bottom); }
.nav { justify-content: space-around; gap: 0; margin-block: 0; padding-left: 0; list-style: none; }
/* Bis zu fünf Bereiche teilen sich am Handy die Breite. Jeder bekommt, was sein Wort braucht, der Rest
   wird verteilt: Bei gleichen Anteilen stieß „Rechnungen" auf schmalen Geräten an die Nachbarn. */
.nav li { flex: 1 1 auto; }
.nav a { position: relative; display: grid; justify-items: center; align-content: center; gap: .4rem;
  min-height: 4rem; padding: .2rem .1rem 0;
  font: 600 .56rem/1 var(--kopf); letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  color: var(--text-leise); transition: color .25s; }
.nav a:hover, .nav a[aria-current] { color: var(--weiss); }
.nav a::before { content: ""; position: absolute; top: -1px; left: 50%; width: 2.2rem; height: 2px; background: var(--weiss);
  transform: translateX(-50%) scaleX(0); transition: transform .45s var(--zug); }
.nav a[aria-current]::before { transform: translateX(-50%) scaleX(1); }
.nav .sym { width: 1.4rem; height: 1.4rem; }

/* ── Tür und Meldungen ───────────────────────────────────────────────────── */
.tuer { display: grid; align-content: center; justify-items: center; gap: 2.5rem; min-height: 100vh; min-height: 100svh;
  padding: 2rem clamp(1.25rem, 6vw, 3rem); }
.tuer-logo { width: clamp(10rem, 46vw, 15rem); }
.tuer-kasten { width: min(100%, 30rem); padding: 1.8rem 1.6rem; border: 1px solid var(--linie-hell); border-radius: var(--haus); }
.tuer-kasten h1 { margin-bottom: .7rem; font: 700 1.3rem/1.25 var(--kopf); letter-spacing: .03em; text-transform: uppercase; color: var(--weiss); }
.tuer-hilfe { margin-top: 1rem; font-size: .88rem; color: var(--text-leise); }

/* ── Motive: je Bildschirmklasse genau eine Datei ────────────────────────── */
@media (max-width: 41.99rem) {
  .kopfteil { background-image: linear-gradient(180deg, rgba(20, 24, 32, .62) 0%, rgba(20, 24, 32, .5) 45%, #191e28 100%),
                                url(bild/tinte-deckblatt-820.webp); }
  .ansprechpartner { background-image: linear-gradient(rgba(25, 30, 40, .86), rgba(25, 30, 40, .9)), url(bild/tinte-schluss-820.webp); }
  .deckblatt-bild, .titelblatt-bild { background-image: url(bild/tinte-schluss-820.webp); }
  .motiv-a { background-image: url(bild/motiv-a-820.webp); }
  .motiv-b { background-image: url(bild/motiv-b-820.webp); }
  .motiv-c { background-image: url(bild/motiv-c-820.webp); }
  .motiv-d { background-image: url(bild/motiv-d-820.webp); }
  .motiv-e { background-image: url(bild/motiv-e-820.webp); }
  .motiv-f { background-image: url(bild/motiv-f-820.webp); }
  .motiv-j { background-image: url(bild/motiv-j-820.webp); }
}

/* ── Breiter ─────────────────────────────────────────────────────────────── */
@media (min-width: 42rem) {
  .deckblatt-bild, .titelblatt-bild { background-image: url(bild/tinte-schluss-1600.webp); }
  .deckblatt-bild { height: 15rem; }
  .motiv-a { background-image: url(bild/motiv-a-1600.webp); }
  .motiv-b { background-image: url(bild/motiv-b-1600.webp); }
  .motiv-c { background-image: url(bild/motiv-c-1600.webp); }
  .motiv-d { background-image: url(bild/motiv-d-1600.webp); }
  .motiv-e { background-image: url(bild/motiv-e-1600.webp); }
  .motiv-f { background-image: url(bild/motiv-f-1600.webp); }
  .motiv-j { background-image: url(bild/motiv-j-1600.webp); }
  .deckblatt { padding: 12.5rem 2.2rem 2rem; }
  .deckblatt::after { background: linear-gradient(180deg, rgba(20, 24, 32, 0) 0, rgba(20, 24, 32, .1) 5rem, #141820 11.75rem); }
  .ansprechpartner { background-image: linear-gradient(rgba(25, 30, 40, .86), rgba(25, 30, 40, .9)), url(bild/tinte-schluss-1600.webp);
    grid-template-columns: 6.5rem minmax(0, 1fr); gap: .5rem 2rem; padding: 2.1rem 2.4rem; align-items: start; }
  .ansprechpartner h2 { margin-bottom: .6rem; }
  .ansprechpartner-bild { width: 6.5rem; height: 6.5rem; grid-row: 2 / span 2; }
  .ansprechpartner-wer, .ansprechpartner-rest { grid-column: 2; }
  .kasten { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; padding: 1.6rem 1.8rem 1.5rem; }
  .kasten-daten { padding-top: 0; border-top: 0; justify-content: flex-end; text-align: right; }
  .position { padding: 2.2rem 2.2rem 1.8rem; }
  .annahme { padding: 2.4rem 2.3rem 2rem; }
  .summen { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .summen > :only-child { grid-column: 2; }
  .fragen { padding: 2.1rem 2.2rem 2rem; }
  .leiste-zurueck { min-height: 3rem; padding-inline: 1.1rem 1.35rem; margin-right: .75rem; }
  .leiste-zurueck span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .reihe { grid-template-columns: minmax(0, 1fr) auto auto; gap: .3rem 1.75rem; padding-inline: .5rem; }
  .reihe-wert { grid-column: 2; display: grid; justify-items: end; gap: 0; }
  .reihe > .sym { grid-column: 3; grid-row: 1; }
  .reihe-geraet { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 42rem) and (max-width: 59.99rem) {
  .kopfteil { padding-inline: max(var(--rand), calc(50% - 23rem + var(--rand)));
              background-image: linear-gradient(180deg, rgba(20, 24, 32, .62) 0%, rgba(20, 24, 32, .5) 45%, #191e28 100%),
                                url(bild/tinte-deckblatt-1600.webp); }
}

/* ── Ab 60rem: das Wort bleibt links stehen, das Dokument läuft in der Mitte ──
   Die Schriftgröße folgt der Fensterhöhe: Das Wort reicht vom oberen Rand bis
   zur Leiste und ragt an beiden Enden und links ein Stück darüber hinaus, wie
   auf dem Deckblatt des PDF. Lesbar bleiben alle sieben Buchstaben. */
@media (min-width: 60rem) {
  /* Am Körper und nicht an der Wurzel: Die Länge des Wortes hängt an seiner Klasse. */
  body {
    --rand-wort: clamp(1rem, 2.2vw, 2.5rem);
    /* Die Buchstaben von ANGEBOT sind 5,75 Schriftgrößen lang (gemessen, ohne den
       Abstand hinter dem T). Geteilt durch 5,55 stehen oben und unten je .1em über. */
    --wort-gr: min(calc((100vh - var(--leiste)) / var(--wort-hoch, 5.55)), 16rem);
    /* Links fehlt ein Zehntel der Buchstabenhöhe. Die Buchstaben stehen mit dem
       Kopf nach links: Bei mehr verliert das T seinen Balken. */
    --wort-ueber: .1em;
    /* Die Schiene richtet sich nach dem kürzesten Wort (AKTUELL, 5,09) und nicht
       nach dem der Seite: So bleibt das Blatt stehen, wenn man den Bereich wechselt. */
    --schiene: calc(min(calc((100vh - var(--leiste)) / 5.09), 16rem) * .64 + var(--rand-wort));
    --blatt: min(60rem, 100% - var(--schiene) - var(--rand-wort));
    --blatt-links: max(var(--schiene), calc(50% - 30rem));
  }
  body.rahmen { display: flex; flex-direction: column; min-height: 100vh; background: none; }
  .kulisse { display: block; position: fixed; inset: 0; z-index: -1; background-color: var(--tief);
    background-image: linear-gradient(90deg, rgba(20, 24, 32, .58), rgba(20, 24, 32, .74)), url(bild/tinte-deckblatt-1600.webp);
    background-size: cover; background-position: 50% 40%; }
  .wort {
    position: fixed; z-index: 1; left: 0; top: calc((100vh - var(--leiste)) / 2);
    writing-mode: vertical-rl; transform: translate(calc(-1 * var(--wort-ueber)), calc(-50% - .04em)) rotate(180deg);
    font-size: var(--wort-gr); line-height: .74;
  }
  /* Die Nummer läuft wie das Wort von unten nach oben, in der Lücke zwischen Wort und Blatt */
  .wort-nummer { position: fixed; z-index: 1; left: calc(var(--wort-gr) * .64 + .2rem); bottom: calc(var(--leiste) + 2.4rem);
    margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(.82rem, 1.25vw, 1.25rem); letter-spacing: .2em; }
  .kopfteil, .dokument, .fuss {
    width: var(--blatt); max-width: none; margin-left: var(--blatt-links); margin-right: 0;
    background: var(--grund); border-inline: 1px solid var(--linie);
  }
  .kopfteil { padding: 2rem 2rem 0; }
  .dokument { flex: 1; padding: 2rem 2rem 3.5rem; }
  /* Der Auftritt oben auf dem Blatt: Die Kulisse scheint durch, dasselbe Bild an derselben Stelle wie
     dahinter, nur gedämpft, und läuft nach unten in den Grund aus. Das Logo steht rechts darin. */
  .seite-innen .kopfteil { position: relative; z-index: 1; height: 0; padding-bottom: 0; border: 0; background: none; }
  .seite-innen .auftritt { display: grid; align-content: start; justify-items: start; min-height: 9rem;
    margin: -4rem -2rem 1.75rem; padding: 2.4rem 16rem 2.7rem 2rem;
    background-image: linear-gradient(180deg, rgba(25, 30, 40, .7) 0%, rgba(25, 30, 40, .86) 58%, #191e28 100%),
                      url(bild/tinte-deckblatt-1600.webp);
    background-size: auto, cover; background-position: 0 0, 50% 40%; background-attachment: scroll, fixed; }
  .seite-innen .auftritt .titelblock, .seite-innen .auftritt > .knopf { margin-bottom: 0; }
  .seite-innen .auftritt .titelblock:has(+ .knopf) { margin-bottom: 1.4rem; }
  .seite-innen .auftritt .zurueck { margin-top: 0; }
  .leiste { display: grid; align-items: center; min-height: var(--leiste); padding-inline: 0; }
  .leiste-innen { width: var(--blatt); max-width: none; margin-left: var(--blatt-links); margin-right: 0; padding-inline: 2rem; }
  /* Am Rechner stehen die Bereiche links nebeneinander, Zeichen vor dem Wort */
  .nav { justify-content: flex-start; gap: 2.25rem; }
  .nav li { flex: none; }
  .nav a { grid-auto-flow: column; justify-items: start; align-items: center; gap: .6rem; min-width: 0;
    min-height: var(--leiste); padding: .2rem 0 0; font-size: .72rem; letter-spacing: .13em; }
  .nav a::before { left: 0; width: 100%; transform: scaleX(0); transform-origin: left; }
  .nav a[aria-current]::before { transform: scaleX(1); }
  .nav .sym { margin-top: -.2rem; }

  .vertragshinweis { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2rem; }
  .vertrag-parteien { grid-template-columns: 1fr 1fr; }
  .vertragstabelle thead { display: table-header-group; }
  .vertragstabelle tr { display: table-row; padding: 0; border-top: 0; }
  .vertragstabelle th { padding: 0 1rem .55rem 0; border-bottom: 1px solid var(--linie-hell); text-align: left; vertical-align: bottom;
    font: 400 .6rem/1.6 var(--kopf); letter-spacing: .2em; text-transform: uppercase; color: var(--akzent); }
  .vertragstabelle td { display: table-cell; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
  .vertragstabelle td::before { content: none; }
  .vertragstabelle th:last-child, .vertragstabelle td:last-child { padding-right: 0; }

  /* Das breite Blatt: links, was geleistet wird, rechts, was es kostet */
  .position { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, auto); column-gap: 2.75rem; }
  .position-nr, .position-titel, .position-text, .position-mehr, .bilder { grid-column: 1; }
  .position-mehr { justify-self: start; }
  .position-fuss { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 0;
    flex-direction: column-reverse; align-items: flex-end; gap: .2rem; }
  .position-preis { font-size: 1.18rem; line-height: 1.3; }
  .position-preis span { display: block; font: 400 .74rem/1.5 var(--lauf); color: var(--text-leise); }
  .position-menge { font-weight: 400; font-size: .82rem; color: var(--text-leise); }
  .position-rabatt, .position-rabatt + .position-fuss { margin-top: 0; }
  .position-rabatt { grid-column: 2; grid-row: 3; font-size: .76rem; line-height: 1.5; }
  .wahl, .frage { grid-column: 1 / -1; }

  .annahme { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 3.5rem; align-items: start;
    padding: 2.8rem 2.8rem 2.4rem; }
  .annahme h2, .annahme > p, .annahme-umfang, .ablehnen { grid-column: 1; }
  .annahme > p { font: 500 1.2rem/1.5 var(--lauf); text-wrap: balance; }
  .annahme-form { grid-column: 2; grid-row: 1 / span 5; }
  .annahme-form > .feld:first-child { margin-top: 0; }
  /* Das breite Deckblatt: links Titel und Beträge, rechts unten der Aufruf. Das Kupfer steht frei rechts oben. */
  .deckblatt { grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); align-items: end; gap: 3rem;
    min-height: 23rem; padding: 2.8rem; }
  .deckblatt-bild { inset: -8%; height: auto; }
  .titelblatt { padding: 2.6rem 2.8rem 2.2rem; min-height: 19rem; align-content: end; }
  .titelblatt-bild { inset: -8%; height: auto; }
  .titelblatt::after { background:
    linear-gradient(0deg, rgba(20, 24, 32, .94) 0%, rgba(20, 24, 32, .72) 42%, rgba(20, 24, 32, 0) 80%),
    linear-gradient(90deg, rgba(20, 24, 32, .95) 0%, rgba(20, 24, 32, .8) 48%, rgba(20, 24, 32, .1) 100%); }
  .titelblatt .titel { font-size: clamp(2rem, 3.4vw, 2.9rem); max-width: 22ch; }
  .deckblatt::after { background:
    linear-gradient(0deg, rgba(20, 24, 32, .96) 0%, rgba(20, 24, 32, .8) 46%, rgba(20, 24, 32, 0) 78%),
    linear-gradient(90deg, rgba(20, 24, 32, .95) 0%, rgba(20, 24, 32, .82) 46%, rgba(20, 24, 32, .12) 100%); }
  .deckblatt-frist { text-wrap: balance; }
  .annahme.zahlweg .umfang { margin-top: 0; padding-top: 0; border-top: 0; }
  .zahlweg .girocode { grid-column: 1; grid-row: 3; }
  .anmeldung form > .feld:first-child, .anmeldung-stand { margin-top: 0; }
  .anmeldung-stand + .feld { margin-top: 1.35rem; }
}

/* Ab 100rem ist rechts neben dem Dokument Platz für das Logo */
@media (min-width: 100rem) {
  .kopfteil { display: contents; }
  .logo { position: fixed; z-index: 1; top: 2.25rem; right: var(--rand-wort); width: clamp(11rem, 13vw, 15rem); }
  .logo-heim { position: fixed; z-index: 1; top: 2.25rem; right: var(--rand-wort); }
  .logo-heim .logo { position: static; }
  .dokument { padding-top: 3.25rem; }
  /* Das Logo steht jetzt außerhalb: Der Auftritt reicht bis an den oberen Rand und braucht rechts keinen Platz dafür */
  .seite-innen .auftritt { margin-top: -3.25rem; padding: 3.25rem 2rem 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}

/* ── Druck über den Browser ──────────────────────────────────────────────── */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  /* Sonst bleibt der Seitenrand dunkel, wenn jemand mit Hintergründen druckt */
  :root { color-scheme: light; }
  html, body { background: #fff; color: #000; font-size: 10.5pt; }
  body.rahmen { display: block; min-height: 0; }
  .titelblatt-bild, .titelblatt::after, .titelblatt-art { display: none !important; }
  .titelblatt { padding: 0; border: 0; min-height: 0; background: none; overflow: visible; }
  .titelblatt .kasten { margin-top: 0; padding: 4mm 5mm; border: .5pt solid #000; border-radius: var(--haus); }
  .leiste, .werkzeug, .sprung, .annahme-form, .wahl-schalter, .position-mehr, .wort, .wort-nummer, .kulisse, .deckblatt-bild,
  .nachricht-form, .frage:not([open]) { display: none !important; }
  .fragen { padding: 0; border: 0; background: none; }
  .fragen h2 { color: #000; }
  .verlauf { max-height: none; overflow: visible; }
  .nachricht { margin-left: 0; border: .5pt solid #000; background: none; color: #000; }
  .nachricht::before { content: none; }
  .nachricht-kopf, .nachricht-zu, .nachricht-kunde .nachricht-kopf, .nachricht-kunde .nachricht-zu { color: #333; }
  .position.ist-variante.ist-optional { margin-left: 8mm; }
  .kopfteil { display: block; width: auto; margin: 0; padding: 0 0 6mm; border: 0; background: none !important; text-align: right; }
  .logo { position: static; width: 45mm; filter: brightness(0); }
  .titel, .kasten-kunde p, .kasten-daten dd, .position-titel, .position-fuss, .summe-titel,
  .summe-rest dd, .text h2, .ansprechpartner h2, .ansprechpartner-name { color: #000; }
  .kasten-daten dt, .position-nr, .ansprechpartner-rolle, .ansprechpartner-wege a, .wahl-text, .position-rabatt { color: #333; }
  .position-alt { color: #000; }
  .position-marke { border: .5pt solid #000; background: #fff; color: #000; }
  .kasten, .position, .summe-box, .annahme, .ansprechpartner { border: .5pt solid #000; background: none !important; }
  .kasten-daten { border-color: #000; }
  .dokument, .fuss { width: auto; max-width: none; margin: 0; padding: 0; border: 0; background: none; }
  .position, .summe, .annahme, .ansprechpartner, .kasten { break-inside: avoid; }
  .position-text.ist-lang { max-height: none !important; -webkit-mask-image: none; mask-image: none; }
  .fuss { padding: 6mm 0 0; color: #333; }
  /* Die Seiten der Angemeldeten: alles schwarz auf Weiß, was sich nur bedienen lässt, bleibt weg */
  .seite-innen .dokument * { color: #000 !important; background: none !important; }
  .zurueck, .seite-innen .knopf, .anhangfeld, .anfrage-form, .klappe, .monat summary, .monat-mass,
  .mailwahl-felder label:not(:has(input:checked)), [data-anfrage-antwort], .reihe > .sym { display: none !important; }
  .reihen, .reihen > li, .verlauf-projekt, .verlauf-projekt > li, .monat, .zeiten th, .zeiten td, .hinweis, .deckblatt,
  .mailwahl, .mailwahl-reihe, .mailwahl-felder label, .anhang-datei, .anhang-bild { border-color: #999 !important; }
  .verlauf-offen { padding: 0; }
  /* Kontodaten und GiroCode gehören auf den Ausdruck: Das Formular der Annahme bleibt weg, dieses Blatt nicht */
  .zahlweg .annahme-form { display: block !important; }
  .girocode svg { width: 32mm; height: 32mm; }
  /* Im Querformat greifen die Regeln ab 60rem: Auftritt und Kopf stehen im Druck schlicht untereinander */
  .seite-innen .kopfteil { height: auto; padding-bottom: 6mm; }
  .seite-innen .auftritt { display: block; min-height: 0; margin: 0; padding: 0; }
  .seite-innen .auftritt .titelblock { margin-bottom: 6mm; }
  .auftritt-liste .titel { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .reihe, .verlauf-projekt > li, .monat, .mailwahl-reihe, .nachricht { break-inside: avoid; }
}
