/* kode.boothtml.com - eine Seite plus Rechtstexte. Nur Systemschriften,
   nichts von fremden Servern. */

:root {
  color-scheme: light dark;
  --grund:  #f6f7f9;
  --karte:  #ffffff;
  --rand:   #dde1e6;
  --text:   #1b1f24;
  --matt:   #5a636e;
  --akzent: #0f7b6c;
  --akzent-hell: #e3f3f0;
  --warn:   #9a5b00;
  --warn-hell: #fff4e0;
  --konsole: #0d1117;
  --konsole-text: #c9d1d9;
  --konsole-gruen: #7ee787;
  --breite: 66rem;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund:  #0f1216;
    --karte:  #161b21;
    --rand:   #2a313a;
    --text:   #e8ecf0;
    --matt:   #9aa5b1;
    --akzent: #5fd3bc;
    --akzent-hell: #12302b;
    --warn:   #f0b45a;
    --warn-hell: #2e2410;
    --konsole: #090c10;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "DejaVu Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}
.mitte { max-width: var(--breite); margin: 0 auto; padding: 0 1rem; }
a { color: var(--akzent); }
a:hover { text-decoration: none; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
code { background: var(--akzent-hell); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }

/* --- Kopf und Fuss ------------------------------------------------------ */
.kopf {
  position: sticky; top: 0; z-index: 5;
  background: var(--karte);
  border-bottom: 1px solid var(--rand);
}
.kopf .mitte {
  display: flex; align-items: center; justify-content: space-between;
  gap: .4rem 1rem; flex-wrap: wrap;
  padding-top: .6rem; padding-bottom: .6rem;
}
.marke {
  font-family: var(--mono); font-weight: 700; font-size: 1.2rem;
  color: var(--text); text-decoration: none;
}
.marke span { color: var(--akzent); }
.kopf nav, .fuss nav { display: flex; gap: .3rem 1rem; flex-wrap: wrap; }
.kopf nav a, .fuss nav a { color: var(--matt); text-decoration: none; font-size: .95rem; }
.kopf nav a:hover, .fuss nav a:hover { color: var(--akzent); }

.fuss {
  margin-top: 4rem; padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--rand); background: var(--karte);
  color: var(--matt); font-size: .92rem;
}
.fuss .mitte { display: flex; justify-content: space-between; gap: .8rem 2rem; flex-wrap: wrap; }

/* --- Einstieg ----------------------------------------------------------- */
.einstieg { padding: 3.2rem 0 1.4rem; }
.einstieg h1 {
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15;
  margin: 0 0 .8rem; letter-spacing: -.01em;
}
.einstieg h1 em { font-style: normal; color: var(--akzent); }
.einstieg .unter { font-size: 1.15rem; color: var(--matt); max-width: 46rem; margin: 0 0 1.6rem; }

.befehl {
  display: flex; align-items: stretch;
  background: var(--konsole); color: var(--konsole-text);
  border-radius: 10px; border: 1px solid var(--rand);
  max-width: 46rem;
}
.befehl pre {
  margin: 0; padding: .95rem 1rem; flex: 1; min-width: 0;
  overflow-x: auto; white-space: pre; font-size: .95rem;
}
.befehl pre::before { content: "$ "; color: var(--konsole-gruen); }
.befehl button {
  flex: none; border: 0; border-left: 1px solid #2a313a; cursor: pointer;
  background: transparent; color: var(--konsole-text);
  font: inherit; font-size: .9rem; padding: 0 1.1rem;
  border-radius: 0 10px 10px 0;
}
.befehl button:hover { background: #1c232c; }
.befehl button:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.klein { font-size: .92rem; color: var(--matt); margin: .7rem 0 0; }

/* --- Abschnitte --------------------------------------------------------- */
section { padding: 2.2rem 0 .6rem; scroll-margin-top: 4rem; }
section h2 { font-size: 1.6rem; margin: 0 0 1rem; }
section h3 { font-size: 1.1rem; margin: 0 0 .4rem; }

.video {
  background: var(--konsole); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rand);
}
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--konsole); }
.bildtext { color: var(--matt); font-size: .95rem; margin: .7rem 0 0; }

.raster {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.kachel {
  background: var(--karte); border: 1px solid var(--rand);
  border-radius: 10px; padding: 1.1rem 1.2rem;
}
.kachel p { margin: 0; color: var(--matt); }

.tabelle { overflow-x: auto; border: 1px solid var(--rand); border-radius: 10px; background: var(--karte); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--matt); white-space: nowrap; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
td .kennung { font-family: var(--mono); font-size: .85rem; color: var(--matt); }
.marker {
  display: inline-block; font-size: .78rem; padding: .05rem .45rem; border-radius: 99px;
  background: var(--akzent-hell); color: var(--akzent); white-space: nowrap;
}

ol.schritte { padding-left: 1.3rem; }
ol.schritte li { margin-bottom: .6rem; }
pre.block {
  background: var(--konsole); color: var(--konsole-text);
  padding: .9rem 1rem; border-radius: 10px; overflow-x: auto; margin: .6rem 0 1rem;
}
pre.block code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }

.warnung {
  background: var(--warn-hell); border: 1px solid var(--warn);
  border-radius: 10px; padding: 1rem 1.2rem;
}
.warnung h2 { color: var(--warn); font-size: 1.25rem; margin: 0 0 .5rem; }
.warnung ul { margin: 0; padding-left: 1.2rem; }

details { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: .8rem 1.1rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 600; }

/* --- Rechtstexte -------------------------------------------------------- */
.rechtstext { padding-top: 2rem; max-width: 46rem; }
.rechtstext h1 { font-size: 2rem; }
.rechtstext h2 { font-size: 1.2rem; margin-top: 2rem; }
.rechtstext .stand { color: var(--matt); }

/* --- Minimalfassung (17.10.2026) --------------------------------------- */
.schmal { max-width: 52rem; }
.einstieg .marke { margin: 0 0 1.4rem; font-size: 1.3rem; }
.befehl.klein-befehl { margin: .5rem 0 .3rem; }
.befehl.klein-befehl pre { padding: .6rem .9rem; font-size: .9rem; }
.befehl.klein-befehl button { padding: 0 .9rem; font-size: .85rem; }
.vergleich { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.2rem 0; }
.vergleich > div { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.2rem; }
.vergleich ul, ul.hinweise { margin: 0; padding-left: 1.2rem; }
.vergleich li, ul.hinweise li { margin-bottom: .35rem; }
.fuss a { color: var(--matt); }

/* --- Quelltextansicht /code/ ------------------------------------------- */
.dateiliste { list-style: none; padding: 0; margin: 1rem 0; border: 1px solid var(--rand); border-radius: 10px; background: var(--karte); }
.dateiliste li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .9rem; border-bottom: 1px solid var(--rand); font-family: var(--mono); font-size: .92rem; }
.dateiliste li:last-child { border-bottom: 0; }
.dateiliste span { color: var(--matt); white-space: nowrap; }
.quelltext { background: var(--konsole); color: var(--konsole-text); border-radius: 10px; overflow-x: auto; font-size: .85rem; line-height: 1.5; margin: 1rem 0; }
.quelltext table { border-collapse: collapse; width: auto; font-size: inherit; }
.quelltext td { border: 0; padding: 0 .9rem 0 0; white-space: pre; font-family: var(--mono); vertical-align: top; }
.quelltext td.nr { color: #6e7681; text-align: right; padding: 0 .8rem; user-select: none; }
.pfad { font-family: var(--mono); overflow-wrap: anywhere; }
