/* RIDE ON THE WALL · Ergänzungen der App zur Stilvorlage aus dem Entwurf.
   stil.css ist die unveränderte Kopie von entwurf/stil.css (Stand 16.11., Entwurf eingefroren).
   Hier steht nur, was die echte Seite zusätzlich braucht. Änderungen an der Gestaltung bitte hier, nicht in stil.css. */

/* Ersatzschrift für Geräte ohne die Mac-Schriften des Entwurfs (Barlow Condensed, freie Lizenz, siehe schrift/OFL.txt) */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("/schrift/BarlowCondensed-Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/schrift/BarlowCondensed-Bold.ttf") format("truetype"); }

/* Akzentfarbe: überall fest, keine Lackfarbe des Fahrzeugs. 16.11. Graublau; seit 23.11. Schwarz wie die Knöpfe der Startseite
   (Nutzer: „hier sind die Buttons noch in Graublau und nicht schwarz“; Startseite seit 21.11. schwarz) */
:root { --lack: var(--tusche, #16181c); }
/* 27.11. (5d-28, Festlegung 5 des PM, Regel des Nutzers): Druckpapier = Gelato Museum 250 g „offwhite archival“ – nicht reinweiß.
   EIN Farbwert für jedes gezeigte Druckblatt der Website: Blatt an der Wand (Stellplatz, Preise, Mail-Ansicht, Danke, Bezahlen, Warteseite),
   Blatt-Demo „Mach’s zu deinem.“ (start-e.css), Poster und kleine Blätter der Auswahlseite (auswahl.css). Hier ändern, sonst nirgends.
   Die Druckdatei (src/druck.js) und die Skizzen-Dateien bleiben reinweiß: Auf dem Blatt liegt die Skizze mit „multiply“ (stil.css, .skizze),
   ihr weißes Papier nimmt so den Ton des Blatts an; freigestellte Bilder (.frei) sind dort ohnehin durchsichtig. */
:root { --druckpapier: #fbf9f4; }
/* 27.11. (5d-29, Runde 3, Nutzer: „warm auf warm sieht vergilbt aus“): vorher #f7f3ea. Stufe 1 = #fbf9f4 (gesetzt), kühlere Stufe 2 = #fdfcf9 zum Vergleich:
   Prüfbilder planung/entscheidungen/website-runde3/bilder/PAPIER-*. Den endgültigen Wert setzt der Nutzer nach dem Blick auf die echten Drucke – nur diese Zeile ändern. */
.wand-motiv, .poster-blatt { background: var(--druckpapier); }

/* Die Leiste „Entwurf“ am unteren Rand gibt es hier nicht: kein Platz dafür frei halten */
body { padding-bottom: 0; }
/* 25.11. (Nutzer, Fehler): Auf kurzen Seiten rutschte die Fußzeile hoch (z. B. /skizze „Einen Moment“) und sprang später nach unten.
   Jetzt ist die Seite eine Spalte mindestens so hoch wie das Fenster, der Hauptteil füllt den Rest – die Fußzeile steht immer am unteren
   Rand. Lange Seiten ändern sich nicht. Ausgenommen: Startseite (immer lang), Mail-Vorschau und Kartei (interne Werkzeuge). */
body:not([data-view="start"]):not([data-view="mail"]):not([data-view^="kartei"]) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:not([data-view="start"]):not([data-view="mail"]):not([data-view^="kartei"]) > main { flex: 1 0 auto; }
@media (min-width: 861px) { .buehne { height: 100vh; } }
@media (max-width: 860px) { .kauf-leiste { bottom: 0; transform: translateY(100%); } }
section[data-view="foto"].seite { --upload-frei: min(calc(100vh - 77px - var(--upload-oben) - 6px), 780px); }

.hilfs-svg { position: absolute; }
.nw { white-space: nowrap; }
button.knopf { border: 0; cursor: pointer; }
button.knopf-breit { width: 100%; }
.knopf:disabled, .knopf-zweit:disabled { opacity: .55; cursor: default; }
.fuss-links a { text-decoration: none; }
.fuss-links a:hover { text-decoration: underline; }
.textseite-text { margin: 18px 0 26px; max-width: 46ch; }

/* Upload: Hinweis beim kostenlosen neuen Versuch */
.versuch-hinweis { margin: 12px 0 0; color: var(--tusche); }

/* Skizze: Der Strich läuft so lange, wie das Zeichnen wirklich dauert (etwa eine Minute; im Entwurf waren es Sekunden) */
.status-strich { animation-duration: 60s; }
#erkannt-ab .knopf-zweit { margin-top: 4px; }
#erkannt-ab #nochmal { margin-right: 10px; }

/* Auswahl */
.schon-bestellt { margin: 0 0 6px; color: var(--tusche); }
.optionen .fehler:empty { min-height: 0; margin: 0; }
#abgelaufen-kasten .lead { margin: 18px 0 26px; }

/* Bezahl-Attrappe: Adressfelder im gestrichelten Kasten */
.zahl-platzhalter .kicker { margin-bottom: 10px; }
.adress-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; width: 100%; margin-bottom: 8px; }
.adress-felder .feld { margin-top: 16px; }
.adress-felder .feld-breit { grid-column: 1 / -1; }
.zahl-platzhalter .fehler:empty { min-height: 0; margin: 6px 0; }
@media (max-width: 600px) { .adress-felder { grid-template-columns: minmax(0, 1fr); } }

/* Danke */
#danke-unterzeile { margin-top: 16px; max-width: 30em; }

/* Mail-Ansicht */
.mail-abgelaufen { max-width: 660px; margin: 40px auto; padding: 0 var(--rand); }

/* Durchsicht: Die Bilder füllen ihre Fläche ganz (die Lage per Fahrzeug-Rahmen aus dem Entwurf braucht die Foto-Prüfung, die es noch nicht gibt) */
.ds-rahmen img { inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; transition: transform .2s ease; }
.ds-kopfzeile { margin: 8px 0 0; }
.ds-versuche { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ds-versuche:empty { display: none; }
.ds-versuche button { font: 600 14px/1 var(--text); background: transparent; color: var(--tusche); border: 1.5px solid var(--linie); padding: 9px 12px; cursor: pointer; border-radius: 1px; }
.ds-versuche button[aria-pressed="true"] { background: var(--tusche); border-color: var(--tusche); color: #fff; }
.ds-laeuft { margin-top: 22px; }
.ds-laeuft .status-strich { animation-duration: 60s; }
.ds-erkennung { margin: 6px 0 0; }
.ds-meldung:empty { display: none; }
.ds-meldung { margin: 16px 0 0; font-weight: 600; }
.ds-daten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 22px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--linie); font-size: 15px; }
.ds-daten dt { color: var(--grau); }
.ds-daten dd { margin: 0; overflow-wrap: anywhere; }
#ds-fertig .lead { margin: 14px 0 22px; }
#ds-fertig { margin-top: 28px; }
@media (max-width: 600px) { .ds-daten { grid-template-columns: minmax(0, 1fr); gap: 2px; } .ds-daten dd { margin-bottom: 8px; } }

/* Durchsicht, Etappe 4: Umschalter zwischen den beiden Fassungen (mit/ohne Farbstriche) unter der Skizze */
.ds-bilder .ds-skizze-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ds-striche-knopf { font: 600 13px/1 var(--text); text-transform: none; background: transparent; color: var(--tusche); border: 1.5px solid var(--tusche); padding: 7px 11px; cursor: pointer; border-radius: 1px; }
.ds-striche-knopf[aria-pressed="true"] { background: var(--tusche); color: #fff; }
.ds-striche-knopf[hidden] { display: none; }
.ds-hinweis-striche { margin: 14px 0 0; color: var(--tusche); border-left: 3px solid var(--lack); padding-left: 10px; }
.ds-hinweis-striche.ds-verworfen { font-weight: 700; background: #fbe9e5; border-left-width: 6px; padding: 8px 10px; }   /* 5g-4: Striche verworfen */
.ds-knoepfe { flex-wrap: wrap; }

/* „Etwas stimmt nicht?“ (Etappe 4): leise unter dem Knopf bzw. unter dem Bild der Mail */
.korrektur { margin: 6px 0 4px; }
.korrektur[hidden], .korrektur-auf[hidden], .korrektur-form[hidden], .korrektur-danke[hidden] { display: none; }
.korrektur-auf { margin: 0; }
.link-knopf { font: inherit; color: var(--grau); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.link-knopf:hover { color: var(--tusche); }
.korrektur-form { margin-top: 10px; }
.korrektur-form textarea { width: 100%; resize: vertical; min-height: 64px; font: inherit; }
.korrektur-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.korrektur-fuss .wunsch-rest { margin: 0; }
.korrektur-form .fehler:empty { min-height: 0; margin: 0; }
.korrektur-danke { margin: 0; color: var(--tusche); }
.mail-korrektur { margin: 6px 0 18px; text-align: center; }
/* 27.11. (5d-28, V05): „Du zahlst erst …“ direkt unter der Preiszeile; Absender wie unter der Text-Mail, unten in der Mail-Ansicht */
.mail-zahlen { margin: -4px 0 18px; }
.mail-absender { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e5e2db; color: var(--grau); }
.mail-absender p { margin: 0 0 8px; }
.mail-absender a { color: inherit; }
.mail-korrektur a { color: var(--grau); }
.ds-korrektur { margin-top: 18px; padding: 14px 16px; border: 1.5px solid var(--lack); background: #f3f6f9; }
.ds-korrektur[hidden] { display: none; }
.ds-korrektur .ds-panel-titel { margin: 0 0 6px; }
.ds-korrektur-text { margin: 0; font-size: 18px; font-weight: 600; }
.ds-korrektur .klein { margin: 6px 0 0; }
.korrektur-form .feld { margin-top: 0; }

/* ===== Startseite, Design-Check vom 16.11. spät (Nutzer „ja“), umgesetzt 17.11. in Etappe 4 =====
   Gilt nur für die Startseite. Nach dem Austausch der Mac-Schriften (Avenir Next) die Größen erneut prüfen. */

/* 1) Kopfzeile bleibt auch am Laptop beim Scrollen stehen (am Handy schon seit 16.11.) */
body[data-view="start"] .kopf { position: sticky; top: 0; z-index: 40; }
body[data-view="start"] main [id] { scroll-margin-top: 84px; }

/* 7) Schriftgrößen: Überschrift oben ca. −10 %, Abschnitts-Überschriften ca. −15 %, h3 bleibt 34 px,
      Fließtext 18 → 20 px am Laptop, 17 → 18 px am Handy, .lead anteilig. Menüpunkte bleiben, wie sie sind */
body[data-view="start"] .held h1 { font-size: clamp(47px, 7.4vw, 117px); }
body[data-view="start"] .gross { font-size: clamp(40px, 4.8vw, 72px); }
body[data-view="start"] main { font-size: 20px; }
body[data-view="start"] .lead { font-size: clamp(21px, 1.78vw, 25.5px); }
@media (max-width: 860px) {
  body[data-view="start"] main { font-size: 18px; }
  body[data-view="start"] .lead { font-size: 20px; }
}

/* 2) Knopf unter „So läuft’s.“: mittig unter den drei Schritten statt links über dem Wandfoto */
body[data-view="start"] .ablauf-fuss { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 52px); }

/* 3) Preise: Euro-Beträge fett, klar abgesetzt von „ohne Rahmen“ / „gerahmt“ */
.preise li span + span { color: var(--grau); }
.preise .preis-betrag { font-weight: 700; color: var(--tusche); font-size: 1.08em; margin-right: .18em; }
.preise .preis-groesse { color: var(--tusche); }

/* 4) Hinweise unter Knöpfen: 16 px in Tusche statt 14,5 px grau */
body[data-view="start"] .held-text .klein,
body[data-view="start"] .preise-oben .klein,
body[data-view="start"] .preise-start .klein { font-size: 16px; color: var(--tusche); }

/* 5) Blätter-Pfeile neben „x / 5“ auffälliger: Kreis mit kräftigerem Pfeil, Zähler größer in Tusche */
body[data-view="start"] .pfeile { gap: 10px; }
body[data-view="start"] .pfeile .pfeil { width: 50px; height: 50px; border: 2px solid var(--tusche); border-radius: 50%; background: var(--papier); }
body[data-view="start"] .pfeile .pfeil svg { width: 28px; height: 14px; stroke-width: 2.6; }
body[data-view="start"] .pfeile .pfeil:hover { background: var(--tusche); color: #fff; translate: 0 0; }
body[data-view="start"] .pfeile-stand { font-size: 15px; color: var(--tusche); min-width: 3.4em; }

/* 6) Preisbereich: Liste und Knopf rücken zusammen (ca. 32 px statt Abstand bis zum Bildende) */
body[data-view="start"] .preise-text { justify-content: flex-start; gap: 0; }
body[data-view="start"] .preise-start { margin-top: 32px; }

/* Preis-Block neu (16.11. spät): „Deine Skizze als Fine Art Print“ als eigene Überschrift, der Satz danach */
h3.preise-einstieg { margin: -.02em 0 .45em; }
body[data-view="start"] .held-text .lead { font-size: clamp(23px, 2.1vw, 31px); }
@media (min-width: 481px) { body[data-view="start"] .preise li { grid-template-columns: minmax(0, 1fr) 10.6em 8.6em; } body[data-view="start"] .preise { max-width: 540px; } }
@media (max-width: 860px) { body[data-view="start"] .held-text .lead { font-size: 22px; } }

/* ===== Motiv-Kartei (Etappe 4, nur lokal) ===== */
.kartei { max-width: 1400px; }
.kartei-leiste { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.kartei-neu { margin: 18px 0; padding: 16px 18px; border: 1.5px solid var(--linie); background: #fff; }
.kartei-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
.kartei-felder .feld { margin-top: 14px; }
.kartei-felder .feld span { font-size: 13px; color: var(--grau); font-weight: 600; }
.kartei-felder input[type="text"], .kartei-felder select { width: 100%; font: inherit; font-size: 15px; }
.kartei-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 620px), 1fr)); gap: 22px; margin-top: 26px; }
.kartei-karte { background: #fff; border: 1.5px solid var(--linie); padding: 16px 18px 20px; }
.kartei-karte.gesperrt { opacity: .62; }
/* Im Vergleich nimmt die Karte die ganze Breite ein; Foto + 3 Fassungen als 2×2-Block */
.kartei-karte.kk-vergleich-offen { grid-column: 1 / -1; }
.kartei-karte .kk-fassungen.gross { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.kk-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.kk-code { margin: 0; font: 700 22px/1.1 var(--display); text-transform: uppercase; }
.kk-marken { margin: 0; font: 400 12.5px/1.3 var(--mono); text-transform: uppercase; color: var(--grau); }
.kk-marken[data-freigabe="frei"] { color: #2c6b3f; }
.kk-marken[data-freigabe="gesperrt"] { color: #a02c2c; }
.kk-marken[data-freigabe="neu"] { color: var(--lack); font-weight: 700; }
/* 23.11.: Foto und aktive Fassung gleich groß (vorher 1 : 1,6), gleiche Höhe, ganzes Bild ohne Beschnitt. Der Rahmen schneidet nur die Lupe ab */
.kk-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.kk-bilder figure { margin: 0; min-width: 0; }
.kk-rahmen { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #f6f5f1; }
.kk-bilder img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; cursor: zoom-in; }
/* Lupe wie im Betrachter (public/kartei.js): an = Klick/Mausrad 2,5-fach, Ziehen verschiebt */
html.kk-lupe-an .kk-rahmen { cursor: zoom-in; touch-action: none; }
html.kk-lupe-an .kk-rahmen img { cursor: inherit; }
html.kk-lupe-an .kk-rahmen.zoom { cursor: grab; }
html.kk-lupe-an .kk-rahmen.ziehen { cursor: grabbing; }
.kk-lupeinfo { position: absolute; left: 8px; bottom: 8px; z-index: 2; font: 400 12px/1.3 var(--mono); background: rgba(255, 255, 255, .88); border-radius: 6px; padding: 2px 7px; color: var(--grau); pointer-events: none; }
.kk-lupe-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.kk-lupe-leiste .kk-chip[aria-pressed="true"] { background: var(--tusche); border-color: var(--tusche); color: #fff; }
html:not(.kk-lupe-an) .kk-lupe-sync { display: none; }
.kk-lupe-hilfe { font-size: 13px; color: var(--grau); }
.kk-bilder figcaption { font: 400 12px/1.3 var(--mono); color: var(--grau); margin-top: 6px; text-transform: uppercase; }
.kk-website { color: var(--tusche); min-height: 0; }
.kk-website:empty { display: none; }
.kk-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kk-knoepfe .knopf-zweit { font-size: 14px; padding: 8px 12px; }
.kk-datei { position: relative; cursor: pointer; }
.kk-datei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kk-fassungen { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.kk-fassung { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 6px; border: 1px solid var(--linie); }
.kk-fassung.aktiv { border: 2px solid var(--lack); }
.kk-fassung > a { grid-row: 1 / span 3; display: block; }
.kk-vergleich-knopf { margin-top: 14px; }
/* Vergleich: Fassungen groß, auf breiten Bildschirmen zwei nebeneinander */
.kk-fassungen.gross { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.kk-fassungen.gross .kk-fassung { grid-template-columns: 1fr; }
.kk-fassungen.gross .kk-fassung img { width: 100%; }
.kk-fassungen.gross .kk-fassung > a { grid-row: auto; overflow: hidden; background: #fff; cursor: zoom-in; }
.kk-fassungen.gross .kk-fassung img { transition: transform .2s ease; }
.kk-fassungen.gross.zoom .kk-fassung > a { cursor: zoom-out; }
.kk-zoom-hinweis { margin: 6px 0 0; }
/* Foto nur im Vergleich; dort höchstens 3 Fassungen */
.kk-vergleich-foto { display: none !important; }
.kk-fassungen.gross .kk-vergleich-foto { display: grid !important; }
.kk-fassungen.gross .kk-nicht-im-vergleich { display: none; }
.kk-fassungen.gross .kk-fassung > a { aspect-ratio: 3 / 2; }
.kk-fassungen.gross .kk-fassung img { height: 100%; object-fit: contain; }
.kk-fassung-knoepfe .kk-loeschen { margin-left: auto; color: #8a3b2e; }
.kk-fassung img { grid-row: 1 / span 3; width: 96px; aspect-ratio: 3 / 2; object-fit: contain; background: #f6f5f1; }
.kk-fassung p { margin: 0; font-size: 14px; }
.kk-fassung .klein { font-size: 12.5px; margin: 2px 0 0; }
.kk-fassung-knoepfe { display: flex; gap: 14px; margin-top: 4px !important; }
.kk-haken { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 15px; font-weight: 600; }
.kk-haken label, .kk-haken-einzeln { display: inline-flex; gap: 6px; align-items: center; }
.kk-haken-einzeln { margin-top: 30px; font-size: 14px; }
.kk-haken input:disabled + * , .kk-haken label:has(input:disabled) { color: var(--grau); }
.kk-claude-knopf { margin: 10px 0 0; }
.kk-claude-text { display: block; width: 100%; margin: 8px 0 0; font-size: 13px; padding: 8px; border: 1px solid var(--linie); background: #faf9f6; }
.kk-claude-knopf.knopf-zweit { font-size: 14px; padding: 8px 12px; }
/* Mehrzeilige Kartei-Felder im Stil der übrigen Eingabefelder */
.kartei-felder .kk-langtext { display: block; width: 100%; font: inherit; font-size: 15px; color: inherit; padding: 9px 0; border: 0; border-bottom: 2px solid var(--tusche); background: transparent; border-radius: 0; resize: none; overflow: hidden; line-height: 1.4; }
.kartei-felder .kk-langtext:focus { outline: none; border-bottom-color: var(--lack); box-shadow: 0 2px 0 var(--lack); }
/* Notiz über die ganze Breite */
.kartei-felder .feld:has(> [data-feld="notiz"]) { grid-column: 1 / -1; }

/* ---------- Kartei: Links zu den erzeugten Bildern und Mockups je Motiv (18.11.) ---------- */
.kk-ordner { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.kk-ordner a { color: var(--lack); font-weight: 600; }
.kk-link { background: none; border: 0; padding: 0; font: inherit; color: var(--lack); text-decoration: underline; cursor: pointer; }
.kk-link:hover { color: var(--tusche); }

/* ---------- Seite „Alle erzeugten Bilder“ (nur lokal, 18.11.) ---------- */
.kb-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; align-items: end; margin: 18px 0 6px; padding: 4px 18px 16px; border: 1.5px solid var(--linie); background: #fff; }
.kb-filter .feld { margin-top: 12px; }
.kb-filter .feld span { font-size: 13px; color: var(--grau); font-weight: 600; }
.kb-filter select, .kb-filter input[type="search"] { width: 100%; font: inherit; font-size: 15px; }
.kb-filter .kk-haken-einzeln { margin-top: 12px; padding-bottom: 8px; }
.kb-gruppe { margin-top: 34px; }
.kb-gruppe-kopf { border-bottom: 1.5px solid var(--linie); padding-bottom: 8px; }
.kb-gruppe-titel { margin: 0; font: 700 22px/1.15 var(--display); text-transform: uppercase; }
.kb-gruppe-text { margin: 4px 0 0; }
.kb-raster { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.kb-bild { background: #fff; border: 1px solid var(--linie); padding: 8px 10px 10px; min-width: 0; }
.kb-bild-link { display: block; cursor: zoom-in; }
.kb-bild img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #f6f5f1; }
.kb-bild p { margin: 0; }
.kb-bild-art { margin-top: 8px !important; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.kb-bild-art[data-art="mockup"] { color: var(--lack); }
.kb-bild-art[data-art="druck"] { color: #2c6b3f; }
.kb-bild-info { font-size: 12.5px; line-height: 1.4; color: var(--grau); margin-top: 3px !important; }
.kb-bild-name { font: 400 11px/1.35 var(--mono); color: var(--grau); margin-top: 5px !important; overflow-wrap: anywhere; }
.kb-bild-knoepfe { font-size: 13px; margin-top: 6px !important; }
.kartei-leiste a.knopf-zweit { text-decoration: none; }
.kb-bild-art[data-art="foto"] { color: #8a5a00; }

/* ---------- Kartei: „Infos zum Fahrzeug“ zum Aufklappen; aufgeklappte Karten stehen oben (18.11.) ---------- */
.kk-infos { margin-top: 14px; border-top: 1px solid var(--linie); }
.kk-infos > summary { cursor: pointer; padding: 10px 0 4px; font-size: 14.5px; line-height: 1.4; }
.kk-infos-titel { font-weight: 700; color: var(--lack); }
.kk-infos-kurz { color: var(--grau); font-size: 13px; }
.kk-infos[open] .kk-infos-kurz { display: none; }
.kartei-karte { scroll-margin-top: 90px; }
.kartei-karte.kk-angeheftet { border-color: var(--lack); border-width: 2px; }
.kartei-karte.kk-angeheftet .kk-code::after { content: " · angeheftet"; font: 400 12.5px/1 var(--mono); color: var(--lack); }
.kb-gruppe.kb-website { padding: 4px 16px 18px; border: 2px solid var(--lack); background: #fff; }
.kb-gruppe.kb-website .kb-gruppe-kopf { border-bottom: 0; }

/* ---------- Großansicht im Rahmen über der Seite (Kartei und Bilderliste, 18.11.) ---------- */
html.gb-offen { overflow: hidden; }
[data-gross] { cursor: zoom-in; }
.gb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template: auto minmax(0, 1fr) / auto minmax(0, 1fr) auto; background: rgba(16, 17, 20, .93); color: #fff; }
.gb[hidden] { display: none; }
.gb-kopf { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 20px; }
.gb-titel { margin: 0; font: 400 13px/1.4 var(--mono); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gb-zaehler { margin: 0; font: 400 13px/1.4 var(--mono); opacity: .7; white-space: nowrap; }
.gb-knopf { font: inherit; font-size: 14px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); padding: 7px 12px; cursor: pointer; }
.gb-knopf:hover { background: rgba(255, 255, 255, .25); }
.gb-zu { font-size: 24px; line-height: 1; padding: 4px 13px 7px; }
.gb-pfeil { align-self: center; font-size: 44px; line-height: 1; color: #fff; background: none; border: 0; padding: 20px 16px; cursor: pointer; opacity: .75; }
.gb-pfeil:hover { opacity: 1; }
.gb-einzeln .gb-pfeil { visibility: hidden; }
.gb-flaeche { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding-bottom: 18px; overflow: hidden; }
.gb-bild { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; cursor: zoom-in; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); }
.gb-laedt .gb-bild { width: 100%; height: 100%; }
.gb-voll .gb-flaeche { display: block; overflow: auto; }
.gb-voll .gb-bild { max-width: none; max-height: none; width: auto; height: auto; cursor: zoom-out; }

/* ---------- Kartei: „Detail korrigieren“ je Fassung (Prompt FIX, 18.11.) ---------- */
.kk-korrektur { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--linie); }
.kk-korrektur-titel { font: 400 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--grau); margin-right: 4px; }
.kk-chip { font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--lack); background: #fff; border: 1.5px solid var(--lack); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .15s, color .15s; }
.kk-chip:hover:not(:disabled) { background: var(--lack); color: #fff; }
.kk-chip:disabled { opacity: .4; cursor: default; }
.kk-chip-frei { border-style: dashed; }
/* Test-Prompts der Prompt-Runde 21.11.: je Familie eine Farbe (Knöpfe seit 23.11. weg; die Marken alter Fassungen bleiben) */
.kk-chip-v20 { --t: #1f5fbf; } .kk-chip-ohne { --t: #7a3fb0; } .kk-chip-grau { --t: #5f6b75; } .kk-chip-frontal { --t: #c0610f; } .kk-chip-vorlage { --t: #1d8a6e; }
.kk-chip-v20, .kk-chip-ohne, .kk-chip-grau, .kk-chip-frontal, .kk-chip-vorlage { color: var(--t); border-color: var(--t); background: color-mix(in srgb, var(--t) 8%, #fff); }
.kk-testmarke { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--t); vertical-align: 1px; }
.kk-chip-v20:hover:not(:disabled), .kk-chip-ohne:hover:not(:disabled), .kk-chip-grau:hover:not(:disabled), .kk-chip-frontal:hover:not(:disabled), .kk-chip-vorlage:hover:not(:disabled) { background: var(--t); color: #fff; }
/* Prüf-Hinweise an einer Fassung (Ablauf s6, seit 23.11.): wie „Bitte prüfen“ in der Durchsicht, nur Hinweise */
.kk-pruef { margin: 4px 0 0; font-size: 12.5px; }
.kk-pruef summary { cursor: pointer; color: var(--tusche); }
.kk-pruef ul { margin: 4px 0 0; padding-left: 18px; }
.kk-pruef li { margin: 2px 0; }
.kk-pruef .kk-pruef-grob { color: #a02c2c; font-weight: 600; }
.kk-pruef .kk-pruef-fakten { color: var(--tusche); opacity: .75; }
.kk-korrektur-frei { flex-basis: 100%; display: flex; gap: 8px; margin-top: 2px; }
.kk-korrektur-frei[hidden] { display: none; }
.kk-korrektur-frei input { flex: 1; min-width: 0; font: inherit; font-size: 14.5px; padding: 7px 10px; border: 1.5px solid var(--linie); background: #fff; }
.kk-korrektur-frei .knopf-zweit { font-size: 14px; padding: 7px 12px; }
.kk-fassungen.gross .kk-korrektur { display: none; }
.kk-fassungen { max-height: 480px; }
.kk-fassungen.gross { max-height: none; }

/* ---------- Kartei: ein Werkzeugfeld je Motiv statt verstreuter Knöpfe (18.11. spät) ---------- */
.kk-fassungen { max-height: 250px; }
.kk-fassung { cursor: pointer; }
.kk-fassung:hover { border-color: var(--grau); }
.kk-fassung.aktiv { border: 1px solid var(--linie); }
.kk-fassung.aktiv > p:first-of-type::after { content: " ●"; color: #2c6b3f; }
.kk-fassung.gewaehlt { border: 2px solid var(--lack); background: #f4f6fa; cursor: default; }
.kk-fassungen.gross .kk-fassung { cursor: default; background: #fff; }
.kk-werkzeug { margin-top: 14px; border: 1.5px solid var(--linie); background: #fbfbf9; }
.kk-wz-reihe { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--linie); }
.kk-wz-reihe:first-child { border-top: 0; }
.kk-wz-reihe[hidden] { display: none; }
.kk-wz-reihe[data-reihe="fassung"], .kk-wz-reihe[data-reihe="korrektur"] { background: #f4f6fa; }
.kk-wz-titel { margin: 6px 0 0; font: 400 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.kk-wz-reihe[data-reihe="fassung"] .kk-wz-titel { color: var(--lack); font-weight: 700; }
.kk-wz-knoepfe { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
a.kk-chip { text-decoration: none; display: inline-block; }
label.kk-chip { display: inline-block; }
.kk-chip-leise { border-color: var(--linie); color: var(--tusche); font-weight: 500; }
.kk-chip-leise:hover:not(:disabled) { background: var(--tusche); border-color: var(--tusche); color: #fff; }
.kk-chip-rot { border-color: #a02c2c; color: #a02c2c; margin-left: auto; }
.kk-chip-rot:hover:not(:disabled) { background: #a02c2c; color: #fff; }
.kk-wz-knoepfe .kk-korrektur-frei { flex-basis: 100%; }
/* 5g-8: „In Kästen korrigieren“ – Kästen auf der Skizze ziehen */
.kk-kasten { flex-basis: 100%; display: grid; gap: 8px; margin-top: 4px; padding: 10px; border: 1.5px dashed var(--linie); background: #fff; }
.kk-kasten[hidden] { display: none; }
.kk-kasten p { margin: 0; }
.kk-kasten-flaeche { position: relative; max-width: 760px; width: 100%; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; line-height: 0; }
.kk-kasten-flaeche img { display: block; width: 100%; height: auto; pointer-events: none; }
.kk-kasten-box { position: absolute; border: 3px solid #ff00ff; background: rgba(255, 0, 255, .08); box-sizing: border-box; }
.kk-kasten-neu { border-style: dashed; }
.kk-kasten-nr { position: absolute; left: 2px; top: 2px; font: 700 12px/1 var(--mono); color: #fff; background: #ff00ff; padding: 2px 4px; }
.kk-kasten-weg { position: absolute; right: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #ff00ff; color: #fff; font: 700 16px/24px sans-serif; padding: 0; cursor: pointer; }
.kk-kasten-weg:hover { background: #a000a0; }
.kk-kasten textarea { font: inherit; font-size: 14.5px; padding: 7px 10px; border: 1.5px solid var(--linie); background: #fff; resize: vertical; max-width: 760px; box-sizing: border-box; width: 100%; }
.kk-kasten-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kk-kasten-zahl { margin-right: auto; }
.kk-wz-knoepfe .kk-vergleich-knopf { margin-top: 0; }
@media (max-width: 620px) { .kk-wz-reihe { grid-template-columns: 1fr; } .kk-wz-titel { margin-top: 0; } }

/* ---------- Kartei: Foto-Zeile im Werkzeugfeld, mehrere Fotos je Fahrzeug (19.11.) ---------- */
.kk-foto-wahl { display: flex; flex-wrap: wrap; gap: 6px; margin-right: 6px; }
.kk-foto-wahl[hidden] { display: none; }
.kk-foto-knopf { position: relative; padding: 0; border: 2px solid var(--linie); background: #fff; cursor: pointer; line-height: 0; }
.kk-foto-knopf img { width: 62px; height: 44px; object-fit: cover; display: block; }
.kk-foto-knopf.gewaehlt { border-color: var(--lack); box-shadow: 0 0 0 2px #f4f6fa, 0 0 0 3px var(--lack); }
.kk-foto-knopf span { position: absolute; left: 0; bottom: 0; font: 400 9.5px/1.5 var(--mono); text-transform: uppercase; background: var(--lack); color: #fff; padding: 0 4px; }
.kk-wz-hinweis { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; }
.kk-wz-reihe[data-reihe="foto"] { background: #fbfbf9; }

/* ---------- Kartei: eine Karte je Zeile, Filter in der Leiste (19.11.) ---------- */
.kartei { max-width: 1120px; }
.kartei-liste { grid-template-columns: minmax(0, 1fr); }
.kartei-leiste { align-items: center; }
.kartei-filter { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; font-size: 15.5px; cursor: pointer; padding: 8px 14px; border: 1.5px solid var(--linie); background: #fff; }
.kartei-filter:has(input:checked) { border-color: var(--lack); color: var(--lack); background: #f4f6fa; }
.kartei-filter span { font-weight: 400; color: var(--grau); }

/* ---------- Kartei: Favoriten-Stern, dreiteiliger Filter, Zeile Vorschau und Druck (19.11.) ---------- */
.kartei-filter { display: inline-flex; margin-left: auto; padding: 0; border: 1.5px solid var(--tusche); background: #fff; gap: 0; font-weight: 400; cursor: default; }
.kartei-filter:has(input:checked) { border-color: var(--tusche); background: #fff; color: inherit; }
.kartei-filter-knopf { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 14px; border: 0; border-left: 1.5px solid var(--tusche); background: #fff; color: var(--tusche); cursor: pointer; }
.kartei-filter-knopf:first-child { border-left: 0; }
.kartei-filter-knopf span { font-weight: 400; color: var(--grau); }
.kartei-filter-knopf.an { background: var(--lack); color: #fff; }
.kartei-filter-knopf.an span { color: rgba(255, 255, 255, .8); }
.kk-kopf { align-items: center; }
.kk-favorit { font: inherit; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border: 1.5px solid var(--linie); border-radius: 999px; background: #fff; color: var(--grau); cursor: pointer; margin-right: auto; }
.kk-favorit .kk-stern { font-size: 19px; line-height: 1; }
.kk-favorit:hover { border-color: #b8860b; color: #8a6400; }
.kk-favorit.an { background: #fff6d6; border-color: #d9a400; color: #6b4e00; }
.kk-favorit.an .kk-stern { color: #d9a400; }
.kk-drucktext { flex: 1 1 240px; min-width: 180px; font: inherit; font-size: 14.5px; padding: 6px 10px; border: 1.5px solid var(--linie); background: #fff; }
.kk-druckwahl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-left: 10px; border-left: 1.5px solid var(--linie); }
.kk-druckwahl select { font: inherit; font-size: 14px; padding: 5px 6px; border: 1.5px solid var(--linie); background: #fff; }
.gb-laedt .gb-bild:not([src]) { background: transparent; box-shadow: none; }

/* Kartei, Freigabe-Block (19.11.): zwei Zeilen „Skizze auf die Website“ und „Originalfoto auf die Website“ mit Voraussetzungen */
.kk-freigabe { margin-top: 14px; border: 1.5px solid var(--linie); background: #fff; }
.kk-fg { padding: 12px 14px 12px 16px; border-top: 1px solid var(--linie); border-left: 5px solid #c9c7c0; }
.kk-fg:first-child { border-top: 0; }
.kk-fg-frei { border-left-color: #d9a400; }
.kk-fg-an { border-left-color: #2c6b3f; background: #f5faf6; }
.kk-fg-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.kk-fg-titel { margin: 0; font-weight: 700; font-size: 16px; }
.kk-fg-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.kk-fg-knopf { font: inherit; font-size: 15px; font-weight: 700; padding: 9px 18px; border: 0; border-radius: 4px; background: #2c6b3f; color: #fff; cursor: pointer; }
.kk-fg-knopf:hover:not(:disabled) { background: #1f5230; }
.kk-fg-knopf:disabled { background: #d8d6cf; color: #77756e; cursor: not-allowed; }
.kk-fg-status { font-weight: 700; font-size: 15px; color: #2c6b3f; }
.kk-fg-status.ruht { color: #8a6400; font-weight: 600; }
.kk-fg-zurueck { font-size: 14px; color: var(--grau); }
.kk-fg-fehlt { margin: 6px 0 0; font-size: 14px; color: #8a3b2e; }
.kk-fg-punkte { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 3px 22px; font-size: 14.5px; line-height: 1.45; }
.kk-fg-punkte li { padding-left: 24px; text-indent: -24px; color: var(--grau); }
.kk-fg-punkte li.kk-p-fehlt, .kk-fg-punkte li.kk-p-nie { color: var(--tusche); }
.kk-fg-punkte li.kk-p-nie { color: #8a3b2e; }
.kk-fg-punkte label { cursor: pointer; }
.kk-fg-punkte input[type="checkbox"] { width: 16px; height: 16px; margin: 0 4px 0 0; vertical-align: -2px; }
.kk-fg-marke { display: inline-block; width: 20px; text-indent: 0; font-weight: 700; }
.kk-fg-punkte li.kk-p-ok .kk-fg-marke { color: #2c6b3f; }
.kk-fg-wahl { font: inherit; font-size: 14px; padding: 3px 6px; border: 1.5px solid var(--linie); background: #fff; max-width: 100%; }
.kk-fg-punkte li.kk-p-fehlt .kk-fg-wahl { border-color: #8a3b2e; }
.kk-fg-hilfe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.kk-fg-befund { margin: 0; font-size: 13.5px; color: var(--grau); flex: 1 1 320px; }
.kk-fg-befund.fund { color: #8a3b2e; }
.kk-gruppe { margin: 22px 0 0; font: 400 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--grau); border-bottom: 1px solid var(--linie); padding-bottom: 4px; }
.kk-gruppe + .kk-haken { margin-top: 10px; }

/* Kartei: Ausschnitt des Fotos im Polaroid der Startseite (Foto im kleinen Rahmen verschieben) */
.kk-fg-ausschnitt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.kk-pola { width: 190px; padding: 6px 6px 0; background: #fff; border: 1px solid var(--linie); box-shadow: 0 3px 10px rgba(22, 24, 28, .18); line-height: 0; }
.kk-pola img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.kk-pola img:active { cursor: grabbing; }
.kk-pola-text { display: block; font: 400 10px/1 var(--mono); color: var(--grau); padding: 6px 1px 7px; }
.kk-fg-ausschnitt-text { flex: 1 1 260px; }
.kk-fg-ausschnitt-text .kk-fg-befund { margin: 0 0 4px; }

/* Kartei: Stift-Fenster „Stellen abdecken“ (Foto mit schwarzem Stift übermalen) */
.kk-stift { position: fixed; inset: 0; z-index: 900; background: rgba(22, 24, 28, .94); display: flex; flex-direction: column; }
.kk-stift-kopf { background: #fff; padding: 12px 18px; }
.kk-stift-titel { margin: 0; font: 700 18px/1.2 var(--display); text-transform: uppercase; }
.kk-stift-hinweis { margin: 4px 0 10px; font-size: 14.5px; color: var(--tusche); }
.kk-stift-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kk-stift-leiste .kk-fg-knopf { margin-left: auto; padding: 7px 16px; }
.kk-stift-an { background: var(--tusche); border-color: var(--tusche); color: #fff; }
.kk-stift-flaeche { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.kk-stift-flaeche canvas { max-width: 100%; max-height: 100%; cursor: crosshair; touch-action: none; background: #fff; }
.kk-stift-offen { overflow: hidden; }

/* Kartei: Freigabe-Abschnitt einklappbar; zu = nur zwei Punkte (grün auf der Website, rot nicht) */
.kk-fg-klapp { margin-top: 14px; border-top: 1px solid var(--linie); }
.kk-fg-klapp > summary { cursor: pointer; padding: 10px 0 6px; font-size: 14.5px; line-height: 1.4; }
.kk-fg-klapp .kk-freigabe { margin-top: 4px; }
.kk-fg-punkt { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-left: 14px; vertical-align: -1px; }
.kk-fg-punkt-an { background: #2c9a4b; }
.kk-fg-punkt-aus { background: #d0342c; }
.kk-fg-punkt-machbar { background: #e8932a; }
.kk-fg-punkt-text { color: var(--grau); font-size: 13px; }

/* Großansicht: Knopf „Aktiv setzen“ für Fassungen der Kartei */
.gb-aktiv { background: #2c6b3f; border-color: #2c6b3f; font-weight: 700; }
.gb-aktiv:hover:not(:disabled) { background: #1f5230; }
.gb-aktiv:disabled { background: transparent; border-color: rgba(255, 255, 255, .35); color: #8fd6a4; cursor: default; }
.gb-aktiv[hidden] { display: none; }

/* Kartei: Werkzeugfeld einklappbar; „aktiv“ mit Punkt direkt in der Zeile der Fassung */
.kk-wz-klapp { margin-top: 14px; border-top: 1px solid var(--linie); }
.kk-wz-klapp > summary { cursor: pointer; padding: 10px 0 6px; font-size: 14.5px; line-height: 1.4; }
.kk-wz-klapp .kk-werkzeug { margin-top: 4px; }
.kk-fassung { grid-template-columns: 96px minmax(0, 1fr) auto; }
.kk-fassung.aktiv > p:first-of-type::after { content: none; }
.kk-f-aktiv { grid-column: 3; grid-row: 1 / span 3; align-self: center; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 12px 6px 10px; border: 1.5px solid var(--linie); border-radius: 999px; background: #fff; color: var(--grau); cursor: pointer; white-space: nowrap; }
.kk-f-punkt { width: 12px; height: 12px; border-radius: 50%; background: #c9c7c0; }
.kk-f-aktiv:hover:not(:disabled) { border-color: #2c9a4b; color: #1f5230; }
.kk-f-aktiv:hover:not(:disabled) .kk-f-punkt { background: #2c9a4b; }
.kk-f-aktiv.an { border-color: transparent; background: transparent; color: #1f5230; cursor: default; }
.kk-f-aktiv.an .kk-f-punkt { background: #2c9a4b; }
.kk-fassungen.gross .kk-f-aktiv { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }

/* Kartei (19.11. spät): „aktiv“ = Arbeitsfassung, grüner Punkt = auf der Website – beides als Marke rechts in der Zeile */
.kk-f-marken { grid-column: 3; grid-row: 1 / span 3; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; padding-right: 4px; }
.kk-f-marke { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.kk-f-web { color: #1f5230; }
.kk-f-web .kk-f-punkt { background: #2c9a4b; }
.kk-f-akt { font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--lack); padding: 4px 8px; border-radius: 999px; }
.kk-fassungen.gross .kk-f-marken { grid-column: 1; grid-row: auto; flex-direction: row; justify-self: start; gap: 10px; margin-top: 6px; }
.kk-foto-knopf .kk-foto-web { position: absolute; right: 3px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #2c9a4b; border: 1.5px solid #fff; }
.kk-fg-aktion .kk-fg-knopf { padding: 7px 14px; font-size: 14.5px; }
/* Text der Fassungszeile immer in der mittleren Spalte (sonst rutscht er ohne Marke in die rechte) */
.kk-fassung > p { grid-column: 2; min-width: 0; }
.kk-fassungen.gross .kk-fassung > p { grid-column: 1; }

/* Kartei: Stern für die Lieblings-Fassung, rechts in der Zeile */
.kk-f-marken { flex-direction: row; align-items: center; gap: 10px; }
.kk-f-stern { font-size: 21px; line-height: 1; padding: 2px 4px; border: 0; background: none; color: #b9b6ad; cursor: pointer; }
.kk-f-stern:hover { color: #d9a400; }
.kk-f-stern.an { color: #d9a400; }

.kk-druck-scharf { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; cursor: pointer; }

/* 21.11.: Kamerafahrt über den Druck („Schau genau hin.“) – Totale, Detail, Halbtotale; je 4 s, Zufahrt 2 %, Überblendung 0,8 s (Empfehlung Produktvideo, Nutzer „passt“ 21.11.).
   Werkzeuge und Quelle: testbilder/mockups/werkzeug-fahrt.mjs */
.fahrt { overflow-x: clip; }   /* verhindert seitliches Scrollen durch 100vw (Windows-Scrollleiste) */
.fahrt .lead { margin-top: 12px; }
/* 21.11. (Nutzer): 16:9 über die ganze Bildschirmbreite, randlos – bricht aus dem Seitenrand des Blocks aus */
.fahrt-buehne { position: relative; width: 100vw; max-width: none; margin: 32px 0 0 calc(50% - 50vw); aspect-ratio: 16 / 9; overflow: hidden; background: #1a1a1a; }
.fahrt-buehne img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; opacity: 0;
  animation-duration: 12s, 12s; animation-iteration-count: infinite, infinite; animation-timing-function: linear, linear; }
@keyframes fahrt-zeigen { 0% { opacity: 0; } 6.67% { opacity: 1; } 40.00% { opacity: 1; } 46.66% { opacity: 0; } 100% { opacity: 0; } }
@keyframes fahrt-f1 { 0% { transform: translate(-2.17%, -4.35%) scale(1.087); } 46.67%, 100% { transform: translate(-3.59%, -5.46%) scale(1.109); } }
@keyframes fahrt-f2 { 0% { transform: translate(-4.00%, -4.33%) scale(1.087); } 46.67%, 100% { transform: translate(-5.78%, -5.44%) scale(1.109); } }
@keyframes fahrt-f3 { 0% { transform: translate(-4.07%, -4.35%) scale(1.087); } 46.67%, 100% { transform: translate(-5.71%, -5.43%) scale(1.109); } }
.fahrt-e1 { animation-name: fahrt-zeigen, fahrt-f1; animation-delay: 0s, 0s; }
.fahrt-e2 { animation-name: fahrt-zeigen, fahrt-f2; animation-delay: -8s, -8s; }
.fahrt-e3 { animation-name: fahrt-zeigen, fahrt-f3; animation-delay: -4s, -4s; }
.fahrt-hinweis { position: absolute; right: 12px; bottom: 10px; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.65); }
/* 27.11. (5d-28, V06): „.fahrt-buehne .fahrt-e1“ statt „.fahrt-e1“ – sonst gewinnt „.fahrt-buehne img { opacity: 0 }“ und der Film ist ein schwarzer Kasten */
@media (prefers-reduced-motion: reduce) { .fahrt-buehne img { animation: none; } .fahrt-buehne .fahrt-e1 { opacity: 1; transform: translate(-2.17%, -4.35%) scale(1.087); } }


/* ===================== Etappe 5a (22.11.2026): Kundenweg und Recht ===================== */

/* Fußzeile: vier Rechtstexte als Links, daneben die gesetzliche Widerrufsfunktion – hervorgehoben, auf jeder Seite */
.fuss-links a { color: inherit; }
/* 23.11. (Nutzer: „etwas dezenter, er ruft förmlich drück mich“): gleiche Schrift und Farbe wie die Rechtstext-Links, dünner Rahmen –
   bleibt als Knopf erkennbar und abgesetzt („hervorgehoben platziert“, § 356a BGB), aber nicht mehr in Großbuchstaben und Weiß */
.fuss-widerruf { display: inline-block; font: 400 15px/1 var(--text); text-decoration: none;
  color: #c9ccd1; border: 1px solid rgba(201,204,209,.55); padding: 8px 12px; white-space: nowrap; }
.fuss-widerruf:hover, .fuss-widerruf:focus-visible { background: #f4f3ef; color: var(--tusche); }

/* Rechtstexte (Impressum, AGB, Datenschutz, Widerrufsbelehrung): schlichte Lesespalte */
.rechtstext-seite { max-width: 860px; }
.rechtstext { font-size: 16.5px; line-height: 1.6; overflow-wrap: anywhere; }
.rechtstext h1 { margin: 0 0 24px; }
.rechtstext h2 { font: 700 var(--stufe-unter)/1.15 var(--display); text-transform: uppercase; margin: 38px 0 10px; }
.rechtstext h3, .rechtstext h4 { font: 600 18px/1.35 var(--text); text-transform: none; letter-spacing: 0; margin: 26px 0 6px; }
.rechtstext p { margin: 0 0 12px; }
.rechtstext ul, .rechtstext ol { margin: 0 0 14px; padding-left: 1.4em; }
.rechtstext li { margin: 0 0 4px; }
.rechtstext a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rechtstext-knopf { margin: 28px 0 0; }
.rechtstext-knopf .knopf-zweit { display: inline-block; }
.rechtstext-stand { margin-top: 34px; color: var(--grau); }
.rechtstext-weiter { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--linie); font-size: 15.5px; }

/* Vertrag widerrufen */
.widerruf-seite { max-width: 720px; }
.widerruf-form .lead { margin: 14px 0 0; }
.widerruf-form .feld { margin-top: 22px; }
.widerruf-form .feld small { font-weight: 400; color: var(--grau); }
.widerruf-form textarea.textfeld { width: 100%; resize: vertical; }
.widerruf-form .knopf { margin-top: 28px; }
.widerruf-form .klein { margin-top: 8px; }
.widerruf-fertig { margin-top: 18px; }
.widerruf-fertig .knopf-zweit { display: inline-block; margin-top: 18px; }
.widerruf-fertig .klein { margin: 14px 0 0; }

/* Hintergrundbilder für Käufer (Beigabe) */
.hg-bilder { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; margin-top: 34px; }
.hg-bild { margin: 0; }
.hg-rahmen { background: #fff; box-shadow: 0 2px 2px rgba(22, 24, 28, .12), 0 20px 40px -18px rgba(22, 24, 28, .45); }
.hg-computer .hg-rahmen { aspect-ratio: 16 / 9; }
.hg-handy .hg-rahmen { aspect-ratio: 9 / 16; max-width: 300px; }
.hg-rahmen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hg-bild figcaption { margin: 14px 0 10px; font-size: 16px; }
.hg-bild figcaption span { color: var(--grau); margin-left: 6px; }
.hg-hinweis { margin-top: 30px; max-width: 46em; }
@media (max-width: 700px) { .hg-bilder { grid-template-columns: minmax(0, 1fr); } .hg-handy .hg-rahmen { max-width: 220px; } }

/* Auswahlseite: Zusammenfassung vor dem Bezahlen, Hinweis „kein Widerrufsrecht“, Vorschlag im Textfeld */
.bestell-uebersicht { margin: 30px 0 0; border-top: 1px solid var(--linie); font-size: 15.5px; }
.bestell-uebersicht div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 8px 0 7px; border-bottom: 1px solid var(--linie); }
.bestell-uebersicht dt { color: var(--grau); }
.bestell-uebersicht dd { margin: 0; }
.bestell-uebersicht .ue-text dd { font-weight: 600; overflow-wrap: anywhere; }
.bestell-uebersicht + .summe { margin-top: 14px; border-top: 0; }
.kein-widerruf { margin: 14px 0 16px; }
.kein-widerruf a { color: inherit; }
.wunsch-vorschlag { margin: 8px 0 0; color: var(--grau); }
.wunsch-recht { margin: 6px 0 0; color: var(--grau); }   /* 5f-7: Rechtshinweis am Textfeld, ruhig */
.wunsch-bsp button[data-wunsch=""] { font-style: italic; }

/* Danke-Seite: gelber Platzhalter in der Zeitlinie */
.zeitlinie li.offen { padding: 12px 8px 8px; }
.zeitlinie .offen-marke { margin: 4px 0 2px; }

/* Vorschau = Druck (Druck-Regel vom 20.11., src/druck.js): Signatur fest 16 mm (seit 30.11., 5g-10; vorher 15) vom rechten und unteren Blattrand,
   Wunschtext höher (Zeilenunterkante quer 16 %, hoch 13,5 % der Blatthöhe), ohne Wunschtext sitzt die Skizze senkrecht in der Blattmitte.
   Die Wandbilder zeigen ein Blatt 50 × 70 cm (16 mm = 2,29 % der langen, 3,2 % der kurzen Seite); das kleine Blatt der Preis-Wand ist 30 × 40 cm (4 % / 5,33 %). */
.wand-motiv .wand-sign { inset: auto 2.29% 3.2% auto; width: 9%; }
.wand-wunsch { bottom: 16%; }
.wand-motiv:has(.wand-wunsch:empty) .skizze { top: 13.4%; }
.hoch-motiv .wand-sign, .wand-szene[data-format="hoch"] .wand-motiv .wand-sign { inset: auto 3.2% 2.29% auto; width: 12%; }
.hoch-motiv .wand-wunsch, .wand-szene[data-format="hoch"] .wand-wunsch { bottom: 13.5%; }
.hoch-motiv:has(.wand-wunsch:empty) .skizze, .wand-szene[data-format="hoch"] .wand-motiv:has(.wand-wunsch:empty) .skizze { top: 23%; bottom: 23%; }
.preis-klein .wand-sign { inset: auto 4% 5.33% auto; }
/* Poster der Auswahlseite (und die kleine Vorschau am Handy): gleiche Lage wie die Druckdatei statt der früheren Stapelung */
.poster-blatt { position: relative; display: block; padding: 0; }
.poster-rahmen[data-format="hoch"] .poster-blatt { padding: 0; }
.poster-motiv { position: absolute; left: 12%; top: 6.4%; width: 76%; height: 73.2%; }
.poster-fuss, .poster-rahmen[data-format="hoch"] .poster-fuss { display: block; padding: 0; height: auto; }
.poster-wunsch { position: absolute; left: 10%; right: 10%; bottom: 16%; }
.poster-sign { position: absolute; right: 2.29%; bottom: 3.2%; width: 9%; margin: 0; }
.poster-rahmen[data-groesse="30x40"] .poster-sign { right: 4%; bottom: 5.33%; }
.poster-blatt:has(.poster-wunsch:empty) .poster-motiv { top: 13.4%; }
.poster-rahmen[data-format="hoch"] .poster-motiv { left: 6%; top: 18%; width: 88%; height: 54%; }
.poster-rahmen[data-format="hoch"] .poster-wunsch { bottom: 13.5%; min-height: 0; }
.poster-rahmen[data-format="hoch"] .poster-sign { right: 3.2%; bottom: 2.29%; width: 12%; margin: 0; }
.poster-rahmen[data-format="hoch"][data-groesse="30x40"] .poster-sign { right: 5.33%; bottom: 4%; }
.poster-rahmen[data-format="hoch"] .poster-blatt:has(.poster-wunsch:empty) .poster-motiv { top: 23%; }

/* Kopierschutz auf der Auswahlseite (23.11.): kein „Bild sichern“ beim langen Drücken, kein Ziehen der Vorschau (Menü sperrt auswahl.js) */
section[data-view="auswahl"] img[data-vorschau] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* Farbfelder „Farbstriche in: …“ (5c, 23.11.) – Durchsicht und Kartei */
.ds-farbfelder, .kk-farbfelder { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ds-farbfelder { flex-basis: 100%; }
.ds-farbfeld { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border: 1.5px solid var(--linie, #ccc); border-radius: 999px; background: #fff; cursor: pointer; }
.ds-farbfeld:hover:not(:disabled) { border-color: var(--tusche, #222); }
.ds-farbfeld:disabled { opacity: .45; cursor: default; }
.ds-farbfeld-quadrat { width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.ds-farbfeld-quadrat.leer { background: repeating-linear-gradient(45deg, #eee 0 3px, #fff 3px 6px); }
/* Kartei-Werkzeuge abgespeckt (5c, 23.11.): Hauptweg „Skizze zeichnen“, daneben leise „Von Hand: HERO · REAL · FRONTAL“ */
.kk-chip.kk-chip-haupt { background: var(--lack); color: #fff; font-size: 14.5px; padding: 7px 16px; }
.kk-chip.kk-chip-haupt:hover:not(:disabled) { filter: brightness(1.1); }
.kk-von-hand { margin-left: 8px; font: 400 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.kk-striche-schalter { margin-left: 8px; font-size: 13.5px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
/* 5g-7: Auswahl der Farbstriche beim Zeichnen und die drei Test-Knöpfe (Standard v11 hervorgehoben) */
.kk-strich-wahl { margin-left: 6px; font-size: 13px; padding: 2px 4px; }
.kk-strich-standard { font-weight: 700; }
.kk-wz-knoepfe .kk-farbfelder { flex-basis: 100%; }
/* Fassungsliste: Häkchen „vergleichen“ und „Löschen“ je Fassung */
.kk-vgl-haken { font-size: 12px; color: var(--grau); display: inline-flex; gap: 3px; align-items: center; cursor: pointer; white-space: nowrap; }
.kk-f-loeschen { font: inherit; font-size: 12px; color: #a02c2c; background: none; border: 1px solid #d9b3b3; border-radius: 999px; padding: 1px 8px; cursor: pointer; white-space: nowrap; }
.kk-f-loeschen:hover:not(:disabled) { background: #a02c2c; color: #fff; border-color: #a02c2c; }
.kk-f-loeschen:disabled { opacity: .35; cursor: default; }
/* Foto im Vergleich abgehakt: auch das Foto bleibt weg */
.kk-fassungen.gross .kk-vergleich-foto.kk-nicht-im-vergleich { display: none !important; }
/* Farbstriche umfärben (5c-3, 23.11.): kleine farbige Rechtecke an der Fassung – Kartei und Durchsicht */
.kk-umf, .ds-umf { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 4px 0 0; font-size: 12px; color: var(--grau); }
.ds-umf { display: inline-flex; margin: 0 0 0 10px; vertical-align: middle; }
.ds-umf[hidden] { display: none; }
.kk-umf.nein { color: #8a5a00; }
.kk-umf-feld, .ds-umf-feld { width: 22px; height: 14px; padding: 0; border: 1px solid rgba(0,0,0,.35); border-radius: 2px; cursor: pointer; background: #fff; }
.kk-umf-feld.leer, .ds-umf-feld.leer { background: repeating-linear-gradient(45deg, #eee 0 3px, #fff 3px 6px); }
.kk-umf-feld.eigen, .ds-umf-feld.eigen { outline: 2px solid var(--tusche, #222); outline-offset: 1px; cursor: default; }
.kk-umf-feld.da:not(.eigen), .ds-umf-feld.da:not(.eigen) { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.kk-umf-feld:disabled:not(.eigen), .ds-umf-feld:disabled:not(.eigen) { opacity: .4; cursor: default; }
.kk-umf-feld:hover:not(:disabled), .ds-umf-feld:hover:not(:disabled) { transform: scale(1.15); }
/* Auftrag 21: Punkt = die Farbe, wie Gemini die Striche gezeichnet hat (Original); Rahmen (.eigen) = gewählte Farbe */
.kk-umf-feld.original, .ds-umf-feld.original { position: relative; }
.kk-umf-feld.original::after, .ds-umf-feld.original::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
/* Auftrag 28: Trenner vor der festen Palette */
.kk-umf-trenner, .ds-umf-trenner { display: inline-block; width: 1px; height: 14px; margin: 0 6px 0 4px; background: rgba(0,0,0,.35); vertical-align: middle; }
.kk-umf-kosten { margin-left: 4px; font-size: 11px; }
.kk-gemini-farbe { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--linie); border-radius: 6px; background: #fff; }

/* ===== 24.11. (5d-8, Nutzer „Menü auf dem Handy ergänzen“): Menü in der Kopfleiste auch auf schmalen Bildschirmen =====
   Bisher war das Menü bis 860 px ausgeblendet, im Kopf standen nur die Sprung-Links „Preise ↓ Fragen ↓“ (entfernt).
   541–860 px: Textzeile „So läuft’s · Preise · Fragen“ direkt neben dem Logo, Schrift wie am Laptop (16 px, 500), Trefferfläche 44 px hoch;
   rechts bleibt Platz für den Knopf „Starten“, der beim Scrollen erscheint.
   Bis 540 px: aufklappbares Menü (☰). Gemessen: Logo 150 px + „Starten“ 79 px lassen bei 320/375/414 px nur 51/106/145 px frei –
   „Preise · Fragen“ braucht mit Abständen ≥ 143 px, das wäre Gedränge bzw. passt nicht. */
.kopf-menue { display: none; }
@media (max-width: 860px) {
  body[data-view="start"] .kopf-start { margin-left: auto; }
  body[data-view="start"] .kopf-nav { display: flex; gap: 22px; margin-left: 10px; }
  body[data-view="start"] .kopf-nav a { display: flex; align-items: center; min-height: 44px; margin: -5px 0; padding: 0 2px; } /* 44 px tippbar, Leiste bleibt 60 px hoch */
  body[data-view="start"] .kopf-nav a:hover { text-decoration: none; }
}
@media (max-width: 540px) {
  body[data-view="start"] .kopf-nav { display: none; }
  body[data-view="start"] .kopf { gap: 8px; }
  body[data-view="start"] .kopf-menue { display: block; position: static; }
  .kopf-menue > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -5px -11px -5px 0; cursor: pointer; }
  .kopf-menue > summary::-webkit-details-marker { display: none; }
  .kopf-menue-symbol, .kopf-menue-symbol::before, .kopf-menue-symbol::after { display: block; width: 22px; height: 2px; background: var(--tusche); border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
  .kopf-menue-symbol { position: relative; }
  .kopf-menue-symbol::before, .kopf-menue-symbol::after { content: ""; position: absolute; left: 0; }
  .kopf-menue-symbol::before { top: -7px; }
  .kopf-menue-symbol::after { top: 7px; }
  .kopf-menue[open] .kopf-menue-symbol { background: transparent; }
  .kopf-menue[open] .kopf-menue-symbol::before { transform: translateY(7px) rotate(45deg); }
  .kopf-menue[open] .kopf-menue-symbol::after { transform: translateY(-7px) rotate(-45deg); }
  .kopf-menue > summary:focus-visible { outline: 2px solid var(--tusche); outline-offset: -4px; }
  /* Liste klappt unter der Leiste auf, volle Breite */
  .kopf-menue nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 4px var(--rand) 14px; background: var(--papier); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .22); border-top: 1px solid var(--linie); }
  .kopf-menue nav a { display: flex; align-items: center; min-height: 48px; font-weight: 500; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--linie); }
  .kopf-menue nav a:last-child { border-bottom: 0; }
}
@media (max-width: 359px) {
  body[data-view="start"] .kopf .logo img { width: 132px; }
}

/* 5d-26 (26.11.): Freigestellte Skizze (WebP mit durchsichtigem Papier, src/freistellen.js) auf getönter Fläche.
   Kein „multiply“ und keine Tonkurve mehr: Das Fahrzeug zeigt genau die Farben des Drucks, Weiß bleibt Weiß.
   Randmaske: siehe 5d-27 direkt darunter (bei freigestellten Bildern keine). */
.skizze.frei, .skizze-blatt.frei { mix-blend-mode: normal; filter: none; }

/* 5d-27 (26.11., Befund Defender an der Wand): Die Randmaske aus stil.css blendete die Skizze unten von 82 % bis 97 % der
   Bildhöhe aus (seitlich 3 %, oben 4 %). Seit die Skizzen vereinheitlicht sind (19.11.), reicht das Motiv bis ca. 96 % –
   Räder, Schatten und Farbstriche unten bekamen einen weißen Schleier. Jetzt:
   · saubere Bilder (Papier schon reinweiß: Kartei-Motive /motiv/…, Auswahlseite druckgleich, freigestellte) – gar keine Maske;
   · rohe Skizzen (Kunden-Vorschau in Mail, Danke, Bezahlen, /skizze; feste Ersatz-Beispiele) – nur noch ein schmaler
     Papierrand ganz außen (oben/unten 2 %, seitlich 1,5 %), damit dort kein Papierton als Kante stehen bleibt. */
.skizze, .skizze-blatt {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%), linear-gradient(to right, transparent 0, #000 1.5%, #000 98.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%), linear-gradient(to right, transparent 0, #000 1.5%, #000 98.5%, transparent 100%);
}
.skizze.frei, .skizze-blatt.frei, .skizze.sauber, .skizze-blatt.sauber { -webkit-mask-image: none; mask-image: none; }
