/* KapFixIT Geräteliste 2: Seitenleiste, Ansichten, Listen-Kacheln, Bewertung per Klick (Stand 16.11.2026) */

:root { --gitter-stark: rgba(255,255,255,.14); --leiste-platz: 108px; }
:root[data-thema="hell"] { --gitter-stark: rgba(13,22,32,.12); }

/* ---------- Gesperrt: Startbildschirm mit Kopfzeile, ohne Leiste ---------- */
body.gesperrt .kl, body.gesperrt .kl-knopf, body.gesperrt .kl-schleier { display: none !important; }
body:not(.gesperrt) > .kopf, body:not(.gesperrt) .start { display: none; }
.start { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.start .held { grid-template-columns: 1fr; gap: 22px; height: 100%; align-content: center; }
.start #tresor { align-self: stretch; display: grid; align-content: center; }
@media (max-width: 980px) { .start { grid-template-columns: 1fr; } }

.symbol-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.symbol-schritte li { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 10px 14px; border-radius: 18px; background: var(--mulde); box-shadow: inset 0 0 0 1px var(--mulde-rand); }
.symbol-schritte b { font-size: 14px; }
.symbol-schritte small { font-size: 12px; color: var(--gedaempft); line-height: 1.3; }
.ss-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--verlauf); box-shadow: 0 10px 22px rgba(5,119,176,.4), inset 0 1px 0 rgba(255,255,255,.45); }
.ss-ic svg { width: 22px; height: 22px; }
.symbol-schritte li:nth-child(1) .ss-ic { animation: ss-hoch 3.2s ease-in-out infinite; }
.symbol-schritte li:nth-child(2) .ss-ic { animation: ss-hoch 3.2s ease-in-out .4s infinite; }
.symbol-schritte li:nth-child(3) .ss-ic { animation: ss-hoch 3.2s ease-in-out .8s infinite; }
@keyframes ss-hoch { 50% { transform: translateY(-4px); } }
@media (max-width: 520px) { .symbol-schritte { grid-template-columns: 1fr; } .symbol-schritte li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; } .symbol-schritte li .ss-ic { grid-row: span 2; } }

