/* Barlow (SIL OFL, siehe fonts/OFL.txt): lokal eingebunden, damit keine Anfrage an fremde Server geht */
@font-face{font-family:Barlow;src:url(fonts/barlow-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Barlow;src:url(fonts/barlow-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url(fonts/barlow-condensed-700.woff2) format("woff2");font-weight:700;font-display:swap}
/* Farben aus dem Einsatz: Schwarzblau der Schutzkleidung, Feuerrot RAL 3000 der Fahrzeuge */
:root{--blue:#191e28;--red:#a72920;--plane:var(--blue);--ink:#fff;--m:clamp(20px,5vw,72px)}
.day{--plane:#fff;--ink:var(--blue)}
/* Kopfzeile: nachts fast schwarz, tagsüber weiß; Menüs klappen immer weiß auf */
:root{--line:rgba(255,255,255,.2);--bar:#11151c;--bar-ink:#e8eaee;--bar-soft:rgba(255,255,255,.6);--bar-line:rgba(255,255,255,.12)}
.day{--line:rgba(25,30,40,.15);--bar:#fff;--bar-ink:var(--blue);--bar-soft:rgba(25,30,40,.55);--bar-line:rgba(25,30,40,.12)}
html{background:#000}
body{margin:0;font:400 1.125rem/1.55 Barlow,"DIN Alternate",Bahnschrift,system-ui,sans-serif;color:var(--ink)}
a{color:inherit;text-underline-offset:.18em}
:focus-visible{outline:3px solid #f2e94e;outline-offset:3px}
h1,h2,h3,h4,p{margin:0}
/* Schrift wie eine Fahrzeugbeschriftung: schmal, fett, Versalien */
.lettering{font-family:"Barlow Condensed","DIN Condensed",Bahnschrift,"Arial Narrow",sans-serif;font-weight:700;line-height:.9;text-transform:uppercase}
/* Außer Dienst: nur noch der Umriss der Beschriftung (steht immer auf Rot) */
.outline{color:transparent;-webkit-text-stroke:2px #fff}
h2{font-family:"Barlow Condensed","DIN Condensed",Bahnschrift,"Arial Narrow",sans-serif;font-weight:700;font-size:clamp(1.9rem,3vw,2.6rem);line-height:1.05}

/* Kopfzeile, auf jeder Seite und in der Verwaltung gleich: schmale Leiste über die ganze Breite, Menüs klappen weiß auf */
.top{position:sticky;top:0;z-index:3;display:flex;align-items:stretch;gap:0 .6rem;margin:calc(-1*var(--m)) calc(-1*var(--m)) 0;padding:0 var(--m);min-height:3rem;background:var(--bar);color:var(--bar-ink);box-shadow:inset 0 -1px 0 var(--bar-line);font-size:.875rem;font-weight:600;text-underline-offset:.18em}
.top a{color:inherit;text-decoration:none}
.top button{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.top .brand,.items>a,.menu>button{display:flex;align-items:center;gap:.5em;border-block:2px solid transparent}
.items>a,.menu>button{padding:0 .5em}
.top .brand{margin-right:.8rem;font-size:.75rem;font-weight:400;letter-spacing:.06em;color:var(--bar-soft)}
/* Logo: der Schriftzug der Startseite, tagsüber rot */
.logo{display:block;height:2.3rem;width:auto;overflow:visible;fill:var(--bar-ink);font-family:"Barlow Condensed","DIN Condensed",Bahnschrift,"Arial Narrow",sans-serif;font-weight:700}
.day .logo{fill:var(--red)}
.items>a:hover,.menu>button:hover{border-bottom-color:var(--bar-line)}
.items>[aria-current],.menu>button[aria-current]{border-bottom-color:var(--red)}
.icon{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Bereiche mit Unterseiten klappen als Menü auf: per Klick, mit der Maus schon beim Überfahren */
.menu{position:relative;display:flex}
.menu>button::after{content:"";display:inline-block;margin-left:.05em;border:.28em solid transparent;border-top-color:currentColor;border-bottom:0}
.menu ul{margin:0;list-style:none}
.menu>ul{display:none;position:absolute;z-index:1;top:100%;left:0;min-width:11rem;padding:.8em 1.4em .8em 1em;white-space:nowrap;background:#fff;color:#191e28;box-shadow:0 .6em 1.6em rgba(0,0,0,.25)}
.menu [aria-expanded=true]+ul{display:block}
@media (hover:hover){.menu:hover>ul{display:block}}
.menu li+li{margin-top:.55em}
.menu li>a,.menu li button{display:inline-flex;align-items:center;gap:.6em}
.menu ul a:hover,.menu ul button:hover,.menu ul [aria-current]{text-decoration:underline}
/* Untermenü: ohne Maus und auf schmalen Bildschirmen eingerückt unter seiner Seite */
.menu ul ul{padding:.35em 0 0 1em;font-weight:400}
/* Mit Maus klappt es rechts neben dem Menü auf. Es schließt etwas verzögert, damit der schräge Weg dorthin gelingt;
   der durchsichtige Rand überbrückt den Innenabstand des Menüs und lässt einen schmalen Spalt */
@media (hover:hover) and (min-width:821px){
  .menu li{position:relative}
  .menu li:has(ul)>a::after{content:"";display:inline-block;margin-left:.15em;border:.28em solid transparent;border-left-color:currentColor;border-right:0}
  .menu ul ul{position:absolute;top:-.8em;left:100%;padding:.8em 1.4em .8em 1em;font-weight:inherit;background:#fff padding-box;border-left:calc(1.4em + 2px) solid transparent;filter:drop-shadow(0 .5em .9em rgba(0,0,0,.2));visibility:hidden;transition:visibility 0s .25s}
  .menu li:hover>ul,.menu li:focus-within>ul{visibility:visible;transition-delay:0s}
}
/* Tag/Nacht: breit nur das Icon der Ansicht, zu der der Knopf wechselt; der Text bleibt für Bildschirmleser */
.theme{display:flex;align-items:center;margin-left:auto}
.theme .icon{width:1.25rem;height:1.25rem}
.theme .label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.theme .to-night,.day .theme .to-day{display:none}
.theme>span{display:flex;align-items:center}
.day .theme .to-night{display:flex}
/* Konto in der Verwaltung: Kreis mit Anfangsbuchstabe, Menü rechtsbündig */
.account>button{gap:.6em;font-size:.8125rem;font-weight:400}
.account>ul{left:auto;right:0;min-width:15rem}
.avatar{display:grid;place-items:center;width:1.65rem;height:1.65rem;border-radius:50%;background:var(--red);color:#fff;font-size:.75rem;font-weight:600}
.account>button:hover .avatar,.account>[aria-expanded=true] .avatar{box-shadow:0 0 0 2px var(--bar),0 0 0 4px var(--bar-soft)}
.who{display:grid;gap:.15em;padding-bottom:.7em;margin-bottom:.2em;border-bottom:1px solid rgba(0,0,0,.15)}
.who small{font-weight:400;opacity:.7}
/* Breit stehen die Menüpunkte direkt in der Kopfzeile; der Burger-Knopf gehört dem Handy (siehe unten) */
.items{display:contents}
.burger{display:none}

/* ---------- Startseite: FEUERWEHR als Fenster ins Einsatzvideo ---------- */
.home-bar{position:sticky;top:0;z-index:10}
.home-bar .top{margin:0}
.home{display:flex;flex-direction:column;min-height:calc(100svh - 3rem);background:var(--plane)}
.window{position:relative;flex:1;min-height:22rem;overflow:hidden;background:#000}
/* Immer die Nachtfassung, dunkel und verschwommen; das Brandhaus liegt bei 72,3 % der Breite */
.window video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72.3% 50%;filter:blur(12px) brightness(1.35);transform:scale(1.08)}
/* Tags steht die Schrift auf Weiß, da darf das Video dunkler sein; nachts auf Schwarz bräuchte sie sonst zu viel Licht */
.day .window video{filter:blur(12px) brightness(.8)}
/* Tags weiße Fläche mit schwarzer Schrift und screen, nachts schwarze Fläche mit weißer Schrift und multiply: die Schrift wird zum Fenster */
.cover,.glow{position:absolute;inset:-10%;display:grid;place-items:center}
.cover{background:#000;mix-blend-mode:multiply}
/* Nachts liegt links im Video fast nur Schwarz: eine schwache weiße Kopie hält die Schrift dort lesbar */
.glow .words{color:rgba(255,255,255,.09)}
.day .glow{display:none}
.day .cover{background:#fff;mix-blend-mode:screen}
.words{display:grid;justify-items:start;gap:2.2vw;font-family:"Barlow Condensed","DIN Condensed",Bahnschrift,"Arial Narrow",sans-serif;font-weight:700;text-transform:uppercase;color:#fff}
.words b{font-size:21vw;line-height:.8}
/* Abstand rechnet index.php so aus, dass die Zeile so breit ist wie das Wort; .4em ist der Wert ohne Skript */
.words span{font-size:4.2vw;line-height:1;letter-spacing:.4em;white-space:nowrap;padding-left:.4vw}
.day .cover .words{color:#000}

/* Die kurze Vorstellung groß unter dem Bild */
.intro{padding:clamp(1.6rem,4vw,3rem) var(--m) clamp(2rem,5vw,3.5rem)}
.intro p{max-width:30em;font-size:clamp(1.3rem,2.3vw,1.9rem);line-height:1.35}
main,footer{position:relative}
.cta{display:inline-block;padding:.75em 1.4em;background:var(--red);color:#fff;font-weight:600;text-decoration:none}
.cta:hover{background:#bf3328}
.more{font-weight:600}
.fleet{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(20rem,100%),1fr));gap:2.5rem var(--m);margin:0;padding:0;list-style:none}
.fleet li{position:relative}
.fleet img,.shots img{display:block;width:100%;height:auto}
.fleet img{aspect-ratio:3/2;object-fit:cover;margin-bottom:1.2rem}
.fleet h3{font-size:inherit;font-weight:600;margin-bottom:.3em}
.fleet a{text-decoration:none}
.fleet a:hover{text-decoration:underline}
/* Die ganze Kachel samt Bild führt zum Fahrzeug */
.fleet a::after{content:"";position:absolute;inset:0}
.fleet .lettering{display:block;font-size:clamp(4.5rem,9vw,8.5rem);margin-bottom:.12em}
address{font-style:normal}

/* Seitenfuß: in beiden Varianten dunkel abgesetzt und kleiner, damit er nicht wie Inhalt wirkt */
footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:1.5rem var(--m);padding:clamp(2.5rem,5vw,4rem) var(--m);background:#000;color:#fff;font-size:1rem}
.links{display:flex;flex-wrap:wrap;gap:.4em 1.8em}
.copy{margin-top:1em;opacity:.7}

/* ---------- Unterseiten ---------- */
.page{box-sizing:border-box;min-height:70svh;padding:var(--m);background:var(--plane)}
.page h1{margin:clamp(3rem,8vw,6rem) 0 clamp(2rem,5vw,4rem);font-size:clamp(3rem,7vw,6rem);hyphens:auto}
.content{padding-bottom:clamp(2rem,6vw,5rem)}
.content>*+*,.facts>*+*{margin-top:1em}
.content p,.content ul,.content dl{max-width:34em}
.content address p+p{margin-top:1em}
.content h2{font-size:1.9rem}
.content *+h2{margin-top:2.2em}
.content h3,.content h4{font-size:inherit;font-weight:600}
.content *+h3,.content *+h4{margin-top:1.6em}
.content ul{padding-left:1.2em}
.content .fleet{max-width:none;padding:0}
.lead{font-size:1.25rem;font-weight:600}
/* Fahrzeugseite in der Aufteilung des Seitenfußes: links der Text (bleibt beim Scrollen stehen), rechts die Bilder */
.vehicle{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:2rem var(--m)}
.facts{align-self:start;position:sticky;top:var(--m)}
/* Bilder zweispaltig im Querformat 3:2: das erste groß über beide Spalten, ein Hochformat über zwei Zeilen */
.shots{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.shots a{display:block}
.shots img{aspect-ratio:3/2;object-fit:cover}
.shots a:first-child,.shots .credit{grid-column:1/-1}
.shots a:first-child img{aspect-ratio:auto}
.shots a:has(.tall){grid-row:span 2}
.shots .tall{height:100%;aspect-ratio:auto}
.credit{font-size:.9rem;opacity:.8}
/* Platzhalter für Inhalte, die noch fehlen */
.todo{opacity:.6}
/* Nur für Bildschirmleser und Suchmaschinen */
.hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Kurze Angaben zum Fahrzeug: Bezeichnung links, Wert rechts */
.data{display:grid;grid-template-columns:auto 1fr;gap:.2em 1.2em;margin-bottom:0}
.data dt{opacity:.8}
.data dd{margin:0;font-weight:600}
.data .note{font-weight:400}
.dates{display:grid;grid-template-columns:auto 1fr;gap:1.4rem 2rem;margin:0}
.dates dt{font-size:2.8rem;line-height:1}
.dates dd{margin:0;align-self:center}
/* Einsätze und Termine: links das Datum, rechts was und wo */
.content .log{display:grid;grid-template-columns:max-content 1fr;gap:.6em 1.4em;list-style:none;padding:0}
.log li{display:contents}
.log p{margin-top:.15em}
.content .files{list-style:none;padding:0}
.files li{display:flex;justify-content:space-between;gap:1.5em;padding:.4em 0}
.files small{flex:none;opacity:.7}
.ghost{padding:.6em 1.1em;border:2px solid;background:var(--plane);font:inherit;font-weight:600;color:inherit;cursor:pointer}
.form{display:grid;gap:1.1em;max-width:26em}
.form label{display:grid;gap:.3em;font-weight:600}
.content input:not([type=hidden],[type=checkbox],[type=radio]),.content select,.content textarea{box-sizing:border-box;width:100%;padding:.55em .7em;border:2px solid;border-radius:0;background:var(--plane);color:var(--ink);font:inherit;font-weight:400}
.content :focus-visible{outline:3px solid var(--red);outline-offset:2px}
.content select{appearance:none;padding-right:2.8em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right .8em center;background-size:1.1em;background-repeat:no-repeat;cursor:pointer}
.day .content select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191e28' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.content .cta{border:0;font:inherit;font-weight:600;color:#fff;cursor:pointer}
.error,.done{padding:.6em .9em;border-left:4px solid var(--red);font-weight:600}
.done{border-color:currentColor}
.content .users{width:100%;max-width:56em;border-collapse:collapse}
.users th,.users td{padding:.75em 1.5em .75em 0;border-bottom:1px solid var(--line);text-align:left}
.users th{font-size:.9rem;font-weight:600;opacity:.7}
.users a{font-weight:600;color:inherit}
.muted{opacity:.65}
.form small{font-weight:400;opacity:.7}
.actions{display:flex;align-items:center;gap:1.5em}
.actions a{color:inherit}
.content .delete{max-width:56em;margin-top:3em;padding-top:1.5em;border-top:1px solid var(--line)}

/* Start von FIREWARE: die Anwendungen als große Beschriftung, darunter wofür sie da sind */
.content .apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(30rem,100%),1fr));gap:2rem var(--m);max-width:none;margin:0 0 2.5rem;padding:0;list-style:none}
.apps a{display:grid;gap:.35em;color:inherit;text-decoration:none}
.apps .lettering{font-size:clamp(2.6rem,5vw,4.5rem);overflow-wrap:anywhere}
.apps a:hover .lettering,.apps a:focus-visible .lettering{color:var(--red)}

/* ---------- Explorer (Geräte und Standorte): Werkzeugleiste, darunter Baum | Inhalt | Datenblatt ---------- */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem;margin:1.2rem 0 .6rem;padding:.3rem;border:1px solid var(--line)}
.toolbar>a{display:inline-flex;align-items:center;gap:.4em;padding:.45em .7em;color:inherit;text-decoration:none;font-size:.95rem;font-weight:600}
.toolbar>a:hover,.toolbar>a:focus-visible{background:var(--line)}
.toolbar .find{display:flex;align-items:center;gap:.4em;margin-left:auto;padding:0 .6em;border:1px solid var(--line)}
.toolbar .find input{width:9rem;padding:.45em 0;border:0;background:none;color:inherit;font:inherit;outline:0}
.explorer-page>.done{margin-bottom:.6rem}
.explorer{display:grid;grid-template-columns:minmax(13rem,17rem) minmax(0,1fr) minmax(17rem,24rem);height:calc(100svh - 10rem);min-height:24rem;border:1px solid var(--line)}
.explorer.two{grid-template-columns:minmax(12rem,15rem) minmax(0,1fr)}
.pane{min-width:0;overflow:auto}
.pane+.pane{border-left:1px solid var(--line)}
.pane ul{margin:0;padding:0;list-style:none}
.tree-pane{padding:.3rem 0}
.tree-pane ul ul{padding-left:1.1em}
.tree-pane a,.entries a{display:flex;align-items:center;gap:.5em;color:inherit;text-decoration:none}
.tree-pane a{padding:.3em .8em;font-size:.95rem}
.tree-pane a>span,.entries a>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tree-pane a>small,.entries a>small{flex:none;font-size:.85em;opacity:.6}
.tree-pane a:hover,.entries a:hover{background:var(--line)}
.tree-pane [aria-current],.entries .selected>a{background:var(--red);color:#fff}
.tree-pane [aria-current]>small,.entries .selected small{opacity:.85}
.tree-pane .sep{margin-top:.3rem;padding-top:.3rem;border-top:1px solid var(--line)}
.explorer .pane-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:.8em;padding:.55rem .9rem;background:var(--plane);border-bottom:1px solid var(--line)}
.explorer .pane-head h1{margin:0;font-family:inherit;font-size:1rem;font-weight:600;line-height:1.3;text-transform:none}
.explorer .pane-head h1 a{color:inherit}
.pane-head .back{display:none}
.entries a{padding:.45em .9em;border-bottom:1px solid var(--line)}
.entries a>span small{margin-left:.4em;opacity:.6}
.dot{flex:none;width:.6em;height:.6em;border-radius:50%;background:#3d9a50}
.dot.mangel{background:#e0a100}
.dot.defekt{background:var(--red)}
.dot.ausgemustert{background:none;border:1px solid currentColor}
.selected .dot{box-shadow:0 0 0 1.5px #fff}
.explorer .empty{padding:.9rem}
.sheet{padding:.7rem .9rem;font-size:.95rem}
.sheet dl{display:grid;grid-template-columns:auto 1fr;gap:.25em .9em;margin:.6em 0}
.sheet dt{opacity:.7}
.sheet dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.sheet dd a,.mini a{color:inherit}
.sheet h2{margin:1.1em 0 .3em;font-size:1.1rem}
.sheet .note{margin:.4em 0;opacity:.85}
.qr-small{width:6rem}
.qr-small svg{display:block;width:100%;height:auto}
.mini li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.2em 1em;padding:.35em 0;border-bottom:1px solid var(--line)}
.mini li>:last-child{text-align:right;opacity:.85}
.mini .overdue>:last-child{color:#e5483c;opacity:1;font-weight:600}
.day .mini .overdue>:last-child{color:var(--red)}
.board{position:relative;max-width:46rem;margin:.8rem .9rem;user-select:none}
.board img{display:block;width:100%;height:auto}
.box{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border:2px solid #fff;background:rgba(25,30,40,.45);color:#fff;font-size:.9rem;font-weight:600;text-align:center;text-decoration:none;touch-action:none}
.box:hover{background:rgba(25,30,40,.7)}
.box small{font-weight:400;opacity:.85}
.box.hit{border-color:#f2e94e;background:rgba(242,233,78,.55);color:#191e28}
.box .grip{display:none;position:absolute;right:0;bottom:0;width:14px;height:14px;background:#fff;cursor:nwse-resize}
.board.arranging .box{cursor:move;outline:2px dashed #fff;outline-offset:-6px}
.board.arranging .grip{display:block}

/* ---------- Inventur ---------- */
/* Übersicht: Kennzahlen als große Ziffern, rot wenn etwas zu tun ist; jede führt zur Liste dahinter */
.content .figures{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:2rem clamp(1.25rem,5vw,72px);max-width:none;margin-top:2.5rem;padding:0;list-style:none}
.figures a{display:grid;gap:.3em;color:inherit;text-decoration:none}
.figures .lettering{font-size:clamp(3rem,5vw,4.5rem)}
.figures .alert .lettering{color:#e5483c}
.day .figures .alert .lettering{color:var(--red)}
.figures a:hover,.figures a:focus-visible{text-decoration:underline;text-underline-offset:.18em}
.content textarea{resize:vertical;line-height:1.45}
.content fieldset{display:grid;gap:.4em;margin:0;padding:0;border:0}
.content legend{padding:0;margin-bottom:.3em;font-weight:600}
.form.wide{max-width:40em}
.form .check,.check{display:flex;align-items:center;gap:.6em;font-weight:400}
.check input,.choice input,.checklist input{width:1.25em;height:1.25em;margin:0;accent-color:var(--red)}
.link{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:.18em;cursor:pointer}
.content .cta,.content .ghost{display:inline-flex;align-items:center;gap:.5em;text-decoration:none}
.content a:has(>.icon){display:inline-flex;align-items:center;gap:.4em}
.content select[multiple]{padding-right:.7em;background-image:none}
.content input[type=file]::file-selector-button{margin-right:.9em;padding:.3em .9em;border:2px solid currentColor;border-radius:0;background:none;color:inherit;font:inherit;font-weight:600;cursor:pointer}
.content .ghost{border-width:2px}
.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:.6em 1em}
.content .inline-form input:not([type=hidden],[type=checkbox],[type=radio]),.content .inline-form select{width:auto;min-width:0;flex:1 1 12em;max-width:28em}
.inline-form label{display:flex;flex-wrap:wrap;align-items:center;gap:.4em .6em;min-width:0;max-width:100%}
.filters{display:flex;flex-wrap:wrap;gap:.6em;max-width:48em}
.content .filters input,.content .filters select{flex:1 1 14em;width:auto}
.more-links{display:flex;flex-wrap:wrap;gap:.4em 1.8em;margin-top:2.5em}
.quick{display:flex;flex-wrap:wrap;align-items:center;gap:.8em 1.2em}
.quick form{flex:1 1 16rem;max-width:28rem}
.install-ios{max-width:34em;padding:.8em 1em;border-left:4px solid currentColor}
/* Listen: links was, rechts der Stand; auf dem Handy untereinander */
.content .rows{max-width:56em;padding:0;list-style:none}
.rows li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.3em 1.5em;padding:.7em 0;border-bottom:1px solid var(--line)}
.rows li>:last-child{text-align:right}
.rows a{font-weight:600}
.due li{padding-left:.8em;border-left:4px solid transparent}
.due .overdue{border-left-color:var(--red)}
.due .never{border-left-color:var(--line)}
.due .soon{border-left-color:#e0a100}
.extern{color:#e0a100;font-weight:600}
.day .extern{color:#8a5a00}
.status{display:inline-block;padding:.05em .5em;font-size:.85em;font-weight:600;border:2px solid;white-space:nowrap}
.status.ok{border-color:var(--line)}
.status.mangel{border-color:#e0a100}
.status.defekt{border-color:var(--red);background:var(--red);color:#fff}
.status.ausgemustert{opacity:.6;border-style:dashed}
.status.intern{border-style:dashed}
.tree{list-style:none;padding-left:0}
.tree .tree{padding-left:1.3em;border-left:1px solid var(--line);margin:.3em 0 .3em .3em}
.tree li{padding:.2em 0}
.tree a{font-weight:600}
.qr{display:block;width:100%;height:auto;image-rendering:pixelated}
.qrbox{width:13rem;max-width:100%}
details summary{cursor:pointer;font-weight:600}
.setup{max-width:40em}
.setup>*+*{margin-top:.9em}
.tiny{display:inline-block;margin-left:.6em;font-size:.95rem}
.tiny summary{font-weight:400;opacity:.75}
.tiny[open]{display:block;margin:.4em 0 0}
.content code,.guide,.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}
.guide{max-width:52em;white-space:pre-wrap;padding:1em;border:1px solid var(--line)}
.thumb{display:block;max-width:12rem;max-height:9rem;margin-top:.5em;object-fit:cover}
.defect{max-width:48em;padding:1.1em 0;border-bottom:1px solid var(--line)}
.defect>*+*{margin-top:.5em}
.defect h3{display:flex;flex-wrap:wrap;gap:.6em;align-items:center}
.confirm{max-width:56em;margin-top:2em;padding-top:1.5em;border-top:1px solid var(--line)}
.confirm>*+*{margin-top:1em}
/* Prüfpunkte */
.point{display:grid;gap:.45em;padding:.8em 0;border-bottom:1px solid var(--line)}
.point p{font-weight:600}
.choice{display:flex;flex-wrap:wrap;gap:.4em 1.4em}
.choice label{display:flex;align-items:center;gap:.45em;font-weight:400}
.steps{display:flex;flex-wrap:wrap;gap:1rem 3rem;list-style:none;padding:0}
.steps li{padding-left:.9em;border-left:4px solid var(--line)}
.steps .now{border-color:#e0a100}
.steps .past{border-color:currentColor}
.steps small{opacity:.75}
/* Scanner */
.scanner{position:relative;width:100%;max-width:30rem;aspect-ratio:4/3;background:#000;overflow:hidden}
.scanner.big{max-width:36rem}
.scanner video{width:100%;height:100%;object-fit:cover}
.scanner::after{content:"";position:absolute;inset:18%;border:3px solid rgba(255,255,255,.85);box-shadow:0 0 0 100vmax rgba(0,0,0,.3);pointer-events:none}
.scanner.hit::after{animation:hit .5s}
@keyframes hit{from{border-color:#3c3;box-shadow:0 0 0 100vmax rgba(60,200,60,.35)}}
.checklist{list-style:none;padding:0;max-width:44em}
.checklist li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.2em 1em;padding:.55em 0;border-bottom:1px solid var(--line)}
.checklist label{display:flex;align-items:center;gap:.7em;font-weight:600}
.checklist .extra label::after{content:"unerwartet";margin-left:.4em;padding:0 .4em;font-size:.8em;border:2px solid #e0a100}
.checklist .flash{animation:hit-row 1s}
@keyframes hit-row{from{background:rgba(60,200,60,.35)}}

/* Fenster für Hinzufügen (logic/dialog.js) */
.modal{box-sizing:border-box;width:min(44rem,calc(100% - 2rem));max-height:calc(100svh - 2rem);padding:0;border:1px solid var(--line);background:var(--plane);color:var(--ink);box-shadow:0 1.2em 3em rgba(0,0,0,.4)}
.modal::backdrop{background:rgba(0,0,0,.55)}
.modal>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.2rem;background:var(--plane);border-bottom:1px solid var(--line)}
.modal>header h2{font-size:1.6rem}
.modal .close{padding:0 .2em;border:0;background:none;color:inherit;font:inherit;font-size:1.8rem;line-height:1;cursor:pointer}
.modal>.content{padding:1.2rem 1.2rem 1.4rem}
.modal .form{max-width:none}
.modal.busy{cursor:progress}
.modal.busy>.content{opacity:.6;pointer-events:none}

/* Mitglieder */
.explorer .tabs{display:flex;gap:.2rem;padding:.4rem .9rem 0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tabs a{white-space:nowrap}
.tabs a{padding:.4em .7em;border-bottom:3px solid transparent;color:inherit;text-decoration:none;font-size:.95rem;font-weight:600}
.tabs a:hover{border-bottom-color:var(--line)}
.tabs [aria-current]{border-bottom-color:var(--red)}
.sheet h2 .add{margin-left:.5em;font-family:Barlow,system-ui,sans-serif;font-size:.85rem;font-weight:600;text-transform:none}
.sheet .add .icon{width:1em;height:1em}
.sheet form.inline{display:inline}
.sheet .assign{display:flex;gap:.5em;margin-top:.6em}
.sheet .assign select{flex:1;min-width:0;padding:.35em .5em;border:1px solid var(--line);background:var(--plane);color:inherit;font:inherit;font-size:.9rem}
.sheet .assign .ghost{padding:.35em .8em;font-size:.9rem}
.form .pair{display:grid;grid-template-columns:1fr 1fr;gap:1.1em}
.form .sizes{display:grid;grid-template-columns:repeat(auto-fill,minmax(6.5rem,1fr));gap:.6em}
.form .sizes label{font-weight:400}
.content .inline-form input.num{flex:0 0 5em;width:5em}
.rows .past{opacity:.6}
.content fieldset.roles{display:flex;flex-wrap:wrap;gap:.35em 1.4em}
.roles legend,.roles small{flex-basis:100%}
/* Rechte einer Rolle (admin/rollen.php): je Recht Name und darunter klein die Erklärung */
.content fieldset.rights{display:grid;grid-template-columns:repeat(auto-fill,minmax(17em,1fr));gap:.5em 1.5em;border:0;padding:0;margin:0}
.rights legend{margin-bottom:.4em}
.rights .check{align-items:flex-start}
.rights .check input{flex:none;margin-top:.2em}
.rights small{display:block;color:var(--muted);font-size:.8rem}
.sheet .older summary{padding:.35em 0;font-size:.9rem;font-weight:400;opacity:.75}

/* Dokumente und Unterschriften (logic/dokumente.js) */
.doc-text{max-width:40em;padding:1em 1.1em;border:1px solid var(--line);background:rgba(127,127,127,.06)}
.doc-text h3{margin:0 0 .6em;font-size:1.05rem}
.doc-text p{font-size:.98rem;line-height:1.5}
.sign{display:grid;grid-template-columns:1fr auto;gap:.3em 1em;max-width:34rem}
.sign canvas{grid-column:1/-1;display:block;width:100%;aspect-ratio:3/1;background:#fff;border:2px solid var(--ink);touch-action:none;cursor:crosshair}
.sign span{font-size:.9rem;opacity:.75}
.sign.wanted:not(.signed) canvas{border-color:var(--red);box-shadow:0 0 0 3px rgba(167,41,32,.35)}
.signs{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1.2em}
.form [data-needs-doc]{display:grid;gap:1.1em}
.form [data-needs-doc][hidden]{display:none}
.placeholders{display:flex;flex-wrap:wrap;align-items:center;gap:.35em}
.chip{padding:.15em .55em;border:1px solid var(--line);background:none;color:inherit;font:inherit;font-family:ui-monospace,Menlo,monospace;font-size:.82rem;cursor:pointer}
.chip:hover{border-color:currentColor}
.filters-inline{display:flex;flex-wrap:wrap;gap:.3em 1.4em;max-width:none}
.users .void td,.mini .void>*{opacity:.55;text-decoration:line-through}
.filters-inline .on{font-weight:600;text-decoration-thickness:2px}
.wide-table{max-width:100%;overflow-x:auto}
.content .matrix{width:auto;max-width:none}
.matrix th,.matrix td{padding:.45em 1.4em .45em 0;white-space:nowrap}
.matrix th:not(:first-child){font-size:.8rem;white-space:normal;max-width:9em;vertical-align:bottom}
.matrix a.missing,.matrix a.expired{color:#e5483c;font-weight:600}
.day .matrix a.missing,.day .matrix a.expired{color:var(--red)}
.matrix a.soon{color:#e0a100;font-weight:600}
.day .matrix a.soon{color:#8a5a00}

/* Die Fahrzeuge stehen auf Fahrzeugrot, in beiden Varianten */
.red{background:var(--red);color:#fff}

@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media (max-width:820px){
  .explorer{display:block;height:auto;min-height:0}
  .pane{display:none}
  .explorer[data-pane=tree] .tree-pane,.explorer[data-pane=list] .list-pane,.explorer[data-pane=detail] .detail-pane{display:block}
  .pane+.pane{border-left:0}
  .pane-head .back{display:inline-flex;align-items:center;gap:.3em;color:inherit;text-decoration:none;white-space:nowrap}
  .toolbar>a span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .toolbar>a{padding:.55em .65em}
  .toolbar .find{order:-1;flex:1 1 100%;margin:0 0 .2rem}
  .toolbar .find input{width:100%}
  .entries a>span{white-space:normal}
  .entries a>span small{display:block;margin-left:0}
  .vehicle,footer{grid-template-columns:minmax(0,1fr)}
  .facts{position:static}
  /* Burger-Menü: in der Leiste bleiben Name und Knopf, alles andere klappt darunter als Liste auf */
  .top{flex-wrap:wrap}
  .top .burger{display:block;align-self:center;margin:0 0 0 auto;padding:.75rem 0 .75rem .75rem}
  .burger span,.burger span::before,.burger span::after{display:block;height:3px;background:currentColor}
  .burger span{position:relative;width:1.6rem;margin:8px 0}
  .burger span::before,.burger span::after{content:"";position:absolute;left:0;right:0;top:-8px;transition:transform .15s}
  .burger span::after{top:8px}
  /* Offen wird aus den drei Strichen ein Kreuz */
  .burger[aria-expanded=true] span{background:none}
  .burger[aria-expanded=true] span::before,.burger[aria-expanded=true] span::after{top:0;transform:rotate(45deg)}
  .burger[aria-expanded=true] span::after{transform:rotate(-45deg)}
  .items{display:none;position:absolute;z-index:1;top:100%;left:0;right:0;max-height:calc(100svh - 3rem);overflow:auto;padding:.4em var(--m) 1em;background:var(--bar);color:var(--bar-ink);box-shadow:inset 0 -1px 0 var(--bar-line)}
  .burger[aria-expanded=true]+.items{display:block}
  .items>a,.menu>button{padding:.35em 0;border:0}
  .items>[aria-current],.menu ul [aria-current]{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:3px}
  /* Die Bereiche sind hier nur Überschriften: ihre Seiten stehen immer aufgeklappt und eingerückt darunter */
  .menu{display:block;position:static}
  .top .menu>button{pointer-events:none;opacity:.65}
  .menu>button::after{display:none}
  .menu>ul{display:block;position:static;min-width:0;padding:0 0 0 1em;background:none;color:inherit;box-shadow:none;white-space:normal;font-weight:400}
  .menu li+li{margin-top:0}
  .menu ul a,.menu ul button{padding:.3em 0}
  .menu ul ul{padding-top:0}
  .top .theme{width:100%;margin:.5em 0 0;padding:.8em 0 .3em;border-top:1px solid var(--bar-line)}
  .theme .icon{display:none}
  .theme .label{position:static;width:auto;height:auto;clip-path:none}
  .account{margin-top:.6em;padding-top:.6em;border-top:1px solid var(--bar-line)}
  .top .account>button{display:none}
  .account>ul{padding-left:0}
  .who{border-color:var(--bar-line)}
  .users thead{display:none}
  .users,.users tbody,.users tr,.users td{display:block}
  .users tr{padding:.8em 0;border-bottom:1px solid var(--line)}
  .users td{padding:0;border:0}
  .users td:first-child{overflow-wrap:anywhere}
  .users td+td{display:inline;font-size:.95rem}
  .users td+td+td:not(:empty)::before{content:" · "}
  .rows li>:last-child{text-align:left}
  .shots{grid-template-columns:1fr}
  .shots .tall{height:auto}
}

/* ---------- FIREWARE (body.fw): dicht gesetzt, tagsüber weiß mit dunkler Auswahl, nachts Schwarzblau mit roter Auswahl ---------- */
.fw{--m:24px;--muted:#9aa1ad;--field:#3a4250;--sel:var(--red);--soft:#202632;--plane:var(--blue);--ink:#e8eaee;--line:#2c3340;font-size:.9375rem}
.day .fw{--muted:#6b7280;--field:#c9cdd3;--sel:var(--blue);--soft:#f5f6f7;--plane:#fff;--ink:var(--blue);--line:#e3e5e8}
.fw{background:var(--plane)}
html:has(>body.fw){background:var(--blue)}
html.day:has(>body.fw){background:#fff}
.fw .content input[type=file]::file-selector-button{padding:.25em .8em;border-width:1px}
/* Die Kopfzeile zieht sich mit negativem Rand in den oberen Innenabstand der Seite: der muss --m bleiben */
.fw .page{min-height:calc(100svh - 3rem);padding:var(--m)}
.fw .page>h1{margin:1rem 0 .8rem;font-size:1.4rem;line-height:1}
.fw .content{padding-bottom:1rem}
.fw .content>*+*{margin-top:.8em}
.fw .content h2{font-size:1.2rem}
.fw .content *+h2{margin-top:1.6em}
.fw .muted{opacity:1;color:var(--muted)}
.fw .form{gap:.8em}
.fw .form label{gap:.2em;font-size:.875rem}
.fw .content input:not([type=hidden],[type=checkbox],[type=radio]),.fw .content select,.fw .content textarea{padding:.4em .6em;border:1px solid var(--field);font-size:.9375rem}
.fw .content select{padding-right:2.2em;background-size:.95em}
.fw .cta{padding:.5em 1em;font-size:.875rem}
.fw .ghost{padding:.4em .9em;border-width:1px;border-color:var(--field);font-size:.875rem}
.fw .error,.fw .done{padding:.45em .8em;font-size:.9rem}
.fw .content .users{max-width:none;font-size:.875rem}
.fw .users th,.fw .users td{padding:.4em 1.2em .4em 0}
.fw .users th{font-size:.75rem;opacity:1;color:var(--muted)}
.fw .rows li{padding:.4em 0;font-size:.9rem}
.fw .content .apps{gap:1.2rem 2rem;margin-bottom:1.5rem}
.fw .apps .lettering{font-size:clamp(1.8rem,3vw,2.4rem)}
/* Icon links über beide Zeilen; .content a:has(>.icon) würde den Link sonst zur Inline-Zeile machen */
.content .apps a{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.15em 1rem;align-items:center}
.apps a>*:not(.icon){grid-column:2}
.apps a>span:last-child{align-self:start}
.apps .icon{box-sizing:border-box;grid-row:1/3;width:3.6rem;height:3.6rem;padding:.75rem;border:1px solid var(--line);color:var(--red);stroke-width:1.75}
.apps a:hover .icon,.apps a:focus-visible .icon{background:var(--red);border-color:var(--red);color:#fff}
/* Explorer: Werkzeugleiste ohne Rahmen, Spalten so hoch wie der Bildschirm, Zeilen eng, Auswahl dunkel bzw. rot */
.fw .toolbar{margin:.7rem 0 .5rem;padding:0;border:0;gap:.1rem}
.fw .toolbar>a{padding:.35em .6em;font-size:.8125rem}
.fw .toolbar .find{padding:0 .5em;border-color:var(--field)}
.fw .toolbar .find input{width:13rem;padding:.35em 0;font-size:.8125rem}
.fw .explorer{height:calc(100svh - 6.6rem);font-size:.84375rem}
.fw .explorer-page>.done{margin:.5rem 0}
.fw .explorer-page:has(>.done) .explorer{height:calc(100svh - 9.4rem)}
.fw .tree-pane a{padding:.3em .75em;font-size:inherit}
.fw .entries a{padding:.28em .75em}
.fw .tree-pane [aria-current],.fw .entries .selected>a{background:var(--sel);color:#fff}
.fw .explorer .pane-head{padding:.45rem .8rem}
.fw .explorer .pane-head h1{font-size:.95rem}
.fw .tabs a{padding:.35em .6em;font-size:.84375rem}
.fw .sheet{padding:.6rem .85rem;font-size:inherit}
.fw .sheet dt{opacity:1;color:var(--muted)}
.fw .sheet h2{margin:1em 0 .25em;font-family:inherit;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.fw .sheet h2 .add{color:var(--ink);letter-spacing:0}
.fw .mini li{padding:.25em 0}
/* Fuß: eine schmale Zeile mit den Links, ohne Anschrift */
.fw footer{display:flex;justify-content:flex-end;padding:.7rem var(--m);background:var(--plane);color:var(--muted);border-top:1px solid var(--line);font-size:.8125rem}
.fw footer address,.fw footer .copy{display:none}
.fw .modal>header h2{font-size:1.3rem}
/* Werkzeugleiste: schwebt unten mittig über der Seite und klappt ein (logic/toolbar.js); die Explorer bekommen dafür unten Luft */
.fw .toolbar{position:fixed;z-index:30;left:0;right:0;bottom:3.4rem;flex-wrap:wrap;justify-content:center;width:max-content;max-width:calc(100% - 2rem);margin:0 auto;padding:.3rem;border:1px solid var(--line);background:var(--plane);box-shadow:0 .6em 1.8em rgba(0,0,0,.28)}
.fw .toolbar .fold{flex:none;display:grid;place-items:center;width:2rem;height:2rem;margin-left:.15rem;padding:0;border:0;border-left:1px solid var(--line);background:none;color:inherit;cursor:pointer}
.fw .toolbar .fold svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.fw .toolbar.closed>:not(.fold){display:none}
.fw .toolbar.closed .fold{margin:0;border:0}
.fw .toolbar.closed .fold svg{transform:rotate(180deg)}
.fw .explorer-page:has(>.toolbar) .explorer{margin-top:.7rem;height:calc(100svh - 8.05rem)}
.fw .explorer-page:has(>.toolbar):has(>.done) .explorer{height:calc(100svh - 10.85rem)}
.fw .toolbar>a{white-space:nowrap}
.fw .toolbar .find{flex:none;margin-left:.3rem}
.fw .explorer-page:has(>.toolbar) .pane{padding-bottom:4.5rem}
@media (max-width:820px){
  .fw .explorer,.fw .explorer-page:has(>.done) .explorer{height:auto}
  .fw .toolbar .find input{width:100%}
  .fw .explorer-page:has(>.toolbar) .explorer,.fw .explorer-page:has(>.toolbar):has(>.done) .explorer{height:auto}
  body.fw:has(.toolbar){padding-bottom:6rem}
  .fw .toolbar{bottom:1rem;width:calc(100% - 2rem)}
  .fw .toolbar .find{flex:1 1 100%;margin:0 0 .2rem}
  .fw .toolbar.closed{width:max-content}
  .fw footer{justify-content:flex-start}
}

/* Fahrzeuge (admin/fahrzeuge/): Gruppen in der Liste, archivierte blass, Fahrtenbuch als Tabelle, Bilder als Raster */
.tree-pane .group{padding:.7em .9em .3em;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;opacity:.6}
.tree-pane .archived a{opacity:.6}
.tree-pane .archived [aria-current]{opacity:1}
.sheet .log-table{width:100%;border-collapse:collapse;font-size:.875rem}
.log-table th,.log-table td{padding:.35em .8em .35em 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.log-table th{font-size:.75rem;color:var(--muted);font-weight:600}
.log-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.log-table a{color:inherit}
.sheet .shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:.6rem;margin:.6em 0;padding:0;list-style:none}
.shots li{display:grid;gap:.25em;font-size:.8rem}
.shots img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--line)}
.shots a{color:inherit}
.sheet .hint{padding:.5em .7em;border-left:3px solid var(--line);opacity:.85}
.sheet .hint.overdue{border-left-color:var(--red)}
.sheet .hint.soon{border-left-color:#e0a100}
@media (max-width:820px){.sheet .log-table .opt{display:none}}
.form .preview{display:block;max-width:100%;height:auto}
.content .years{display:flex;flex-wrap:wrap;gap:.2rem;margin:.8rem 0;border-bottom:1px solid var(--line)}
.preview-box{margin-bottom:1rem;padding:.8rem 1rem;border:1px dashed var(--line)}
.preview-box>:last-child{margin-bottom:0}
.form .syntax{font-size:.85rem}
.form .syntax code{padding:0 .2em;background:var(--line)}
