/*!
 * KERN/ui.css — gemeinsames Erscheinungsbild für Standortwahl-Seite und
 * alle drei Tools (Stil aus Gelaendemodell/viewer/template_raster.html
 * übernommen, hier als wiederverwendbares Stylesheet statt Inline-<style>).
 */
:root {
  --bg: #0b1020;
  --panel: rgba(15, 20, 35, .90);
  --text: #eef;
  --text-dim: #9fb3d0;
  --accent: #3d6cf5;
  --accent-hover: #5583ff;
  --gelb: #ffd34d;
  --radius: 12px;
}

html, body {
  margin: 0; height: 100%; overflow: hidden;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
}

a { color: #9fc3ff; }

.kern-canvas { display: block; width: 100%; height: 100%; }

.kern-panel {
  position: absolute; top: 10px; left: 10px; background: var(--panel);
  color: var(--text); padding: 12px 16px; border-radius: var(--radius);
  max-width: 360px; box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
  max-height: calc(100vh - 20px); overflow-y: auto;
}
.kern-panel h1 { font-size: 15px; margin: 0 0 6px; }
.kern-panel h2 { font-size: 13px; margin: 14px 0 6px; color: #cde; }
.kern-panel .sub { font-size: 11px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.45; }
.kern-panel label { font-size: 12px; display: block; margin-top: 8px; color: #cde; }
.kern-panel input[type=range] { width: 100%; }
.kern-panel input[type=text], .kern-panel input[type=number] {
  width: 100%; box-sizing: border-box; background: #1b2340; color: var(--text);
  border: 1px solid #2c3760; border-radius: 6px; padding: 6px 8px; font-size: 13px;
}

.kern-btn {
  margin-top: 8px; background: var(--accent); border: 0; color: #fff; padding: 7px 14px;
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
.kern-btn:hover { background: var(--accent-hover); }
.kern-btn.sekundaer { background: #2c3760; }
.kern-btn.sekundaer:hover { background: #384675; }
.kern-btn:disabled { opacity: .5; cursor: not-allowed; }

.kern-tab {
  background: #1b2340; color: #cde; border: 1px solid #2c3760; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; cursor: pointer;
}
.kern-tab.aktiv { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Radius-Auswahlbuttons (100/200/300 m): .kern-btn.sekundaer setzt allen einen
   grauen Hintergrund — ohne diese Regel war der "aktiv"-Button (JS setzt die
   Klasse korrekt, siehe index.html) optisch nicht vom Rest zu unterscheiden. */
.kern-radien button.aktiv {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}

.kern-fehler { color: #ffb3ab; background: rgba(192,57,43,.18); border: 1px solid rgba(192,57,43,.5); border-radius: 8px; padding: 8px 10px; font-size: 12px; margin-top: 8px; }