/* ---------- Arbeitsbereich neben der Leiste ---------- */
body:not(.gesperrt) main { max-width: none; margin: 0; padding: 22px 24px 120px calc(var(--leiste-platz) + 16px); transition: padding-left .52s cubic-bezier(.2,.9,.25,1.12); }
body:not(.gesperrt):has(#leiste.auf) { --leiste-platz: 320px; }
body:not(.gesperrt) footer { padding-left: calc(var(--leiste-platz) + 16px); max-width: none; transition: padding-left .52s cubic-bezier(.2,.9,.25,1.12); }
#arbeitsbereich { max-width: 1320px; width: 100%; margin: 0 auto; }
@media (max-width: 980px) {
  body:not(.gesperrt) main { padding: 76px 14px 120px; }
  body:not(.gesperrt) footer { padding-left: 14px; }
}

/* Leiste: Farben der Geräteliste, Hauptpunkt Speichern hervorgehoben */
.kl { --kl-akzent: #67C7F4; }
.kl-punkt:disabled { opacity: .4; cursor: not-allowed; }
.kl-wort b { display: block; font-weight: 700; }
.kl-wort small { display: block; font-size: 11.5px; color: var(--kl-leise); font-weight: 500; margin-top: 1px; }
.kl-punkt.kl-wichtig { height: 48px; }
.kl-wichtig .kl-ic { position: relative; color: #fff; background: linear-gradient(160deg, #1A88C6, #0577B0 55%, #055E8E); box-shadow: 0 8px 18px rgba(5,119,176,.45), inset 0 1px 0 rgba(255,255,255,.45); }
.kl-stand-punkt { position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: transparent; }
.kl-stand-punkt.offen { background: #F5C26B; box-shadow: 0 0 0 2px var(--kl-kachel-text), 0 0 10px rgba(245,194,107,.9); animation: kl-pochen 1.8s ease-in-out infinite; }
.kl-stand-punkt.gut { background: #3DDC84; box-shadow: 0 0 0 2px var(--kl-kachel-text), 0 0 8px rgba(61,220,132,.8); }
@keyframes kl-pochen { 50% { transform: scale(1.25); } }
.kl-wichtig.mahnt small { color: #F5C26B; }
:root[data-thema="hell"] .kl-wichtig.mahnt small { color: #8A5A00; }
.kl-leise { color: var(--kl-leise); }
.kl-zahl.ausgeblendet { display: none !important; }
.kl-scroll .kl-titel { padding-top: 12px; }
.kl-scroll .kl-titel:first-child { padding-top: 4px; }
.kl-scroll .kl-liste + .kl-titel { margin-top: 2px; }

/* ---------- Ansichten ---------- */
.ansicht { display: none; }
.ansicht.aktiv { display: grid; gap: 16px; animation: ansicht-rein .45s cubic-bezier(.22,1,.36,1); }
@keyframes ansicht-rein { from { opacity: 0; transform: translateY(10px); } }
.ansicht > * { min-width: 0; }
.ansicht-kopf { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 4px 4px 0; }
.ansicht-kopf > div:first-child { flex: 1 1 360px; min-width: 0; }
.ansicht-titel { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 4px; }
.ansicht-unter { margin: 0; color: var(--gedaempft); font-size: 14.5px; max-width: 70ch; }

/* Leer: Ansichten ohne Geräte */
.leer-ansicht { display: none; justify-items: center; gap: 12px; padding: 40px 20px; border-radius: 22px; background: var(--mulde); box-shadow: inset 0 0 0 1px var(--mulde-rand); text-align: center; color: var(--gedaempft); }
.leer-ansicht p { margin: 0; font-size: 15px; }
body.ohne-geraete .leer-ansicht { display: grid; }
body.ohne-geraete .nur-mit-geraeten { display: none !important; }

/* Fortschritt oben rechts */
.fortschritt-mini { display: flex; align-items: center; gap: 12px; }
.fortschritt-mini:empty { display: none; }
.fm-ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.fm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-ring b { position: relative; font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.fm-ring b small { font-size: 11px; opacity: .7; }
.fm-text { display: grid; line-height: 1.2; }
.fm-text b { font-size: 15px; }
.fm-text small { color: var(--gedaempft); font-size: 12.5px; }
.rm-spur { fill: none; stroke: var(--gitter-stark); stroke-width: 6; }
.rm-fuell { fill: none; stroke: var(--akzent); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.22,1,.36,1), stroke .3s; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--akzent) 60%, transparent)); }
.rm-fuell.fertig { stroke: var(--ok); }

/* ---------- Ablage: groß ohne Listen, schlank mit Listen ---------- */
.ablage-karte { display: grid; gap: 12px; }
.ablage { grid-template-columns: auto; }
.ablage-text { display: grid; gap: 4px; }
body.ohne-listen .ablage { padding: 46px 18px; }
body.ohne-listen .ablage svg { width: 46px; height: 46px; animation: ss-hoch 2.6s ease-in-out infinite; }
body.ohne-listen .ablage strong { font-size: 20px; }
body:not(.ohne-listen) .ablage { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 14px 18px; gap: 14px; }
body:not(.ohne-listen) .ablage svg { width: 28px; height: 28px; }
.ablage-knoepfe { margin-top: 0; }
.leise-knopf { background: transparent !important; box-shadow: none !important; border-color: transparent !important; color: var(--gedaempft); }
.leise-knopf:hover { color: var(--text); }

/* ---------- Listen als Kacheln ---------- */
.listen-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.listen-kacheln:empty { display: none; }
.listen-kachel { border-radius: 20px; padding: 12px 12px 10px; display: grid; gap: 10px; animation: kachel-rein .6s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes kachel-rein { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.lk-haupt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 2px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
.lk-haupt:hover .lk-name { color: var(--akzent-text); }
.lk-ring { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.lk-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lk-ring .rm-spur, .lk-ring .rm-fuell { stroke-width: 5; }
.lk-ring b { position: relative; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; }
.lk-text { display: grid; min-width: 0; line-height: 1.25; }
.lk-name { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.lk-text small { color: var(--gedaempft); font-size: 12.5px; }
.lk-balken { display: flex; gap: 2px; height: 7px; border-radius: 999px; overflow: hidden; background: var(--gitter); }
.lk-balken span { height: 100%; transition: flex-grow .6s cubic-bezier(.22,1,.36,1); }
.lk-fuss { display: flex; align-items: center; gap: 6px; min-height: 30px; }
.lk-aktionen { margin-left: auto; display: flex; gap: 2px; }
.lk-aktionen .knopf.leise { padding: 6px; border-radius: 10px; }
.lk-aktionen .knopf.leise:hover { color: var(--akzent-text); background: var(--zeile-hover); }
.lk-aktionen .knopf.leise.loeschen:hover { color: var(--fehler); }
.lk-aktionen svg { width: 17px; height: 17px; }

/* ---------- Tabelle ---------- */
#karte-liste .karte-kopf h2 { font-size: 20px; }
.filter-segment { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 0 0 10px; }
.spaltenfilter:not(.offen) { display: none !important; }
#liste.kompakt .x { display: none !important; }
.tabelle-huelle { max-height: none; }
#liste th { top: 0; }

/* Überschrift je Liste */
#liste tr.gruppe td { padding: 0; border-bottom: 0; background: none !important; }
#liste tr.gruppe:not(:first-child) td { padding-top: 14px; }
.gruppe-knopf { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; cursor: pointer; font: inherit; color: var(--text); text-align: left; border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--akzent) 20%, transparent), color-mix(in srgb, var(--akzent) 6%, transparent) 60%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--akzent) 30%, transparent); }
.gruppe-knopf:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--akzent) 28%, transparent), color-mix(in srgb, var(--akzent) 10%, transparent) 60%, transparent); }
.gruppe-knopf svg { width: 18px; height: 18px; flex: none; color: var(--akzent-text); transition: transform .3s cubic-bezier(.22,1,.36,1); }
tr.gruppe.zu .gruppe-knopf svg { transform: rotate(-90deg); }
.gruppe-knopf b { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gruppe-zahl { font-size: 12.5px; font-weight: 600; color: var(--gedaempft); white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: var(--mulde); }
.gruppe-spur { margin-left: auto; width: 120px; flex: none; height: 7px; border-radius: 999px; background: var(--gitter-stark); overflow: hidden; }
.gruppe-spur span { display: block; height: 100%; border-radius: 999px; background: var(--verlauf); transition: width .5s; }
.gruppe-stand { font-size: 12.5px; color: var(--gedaempft); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Farbstreifen links je Bewertung */
#liste tr.bew-ja td.z-mark { box-shadow: inset 3px 0 0 var(--ok); }
#liste tr.bew-verbraucht td.z-mark { box-shadow: inset 3px 0 0 var(--warn); }
#liste tr.bew-nein td.z-mark { box-shadow: inset 3px 0 0 var(--fehler); }

/* Bewertung mit einem Klick */
.bew-wahl { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--mulde); box-shadow: inset 0 0 0 1px var(--mulde-rand); }
.bw { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; border: 0; background: transparent; color: var(--gedaempft); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .12s; }
.bw svg { width: 15px; height: 15px; flex: none; }
.bw:hover { color: var(--text); background: var(--zeile-hover); }
.bw:active { transform: scale(.96); }
.bw.ja svg { color: var(--ok); } .bw.verbraucht svg { color: var(--warn); } .bw.nein svg { color: var(--fehler); }
.bw.ja[aria-pressed="true"] { color: var(--ok); background: color-mix(in srgb, var(--ok) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 60%, transparent); }
.bw.verbraucht[aria-pressed="true"] { color: var(--warn); background: color-mix(in srgb, var(--warn) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 60%, transparent); }
.bw.nein[aria-pressed="true"] { color: var(--fehler); background: color-mix(in srgb, var(--fehler) 18%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fehler) 60%, transparent); }
/* Ist schon bewertet: die anderen Knöpfe treten zurück, Text nur beim gewählten */
.bew-wahl:has([aria-pressed="true"]) .bw:not([aria-pressed="true"]) { opacity: .55; }
.bew-wahl:has([aria-pressed="true"]) .bw:not([aria-pressed="true"]) span { display: none; }
.bew-wahl:has([aria-pressed="true"]) .bw:not([aria-pressed="true"]):hover { opacity: 1; }
td.z-bem input[type="text"] { width: 200px; }
td.z-bem input::placeholder { color: var(--leise); opacity: .55; }

