/* Survival Builders · Download-Seite. Farben aus Spiel/css/ui.css (nur gelesen), runde „Bubble“-Optik, hell und dunkel, Handy zuerst. */
:root {
  color-scheme: light dark;
  --grund: linear-gradient(180deg, #DDF4F0 0%, #EAF2FB 45%, #F4EEF9 100%); --grund-ende: #F4EEF9;
  --karte: #FFFFFF; --karte2: #F3EFF7; --tinte: #2B2A33; --tinte2: #6B6878; --linie: #ECE6F2;
  --primaer: #5B58FF; --primaer-verlauf: linear-gradient(135deg, #6C69FF 0%, #524FFE 55%, #4A6CF0 100%); --auf-primaer: #FFFFFF; --link: #3F3CD6;
  --kopf: linear-gradient(135deg, #3A8DDB 0%, #2F7FD0 50%, #4FA9C9 100%);
  --pastell-android: #DDF5E3; --pastell-ios: #E7E6FF; --pastell-windows: #DCEEFF; --pastell-mac: #F1E6FA; --pastell-web: #FFF0D6;
  --tinte-android: #2E8A4A; --tinte-ios: #4F4BD6; --tinte-windows: #2C74C0; --tinte-mac: #8A4FB8; --tinte-web: #B37712;
  --warn-grund: #FFF1DD; --warn-tinte: #7A4207; --fehler-grund: #FDE2E3; --fehler-tinte: #8E1F24; --gut-grund: #DDF3E2; --gut-tinte: #1B5E2E;
  --schatten: 0 10px 28px rgba(82, 79, 254, .10), 0 2px 6px rgba(30, 20, 60, .06); --schatten-klein: 0 3px 10px rgba(30, 20, 60, .08);
  --r: 26px; --r-m: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: linear-gradient(180deg, #121823 0%, #161423 55%, #1B1526 100%); --grund-ende: #1B1526;
    --karte: #232030; --karte2: #2C2939; --tinte: #F2EFE9; --tinte2: #B4B0C2; --linie: #363244;
    --primaer: #7C79FF; --link: #ABA9FF; --kopf: linear-gradient(135deg, #1E4E80 0%, #1B3F6A 60%, #23506A 100%);
    --pastell-android: #1E3426; --pastell-ios: #27264A; --pastell-windows: #1C3049; --pastell-mac: #322540; --pastell-web: #3A2E17;
    --tinte-android: #8FE0A8; --tinte-ios: #B7B5FF; --tinte-windows: #8EC2FA; --tinte-mac: #DBB3F5; --tinte-web: #F3CB7C;
    --warn-grund: #3A2A14; --warn-tinte: #F6D6A8; --fehler-grund: #41191C; --fehler-tinte: #F7BDBF; --gut-grund: #17331F; --gut-tinte: #B3E4C0;
    --schatten: 0 10px 28px rgba(0, 0, 0, .35); --schatten-klein: 0 3px 10px rgba(0, 0, 0, .3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grund-ende); }
body { margin: 0; min-height: 100vh; background: var(--grund) no-repeat, var(--grund-ende); color: var(--tinte); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 16px; font-weight: 800; }
h3 { font-size: 14px; font-weight: 800; margin-top: 10px; }
p { margin: 6px 0 0; }
ol, ul { margin: 6px 0 0; padding-left: 20px; }
li + li { margin-top: 3px; }
code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; background: var(--karte2); padding: 1px 5px; border-radius: 8px; }
.klein { font-size: 12.5px; color: var(--tinte2); }
:focus-visible { outline: 3px solid var(--primaer); outline-offset: 2px; }

.kopf { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 12px; background: var(--kopf); color: #fff;
  border-radius: 0 0 28px 28px; box-shadow: var(--schatten); }
.logo { width: 44px; height: 44px; border-radius: 14px; flex: none; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.kopf-text { flex: 1 1 auto; min-width: 0; }
.kopf h1 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.kopf p { margin: 0; font-size: 12.5px; opacity: .9; }
.pille { flex: none; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #FFD66B; color: #4A3200; box-shadow: var(--schatten-klein); }

main { max-width: 820px; margin: 0 auto; padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 12px; }
.warn-blase, .info-blase { margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; line-height: 1.4; background: var(--warn-grund); color: var(--warn-tinte); box-shadow: var(--schatten-klein); }
.warn-blase a { color: inherit; font-weight: 700; white-space: nowrap; }
.warn-blase.fehler { background: var(--fehler-grund); color: var(--fehler-tinte); }
@media (max-width: 520px) { .warn-blase, .info-blase { border-radius: 18px; } }
.info-blase { background: var(--karte); color: var(--tinte); font-weight: 600; }
.info-blase.ist-neu { background: var(--warn-grund); color: var(--warn-tinte); }
.info-blase.ist-aktuell { background: var(--gut-grund); color: var(--gut-tinte); }

.karte { background: var(--karte); border-radius: var(--r); padding: 14px; box-shadow: var(--schatten); min-width: 0; }
.dein-geraet { box-shadow: 0 0 0 2.5px var(--primaer), var(--schatten); }
.kicker { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--primaer); }
.plattform { display: flex; align-items: center; gap: 10px; }
.blase-ic { flex: none; width: 44px; height: 44px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.blase-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-android .blase-ic { background: var(--pastell-android); color: var(--tinte-android); }
.p-ios .blase-ic { background: var(--pastell-ios); color: var(--tinte-ios); }
.p-windows .blase-ic { background: var(--pastell-windows); color: var(--tinte-windows); }
.p-mac .blase-ic { background: var(--pastell-mac); color: var(--tinte-mac); }
.p-web .blase-ic { background: var(--pastell-web); color: var(--tinte-web); }
.plattform-text { flex: 1 1 auto; min-width: 0; }
.plattform-text h3 { margin: 0; font-size: 16px; }
.plattform-text p { margin: 1px 0 0; font-size: 12.5px; color: var(--tinte2); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--karte2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip b { font-weight: 800; }
.chip.alt { background: var(--warn-grund); color: var(--warn-tinte); }
.hinweis-zeile { margin-top: 8px; padding: 7px 11px; border-radius: 14px; background: var(--warn-grund); color: var(--warn-tinte); font-size: 12.5px; }
.hinweis-zeile.ruhig { background: var(--karte2); color: var(--tinte); }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: var(--karte2); color: var(--tinte); font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; box-shadow: var(--schatten-klein); }
.knopf:hover { filter: brightness(.97); }
.knopf:active { transform: scale(.98); }
.knopf-primaer { background: var(--primaer-verlauf); color: var(--auf-primaer); box-shadow: 0 6px 16px rgba(82, 79, 254, .35); }
.knopf-breit { display: flex; width: 100%; margin-top: 10px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.knopf-reihe .knopf { flex: 1 1 150px; }

details { margin-top: 8px; }
details > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--karte2); font-size: 12.5px; font-weight: 700; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; font-size: 11px; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details[open] > summary { margin-bottom: 4px; }
.klapp > summary { background: none; padding: 0; font-size: 15px; font-weight: 800; }
.klapp { padding: 12px 16px; }
.unterklapp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 6px; margin-top: 4px; }
.unterklapp > details { margin-top: 6px; flex: 0 0 auto; max-width: 100%; }
.unterklapp > details[open] { flex: 1 1 100%; }
.sha { display: block; margin-top: 2px; }
.pruef-zeile + .pruef-zeile { margin-top: 8px; }
.liste { list-style: none; padding: 0; }
.liste li { padding: 8px 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.nebenpaket { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--karte2); }
.nebenpaket .knopf { margin-top: 6px; min-height: 38px; font-size: 13px; background: var(--karte); }

.abschnitt { margin: 4px 4px -2px; font-size: 14px; color: var(--tinte2); }
.raster { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .raster { grid-template-columns: 1fr 1fr; align-items: start; } }
.klein-karte { padding: 12px 16px; }
.klein-karte h2 { font-size: 15px; }
.vorformatiert { white-space: pre-line; }

.fuss { max-width: 820px; margin: 0 auto; padding: 6px 16px calc(env(safe-area-inset-bottom, 0px) + 20px); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.zurueck { margin: 0; font-weight: 700; font-size: 13px; }

.tabelle-rahmen { overflow-x: auto; margin-top: 8px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 300px; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 7px 8px 7px 0; border-top: 1px solid var(--linie); }
.tabelle thead th { border-top: 0; font-size: 12px; color: var(--tinte2); }
.tabelle tr.dein-geraet-zeile th, .tabelle tr.dein-geraet-zeile td { background: var(--karte2); }
.datei-feld { display: inline-block; margin-top: 8px; cursor: pointer; }
.datei-feld input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.datei-feld:focus-within .knopf { outline: 3px solid var(--primaer); outline-offset: 2px; }
.ergebnis { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--karte2); }
.ergebnis.gut { background: var(--gut-grund); color: var(--gut-tinte); }
.ergebnis.schlecht { background: var(--fehler-grund); color: var(--fehler-tinte); }
.ergebnis .knopf { color: var(--tinte); background: var(--karte); }
.ergebnis .knopf-primaer { color: var(--auf-primaer); background: var(--primaer-verlauf); }
.ergebnis a { color: inherit; }
.karte h2 + p, .karte h2 + ul { margin-top: 6px; }
@media (max-width: 360px) { .kopf p { display: none; } }
