/* RIDE ON THE WALL · Ergänzungen für den neuen Skizzen-Ablauf (Etappe 5b, 23.11.2026)
   Eigene Datei, damit stil.css (unveränderte Stilvorlage) und app.css unberührt bleiben.
   Eingebunden von seiten/foto.html, seiten/erkannt.html und seiten/durchsicht.html. */

/* ---------- Seite /foto: Foto und Mail-Adresse auf EINER Seite (23.11., Gestaltung B, Vorlage planung/foto-eine-seite/vorschau-b.html) ----------
   Die Grundregeln (.upload, .ablage, .check, .zusagen, .tipps …) stehen in stil.css; hier steht nur, was die Seite anders macht.
   Breit (ab 861 px): links Überschrift, Foto-Feld, Stift-Zeile, Adresse, Häkchen, Knopf, Zusagen – rechts Beispiel und Tipps (Spalten 1,2 : 0,8).
   Schmal: Überschrift, Feld, Formular, dann das Beispiel, dann die Tipps.
   Rhythmus der Abstände: große Blöcke 28 px (Einleitung → Feld, Stift-Zeile → Adresse, Häkchen → Knopf), innerhalb der Gruppen 8–10 px. */
section[data-view="foto"] .upload-kopf, section[data-view="foto"] .upload-kopf .lead { margin-bottom: 0; }

/* Foto-Feld: fest 180 px hoch, gestrichelt – auch mit Foto. Das Foto steht ganz und mittig darin (kein Beschnitt) */
.upload .foto-ablage { flex: none; height: 180px; min-height: 0; margin-top: 28px; }
.upload .foto-ablage.mit-foto { display: block; padding: 12px; }
.upload .foto-ablage #foto-bild { position: static; display: block; width: 100%; height: 100%; object-fit: contain; }
/* „Anderes Foto wählen“ unten rechts im Feld; das ganze Feld bleibt anklickbar */
.upload .foto-ablage.mit-foto .ablage-wechsel {
  display: block; position: absolute; z-index: 1; right: 8px; bottom: 8px;
  font: 400 11.5px/1 var(--mono); color: #fff; background: rgba(22, 24, 28, .82); padding: 7px 8px 6px; white-space: nowrap;
}
/* 29.11. (5e-29): beim Kleines-Foto-Hinweis nicht doppelt – der Hinweis darunter hat denselben Knopf */
.upload .foto-ablage.mit-foto.klein-hinweis .ablage-wechsel { display: none; }