/* ---------- Bewerten ---------- */
.schnell { display: grid; gap: 14px; }
.schnell-zeile { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.schnell-zeile .schnell-feld { flex: 1 1 320px; }
.schnell-zeile .schnell-feld input { width: 100%; font-size: 24px; padding: 16px 18px; border-radius: 16px; }
.schnell-zeile > .knopf { padding: 0 18px; min-height: 60px; }
#schnell-ergebnis { margin-top: 0; }
.schnell-leer { display: flex; align-items: center; gap: 10px; padding: 18px; border-radius: 16px; background: var(--mulde); box-shadow: inset 0 0 0 1px var(--mulde-rand); }
.schnell-leer svg { width: 22px; height: 22px; flex: none; color: var(--akzent); }
.schnell-serie { font-size: 26px; }
.bewerten { min-height: 92px; font-size: 17px; flex-direction: column; text-align: center; border-radius: 20px; }
.bewerten svg { width: 30px; height: 30px; }
.tasten-tipp { margin-top: -2px; }
.je-liste { display: grid; gap: 8px; }
.jl-zeile { display: grid; grid-template-columns: minmax(120px, 1.2fr) 3fr auto; gap: 12px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.jl-zeile:hover { background: var(--zeile-hover); }
.jl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-spur { height: 10px; border-radius: 999px; background: var(--gitter-stark); overflow: hidden; }
.jl-spur span { display: block; height: 100%; border-radius: 999px; background: var(--verlauf); transition: width .6s cubic-bezier(.22,1,.36,1); }
.jl-zahl { color: var(--gedaempft); font-size: 13px; }

/* ---------- Auswertung: Wahl der Liste ---------- */
.listen-wahl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lw-titel { font-size: 13px; font-weight: 700; color: var(--gedaempft); text-transform: uppercase; letter-spacing: .05em; }
.listen-wahl .segment { flex-wrap: wrap; border-radius: 18px; }

/* ---------- Dock nur für markierte Geräte ---------- */
.dock { left: calc(50% + var(--leiste-platz) / 2); }
@media (max-width: 980px) { .dock { left: 50%; } }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .ansicht-kopf { gap: 12px; }
  .fm-ring { width: 52px; height: 52px; }
  .listen-kacheln { grid-template-columns: 1fr; }
  .gruppe-spur { display: none; }
  .gruppe-knopf { flex-wrap: wrap; row-gap: 4px; }
  .gruppe-stand { margin-left: auto; }
  #liste tr[data-serie] td.z-bew { grid-template-columns: 1fr !important; }
  #liste tr[data-serie] td.z-bew::before { display: none; }
  .bew-wahl { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .bw { justify-content: center; padding: 10px 6px; font-size: 13px; }
  .bew-wahl:has([aria-pressed="true"]) .bw:not([aria-pressed="true"]) span { display: inline; }
  #liste tr[data-serie] { border-left: 4px solid transparent; }
  #liste tr.bew-ja[data-serie] { border-left-color: var(--ok); }
  #liste tr.bew-verbraucht[data-serie] { border-left-color: var(--warn); }
  #liste tr.bew-nein[data-serie] { border-left-color: var(--fehler); }
  #liste tr[data-serie] td.z-mark { box-shadow: none; }
  td.z-bem input[type="text"] { width: 100%; }
  .schnell-zeile .schnell-feld input { font-size: 20px; }
  .bewerten { min-height: 64px; flex-direction: row; }
  .jl-zeile { grid-template-columns: 1fr auto; }
  .jl-spur { grid-column: 1 / -1; grid-row: 2; }
  .dock { left: 12px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ansicht.aktiv, .listen-kachel, .ss-ic, body.ohne-listen .ablage svg, .kl-stand-punkt.offen { animation: none !important; }
}
@media print { .kl, .kl-knopf, .kl-schleier { display: none !important; } }

/* ---------- Korrekturen nach dem ersten Bildtest ---------- */
/* Meldungen unten statt über der Arbeit, höchstens zwei */
.toasts { top: auto; bottom: 22px; left: calc(50% + var(--leiste-platz) / 2); }
body:has(#dock:not(.ausgeblendet)) .toasts { bottom: 96px; }
@media (max-width: 980px) { .toasts { left: 50%; width: calc(100% - 24px); } .toasts .toast { max-width: 100%; text-align: center; } }

/* Tabelle passt in die Breite: Bemerkung dehnbar, Hinweis darf umbrechen */
td.z-bem input[type="text"] { width: 170px; }
.z-modell select { min-width: 0; max-width: 220px; }
td.z-hinweis { white-space: normal; min-width: 0; }
td.z-hinweis .chip { white-space: nowrap; }
.werkzeuge input[type="search"] { width: 260px; }

/* Bewerten: Zuletzt-Zeile */
.schnell-zuletzt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 0; }
.schnell-zuletzt:empty { display: none; }
.zl-titel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gedaempft); margin-right: 2px; }
.zl { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); background: var(--mulde); box-shadow: inset 0 0 0 1px var(--mulde-rand); animation: zl-rein .45s cubic-bezier(.22,1,.36,1) both; opacity: calc(1 - var(--i, 0) * .18); }
.zl:first-of-type { animation-name: zl-neu; }
.zl svg { width: 15px; height: 15px; }
.zl.ja svg { color: var(--ok); } .zl.verbraucht svg { color: var(--warn); } .zl.nein svg { color: var(--fehler); }
.zl:hover { background: var(--zeile-hover); opacity: 1; }
@keyframes zl-neu { from { opacity: 0; transform: translateX(-14px) scale(.9); } }
@keyframes zl-rein { from { transform: translateX(-8px); } }
.jl-spur.fertig span { background: var(--ok); }

