/* LPG GFD · Kolosseum-Planer im Minecraft-Bereich (3D-Bauanleitung). Nutzt die Farben der Seite, damit er zu jedem Design und jeder Saison passt. */
.kolo { --kolo-grund: var(--bg2); --kolo-schatten: rgb(var(--panel-rgb, 40 40 40) / .95); --kolo-jetzt: var(--acc);
  margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.kolo-kopf h3 { margin: 0 0 6px; font-size: 22px; }
.kolo-kopf p { margin: 0; max-width: 75ch; }
.kolo i { display: inline-block; width: 14px; height: 14px; border-radius: 2px; margin-right: 10px; flex: none; }

/* Einstellungen: zugeklappt, sobald einmal etwas gespeichert ist */
.kolo-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.kolo-form > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.kolo-form > summary:hover { color: var(--acc); }
.kolo-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 16px; align-items: start; padding: 0 16px 16px; }
.kolo-wide { grid-column: 1 / -1; }
.kolo-mat { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.kolo-check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; min-height: 40px; }
.kolo-check input { width: 18px; height: 18px; accent-color: var(--acc); }
.kolo-maße { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); }
.kolo-maße b { color: var(--text); font-size: 20px; margin-right: 4px; font-variant-numeric: tabular-nums; }

/* Die Anleitung: 3D links, der Schritt rechts, die Steuerung darunter */
.kolo-guide { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kolo-3d { position: relative; width: 100%; height: clamp(420px, 62vh, 640px); background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kolo-3d canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.kolo-3d canvas:active { cursor: grabbing; }
.kolo-lade { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); padding: 24px; text-align: center; }
.kolo-ecke { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kolo-ecke .btn { min-height: 34px; padding: 0 10px; font-size: 13px; background: var(--panel); white-space: nowrap; }
.kolo-ecke .btn[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
.kolo-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kolo-side p { margin: 0; }
.kolo-nr { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kolo-was { display: flex; align-items: center; padding: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.kolo-was span { display: flex; flex-direction: column; line-height: 1.3; }
.kolo-was b { font-size: 17px; }
.kolo-was small { color: var(--muted); font-size: 13px; }
.kolo-von { font-variant-numeric: tabular-nums; font-size: 14px; }
.kolo-karte { margin-top: 4px; }
.kolo-karte canvas { display: block; border: 1px solid var(--line); border-radius: 4px; max-width: 100%; }
.kolo-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kolo-nav .btn, .kolo-nav .btn-acc { min-width: 96px; white-space: nowrap; }
.kolo-range { flex: 1 1 240px; accent-color: var(--acc); min-height: 32px; }
.kolo-prog { margin: 0; flex-basis: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.kolo-guide:fullscreen { overflow: auto; border-radius: 0; grid-template-rows: minmax(0, 1fr) auto; }
.kolo-guide:fullscreen .kolo-3d { height: 100%; }

.kolo-liste { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; overflow-x: auto; }
.kolo-liste h4 { margin: 0; font-size: 17px; }
.kolo-liste table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.kolo-liste th, .kolo-liste td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.kolo-liste th { color: var(--muted); font-weight: 600; }
.kolo-liste .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kolo-liste tfoot td { font-weight: 700; border-bottom: 0; }

@media (max-width: 1000px) {
  .kolo-guide { grid-template-columns: minmax(0, 1fr); }
  .kolo-3d { height: 340px; }
}

/* Blockbibliothek, Explosionsfest und KI */
.kolo-sw { display: inline-block; width: 32px; height: 32px; flex: none; image-rendering: pixelated; background: var(--bg2); border-radius: 2px; margin-right: 10px; }
.kolo-wahl > .lbl { margin: 0 0 8px; }
.kolo-wahl-reihen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.kolo-pick, .kolo-treffer-b { display: flex; align-items: center; text-align: left; gap: 0; padding: 8px 10px; min-height: 52px; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; font: inherit; }
.kolo-pick:hover, .kolo-treffer-b:hover { border-color: var(--acc); }
.kolo-pick.an { border-color: var(--acc); box-shadow: inset 0 -2px 0 var(--acc); }
.kolo-pick span, .kolo-treffer-b span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.kolo-pick b, .kolo-treffer-b b { overflow-wrap: anywhere; }
.kolo-pick small, .kolo-treffer-b small { color: var(--muted); font-size: 12.5px; }
.kolo-warn { color: var(--bad, #EE7F73) !important; }
.kolo-picker { margin-top: 12px; padding: 12px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel2); }
.kolo-anz { margin: 6px 0 10px; }
.kolo-treffer { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; }
.kolo-ki { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kolo-ki textarea { resize: vertical; min-height: 44px; }
.kolo-ki .btn-acc { min-height: 44px; white-space: nowrap; }
.kolo-ki-antwort { grid-column: 1 / -1; margin: 0; }
.kolo-ki-antwort:empty { display: none; }
@media (max-width: 600px) { .kolo-ki { grid-template-columns: minmax(0, 1fr); } }
.kolo-zurueck { margin: 10px 0 0; }

/* Frei bewegen */
.kolo-art, .kolo-kreuz, .kolo-frei-hilfe, .kolo-pad { display: none; }
.kolo-3d.frei .kolo-art { display: inline-flex; }
.kolo-3d.frei canvas { cursor: crosshair; touch-action: none; }
.kolo-3d.frei .kolo-kreuz { display: block; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none;
  background: linear-gradient(#fff, #fff) center / 2px 14px no-repeat, linear-gradient(#fff, #fff) center / 14px 2px no-repeat; opacity: .8; mix-blend-mode: difference; }
.kolo-3d.frei .kolo-frei-hilfe { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 10px; bottom: 10px; max-width: min(420px, calc(100% - 20px));
  padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; line-height: 1.35; pointer-events: none; }
.kolo-frei-hilfe .finger { display: none; }
@media (pointer: coarse) {
  .kolo-frei-hilfe .maus { display: none; }
  .kolo-frei-hilfe .finger { display: block; }
  .kolo-3d.frei .kolo-frei-hilfe { top: 54px; bottom: auto; }
  .kolo-3d.frei .kolo-pad { display: flex; position: absolute; left: 10px; right: 10px; bottom: 10px; justify-content: space-between; align-items: flex-end; pointer-events: none; }
  .kolo-pad .btn { pointer-events: auto; min-width: 48px; min-height: 48px; background: var(--panel); touch-action: none; user-select: none; -webkit-user-select: none; }
  .kolo-pad-l { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); gap: 4px; }
  .kolo-pad-l [data-taste="vor"] { grid-column: 2; grid-row: 1; }
  .kolo-pad-l [data-taste="links"] { grid-column: 1; grid-row: 2; }
  .kolo-pad-l [data-taste="zurueck"] { grid-column: 2; grid-row: 2; }
  .kolo-pad-l [data-taste="rechts"] { grid-column: 3; grid-row: 2; }
  .kolo-pad-r { display: flex; flex-direction: column; gap: 4px; }
}

/* Koordinaten, angeklickter Block, Messen */
.kolo-ort { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.kolo-ort summary { cursor: pointer; font-weight: 700; }
.kolo-ort-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.kolo-ort-felder .inp { width: 100%; min-width: 0; }
.kolo-ort .hint { margin: 0; }
.kolo-block { background: var(--bg2); border: 1px solid var(--acc); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.kolo-block p { margin: 0; }
.kolo-block-titel { font-weight: 800; }
.kolo-block-kopf { display: flex; align-items: center; }
.kolo-block-kopf i { width: 32px; height: 32px; margin-right: 10px; border-radius: 2px; flex: none; }
.kolo-block-kopf span, .kolo-koord { display: flex; flex-direction: column; line-height: 1.3; }
.kolo-block small { color: var(--muted); font-size: 12.5px; }
.kolo-koord b { font-variant-numeric: tabular-nums; }
.kolo-mess { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.kolo-mess th, .kolo-mess td { text-align: left; padding: 3px 4px; border-bottom: 1px solid var(--line); }
.kolo-mess th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.kolo-mess td { white-space: nowrap; }
.kolo-mess td + td, .kolo-mess th + th { text-align: right; }