/* Zeile unter dem Feld (nur mit Foto): Stift noch einmal öffnen */
.upload .abdecken-zeile { margin: 10px 0 0; }
.abdecken-knopf {
  font: inherit; font-weight: 600; color: var(--lack); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.abdecken-knopf:hover { color: var(--tusche); }

/* Adresse, Hinweis, Häkchen, Knopf, Zusagen */
.foto-mail { margin: 28px 0 0; }
section[data-view="foto"] .foto-mail .feld { margin: 0 0 8px; }
section[data-view="foto"] .upload-form .foto-hinweis { margin: 0 0 20px; line-height: 1.5; }
section[data-view="foto"] .upload-form .check { margin: 0 0 10px; }
/* Adresse schon bekannt (neuer Versuch, anderes Foto): Der Block fehlt, das Pflicht-Häkchen hält selbst Abstand zum Feld */
section[data-view="foto"] .foto-mail[hidden] + .check { margin-top: 28px; }
section[data-view="foto"] .foto-erinnern[hidden] { display: none; }
section[data-view="foto"] #absenden { margin-top: 18px; }
.foto-unter-knopf { margin: 10px 0 0; font-size: 14.5px; color: #4a4d52; }
section[data-view="foto"] .upload-form .zusagen { margin: 22px 0 0; }
section[data-view="foto"] .upload-form .zusagen + .klein { margin-top: 14px; }

/* Fehler stehen direkt an der Stelle, um die es geht; ohne Text nehmen sie keinen Platz ein */
.foto-fehler:empty { display: none; }
section[data-view="foto"] .upload-form .foto-fehler { margin: 0; min-height: 0; font-size: 15px; line-height: 1.45; }
section[data-view="foto"] .upload-form #fehler-foto { margin-top: 8px; }
section[data-view="foto"] .upload-form #fehler-mail { margin: -2px 0 10px; }
section[data-view="foto"] .upload-form #fehler-rechte { margin: -4px 0 0; padding-left: 30px; }
section[data-view="foto"] .upload-form #fehler { margin-top: 12px; }
section[data-view="foto"] .feld input[aria-invalid="true"] { border-bottom-color: #a8201a; box-shadow: 0 2px 0 #a8201a; }

/* 27.11. (5d-28, V04): Tipp direkt unter dem Feld (nur ohne Foto) und Hinweis bei kleinem Foto */
.klein-foto { margin: 12px 0 0; padding: 12px 14px; background: #fff; border-left: 3px solid var(--lack); font-size: 15px; line-height: 1.45; }
.klein-foto p { margin: 0; }
.klein-foto strong { display: block; font-weight: 600; margin-bottom: 2px; }
.klein-foto .klein-foto-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.klein-foto .knopf-zweit { font-size: 15px; padding: 9px 14px; }
/* 27.11. (5d-31, K-2): „eine kostenlose Vorschau je Adresse“ als eigener ruhiger Punkt über den Häkchen, nicht mehr bei den Tipps */
section[data-view="foto"] .upload-form .foto-versuch { margin: 14px 0 16px; line-height: 1.5; font-size: 0.92em; color: var(--tinte-leise, inherit); }
section[data-view="foto"] .upload-form .foto-versuch strong { font-weight: 600; font-size: 1.08em; color: inherit; display: block; }

/* Tipp 4: „mit dem Stift abdecken“ öffnet das Stift-Fenster */
.foto-stift-link { color: var(--tusche); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (min-width: 861px) {
  section[data-view="foto"] .upload { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  section[data-view="foto"] .upload-bsp-in { width: 82%; margin-left: auto; }
}
@media (max-width: 860px) {
  .upload .foto-ablage { height: 160px; }
  .upload .foto-ablage.mit-foto { padding: 8px; }
  /* Das Beispiel rückt hinter das Formular (gleiche Ordnungszahl wie das Formular, steht im HTML danach) */
  section[data-view="foto"] .upload-bsp { order: 3; margin-top: 36px; }
}

/* ---------- Stift-Fenster ---------- */
html.stift-offen, html.stift-offen body { overflow: hidden; }
.stift {
  position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column;
  background: #16181c; height: 100dvh;
}
.stift-kopf { background: var(--papier); padding: 14px var(--rand) 12px; }
.stift-kopf h2 { margin: 0 0 4px; font: 700 28px/1.05 var(--display); text-transform: uppercase; }
.stift-kopf p { margin: 0; font-size: 15.5px; line-height: 1.45; max-width: 78ch; }
.stift-flaeche {
  flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none;
}
.stift-blatt { position: relative; flex: none; transform-origin: center center; background: #fff; will-change: transform; }
.stift-blatt img { display: block; width: 100%; height: 100%; pointer-events: none; }
.stift-blatt canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stift-leiste {
  background: var(--papier); padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.stift-werkzeug { display: flex; gap: 8px; }
.stift-werkzeug button {
  font: 600 16px/1 var(--text); min-width: 46px; min-height: 46px; padding: 0 14px;
  background: #fff; color: var(--tusche); border: 1.5px solid var(--tusche); cursor: pointer;
}
.stift-werkzeug button:disabled { opacity: .4; cursor: default; }
.stift-tipp { margin: 0; font-size: 14px; color: var(--grau); flex: 1 1 160px; }
.stift-ende { display: flex; gap: 10px; margin-left: auto; }
.stift-ende .knopf, .stift-ende .knopf-zweit { margin: 0; min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 640px) {
  .stift-kopf { padding-top: 10px; padding-bottom: 8px; }
  .stift-kopf h2 { font-size: 23px; }
  .stift-kopf p { font-size: 14px; line-height: 1.38; }
  .stift-tipp { order: 3; flex-basis: 100%; }
  .stift-ende { flex: 1 1 auto; }
  .stift-ende .knopf, .stift-ende .knopf-zweit { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }
}

/* ---------- Seite „Skizze“: Statuszeile ----------
   25.11. (5d-19): Phasensatz und Infotexte zum Fahrzeug wechseln sich in EINER Zeile ab (erkannt.js); der eigene fette Infotext-Block
   mit ‹ 1 / 3 › ist weg */
/* Nichts springt (Nutzer 23.11.): Im neuen Ablauf wechseln Statuszeile und Merkmal-Zeile alle paar Sekunden, mal ein-, mal zweizeilig.
   Beide reservieren deshalb fest zwei Zeilen – so viel braucht der längste Satz am Laptop wie am Handy. Darunter bleibt alles stehen:
   „Das dauert …“, „Danke! …“ und „So geht’s weiter“. Gewechselt wird weich (kurzes Aus- und Einblenden, erkannt.js) */
/* 5d-19: In der Zeile wechseln sich Phasensatz und Infotexte ab (bis ~100 Zeichen = 3 Zeilen). Drei Zeilen sind von Anfang an frei,
   damit nichts springt, wenn die Infotexte kommen; ist einer am Handy noch länger, setzt erkannt.js die Höhe (weich) auf den längsten */
.erkannt.ablauf-neu #status-text { min-height: calc(3 * 1.42em); transition: opacity .35s ease, min-height .4s ease; }
.erkannt.ablauf-neu #status-text.wechsel { opacity: 0; }
/* Mehr Luft: Merkmal-Zeile → Kleingedrucktes → „Danke! …“ je 28 px (vorher 10 und 20) */
.erkannt.ablauf-neu #status-dauer { margin-top: 28px; }
/* 25.11. (5d-18): „Das dauert …“ und „Du kannst die Seite auch schließen …“ stehen direkt unter der Statuszeile (am Handy ohne Scrollen
   sichtbar). Die Statuszeile hält schon Platz für den längsten Text frei, daher hier wenig Luft; der Schließen-Satz in Tusche, damit man ihn sieht */
.erkannt.ablauf-neu #status-text + #status-dauer { margin-top: 14px; }
.status-zu { margin-top: 4px; color: var(--tusche); overflow-wrap: anywhere; }
/* Nachtrag 1 zu 5d-19 (Nutzer): Die Adresse des Kunden hervorheben – im kleinen Satz halbfett, im „Prima! …“ fett wie „Prima!“.
   Lange Adressen dürfen umbrechen, ohne das Layout zu sprengen */
.status-zu strong { font-weight: 600; }
#teaser-danke { overflow-wrap: anywhere; }
.erkannt.ablauf-neu:not(.skizze-da) .teaser { margin-top: 28px; }
/* 25.11. (Nutzer): Solange gezeichnet wird, steht der Dank („Danke! Die fertige Skizze schicken wir dir an …“) nicht da – erst im ersten Blick */
.erkannt.ablauf-neu:not(.skizze-da) .teaser { display: none; }
/* Polaroid zeigt das GANZE Foto (Nutzer 23.11.): Es nimmt das Seitenverhältnis des Fotos an (--a setzt erkannt.js), statt das Foto
   auf 3:2 zu beschneiden. Maße in cqw (Breite der Bühne .erkannt-foto, die 3:2 bleibt): Das Fenster ist höchstens 68,1 cqw breit und
   45,4 cqw hoch – so groß wie bisher bei einem 3:2-Foto; der Papierrand bleibt gleich breit (oben und seitlich 2,95 cqw, unten 9,9 cqw).
   Sobald die Skizze da ist (.skizze-da), gelten wieder die Regeln der Stilvorlage: Das Polaroid wächst zum Blatt. */
.erkannt .polaroid {
  --a: 1.5;
  --fb: min(68.1cqw, 45.4cqw * var(--a));
  --fh: min(45.4cqw, 68.1cqw / var(--a));
  width: calc(var(--fb) + 5.9cqw); height: calc(var(--fh) + 12.85cqw);
  left: calc((100cqw - var(--fb) - 5.9cqw) / 2); top: calc((66.667cqw - var(--fh) - 12.85cqw) / 2);
}
/* Bis das Foto geladen und die Größe gesetzt ist: kein Übergang, sonst sähe man das Polaroid seine Form wechseln */
.erkannt .polaroid:not(.bereit), .erkannt .polaroid:not(.bereit) .po-fenster { transition: none; }
.erkannt .po-fenster { left: 2.95cqw; right: 2.95cqw; top: 2.95cqw; bottom: 9.9cqw; }
.erkannt .po-fenster img { object-fit: contain; object-position: 50% 50%; }
.erkannt .po-text { bottom: 4cqw; }
/* Das kleine Foto an der Wand ebenfalls ganz; hochkant etwas schmaler, damit es nicht in die Skizze ragt */
.erkannt .erkannt-wand .schnappschuss img { object-fit: contain; }
.erkannt .erkannt-wand .schnappschuss.hoch { width: 15%; }

/* Wunschtext im ersten Blick (23.11.): unten in der Mitte des Blatts wie im Druck und wie an der Wand (.wand-wunsch: Unterkante 16 % der
   Blatthöhe, Schrift 2,3 % der Blattbreite). Das Blatt ist hier 91,8 % der Bühne breit, deshalb 2,11 cqw. Gleitet mit der Skizze an die Wand */
.teaser-wunsch {
  position: absolute; left: 14%; right: 14%; bottom: 16%; text-align: center; white-space: nowrap; color: var(--tusche);
  font: 500 2.11cqw/1 var(--wunsch); text-transform: uppercase; letter-spacing: .32em; padding-left: .32em;
}
.teaser-wunsch:empty { display: none; }

/* „So geht’s weiter“ (Paket „erster Blick“, 23.11.): senkrechte Liste in der rechten Spalte unter dem Dank, am Handy unter dem Bild.
   Je Schritt links die Ziffer (bzw. der Haken), rechts Titel und Text – Gestaltung von „So läuft’s“ (.ablauf in stil.css), nur schmaler */
.weiter { margin-top: clamp(26px, 3vh, 40px); }
.weiter-titel { margin: 0; font: 700 clamp(24px, 2vw, 30px)/1.05 var(--display); text-transform: uppercase; }
.weiter .ablauf { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 14px; }
.weiter .ablauf li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 10px; padding: 12px 0 14px; }
.weiter .ablauf li::before { grid-row: span 2; font-size: 58px; line-height: .9; }
.weiter .ablauf h3 { margin: 2px 0 6px; font-size: clamp(19px, 1.45vw, 22px); }
.weiter .ablauf p { font-size: 15.5px; line-height: 1.45; margin: 0; }
/* Erledigter Schritt: Haken statt Zahl */
.weiter .ablauf li.erledigt::before { content: "✓"; }
.weiter-klein { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--linie); }
@media (max-width: 860px) {
  .weiter .ablauf li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; }
  .weiter .ablauf li::before { font-size: 52px; }
}

/* ---------- Erster Blick an der Wand (Paket vom 23.11.) ----------
   Nur im neuen Ablauf (.ablauf-neu): Die Skizze erscheint scharf und direkt im Rahmen, weich eingeblendet. Den großen Zwischenschritt
   (.teaser-bild) und den Umschalter „An der Wand / Skizze“ gibt es vor der Durchsicht nicht mehr. Die Szene vergrößert erkannt.js
   (transform), sodass der ganze schwarze Rahmen groß und mittig steht. */
.erkannt.ablauf-neu .teaser-bild, .erkannt.ablauf-neu .ansicht-wahl { display: none; }
.erkannt.ablauf-neu .erkannt-wand { overflow: hidden; transition: opacity 1s ease; }
.erkannt.ablauf-neu.an-der-wand .erkannt-wand { transition: opacity 1s ease; }
.erkannt.ablauf-neu .erkannt-wand .wand-szene { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; }
/* Das Foto-Polaroid vom Hochladen bleibt unverändert stehen, bis die Wand darüber eingeblendet ist (statt zum Blatt zu wachsen) */
.erkannt.ablauf-neu.skizze-da .polaroid { left: calc((100cqw - var(--fb) - 5.9cqw) / 2); top: calc((66.667cqw - var(--fh) - 12.85cqw) / 2);
  width: calc(var(--fb) + 5.9cqw); height: calc(var(--fh) + 12.85cqw); transform: rotate(-1.5deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .18); }
.erkannt.ablauf-neu.skizze-da .polaroid .po-fenster { left: 2.95cqw; right: 2.95cqw; top: 2.95cqw; bottom: 9.9cqw; }
.erkannt.ablauf-neu.wand-modus .polaroid { visibility: visible; }
.erkannt.ablauf-neu.skizze-da .po-text { opacity: 1; }
/* Polaroid „Dein Foto“ über dem Heck: Lage und Breite setzt erkannt.js; Heck links leicht nach links gekippt, Heck rechts nach rechts */
.erkannt.ablauf-neu .erkannt-wand .schnappschuss { z-index: 2; transform: rotate(-4deg) translateY(12px); }
.erkannt.ablauf-neu .erkannt-wand .schnappschuss.rechts { transform: rotate(3.5deg) translateY(12px); }
.erkannt.ablauf-neu.an-der-wand .erkannt-wand .schnappschuss { transform: rotate(-4deg); transition: opacity .7s ease .9s, transform .7s ease .9s; }
.erkannt.ablauf-neu.an-der-wand .erkannt-wand .schnappschuss.rechts { transform: rotate(3.5deg); }
/* Raumansicht im ersten Blick (25.11.): ganzer Raum, gerade von vorn, unter dem Dank; blendet mit der Wand ein. Nur im neuen Ablauf.
   Seit Nachtrag 3 („nimm den blauen Raum“) die dunkelblaue Wand aus „Preise“ der Startseite mit beiden Rahmen – Lage der Papierflächen
   wie dort (start-e.css, gemessen in wand-paar.jpg 2000 × 1493; die Werte in stil.css gehören zum alten Entwurfsbild) */
.erkannt-raum { position: relative; margin: 28px 0 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; overflow: hidden; }
.erkannt-raum .preis-gross { left: 19.15%; top: 13.93%; width: 26.6%; height: 50.23%; }
.erkannt-raum .preis-klein { left: 52.95%; top: 28.13%; width: 20.8%; height: 22.04%; }
.erkannt-raum .preis-klein .skizze { top: 8.65%; height: 69.42%; }
.erkannt-raum .preis-klein:has(.wand-wunsch:empty) .skizze { top: 15.29%; }
.erkannt-raum .preis-klein .wand-wunsch { bottom: 17.75%; }
.erkannt-raum .preis-klein .wand-sign { bottom: 7.64%; }   /* 5g-10: Signatur 16 mm (2,58 % + 5,33 % × 0,9483) */
/* Handy: wie auf der Startseite bis an die Bildschirmränder und so vergrößert, dass beide Rahmen mittig mit gleichem Rand stehen */
@media (max-width: 600px) {
  .erkannt-raum { margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); }
  .erkannt-raum .preis-szene { width: 148%; margin-left: -18.7%; }
}
.erkannt-raum img { -webkit-user-drag: none; }
/* 29.11. (5f, Nutzer: „Ecken leicht abrunden?“): beide Raumbilder mit dem Radius der Startseite (--ecke, stil.css); am Handy laufen sie bis an den Rand und bleiben eckig */
@media (min-width: 861px) { .erkannt.ablauf-neu .erkannt-wand, .erkannt-raum { border-radius: var(--ecke); } }
.erkannt:not(.ablauf-neu) .erkannt-raum { display: none !important; }
.erkannt.ablauf-neu.skizze-da .erkannt-raum { opacity: 0; transition: opacity 1s ease .6s; }
.erkannt.ablauf-neu.an-der-wand .erkannt-raum { opacity: 1; }
.erkannt.ablauf-neu .erkannt-wand .schnappschuss figcaption { white-space: nowrap; }
/* Kopierschutz: durchsichtige Schicht über dem Bild, kein Markieren, kein „Bild sichern“ beim langen Drücken (iPhone) */
.erkannt-foto { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.erkannt-foto img { -webkit-user-drag: none; }
.bild-schutz { position: absolute; inset: 0; z-index: 5; }

@media (min-width: 861px) {
  /* Laptop: rechte Spalte etwas breiter für die Liste; alles auf dem ersten Bildschirm (1440 × 900) */
  .erkannt.ablauf-neu { grid-template-columns: minmax(0, 6.4fr) minmax(0, 4fr); column-gap: clamp(28px, 3.6vw, 60px); }
  .erkannt.ablauf-neu.skizze-da h1.mit-skizze { margin-top: 0; }
}
@media (max-width: 860px) {
  /* Handy: das Bild geht bis an die Bildschirmränder */
  .erkannt.ablauf-neu .erkannt-links { margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); }
  /* Seit 25.11. ist „So geht’s weiter“ ein eigenes Feld im Raster (unter beiden Spalten). Am Handy soll der Abstand zum Text darüber
     derselbe bleiben wie vorher in der Spalte: Zeilenabstand des Rasters wieder abziehen */
  .erkannt > .weiter { margin-top: calc(clamp(26px, 3vh, 40px) - clamp(28px, 5vw, 80px)); }
}

/* 25.11. (Nutzer: „Links das kleine Bild und rechts eine lange Spalte Text. Das kann man besser verteilen.“): Am Laptop steht
   „So geht’s weiter“ unter BEIDEN Spalten, die drei Schritte nebeneinander wie „So läuft’s“ auf der Startseite. Oben bleiben Bild und
   das Lebendige (Name, Fortschritt, Merkmale, Danke) nebeneinander – ungefähr gleich hoch. Das Polaroid wird dafür etwas größer
   (Fenster höchstens 74 × 49,3 statt 68,1 × 45,4 cqw); oben bündig bleibt alles, damit nichts springt, wenn rechts Zeilen wechseln. */
@media (min-width: 861px) {
  .erkannt .polaroid { --fb: min(74cqw, 49.3cqw * var(--a)); --fh: min(49.3cqw, 74cqw / var(--a)); }
  .erkannt > .weiter { grid-column: 1 / -1; margin-top: 0; }
  .erkannt > .weiter .ablauf { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin-top: 18px; }
  .erkannt > .weiter .ablauf p { max-width: 34em; }
  .erkannt > .weiter .weiter-klein { margin-top: 6px; }
  /* Alle drei Schritte oben bündig: Titel und Text rücken nicht auseinander, wenn ein Nachbar-Schritt mehr Zeilen hat */
  .erkannt > .weiter .ablauf li { align-content: start; }
}

/* Fotoprüfung: zweiter, leiser Knopf unter „Anderes Foto hochladen“ */
#erkannt-ab #trotzdem { display: block; margin-top: 10px; }
/* Im neuen Ablauf dauert es ein paar Minuten (Fortschritt: siehe unten, 5e-24) */

/* ---------- Seite „Skizze“: Fortschritt im neuen Ablauf (28.11., 5e-24, Nutzer: „wirkt hängend“) ----------
   Vorher lief der Strich per CSS in 200 s voll – bei 6–9 Minuten stand er danach still. Jetzt setzt erkannt.js die Breite nach dem echten
   Schritt vom Server: Innerhalb eines Schritts kriecht er gegen dessen Ende, insgesamt nie über ~95 %; 100 % erst bei „fertig“.
   Dazu eine helle Bahn (man sieht, dass noch etwas fehlt) und ein ruhiger Lichtstreifen, der immer wandert. */
.erkannt.ablauf-neu .status-bahn { margin-bottom: 12px; background: rgba(31, 59, 115, .1); border-radius: 6px 2px 5px 3px; }
.erkannt.ablauf-neu .status-strich { position: relative; overflow: hidden; width: 3%; margin: 0; animation: none; transition: width 1.2s linear; }
.erkannt.ablauf-neu .status-strich::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
  transform: translateX(-100%); animation: strich-glanz 3.6s ease-in-out infinite;
}
@keyframes strich-glanz { 70%, 100% { transform: translateX(225%); } }
/* Schrittliste unter dem Strich: Häkchen = erledigt (vom Server), Punkt pulsiert = läuft gerade, leerer Kreis = kommt noch */
.status-schritte { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.4; color: var(--grau); }
.status-schritte li { position: relative; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .4s ease; }
.status-schritte li::before {
  content: ""; flex: none; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(95, 98, 104, .45); background: transparent;
}
.status-schritte li[data-stand="fertig"] { color: var(--tusche); }
.status-schritte li[data-stand="fertig"]::before { border-color: var(--lack); background: var(--lack); }
/* Häkchen in CSS gezeichnet (Bilder per data:-Adresse lässt die Sicherheitsregel der Seite nicht zu) */
.status-schritte li[data-stand="fertig"]::after {
  content: ""; position: absolute; left: 5px; top: 50%; width: 3.5px; height: 7px; margin-top: -5px;
  border: solid #fff; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg);
}
.status-schritte li[data-stand="laeuft"] { color: var(--tusche); font-weight: 600; }
.status-schritte li[data-stand="laeuft"]::before { border-color: var(--lack); background-color: var(--lack); transform: scale(.62); animation: schritt-puls 1.8s ease-in-out infinite; }
@keyframes schritt-puls { 50% { transform: scale(.92); opacity: .55; } }
@media (max-width: 600px) { .status-schritte { gap: 3px 14px; font-size: 13px; } }

/* ---------- Durchsicht: Hinweisliste der automatischen Prüfungen und Steckbrief ---------- */
.ds-hinweise { margin-top: 18px; padding: 14px 16px; border: 1.5px solid #b4541a; background: #fbf3ec; }
/* Einklappbar (23.11.): Die Kopfzeile mit der Anzahl bleibt immer sichtbar */
.ds-hinweise .ds-panel-titel { margin: 0; cursor: pointer; }
.ds-hinweise[open] .ds-panel-titel { margin-bottom: 8px; }
.ds-hinweise ul, .ds-steckbrief ul { margin: 0 0 10px; padding: 0; list-style: none; }
.ds-hinweise li { position: relative; padding: 5px 0 5px 20px; font-size: 16px; line-height: 1.4; border-top: 1px solid var(--linie); }
.ds-hinweise li:first-child { border-top: 0; }
.ds-hinweise li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 9px; height: 9px; border-radius: 50%; background: var(--grau); }
.ds-hinweise li.grob { font-weight: 600; }
.ds-hinweise li.grob::before { background: #b3261e; }
.ds-hinweise li.klein::before { background: #c98a1b; }
.ds-hinweise li.info::before { background: var(--lack); }
.ds-hinweise .klein { margin: 0; }
.ds-hinweise-leer { margin-top: 14px; }
.ds-steckbrief { margin-top: 22px; border-top: 1px solid var(--linie); padding-top: 12px; }
.ds-steckbrief summary { cursor: pointer; font: 700 20px/1.2 var(--display); text-transform: uppercase; }
.ds-steckbrief .klein { margin: 8px 0; }
.ds-steckbrief li { padding: 4px 0; font-size: 15.5px; line-height: 1.4; border-top: 1px solid var(--linie); }

/* ---------- Durchsicht: Kundenfoto auf das Fahrzeug zugeschnitten (23.11.) ----------
   Lage und Größe beider Bilder rechnet durchsicht.js aus (Verschieben + Vergrößern von der linken oberen Ecke aus),
   damit Foto und Skizze dieselbe Stelle zeigen – zugeschnitten wie ganz, mit und ohne Lupe */
.ds-rahmen img { transform-origin: 0 0; }
.ds-rahmen img.ohne-uebergang { transition: none; }
#foto-schnitt { text-transform: none; }

/* ---------- Erster Blick, Anordnung C (25.11. abends, Nutzer: „Bilder auf gleicher Höhe abschließen lassen?“ → „C nebeneinander“) ----------
   Oben über die volle Breite Überschrift und Dank, darunter EINE Reihe: links die Sichtbeton-Nahansicht MIT Farbstrichen (Bühne 3:2),
   rechts der blaue Raum OHNE Farbstriche (wand-paar.jpg, 2000 × 1493). Die Spalten stehen im Verhältnis der Seitenverhältnisse
   (1,5 : 1,3396) – dann sind beide Bilder unbeschnitten exakt gleich hoch, oben und unten bündig. Danach „So geht’s weiter“.
   Handy und Tablet hochkant: Überschrift und Dank, dann beide Bilder untereinander, dann die Schritte. „Zeichnet“ bleibt wie es ist. */
.erkannt > .erkannt-raum { margin: 0; }
@media (min-width: 861px) {
  .erkannt.ablauf-neu.skizze-da { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3396fr); row-gap: clamp(36px, 3.4vw, 56px); }
  .erkannt.ablauf-neu.skizze-da > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .erkannt.ablauf-neu.skizze-da > .erkannt-links { grid-column: 1; grid-row: 2; }
  .erkannt.ablauf-neu.skizze-da > .erkannt-raum { grid-column: 2; grid-row: 2; aspect-ratio: 2000 / 1493; }
  .erkannt.ablauf-neu.skizze-da > .weiter { grid-row: 3; }
  /* Überschrift und Dank nebeneinander lesen sich als eine Zeile über den Bildern */
  .erkannt.ablauf-neu.skizze-da #erkannt-fertig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px clamp(24px, 3vw, 48px); }
  .erkannt.ablauf-neu.skizze-da #erkannt-fertig > .teaser { margin: 0; }
  .erkannt.ablauf-neu.skizze-da #erkannt-fertig > .teaser p { margin: 0; }
}
@media (max-width: 860px) {
  .erkannt.ablauf-neu.skizze-da > div:nth-child(2) { order: -1; }
  /* Blauer Raum bis an die Ränder; unten etwas vom Sideboard abgeschnitten (bis 78 % der Bildhöhe), die Rahmen bleiben ganz sichtbar */
  .erkannt.ablauf-neu > .erkannt-raum { margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); aspect-ratio: 1.718; }
}
@media (max-width: 600px) {
  .erkannt.ablauf-neu > .erkannt-raum { aspect-ratio: 1.1605; }
}

/* 25.11. (5d-18): Solange gezeichnet wird, ist die rechte Spalte mit „Du kannst die Seite auch schließen …“ etwas länger als das Foto –
   am Laptop steht das Foto deshalb mittig daneben, damit beide Spalten im Gleichgewicht bleiben */
@media (min-width: 861px) {
  .erkannt.ablauf-neu:not(.skizze-da) > .erkannt-links { align-self: center; }
}

/* 27.11. (5d-30, J-3): Foto-Tipps aufklappbar – erste Zeile (fetter Kernsatz) sichtbar, der Rest per Klick; mehr Luft zwischen den Punkten.
   Native details/summary (Tastatur und Vorleser gratis); das Plus dreht sich beim Öffnen zum Minus. */
.tipps .tipps-liste li { padding: 0; }
.tipps-liste summary { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 17px 0; cursor: pointer; list-style: none; line-height: 1.35; }
.tipps-liste summary::-webkit-details-marker { display: none; }
.tipps-liste summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--lack); transition: transform .18s; }
.tipps-liste details[open] summary::after { content: "–"; }
.tipps-liste summary:focus-visible { outline: 2px solid var(--tusche); outline-offset: 2px; }
.tipps-liste details p { margin: -4px 0 0; padding: 0 34px 18px 0; }
.tipps-liste li:last-child { border-bottom: 1px solid var(--linie); }
@media (max-width: 860px) {
  .tipps-liste summary { padding: 19px 0; }
  .tipps-liste details p { padding-bottom: 20px; }
}

/* ---------- 5g-9 (30.11.): Durchsicht mit mehreren Entwürfen, Strich-Knöpfen und „In Kästen korrigieren“ ---------- */
.ds-entwuerfe { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ds-entwurf { width: 100%; display: grid; gap: 4px; padding: 6px; font: inherit; text-align: left; background: #fff; border: 1.5px solid var(--linie); border-radius: 6px; cursor: pointer; }
.ds-entwurf img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #f6f6f4; }
.ds-entwurf-leer { display: grid; place-items: center; aspect-ratio: 3 / 2; background: #f6f6f4; font-size: 13px; color: var(--grau, #666); }
.ds-entwurf-name { font-size: 13.5px; font-weight: 600; }
.ds-entwurf-zahl { font-size: 12.5px; color: var(--grau, #666); }
.ds-entwurf-zahl.ds-grob { color: #a02c2c; font-weight: 600; }
.ds-entwurf[aria-pressed="true"] { border-color: var(--tusche, #161a20); box-shadow: 0 0 0 2px var(--tusche, #161a20); }
.ds-entwurf.ds-haupt { border-color: var(--lack, #c0392b); }
.ds-entwurf.ds-haupt .ds-entwurf-name { color: var(--lack, #c0392b); }
.ds-entwurf.ds-verworfen-entwurf { opacity: .55; }
.ds-strich-knoepfe { display: contents; }
.ds-kasten { display: grid; gap: 10px; }
.ds-kasten[hidden] { display: none; }
.ds-kasten p { margin: 0; }
.ds-kasten-flaeche { position: relative; max-width: 760px; width: 100%; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; line-height: 0; }
.ds-kasten-flaeche img { display: block; width: 100%; height: auto; pointer-events: none; background: #fff; }
.ds-kasten-box { position: absolute; border: 3px solid #ff00ff; background: rgba(255, 0, 255, .08); box-sizing: border-box; }
.ds-kasten-neu { border-style: dashed; }
.ds-kasten-nr { position: absolute; left: 2px; top: 2px; font: 700 12px/1 ui-monospace, monospace; color: #fff; background: #ff00ff; padding: 2px 4px; }
.ds-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; }
.ds-kasten textarea { font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--linie); background: #fff; resize: vertical; max-width: 760px; width: 100%; box-sizing: border-box; }
.ds-kasten-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ds-kasten-zeile .klein { margin-right: auto; }