/* Handy: Suche volle Breite, Filter wischbar, Bewertung passt */
@media (max-width: 760px) {
  .werkzeuge { width: 100%; }
  .werkzeuge input[type="search"] { flex: 1 1 100% !important; width: 100% !important; order: -1; }
  .werkzeuge .knopf { flex: 1 1 0; }
  .filter-segment { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .filter-segment::-webkit-scrollbar { display: none; }
  .filter-segment button { flex: none; }
  .bw { flex-direction: column; gap: 3px; white-space: normal; line-height: 1.15; font-size: 12px; min-height: 52px; text-align: center; }
  .bw svg { width: 18px; height: 18px; }
  .zl-titel { width: 100%; }
}

/* Schmale Bewertungsspalte: unbewertet nur Symbole, Legende darüber */
.bew-wahl:not(:has([aria-pressed="true"])) .bw span { display: none; }
.bew-wahl:not(:has([aria-pressed="true"])) .bw { padding: 6px 8px; }
.bew-wahl:not(:has([aria-pressed="true"])) .bw svg { width: 17px; height: 17px; }
.bew-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 0 10px; font-size: 12.5px; color: var(--gedaempft); }
.bl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bl svg { width: 16px; height: 16px; }
.bl.ja svg { color: var(--ok); } .bl.verbraucht svg { color: var(--warn); } .bl.nein svg { color: var(--fehler); }
.bl-tipp { color: var(--leise); }
#liste th, #liste td { padding-left: 8px; padding-right: 8px; }
.z-modell select { max-width: 205px; }
td.z-bem input[type="text"] { width: 150px; }
.gruppe-knopf { position: sticky; left: 0; width: var(--huelle-b, 100%); max-width: 100%; }
#liste tr.gruppe td { overflow: visible; }
@media (max-width: 760px) {
  .bew-legende { display: none; }
  .bew-wahl .bw span { display: inline !important; }
  .gruppe-knopf { width: 100%; }
}

