/* TUMS Brompton-Kalkulator – Runde 4 „Wow“ (4c: Abstände im 4/8-Raster, Typo-Skala 11–17 px, Aktionsfuß der Statuskarte;
   4d: keine große Bühne ab 1000 px, Mini-Vorschau unter dem Status, „Noch offen“ als Liste mit eigenen SVG-Symbolen)
   Dunkler TUMS-Rahmen mit Gold-Akzent, das Brompton-Produkt auf einer hellen Bühne, klare Schritte, große Karten.
   #status-tabelle: nur Farben, Schrift, Abstände, Linien, Breiten – keine Pseudo-Inhalte, kein text-transform,
   Display-Typen nativ (der markierte Text muss exakt dem Kopiertext entsprechen). */

@font-face{font-family:"Barlow Condensed";src:url(schrift/barlow-condensed-semibold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}

:root{
  --nacht:#1d1d1b;--nacht-2:#2b2a27;--nacht-text:#f3f0e9;--nacht-leise:#bdb8ad;
  --gold:#b5996a;          /* Original-Gold der TUMS-Website: nur Flächen und Akzente */
  --gold-linie:#8a7142;    /* Linien/große Schrift auf Hell (≥ 3:1) */
  --gold-tief:#7a6236;     /* Text und Auswahlrahmen auf Hell (≥ 4,5:1) */
  --gold-hell:#efe6d6;--gold-zart:#f8f4ec;
  --papier:#f5f3ee;--buehne:#f0ede7;--karte:#fff;
  --linie:#e3ded3;--linie-zart:#eeeae2;--linie-stark:#948c7c;
  --tinte:#1d1d1b;--text-2:#55514a;--text-3:#6b665c;
  --fehler:#b42318;--fehler-grund:#fdf0ee;--info:#24425f;--info-grund:#eef2f6;
  --radius:18px;--radius-k:14px;
  --schatten-k:0 2px 6px #1d1d1b08;                       /* Runde B: leichte Standardschatten, Auswahl über Kontur */
  --schatten-hoch:0 8px 24px #1d1d1b0d;
  --schatten-heben:0 6px 16px -6px rgba(29,29,27,.16);
  --schatten-schwebt:0 16px 40px -12px rgba(29,29,27,.38);   /* Runde C: Hinweis „Noch offen“, Rückgängig-Meldung */
  --display:"Barlow Condensed","Arial Narrow","Helvetica Neue",sans-serif;
  --text:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --raus:cubic-bezier(.2,.7,.2,1);
  --rand:16px;--kopf-h:64px;--schritte-h:60px;--status-b:clamp(340px,30vw,440px);--leiste-h:68px
}
@media (min-width:700px){:root{--rand:24px;--kopf-h:76px;--schritte-h:64px}}
@media (min-width:1000px){:root{--rand:32px}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--schritte-h) + 14px)}
body{margin:0;font:16px/1.45 var(--text);color:var(--tinte);background:var(--papier);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit;color:inherit}
a,button,input,label,select{touch-action:manipulation}
h1,h2,legend,.vt-modell{text-wrap:balance}
.vorschau-leer,.hilfe,.feld-hinweis{text-wrap:pretty}
img{max-width:100%}
code{background:var(--gold-zart);padding:0 5px;border-radius:5px;font-size:.92em}
:focus-visible{outline:3px solid var(--gold-tief);outline-offset:2px}
.unsichtbar{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.springen{position:absolute;left:12px;top:-80px;z-index:100;padding:12px 16px;border-radius:12px;background:var(--gold);color:var(--nacht);font-weight:700;text-decoration:none}
.springen:focus{top:12px}

/* ---------- Kopf: dunkles Band mit TUMS-Logo ---------- */
.kopf{background:var(--nacht);color:var(--nacht-text);border-bottom:1px solid rgba(181,153,106,.6)}
.kopf-innen{max-width:1440px;margin:0 auto;min-height:var(--kopf-h);display:flex;align-items:center;gap:8px 16px;
  padding:8px max(var(--rand),env(safe-area-inset-right)) 8px max(var(--rand),env(safe-area-inset-left))}
.marke{flex:none}
.marke img{display:block;width:84px;height:auto}
.kopf-innen{flex-wrap:wrap}
.kopf h1{order:3;flex:1 1 100%;min-width:0;margin:0;padding:8px 0 2px;border-top:1px solid rgba(255,255,255,.12);
  font:600 15px/1.1 var(--display);letter-spacing:.12em;text-transform:uppercase;color:var(--nacht-text);overflow-wrap:anywhere}
.kopf nav{display:flex;gap:8px;align-items:center;margin-left:auto}
.kopf :focus-visible{outline-color:var(--gold)}
.knopf.kopf-knopf{min-height:44px;padding:8px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.26);background:transparent;color:var(--nacht-text);font-size:15px}
@media (hover:hover){.knopf.kopf-knopf:hover{border-color:var(--gold);color:var(--gold);background:rgba(181,153,106,.08)}}
.kopf .lang{display:none}
@media (min-width:700px){
  .kopf-innen{flex-wrap:nowrap}
  .marke img{width:120px}
  .kopf h1{order:0;flex:1 1 auto;padding:0 0 0 18px;border-top:0;border-left:1px solid rgba(255,255,255,.18);font-size:22px;letter-spacing:.07em}
  .kopf .lang{display:inline}
}
@media (min-width:1000px){.marke img{width:136px}.kopf h1{font-size:25px;padding-left:22px}}

/* ---------- Knöpfe ---------- */
.knopf,.haupt{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:12px;
  font:600 16px/1.2 var(--text);text-decoration:none;cursor:pointer;
  transition:background-color .18s var(--raus),border-color .18s var(--raus),color .18s var(--raus),transform .12s var(--raus),box-shadow .18s var(--raus)}
.knopf{border:1px solid var(--linie-stark);background:var(--karte);color:var(--tinte)}
@media (hover:hover){.knopf:hover{border-color:var(--gold-tief);background:var(--gold-zart)}}
.haupt{border:1px solid var(--gold);background:var(--gold);color:var(--nacht);box-shadow:var(--schatten-k)}
@media (hover:hover){.haupt:hover{background:#c2a87b;border-color:#c2a87b}}
.haupt.erfolg,.haupt.erfolg:hover{background:var(--nacht);border-color:var(--nacht);color:var(--gold)}
button:active:not(:disabled),.knopf:active{transform:scale(.98)}
.knopf:active{background:var(--gold-zart)}
.knopf.kopf-knopf:active{background:rgba(181,153,106,.14)}
button:disabled,button:disabled:hover{opacity:.45;cursor:not-allowed;box-shadow:none}

/* ---------- Schritt-Leiste (sticky; auf dem Handy waagerecht wischbar) ---------- */
.schritte{position:sticky;top:0;z-index:30;height:var(--schritte-h);background:rgba(245,243,238,.92);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--linie)}
.schritte-innen{max-width:1440px;margin:0 auto;height:100%;display:flex;align-items:center;gap:12px;padding-left:max(var(--rand),env(safe-area-inset-left))}
.fortschritt{flex:none;margin:0;display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:52px;font-size:13px;line-height:1;color:var(--text-2);white-space:nowrap}
.fortschritt-text{display:block;min-height:19px}   /* Höhe reserviert: kein Sprung, wenn das Skript den Text setzt */
.fortschritt b{font:600 19px/1 var(--display);color:var(--tinte);letter-spacing:.02em}
.fortschritt .fs-von{font-size:12px}
.fortschritt .fs-rest{display:none}
.schritte.komplett .fortschritt-text::after{content:" ✓";color:var(--gold-tief);font-weight:700}
.balken{display:block;height:3px;border-radius:3px;background:var(--linie);overflow:hidden}
#fortschritt-balken{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold-linie),var(--gold));transform:scaleX(0);transform-origin:left center;transition:transform .4s var(--raus)}
.schritt-liste{position:relative;flex:1 1 auto;min-width:0;height:100%;display:flex;align-items:center;gap:4px;margin:0;padding:0 20px 0 8px;list-style:none;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 18px),transparent)}
.schritt-liste::-webkit-scrollbar{display:none}
.schritt-liste li{flex:none}
.schritt{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 12px 4px 8px;border-radius:999px;color:var(--text-2);
  font-size:15px;line-height:1.1;text-decoration:none;white-space:nowrap;transition:background-color .2s var(--raus),color .2s var(--raus),box-shadow .2s var(--raus)}
@media (hover:hover){.schritt:hover{background:rgba(29,29,27,.05);color:var(--tinte)}}
.schritt:active{background:rgba(29,29,27,.09)}
.schritt .nr{position:relative;display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;
  border:1.5px solid var(--linie-stark);background:var(--karte);font:600 13px/1 var(--display);letter-spacing:.03em;color:var(--text-2);
  transition:background-color .25s var(--raus),border-color .25s var(--raus),color .25s var(--raus)}
.schritt.optional .nr{border-style:dashed}
.schritt .opt-mini{font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--text-3)}
.schritt[aria-current="step"]{color:var(--tinte);font-weight:600;background:var(--karte);box-shadow:0 0 0 1px var(--linie),var(--schatten-k)}
.schritt[aria-current="step"] .nr{border-color:var(--nacht);background:var(--nacht);color:var(--gold)}
.schritt.erledigt .nr{border-color:var(--gold-hell);background:var(--gold-hell);color:transparent}   /* ruhig: das Fahrrad bleibt die Hauptsache */
.schritt.erledigt .nr::after{content:"";position:absolute;left:50%;top:50%;width:5px;height:10px;border:solid var(--gold-tief);border-width:0 2px 2px 0;
  transform:translate(-50%,-62%) rotate(45deg);animation:haken-ein .32s var(--raus)}
