:root {
  --bg: #f6f5f2; --card: #fff; --text: #1d1d1f; --muted: #66666e; --line: #e2e0da;
  --accent: #e8590c; --accent-soft: #fff1e8; --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151517; --card: #202024; --text: #ececf0; --muted: #a0a0aa; --line: #34343a;
    --accent: #ff8a3d; --accent-soft: #3a2518; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; border-radius: 10px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); background: var(--card); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
header.top .logo { font-weight: 700; color: var(--text); text-decoration: none; }
header.top nav { margin-left: auto; display: flex; gap: 14px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a[aria-current] { color: var(--text); font-weight: 600; }

.hero { padding: 36px 0 20px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; }
.hero p { margin: 0; color: var(--muted); max-width: 640px; }
.btn { display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin: 8px 0 28px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; }
.tile { min-width: 0; }
.tile b { font-size: .95rem; hyphens: auto; overflow-wrap: break-word; }
.tile small { color: var(--muted); }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Aufklappbare Abschnitte */
details.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; scroll-margin-top: 12px; }
details.sec > summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex;
  align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--muted); }
details.sec[open] > summary::after { content: "–"; }
details.sec > summary small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.body { padding: 0 20px 20px; }
.toolbar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.toolbar button { border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: .9rem; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
  counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li h3 { margin: 10px 0 4px; font-size: 1rem; }
.steps li h3::before { content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px;
  margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; }
.steps li p { margin: 0; color: var(--muted); font-size: .95rem; }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 2px dashed var(--line);
  border-radius: 10px; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px; }
.tile .ph { font-size: 2.2rem; padding: 0; }

/* Du brauchst */
.need { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.need b { display: block; margin-bottom: 6px; }
.need ul { margin: 0; padding-left: 18px; }
.tip { border-left: 3px solid var(--accent); padding: 4px 12px; margin: 16px 0 0; color: var(--muted); }

table.shop { width: 100%; border-collapse: collapse; }
table.shop td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
table.shop td:last-child { white-space: nowrap; text-align: right; }

/* Wände: Filter + Raster */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .9rem; }
.chips button small { color: var(--muted); margin-left: 2px; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips button[aria-pressed="true"] small { color: #fff; }
.group { margin: 20px 0 32px; scroll-margin-top: 60px; }
.group h2 { margin: 0 0 4px; }
.group h2 small { color: var(--muted); font-weight: 400; font-size: 1rem; }
.group .lead, .group .buy { margin: 0 0 6px; color: var(--muted); }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.wall { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.wall img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--bg); }
.wall figcaption { padding: 8px 4px 2px; font-size: .9rem; font-weight: 600; }

footer { margin-top: 40px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); margin-right: 14px; }

/* Zwei Wege bei den Modulen */
.way { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.way-title { margin: 0 0 4px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.way-title span { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.way-need { margin: 0 0 14px; color: var(--muted); }
.steps img[src$=".png"] { background: var(--bg); aspect-ratio: 4 / 3; object-fit: contain; }