/* ---------- Tour mit Spotlight ---------- */
.tour-start { margin-top: 16px; }
.tour-schicht { position: fixed; inset: 0; z-index: 90; display: none; }
.tour-schicht.an { display: block; }
.tour-loch { position: fixed; pointer-events: none; border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(3, 8, 14, .66), 0 0 0 2px color-mix(in srgb, var(--akzent) 80%, transparent), 0 0 34px 4px color-mix(in srgb, var(--akzent) 45%, transparent);
  transition: left .45s cubic-bezier(.22,1,.36,1), top .45s cubic-bezier(.22,1,.36,1), width .45s cubic-bezier(.22,1,.36,1), height .45s cubic-bezier(.22,1,.36,1), border-radius .45s; }
.tour-loch::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 2px var(--akzent); animation: tour-puls 2s ease-out infinite; }
@keyframes tour-puls { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
:root[data-thema="hell"] .tour-loch { box-shadow: 0 0 0 9999px rgba(10, 25, 40, .55), 0 0 0 2px var(--akzent), 0 0 30px 4px color-mix(in srgb, var(--akzent) 40%, transparent); }
.tour-blase { position: fixed; width: min(360px, calc(100vw - 24px)); border-radius: 22px; padding: 16px 18px 14px; display: grid; gap: 8px;
  transition: left .45s cubic-bezier(.22,1,.36,1), top .45s cubic-bezier(.22,1,.36,1); }
.tour-blase.rein { animation: tour-rein .4s cubic-bezier(.22,1,.36,1); }
@keyframes tour-rein { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.tour-oben { display: flex; align-items: center; justify-content: space-between; }
.tour-stand { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent-text); }
.tour-zu { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--gedaempft); cursor: pointer; }
.tour-zu:hover { background: var(--zeile-hover); color: var(--text); }
.tour-zu svg { width: 16px; height: 16px; }
.tour-blase h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tour-blase p { margin: 0; color: var(--gedaempft); font-size: 14.5px; line-height: 1.5; }
.tour-extra { display: grid; gap: 4px; }
.tour-extra:empty { display: none; }
.tour-extra small { color: var(--leise); font-size: 12px; }
.tour-beispiel { justify-self: start; }
.tour-knoepfe { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tour-knoepfe .knopf { padding: 8px 14px; }
.tour-punkte { display: flex; gap: 5px; margin-right: auto; }
.tour-punkte i { width: 6px; height: 6px; border-radius: 999px; background: var(--gitter-stark); transition: width .3s, background .3s; }
.tour-punkte i.war { background: color-mix(in srgb, var(--akzent) 55%, transparent); }
.tour-punkte i.an { width: 18px; background: var(--akzent); }

.tour-angebot { position: fixed; z-index: 85; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 24px));
  display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 16px 16px 14px; border-radius: 22px;
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1); }
.tour-angebot.an { opacity: 1; transform: none; }
.ta-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--verlauf); box-shadow: 0 10px 22px rgba(5,119,176,.4), inset 0 1px 0 rgba(255,255,255,.45); animation: ss-hoch 3s ease-in-out infinite; }
.ta-ic svg { width: 24px; height: 24px; }
.ta-text { display: grid; gap: 2px; }
.ta-text b { font-size: 16px; }
.ta-text small { color: var(--gedaempft); font-size: 13px; }
.ta-knoepfe { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.ta-knoepfe .knopf.leise:hover { color: var(--text); }
@media (max-width: 520px) { .tour-angebot { left: 12px; right: 12px; width: auto; bottom: 12px; } .tour-blase { padding: 14px; } .tour-blase h2 { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .tour-loch, .tour-blase { transition: none; } .tour-loch::after, .tour-blase.rein, .ta-ic { animation: none; } }
@media print { .tour-schicht, .tour-angebot { display: none !important; } }

/* ---------- Rückfragen: Überschreiben als Gefahr ---------- */
.knopf.gefahr { color: var(--fehler); border-color: color-mix(in srgb, var(--fehler) 45%, transparent); }
.knopf.gefahr:hover { background: color-mix(in srgb, var(--fehler) 14%, transparent); }
.d-warnung { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--fehler); background: color-mix(in srgb, var(--fehler) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fehler) 40%, transparent); }
.d-warnung svg { width: 24px; height: 24px; }
.dialog .tresor-knoepfe { flex-wrap: wrap; }