.schritt.fehler .nr{border-color:var(--fehler);color:var(--fehler);background:var(--fehler-grund)}
/* Runde C: offene Pflichtschritte kurz markieren (nach „Kopieren“ mit offenen Angaben) */
.schritt.markiert{color:var(--tinte);background:var(--gold-zart);box-shadow:0 0 0 2px var(--gold-tief)}
.schritt.markiert-leise{box-shadow:0 0 0 1px #d6d0c4}   /* weitere offene Schritte: nur ein feiner Ring (Astra Runde C) */
.schritt.markiert .nr{border-color:var(--gold-tief);color:var(--gold-tief)}
.schritt.markiert::before{content:"";position:absolute;inset:-4px;border-radius:inherit;box-shadow:0 0 0 4px rgba(181,153,106,.3);opacity:0;pointer-events:none;
  animation:markiert 1.2s var(--raus) 1}   /* ein Puls, nur über die Deckkraft */
@keyframes markiert{50%{opacity:1}}
@media (min-width:700px){
  .schritte-innen{gap:16px}
  .fortschritt{min-width:0}
  .fortschritt .fs-rest{display:inline}
  .balken{width:100%}
}
@media (min-width:1000px){
  /* Runde 4d: „x von 7“ steht ab hier im Kopf der Liste „Noch offen“ der (immer sichtbaren) Statuskarte – nicht doppelt */
  .schritte-innen{padding-left:calc(var(--rand) - 8px)}
  .fortschritt{display:none}
  .schritt{padding:4px 12px 4px 8px;font-size:15px}
}
@media (min-width:1000px) and (max-width:1199.98px){
  .schritt{gap:8px;padding:4px 8px;font-size:14px}   /* „optional“ bleibt sichtbar (Astra Runde D) – passt ohne Fortschritt auch bei 1024 px */
}

/* ---------- Raster: Status links (Desktop/iPad quer), Auswahl rechts ---------- */
.raster{max-width:1440px;margin:0 auto;display:flex;flex-direction:column;gap:24px;
  padding:16px max(var(--rand),env(safe-area-inset-right)) 32px max(var(--rand),env(safe-area-inset-left))}
.links{display:contents}   /* unter 1000 px: Bühne oben, Auswahl, Status am Ende (Reihenfolge per order) */
.vorschau{order:0}
.rechts{order:1;min-width:0}
.status{order:2;position:relative}
@media (min-width:1000px){
  .raster{display:grid;grid-template-columns:var(--status-b) minmax(0,1fr);gap:32px;align-items:start;padding-top:24px;padding-bottom:56px}
  .rechts,.status,.vorschau{order:0}
  /* Linke Spalte klebt: Statuskarte, darunter die Mini-Vorschau (Runde 4d). max-height der Karte und Größe der Vorschau setzt app.js
     (Kopf noch sichtbar → Karte kleiner; Vorschau nur im frei bleibenden Platz). Der Aktionsfuß klebt unten in der Karte. */
  .links{display:flex;flex-direction:column;gap:12px;min-width:0;position:sticky;top:calc(var(--schritte-h) + 20px)}
  .status{flex:none;max-height:calc(100vh - var(--schritte-h) - 40px);overflow:auto;overscroll-behavior:contain}
}

/* ---------- Status als edler Beleg ---------- */
.status{--status-p:24px;background:var(--karte);border-radius:var(--radius);padding:24px var(--status-p) 0;box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-hoch)}
.status::before{content:"";position:absolute;left:var(--status-p);right:var(--status-p);top:0;height:3px;border-radius:0 0 3px 3px;background:var(--gold)}
.status-kopf{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 4px;padding-bottom:12px;border-bottom:1px solid var(--linie)}
.status h2{margin:0;font:600 23px/1 var(--display);letter-spacing:.09em;text-transform:uppercase;color:var(--tinte)}
.beleg-datum{font-size:13px;color:var(--text-3);font-variant-numeric:tabular-nums;letter-spacing:.02em}
#status-tabelle{width:100%;border-collapse:collapse;font-size:15px;line-height:1.38}
#status-tabelle td{padding:8px 0;border-bottom:1px solid var(--linie-zart);vertical-align:top}
#status-tabelle td.leer{width:0;padding:0}
#status-tabelle td.name{color:var(--tinte);overflow-wrap:anywhere}   /* sehr lange Freitexte ohne Leerzeichen sprengen die Spalte nicht (weicher Umbruch, Text unverändert) */
#status-tabelle td.preis{text-align:right;white-space:nowrap;padding-left:12px;font-variant-numeric:tabular-nums;color:var(--tinte)}
#status-tabelle tr:first-child td.name{font-weight:600}
#status-tabelle tr.summe td{border-bottom:0;border-top:2px solid var(--tinte);padding-top:12px;padding-bottom:4px;vertical-align:baseline}
#status-tabelle tr.summe td.name{font-weight:600;font-size:16px}
#status-tabelle tr.summe td.preis{font:600 28px/1 var(--display);letter-spacing:.01em;font-variant-numeric:tabular-nums lining-nums}   /* 28 statt 30: die Summe bestimmt die Breite der Preisspalte */
.hinweise p{margin:12px 0 0;padding:8px 12px;border-radius:12px;font-size:14px;line-height:1.4}
/* „Noch offen“ (Runde 4d): ruhige Liste statt Pillen – Symbol, Name, Pfeil; Kopf mit „x von 7 gewählt“ und Balken */
.hinweise .offen{margin:12px 0 0;padding:12px 8px 4px;border-radius:12px;background:var(--papier);container-type:inline-size}
.hinweise .offen-kopf{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0;padding:0 8px;border-radius:0;font-size:13px;line-height:1.2}
.offen-titel{font:600 15px/1 var(--display);letter-spacing:.1em;text-transform:uppercase;color:var(--tinte)}
.offen-zahl{color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.offen-zahl b{font:600 17px/1 var(--display);letter-spacing:.02em;color:var(--tinte)}
.offen-balken{display:block;height:3px;margin:8px 8px 4px;border-radius:3px;background:var(--linie);overflow:hidden}
.offen-balken>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold-linie),var(--gold));transform-origin:left center}
.offen-liste{display:grid;grid-template-columns:minmax(0,1fr);column-gap:12px;margin:0;padding:0;list-style:none}
@container (min-width:280px){.offen-liste{grid-template-columns:repeat(2,minmax(0,1fr))}}
.offen-link{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;margin:0;padding:4px 4px 4px 8px;border:0;border-top:1px solid var(--linie);border-radius:0;
  background:none;color:var(--tinte);font:500 15px/1.25 var(--text);text-align:left;cursor:pointer;transition:background-color .18s var(--raus),color .18s var(--raus)}
