/* rahmen.css: der gemeinsame Rahmen für „Bahnen ohne Formel“ (Armin) und „Glas ohne Formel“ (Philip).
   Armin, 20.10.2026, aus dem <style> von index.html gezogen. Was beide Seiten brauchen: Farben (dieselben Namen wie in
   Damians blatt.css: --bg, --fg, --muted, --box, --accent, --rule; bindet eine Seite blatt.css ein, gelten dessen Werte),
   Schrift, Knöpfe, Kästen, und die Leiste oben, mit der man zwischen den Seiten wechselt.
   Was nur eine Seite braucht, bleibt in deren eigenem <style>. */
  /* Farben und Schrift als Variablen mit denselben Namen wie in Damians blatt.css (--bg, --fg, --muted, --box,
     --accent, --rule). Wenn die Seite blatt.css einbindet, gelten dessen Werte; diese hier sind die Vorgabe. */
  :root {
    color-scheme: light;
    --bg: #faf6ee; --fg: #2a2522; --muted: #6b6158; --box: #efe8da; --accent: #8a4b1f; --rule: #e3dccf;
    --flaeche: #fcfbf7;
    --k1: #2a78d6; --k2: #eb6834; --k3: #1baf7a;          /* Körper 1–3, nach der geprüften Reihenfolge */
    --rot: #c62828;
  }
  @media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) {
      color-scheme: dark;
      --bg: #1c1a18; --fg: #ece6dc; --muted: #a89f94; --box: #2a2724; --accent: #e0a46e; --rule: #3a3530;
      --flaeche: #141312;
      --k1: #3987e5; --k2: #d95926; --k3: #199e70;
      --rot: #ef6b6b;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1c1a18; --fg: #ece6dc; --muted: #a89f94; --box: #2a2724; --accent: #e0a46e; --rule: #3a3530;
    --flaeche: #141312;
    --k1: #3987e5; --k2: #d95926; --k3: #199e70;
    --rot: #ef6b6b;
  }
  * { box-sizing: border-box; }
  body { font-family: Georgia, "Times New Roman", serif; background: var(--bg); color: var(--fg); margin: 0; padding: 20px 16px 40px; }
  main { max-width: 980px; margin: 0 auto; }
  h1 { font-weight: normal; margin: 0 0 2px; font-size: 30px; }
  .unter { color: var(--muted); margin: 0 0 16px; }
  select, button, input[type=range] { font: inherit; font-size: 15px; }
  select, button { background: var(--box); color: var(--fg); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 10px; }
  button { cursor: pointer; }
  button:hover, select:hover { border-color: var(--muted); }
  button.haupt { background: var(--accent); color: var(--bg); border-color: var(--accent); min-width: 92px; }
  label { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
  .klein { font-size: 13px; color: var(--muted); }
  .kasten { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; }
  .kasten h2 { font-size: 16px; font-weight: normal; margin: 0 0 6px; color: var(--muted); }
  code { background: var(--box); padding: 1px 4px; border-radius: 3px; }
  a { color: var(--accent); }
  /* Schieberegler und Kästchen in der Akzentfarbe statt Browserblau (Armin, 22.10.2026; Phil hatte es am 21.10. bemerkt). */
  input[type=range], input[type=checkbox] { accent-color: var(--accent); }

/* Die Leiste oben: „Bahnen ohne Formel · Glas ohne Formel“. Die Seite, auf der man ist, steht dunkler und unterstrichen. */
.rahmenleiste { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 14px; padding: 0 0 8px;
                border-bottom: 1px solid var(--rule); font-size: 15px; }
.rahmenleiste a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.rahmenleiste a:hover { color: var(--accent); }
.rahmenleiste a[aria-current="page"] { color: var(--fg); border-bottom: 2px solid var(--accent); }
.rahmenleiste .punkt { color: var(--muted); }
