/* Geführte Tour „Innendienst-Funktionen“ (tour-innendienst.js, 24.10.2026). Optik wie die Führung in gerust.css (#gTourRing/#gTourPop), Farben aus den Variablen der Seite. */
#itRing, #itPop { display: none; }
#itRing:not([hidden]), #itPop:not([hidden]) { display: block; }
#itRing { position: fixed; z-index: 88; border-radius: 12px; box-shadow: 0 0 0 3px var(--orange, #e8892b), 0 0 0 9999px var(--g-scrim, rgba(43,38,33,.42)); pointer-events: none; transition: all .18s; }
#itPop { position: fixed; z-index: 89; width: min(360px, calc(100% - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--g-schatten, 0 12px 30px rgba(0,0,0,.14)); padding: 14px 16px; color: var(--ink); }
#itPop.it-mitte { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); box-shadow: var(--g-schatten, 0 12px 30px rgba(0,0,0,.14)), 0 0 0 9999px var(--g-scrim, rgba(43,38,33,.42)); }
#itPop p { margin: 6px 0 12px; font-size: 14px; line-height: 1.45; }
#itPop .it-laedt { margin: 0; color: var(--muted); }
.it-kap { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.it-kap span { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--muted); background: var(--g-hover, #f3efeb); border-radius: 999px; padding: 2px 8px; }
.it-kap span.an { background: var(--ink); color: #fff; }
.it-kap span.fertig { color: var(--good, #1f7a3f); }
.it-fuss { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .it-fuss .btn:last-child { margin-left: auto; }
.it-fuss .btn.sec + .btn { margin-left: 0; }
/* Knopf in der Kopfzeile: PC unter dem Datum im Kopf der Leiste, Handy als Symbol neben der Suche */
.it-knopf { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 7px 10px; border: 1px solid var(--orange, #e8892b); border-radius: 9px; background: #fff7ee; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; line-height: 1.25; }
.it-knopf:hover { background: #ffeedb; }
.it-knopf svg, #itKnopfMobil svg { width: 20px; height: 20px; flex: none; color: var(--orange, #e8892b); }
body.g-klein .it-knopf { justify-content: center; padding: 7px 0; } body.g-klein .it-knopf span { display: none; }
.it-knopf:focus-visible, #itPop button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.it-balken { height: 4px; border-radius: 4px; background: var(--g-hover, #f3efeb); margin: 0 0 12px; overflow: hidden; }
.it-balken i { display: block; height: 100%; background: var(--orange, #e8892b); transition: width .2s; }
/* Hilfe-Fenster (Video oder Tour) und Videoplayer */
#itHilfe, #itVideo { position: fixed; inset: 0; z-index: 90; background: var(--g-scrim, rgba(43,38,33,.42)); display: flex; align-items: center; justify-content: center; padding: 16px; }
#itHilfe[hidden], #itVideo[hidden] { display: none; }
.it-h-box, .it-v-box { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--g-schatten, 0 12px 30px rgba(0,0,0,.14)); padding: 18px 20px; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.it-v-box { width: min(1180px, 100%); }
.it-h-kopf { display: flex; align-items: center; gap: 10px; } .it-h-kopf b { font-size: 17px; flex: 1; }
.it-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.it-h-box > .hinweis { margin: 4px 0 14px; }
.it-h-wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.it-weg { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: start; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.it-weg:first-child { border-color: var(--orange, #e8892b); background: #fff7ee; }
.it-weg:hover { background: #ffeedb; }
.it-weg-sym { grid-row: span 2; font-size: 24px; line-height: 1; color: var(--orange, #e8892b); }
.it-weg b { font-size: 15px; } .it-weg small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.it-h-kap { margin-top: 16px; }
.it-h-kap ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: k; }
.it-h-kap li { counter-increment: k; display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.it-h-kap li::before { content: counter(k); width: 22px; height: 22px; border-radius: 50%; background: var(--g-hover, #f3efeb); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.it-h-kap li span { flex: 1; } .it-h-kap li .g-link { white-space: nowrap; }
.it-h-fuss { margin-top: 12px; text-align: right; }
.it-v-inhalt { display: grid; grid-template-columns: 1fr 240px; gap: 14px; margin-top: 10px; }
.it-v-inhalt video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }
.it-v-kap { margin: 0; padding: 0; list-style: none; max-height: min(60vh, 520px); overflow: auto; }
.it-v-kap button { display: flex; gap: 8px; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; padding: 7px 8px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.it-v-kap button span { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; }
.it-v-kap button:hover { background: var(--g-hover, #f3efeb); } .it-v-kap button.an { background: #fff7ee; font-weight: 700; box-shadow: inset 3px 0 0 var(--orange, #e8892b); }
.it-v-box > .hinweis { margin: 10px 0 0; font-size: 12px; }
@media (max-width: 760px) { .it-v-inhalt { grid-template-columns: 1fr; } .it-v-kap { max-height: 30vh; } }
.it-weg:focus-visible, .it-x:focus-visible, .it-v-kap button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #itRing, .it-balken i { transition: none; } }
@media print { #itRing, #itPop, .it-knopf, #itKnopfMobil, #itHilfe, #itVideo { display: none !important; } }