.offen-link:focus-visible{outline-offset:-3px;border-radius:8px}   /* in der scrollbaren Karte nicht abgeschnitten */
.offen-link .sym{width:22px;height:22px;color:var(--gold-tief)}
.offen-name{flex:1 1 auto;min-width:0;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.offen-link .pfeil{width:16px;height:16px;color:var(--linie-stark);transition:transform .18s var(--raus),color .18s var(--raus)}
.offen-link.naechster .offen-name{font-weight:600}
.offen-link.naechster .pfeil{color:var(--gold-tief)}
.offen-link:active{background:rgba(181,153,106,.14)}
@media (hover:hover){.offen-link:hover{background:var(--gold-zart);border-radius:8px}.offen-link:hover .pfeil{color:var(--gold-tief);transform:translateX(2px)}}
@media (pointer:coarse){.offen-link{min-height:44px}}
@container (min-width:280px) and (max-width:339.98px){   /* schmale Statuskarte (iPad quer): zwei Spalten, etwas dichter – „Sattelstange“ passt */
  .offen-liste{column-gap:8px}
  .offen-link{gap:6px;padding:4px 2px 4px 4px;font-size:14px}
  .offen-link .sym{width:20px;height:20px}
  .offen-link .pfeil{width:14px;height:14px}
}
@media (max-width:999.98px){.offen-zahl,.offen-balken{display:none}}   /* darunter steht der Fortschritt in der klebenden Schritt-Leiste */
.hinweise .ok{display:flex;align-items:center;gap:8px;text-wrap:balance;background:var(--gold-zart);color:var(--gold-tief);font-weight:600;box-shadow:inset 0 0 0 1px var(--gold-hell);animation:ein .35s var(--raus)}
.hinweise .ok::before{content:"✓";display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--gold);color:var(--nacht);font-size:13px;font-weight:800}
.hinweise .fehler{background:var(--fehler-grund);color:var(--fehler)}
.hinweise .info{background:var(--info-grund);color:var(--info)}
/* Bis das Skript Status und Hinweise gefüllt hat, bleiben die Teile darunter unsichtbar (sonst springen sie beim ersten Malen) */
html:not(.js-bereit) .status-knoepfe,html:not(.js-bereit) #status-hinweis,html:not(.js-bereit) #kopiert{visibility:hidden}
/* Aktionsfuß (Runde C): Kopieren, Drucken, Rückmeldung – außerhalb der Tabelle; ab 1000 px klebt er unten in der Karte */
.status-aktionen{margin:0 calc(-1 * var(--status-p));padding:16px var(--status-p) 24px;background:var(--karte);border-radius:0 0 var(--radius) var(--radius)}
.status-knoepfe{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.status-knoepfe .haupt{min-height:52px;font-size:16px}
.status-knoepfe .knopf{min-height:44px;font-size:15px;border-color:var(--linie);color:var(--text-2)}
@media (hover:hover){.status-knoepfe .knopf:hover{color:var(--tinte)}}
/* Runde F: „Drucken | Excel“ nebeneinander unter „Für Warenwirtschaft kopieren“ – in jeder Lage derselbe Aufbau, gleiche Höhe, Symbol aus dem Sprite */
.neben-knoepfe{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.status-knoepfe .knopf{gap:8px;padding:8px 12px}
.status-knoepfe .knopf .sym{width:20px;height:20px;color:var(--gold-tief);transition:color .18s var(--raus)}
.status-knoepfe .knopf:disabled .sym{color:currentColor}
.status-knoepfe .knopf.erfolg,.status-knoepfe .knopf.erfolg:hover{border-color:var(--gold-hell);background:var(--gold-zart);color:var(--gold-tief)}
.meldung-klein{margin:8px 0 0;font-size:14px;line-height:1.4;white-space:pre-line}   /* Runde F: Dateiname der Excel-Datei in eigener Zeile */
.meldung-klein:empty{margin:0}
.meldung-klein.ok{color:var(--gold-tief)}
.meldung-klein.fehler{color:var(--fehler)}

/* iPad quer (1000–1199 px) und niedrige Bildschirme: Status kompakter, damit Summe und Kopierknopf ohne Scrollen sichtbar sind
   (in #status-tabelle nur Schrift, Abstände, Linien) */
@media (min-width:1000px) and (max-width:1199.98px),(min-width:1000px) and (max-height:860px){
  .raster{padding-top:16px}
  .links{top:calc(var(--schritte-h) + 12px)}
  .status{--status-p:16px;max-height:calc(100vh - var(--schritte-h) - 24px);padding-top:16px}
  .status-kopf{padding-bottom:8px;margin-bottom:0}
  .status h2{font-size:21px}
  #status-tabelle{font-size:15px;line-height:1.35}
  #status-tabelle td{padding:6px 0}
  #status-tabelle tr.summe td{padding-top:8px;padding-bottom:2px}
  #status-tabelle tr.summe td.preis{font-size:26px}
  .hinweise p{margin-top:8px;padding:8px 12px}
  .status-aktionen{padding:8px var(--status-p) 16px}
  .status-knoepfe .haupt{min-height:48px}
}
/* Niedrige Laptops (≥ 1200 × ≤ 860): alles in einer Zeile, damit die Statuskarte durch „Excel“ nicht wächst (K2 bei 1280 × 720 ohne
   inneres Scrollen) – Kopieren, daneben Drucken und Excel als schmale Knöpfe mit Symbol über der Beschriftung (Runde F).
   „Vollständig …“ steht hier in einer Zeile statt zwei. */
@media (min-width:1200px) and (max-height:860px){
  .status-knoepfe{grid-template-columns:minmax(0,1fr) auto;column-gap:6px}
  .status-knoepfe .haupt{padding:8px 10px;font-size:14px;line-height:1.15}
  .status-knoepfe .haupt .knopf-text{text-wrap:balance}
  .neben-knoepfe{grid-template-columns:repeat(2,58px);gap:6px}
  .status-knoepfe .knopf{flex-direction:column;gap:3px;min-height:48px;padding:4px 2px;font-size:12px;line-height:14px;letter-spacing:0}   /* Astra Runde F: 12/14 statt 11 px */
  .status-knoepfe .knopf .sym{width:20px;height:20px}
  .hinweise .ok{padding:8px 10px;font-size:13px}
  .hinweise .ok::before{width:20px;height:20px;font-size:12px}
}
@media (min-width:1000px){
  .status-aktionen{position:sticky;bottom:0;z-index:3;transition:box-shadow .2s var(--raus)}
  .status.ueberlauf .status-aktionen{box-shadow:0 -1px 0 var(--linie),0 -14px 18px -14px rgba(29,29,27,.22)}   /* darunter läuft die Tabelle weiter */
  .status.fragt .status-knoepfe,.status.fragt .hinweise .warn{display:none}   /* der Hinweis ersetzt Knöpfe und „Noch offen“, bis er beantwortet ist */
}

/* Hinweis „Noch offen“ beim Kopieren (statt Systemdialog). Ab 1000 px im Aktionsfuß, darunter schwebend über der Leiste */
.frage{position:relative;margin:0 0 8px;padding:16px;border-radius:var(--radius-k);background:var(--gold-zart);box-shadow:inset 0 0 0 1px var(--gold-hell);animation:ein .26s var(--raus)}
.frage[hidden]{display:none}
.frage-text{margin:0 40px 12px 0;font-size:15px;line-height:1.45;color:var(--text-2)}
.frage-text b{display:block;margin-bottom:4px;font:600 19px/1.1 var(--display);letter-spacing:.06em;text-transform:uppercase;color:var(--gold-tief)}
.frage-knoepfe{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.frage-knoepfe .haupt{min-height:48px}
.frage-knoepfe .knopf{min-height:44px}
.frage-zu{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:none;color:var(--text-2);font:400 24px/1 var(--text);cursor:pointer}
@media (hover:hover){.frage-zu:hover{background:rgba(29,29,27,.06);color:var(--tinte)}}
@media (max-width:999.98px){
  .frage{position:fixed;z-index:45;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(var(--leiste-h) + 12px + env(safe-area-inset-bottom));max-width:560px;margin:0 auto;
    background:var(--karte);box-shadow:0 0 0 1px var(--linie),inset 4px 0 0 var(--gold),var(--schatten-schwebt);animation:hoch .28s var(--raus)}
  .frage-text{padding-left:4px}
}
@media (min-width:560px) and (max-width:999.98px){.frage-knoepfe{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Rückmeldung „Auswahl zurückgesetzt · Rückgängig“ (8 s, Zeitlinie zeigt den Rest) */
.zurueck{position:fixed;z-index:50;right:max(var(--rand),env(safe-area-inset-right));bottom:24px;display:flex;align-items:center;gap:16px;overflow:hidden;
  padding:8px 8px 8px 20px;border-radius:var(--radius-k);background:var(--nacht);color:var(--nacht-text);font-weight:500;
  box-shadow:0 0 0 1px rgba(181,153,106,.35),var(--schatten-schwebt);animation:hoch .28s var(--raus)}
.zurueck[hidden]{display:none}
.zurueck::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--gold);transform-origin:left center}
.zurueck.laeuft::after{animation:ablauf 15s linear forwards}
.zurueck.pausiert::after{animation-play-state:paused}
.zurueck-knopf{min-height:44px;padding:8px 16px;border:0;border-radius:10px;background:rgba(181,153,106,.16);color:var(--gold);font-weight:700;cursor:pointer;
  transition:background-color .18s var(--raus)}
@media (hover:hover){.zurueck-knopf:hover{background:rgba(181,153,106,.28)}}
.zurueck :focus-visible{outline-color:var(--gold)}
@keyframes ablauf{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes hoch{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (max-width:999.98px){
  .zurueck{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(var(--leiste-h) + 12px + env(safe-area-inset-bottom));max-width:440px;margin:0 auto;justify-content:space-between}
}

/* ---------- Symbole (Runde 4d): eigener SVG-Satz, 24er-Raster, Strich 1,75, runde Enden, Farbe = currentColor ---------- */
.symbole{position:absolute;width:0;height:0;overflow:hidden}
.sym{display:block;flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Bühne (Runde 4d): kompakte Karte – Bild links, Modell/Farbe rechts; ab 1000 px Mini-Vorschau unter der Statuskarte ----------
   Unter 1000 px oben über der Auswahl (Handy Bild 120 px, iPad hoch 216 px hoch). Ohne Bild nur eine schmale Zeile (Bär + Satz).
   Antippen/Klick öffnet die große Ansicht (#bild-dialog). */
.vorschau{--bild-h:120px;position:relative;display:grid;grid-template-columns:calc(var(--bild-h) * 1.5) minmax(0,1fr);align-items:stretch;margin:0;
  background:var(--karte);border-radius:var(--radius);overflow:hidden;box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-k);transition:box-shadow .2s var(--raus)}
.vorschau-flaeche{position:relative;min-height:var(--bild-h);overflow:hidden;isolation:isolate;
  background:radial-gradient(120% 95% at 50% 8%,#fdfcfa 0%,#f4f1eb 52%,#e8e3d9 100%)}
.vorschau-flaeche::after{content:"";position:absolute;left:14%;right:14%;bottom:5.5%;height:9%;z-index:0;
  background:radial-gradient(closest-side,rgba(29,29,27,.17),rgba(29,29,27,0));opacity:0;transition:opacity .45s var(--raus)}
.vorschau.mit-bild .vorschau-flaeche::after{opacity:1}
.vorschau-bilder{position:absolute;inset:0;z-index:1;mix-blend-mode:multiply}   /* weißer Bildgrund verschmilzt mit der Bühne */
.vorschau-bilder img{position:absolute;inset:0;display:block;width:100%;height:100%;padding:4% 4% 5%;object-fit:contain;transition:opacity .32s var(--raus),transform .3s var(--raus)}
#vorschau-bild.laedt{opacity:0}
.vorschau-alt{z-index:2}
.vorschau-alt.weg{opacity:0}
.vorschau-bilder img[hidden],.vorschau-leerzustand[hidden],.vorschau-leer[hidden]{display:none}
.vorschau-leerzustand{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;text-align:center;animation:ein .4s var(--raus)}
.vorschau-leerzustand .baer{display:block;flex:none;width:40px;height:40px;padding:6px;border-radius:12px;background:var(--nacht);object-fit:contain;
  box-shadow:0 0 0 1px rgba(181,153,106,.35),0 8px 16px -10px rgba(29,29,27,.7)}
.vorschau-leer{margin:0;color:var(--text-2);font-size:15px;line-height:1.4}
html:not(.buehne-leer):not(.js-bereit) .vorschau-leerzustand{visibility:hidden}   /* gespeicherte Auswahl mit Bild: kein Aufblitzen des Bären */
.vorschau figcaption{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;min-width:0;padding:12px 14px 12px 12px}
#vorschau-titel{display:block;max-width:100%;min-width:0;font-size:14px;line-height:1.35;color:var(--text-2)}
#vorschau-titel.offen{color:var(--text-3)}
.vt-modell{display:block;margin-bottom:4px;font:600 19px/1 var(--display);letter-spacing:.05em;text-transform:uppercase;color:var(--tinte)}
.vt-modell+.vt-trenner{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vt-trenner{color:var(--text-3)}
.vt-farbe{color:var(--tinte);font-weight:500}
.vt-punkt{display:inline-block;width:12px;height:12px;margin-right:6px;border-radius:50%;vertical-align:-1px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 0 0 2px var(--karte),0 0 0 3px var(--linie)}
.vorschau .quelle{font-size:11.5px;line-height:1.3;color:var(--text-3)}
.vorschau .quelle[hidden]{display:none}
.vorschau-ansehen{display:none;align-items:center;gap:6px;margin-top:4px;font-size:13px;font-weight:600;line-height:1.2;color:var(--gold-tief);white-space:nowrap}
.vorschau.mit-bild .vorschau-ansehen{display:inline-flex}
.vorschau-ansehen .sym{width:16px;height:16px}
.vorschau-lupe{position:absolute;top:8px;right:8px;z-index:3;display:none;place-items:center;width:32px;height:32px;border-radius:50%;
  background:rgba(255,255,255,.92);color:var(--tinte);box-shadow:0 0 0 1px var(--linie),0 4px 10px -6px rgba(29,29,27,.5)}
.vorschau-lupe .sym{width:18px;height:18px}
/* Die ganze Karte ist der Knopf (unsichtbar darübergelegt, Name „Abbildung ansehen: …“) */
.vorschau-auf{position:absolute;inset:0;z-index:4;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:none;cursor:zoom-in}
.vorschau-auf[hidden]{display:none}
.vorschau-auf:focus-visible{outline:3px solid var(--gold-tief);outline-offset:-3px}
.vorschau:has(.vorschau-auf:active) #vorschau-bild{transform:scale(.985)}
@media (hover:hover){
  .vorschau:has(.vorschau-auf:hover){box-shadow:0 0 0 1px var(--linie-stark),var(--schatten-heben)}
  .vorschau:has(.vorschau-auf:hover) #vorschau-bild{transform:scale(1.03)}
}
/* Ohne Bild: eine schmale Zeile, keine leere Fläche */
html.buehne-leer .vorschau{grid-template-columns:minmax(0,1fr)}
html.buehne-leer .vorschau figcaption{display:none}
html.buehne-leer .vorschau-flaeche{min-height:0;background:var(--karte)}
@media (max-width:699.98px){   /* Handy: Lenker in eigener Zeile statt „Space Black ·“ / „Lenker …“ umgebrochen */
  .vorschau .vt-lenker{display:block}
  .vorschau .vt-farbe+.vt-trenner{display:none}
}
html.buehne-leer .vorschau-leerzustand{position:static;justify-content:flex-start;text-align:left}
@media (min-width:700px){
  .vorschau{--bild-h:216px}
  .vorschau figcaption{gap:8px;padding:16px 24px 16px 16px}
  #vorschau-titel{font-size:16px}
  .vt-modell{margin-bottom:8px;font-size:28px}
  .vt-punkt{width:14px;height:14px;margin-right:8px;vertical-align:-2px}
  .vorschau .quelle{font-size:12px}
  .vorschau-ansehen{font-size:14px}
  html.buehne-leer .vorschau-leerzustand{padding:12px 20px}
  html.buehne-leer .vorschau-leerzustand .baer{width:44px;height:44px}
  .vorschau-leer{font-size:16px}
}
/* Ab 1000 px: Mini-Vorschau unter der Statuskarte. data-groesse setzt app.js nach dem frei bleibenden Platz:
   voll (Bild über der Bildunterschrift) · mittel (Bild 120 px, Text daneben) · zeile (Daumenbild + „Abbildung ansehen“) · aus */
@media (min-width:1000px){
  html:not(.js-bereit) .vorschau{visibility:hidden}   /* erst an der endgültigen Stelle zeigen (Statuskarte füllt das Skript) */
  .vorschau{--bild-h:120px;flex:none;animation:ein-blass .25s var(--raus)}
  .vorschau[data-groesse="aus"]{display:none}
  .vorschau figcaption{gap:4px;padding:12px 16px 12px 8px}
  #vorschau-titel{font-size:14px}
  .vt-modell{margin-bottom:4px;font-size:20px}
  .vt-punkt{width:12px;height:12px;margin-right:6px;vertical-align:-1px}
  .vorschau .quelle{font-size:11.5px}
  .vorschau-ansehen{font-size:13px}
  html.buehne-leer .vorschau{height:64px}
  html.buehne-leer .vorschau-leerzustand{padding:10px 16px}
  html.buehne-leer .vorschau-leerzustand .baer{width:40px;height:40px}
  .vorschau-leer{font-size:14px}
  .vorschau[data-groesse="voll"]{grid-template-columns:minmax(0,1fr);align-items:stretch}
  .vorschau[data-groesse="voll"] .vorschau-flaeche{min-height:0;aspect-ratio:5/3}
  .vorschau[data-groesse="voll"] figcaption{padding:12px 16px 16px;border-top:1px solid var(--linie-zart)}
  .vorschau[data-groesse="voll"] .vt-modell{font-size:22px}
  .vorschau[data-groesse="voll"].mit-bild .vorschau-lupe{display:grid}
  .vorschau[data-groesse="voll"] .vorschau-ansehen{display:none}
  .vorschau[data-groesse="mittel"] .vorschau-ansehen{font-size:14px}   /* Astra Runde D: Handlung als Text, nicht nur als Symbol */
  .vorschau[data-groesse="zeile"]{--bild-h:44px;height:64px}
  .vorschau[data-groesse="zeile"] .vorschau-flaeche{min-height:0}
  .vorschau[data-groesse="zeile"] figcaption{gap:2px;padding:6px 12px 6px 4px}
  .vorschau[data-groesse="zeile"] .vorschau-ansehen{order:-1;margin:0;font-size:14px;color:var(--tinte)}
  .vorschau[data-groesse="zeile"] #vorschau-titel{overflow:hidden;font-size:12.5px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
  .vorschau[data-groesse="zeile"] .vt-modell{display:inline;margin:0;font:600 13px/1.3 var(--display);letter-spacing:.06em}
  .vorschau[data-groesse="zeile"] .vt-modell+.vt-trenner{position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .vorschau[data-groesse="zeile"] .vt-punkt{width:9px;height:9px;margin-right:4px;vertical-align:0}
  .vorschau[data-groesse="zeile"] .vt-lenker,.vorschau[data-groesse="zeile"] .vt-lenker+.vt-trenner,
  .vorschau[data-groesse="zeile"] .vt-farbe+.vt-trenner{display:none}
  .vorschau[data-groesse="zeile"] .quelle{font-size:11px}
}
@media (min-width:1000px) and (max-width:1199.98px){   /* Runde F: schmale Statusspalte (iPad quer) – „Abbildung ansehen ↗“ bleibt eine Zeile */
  .vorschau[data-groesse="mittel"] figcaption{padding-right:12px}
  .vorschau[data-groesse="mittel"] .vorschau-ansehen{gap:4px;font-size:13px}
  .vorschau[data-groesse="mittel"] .vorschau-ansehen .sym{width:14px;height:14px}
}

/* Große Ansicht (Runde 4d): eigenes Fenster wie die Druckvorschau – Fokusfalle per inert, Esc, Klick daneben, Fokus zurück */
html.bild-offen,html.bild-offen body{overflow:hidden}
.bild-dialog{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  background:rgba(29,29,27,.66);overscroll-behavior:contain;animation:ein-blass .2s var(--raus)}
.bild-dialog[hidden]{display:none}
.bild-fenster{display:flex;flex-direction:column;width:min(100%,1100px);max-height:100%;overflow:hidden;border-radius:var(--radius);background:#fff;
  box-shadow:0 0 0 1px rgba(181,153,106,.35),var(--schatten-schwebt);animation:hoch .26s var(--raus)}
.bild-kopfzeile{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 12px 12px 20px;background:var(--nacht);color:var(--nacht-text)}
#bild-titel{flex:1 1 260px;min-width:0;margin:0;font:500 15px/1.35 var(--text);color:var(--nacht-leise)}
#bild-titel .vt-modell{display:inline;margin:0;font:600 20px/1 var(--display);letter-spacing:.08em;color:var(--nacht-text)}
#bild-titel .vt-modell+.vt-trenner{position:static;width:auto;height:auto;overflow:visible;clip:auto}
#bild-titel .vt-trenner{color:var(--nacht-leise)}
#bild-titel .vt-farbe{color:var(--nacht-text)}
#bild-titel .vt-punkt{box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 0 0 2px var(--nacht),0 0 0 3px rgba(255,255,255,.3)}
.bild-knoepfe{display:flex;flex-wrap:wrap;gap:8px}
.bild-knoepfe .knopf{min-height:44px;padding:8px 16px;font-size:15px;border-color:rgba(255,255,255,.3);background:transparent;color:var(--nacht-text)}
@media (hover:hover){.bild-knoepfe .knopf:hover{border-color:var(--gold);color:var(--gold);background:rgba(181,153,106,.08)}}
.bild-knoepfe .knopf:active{background:rgba(181,153,106,.14)}
.bild-kopfzeile :focus-visible{outline-color:var(--gold)}
.bild-gross{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin:0;padding:16px 20px 12px;background:#fff}
.bild-gross img{display:block;flex:1 1 auto;min-height:0;width:100%;height:auto;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);object-fit:contain}
.bild-gross figcaption{align-self:flex-end;margin-top:4px;font-size:12px;color:var(--text-3)}
@media (min-width:700px){.bild-fenster{width:min(1100px,90vw)}}
@media (max-width:699.98px){
  .bild-kopfzeile{padding:12px}
  .bild-knoepfe{flex:1 1 100%}
  .bild-knoepfe .knopf{flex:1 1 auto}
  .bild-gross{padding:12px}
}

/* ---------- Runde E: Ausstattung im Detail ----------
   Runde Bauteil-Details (offizielle Brompton-Bauteilbilder auf Weiß, sonst eigenes Symbol auf Gold-zart, L/M/S als Buchstabe, ungewählt gestrichelt),
   bei einer Änderung: Überblenden 180 ms + goldener Ring 650 ms (kein Skalieren), kurz ein Punkt am Rad. Große Ansicht: Punkte mit Symbol, etwas
   abgerückt, Liste „Ausstattung“. Werte nach Astra Runde E. Die Leiste gehört zur Karte (miniGroesse misst sie mit), ist aber kein eigener Tab-Stopp.
   Unter 1000 px zeigt eine ruhige Rückmeldung über der Leiste das geänderte Detail, wenn die Bühne nicht im Bild ist. */
.details[hidden],.punkte[hidden],.detail-hinweis[hidden],.bild-fokus[hidden]{display:none}
.details{position:relative;z-index:3;min-width:0;padding:0 14px 12px 12px;pointer-events:none}
.details-reihe{display:grid;grid-template-columns:repeat(6,minmax(0,24px));gap:4px}
.detail{position:relative;display:block;aspect-ratio:1/1}
.d-kreis{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:#fff;color:#78643b;box-shadow:inset 0 0 0 1px var(--linie)}
.d-kreis img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.d-kreis .sym{width:60%;height:60%}
.d-kreis:not(.bild):not(.buchstabe){background:#f7f3e9;box-shadow:inset 0 0 0 1px var(--gold-hell)}
.d-kreis.offen{background:transparent;color:#8c897f;box-shadow:none;border:1px dashed #aaa69b}
.d-kreis.offen .sym{width:54%;height:54%}
.d-kreis.buchstabe{color:var(--tinte)}
.d-buchstabe{font:600 11px/1 var(--display);letter-spacing:.02em}
.details-zuletzt{display:none;margin:8px 0 0;font-size:13px;line-height:18px;color:var(--text-2);
  min-height:36px;overflow:hidden;display:none;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.details-zuletzt .dz-gruppe{font-weight:600;color:var(--tinte)}
/* Eine Änderung = eine ruhige Rückmeldung (bei reduzierter Bewegung: Bild sofort, Ring 800 ms statisch – „neu“ entfernt das Skript) */
.d-alt{z-index:1;animation:d-aus .18s linear forwards}
.detail.neu .d-kreis:not(.d-alt){animation:d-ein .18s linear both}
.detail.neu::after{content:"";position:absolute;inset:-5px;z-index:2;border-radius:50%;box-shadow:inset 0 0 0 2px #b29a69;opacity:0;animation:d-ring .65s ease-out}
.details-zuletzt.neu{animation:d-ein .18s linear}
@keyframes d-ein{from{opacity:0}to{opacity:1}}
@keyframes d-aus{to{opacity:0}}
@keyframes d-ring{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.detail.neu::after,.punkt.neu::after,.vorschau .punkt.neu{animation:none!important;opacity:1}}
/* Punkte am Rad (klein): nur kurz an der geänderten Stelle – 7 px Gold, weißer Rand, ein heller Ring wächst einmal auf 18 px */
.punkte{position:absolute;z-index:3;pointer-events:none;transition:transform .3s var(--raus)}
.vorschau .punkte{display:none}
.punkt{position:absolute;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:#b29a69;box-shadow:0 0 0 2px #fff,0 1px 3px rgba(29,29,27,.3)}
.vorschau .punkt.neu{animation:p-da 1.3s linear forwards}
.vorschau .punkt.neu::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:rgba(178,154,105,.32);
  transform:scale(.39);opacity:0;animation:p-ring .6s ease-out}
@keyframes p-da{0%{opacity:0}10%,77%{opacity:1}100%{opacity:0}}
@keyframes p-ring{0%{opacity:1;transform:scale(.39)}100%{opacity:0;transform:scale(1)}}
@media (hover:hover){.vorschau:has(.vorschau-auf:hover) .punkte{transform:scale(1.03)}}
/* Kompakte Karte (< 1000 px, Stufe „mittel“): Bild links über die ganze Höhe, rechts Bildunterschrift + Leiste als Gruppe mittig */
.vorschau.mit-details{grid-template-rows:1fr auto auto 1fr}
.vorschau.mit-details .vorschau-flaeche{grid-column:1;grid-row:1 / -1}
.vorschau.mit-details figcaption{grid-column:2;grid-row:2;padding-bottom:8px}
.vorschau.mit-details .details{grid-column:2;grid-row:3}
@media (min-width:700px) and (max-width:999.98px){   /* iPad hoch: Bild 324 × 216, Kreise 36 px, Punkt und letzte Änderung */
  .vorschau .punkte:not([hidden]){display:block}
  .details{padding:0 24px 16px 16px}
  .details-reihe{grid-template-columns:repeat(6,minmax(0,36px));gap:8px}
  .details-zuletzt{display:-webkit-box}
  .d-buchstabe{font-size:14px}
}
@media (min-width:1000px){
  .details{padding:0 16px 12px 8px}
  .details-reihe{grid-template-columns:repeat(6,minmax(0,28px));gap:6px}
  .d-buchstabe{font-size:12px}
  .vorschau[data-groesse="voll"].mit-details{grid-template-rows:auto auto auto}
  .vorschau[data-groesse="voll"].mit-details .vorschau-flaeche{grid-row:1}
  .vorschau[data-groesse="voll"].mit-details figcaption{grid-column:1;grid-row:2;padding-bottom:8px}
  .vorschau[data-groesse="voll"].mit-details .details{grid-column:1;grid-row:3;padding:4px 16px 16px}
  .vorschau[data-groesse="voll"] .details-reihe{grid-template-columns:repeat(6,minmax(0,36px));gap:8px}
  .vorschau[data-groesse="voll"] .details-zuletzt{display:-webkit-box}
  .vorschau[data-groesse="voll"] .d-buchstabe{font-size:14px}
  .vorschau[data-groesse="voll"] .punkte:not([hidden]){display:block}
  /* Stufe „Zeile“ (64 px): Daumenbild | Text | Kreise 18 px im 3 × 2-Raster rechts */
  .vorschau[data-groesse="zeile"].mit-details{grid-template-columns:calc(var(--bild-h) * 1.5) minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr)}
  .vorschau[data-groesse="zeile"].mit-details .vorschau-flaeche,.vorschau[data-groesse="zeile"].mit-details figcaption{grid-row:1}
  .vorschau[data-groesse="zeile"].mit-details figcaption{padding-bottom:6px}
  .vorschau[data-groesse="zeile"].mit-details .details{grid-column:3;grid-row:1;align-self:center;padding:0 12px 0 0}
  .vorschau[data-groesse="zeile"] .details-reihe{grid-template-columns:repeat(3,18px);gap:4px}
  .vorschau[data-groesse="zeile"] .d-buchstabe{font-size:10px}
  .vorschau[data-groesse="zeile"] .detail.neu::after{inset:-3px}
}

/* Rückmeldung am Handy/iPad hoch (nur wenn die Bühne nicht im Bild ist): 8 px über der Leiste, 3 s, Tipp → große Ansicht bei diesem Bauteil */
.detail-hinweis{display:none}
@media (max-width:999.98px){
  .detail-hinweis{position:fixed;z-index:44;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));
    bottom:calc(var(--leiste-h) + 8px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;max-width:440px;min-height:56px;margin:0 auto;
    padding:12px 14px 12px 12px;border-radius:12px;background:#fff;color:var(--tinte);box-shadow:0 0 0 1px var(--linie),0 10px 24px -12px rgba(29,29,27,.35);
    cursor:zoom-in;animation:d-ein .16s linear}
  .detail-hinweis.neu{animation:d-ein .16s linear}
  .dh-bild{position:relative;flex:none;width:32px;height:32px}
  .dh-bild.foto{width:48px;height:32px}
  .dh-bild.foto img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
  .dh-bild .d-buchstabe{font-size:14px}
  .dh-text{flex:1 1 auto;min-width:0;font-size:14px;line-height:18px;color:var(--text-2);overflow-wrap:anywhere}
  .dh-text b{font-weight:600;color:var(--tinte)}
  .detail-hinweis>.sym{flex:none;width:18px;height:18px;color:var(--gold-tief)}
}

/* Große Ansicht mit „Ausstattung“: ab 900 px Liste rechts neben dem Foto, darunter unter dem Foto */
.bild-inhalt{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;background:#fff}
.bild-inhalt .bild-gross{flex:none}
.bild-flaeche{position:relative;display:flex;min-height:0}
.bild-serie[hidden]{display:none}
.punkte.gross .punkt{width:6px;height:6px;margin:-3px 0 0 -3px;background:#b29a69;box-shadow:0 0 0 1.5px #fff}
.punkte.gross .punkt:not(.gewaehlt){background:#8c897f}
.p-linie{position:absolute;left:3px;top:2.5px;height:1px;background:#9b8a65;transform-origin:0 50%}
.p-marke{position:absolute;left:-8px;top:-8px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#8c897f;
  box-shadow:0 0 0 2px #fff,0 0 0 3px var(--linie-stark),0 2px 6px rgba(29,29,27,.2);pointer-events:auto;cursor:pointer}
.p-marke::before{content:"";position:absolute;inset:-11px;border-radius:50%}   /* Trefferfläche 44 px */
.p-marke .sym{width:12px;height:12px}
.punkte.gross .punkt.gewaehlt .p-marke{background:#b29a69;color:var(--nacht);box-shadow:0 0 0 2px #fff,0 2px 6px rgba(29,29,27,.28)}
.punkte.gross .punkt.aktiv .p-marke{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--nacht),0 2px 8px rgba(29,29,27,.3)}
.ausstattung[hidden]{display:none}
.ausstattung{padding:4px 16px 16px;border-top:1px solid var(--linie-zart)}
.ausstattung h3{margin:12px 0 8px;font:600 18px/1.1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--tinte)}
.aus-liste{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.aus-eintrag{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px;width:100%;min-height:68px;margin:0;padding:6px 8px;
  border:0;border-radius:12px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background .2s var(--raus)}
.aus-eintrag:focus-visible{outline:2px solid var(--gold-tief);outline-offset:2px}
@media (hover:hover){.aus-eintrag:hover:not(.aktiv){background:#fbf9f4}}
.aus-eintrag .d-kreis,.bild-fokus .d-kreis{position:relative;inset:auto;width:56px;height:56px}
.aus-eintrag .d-buchstabe{font-size:22px}
.aus-text,.bf-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.aus-gruppe{font:600 11.5px/1.2 var(--text);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.aus-name{font-size:15px;line-height:1.3;color:var(--tinte);overflow-wrap:anywhere}
.aus-eintrag.offen .aus-name{color:var(--text-3)}
.aus-foto{margin-top:2px;padding:2px 7px;border-radius:999px;background:#f0f2f4;color:#52616a;font-size:12px;line-height:16px}
.aus-eintrag.aktiv{background:#f7f3e9}
.aus-eintrag.aktiv::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;border-radius:2px;background:#b29a69}
.aus-eintrag.neu .d-kreis{animation:aus-ring .65s ease-out}
@keyframes aus-ring{0%,100%{box-shadow:inset 0 0 0 1px var(--linie)}25%{box-shadow:inset 0 0 0 1px var(--linie),0 0 0 3px rgba(178,154,105,.6)}}
.aus-quelle{margin:12px 8px 0;font-size:12px;line-height:1.4;color:var(--text-3)}
.bild-fokus{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--linie-zart);background:#f7f3e9}
.bild-fokus .d-kreis{width:36px;height:36px}
.bild-fokus .d-buchstabe{font-size:15px}
.bild-fokus .aus-foto{margin-top:4px}   /* + 2 px Lücke = 6 px Abstand zum Namen */
@media (min-width:560px) and (max-width:899.98px){.aus-liste{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:899.98px){.bild-gross img{max-height:min(56vh,calc(100dvh - 260px))}}
@media (max-width:699.98px){.p-marke{left:-7px;top:-7px;width:20px;height:20px}.p-marke::before{inset:-12px}}
@media (min-width:900px){
  .bild-dialog.mit-ausstattung .bild-fenster{width:min(1420px,94vw)}   /* Foto bleibt so groß wie in Runde D (≈ 1000 px bei 1440) */
  .bild-inhalt{display:grid;grid-template-columns:minmax(0,1fr) 300px;overflow:hidden}
  .bild-inhalt .bild-gross{min-height:0}
  .ausstattung{overflow:auto;max-height:calc(100dvh - 96px);padding:4px 16px 16px;border-top:0;border-left:1px solid var(--linie-zart)}
}

/* ---------- Abschnitte (01 Modell, 02 Handlebar …) ---------- */
.auswahl{margin-top:0}
.gruppe{border:0;margin:0 0 40px;padding:0;min-width:0}   /* Sprungziel unter der Leiste: scroll-padding-top am html */
.gruppe legend{float:left;width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0;padding:0 0 12px;border-bottom:1px solid var(--linie);
  font:600 23px/1.1 var(--display);letter-spacing:.05em;text-transform:uppercase;color:var(--tinte)}
.gruppe legend::before{content:attr(data-nr);font:600 30px/.9 var(--display);letter-spacing:.02em;color:var(--gold-linie);margin-right:2px}
.gruppe legend .pfl{order:2;padding:5px 10px 4px;border-radius:999px;background:var(--gold-hell);color:var(--gold-tief);
  font:700 11px/1 var(--text);letter-spacing:.1em;text-transform:uppercase}
.gruppe legend .pfl.optional{background:transparent;color:var(--text-2);box-shadow:inset 0 0 0 1px var(--linie-stark)}
.gruppe.erledigt legend::after{content:"✓";order:3;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--gold);color:var(--nacht);
  font:800 13px/1 var(--text);letter-spacing:0;animation:badge-ein .26s var(--raus)}
.gruppe legend .opt.leer{order:4;margin-left:auto}
@media (max-width:699.98px){
  .gruppe legend{font-size:21px;gap:4px 10px}
  .gruppe legend::before{font-size:26px}
  .gruppe.erledigt legend .pfl{display:none}
}
.optionen{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:16px}
.gruppe.farben .optionen{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gruppe:not(.mit-medien) .optionen{grid-template-columns:minmax(0,1fr);gap:12px}
@media (min-width:700px){
  .gruppe legend{font-size:26px}
  .gruppe legend::before{font-size:34px}
  .optionen{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-top:20px}
  .gruppe.wenige .optionen{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
  .gruppe.farben .optionen{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
  .gruppe:not(.mit-medien) .optionen{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media (min-width:1000px){.optionen{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---------- Optionen: große Karten (Bild/Farbfeld/Platzhalter) ---------- */
.opt{position:relative;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none}
.opt[hidden]{display:none}
.opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.opt:has(input:focus-visible){outline:3px solid var(--gold-tief);outline-offset:3px}
.opt .n{font-size:15px;line-height:1.4;font-weight:500;color:var(--tinte);overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.opt .p{font-size:15px;font-variant-numeric:tabular-nums;color:var(--text-2);white-space:nowrap}
.opt.gewaehlt .p{color:var(--tinte);font-weight:700}
.opt .nur{font-size:13px;line-height:1.3;color:var(--text-2)}
.opt.karte{flex-direction:column;overflow:hidden;background:var(--karte);border-radius:var(--radius-k);box-shadow:0 0 0 1px var(--linie),var(--schatten-k);
  transition:box-shadow .22s var(--raus),transform .22s var(--raus)}
@media (hover:hover){
  .opt.karte:not(.gesperrt):not(.gewaehlt):hover{transform:translateY(-2px);box-shadow:0 0 0 1px var(--linie-stark),var(--schatten-heben)}
  .opt.zeile:not(.gesperrt):not(.gewaehlt):hover{box-shadow:0 0 0 1px var(--linie-stark),var(--schatten-k)}
}
.opt.karte:active:not(.gesperrt),.opt.zeile:active:not(.gesperrt){transform:scale(.985)}
.opt.karte.gewaehlt{box-shadow:0 0 0 2px var(--gold-tief)}
/* Haken-Abzeichen (nur außerhalb des Status): Kreis = ::before, Haken = ::after */
.opt.karte.gewaehlt::before{content:"";position:absolute;top:10px;right:10px;z-index:2;width:30px;height:30px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 0 2px var(--karte),0 2px 5px rgba(29,29,27,.18);animation:badge-ein .26s var(--raus)}
.opt.karte.gewaehlt::after{content:"";position:absolute;top:17px;right:21px;z-index:3;width:7px;height:13px;border:solid var(--nacht);border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg);animation:badge-ein .26s var(--raus)}
.opt.karte .text{display:flex;flex:1 1 auto;flex-direction:column;justify-content:space-between;gap:8px;padding:16px;transition:background-color .22s var(--raus)}
.opt.karte .p{margin-top:auto}   /* Preise einer Reihe auf derselben Grundlinie (Karten einer Reihe sind gleich hoch) */
.opt.karte .p-zeile{display:flex;align-items:baseline;gap:8px;margin-top:auto}
.opt.karte .p-zeile .p{margin-top:0}
.p-art{font-size:13px;color:var(--text-3)}
.p-eigen{margin-top:-4px;font-size:13px;line-height:1.35;font-weight:600;color:var(--gold-tief);font-variant-numeric:tabular-nums}
.p-eigen[hidden]{display:none}
.opt.karte.gewaehlt .text{background:var(--gold-zart)}
.opt.karte .nur{order:1;align-self:flex-start;margin:12px 16px 0;padding:4px 10px;border-radius:999px;background:var(--papier);color:var(--text-2)}
.opt.karte .text{order:2}   /* Hinweis „nur bei …“ unter dem Bild → die Preise einer Reihe bleiben auf einer Grundlinie */
.opt.karte .medien{order:0}
.opt.karte.gewaehlt .nur{background:var(--gold-hell)}
.opt.gesperrt{cursor:not-allowed}
.opt.gesperrt .medien,.opt.gesperrt .text{opacity:.45;filter:grayscale(1)}
.opt.gesperrt .nur{box-shadow:inset 0 0 0 1px var(--linie-stark);color:var(--tinte);font-weight:600}
.opt.zeile.gesperrt .nur{width:auto;margin:0 0 0 38px;padding:4px 10px;border-radius:999px;background:var(--papier)}   /* gleiches Etikett wie bei Karten */
.medien{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;overflow:hidden;
  background:radial-gradient(120% 100% at 50% 0%,#fdfcfa 0%,#f1eee8 100%)}
.medien img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;opacity:0;transition:opacity .22s var(--raus),transform .35s var(--raus)}
.medien img.da{opacity:1}   /* sanft einblenden, sobald geladen (aus dem Cache sofort) */
@media (hover:hover){.opt.karte:not(.gesperrt):hover .medien img{transform:scale(1.03)}}
.medien.farbfeld{background:var(--karte)}
.medien .feld{position:absolute;inset:12px;border-radius:12px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.14),inset 0 -22px 34px -20px rgba(0,0,0,.45)}
.medien .feld::after{content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(140deg,rgba(255,255,255,.30) 0%,rgba(255,255,255,.06) 34%,rgba(255,255,255,0) 52%)}
.medien.ohne{background:radial-gradient(120% 100% at 50% 0%,#fbfaf7 0%,#efebe4 100%)}
.ph-gross{display:flex;flex-direction:column;align-items:center;font:600 64px/.9 var(--display);letter-spacing:.02em;color:var(--tinte)}
.ph-gross::after{content:"";width:26px;height:2px;margin-top:12px;background:var(--gold)}
.ph-text{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 12px;text-align:center;
  font:500 14px/1.3 var(--text);letter-spacing:.03em;color:var(--text-3)}
.ph-text::before{content:"";width:22px;height:1.5px;background:var(--gold)}
.ph-eigen{color:var(--text-3)}
.ph-eigen::before{content:"+";width:auto;height:auto;background:none;font:300 34px/1 var(--text);letter-spacing:0;color:var(--gold-linie)}
@media (min-width:700px){.ph-gross{font-size:76px}}
.gruppe.farben .opt.karte .text{padding:12px}
.gruppe.farben .opt.karte .n{font-size:14px}
/* iPad hoch (Runde 4d): 4 Spalten und flachere Kacheln – kürzerer Scrollweg (Abnahme-Check: +73 % durch die Bilder).
   Steht bewusst NACH den Grundregeln der Karten (gleiche Spezifität – sonst gewinnen 4:3, 76 px und 16 px Innenabstand). */
@media (min-width:700px) and (max-width:999.98px){
  .optionen{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .gruppe.wenige .optionen{max-width:600px}
  .gruppe.farben .optionen{gap:12px}
  .medien{aspect-ratio:3/2}
  .ph-gross{font-size:64px}
  .opt.karte .text{padding:12px 14px 14px}
  .opt.karte .nur{margin:10px 10px 0;padding:4px 8px;font-size:12px}
}
/* Zeilen (Gruppen ohne Bilder, z. B. Licht) */
.opt.zeile{align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:64px;padding:16px;background:var(--karte);border-radius:var(--radius-k);
  box-shadow:0 0 0 1px var(--linie),var(--schatten-k);transition:box-shadow .22s var(--raus),background-color .22s var(--raus),transform .22s var(--raus)}
.opt.zeile::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;background:var(--karte);box-shadow:inset 0 0 0 2px var(--linie-stark);transition:box-shadow .22s var(--raus)}
.opt.zeile.gewaehlt{background:var(--gold-zart);box-shadow:0 0 0 2px var(--gold-tief)}
.opt.zeile.gewaehlt::before{box-shadow:inset 0 0 0 7px var(--gold-tief)}
.opt.zeile .text{flex:1 1 0;min-width:0;display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.opt.zeile .nur{width:100%;padding-left:38px}
/* „Auswahl aufheben“ in der Abschnitts-Überschrift */
.opt.leer{align-items:center;min-height:44px;padding:0 8px;border:0;background:none;font:400 15px/1.2 var(--text);letter-spacing:0;text-transform:none;
  color:var(--text-3);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(107,102,92,.5);text-underline-offset:3px}
.opt.leer[hidden]{display:none}
@media (hover:hover){.opt.leer:hover{color:var(--tinte);text-decoration-color:currentColor}}

/* ---------- Freitext (andere Farbe, Upgrades) ---------- */
.frei{clear:both;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:16px 0 0;padding:20px 20px 16px 24px;border-radius:var(--radius-k);
  background:var(--karte);box-shadow:0 0 0 1px var(--linie),inset 3px 0 0 var(--gold),var(--schatten-k);animation:ein .3s var(--raus)}
.frei[hidden]{display:none}
.frei-kopf{grid-column:1/-1;margin:0;font:600 16px/1.2 var(--display);letter-spacing:.1em;text-transform:uppercase;color:var(--gold-tief)}
.frei .feld{display:flex;flex-direction:column;gap:8px;min-width:0}
.feld-name{font-size:14px;font-weight:600;color:var(--text-2)}
.frei input{width:100%;min-height:52px;padding:12px 16px;border:1px solid var(--linie-stark);border-radius:12px;background:var(--karte);color:var(--tinte);font-size:17px;
  transition:border-color .18s,box-shadow .18s}
.frei .frei-preis{font-variant-numeric:tabular-nums}
.frei input::placeholder{color:#8d877b}
@media (hover:hover){.frei input:hover:not(:focus){border-color:var(--gold-linie)}}
.frei input:focus{outline:none;border-color:var(--gold-tief);box-shadow:0 0 0 4px rgba(181,153,106,.32)}
.feld-hinweis{min-height:1.35em;font-size:13px;line-height:1.35;color:var(--text-3)}
.feld-hinweis.falsch{color:var(--fehler);font-weight:600}
input.falsch{border-color:var(--fehler)!important;background:var(--fehler-grund)!important}
@media (min-width:700px){.frei{grid-template-columns:minmax(0,1fr) 220px;gap:16px 20px}}

/* ---------- Untere Leiste (Handy/Tablet hoch): Summe, Stand, Kopieren, Status ---------- */
.leiste{display:none}
@media (max-width:999.98px){
  html{scroll-padding-bottom:calc(var(--leiste-h) + 16px + env(safe-area-inset-bottom))}   /* Leiste + 16 px + Safe Area */
  body.kalk{padding-bottom:calc(var(--leiste-h) + 16px + env(safe-area-inset-bottom))}
  .leiste{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;gap:8px;min-height:calc(var(--leiste-h) + env(safe-area-inset-bottom));
    padding:12px max(var(--rand),env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--rand),env(safe-area-inset-left));
    background:#1d1d1b;color:var(--nacht-text);border-top:1px solid rgba(181,153,106,.45);box-shadow:0 -4px 16px #0000000d}
  .leiste-summe{display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0}
  .leiste-label{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--nacht-leise)}
  #leiste-summe{font:600 24px/1 var(--display);letter-spacing:.01em;font-variant-numeric:tabular-nums lining-nums;color:#fff}
  /* „x/7“ ist ein Knopf: springt zur nächsten offenen Angabe (bzw. zum fehlerhaften Preis) */
  /* „5 offen“ / „Preis prüfen“ / „7/7“: ein Knopf mit Handlung (Astra Runde C) – sichtbare Pille 32 px, Trefferfläche 44 px */
  .leiste-stand{position:relative;isolation:isolate;flex:none;display:flex;align-items:center;justify-content:center;min-width:64px;max-width:76px;min-height:44px;padding:0 12px;border:0;border-radius:999px;
    background:none;cursor:pointer;font:600 14px/1.05 var(--display);letter-spacing:.05em;text-align:center;color:var(--gold)}
  .leiste-stand::before{content:"";position:absolute;z-index:-1;inset:6px 0;border-radius:999px;background:rgba(181,153,106,.14);box-shadow:inset 0 0 0 1px rgba(181,153,106,.55);
    transition:background-color .18s var(--raus)}
  .leiste-stand:active::before{background:rgba(181,153,106,.28)}
  @media (hover:hover){.leiste-stand:hover::before{background:rgba(181,153,106,.26)}}
  .leiste-stand.fertig{white-space:nowrap;max-width:none}
  .leiste-stand.fertig::after{content:"✓";margin-left:4px}   /* Zähler und Haken in einer Zeile (Astra-Nachkontrolle) */
  .leiste-stand.fehler{max-width:none;color:#ffb4a8;font-size:13px;white-space:nowrap}   /* Runde F: eine Zeile statt „Preis / prüfen“ */
  .leiste-stand.fehler::before{inset:2px 0;border-radius:12px;background:rgba(255,180,168,.12);box-shadow:inset 0 0 0 1px rgba(255,180,168,.65)}
  .leiste-knopf{flex:none;min-height:44px;min-width:96px;padding:8px 14px;border:0;border-radius:12px;background:var(--gold);color:var(--nacht);font-weight:700;font-size:16px;cursor:pointer;
    transition:background-color .18s var(--raus),transform .12s var(--raus)}
  @media (hover:hover){.leiste-knopf:hover:not(:disabled){background:#c2a87b}}
  .leiste-knopf.erfolg,.leiste-knopf.erfolg:hover{background:var(--nacht-text)}
  .leiste-knopf:disabled{opacity:.4}
  .leiste-status{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 4px;color:var(--nacht-text);font-weight:600;text-decoration:none}
  .leiste-status:active{color:var(--gold)}
  @media (hover:hover){.leiste-status:hover{color:var(--gold)}}
  .leiste :focus-visible{outline-color:var(--gold)}
}
@media (max-width:359.98px){.leiste-stand{display:none}}
.leiste.eng .leiste-stand{display:none}   /* Runde 4d: zu schmal für Betrag + „x offen“ (app.js misst) */
/* Handy: Bezeichnungen bekommen mehr Breite (nur Schrift, Breiten, Abstände – Tabelle und Text bleiben unverändert) */
@media (max-width:699.98px){
  .status{--status-p:16px}
  #status-tabelle{font-size:15px;line-height:1.4}
  #status-tabelle td.preis{width:76px;padding-left:10px}
  #status-tabelle tr.summe td.preis{font-size:24px}
}

/* ---------- Bewegung ---------- */
@keyframes ein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes badge-ein{from{opacity:0;transform:scale(.4)}to{opacity:1}}
@keyframes haken-ein{from{opacity:0}to{opacity:1}}
.opt.karte.gewaehlt::after{animation-name:haken-karte}
@keyframes haken-karte{from{opacity:0;transform:rotate(45deg) scale(.4)}to{opacity:1;transform:rotate(45deg)}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0s!important;animation-delay:0s!important;transition-duration:0s!important;transition-delay:0s!important;scroll-behavior:auto!important}
  .zurueck.laeuft::after{animation:none}   /* Zeitlinie steht still, die 8 s gelten trotzdem */
}

/* ---------- Druckblatt (A4) + Vorschau (Runde 4c) ----------
   Eigenes Blatt wie Wils Auftragsbestätigung: rundes TUMS-Logo mittig (schwarz, ohne Filter – invert greift im WebKit-Druck nicht),
   Titel, Datum, große Abbildung, Zusammenstellung (Text exakt wie der Status), Summe, Shop-Fußzeile. Maße in mm, damit Vorschau und
   Druck gleich aussehen; die Vorschau zeigt dasselbe Element verkleinert. */
.druckblatt{display:flex;flex-direction:column;box-sizing:border-box;width:210mm;min-height:297mm;padding:16mm 14mm 45mm;background:#fff;color:#1d1d1b;
  font:10.5pt/1.4 var(--text);text-align:left;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.druckblatt [hidden]{display:none!important}
.db-kopf{display:flex;justify-content:center;padding-bottom:4mm}
.db-logo{display:block;width:22mm;height:22mm}
.db-titelzeile{display:flex;align-items:flex-end;justify-content:space-between;gap:8mm;padding-bottom:3.5mm;border-bottom:.75pt solid #b5996a}
.db-titelblock{min-width:0}
.db-oberzeile{margin:0 0 1.6mm;font:700 8pt/1 var(--text);letter-spacing:.16em;text-transform:uppercase;color:#7a6236}
.db-titel{margin:0;font:600 23pt/1 var(--display);letter-spacing:.04em;text-transform:uppercase;color:#1d1d1b}
.db-farbe{margin:2mm 0 0;font-size:10.5pt;color:#55514a}
.db-punkt{display:inline-block;width:3mm;height:3mm;margin-right:2mm;border-radius:50%;vertical-align:-.3mm;box-shadow:inset 0 0 0 .3mm rgba(0,0,0,.22)}
.db-datum{display:flex;flex-direction:column;align-items:flex-end;gap:1mm;flex:none;margin:0;font-size:8pt;letter-spacing:.06em;text-transform:uppercase;color:#6b665c}
.db-datum b{font:600 11pt/1 var(--text);letter-spacing:0;text-transform:none;color:#1d1d1b;font-variant-numeric:tabular-nums}
.db-bild{margin:4mm 0 0;break-inside:avoid}
.db-bild img{display:block;width:100%;height:66mm;object-fit:contain}
.db-bild figcaption{margin-top:1.2mm;font-size:7.5pt;color:#6b665c;text-align:right}
.db-abschnitt{margin:5mm 0 0;padding-bottom:2mm;border-bottom:1pt solid #1d1d1b;font:600 11pt/1 var(--display);letter-spacing:.14em;text-transform:uppercase;break-after:avoid}
.db-tabelle{width:100%;border-collapse:collapse;font-size:10.5pt;line-height:1.35}
.db-tabelle tr{break-inside:avoid}
.db-tabelle td{padding:1.7mm 0;border-bottom:.5pt solid #e0dacf;vertical-align:top}
.db-tabelle td.leer{width:0;padding:0}
.db-tabelle td.name{overflow-wrap:anywhere}
.db-tabelle td.preis{padding-left:6mm;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.db-tabelle tr:first-child td.name{font-weight:600}
.db-tabelle tr.summe td{padding-top:2.6mm;border-bottom:0;border-top:1.2pt solid #1d1d1b;vertical-align:baseline}
.db-tabelle tr.summe td.name{font-size:11.5pt;font-weight:600}
.db-tabelle tr.summe td.preis{font:600 21pt/1 var(--display);letter-spacing:.01em;font-variant-numeric:tabular-nums lining-nums}
.db-offen{margin:3mm 0 0;font-size:9pt;color:#6b665c}
.db-fuss{display:flex;flex-direction:column;align-items:center;gap:1mm;margin-top:auto;padding-top:8mm;font-size:8pt;line-height:1.3;color:#55514a;text-align:center;break-inside:avoid}
.db-fuss::before{content:"";align-self:stretch;margin-bottom:2.2mm;border-top:.5pt solid #cfc8ba}

/* Vorschau-Fenster (eigenes Modal: Fokusfalle per inert, Esc, Klick daneben) */
html.druck-offen,html.druck-offen body{overflow:hidden}
.druck-dialog{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  background:rgba(29,29,27,.66);animation:ein-blass .2s var(--raus)}
.druck-dialog[hidden]{display:none}
.druck-fenster{display:flex;flex-direction:column;width:min(100%,920px);max-height:100%;overflow:hidden;border-radius:var(--radius);background:var(--papier);
  box-shadow:0 0 0 1px rgba(181,153,106,.35),var(--schatten-schwebt);animation:hoch .26s var(--raus)}
.druck-kopfzeile{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 12px 12px 20px;background:var(--nacht);color:var(--nacht-text)}
.druck-kopfzeile h2{margin:0 auto 0 0;font:600 20px/1 var(--display);letter-spacing:.1em;text-transform:uppercase}
.druck-knoepfe{display:flex;flex-wrap:wrap;gap:8px}
.druck-knoepfe .haupt,.druck-knoepfe .knopf{min-height:44px;padding:8px 16px;font-size:15px}
.druck-knoepfe .knopf{border-color:rgba(255,255,255,.3);background:transparent;color:var(--nacht-text)}
@media (hover:hover){.druck-knoepfe .knopf:hover{border-color:var(--gold);color:var(--gold);background:rgba(181,153,106,.08)}}
.druck-knoepfe .knopf:active{background:rgba(181,153,106,.14)}
.druck-kopfzeile :focus-visible{outline-color:var(--gold)}
.druck-hinweis{flex:1 1 100%;margin:0;font-size:14px;line-height:1.4;color:var(--gold)}
.druck-hinweis:empty{display:none}
.druck-buehne{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px}
.druck-massstab{width:max-content;margin:0 auto}
.druck-dialog.gross .druck-massstab{margin:0}   /* Originalgröße: in der Vorschau waagerecht und senkrecht verschiebbar */
.druck-buehne .druckblatt{box-shadow:0 0 0 1px var(--linie),0 18px 40px -20px rgba(29,29,27,.4)}
@keyframes ein-blass{from{opacity:0}to{opacity:1}}
@media (max-width:699.98px){   /* Runde F: zwei Zeilen statt drei – Titel | Schließen, darunter Drucken | Vergrößern (mehr Blatt im Bild) */
  .druck-kopfzeile{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 12px 12px 16px}
  .druck-knoepfe{display:contents}
  .druck-kopfzeile h2{grid-area:1/1;margin:0}
  #druck-zu{grid-area:1/2}
  #druck-los{grid-area:2/1}
  #druck-groesse{grid-area:2/2}
  .druck-knoepfe .haupt,.druck-knoepfe .knopf{padding:8px 12px}
  #druck-los{text-wrap:balance}
  .druck-hinweis{grid-column:1/-1}
  .druck-buehne{padding:12px}
}
@media (max-width:389.98px){.druck-knoepfe .haupt,.druck-knoepfe .knopf{padding:8px 10px;font-size:14px}}   /* iPhone SE/mini: „Drucken / als PDF sichern“ bleibt einzeilig */

/* Karte „So sieht der Ausdruck aus“ unter dem Status (nur Handy/iPad hoch) */
.druck-karte{order:3;display:flex;align-items:center;gap:16px;width:100%;padding:12px 16px 12px 12px;border:0;border-radius:var(--radius);background:var(--karte);
  color:var(--tinte);font:inherit;text-align:left;cursor:pointer;box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-k);transition:box-shadow .2s var(--raus),transform .12s var(--raus)}
@media (hover:hover){.druck-karte:hover{box-shadow:0 0 0 1px var(--linie-stark),var(--schatten-heben)}}
.dk-mini{position:relative;flex:none;width:84px;height:119px;overflow:hidden;border-radius:4px;background:#fff;box-shadow:0 0 0 1px var(--linie),0 6px 14px -8px rgba(29,29,27,.35)}
.dk-mini .druckblatt{position:absolute;left:0;top:0;transform:scale(.1058);transform-origin:0 0;pointer-events:none}   /* 84 px / 210 mm */
.dk-text{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:14px;line-height:1.4;color:var(--text-2)}
.dk-text b{font:600 18px/1.15 var(--display);letter-spacing:.05em;text-transform:uppercase;color:var(--tinte)}
.dk-text b::after{content:"\00a0→";color:var(--gold-linie)}
@media (min-width:1000px){.druck-karte{display:none}}

/* ---------- Druck: nur das A4-Blatt ---------- */
@media print{
  @page{size:A4;margin:16mm 14mm 14mm}
  html{scroll-padding:0}
  html,body{background:#fff!important}
  html.druck-offen,html.druck-offen body{overflow:visible!important}
  body.kalk{padding:0!important}
  body.kalk>:not(.druck-dialog){display:none!important}
  .druck-dialog,.druck-dialog[hidden]{display:block!important;position:static!important;padding:0!important;background:none!important;animation:none!important}
  .druck-fenster{display:block!important;width:auto!important;max-height:none!important;overflow:visible!important;border-radius:0!important;background:none!important;box-shadow:none!important;animation:none!important}
  .druck-kopfzeile{display:none!important}
  .druck-buehne{padding:0!important;overflow:visible!important}
  .druck-massstab{zoom:1!important;width:auto!important}
  .druck-buehne .druckblatt{width:auto;min-height:236mm;padding:0;box-shadow:none}
  /* Gleicher Satzspiegel wie die Vorschau (oben 16 mm, Inhalt mindestens 236 mm, Fußzeile darunter). Nicht bis zum Seitenende:
     Safari legt eigene Druckränder dazu – eine Mindesthöhe bis ganz unten erzeugt dort eine 2. Seite (gemessen mit webkit-print). */
}

/* ---------- Pflegeseite (gleicher Markenauftritt, Funktion unverändert) ---------- */
.pflege-main{max-width:1280px;margin:0 auto;padding:24px max(var(--rand),env(safe-area-inset-right)) 160px max(var(--rand),env(safe-area-inset-left))}
.meldung{padding:12px 16px;border-radius:12px;margin:0 0 16px;font-weight:600}
.meldung.ok{background:var(--gold-zart);color:var(--gold-tief);box-shadow:inset 0 0 0 1px var(--gold-hell)}
.meldung.fehler{background:var(--fehler-grund);color:var(--fehler)}
.meldung.info{background:var(--info-grund);color:var(--info)}
.anmelden{max-width:400px;margin:48px auto;background:var(--karte);border-radius:var(--radius);padding:32px 28px;display:flex;flex-direction:column;gap:16px;
  box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-hoch)}
.anmelden h2{margin:0;font:600 26px/1 var(--display);letter-spacing:.07em;text-transform:uppercase}
.anmelden label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:var(--text-2)}
.anmelden input,.pflege input[type=text],.pflege input[type=password]{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--linie-stark);border-radius:10px;background:var(--karte);color:var(--tinte);font-size:16px}
.pflege input[type=text]:focus,.pflege input[type=password]:focus{outline:none;border-color:var(--gold-tief);box-shadow:0 0 0 3px rgba(181,153,106,.3)}
.pflege input[type=checkbox]{width:20px;height:20px;accent-color:var(--gold-tief)}
.hilfe{background:var(--karte);border-radius:var(--radius);padding:20px 24px;margin:0 0 24px;font-size:15px;line-height:1.55;box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-k)}
.hilfe ul{margin:8px 0 0;padding-left:20px}
.hilfe li{margin:4px 0}
.klein-text{font-size:13px;color:var(--text-3);margin:8px 0 0}
.p-titel{display:flex;flex-direction:column;gap:8px;font-weight:600;margin:0 0 24px;max-width:520px;color:var(--text-2)}
.p-gruppe{background:var(--karte);border-radius:var(--radius);padding:20px;margin:0 0 16px;box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-k)}
.p-gkopf{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--linie)}
.pflege .p-gkopf .p-gname{max-width:340px;font-weight:700;font-size:17px}
.abzeichen{font-size:12px;letter-spacing:.06em;text-transform:uppercase;background:var(--gold-hell);color:var(--gold-tief);padding:4px 10px;border-radius:99px;font-weight:700}
.haken{display:inline-flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;min-height:40px}
@media (pointer:coarse){.haken{min-height:44px}}
.haken input{flex:none}
.klein{min-height:40px;min-width:40px;padding:4px 12px;border:1px solid var(--linie-stark);border-radius:10px;background:var(--karte);cursor:pointer;font-size:14px;font-weight:500;color:var(--tinte);
  transition:border-color .15s,background-color .15s}
@media (hover:hover){.klein:hover{border-color:var(--gold-tief);background:var(--gold-zart)}}
.klein.gefahr{color:var(--fehler)}
@media (hover:hover){.klein.gefahr:hover{border-color:var(--fehler);background:var(--fehler-grund)}}
@media (pointer:coarse){.klein{min-height:44px;min-width:44px}}   /* Wil pflegt auch am iPad */
.p-tab{width:100%;border-collapse:collapse;margin-bottom:12px}
.p-tab th{text-align:left;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);padding:8px;border-bottom:1px solid var(--linie)}
.p-tab td{padding:8px;border-bottom:1px solid var(--linie-zart);vertical-align:middle}
@media (hover:hover){.p-tab tbody tr:hover td{background:#fcfbf8}}
.p-tab td:nth-child(2){width:120px}
.pflege .p-tab input.p-preis{min-width:96px}   /* Preis immer lesbar (iPad hoch: vorher 38 px) */
.p-tab tr.aus td{opacity:.5}
.p-modelle{display:flex;flex-direction:column;gap:2px}
.p-modelle .haken{font-size:13px}
.p-knoepfe{display:flex;gap:6px;justify-content:flex-end}
.p-knoepfe .klein,.p-gkopf .klein{min-height:44px;min-width:44px}
.kasten{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer;border-radius:10px}
@media (hover:hover){.kasten:hover{background:var(--gold-zart)}}
.hilfe p{margin:0}
.hilfe-mehr{margin-top:10px}
.hilfe-mehr summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:var(--gold-tief);font-weight:600}
@media (hover:hover){.hilfe-mehr summary:hover{text-decoration:underline;text-underline-offset:3px}}
.hilfe-mehr[open] summary{margin-bottom:4px}
.speicherleiste{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  padding:12px max(24px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));
  background:#1d1d1b;color:var(--nacht-text);border-top:1px solid rgba(181,153,106,.45);box-shadow:0 -4px 16px #0000000d}
.speicherleiste .knopf{background:transparent;border-color:rgba(255,255,255,.3);color:var(--nacht-text)}
@media (hover:hover){.speicherleiste .knopf:hover{border-color:var(--gold);color:var(--gold);background:rgba(181,153,106,.08)}}
.speicherleiste :focus-visible{outline-color:var(--gold)}
.speicherleiste .knopf:active{background:rgba(181,153,106,.14)}
#speicher-status{flex:1 1 auto;font-weight:600;color:var(--nacht-leise)}
#speicher-status.offen{color:var(--gold)}
.fehlerliste{width:100%;color:#ffb4a8;font-size:14px}
.fehlerliste:empty{display:none}
.fehlerliste p{margin:2px 0}
.sicherungen{margin-top:32px;background:var(--karte);border-radius:var(--radius);padding:20px 24px;box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-k)}
.sicherungen h2,.p-vorschau h2{font:600 22px/1.1 var(--display);letter-spacing:.06em;text-transform:uppercase;margin:0 0 6px}
.sicherungen ul{list-style:none;margin:10px 0 0;padding:0}
.sicherungen li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--linie-zart)}
form.inline{display:inline}
.p-bild{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:360px}
.p-gruppe .p-tab td:first-child{min-width:210px}
.p-wahlzeile td{padding-top:0}
.p-mini{display:inline-flex;align-items:center;justify-content:center;width:80px;height:60px;flex:none;border-radius:10px;overflow:hidden;font-size:12px;color:var(--text-3);text-align:center;
  background:radial-gradient(120% 100% at 50% 0%,#fdfcfa,#f1eee8);box-shadow:0 0 0 1px var(--linie)}
.p-mini img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.p-mini.leer{background:repeating-linear-gradient(135deg,#f7f5f0 0 7px,#efebe4 7px 14px)}
.p-bild-knoepfe{display:flex;flex-wrap:wrap;gap:4px}
.klein.datei{position:relative;display:inline-flex;align-items:center;overflow:hidden}
.klein.datei input{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:0}
.klein.datei:focus-within{outline:3px solid var(--gold-tief);outline-offset:1px}
.p-hex{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-3)}
.pflege .p-hex input[type=text]{width:108px;min-height:40px;padding:4px 8px;font-size:14px;font-family:ui-monospace,Menlo,monospace}
@media (pointer:coarse){.pflege .p-hex input[type=text]{min-height:44px}}
.p-wahl{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;max-height:290px;overflow:auto;padding:12px;border-radius:12px;background:var(--papier);box-shadow:inset 0 0 0 1px var(--linie)}
.p-wahl .klein-text{width:100%;margin:0 0 2px}
.p-wahl-bild{padding:2px;border:2px solid transparent;border-radius:10px;background:var(--karte);cursor:pointer}
.p-wahl-bild.an{border-color:var(--gold-tief)}
@media (hover:hover){.p-wahl-bild:hover{border-color:var(--gold-tief)}}
.p-wahl-bild img{display:block;width:96px;height:72px;object-fit:contain}
.p-vorschau{background:var(--karte);border-radius:var(--radius);padding:20px;margin:24px 0 16px;box-shadow:0 0 0 1px var(--linie-zart),var(--schatten-k)}
.p-vorschau select{min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--linie-stark);border-radius:10px;background:var(--karte);color:var(--tinte);font-size:14px}
.p-zeile-knoepfe{display:flex;gap:8px;flex-wrap:wrap}
.pflege-main>.knopf,#editor>.knopf{margin:0 0 6px}
@media (max-width:999.98px){   /* Kartenansicht bis iPad hoch (vorher ≤ 800 px: Preisfeld auf 820 px nur 38 px breit) */
  .p-tab thead{display:none}
  .p-tab,.p-tab tbody,.p-tab tr,.p-tab td{display:block;width:100%}
  .p-tab tr{border-radius:12px;padding:8px 12px;margin-bottom:12px;box-shadow:0 0 0 1px var(--linie)}
  .p-tab td{border:0;padding:4px 0;width:auto!important}
  .pflege .p-tab input.p-preis{max-width:200px}
  .p-tab td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;font-size:12px;color:var(--text-3);margin-bottom:2px}   /* Beschriftung je Feld (alle Kartenbreiten) */
  /* Runde C (Astra): Karten verdichtet – Checkbox und Beschriftung in einer 44-px-Zeile */
  .p-gruppe .p-tab tbody tr{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 16px;align-items:start}
  .p-gruppe .p-tab td:nth-child(4),.p-gruppe .p-tab td:nth-child(6){display:flex;align-items:center;gap:4px;min-height:44px}
  .p-gruppe .p-tab td:nth-child(4)::before,.p-gruppe .p-tab td:nth-child(6)::before{order:2;margin:0!important;font-size:14px!important;color:var(--text-2)!important}
  .p-gruppe .p-tab td:nth-child(5):empty,.p-gruppe .p-tab td:nth-child(5):has(.p-modelle:empty){display:none}
  .p-gruppe .p-tab td:last-child .p-knoepfe{justify-content:flex-start}
}
@media (min-width:700px) and (max-width:999.98px){
  .p-gruppe .p-tab tbody tr{grid-template-columns:160px minmax(0,1fr)}
  .p-gruppe .p-tab td:nth-child(1),.p-gruppe .p-tab td:nth-child(5),.p-gruppe .p-tab td:nth-child(7){grid-column:1/-1}
  .p-gruppe .p-tab td:nth-child(2){grid-column:1;grid-row:2}
  .p-gruppe .p-tab td:nth-child(3){grid-column:2;grid-row:2/span 3}
  .p-gruppe .p-tab td:nth-child(4){grid-column:1;grid-row:3}
  .p-gruppe .p-tab td:nth-child(6){grid-column:1;grid-row:4}
  .pflege .p-gruppe .p-tab input.p-preis{max-width:144px}
}
.anmelden .baer{display:block;width:64px;height:64px;padding:10px;border-radius:18px;background:var(--nacht);object-fit:contain;box-shadow:0 0 0 1px rgba(181,153,106,.35)}
.anmelden .klein-text{margin:-8px 0 0}
.anmelden .haupt{margin-top:4px}
