﻿/* Astro-Hütte – eigene Gestaltung (ergänzt assets/css/style.css) */
.hut-intro { padding: clamp(18px, 3vw, 32px) 0 clamp(14px, 2vw, 22px); }
.hut-intro h1 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 6px; text-shadow: 0 0 50px rgba(141,155,255,.3); }
.hut-intro .eyebrow .dot { color: var(--sky); }
.hut-intro .lead { max-width: 62ch; margin: 0; }

.hut-app { display: grid; grid-template-columns: minmax(0, 1fr) 400px; width: 100%; border-block: 1px solid var(--line); background: #05060b; }
.hut-scene { position: relative; min-height: 560px; height: calc(100svh - 80px); max-height: 860px; overflow: hidden; touch-action: none; }
.hut-scene canvas#gl { display: block; width: 100%; height: 100%; outline: none; }
.hut-hud { position: absolute; top: 12px; left: 12px; padding: 7px 11px; font: 700 12px/1.5 var(--f-mono); color: var(--text); background: rgba(12,12,14,.62); border: 1px solid var(--line); border-radius: 10px; pointer-events: none; white-space: pre; }
.hut-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(5,6,11,.88); color: var(--text); z-index: 3; }
.hut-msg[hidden] { display: none; }
.hut-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; background: rgba(12,12,14,.66); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(4px); }
.hut-bar button, .hut-btn { font: 600 13px var(--f-body); color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.hut-bar button:hover, .hut-btn:hover { border-color: var(--text); }
.hut-bar button[aria-pressed="true"] { background: var(--accent); color: #0c0c0e; border-color: var(--accent); }
.hut-bar kbd { font: 700 11px var(--f-mono); opacity: .7; margin-left: 4px; }
.hut-speed { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--dim); }
.hut-speed input { width: clamp(90px, 18vw, 180px); }
.hut-speed output { font: 700 12px var(--f-mono); color: var(--text); min-width: 52px; }

.hut-panel { background: rgba(19,19,22,.96); border-left: 1px solid var(--line); padding: 14px; overflow-y: auto; max-height: calc(100svh - 80px); font-size: 15px; }
.hut-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.hut-tabs button { flex: 1; font: 700 12px var(--f-mono); letter-spacing: .04em; color: var(--dim); background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 4px; cursor: pointer; }
.hut-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--sky); background: #1b1d2e; }
.hut-pane[hidden] { display: none; }
.hut-pane p { margin: 0 0 10px; color: #d6d0c5; line-height: 1.5; }
.hut-pane .hut-note { color: var(--dim); font-size: 13px; }
.hut-row { display: grid; grid-template-columns: 112px 1fr 64px; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--dim); }
.hut-row output { font: 700 12px var(--f-mono); color: var(--text); text-align: right; }
.hut-row input[type=range], .hut-bar input[type=range] { accent-color: var(--accent-2); width: 100%; min-width: 0; }
.hut-check { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-weight: 600; cursor: pointer; }
.hut-check input { width: 20px; height: 20px; accent-color: var(--accent-2); }
.hut-big { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-2); font-size: 15px; color: var(--dim); }
.hut-big b { font: 700 26px var(--f-mono); color: var(--bad); margin-left: 8px; }
.hut-big.ok { border-color: var(--ok); }
.hut-big.ok b { color: var(--ok); }
.hut-pane canvas { display: block; max-width: 100%; height: auto; background: #000; border: 1px solid var(--line-strong); border-radius: 10px; margin: 8px 0; }
.hut-two { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.hut-two .hut-note { max-width: 130px; margin: 0; }
.k-ra { color: #6aa5ff; font-weight: 700; } .k-dec { color: #ff6a5a; font-weight: 700; }
.hut-btn { margin: 4px 0 12px; }

/* Rotlicht: die Bedienung wird nachtsichtfreundlich abgedunkelt */
.hut-app.red .hut-panel, .hut-app.red .hut-bar, .hut-app.red .hut-hud { filter: sepia(1) hue-rotate(-40deg) saturate(5) brightness(.6); }

@media (max-width: 900px) {
  .hut-app { grid-template-columns: 1fr; }
  .hut-scene { min-height: 420px; height: 62svh; }
  .hut-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .hut-speed { margin-left: 0; width: 100%; }
  .hut-speed input { flex: 1; width: auto; }
}

