/* Seitenblatt für Regal- und Klima-Ansicht; Farben kommen aus den Variablen der Seite (--d-…) */
.d-huelle { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.d-schleier { position: absolute; inset: 0; background: var(--d-schleier); opacity: 0; transition: opacity .3s; }
.d-blatt { position: absolute; top: 20px; right: 20px; bottom: 20px; width: 580px; overflow: auto; border-radius: var(--d-radius); background: var(--d-blatt); border: 1px solid var(--d-rand);
  box-shadow: var(--d-schatten); padding: 26px 28px 28px; transform: translateX(48px); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s;
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3); color: var(--d-text); scrollbar-width: thin; }
.d-huelle.auf { pointer-events: auto; } .d-huelle.auf .d-schleier { opacity: 1; } .d-huelle.auf .d-blatt { transform: none; opacity: 1; }
.d-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.d-pfad { font-size: 13px; color: var(--d-leise); }
.d-kopf h2 { margin: 4px 0 2px; font-size: 36px; font-weight: var(--d-gewicht); letter-spacing: -.02em; }
.d-unter { font-size: 14px; color: var(--d-leise); }
.d-zu { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--d-rand); background: var(--d-knopf); display: grid; place-items: center; cursor: pointer; color: var(--d-text); }
.d-reiter { display: flex; gap: 6px; margin: 18px 0 4px; flex-wrap: wrap; }
.d-reiter button { border: 1px solid var(--d-rand); background: var(--d-knopf); color: var(--d-leise); font: inherit; font-size: 13px; padding: 7px 13px; border-radius: 12px; cursor: pointer; }
.d-reiter button.an { background: var(--d-an); color: var(--d-an-text); border-color: transparent; }
.d-flaeche { background: var(--d-flaeche); border-radius: 22px; padding: 16px; margin-top: 12px; }
.d-zeichen { display: flex; gap: 16px; font-size: 12px; color: var(--d-leise); margin-top: 10px; flex-wrap: wrap; }
.d-zeichen i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.d-zeichen i.kiste { background: var(--d-kiste); } .d-zeichen i.koffer { background: var(--d-koffer); } .d-zeichen i.karton { background: var(--d-karton); } .d-zeichen i.frei { border: 1px dashed var(--d-rand-stark); }
.d-zeichen i.linie { height: 0; border-top: 2px solid var(--d-linie2); border-radius: 0; } .d-zeichen i.luecke { height: 0; border-top: 2px dashed var(--d-linie2); border-radius: 0; }
.d-hinweis { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--d-hinweis); font-size: 14px; line-height: 1.45; }
.d-hinweis b { font-weight: 500; }
.d-hinweis.leise { background: var(--d-flaeche); color: var(--d-leise); }
.d-knoepfe { display: flex; gap: 8px; margin-top: 12px; }
.d-haupt, .d-neben { font: inherit; font-size: 13px; padding: 9px 16px; border-radius: 12px; cursor: pointer; }
.d-haupt { border: 0; background: var(--d-an); color: var(--d-an-text); }
.d-neben { border: 1px solid var(--d-rand); background: var(--d-knopf); color: var(--d-text); }
.d-kiste { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--d-flaeche); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.d-kiste b { display: block; font-size: 19px; font-weight: 500; }
.d-kiste span { display: block; font-size: 13px; color: var(--d-leise); }
.d-kiste .d-knoepfe { grid-column: 1 / -1; }
.d-symbol { width: 42px; height: 42px; border-radius: 12px; display: block; }
.d-symbol.kiste, .d-punkt.kiste { background: var(--d-kiste); } .d-symbol.koffer, .d-punkt.koffer { background: var(--d-koffer); } .d-symbol.karton, .d-punkt.karton { background: var(--d-karton); }
.d-liste { margin-top: 12px; display: grid; gap: 2px; }
.d-liste button { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; text-align: left; border: 0; background: none; color: var(--d-text); font: inherit; padding: 9px 8px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.d-liste button:hover, .d-liste button.an { background: var(--d-flaeche); }
.d-punkt { width: 10px; height: 10px; border-radius: 3px; }
.d-ort { font-size: 12px; color: var(--d-leise); }
.d-werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.d-werte div { background: var(--d-flaeche); border-radius: 18px; padding: 14px; }
.d-werte span { font-size: 13px; color: var(--d-leise); display: block; }
.d-werte b { font-size: 30px; font-weight: var(--d-gewicht); letter-spacing: -.02em; }
.d-werte b small { font-size: 15px; color: var(--d-leise); margin-left: 2px; }
.d-werte em { font-style: normal; font-size: 12px; color: var(--d-leise); display: block; }
.d-titelzeile { display: flex; justify-content: space-between; font-size: 14px; margin: 4px 2px 6px; }
.d-titelzeile b { font-weight: 500; } .d-titelzeile span { color: var(--d-leise); font-size: 12px; }
.d-diagramm { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.d-gitter { stroke: var(--d-gitter); } .d-achse { font-size: 11px; fill: var(--d-leise); font-family: inherit; }
.d-grenze { stroke: var(--d-warn); stroke-dasharray: 4 4; } .d-grenztext { fill: var(--d-warn); }
.d-linie { fill: none; stroke-width: 2; stroke-linejoin: round; } .d-luecke { fill: none; stroke-width: 2; stroke-dasharray: 3 5; }
.d-linie.temp, .d-luecke.temp { stroke: var(--d-linie1); } .d-linie.feuchte, .d-luecke.feuchte { stroke: var(--d-linie2); }
.d-ende.temp { fill: var(--d-linie1); } .d-ende.feuchte { fill: var(--d-linie2); }
.d-ampel { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 30px; }
.d-ampel i { border-radius: 99px; background: var(--d-gitter); } .d-ampel i.gut { background: var(--d-gut); } .d-ampel i.schlecht { background: var(--d-warn); }
.d-ampel i.jetzt { outline: 2px solid var(--d-text); outline-offset: 2px; }
.d-ampeltage { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 12px; color: var(--d-leise); margin-top: 6px; }
.d-text { font-size: 14px; line-height: 1.45; color: var(--d-leise); margin: 12px 0 0; }
.d-leer { color: var(--d-leise); font-size: 14px; }

/* Regal: Ebenen als Bretter, Kisten als Kacheln */
.d-kopflinks { display: flex; gap: 16px; align-items: center; min-width: 0; }
.d-foto { width: 92px; height: 72px; flex: none; border-radius: 18px; background-repeat: no-repeat; border: 2px solid var(--d-rand); box-shadow: 0 8px 20px rgba(60,40,10,.16); }
.d-nummern { display: inline-flex; gap: 2px; padding: 4px; margin: 18px 0 2px; border-radius: 99px; background: var(--d-flaeche); }
.d-nummern button { width: 40px; height: 34px; border: 0; border-radius: 99px; background: none; color: var(--d-leise); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.d-nummern button:hover { color: var(--d-text); }
.d-nummern button.an { background: var(--d-an); color: var(--d-an-text); }
.d-gestell { margin-top: 12px; padding: 6px 16px 14px; border-radius: 24px; background: var(--d-gestell, var(--d-flaeche)); }
.d-zeile { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: end; padding-top: 12px; }
.d-ebnr { font-size: 12px; color: var(--d-leise); padding-bottom: 12px; }
.d-plaetze { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.d-platz { display: grid; gap: 5px; min-width: 0; }
.d-box { display: flex; align-items: center; gap: 9px; min-width: 0; border: 0; border-radius: 13px; padding: 11px 12px; background: var(--d-kachel, rgba(255,255,255,.92)); color: var(--d-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(60,40,10,.06), 0 6px 14px rgba(60,40,10,.06); transition: transform .18s, box-shadow .18s; }
.d-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-box i { width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--d-kiste); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.d-box.koffer i { background: var(--d-koffer); } .d-box.karton i { background: var(--d-karton); }
.d-box:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60,40,10,.08), 0 12px 22px rgba(60,40,10,.1); }
.d-box:focus-visible { outline: 2px solid var(--d-akzent); outline-offset: 2px; }
.d-box.an { box-shadow: 0 0 0 2px var(--d-akzent), 0 12px 22px rgba(60,40,10,.12); }
.d-platz-frei { height: 42px; display: grid; place-items: center; border-radius: 13px; border: 1.5px dashed var(--d-rand-stark); font-size: 12px; color: var(--d-leise); }
.d-planke { height: 7px; margin: 8px 0 0 62px; border-radius: 4px; background: linear-gradient(180deg, var(--d-planke, #ddd3c3), var(--d-planke2, #c9bca6)); box-shadow: 0 8px 12px -8px rgba(60,40,10,.4); }
.d-gestell .d-zeichen { margin-top: 14px; padding-left: 62px; }
.d-zeichen i { width: 10px; height: 10px; }
.d-tipp { font-size: 13px; color: var(--d-leise); margin: 12px 4px 0; }
/* In die Kiste schauen */
.d-symbol { background-size: cover; background-position: center; }
.d-foto-gross { position: relative; margin-top: 18px; border-radius: 24px; overflow: hidden; background: #222; aspect-ratio: 4 / 3; box-shadow: 0 14px 34px rgba(60,40,10,.18); }
.d-foto-gross img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.d-licht { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; pointer-events: none; }
.d-licht rect { transition: x .35s cubic-bezier(.2,.8,.2,1), y .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1); }
.d-foto-gross.zeigt .d-licht { opacity: 1; }
.d-punkt-foto { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: #2a2825; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  box-shadow: 0 0 0 5px rgba(255,255,255,.28), 0 6px 14px rgba(0,0,0,.3); transition: background .2s, color .2s, box-shadow .2s; }
.d-punkt-foto.neu { background: #f5b400; color: #2a2825; }
.d-punkt-foto.an { background: var(--d-akzent); color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.5), 0 6px 14px rgba(0,0,0,.3); }
.d-fotochip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 0; font: inherit; font-size: 12px; color: #2a2825;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.d-fotochip.rechts { left: auto; right: 12px; top: 12px; bottom: auto; cursor: pointer; }
.d-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.0) 40%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 60%, transparent 100%); background-size: 100% 250%; }
.d-foto-gross.scannt .d-scan { opacity: 1; animation: d-scan 1.5s cubic-bezier(.45,0,.25,1) both; }
.d-foto-gross.scannt img { filter: saturate(.7) brightness(.92); transition: filter .4s; }
@keyframes d-scan { from { background-position: 0 100%; } to { background-position: 0 0%; } }
.d-dinge { margin-top: 14px; }
.d-gruppe { font-size: 12px; color: var(--d-leise); margin: 14px 4px 6px; }
.d-ding { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 11px 12px; border-radius: 16px; cursor: default; transition: background .2s; outline: none; }
.d-ding[data-n] { cursor: pointer; }
.d-ding:hover, .d-ding.an, .d-ding:focus-visible { background: var(--d-flaeche); }
.d-ding b { display: block; font-size: 15px; font-weight: 500; }
.d-ding span { display: block; font-size: 13px; color: var(--d-leise); margin-top: 2px; line-height: 1.35; }
.d-ding em { font-style: normal; font-size: 13px; color: var(--d-leise); padding-top: 2px; }
.d-nr { width: 28px; height: 28px; border-radius: 50%; display: grid !important; place-items: center; margin: 0 !important; font-size: 12px !important; font-weight: 500; color: var(--d-text) !important; background: var(--d-kachel, #fff); box-shadow: 0 2px 6px rgba(60,40,10,.08); }
.d-ding.an .d-nr { background: var(--d-akzent); color: #fff !important; }
.d-ding.neu { background: rgba(245,180,0,.1); }
.d-ding.neu .d-nr { background: #f5b400; color: #2a2825 !important; }
.d-ding.fehlt b { color: var(--d-leise); }
.d-ding.fehlt .d-nr { background: none; box-shadow: none; border: 1.5px dashed var(--d-rand-stark); }
.d-haupt.klein, .d-neben.klein { padding: 7px 12px; font-size: 12px; }
.d-leerfoto { margin-top: 18px; padding: 34px 24px; border-radius: 24px; border: 1.5px dashed var(--d-rand-stark); text-align: center; color: var(--d-leise); }
.d-leerfoto b { display: block; color: var(--d-text); font-size: 17px; font-weight: 500; margin-top: 10px; }
.d-leerfoto p { font-size: 14px; line-height: 1.45; margin: 6px auto 16px; max-width: 34ch; }

/* Alle Messwerte (aufklappbar) */
.d-messliste { margin-top: 12px; border-radius: 22px; background: var(--d-flaeche); padding: 4px 6px; }
.d-messliste summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 10px; cursor: pointer; font-size: 15px; }
.d-messliste summary::-webkit-details-marker { display: none; }
.d-messliste summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin: 0 2px; }
.d-messliste[open] summary::before { transform: rotate(45deg); }
.d-messliste summary em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--d-leise); }
.d-rolle { max-height: 320px; overflow-y: auto; margin: 0 4px 8px; border-radius: 14px; background: var(--d-kachel, rgba(255,255,255,.7)); }
.d-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.d-tabelle th { position: sticky; top: 0; z-index: 1; background: var(--d-kachel, #fff); text-align: left; font-weight: 500; color: var(--d-leise); padding: 9px 12px; border-bottom: 1px solid var(--d-gitter); }
.d-tabelle td { padding: 7px 12px; border-bottom: 1px solid var(--d-gitter); }
.d-tabelle th:not(:first-child), .d-tabelle td:not(:first-child) { text-align: right; }
.d-tabelle tr.d-tag td { font-size: 12px; color: var(--d-leise); background: var(--d-flaeche); padding: 6px 12px; text-align: left; }
.d-tabelle tr.feucht td { color: var(--d-akzent); }
.d-tabelle tr.fehlt td { color: var(--d-leise); font-style: italic; }
.d-messfuss { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--d-leise); margin: 10px 4px 0; }
.d-messfuss a { color: var(--d-text); text-decoration: underline; text-underline-offset: 3px; }

/* Lüften je Tag */
.l-tage { display: grid; gap: 8px; margin-top: 8px; }
.l-zeile, .l-achse { display: grid; grid-template-columns: 26px 1fr 64px; gap: 10px; align-items: center; }
.l-zeile b { font-size: 13px; font-weight: 500; }
.l-zeile em { font-style: normal; font-size: 13px; text-align: right; color: var(--d-text); white-space: nowrap; }
.l-spur { position: relative; height: 16px; border-radius: 8px; background: var(--d-gitter); }
.l-spur i { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: var(--d-akzent); }
.l-spur s { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--d-text); }
.l-zeile:has(.l-spur:empty) em { color: var(--d-leise); }
.l-achse > div { position: relative; height: 14px; font-size: 11px; color: var(--d-leise); }
.l-achse > div span { position: absolute; transform: translateX(-50%); }
.l-achse > div span:first-child { transform: none; } .l-achse > div span:last-child { transform: translateX(-100%); }

/* Feuchte-Raster */
.hm { display: grid; gap: 3px; margin-top: 8px; }
.hm-zeile { display: grid; grid-template-columns: 26px repeat(12, 1fr); gap: 4px; align-items: center; }
.hm-zeile b { font-size: 12px; font-weight: 400; color: var(--d-leise); }
.hm-zeile i { aspect-ratio: 1; border-radius: 4px; background: var(--d-gitter); position: relative; }
.hm-zeile i.leer { background: none; }
.hm-zeile i.fehlt { background: none; border: 1px dashed var(--d-rand-stark); }
.hm-zeile i.hoch::after { content: ""; position: absolute; inset: 35%; border-radius: 50%; background: #fff; }
.hm-achse span { font-size: 10px; color: var(--d-leise); }
.hm-hilfe { font-size: 12px; color: var(--d-leise); margin: 2px 2px 0; }
.hm-achse span { white-space: nowrap; overflow: visible; }
.hm-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--d-leise); }
.hm-l { display: inline-flex; align-items: center; gap: 6px; }
.hm-l i { width: 12px; height: 12px; border-radius: 3px; flex: none; position: relative; }
.hm-l i.verlauf { width: 56px; height: 10px; background: linear-gradient(90deg, rgba(242,84,27,.1), rgba(242,84,27,1)); }
.hm-l i.fehlt { border: 1px dashed var(--d-rand-stark); }
.hm-l i.hoch { background: #f2541b; } .hm-l i.hoch::after { content: ""; position: absolute; inset: 35%; border-radius: 50%; background: #fff; }

/* Meldungs-Raster */
.hm-zeile i { aspect-ratio: 2 / 1; border-radius: 5px; }
.hm-zeile i.da, .hm-l i.da { background: #d9cfbf; }
.hm-zeile i.weg, .hm-l i.weg { background: rgba(242,84,27,.08); border: 1.5px dashed #f2541b; }

/* Powerstation im Regal */
.d-geraet { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 52px; border: 0; border-radius: 13px; padding: 10px 14px; cursor: pointer; text-align: left; font: inherit;
  background: var(--d-text); color: var(--d-blatt-text, #fbf6ec); box-shadow: 0 6px 16px rgba(42,40,37,.18); transition: transform .18s, box-shadow .18s; }
.d-geraet:hover { transform: translateY(-2px); }
.d-geraet.an { box-shadow: 0 0 0 2px var(--d-akzent), 0 10px 22px rgba(42,40,37,.22); }
.d-geraet i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--d-akzent); color: #fff; }
.d-geraet b { display: block; font-size: 13px; font-weight: 500; } .d-geraet small { display: block; font-size: 11px; opacity: .7; }
.d-symbol.geraet { display: grid; place-items: center; background: var(--d-akzent); color: #fff; }
.d-platzwahl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; }
.d-platzwahl label { display: grid; gap: 4px; font-size: 12px; color: var(--d-leise); }
.d-platzwahl select { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--d-rand-stark); background: var(--d-kachel, #fff); color: var(--d-text); }

/* Regal als Raster: je Ebene 2 Plätze × 2 Lagen, Größe je Art */
.d-fach { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 38px 38px; gap: 5px 8px; }
.d-fach .d-box { height: 100%; padding: 0 12px; min-height: 0; }
.d-box.geraet { background: var(--d-text); color: #fbf6ec; }
.d-box.geraet .d-blitz { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--d-akzent); color: #fff; }
.d-box.geraet b { display: block; font-size: 13px; font-weight: 500; } .d-box.geraet small { display: block; font-size: 11px; opacity: .7; }
.d-box.geraet span { white-space: normal; }
.d-fach .d-platz-frei { height: auto; display: grid; place-items: center; border-radius: 13px; border: 1.5px dashed var(--d-rand-stark); background: transparent; color: var(--d-leise); font: inherit; font-size: 18px; cursor: pointer; transition: background .2s, color .2s; }
.d-fach .d-platz-frei:hover { background: var(--d-kachel, #fff); color: var(--d-akzent); border-style: solid; }
.d-zeichen i.geraet { background: var(--d-text); }
.d-symbol.geraet { display: grid; place-items: center; background: var(--d-akzent); color: #fff; }
.d-formular { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--d-flaeche); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.d-formular > b { grid-column: 1 / -1; font-size: 16px; font-weight: 500; }
.d-formular .breit { grid-column: 1 / -1; }
.d-formular label { display: grid; gap: 4px; font-size: 12px; color: var(--d-leise); }
.d-formular input, .d-formular select { font: inherit; font-size: 14px; color: var(--d-text); padding: 9px 11px; border-radius: 11px; border: 1px solid var(--d-rand-stark); background: var(--d-kachel, #fff); }
.d-formular select:disabled { opacity: .45; }
.d-fehler { grid-column: 1 / -1; margin: 0; min-height: 0; font-size: 13px; color: #b8400f; }
.d-fehler:empty { display: none; }
.d-loeschen { margin-left: auto; color: #b8400f; }

/* Neu anlegen */
.d-anlegen { margin-top: 12px; padding: 18px; border-radius: 20px; background: var(--d-kachel, #fff); box-shadow: 0 8px 22px rgba(60,40,10,.08); }
.d-anlegen-kopf { margin-bottom: 12px; } .d-anlegen-kopf b { display: block; font-size: 18px; font-weight: 500; } .d-anlegen-kopf span { font-size: 13px; color: var(--d-leise); }
.d-feld { display: grid; gap: 5px; font-size: 12px; color: var(--d-leise); }
.d-feld input { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--d-rand-stark); background: #fff; color: var(--d-text); }
.d-feld input:focus { outline: 2px solid var(--d-akzent); outline-offset: 1px; border-color: transparent; }
.d-feldtitel { font-size: 12px; color: var(--d-leise); margin: 12px 0 6px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.d-chips button { border: 1px solid var(--d-rand-stark); background: transparent; color: var(--d-text); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.d-chips button:hover { background: var(--d-flaeche); }
.d-chips button.an { background: var(--d-an); color: var(--d-an-text); border-color: transparent; }
.d-anlegen .d-knoepfe { margin-top: 16px; }
.d-haupt:disabled { opacity: .35; cursor: default; }
.d-fach .d-platz-frei.ziel { border-style: solid; border-color: var(--d-akzent); color: var(--d-akzent); background: rgba(242,84,27,.06); }
.d-nr-etikett { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: var(--d-an); color: var(--d-an-text); vertical-align: 3px; margin-left: 6px; }
.d-wege { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.d-wege button { text-align: left; border: 1px solid var(--d-rand); background: var(--d-kachel, #fff); border-radius: 20px; padding: 18px; cursor: pointer; font: inherit; color: var(--d-text); box-shadow: 0 6px 16px rgba(60,40,10,.06); transition: transform .18s, box-shadow .18s; }
.d-wege button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(60,40,10,.1); }
.d-wege i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--d-flaeche); margin-bottom: 12px; }
.d-wege b { display: block; font-size: 16px; font-weight: 500; } .d-wege span { display: block; font-size: 13px; color: var(--d-leise); margin-top: 3px; line-height: 1.35; }
.d-vorschlag { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.d-vorschlag div { background: var(--d-flaeche); border-radius: 12px; padding: 9px 12px; } .d-vorschlag b { display: block; font-size: 14px; font-weight: 500; } .d-vorschlag span { font-size: 12px; color: var(--d-leise); }
.d-ausloeser { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--d-text); background: #fff; cursor: pointer; }
.d-kamera.scannt .d-scan { opacity: 1; animation: d-scan 1.4s cubic-bezier(.45,0,.25,1) infinite; }

/* Detailkarte direkt unter der Ebene */
#dKiste.d-inline { margin: 8px 0 4px; }
#dKiste.d-inline .d-kiste, #dKiste.d-inline .d-anlegen, #dKiste.d-inline .d-formular { margin-top: 0; box-shadow: 0 10px 26px rgba(60,40,10,.14); }
#dKiste.d-inline .d-kiste { background: var(--d-kachel, #fff); }
/* Art auf der Kachel sichtbar */
.d-box.karton { background: #f0dfc2; }
.d-box.karton i { background: #b98a52; }
.d-box.grossekiste { background: #e9e6e1; }
.d-box.koffer { background: linear-gradient(180deg, #f6f7f8, #e2e5e8); }
.d-box .d-art { margin-left: auto; padding-left: 6px; flex: none; font-style: normal; font-size: 12px; color: var(--d-leise); }
.d-zeichen i.karton { background: #b98a52; }
.d-handgriffe { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* Fühler stumm */
.d-warn-text { color: #b8400f !important; }
.d-stumm { margin-top: 14px; padding: 13px 16px; border-radius: 16px; background: rgba(242,84,27,.1); color: var(--d-text); font-size: 14px; line-height: 1.45; }
.d-stumm b { font-weight: 500; color: #b8400f; }

/* Systainer-Stapel: höchstens zwei übereinander. Look wie Systainer³: hellgrau, hellgrüner Verschluss in der Mitte, grüner FESTOOL-Schriftzug */
.d-stapel { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.d-fach .d-box.systainer { position: relative; flex: 1; min-height: 0; height: auto; padding: 0 10px; border-radius: 6px 6px 8px 8px; background: linear-gradient(180deg, #f1f2ef 0 30%, #e3e5e1 30% 100%); color: #2a2825; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 -2px 0 rgba(0,0,0,.06); gap: 8px; }
.sy-schild { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.sy-schild b { font-size: 11.5px; font-weight: 500; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-schild small { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6aa51c; line-height: 1.2; }
.sy-schloss { flex: none; width: 20px; height: 22px; margin-right: 18%; border-radius: 4px 4px 7px 7px; background: linear-gradient(180deg, #8cd12a, #6db51b); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.d-fach .d-box.systainer:hover { transform: none; filter: brightness(1.03); }
.d-fach .d-box.systainer.an { outline: 2px solid var(--d-akzent); outline-offset: 1px; }
.d-zeichen i.systainer { background: #e3e5e1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset -5px 0 0 #7cc322; }

.d-artwahl { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.d-artwahl > span { font-size: 12px; color: var(--d-leise); }
.d-artwahl .d-chips { margin-top: 4px; }
.d-chips button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.d-chip { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--d-leise); min-width: 0; }
.d-chip-titel { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 500; }
.d-chip-titel svg { width: 13px; height: 13px; }
.d-chip code { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--d-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.d-chip button { flex: none; border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 12px; color: var(--d-akzent); cursor: pointer; }

.d-liste-text { margin-top: 12px; }
.d-zeile-ding { padding: 9px 2px; border-top: 1px solid rgba(42,40,37,.07); font-size: 14px; }

/* Zeiger an der Kurve: Linie, Punkt und Pille mit Wert und Uhrzeit */
.d-diagramm { touch-action: pan-y; cursor: crosshair; }
.d-zeiglinie { stroke: rgba(40, 30, 20, .28); stroke-width: 1; stroke-dasharray: 2 3; }
.d-zeigpunkt { stroke: #fff; stroke-width: 2; } .d-zeig.temp .d-zeigpunkt { fill: var(--d-linie1); } .d-zeig.feuchte .d-zeigpunkt { fill: var(--d-linie2); }
.d-pille { fill: #fff; stroke: rgba(40, 30, 20, .1); filter: drop-shadow(0 2px 6px rgba(40, 30, 20, .12)); }
.d-pillentext { font-size: 12px; font-weight: 600; fill: #2a241e; text-anchor: middle; }
