:root{color-scheme:dark;--bg:#141b24;--card:#253241;--card2:#304255;--gold:#d8b65c;--text:#f5f7fa;--muted:#bac8d8;--red:#b34848}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,"Segoe UI",Arial,sans-serif;line-height:1.5}header{background:var(--card);border-bottom:3px solid var(--red);padding:14px max(18px,calc((100vw - 1150px)/2));display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{display:flex;align-items:center;gap:14px}.brand img{width:62px;height:62px;object-fit:contain}.brand h1{font-size:clamp(19px,3vw,29px);margin:0;letter-spacing:.06em}.brand p{margin:0;color:var(--gold);font-weight:700;letter-spacing:.13em;font-size:12px}.version{font-size:11px;color:var(--muted)}main{max-width:1150px;margin:24px auto;padding:0 16px}.panel{background:var(--card);border:1px solid #425367;border-radius:16px;padding:22px;margin-bottom:18px}h2{font-size:20px;color:var(--gold);margin:4px 0 18px}.countrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:25px}.countrow input{width:95px;padding:10px;background:var(--bg);color:white;border:1px solid #738498;border-radius:8px;font-size:19px}.countrow span,.small{color:var(--muted);font-size:13px}.categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.category{background:#253241;border:1px solid #425367;border-radius:12px;padding:13px 10px 15px;text-align:center;display:flex;align-items:stretch;flex-direction:column;gap:8px;min-height:190px;transition:border-color .15s,background .15s}
.category.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.category.disabled{opacity:.45}
.categorySelect{background:transparent;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:3px;flex:1;color:var(--text);cursor:pointer}
.categorySelect img{width:135px;max-width:100%;height:79px;object-fit:contain}
.categorySelect strong{font-size:15px;overflow-wrap:anywhere}
.categorySelect small{color:var(--muted);font-size:12px}
.categorySelect:focus-visible,.directStart:focus-visible{outline:3px solid white;outline-offset:2px}
.directStart{background:#304255;border:1px solid #637b91;padding:9px 7px;border-radius:6px;font-size:13px;align-self:center;width:95%;max-width:190px}
.categoryhint{color:var(--muted);font-size:12px;margin:12px 0 0}
.imageError{display:block;color:var(--muted);margin:12px}
#questionImage a,#answerImage a{display:block;color:var(--gold);font-size:13px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}button,.button{font:inherit;border:0;border-radius:8px;padding:11px 17px;cursor:pointer;font-weight:700;color:white;display:inline-block;text-align:center}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:#a43636}.secondary{background:#40566c}.dangerOutline{background:transparent;border:1px solid #b65b5b;color:#ffb4b4}.good{background:#197447}.medium{background:#a66a17}.bad{background:#9e3434}button:hover,.button:hover{filter:brightness(1.12)}.quizhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;color:var(--muted)}.smallbutton{padding:7px 11px;font-size:13px}.question{text-align:center;padding:32px 20px}.questionText{font-size:clamp(21px,3vw,30px);font-weight:750;line-height:1.4;margin-bottom:22px}.question img{max-width:min(100%,850px);max-height:55vh;object-fit:contain;border-radius:8px;margin:12px auto;display:block;cursor:zoom-in}.question #reveal{margin:20px auto}.answerText{font-size:clamp(19px,2.6vw,26px);font-weight:750;color:var(--gold);margin:18px 0}#rufname{background:#c62828;padding:16px;color:white;font-size:clamp(20px,3vw,32px);font-weight:800;margin:20px auto;max-width:800px}#explanation{margin:14px auto;max-width:850px}#source{color:var(--muted);font-size:13px;margin-top:12px}.center{justify-content:center}.end{text-align:center;padding:45px 20px}#notice:not(:empty){background:#47392a;color:#fff1d0;border:1px solid #a78742;padding:10px 15px;border-radius:8px;margin-bottom:12px}footer{text-align:center;color:var(--muted);font-size:12px;padding:25px}code{color:var(--gold)}[hidden]{display:none!important}@media(max-width:850px){.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.version{display:none}}@media(max-width:460px){.panel{padding:14px}.categories{gap:9px}.category{min-height:175px;padding:8px 5px}.categorySelect img{height:62px}.categorySelect strong{font-size:12px}.directStart{font-size:12px;padding:8px 4px}.brand img{width:48px;height:48px}.brand h1{font-size:20px}.brand p{font-size:10px}.actions button,.actions .button{flex:1 1 100%}.question{padding:23px 12px}}
/* Näher am ursprünglichen Windows-Design: eigenständige Kacheln mit Startknopf. */
.categories{gap:14px}.panel{border-radius:11px}.category:hover:not(.disabled){background:#2b3a4b}.directStart:hover:not(:disabled){background:#415b74}

/* V1.3: Kacheln im Stil der Referenzbilder: dunkle schräge Bänder, 
   helle Fläche, klare Feuerwehr-Icons und separate Startschaltflächen. */
:root{--navy:#102337;--navy2:#213b53;--steel:#d9e2eb;--gold:#dfb95e;--red:#b83d40}
body{background:radial-gradient(circle at 85% -20%,#233c52 0%,transparent 43%),#111922}
header{background:linear-gradient(110deg,#1b2e41,#243548);border-bottom:3px solid #a94144}
.panel{background:#202e3d;border-color:#405367}
.categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.category{position:relative;overflow:hidden;min-height:242px;padding:0;gap:0;background:#e5ebf0;border:1px solid #73899e;border-radius:15px;box-shadow:0 7px 20px #080e1780;transition:transform .18s,border-color .18s,box-shadow .18s}
.category.selected{border-color:var(--gold);box-shadow:0 0 0 2px #dcb75e,0 9px 24px #080e1780}
.category:hover:not(.disabled){transform:translateY(-3px);background:#e5ebf0;box-shadow:0 13px 26px #050b1599}
.category.disabled{opacity:.54}
.categorySelect{display:flex;flex:1;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0;color:#182c3d;gap:0;min-width:0}
.categoryVisual{position:relative;isolation:isolate;display:flex;justify-content:center;align-items:center;height:124px;overflow:hidden;width:100%;background:radial-gradient(circle at 76% 40%,#edf1f5 0%,#e4e9ef 52%,#c9d4df 100%)}
.categoryVisual::before{content:"";position:absolute;inset:0 auto 0 0;width:48%;background:linear-gradient(135deg,#183249,#2d4b64);clip-path:polygon(0 0,100% 0,64% 100%,0 100%);z-index:-1}
.categoryVisual::after{content:"";position:absolute;left:37%;top:0;height:100%;width:11%;background:#91a2b3;opacity:.48;transform:skewX(-23deg);z-index:-1}
.categoryVisual img{height:90px;width:112px;max-width:70%;object-fit:contain;filter:brightness(0) saturate(100%) invert(15%) sepia(20%) saturate(1424%) hue-rotate(164deg) brightness(91%) contrast(91%)}
.categoryDetails{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:67px;padding:10px 7px 3px;width:100%}
.categoryDetails strong{font-size:clamp(14px,1.35vw,17px);font-weight:850;letter-spacing:.012em;overflow-wrap:normal;hyphens:auto;line-height:1.15;color:#1b2e42}
.categoryDetails small{font-size:12px;color:#506477;font-weight:650}
.selectionMarker{color:#3e647f;font-size:11px;font-weight:800;margin:auto 0 7px}
.category.selected .selectionMarker{color:#9a6a12}
.directStart{margin:0 11px 12px;align-self:stretch;width:auto;max-width:none;border-radius:8px;border:1px solid #9b3438;background:linear-gradient(180deg,#bb4648,#8f2d33);color:#fff;padding:10px 5px;font-size:13px;font-weight:850;box-shadow:0 3px 8px #15233240}
.directStart:hover:not(:disabled){background:linear-gradient(180deg,#d05456,#a7353a)}
.category.disabled .directStart{background:#667789;border-color:#667789}
.categoryhint{margin-top:17px}
@media(max-width:900px){.categories{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.categories{gap:11px}.category{min-height:217px}.categoryVisual{height:104px}.categoryVisual img{height:73px;width:90px}.categoryDetails{min-height:61px}.categoryDetails strong{font-size:13px}.categoryDetails small{font-size:11px}.selectionMarker{font-size:10px}.directStart{margin:0 7px 8px;font-size:11px;padding:9px 2px}}
@media(prefers-reduced-motion:reduce){.category{transition:none}}

/* V1.4: klarer, kräftiger Goldrahmen der gewählten Kategorien */
.category.selected{border:3px solid #f4c653;box-shadow:0 0 0 3px #ffdf82,0 0 0 6px #9b721e,0 12px 28px #030912a6;background:#f0f3f6}
.category.selected .selectionMarker{color:#80520b;font-weight:900}
.categorySelect[aria-pressed="true"]:focus-visible{outline:3px solid #fff;outline-offset:-4px}