/* ---------- Tour: Kapitel zwei Standorte ---------- */
.tour-blase.breit { width: min(440px, calc(100vw - 24px)); }
.tb-ablauf { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; padding: 12px 10px 10px; border-radius: 16px; background: var(--mulde); box-shadow: inset 0 0 0 1px var(--mulde-rand); }
.tb-ort { display: grid; justify-items: center; gap: 2px; text-align: center; }
.tb-ort i { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--verlauf); box-shadow: 0 8px 18px rgba(5,119,176,.35); }
.tb-ort.stick i { background: linear-gradient(160deg, #F5C26B, #C98A12); box-shadow: 0 8px 18px rgba(201,138,18,.35); animation: tb-wandern 2.4s ease-in-out infinite; }
.tb-ort i svg { width: 21px; height: 21px; }
.tb-ort b { font-size: 12.5px; }
.tb-ort small { font-size: 11px; color: var(--gedaempft); }
.tb-pfeil { color: var(--akzent-text); }
.tb-pfeil svg { width: 18px; height: 18px; animation: tb-pfeil 1.6s ease-in-out infinite; }
.tb-rueck { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tb-rueck svg { width: 14px; height: 14px; }
@keyframes tb-wandern { 50% { transform: translateY(-4px) rotate(-6deg); } }
@keyframes tb-pfeil { 50% { transform: translateX(3px); } }
.tb-fenster { display: grid; gap: 4px; padding: 12px; border-radius: 16px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--mulde-rand), 0 10px 26px rgba(0,0,0,.25); }
.tb-fenster b { font-size: 14px; }
.tb-fenster small { font-size: 12px; color: var(--gedaempft); }
.tb-knoepfe { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; margin-bottom: 10px; }
.tb-k { position: relative; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--mulde-rand); color: var(--gedaempft); }
.tb-k.nein { color: var(--fehler); border-color: color-mix(in srgb, var(--fehler) 45%, transparent); text-decoration: line-through; opacity: .75; }
.tb-k.ja { color: #fff; background: var(--verlauf); border-color: transparent; animation: tb-puls 1.8s ease-out infinite; }
@keyframes tb-puls { 0% { box-shadow: 0 0 0 0 rgba(103,199,244,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(103,199,244,0); } }
.tb-hand { position: absolute; right: -10px; bottom: -20px; width: 24px; height: 24px; color: var(--text); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); animation: tb-tippen 1.8s ease-in-out infinite; }
.tb-hand svg { width: 100%; height: 100%; }
@keyframes tb-tippen { 0%, 100% { transform: translate(6px, 6px); } 40%, 60% { transform: translate(0, 0) scale(.92); } }
@media (max-width: 420px) { .tb-ort small { display: none; } .tb-ort i { width: 34px; height: 34px; } .tb-knoepfe { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .tb-ort.stick i, .tb-pfeil svg, .tb-k.ja, .tb-hand { animation: none; } }

/* ---------- Gewählte Liste und Treffer aus anderen Listen ---------- */
.listen-kachel { transition: opacity .3s, box-shadow .3s, transform .3s; }
.listen-kachel.aktiv { box-shadow: 0 0 0 2px var(--akzent), 0 0 28px color-mix(in srgb, var(--akzent) 35%, transparent), var(--schatten2); transform: translateY(-2px); }
.listen-kachel.aktiv .lk-name { color: var(--akzent-text); }
.listen-kacheln:has(.aktiv) .listen-kachel:not(.aktiv) { opacity: .55; }
.listen-kacheln:has(.aktiv) .listen-kachel:not(.aktiv):hover { opacity: 1; }
.t-liste-name { margin-left: 10px; padding: 3px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; vertical-align: 2px; color: var(--akzent-text); background: color-mix(in srgb, var(--akzent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--akzent) 40%, transparent); }
#liste tr.gruppe.fremd .gruppe-knopf { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 22%, transparent), color-mix(in srgb, var(--warn) 6%, transparent) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
#liste tr.gruppe.fremd .gruppe-knopf > svg { color: var(--warn); }
.gruppe-fremd { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); white-space: nowrap; }
.gruppe-fremd svg { width: 14px; height: 14px; }
#liste tr.fremd[data-serie] td { background: color-mix(in srgb, var(--warn) 9%, transparent); }
.fremd-chip { display: flex; width: fit-content; margin-top: 4px; color: var(--warn); font-family: "Archivo", system-ui, sans-serif; background: color-mix(in srgb, var(--warn) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
@media (max-width: 760px) { #liste tr.fremd[data-serie] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 55%, transparent); } .t-liste-name { display: inline-block; margin: 4px 0 0; } }
#karte-liste { scroll-margin-top: 16px; }
@media (max-width: 980px) { #karte-liste { scroll-margin-top: 72px; } }

/* ---------- Warnzeile: Gerät aus anderer Liste ---------- */
#liste tr.fremd-banner td { padding: 8px 0 0; border-bottom: 0; background: none !important; white-space: normal; }
.fb-inhalt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.4; color: var(--text);
  background: color-mix(in srgb, var(--warn) 22%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 70%, transparent); }
.fb-inhalt > svg { width: 26px; height: 26px; flex: none; color: var(--warn); }
.fb-inhalt b { font-weight: 800; }
tr.fremd-banner.blinken .fb-inhalt { animation: fb-blinken .55s ease-in-out 3; }
@keyframes fb-blinken { 50% { background: color-mix(in srgb, var(--warn) 55%, transparent); box-shadow: inset 0 0 0 1.5px var(--warn), 0 0 26px color-mix(in srgb, var(--warn) 60%, transparent); transform: scale(1.01); } }
@media (max-width: 760px) { #liste tr.fremd-banner { display: block; margin-bottom: 8px; } #liste tr.fremd-banner td { display: block; padding: 0; } .fb-inhalt { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { tr.fremd-banner.blinken .fb-inhalt { animation: none; } }
