/* ==========================================================================
   Deal-Rechner: links die Schritte (kompakte Eingaben), rechts das Ergebnis, das beim
   Scrollen stehen bleibt. Schmaler als 1100 px: Ergebnis oben, dann die Schritte, beim
   Scrollen eine Ergebnis-Leiste. Design wie der Bereich Planen (bereiche.css): weiße Karten,
   Zahlen in grauen Feldern (--inset), Hervorhebung nur als dünne lila Umrandung (--accent).
   Keine Farbflächen, keine Verläufe.
   ========================================================================== */
.deal {
  display: flex; flex-direction: column; gap: var(--gap);
  /* Grafikfarben: Stufen der einen Akzentfarbe (Blau) und Grau, Bedeutungsfarben bleiben --pos/--neg */
  --dg-1: var(--reihe-1); --dg-2: var(--reihe-2); --dg-3: var(--ink-3); --dg-4: var(--line-2); --dg-5: var(--reihe-3);
}

/* ---------- Raster: Eingaben links, Ergebnis rechts ---------- */
.deal-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: var(--gap); align-items: start; }
.deal-links { min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.deal-rechts { min-width: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--head-h) + var(--side-luft, 12px) * 2 + env(safe-area-inset-top, 0px)); max-height: calc(100vh - var(--head-h) - 124px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 3px; margin: -3px; }
@media (max-width: 1099.98px) {
  .deal-raster { grid-template-columns: minmax(0, 1fr); }
  .deal-rechts { order: -1; position: static; max-height: none; overflow: visible; }
}
.deal-rechts .deal-liste { position: static; margin: 0; padding: 14px 16px; }
.deal-rechts .deal-liste .list { flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; padding: 0; }
.deal-rechts .deal-liste .list-item.deal-item { flex: none; min-width: 0; max-width: none; padding: 8px 10px; }
@media (max-width: 1099.98px) {
  .deal-rechts .deal-liste .list { flex-direction: row; overflow-x: auto; max-height: none; }
  .deal-rechts .deal-liste .list-item.deal-item { flex: 0 0 auto; min-width: 240px; }
}

