/* MakerLand – Startseite und KI-Installer (gleiche Farben wie style.css) */
:root {
  --ink: #1f2430;
  --muted: #5d6474;
  --paper: #fbf7f1;
  --line: #e6dfd3;
  --accent: #e07a1f;
  --accent-dark: #b85f10;
  --good: #2f8a4c;
  --bad: #c0392b;
  --warn-bg: #fff3e2;
  --warn-line: #f2c58f;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #232836; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: var(--ink); line-height: 1.5;
  background: radial-gradient(circle at 20% 0%, #3a4256, #232836 70%) no-repeat, #232836;
  min-height: 100vh;
  display: flex; justify-content: center; align-items: flex-start;
  padding: max(24px, 5vh) 16px 32px;
}
.karte {
  width: min(720px, 100%); background: var(--paper); border-radius: 18px;
  padding: 26px 30px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.kopf { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.kopf h1 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.unterzeile { margin: 0; color: var(--muted); font-size: 14px; }

section { display: none; }
section.aktiv { display: block; animation: rein .25s ease-out; }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h2 { font-size: 21px; margin: 6px 0 8px; line-height: 1.3; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.gross { font-size: 18px; font-weight: 600; }
.klein { font-size: 13px; }
.leise { color: var(--muted); }
.mitte { text-align: center; padding: 18px 0 8px; }
.mitte-text { text-align: center; }
code { font-size: 12.5px; background: #efe8dc; padding: 1px 5px; border-radius: 4px; word-break: break-all; }

.symbol {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; font-weight: 700; background: #ece5d9; margin-bottom: 8px;
}
.symbol.warm { background: var(--warn-bg); }
.symbol.gut { background: #e3f3e8; color: var(--good); }
.symbol.schlecht { background: #fbe5e2; color: var(--bad); }

.kasten { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; background: #fff; }
.kasten > :last-child { margin-bottom: 0; }
.kasten.achtung { background: var(--warn-bg); border-color: var(--warn-line); }
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.raster .kasten { margin: 0; }
.raster + .kasten { margin-top: 12px; }
@media (max-width: 600px) {
  .raster { grid-template-columns: 1fr; }
  .karte { padding: 20px 18px; }
}

ul { margin: 0; padding: 0; list-style: none; }
.haken li, .ressourcen li, .pruefliste li { position: relative; padding-left: 24px; margin: 4px 0; font-size: 14px; }
.haken li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 700; }
.ressourcen li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent-dark); }
.pruefliste li::before { position: absolute; left: 2px; font-weight: 700; }
.pruefliste li.gut::before { content: "✓"; color: var(--good); }
.pruefliste li.warn::before { content: "!"; color: var(--accent-dark); left: 6px; }
.pruefliste li.info::before { content: "·"; color: var(--muted); left: 6px; }

.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th { text-align: left; vertical-align: top; width: 30%; padding: 8px 12px 8px 0; font-weight: 600; }
.tabelle td { padding: 8px 0; }
.tabelle tr + tr th, .tabelle tr + tr td { border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .tabelle th, .tabelle td { display: block; width: auto; padding: 4px 0; }
  .tabelle tr + tr th { padding-top: 10px; }
  .tabelle tr + tr td { border-top: 0; }
}

.aufklapp summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.aufklapp[open] summary { margin-bottom: 8px; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
button { font: inherit; cursor: pointer; }
.haupt, .neben { border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 600; border: 0; }
.haupt { background: var(--accent); color: #fff; }
.haupt:hover { background: var(--accent-dark); }
.neben { background: #ece5d9; color: var(--ink); }
.neben:hover { background: #e2d9ca; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible { outline: 3px solid #f4b36b; outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; color: var(--accent-dark); text-decoration: underline; font-size: inherit; }
@media (max-width: 600px) { .knoepfe button { flex: 1 1 100%; } }

.kreisel {
  width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%;
  border: 4px solid #ece5d9; border-top-color: var(--accent); animation: dreh 0.9s linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }

/* Schritte der Installation */
.schritte { list-style: none; padding: 0; margin: 16px 0; }
.schritte li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.schritte li + li { border-top: 1px dashed var(--line); }
.schritte .punkt {
  flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: #ece5d9; color: var(--muted);
}
.schritte li.laeuft { font-weight: 600; }
.schritte li.laeuft .punkt { background: var(--accent); color: #fff; animation: puls 1.2s ease-in-out infinite; }
.schritte li.fertig .punkt { background: var(--good); color: #fff; }
.schritte li.fertig { color: var(--muted); }
.schritte li.fehler .punkt, .schritte li.abgebrochen .punkt { background: var(--bad); color: #fff; }
@keyframes puls { 50% { box-shadow: 0 0 0 6px rgba(224, 122, 31, .2); } }

.balken-bereich { margin: 0 0 14px; }
.balken { height: 14px; border-radius: 7px; background: #ece5d9; overflow: hidden; }
.balken-fuellung { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f0a04b); transition: width .4s; }
.balken.unbestimmt .balken-fuellung { width: 30%; animation: hin 1.4s ease-in-out infinite alternate; }
@keyframes hin { from { margin-left: 0; } to { margin-left: 70%; } }
.balken-text { margin: 6px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }

.protokoll {
  margin: 0; max-height: 220px; overflow: auto; font: 12px/1.5 ui-monospace, Consolas, Menlo, monospace;
  white-space: pre-wrap; color: #39404f; background: #f6f2ea; border-radius: 8px; padding: 10px;
}
.fehlerzeile { color: var(--bad); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.fehlerzeile:empty { display: none; }

/* ---------- Stübi-Stil wie Start- und Spielmenü (menue.css): schwarzer Kopf, Gelb, eckig ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(wiki-design/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(wiki-design/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
:root {
  --ink: #141414; --muted: #5b5b5b; --paper: #ffffff; --line: #dedede;
  --accent: #ffd400; --accent-dark: #8a6d00; --warn-bg: #fff8d1; --warn-line: #ffd400;
  --titel: "Barlow Condensed", Bahnschrift, "Arial Narrow", sans-serif;
}
html, body { background: #141414; }
.karte { border-radius: 0; padding: 0 0 24px; overflow: hidden; border-top: 6px solid var(--accent); }
.karte > section { padding: 0 30px; }
.kopf { background: #141414; color: #fff; padding: 16px 30px; border-bottom: 0; margin-bottom: 20px; }
.kopf .logo { height: 40px; width: auto; }
.kopf h1 { font: 800 30px/1 var(--titel); text-transform: uppercase; letter-spacing: .5px; }
.kopf .unterzeile { color: #cfcfcf; }
h2 { font-family: var(--titel); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .3px; }
.kasten, .symbol, code { border-radius: 0; }
.symbol.warm { background: var(--accent); }
.haupt, .neben {
  border-radius: 0; border: 2px solid #141414; min-height: 48px;
  font: 800 18px/1 var(--titel); text-transform: uppercase; letter-spacing: .5px;
}
.haupt { background: var(--accent); color: #141414; }
.haupt:hover { background: #141414; color: var(--accent); }
.neben { background: #fff; color: #141414; font-weight: 600; }
.neben:hover { background: var(--accent); }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px #141414; }
.link { color: #141414; }
.kreisel { border-color: #eee; border-top-color: #141414; }
.schritte .punkt { background: #eee; }
.schritte li.laeuft .punkt { background: var(--accent); color: #141414; }
@media (max-width: 600px) {
  .karte > section { padding: 0 18px; }
  .kopf { padding: 14px 18px; }
}
.balken { border-radius: 0; background: #eee; border: 1px solid #141414; }
.balken-fuellung { background: var(--accent); }
.karte > .fehlerzeile { padding: 0 30px; }
