/* BlockBauer – dunkles "Deepslate"-Design mit Gras-Akzent */
:root {
  --bg: #0f1114;
  --bg2: #13161a;
  --panel: #181b20;
  --panel2: #1f232a;
  --line: #2a2f38;
  --text: #e8ecf1;
  --muted: #9aa4b2;
  --accent: #5fbf3a;
  --accent-d: #3d8a22;
  --gold: #f2b84b;
  --cyan: #4ad3e0;
  --red: #e5483b;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 70% -10%, rgba(95, 191, 58, 0.09), transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
main:focus, main:focus-visible { outline: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.8em; }
a { color: var(--cyan); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
.warn { color: var(--gold); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #0b1a05; padding: 8px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ── Kopfzeile ─────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(15, 17, 20, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-size: 1.3rem; letter-spacing: 0.02em; white-space: nowrap; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: flex-end; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; white-space: nowrap; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel2); box-shadow: inset 0 -3px 0 var(--accent); }

/* ── Seiten ────────────────────────────────────────────── */
.page { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 48px; }
.page.narrow { max-width: 720px; }
.page-head { margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 70ch; }
.block { margin: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.top-gap { margin-top: 14px; }
.footer { border-top: 1px solid var(--line); padding: 22px 20px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.footer p { max-width: 80ch; margin: 0.3em auto; }

/* ── Bausteine ─────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--panel2); color: var(--text); text-decoration: none; cursor: pointer; font-weight: 600; line-height: 1.2; transition: transform 0.08s, background 0.15s; }
.btn:hover { background: #272c35; }
.btn:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent-d); color: #0b1a05; }
.btn.primary:hover { background: #73d24c; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff8b80; }
.btn.lg { padding: 13px 22px; font-size: 1.05rem; }
.btn.sm { padding: 5px 10px; font-size: 0.88rem; }
.btn.icon { padding: 8px 12px; min-width: 42px; }
.btn.icon.sm { padding: 4px 10px; min-width: 34px; }
.btn.wide { width: 100%; }
.chips, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chips.small { margin: 8px 0 0; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.chip.diff-einfach { color: #8ee06a; border-color: #2d5a1c; }
.chip.diff-mittel { color: var(--gold); border-color: #6a5220; }
.chip.diff-schwer { color: #ff8b80; border-color: #6a2a24; }
.chip-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font-weight: 600; }
.chip-btn:hover { color: var(--text); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent-d); color: #0b1a05; }
.badge { position: absolute; top: 8px; left: 8px; background: rgba(15, 17, 20, 0.85); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge.ok { background: var(--accent); color: #0b1a05; border-color: var(--accent-d); }
.badge.accent { background: var(--gold); color: #2b1d00; border-color: #a77b1f; }
.bar { height: 10px; background: #0d0f12; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-d), var(--accent)); width: 0; transition: width 0.3s; }
.bar.full i { background: linear-gradient(90deg, var(--gold), #ffd966); }
.bar.slim { height: 6px; margin: 8px 0 4px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: var(--muted); }

/* Formulare */
input[type="text"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; background: #0d0f12; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 42px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(74, 211, 224, 0.25); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.field.grow { flex: 1 1 200px; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; margin-top: 10px; }
.field.inline select { width: auto; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 10px 0; }
.form-row .field { flex: 1 1 120px; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 28px; }
.toolbar { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 10px; margin-bottom: 12px; }
.toolbar .chip-btn { white-space: nowrap; }
.out-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.big-out { font: 700 1.5rem ui-monospace, Menlo, Consolas, monospace; color: var(--accent); word-break: break-all; }
.big { font-size: 1.35rem; font-weight: 800; margin: 0.4em 0; }
.result { margin-top: 12px; }
ul.plain, ol.plain { margin: 0.4em 0; padding-left: 1.2em; }
ul.tips { margin: 0; padding-left: 1.1em; }
ul.tips li { margin: 0.4em 0; }

/* ── Karten & Raster ───────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.build-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s, border-color 0.15s; display: flex; flex-direction: column; }
.build-card:hover { transform: translateY(-3px); border-color: var(--accent-d); }
.build-link { color: inherit; text-decoration: none; display: block; flex: 1; }
.thumb { position: relative; background: radial-gradient(circle at 50% 70%, #232a33, #14171c); aspect-ratio: 320 / 220; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.build-body { padding: 12px 14px 14px; }
.build-body h3 { margin: 0; font-size: 1.02rem; }
.card-foot { padding: 0 14px 12px; }
.fav-star { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(15, 17, 20, 0.85); color: var(--gold); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.fav-star:hover { background: var(--panel2); }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.list-card { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.list-card:hover { border-color: var(--accent-d); }
.list-card img { border-radius: 8px; background: #14171c; flex: none; }
.list-card > div { flex: 1; min-width: 0; }

/* ── Startseite ────────────────────────────────────────── */
.home { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 48px; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; padding: 18px 0 8px; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 6px; }
.accent { color: var(--accent); }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); display: grid; gap: 4px; }
.hero-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; text-decoration: none; color: var(--text); background: linear-gradient(160deg, #202731, #14181d); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform 0.2s; }
.hero-card:hover { transform: rotate(-0.6deg) translateY(-3px); }
.hero-card .badge { position: static; align-self: flex-start; margin-bottom: 8px; }
.hero-card img { border-radius: 12px; background: #11141a; width: 100%; height: auto; }
.tile-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile-row.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform 0.15s, border-color 0.15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent-d); }
.tile-icon { font-size: 1.8rem; line-height: 1; }
.continue-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.continue { display: block; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; text-decoration: none; color: inherit; }
.block.fact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.fact-card, .rank-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.fact-card { border-left: 4px solid var(--gold); }
.rank-card { border-left: 4px solid var(--cyan); }
.fact-card p, .rank-card p { margin: 0.2em 0 0; }
.fact-icon { font-size: 2rem; line-height: 1; }

/* ── Viewer ────────────────────────────────────────────── */
.viewer-head .back { color: var(--muted); text-decoration: none; font-weight: 600; }
.viewer-head .back:hover { color: var(--text); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.title-row h1 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fav[aria-pressed="true"] { color: var(--gold); border-color: #6a5220; }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px; margin-top: 14px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1001px) and (min-height: 940px) { .layer-card { position: sticky; top: 70px; } .gen-grid > .card:first-child { position: sticky; top: 70px; } }
.layer-toolbar { display: flex; align-items: center; gap: 10px; }
.layer-label { flex: 1; text-align: center; font-weight: 800; font-size: 1.15rem; }
.layer-card input[type="range"] { margin: 10px 0 4px; }
.steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
.step { width: 18px; height: 18px; padding: 0; border-radius: 4px; border: 1px solid var(--line); background: #0d0f12; cursor: pointer; }
.step.empty { opacity: 0.45; }
.step.done { background: var(--accent); border-color: var(--accent-d); }
.step.current { outline: 2px solid var(--cyan); outline-offset: 1px; }
.layer-meta { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 0.88rem; }
.layer-stage { position: relative; overflow: auto; max-height: min(74vh, 900px); background: #0a0c0f; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.layer-canvas, .slime-map, .circle-canvas { display: block; margin: 0 auto; image-rendering: pixelated; }
.cell-tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(8, 10, 13, 0.95); border: 1px solid var(--cyan); border-radius: 8px; padding: 5px 9px; font-size: 0.82rem; white-space: nowrap; box-shadow: var(--shadow); }
.empty-note { text-align: center; margin-top: 8px; }
.layer-opts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 12px 0; }
.zoom { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.zoom-label { min-width: 52px; text-align: center; font-size: 0.85rem; color: var(--muted); }
.howto { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.howto summary { cursor: pointer; font-weight: 600; color: var(--text); }
.howto ul { padding-left: 1.2em; }
.legend { display: grid; gap: 6px; }
.legend-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left; width: 100%; }
.legend-row:hover { border-color: #3a4150; }
.legend-row.active { border-color: #ffe14d; background: #2a2812; }
.lname { flex: 1; }
.lcount { font-weight: 800; font-variant-numeric: tabular-nums; }
.swatch { image-rendering: pixelated; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.18); background: #0d0f12; flex: none; }
.iso-wrap { background: radial-gradient(circle at 50% 70%, #232a33, #14171c); border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.iso-canvas { display: block; margin: 0 auto; }
.table-wrap { overflow-x: auto; max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
table.mats { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.mats th, table.mats td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.mats th { position: sticky; top: 0; background: var(--panel2); font-size: 0.8rem; color: var(--muted); }
table.mats td.num, table.mats th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mats td:first-child { width: 34px; padding-right: 0; }

/* ── Generator ─────────────────────────────────────────── */
.gen-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr); gap: 18px; margin-top: 8px; align-items: start; }
.controls { display: grid; gap: 12px; }
.mini-mats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.mini-mats li { display: flex; align-items: center; gap: 10px; }
.mini-mats li span { flex: 1; }
.save-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

/* ── Erze ──────────────────────────────────────────────── */
.ore-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 18px; margin-top: 8px; align-items: start; }
.ore-svg { width: 100%; height: auto; max-height: 640px; display: block; }
.ore-svg .grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.ore-svg .grid.major { stroke: rgba(255, 255, 255, 0.16); }
.ore-svg .axis { fill: var(--muted); font-size: 11px; }
.ore-svg .col-bg { fill: transparent; }
.ore-svg .ore-col { cursor: pointer; }
.ore-svg .ore-col:hover .col-bg, .ore-svg .ore-col.sel .col-bg { fill: rgba(255, 255, 255, 0.05); }
.ore-svg .ore-col.sel .violin { stroke: #fff; stroke-width: 1.5; }
.ore-svg .violin { fill-opacity: 0.9; stroke: rgba(255, 255, 255, 0.35); stroke-width: 0.8; }
.ore-svg .bonus { fill-opacity: 0.18; stroke-dasharray: 4 3; stroke: currentColor; stroke-opacity: 0.6; }
.ore-svg .best { stroke: #ffe14d; stroke-width: 2; }
.ore-svg .ore-name { fill: var(--text); font-size: 12px; font-weight: 700; }
.ore-svg .ore-best { fill: var(--muted); font-size: 11px; }
.ore-svg .you { stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ore-svg .you-label { fill: var(--cyan); font-size: 11px; font-weight: 700; }
.ore-title { display: flex; align-items: center; gap: 10px; }
.ore-title h2 { margin: 0; }
.ore-dot { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255, 255, 255, 0.35); flex: none; }
.facts { display: grid; gap: 8px; margin: 12px 0; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 700; }
.y-row { display: flex; align-items: center; gap: 12px; }
.y-num { display: flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.y-num input { width: 92px; }
.meters { display: grid; gap: 6px; margin-top: 12px; }
.meter { display: grid; grid-template-columns: 16px 1fr 38% 44px; align-items: center; gap: 8px; padding: 6px 8px; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-align: left; }
.meter.sel, .meter:hover { background: var(--panel2); border-color: var(--line); }
.mbar { height: 10px; background: #0d0f12; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.mbar i { display: block; height: 100%; }
.mval { text-align: right; font-size: 0.85rem; }

/* ── Seeds & Werkzeuge ─────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.page .card + .card { margin-top: 16px; }
.two-col .card + .card { margin-top: 0; }
.seed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 18px; }
.seed-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.seed-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seed-code { background: #0d0f12; padding: 6px 10px; border-radius: 8px; word-break: break-all; color: var(--accent); }
.seed-notes { margin: 0; white-space: pre-wrap; color: var(--muted); font-size: 0.92rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.tools-grid .card + .card { margin-top: 0; }
.wide-card { grid-column: 1 / -1; }
.circle-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.circle-view { overflow: auto; max-width: 100%; }
.run-list { columns: 2; column-gap: 24px; font-variant-numeric: tabular-nums; }
.rank-banner { display: flex; align-items: center; gap: 18px; padding: 18px; background: linear-gradient(120deg, #1b2a16, var(--panel)); border: 1px solid #2d5a1c; border-radius: var(--radius); margin-bottom: 8px; }
.rank-icon { font-size: 3rem; line-height: 1; }
.rank-steps { display: flex; gap: 6px; font-size: 1.3rem; }
.rank-step { opacity: 0.25; filter: grayscale(1); }
.rank-step.on { opacity: 1; filter: none; }

/* ── Hinweise ──────────────────────────────────────────── */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; max-width: min(92vw, 380px); }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--cyan); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); animation: pop 0.2s ease-out; }
.toast.ok { border-left-color: var(--accent); }
.toast.warn { border-left-color: var(--gold); }
.toast.out { opacity: 0; transition: opacity 0.4s; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 9px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(540deg); } }

/* ── Responsiv ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .viewer-grid, .gen-grid, .ore-grid, .two-col, .hero, .block.fact { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar input { grid-column: 1 / -1; }
  .circle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 12px; }
  .nav { justify-content: flex-start; }
  .page, .home { padding: 18px 12px 36px; }
  .card { padding: 14px; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .run-list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .footer, .layer-card, .iso-card, #toasts, .actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #bbb; background: #fff; }
}

/* ── Farmen, Guides, Hinweise ─────────────────────────── */
.chip.edition { color: var(--cyan); border-color: #1f5a60; }
.note { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.note.warn-note { border-left-color: var(--gold); }
.note.underground { border-left-color: var(--cyan); }
.info-card { margin: 14px 0; }
.info-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.facts.wide div { grid-template-columns: 130px 1fr; }
.facts .plain-dd { font-weight: 500; }
.steps-list { margin: 0; padding-left: 1.3em; }
.steps-list li { margin: 0.5em 0; }
.small { font-size: 0.85rem; }
.guide-thumb { display: flex; align-items: center; justify-content: center; }
.guide-icon { font-size: 4rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; font-size: 0.9rem; }
.guide .stack { margin: 14px 0; }
.guide-section h2 { margin-bottom: 8px; }
.table-wrap.tall { max-height: none; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 640px; }
table.compare th, table.compare td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--panel2); color: var(--muted); font-size: 0.8rem; }
table.compare tbody th { color: var(--accent); white-space: nowrap; width: 150px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note-card { margin-top: 24px; }
.source-card a { word-break: break-word; }
@media (max-width: 1000px) { .info-grid { grid-template-columns: 1fr; } }