/* ---------- Ergebnis: ruhige Karte, Kacheln auf --inset ---------- */
.deal-buehne { position: relative; min-width: 0; padding: 18px 20px; border-radius: var(--r-gross); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.deal-buehne .eyebrow { color: var(--ink-3); }
.db-gross-label { margin-top: 6px; color: var(--ink-2); }
.db-gross { margin: 2px 0 4px; font-size: clamp(32px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.db-gross.pos { color: var(--pos); }
.db-gross.neg { color: var(--neg); }
.db-unter { font-size: 13px; color: var(--ink-2); }
.db-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.db-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.db-kpi { min-width: 0; padding: 9px 12px; border-radius: var(--r-mittel); background: var(--inset); }
.db-kpi .label { color: var(--ink-3); }
.db-kpi b { display: block; margin-top: 2px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.db-kpi span { font-size: 11.5px; color: var(--ink-3); }
.deal-buehne .ampel-gut, .dm-leiste .ampel-gut { color: var(--pos); }
.deal-buehne .ampel-mittel, .dm-leiste .ampel-mittel { color: var(--warn); }
.deal-buehne .ampel-schlecht, .dm-leiste .ampel-schlecht { color: var(--neg); }
@media (max-width: 1099.98px) { .db-kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* Grafiken: im Ergebnis rechts zweispaltig (Wasserfall über die ganze Breite) */
.db-grafiken { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; margin-top: 12px; }
.db-breit { grid-column: 1 / -1; }
@media (min-width: 700px) and (max-width: 1099.98px) { .db-grafiken { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); } .db-breit { grid-column: auto; } }
.db-grafik { min-width: 0; margin: 0; padding: 10px 12px; border-radius: var(--r-mittel); background: var(--inset); }
.db-grafik figcaption { margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.dg-wasserfall, .dg-mess { display: block; width: 100%; height: auto; }
.dg-wasserfall { max-height: 170px; }
.dg-mess { max-width: 190px; margin: 0 auto; }
.dg-null { stroke: var(--line-2); stroke-width: 1; }
.dg-verbinder { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.dg-balken.start { fill: var(--reihe-1); }
.dg-balken.ab { fill: var(--neutral-bar); }
.dg-balken.tilg { fill: var(--reihe-2); }
.dg-balken.pos { fill: var(--pos-fill); }
.dg-balken.neg { fill: var(--neg-fill); }
.dg-wert { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.dg-achse { font-size: 11px; fill: var(--ink-3); }
.dg-zone { fill: none; stroke-width: 12; stroke-linecap: round; opacity: .8; }
.dg-zone.neg { stroke: var(--neg-fill); }
.dg-zone.warn { stroke: var(--warn-fill); }
.dg-zone.pos { stroke: var(--pos-fill); }
.dg-nadel { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--winkel)); transition: transform .5s var(--spring); }
.dg-nadel line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dg-nadel circle { fill: var(--ink); }
.db-mess-text { margin-top: -4px; text-align: center; }
.db-mess-text b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.db-mess-text span { display: block; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
.db-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (min-width: 700px) and (max-width: 1099.98px) { .db-ring { flex-direction: row; align-items: center; } }
.dg-ring { flex: none; width: 96px; height: 96px; }
.dg-ring-spur { fill: none; stroke: var(--track); stroke-width: 14; }
.dg-ring-teil { fill: none; stroke-width: 14; transform: rotate(-90deg); transform-origin: 60px 60px; }
.dg-ring-zahl { font-size: 13px; font-weight: 700; fill: var(--ink); }
.dg-f1 { stroke: var(--dg-1); background: var(--dg-1); }
.dg-f2 { stroke: var(--dg-2); background: var(--dg-2); }
.dg-f3 { stroke: var(--dg-3); background: var(--dg-3); }
.dg-f4 { stroke: var(--dg-4); background: var(--dg-4); }
.dg-f5 { stroke: var(--dg-5); background: var(--dg-5); }
.dg-legende { align-self: stretch; min-width: 0; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; }
.dg-legende li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; column-gap: 6px; min-width: 0; }
.dg-legende i { width: 8px; height: 8px; border-radius: var(--r-klein); }
.dg-legende span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.dg-legende b { font-weight: 600; font-variant-numeric: tabular-nums; }
/* Einwachsen nur beim ersten Zeichnen (Klasse „neu“), nicht bei jeder Eingabe */
.deal-buehne.neu .dg-balken { transform-box: fill-box; transform-origin: 50% 100%; animation: dg-wachsen .6s var(--spring) backwards; animation-delay: calc(var(--i) * 70ms); }
.deal-buehne.neu .dg-ring-teil { animation: dg-ring .8s var(--ease) backwards; animation-delay: calc(var(--i) * 80ms); }
.deal-buehne.neu .dg-nadel { animation: dg-nadel .9s var(--spring) backwards; }
@keyframes dg-wachsen { from { transform: scaleY(0); } }
@keyframes dg-ring { from { opacity: 0; } }
@keyframes dg-nadel { from { transform: rotate(-90deg); } }

/* Ergebnis-Leiste (nur schmal): klebt oben, sobald das Ergebnis aus dem Bild scrollt, nimmt keinen Platz ein */
.deal-mini { position: sticky; top: calc(var(--head-h) + 2 * var(--side-luft, 12px) + env(safe-area-inset-top, 0px) + 4px); z-index: 20; height: 0; margin-bottom: calc(-1 * var(--gap)); }
@media (min-width: 1100px) { .deal-mini { display: none; } }
.dm-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 9px 16px; border-radius: var(--r-gross); color: var(--ink); background: var(--card); box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity var(--dauer-2), transform var(--dauer-2); }
.deal-mini.an .dm-leiste { opacity: 1; transform: none; }
.dm-leiste span { display: flex; flex-direction: column; }
.dm-leiste small { font-size: 11px; color: var(--ink-3); }
.dm-leiste b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-leiste .pos { color: var(--pos); }
.dm-leiste .neg { color: var(--neg); }

/* ---------- Schritte: kompakt, damit das Ergebnis im Blick bleibt ---------- */
.deal-schritte { display: flex; flex-direction: column; gap: 12px; }
.deal .deal-schritt { padding: 16px 18px; scroll-margin-top: calc(var(--head-h) + 84px); }
/* gerade offener Schritt: nur eine dünne lila Umrandung */
.deal .deal-schritt.jetzt { box-shadow: 0 0 0 1.5px var(--ink-3), var(--shadow); animation: ds-rein .5s var(--spring) backwards; }
@keyframes ds-rein { from { opacity: 0; transform: translateY(14px); } }
.ds-kopf { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ds-kopf .h3 { font-size: 15px; }
.ds-kopf .sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.ds-nr { flex: none; width: 28px; height: 28px; border-radius: var(--r-rund); display: grid; place-items: center; background: var(--inset); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.deal-schritt.jetzt .ds-nr, .deal-schritt.erledigt .ds-nr { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.deal-schritt .form-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
.deal-schritt .field label { font-size: 12.5px; margin-bottom: 4px; }
.deal .deal-schritt .input, .deal .deal-schritt .select { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-mittel); font-size: 14px; background-color: var(--card); }
.deal .input:focus, .deal .select:focus { border-color: var(--accent); box-shadow: none; }
.ds-weitere { margin-top: 10px; }
.ds-weitere summary { cursor: pointer; width: fit-content; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.ds-weitere[open] summary { margin-bottom: 10px; }
.ds-fuss { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ds-fuss .btn { height: 34px; }
.ds-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: var(--r-mittel); background: var(--inset); }

/* Spielwiese: je Wert eine Zeile mit Name, Zahl und Regler */
.spiel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
@media (max-width: 760px) { .spiel-grid { grid-template-columns: minmax(0, 1fr); } }
.spiel { display: flex; flex-direction: column; gap: 4px; padding: 9px 12px; border-radius: var(--r-mittel); background: var(--inset); }
.spiel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spiel-label { font-size: 13px; font-weight: 600; }
.spiel.leer input[type=range] { opacity: .45; }
.spiel-kopf .input-wrap { flex: none; width: 140px; }
.deal .spiel-zahl { height: 32px; text-align: right; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.deal input[type=range] { accent-color: var(--ink); height: 20px; }

/* Portfolio-Wirkung: heute und mit Deal als Balkenpaar */
.dw-paare { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.dw-paar { padding: 10px 12px; border-radius: var(--r-mittel); background: var(--inset); }
.dw-zeile { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.dw-zeile span { color: var(--ink-3); }
.dw-zeile i { height: 8px; border-radius: var(--r-rund); background: var(--neutral-bar); transition: width .4s var(--ease); }
.dw-zeile.mit i { background: var(--reihe-1); }
.dw-zeile b { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Fortschritt unten: wie bei einer Anmeldung ---------- */
.deal-fortschritt { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 25; padding: 8px 12px 10px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-pop); }
@media (max-width: 1023.98px) { .deal-fortschritt { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
.df-balken { height: 4px; margin-bottom: 8px; border-radius: var(--r-rund); overflow: hidden; background: var(--track); }
.df-balken i { display: block; height: 100%; border-radius: var(--r-rund); background: var(--ink); transition: width .5s var(--spring); }
.df-liste { display: flex; justify-content: space-between; gap: 4px; margin: 0; padding: 0; list-style: none; }
.df-schritt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 6px; border: 0; border-radius: var(--r-mittel); background: none; color: var(--ink-3); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.df-schritt:hover:not([disabled]) { background: var(--hover); }
.df-schritt[disabled] { cursor: default; }
.df-punkt { width: 24px; height: 24px; border-radius: var(--r-rund); display: grid; place-items: center; background: var(--track); color: var(--ink-3); font-size: 11.5px; font-weight: 700; transition: background var(--dauer-2), box-shadow var(--dauer-2), color var(--dauer-2); }
.df-schritt.erledigt { color: var(--accent-text); }
.df-schritt.erledigt .df-punkt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.df-schritt.jetzt { color: var(--ink); }
.df-schritt.jetzt .df-punkt { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.df-schritt:focus-visible { outline: none; box-shadow: 0 0 0 1.5px var(--accent); }
@media (max-width: 640px) {
  .df-name { display: none; }
  .df-schritt.jetzt .df-name { display: block; }
  .deal-buehne { padding: 16px; }
  .spiel-kopf .input-wrap { width: 130px; }
  .dm-leiste { gap: 4px 18px; padding: 8px 14px; }
  .dm-leiste b { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .deal-buehne.neu *, .deal-schritt.jetzt { animation: none !important; }
  .dg-nadel, .dm-leiste, .df-balken i, .dw-zeile i { transition: none; }
}

/* Gespeicherte Deals: der gewählte nur mit lila Umrandung, ohne Farbfläche */
.deal .deal-liste .list-item.deal-item { border: 1px solid var(--line); background: transparent; }
.deal .deal-liste .list-item.deal-item.aktiv { border-color: transparent; background: transparent; box-shadow: 0 0 0 1.5px var(--accent); }
.deal .deal-liste .list-item.deal-item:focus-visible { outline: none; box-shadow: 0 0 0 1.5px var(--accent); }

/* ---------- Besichtigung im Deal ---------- */
.deal-besichtigung { padding: 16px 18px; }
.deal-besichtigung .card-head { margin-bottom: 8px; }
.db-bes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border-radius: var(--r-mittel); background: var(--inset); }
.db-bes-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.db-bes-titel:hover b { text-decoration: underline; }
.deal-sterne { color: var(--warn); font-size: 13px; letter-spacing: 1px; margin-left: 4px; }
.deal-sterne .aus { color: var(--line-2); }
.db-achtung { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-mittel); background: var(--inset); box-shadow: inset 0 0 0 1.5px var(--neg); }
.db-achtung b { display: flex; align-items: center; gap: 6px; color: var(--neg); }
.db-achtung ul { margin: 6px 0 0; padding-left: 20px; }
.db-achtung li { margin: 2px 0; }
.db-hinweis { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-mittel); background: var(--inset); color: var(--ink-2); font-size: 13px; }
.db-hinweis .ic { flex: none; margin-top: 2px; }
.uebernahme td { vertical-align: middle; }

/* ==========================================================================
   Deal-Rechner, Aufbau 11/2026 (.deal-v2): links eine Karte mit Reitern (Eckdaten, Mehr, Portfolio, Abschluss, Deals),
   rechts das Ergebnis mit Kennzahlenleiste. Desktop ohne Scrollen (1440 × 900 und 1280 × 720), keine verschachtelten
   Scrollbereiche: das Ergebnis klebt nicht und scrollt nicht für sich. Am Handy darf die Seite scrollen.
   ========================================================================== */
.deal-v2 { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); align-items: stretch; }
.deal-v2 .deal-rechts { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; }
.deal-eingaben { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 14px 16px 16px; }
.deal-reiter { align-self: flex-start; max-width: 100%; overflow-x: auto; }
.deal-inhalt { min-width: 0; }
.deal-panel { display: flex; flex-direction: column; gap: 12px; }
.deal-panel[hidden], .deal-unter[hidden] { display: none; }
.deal-unterreiter { align-self: flex-start; }
.deal-unter { display: flex; flex-direction: column; gap: 10px; }
.deal-zwischen { margin: 2px 0 -2px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.deal-tipp { margin: 0; }
.deal-form { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; }
.deal-v2 .spiel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.deal-v2 .spiel { padding: 8px 10px; }
.deal-v2 .spiel-kopf .input-wrap { width: 118px; }
.deal-v2 .ds-weitere { margin-top: 8px; }
.deal-objekt { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: start; }
.deal-ring-fig .db-ring { max-width: 190px; margin: 0 auto; }
.deal-panel .deal-liste, .deal-panel .deal-besichtigung { margin: 0; box-shadow: none; background: var(--inset); }

/* Ergebnis: Kopfzeile, ein Hauptwert, Kennzahlenleiste, Nebenwerte, eine Grafik */
.deal-v2 .deal-buehne { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.db-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.db-name { display: flex; flex-direction: column; min-width: 0; }
.db-name b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-v2 .db-gross { font-size: clamp(34px, 3.2vw, 44px); }
.db-leiste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.db-leiste .db-kpi { padding: 8px 10px; }
.db-leiste .db-kpi b { font-size: 16px; }
.db-leiste .db-kpi .label { font-size: 11.5px; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.db-neben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin: 12px 0 0; }
.db-neben div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; font-size: 12.5px; padding: 3px 0; box-shadow: inset 0 -1px 0 var(--line); }
.db-neben dt { color: var(--ink-3); min-width: 0; }
.db-neben dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.db-neben dd span { color: var(--ink-3); }
.deal-v2 .dg-wasserfall { max-height: 150px; }

/* Vergleich: zwei bis drei Deals nebeneinander, ein Hauptwert je Deal, der beste Wert je Zeile markiert (Symbol und Text) */
.dv { display: flex; flex-direction: column; gap: var(--abstand-karten); }
.dv-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dv-scroll { overflow-x: auto; }
.dv-scroll:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--akzent-schrift); }
.dv-raster { width: 100%; border-collapse: collapse; }
.dv-raster th.name { width: 200px; text-align: left; font-weight: var(--w-normal); }
.dv-raster thead th { text-align: right; font-weight: var(--w-normal); }
.dv-raster thead th.name { text-align: left; }
.dv-zelle { padding: 10px 14px; box-shadow: inset 0 -1px 0 var(--line); font-variant-numeric: tabular-nums; min-width: 0; }
.dv-zelle.spalte { padding-top: 16px; }
.dv-zelle.spalte b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-zelle.haupt { text-align: right; font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.dv-zelle.haupt.neg { color: var(--neg); } .dv-zelle.haupt.pos { color: var(--pos); }
.dv-zelle.name { color: var(--ink-3); font-size: 13px; }
.dv-zelle.wert { text-align: right; color: var(--ink-2); font-size: 14px; }
.dv-zelle.wert.bester { color: var(--ink); font-weight: 650; }
.dv-zelle .dv-marke { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); vertical-align: 1px; }
.dv-zelle.wert.gleich { color: var(--ink-3); }

@media (max-width: 1279.98px) { .deal-v2 .spiel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deal-objekt { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1099.98px) {
  .deal-v2 { grid-template-columns: minmax(0, 1fr); }
  .deal-v2 .deal-rechts { order: -1; }
}
@media (max-width: 760px) {
  .deal-v2 .spiel-grid { grid-template-columns: minmax(0, 1fr); }
  .db-leiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-neben { grid-template-columns: minmax(0, 1fr); }
  .dv-raster { min-width: 520px; }
  .dv-raster th.name { width: 120px; }
}
/* Desktop: der Deal-Rechner passt in eine Bildschirmhöhe; der große Abstand unten für das Dock entfällt hier
   (das Dock liegt über der leeren unteren Mitte der Eingabekarte, nichts Wichtiges darunter) */
@media (min-width: 1100px) {
  .content:has(> .deal .deal-v2) { padding-bottom: 16px; }
  .deal-v2 .spiel-label { font-size: 13px; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  .deal-v2 .dg-wasserfall { max-height: 118px; }
  .deal-v2 .db-gross { font-size: 34px; }
  .deal-v2 .deal-buehne { padding: 14px 16px; gap: 8px; }
  .deal-eingaben { padding: 12px 14px 14px; gap: 10px; }
}
