/* Trash Scan – gemeinsames Stylesheet (Start, Desktop, Mobil) */

:root {
  --ink: #0f2a2e;
  --ink-soft: #3d5559;
  --paper: #e8eeea;
  --card: #f6f8f5;
  --line: rgba(15, 42, 46, 0.14);

  --pet: #2b6be0;
  --glas: #1e8a57;
  --alu: #8fa3ab;
  --karton: #d8921b;
  --sonder: #d2412f;
  --bio: #6f8f2a;

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, h3, p { margin: 0; }

[hidden] { display: none !important; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pet);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Kopfzeile ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark { display: inline-flex; gap: 3px; }
.brand-mark i { display: block; width: 7px; height: 22px; border-radius: 2px; }
.brand-mark i:nth-child(1) { background: var(--pet); }
.brand-mark i:nth-child(2) { background: var(--glas); }
.brand-mark i:nth-child(3) { background: var(--karton); }
.brand-mark i:nth-child(4) { background: var(--alu); }

.top-link {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hero-grid > * { min-width: 0; }

.eyebrow { color: var(--ink-soft); margin-bottom: 18px; }

.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.hero h1 .dot { color: var(--glas); }

.lead {
  margin-top: 26px;
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 700 1rem/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Scanner (Signature) ---------- */

.scanner {
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(15, 42, 46, 0.45);
}

.scanner-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scanner-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.scanner-head span { color: var(--ink-soft); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-inline: -2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 0.95rem/1 var(--f-body);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.chip svg { width: 20px; height: 20px; fill: currentColor; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.finder {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(170px, 26vw, 210px);
  margin-top: 4px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.finder::before {
  /* Eckmarken des Suchers */
  content: "";
  position: absolute;
  inset: 16px;
  background:
    linear-gradient(var(--paper), var(--paper)) top left / 22px 3px no-repeat,
    linear-gradient(var(--paper), var(--paper)) top left / 3px 22px no-repeat,
    linear-gradient(var(--paper), var(--paper)) top right / 22px 3px no-repeat,
    linear-gradient(var(--paper), var(--paper)) top right / 3px 22px no-repeat,
    linear-gradient(var(--paper), var(--paper)) bottom left / 22px 3px no-repeat,
    linear-gradient(var(--paper), var(--paper)) bottom left / 3px 22px no-repeat,
    linear-gradient(var(--paper), var(--paper)) bottom right / 22px 3px no-repeat,
    linear-gradient(var(--paper), var(--paper)) bottom right / 3px 22px no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.finder-item { width: 84px; height: 84px; fill: currentColor; transition: opacity 0.2s ease; }
.finder-hint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; opacity: 0.75; }

.finder.is-scanning .finder-item { opacity: 0.55; }
.finder.is-scanning::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 3px;
  top: 16px;
  background: var(--glas);
  box-shadow: 0 0 18px 4px rgba(30, 138, 87, 0.7);
  animation: sweep 0.9s ease-in-out;
}

@keyframes sweep {
  from { top: 16px; }
  to { top: calc(100% - 19px); }
}

.result { margin-top: 18px; }

.result-empty { color: var(--ink-soft); padding: 8px 2px 4px; }

.result-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; }
.result-title h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }

.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.fact { padding: 12px 0; border-top: 1px solid var(--line); }
.fact dt { color: var(--ink-soft); margin-bottom: 3px; }
.fact dd { margin: 0; font-weight: 500; }

.meter { margin-top: 8px; height: 10px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--glas); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }

.result.is-in { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.note { margin-top: 14px; color: var(--ink-soft); font-size: 0.85rem; }

/* Tonnen */

.bins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 22px; align-items: end; }

.bin {
  position: relative;
  height: 74px;
  border-radius: 6px 6px 12px 12px;
  background: color-mix(in srgb, var(--c) 22%, var(--card));
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.bin::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -3px;
  right: -3px;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c) 55%, var(--card));
  transition: background 0.25s ease;
}
.bin span { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); opacity: 0.75; }
.bin svg { position: absolute; top: 14px; width: 26px; height: 26px; fill: var(--paper); opacity: 0; }

.bin.is-hit { background: var(--c); transform: translateY(-6px); }
.bin.is-hit::before { background: var(--ink); }
.bin.is-hit span { color: #fff; opacity: 1; }
.bin.is-hit svg { animation: drop 0.55s 0.1s cubic-bezier(0.5, 0, 0.9, 0.5) both; }

@keyframes drop {
  0% { opacity: 1; transform: translateY(-110px); }
  80% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(48px, 8vw, 104px); border-top: 1px solid var(--line); }

.section-head { max-width: 40ch; margin-bottom: clamp(28px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 12px; }
.section h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.section-head p { margin-top: 16px; color: var(--ink-soft); }


/* Karte */

.map-card { background: var(--card); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.map-card svg { display: block; width: 100%; height: auto; }
.map-cap { padding: 16px 22px 20px; color: var(--ink-soft); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

.pin-pulse { animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(3); opacity: 0; } }

/* Fuss */

.foot { padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.92rem; }

/* ---------- Desktop-Version ---------- */

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .fact.is-wide { grid-column: 1 / -1; }
  .map-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
  .map-grid .section-head { margin-bottom: 0; }
}

/* ---------- Mobil-Version ---------- */

.is-mobile { font-size: 1rem; }
.is-mobile .hero h1 { font-size: clamp(3.4rem, 22vw, 5.6rem); }
.is-mobile .section { padding-block: 44px; }
.is-mobile .bin { height: 62px; }
.is-mobile .bin span { font-size: 0.58rem; }
.is-mobile .foot { padding-bottom: 96px; }

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(15, 42, 46, 0.6);
}
.dock a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dock a:active { background: rgba(255, 255, 255, 0.14); }

/* Mobil-Layout bleibt einspaltig, auch wenn die Datei auf einem breiten Bildschirm geöffnet wird */
.is-mobile .wrap { width: min(520px, 100% - 40px); }
.is-mobile .hero-grid,
.is-mobile .facts,
.is-mobile .map-grid { grid-template-columns: 1fr; display: grid; gap: 16px; }
.is-mobile .facts { gap: 0; }
.is-mobile .fact.is-wide { grid-column: auto; }
.is-mobile .map-grid .section-head { margin-bottom: 20px; }

html { scroll-behavior: smooth; }

/* ---------- Start-Abfrage ---------- */

.gate-body { background: var(--ink); color: var(--paper); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.gate-body .brand { color: var(--paper); }
.gate-body :focus-visible { outline-color: var(--paper); }

.gate { flex: 1; display: grid; align-content: center; padding-block: 24px 56px; }

.gate h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.gate-sub { margin-top: 18px; color: rgba(232, 238, 234, 0.7); max-width: 40ch; }

.choices { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: clamp(28px, 5vw, 48px); }

.choice {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.choice::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--c); }
.choice:hover { transform: translateY(-4px); }
.choice svg { flex: 0 0 auto; width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.choice b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; }
.choice small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }
.choice.c-mobile { --c: var(--karton); }
.choice.c-desktop { --c: var(--pet); }

.qr-panel { display: none; margin-top: clamp(24px, 4vw, 40px); }
.qr-panel.is-open { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.choices.is-hidden { display: none; }

.qr-box {
  justify-self: start;
  width: min(280px, 100%);
  aspect-ratio: 1;
  padding: 18px;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
}
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-box img { display: block; width: 244px; max-width: 100%; height: auto; }

.qr-text h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.05; }
.qr-text p { margin-top: 12px; color: rgba(232, 238, 234, 0.75); max-width: 44ch; }

.url-row { margin-top: 18px; display: grid; gap: 6px; }
.url-row label { color: rgba(232, 238, 234, 0.6); }
.url-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid rgba(232, 238, 234, 0.3);
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  font: 0.9rem/1 var(--f-mono);
}

.warn { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(216, 146, 27, 0.18); color: #f3d79b; font-size: 0.92rem; }
.warn.is-on { display: block; }

.qr-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.gate-body .btn { background: var(--paper); color: var(--ink); }
.gate-body .btn.is-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }

@media (min-width: 760px) {
  .choices { grid-template-columns: 1fr 1fr; }
  .choice { flex-direction: column; align-items: flex-start; min-height: 260px; justify-content: space-between; padding: 30px; }
  .choice svg { width: 84px; height: 84px; }
  .qr-panel.is-open { grid-template-columns: auto 1fr; gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* KI-Scanner (scanner.html) */
.cam { padding-block: 8px 40px; }
.cam-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; }
.cam-view { position: relative; margin-top: 20px; width: min(100%, 520px); aspect-ratio: 1; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--ink); }
.cam-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-view video.is-mirrored { transform: scaleX(-1); }
.cam-corner { position: absolute; inset: 14px; border: 2px solid rgba(232, 238, 234, 0.55); border-radius: 12px; pointer-events: none; }
.cam-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: var(--ink); color: var(--paper); }
.cam-overlay .btn { background: var(--paper); color: var(--ink); }
.cam-msg { color: rgba(232, 238, 234, 0.75); max-width: 32ch; font-size: 0.95rem; }
.cam-result { margin-top: 20px; width: min(100%, 520px); padding: 20px; border-radius: var(--radius); background: var(--card); }
.cam-result .result-title { margin-bottom: 0; }
.cam-result .result-title h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cam-where { margin-top: 6px; color: var(--ink-soft); }
.cam-bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.cam-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 10px; align-items: center; }
.cam-bars li .mono { grid-column: 1 / -1; color: var(--ink-soft); overflow-wrap: anywhere; }
.cam-bars li .meter { margin: 0; }
.cam-bars li .meter i { transition: width .2s; }
.cam-bars li b { font-size: 0.9rem; text-align: right; }
.cam-actions { margin-top: 16px; }
.cam-route { margin-top: 20px; width: min(100%, 520px); padding: 20px; border-radius: var(--radius); background: var(--card); }
.cam-route .eyebrow { margin-bottom: 6px; }
.cam-route h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
.cam-map { margin-top: 14px; height: 240px; border-radius: 12px; overflow: hidden; background: #dfe8e1; z-index: 0; }
.cam-route-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.cam-state { margin-bottom: 6px; }
.cam-result.is-locked { box-shadow: inset 0 0 0 2px var(--glas); }
.cam-result.is-locked .cam-state { color: var(--glas); }
.cam-result #rescan { margin-top: 16px; }

/* Wissen: Infokarten zu den Abfallarten */
.facts-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.fact-card { position: relative; padding: 22px 22px 22px 26px; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.fact-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
.fact-card .mono { color: var(--ink-soft); }
.fact-card h3 { margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; }
.fact-card ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink-soft); }
.fact-card li::marker { color: var(--c); }

/* =========================================================
   Design "Zeitung": dunkles Papier, grosse Schrift, feine Linien,
   Rot als einzige Akzentfarbe. Überschreibt die Grundwerte oben.
   ========================================================= */

:root {
  --bg: #111111;
  --ink: #f2efe8;
  --ink-soft: #b4afa5;
  --ink-faint: #8d887f;
  --paper: #111111;
  --card: transparent;
  --line: rgba(242, 239, 232, 0.2);
  --red: #ff3b1f;

  --pet: #4a7bea;
  --glas: #3fa772;
  --alu: #a7adb0;
  --karton: #e0a03a;
  --sonder: #ff3b1f;
  --bio: #93b24a;

  --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --radius: 0px;
  color-scheme: dark;
}

body { background: var(--bg); color: var(--ink); }
:focus-visible { outline-color: var(--red); border-radius: 0; }
::selection { background: var(--red); color: var(--bg); }

.mono { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; }

/* Kopfzeile wie ein Zeitungskopf */
.top { border-bottom: 1px solid var(--line); padding-block: 16px 12px; }
.brand { font-weight: 900; font-size: 1.05rem; letter-spacing: 0.01em; text-transform: uppercase; }
.brand-mark { display: none; }
.top-link { color: var(--ink-soft); border-bottom: 0; font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 0.85rem; }
.top-link::after { content: " ↗"; color: var(--red); }

/* Hero */
.eyebrow { color: var(--red); }
.hero h1 { font-weight: 900; letter-spacing: -0.06em; line-height: 0.84; }
.hero h1 .dot { color: var(--red); }
.lead { color: var(--ink-soft); }
.stat { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: end; }
.stat b { font-size: clamp(4.4rem, 15vw, 7rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.07em; color: var(--red); }
.stat span { font-size: 1.05rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; padding-bottom: 4px; }

/* Knöpfe: Rechtecke statt Pillen */
.btn { border-radius: 0; background: var(--red); color: #111; font-weight: 800; box-shadow: none; min-height: 54px; padding: 0 20px; gap: 18px; }
.btn::after { content: "↗"; font-weight: 600; }
.btn.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.is-ghost::after { content: none; }
button.btn::after { content: none; }

/* Flächen: keine Karten, sondern Spalten mit Linie oben */
.scanner, .map-card, .cam-result, .cam-route, .fact-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
}
.scanner { padding: 16px 0 0; }
.scanner-head h2 { font-weight: 800; letter-spacing: -0.02em; }

/* Scan-Demo */
.chip { border-radius: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: #111; box-shadow: none; }
.finder { border-radius: 0; background: #1b1b1b; color: var(--ink); }
.finder::before { opacity: 0.9; }
.finder.is-scanning::after { background: var(--red); box-shadow: none; }
.finder-hint { letter-spacing: 0.08em; }
.result-title h3 { font-weight: 800; }
.swatch { border-radius: 0; }
.fact dt { color: var(--ink-faint); }
.meter { border-radius: 0; height: 6px; background: rgba(242, 239, 232, 0.12); }
.meter i { border-radius: 0; background: var(--red); }
.bin { border-radius: 0; background: color-mix(in srgb, var(--c) 18%, transparent); }
.bin::before { border-radius: 0; background: color-mix(in srgb, var(--c) 55%, transparent); }
.bin span { color: var(--ink); }
.bin.is-hit::before { background: var(--ink); }
.bin.is-hit span { color: #111; }
.bin svg { fill: #111; }
.note { color: var(--ink-faint); }

/* Abschnitte */
.section { border-top: 1px solid var(--line); }
.section h2 { font-weight: 900; letter-spacing: -0.05em; line-height: 0.92; }
.section-head p { color: var(--ink-soft); }

/* Schematische Karte */
.map-card svg > rect:first-child { fill: #1b1b1b; }
.map-card svg g[stroke] { stroke: rgba(242, 239, 232, 0.1); }
.map-card svg path[stroke="#2b6be0"] { stroke: #4a7bea; }
.map-card svg text { fill: var(--ink); stroke: #1b1b1b; font-family: var(--f-body); }
.map-card svg circle[stroke] { stroke: #1b1b1b; }
.map-cap { padding-inline: 0; color: var(--ink-faint); }

/* Wissen: nummerierte Spalten wie Zeitungsartikel */
.facts-grid { gap: 28px 32px; }
.fact-card { padding: 14px 0 0; }
.fact-card::before { display: none; }
.fact-card .mono { color: var(--red); font-size: 2.6rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.fact-card h3 { font-weight: 800; letter-spacing: -0.03em; font-size: 1.5rem; }
.fact-card h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--c); vertical-align: 0.15em; }
.fact-card ul { list-style: none; padding: 0; gap: 0; }
.fact-card li { padding: 9px 0; border-top: 1px solid var(--line); }
.fact-card li:first-child { border-top: 0; }

/* Fuss und Dock */
.foot { border-top: 2px solid var(--ink); color: var(--ink-faint); }
.foot a { color: var(--ink); }
.dock { border-radius: 0; left: 0; right: 0; bottom: 0; padding: 0 0 env(safe-area-inset-bottom); gap: 0; background: #111; border-top: 1px solid var(--ink); box-shadow: none; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 1fr; }
.dock a { border-radius: 0; color: var(--ink); min-height: 52px; border-left: 1px solid var(--line); }
.dock a:first-child { border-left: 0; }
.is-mobile .foot { padding-bottom: 80px; }

/* Start-Abfrage */
.gate-body { background: var(--bg); color: var(--ink); }
.gate-body .brand { color: var(--ink); }
.gate h1 { font-weight: 900; letter-spacing: -0.06em; line-height: 0.86; }
.gate-sub, .qr-text p { color: var(--ink-soft); }
.choices { gap: 0; border-top: 2px solid var(--ink); }
.choice { border-radius: 0; background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); padding: 22px 0; }
.choice::after { display: none; }
.choice:hover { transform: none; background: rgba(242, 239, 232, 0.04); }
.choice svg { stroke: var(--red); }
.choice b { font-weight: 900; letter-spacing: -0.04em; }
.choice small { color: var(--ink-soft); }
.qr-box { border-radius: 0; }
.qr-text h2 { font-weight: 900; letter-spacing: -0.04em; }
.gate-body .btn { background: var(--red); color: #111; }
.gate-body .btn.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (min-width: 760px) {
  .choice { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px 28px 28px 0; }
  .choice + .choice { padding-left: 28px; border-right: 0; }
}

/* KI-Scanner */
.cam-title { font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; }
.cam-view { border-radius: 0; background: #1b1b1b; }
.cam-corner { border-radius: 0; border: 0; inset: 14px;
  background:
    linear-gradient(var(--red), var(--red)) top left / 28px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) top left / 3px 28px no-repeat,
    linear-gradient(var(--red), var(--red)) top right / 28px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) top right / 3px 28px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom left / 28px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom left / 3px 28px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 28px 3px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 3px 28px no-repeat; }
.cam-overlay { background: #1b1b1b; color: var(--ink); }
.cam-overlay .btn { background: var(--red); color: #111; }
.cam-msg { color: var(--ink-soft); }
.cam-result, .cam-route { padding: 14px 0 0; }
.cam-result.is-locked { border-top-color: var(--red); box-shadow: none; }
.cam-result.is-locked .cam-state { color: var(--red); }
.cam-state { color: var(--ink-faint); }
.cam-result .result-title h2, .cam-route h2 { font-weight: 900; letter-spacing: -0.04em; }
.cam-route .eyebrow { color: var(--red); }
.cam-map { border-radius: 0; background: #1b1b1b; }
.cam-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(0.8) contrast(1.1); }
.cam-map .leaflet-control-attribution { background: rgba(17, 17, 17, 0.8); color: var(--ink-faint); }
.cam-map .leaflet-control-attribution a { color: var(--ink); }

/* Kontakt ganz unten */
.contact { padding-block: clamp(40px, 7vw, 80px) 32px; border-top: 2px solid var(--ink); }
.contact h2 { margin-top: 4px; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -0.05em; line-height: 0.95; max-width: 18ch; }
.contact-list { margin: 28px 0 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.contact-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list dt { color: var(--ink-faint); }
.contact-list dd { margin: 0; font-size: clamp(1.3rem, 3.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; color: var(--red); }
.contact-list a:hover { text-decoration: underline; }
.contact + .foot { border-top: 0; }
@media (min-width: 760px) {
  .contact-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.is-mobile .contact-list { grid-template-columns: 1fr; }

/* Scanner: Sorte selbst wählen, falls die KI nicht sicher ist */
.cam-pick { margin-top: 24px; width: min(100%, 520px); }
.cam-pick .eyebrow { color: var(--red); margin-bottom: 6px; }
.cam-pick-hint { color: var(--ink-soft); font-size: 0.95rem; max-width: 42ch; }
.cam-pick-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cam-pick-btn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 10px 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 700; letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.cam-pick-btn:nth-child(odd) { border-right: 1px solid var(--line); }
.cam-pick-btn:nth-child(even) { padding-left: 12px; }
.cam-pick-btn .swatch { flex: none; width: 12px; height: 12px; border-radius: 0; }
.cam-pick-btn:hover, .cam-pick-btn[aria-pressed="true"] { color: var(--red); }
.cam-pick-btn[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--red); }
.cam-pick-btn:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.cam-source { margin-top: 14px; color: var(--ink-faint); }
.cam-station { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--red); color: var(--ink); font-weight: 600; }

/* Startseite: dritte Wahl «Quick Scan» */
.choice { text-decoration: none; }
@media (min-width: 760px) {
  .choices { grid-template-columns: repeat(3, 1fr); }
  .choice + .choice { padding-left: 28px; }
  .choice:not(:last-child) { border-right: 1px solid var(--line); }
  .choice:last-child { border-right: 0; }
}

/* Startseite: Willkommens-Bildschirm (nur beim ersten Aufruf pro Besuch) */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; align-content: center; background: var(--bg); color: var(--ink); cursor: pointer;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
  animation: intro-fallback 0.01s 6s forwards; }
.intro.is-out { transform: translateY(-100%); }
.intro-inner { justify-self: stretch; }
.intro-kicker, .intro-title > span, .intro-line { display: block; overflow: hidden; }
.intro-kicker span, .intro-line span { display: inline-block; }
.intro-kicker { color: var(--red); margin-bottom: 14px; }
.intro-title { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 900; font-size: clamp(5rem, 26vw, 15rem); line-height: 0.84; letter-spacing: -0.065em; }
.intro-title i { font-style: normal; color: var(--red); }
.intro-line { margin-top: 22px; color: var(--ink-soft); }
.intro-kicker span, .intro-title > span, .intro-line span { transform: translateY(105%); animation: intro-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.intro-kicker span { animation-delay: 0.1s; }
.intro-title > span:nth-child(1) { animation-delay: 0.25s; }
.intro-title > span:nth-child(2) { animation-delay: 0.4s; }
.intro-line span { animation-delay: 0.75s; }
.intro-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; animation: intro-bar 2.3s linear forwards; }
@keyframes intro-up { to { transform: translateY(0); } }
@keyframes intro-bar { to { transform: scaleX(1); } }
@keyframes intro-fallback { to { visibility: hidden; } }
.has-intro { overflow: hidden; }
/* Danach erscheint die Auswahl Schritt für Schritt */
.intro-done .gate h1, .intro-done .gate-sub, .intro-done .choice { animation: gate-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro-done .gate h1 { animation-delay: 0.35s; }
.intro-done .gate-sub { animation-delay: 0.45s; }
.intro-done .choice:nth-child(1) { animation-delay: 0.55s; }
.intro-done .choice:nth-child(2) { animation-delay: 0.65s; }
.intro-done .choice:nth-child(3) { animation-delay: 0.75s; }
@keyframes gate-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* Scanner: Hinweis «Standort einschalten» (nur am Handy) */
.cam-loc { margin-top: 18px; width: min(100%, 520px); padding: 14px 0 16px 14px; border-left: 3px solid var(--red); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cam-loc[hidden] { display: none; }
.cam-loc-title { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--ink); }
.cam-loc-text { margin-top: 4px; color: var(--ink-soft); font-size: 0.95rem; max-width: 46ch; }
.cam-loc .btn { margin-top: 12px; }
#route-loc { margin-top: 12px; }
#route-loc[hidden] { display: none; }

/* Startseite am Handy: nur «Quick Scan» und «Infos» */
.choice[hidden] { display: none; }
@media (min-width: 760px) {
  .choices.is-phone { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Design «Schweizer Raster» (seit 20.10.2026): reines Weiss,
   schwarze Schrift und Linien wie ein Fahrplan. Farbe nur in den
   kleinen Quadraten der Abfallsorten. Überschreibt «Zeitung».
   ========================================================= */

:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #2b2b2b;
  --ink-faint: #6b6b6b;
  --line: #000000;
  --red: #000000;
  --grey: #f2f2f2;

  --pet: #2b6be0;
  --glas: #1e9a55;
  --alu: #8a9196;
  --karton: #d39a22;
  --sonder: #e0402a;
  --bio: #7aa036;
  color-scheme: light;
}

body, .gate-body { background: var(--bg); color: var(--ink); }
::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Schrift: sachlich, weniger fett als vorher */
.hero h1, .gate h1, .cam-title, .section h2, .contact h2, .qr-text h2 { font-weight: 700; letter-spacing: -0.045em; }
.hero h1 .dot, .intro-title i { color: inherit; }
.choice b, .cam-result .result-title h2, .cam-route h2, .fact-card h3 { font-weight: 700; }
.mono { font-weight: 600; letter-spacing: 0.04em; }
.eyebrow, .cam-pick .eyebrow, .cam-route .eyebrow { color: var(--ink); }
.lead, .gate-sub, .qr-text p, .choice small, .cam-msg, .cam-pick-hint, .cam-loc-text, .section-head p { color: var(--ink-soft); }

/* Kopfzeile mit kräftiger Linie */
.top { border-bottom: 2px solid #000; }
.brand { font-weight: 800; text-transform: none; letter-spacing: -0.01em; font-size: 1.1rem; }
.top-link { color: var(--ink); }
.top-link::after { color: var(--ink); }

/* Grosse Zahl schwarz */
.stat { border-top: 2px solid #000; }
.stat b { color: #000; font-weight: 700; letter-spacing: -0.075em; }
.stat span { font-weight: 500; }

/* Knöpfe: schwarz gefüllt, Nebenknopf mit schwarzem Rahmen */
.btn, .gate-body .btn, .cam-overlay .btn { background: #000; color: #fff; font-weight: 700; }
.btn.is-ghost, .gate-body .btn.is-ghost { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000; }
.btn:hover { background: #2b2b2b; }
.btn.is-ghost:hover { background: var(--grey); }

/* Linien: alle schwarz, Abschnitte mit 2px */
.scanner, .map-card, .cam-result, .cam-route, .fact-card, .foot, .contact, .choices { border-top-color: #000; }
.section { border-top: 2px solid #000; }

/* Scan-Demo und Karte auf hellem Grau */
.chip { box-shadow: inset 0 0 0 1px #000; }
.chip[aria-pressed="true"] { background: #000; color: #fff; }
.finder { background: var(--grey); color: var(--ink); }
.finder.is-scanning::after { background: #000; }
.meter { background: #e3e3e3; }
.meter i { background: #000; }
.bin { background: color-mix(in srgb, var(--c) 14%, #fff); }
.bin.is-hit::before { background: #000; }
.bin.is-hit span { color: #fff; }
.bin svg { fill: #000; }
.map-card svg > rect:first-child { fill: var(--grey); }
.map-card svg g[stroke] { stroke: rgba(0, 0, 0, 0.1); }
.map-card svg text { fill: #000; stroke: var(--grey); }
.map-card svg circle[stroke] { stroke: #fff; }

/* Wissen: Nummern schwarz, Farbquadrat pro Sorte */
.fact-card .mono { color: #000; font-weight: 700; }
.fact-card h3::before { width: 14px; height: 14px; }

/* Start-Abfrage: Raster mit schwarzen Linien */
.choices { border-top: 2px solid #000; }
.choice { border-bottom: 1px solid #000; }
.choice:hover { background: var(--grey); }
.choice svg { stroke: #000; stroke-width: 2.5; }
@media (min-width: 760px) {
  .choice:not(:last-child) { border-right: 1px solid #000; }
  .choice { border-bottom: 1px solid #000; }
}

/* Willkommens-Bildschirm: weiss, Balken schwarz */
.intro { background: #fff; color: #000; }
.intro-kicker { color: #000; }
.intro-title { font-weight: 700; letter-spacing: -0.07em; }
.intro-line { color: var(--ink-soft); }
.intro-bar { background: #000; }

/* KI-Scanner */
.cam-view, .cam-overlay { background: var(--grey); color: var(--ink); }
.cam-corner { filter: none; }
.cam-result.is-locked { border-top-color: #000; }
.cam-result.is-locked .cam-state { color: #000; }
.cam-state { color: var(--ink-faint); }
.cam-pick-grid { border-top: 1px solid #000; }
.cam-pick-btn { border-bottom: 1px solid #000; color: #000; }
.cam-pick-btn:nth-child(odd) { border-right: 1px solid #000; }
.cam-pick-btn:hover { background: var(--grey); color: #000; }
.cam-pick-btn[aria-pressed="true"] { background: #000; color: #fff; box-shadow: none; }
.cam-pick-btn[aria-pressed="true"] .swatch { box-shadow: 0 0 0 2px #fff; }
.cam-loc { border-left: 4px solid #000; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.cam-station { border-left: 3px solid #000; }
.cam-map { background: var(--grey); }
.cam-map .leaflet-tile-pane { filter: grayscale(1) contrast(1.05); }
.cam-map .leaflet-control-attribution { background: rgba(255, 255, 255, 0.85); color: var(--ink-faint); }
.cam-map .leaflet-control-attribution a { color: #000; }

/* Kontakt, Fuss, Dock */
.contact { border-top: 2px solid #000; }
.contact-list { border-top: 1px solid #000; }
.contact-list > div { border-bottom: 1px solid #000; }
.contact-list a { color: #000; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.foot { border-top: 2px solid #000; color: var(--ink-faint); }
.foot a { color: #000; }
.dock { background: #fff; border-top: 2px solid #000; }
.dock a { color: #000; border-left: 1px solid #000; }
.dock a:first-child { border-left: 0; }

/* Hintergrund: echte Fotos, hell überlagert. Beim Scrollen wechselt das Foto, jedes zoomt langsam. */
body { background: #efece5; }
.bgfoto { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #d9d4c8; }
.bgfoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 1.4s ease; animation: bg-zoom 26s ease-in-out infinite alternate; }
.bgfoto img.is-on { opacity: 1; }
.bgfoto::after { content: ""; position: absolute; inset: 0; background: rgba(246, 243, 236, 0.7); }
.bgfoto.is-calm img { animation: none; transition: none; }
@keyframes bg-zoom { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
body > :not(.bgfoto):not(.intro):not(.dock) { position: relative; z-index: 1; }

/* Leichte Farben: Sorten-Spalten und Auswahl bekommen einen zarten Farbton */
.fact-card { background: color-mix(in srgb, var(--c) 9%, #fff); padding: 14px 16px 6px; }
.choice.c-scan { --c: #d6e4ff; }
.choice.c-info { --c: #cfeedd; }
.choice.c-mobile { --c: #f6e3b8; }
.choice.c-desktop { --c: #ffd9d0; }
.choice { background: rgba(255, 255, 255, 0.82); }
.choice:hover { background: var(--c); }
.choice svg { background: var(--c); border-radius: 50%; padding: 8px; }
.cam-pick-btn { background: rgba(255, 255, 255, 0.85); }
.cam-pick-btn:hover { background: color-mix(in srgb, var(--grey) 60%, #fff); }
.stat, .cam-loc, .contact-list > div { background: rgba(255, 255, 255, 0.82); }
.intro { overflow: hidden; background: #d9d4c8 url("https://images.unsplash.com/photo-1595278069441-2cf29f8005a4?auto=format&fit=crop&q=70&w=1600") center / cover no-repeat; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(246, 243, 236, 0.55); }
.intro-inner { position: relative; }
.intro-inner::before { content: ""; position: absolute; z-index: -1; left: -50vw; right: -50vw; top: -28px; bottom: -28px; background: #fff; border-top: 2px solid #000; border-bottom: 2px solid #000; }

/* =========================================================
   Design «Papier und Tinte» (seit 20.10.2026): warmes Cremeweiss,
   Buchschrift für grosse Texte, Dunkelgrün als einzige Farbe,
   feine gepunktete Linien. Überschreibt «Schweizer Raster».
   ========================================================= */

:root {
  --bg: #f6f3ec;
  --paper: #f6f3ec;
  --ink: #1d1c1a;
  --ink-soft: #4b4741;
  --ink-faint: #857f73;
  --line: #b9b2a4;
  --red: #2f6b4f;
  --green: #2f6b4f;
  --grey: #ebe6da;
  --f-serif: "Source Serif 4", Charter, "Bitstream Charter", Georgia, serif;
}

body, .gate-body { background: var(--bg); color: var(--ink); }
.bgfoto { background: #e3ddcf; }
.bgfoto::after { background: rgba(246, 243, 236, 0.8); }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 2px solid var(--green); }

/* Buchschrift für Titel und grosse Zahlen */
.hero h1, .gate h1, .cam-title, .section h2, .contact h2, .qr-text h2, .stat b, .intro-title,
.choice b, .fact-card h3, .cam-result .result-title h2, .cam-route h2, .scanner-head h2, .brand, .fact-card .mono, .contact-list dd, .cam-loc-title {
  font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.01em;
}
.hero h1, .gate h1, .intro-title { letter-spacing: -0.025em; line-height: 0.98; }
.stat b { font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.brand { font-weight: 600; font-size: 1.25rem; }
.choice b, .cam-result .result-title h2, .cam-route h2, .fact-card h3 { font-weight: 600; }
.contact-list dd { font-weight: 600; }
.hero h1 .dot, .intro-title i { color: var(--green); }

/* Kleine Überschriften grün, gesperrt */
.mono { font-family: var(--f-body); font-weight: 600; letter-spacing: 0.14em; }
.eyebrow, .cam-pick .eyebrow, .cam-route .eyebrow, .intro-kicker { color: var(--green); }
.intro-kicker { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.lead, .gate-sub, .qr-text p, .choice small, .cam-msg, .cam-pick-hint, .cam-loc-text, .section-head p, .cam-where { color: var(--ink-soft); }

/* Linien: oben eine feine Tintenlinie, dazwischen gepunktet */
.top { border-bottom: 1px solid var(--line); }
.top-link, .top-link::after { color: var(--ink-soft); }
.stat, .section, .contact, .foot, .scanner, .map-card, .cam-result, .cam-route, .fact-card, .choices { border-top: 1px solid var(--ink); }
.choice, .cam-pick-btn, .contact-list > div, .fact-card li { border-bottom: 1px dotted var(--line); }
.choice:not(:last-child), .cam-pick-btn:nth-child(odd) { border-right-color: transparent; }
@media (min-width: 760px) { .choice:not(:last-child) { border-right: 1px dotted var(--line); } }
.cam-pick-grid, .contact-list { border-top: 1px dotted var(--line); }
.cam-pick-btn:nth-child(odd) { border-right: 1px dotted var(--line); }
.fact-card li:first-child { border-top: 0; }

/* Knöpfe dunkelgrün, Nebenknopf mit grünem Rand */
.btn, .gate-body .btn, .cam-overlay .btn { background: var(--green); color: var(--bg); font-weight: 600; border-radius: 2px; }
.btn:hover { background: #24563f; }
.btn.is-ghost, .gate-body .btn.is-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.is-ghost:hover { background: rgba(47, 107, 79, 0.08); }

/* Flächen: Creme statt Weiss */
.choice, .cam-pick-btn, .stat, .cam-loc, .contact-list > div { background: rgba(246, 243, 236, 0.86); }
.choice:hover { background: #fffdf8; }
.choice svg { stroke: var(--green); background: rgba(47, 107, 79, 0.1); stroke-width: 2.2; }
.cam-view, .cam-overlay, .finder, .cam-map { background: var(--grey); }
.fact-card { background: rgba(246, 243, 236, 0.86); }
.fact-card .mono { color: var(--green); font-size: 2.2rem; font-style: italic; }
.chip { box-shadow: inset 0 0 0 1px var(--line); border-radius: 2px; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--bg); }
.meter { background: #e2dccf; }
.meter i, .finder.is-scanning::after { background: var(--green); }
.bin.is-hit::before { background: var(--green); }
.bin svg { fill: var(--ink); }

/* Scanner */
.cam-result.is-locked { border-top-color: var(--green); }
.cam-result.is-locked .cam-state { color: var(--green); }
.cam-pick-btn { color: var(--ink); }
.cam-pick-btn:hover { background: #fffdf8; color: var(--green); }
.cam-pick-btn[aria-pressed="true"] { background: var(--green); color: var(--bg); }
.cam-loc { border-left: 3px solid var(--green); border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); }
.cam-station { border-left: 2px solid var(--green); }
.cam-map .leaflet-tile-pane { filter: sepia(0.25) saturate(0.8); }

/* Kontakt, Fuss, Dock */
.contact-list a, .foot a { color: var(--green); text-decoration-thickness: 1px; }
.dock { background: var(--bg); border-top: 1px solid var(--ink); }
.dock a { color: var(--ink); border-left: 1px dotted var(--line); }

/* Willkommen: Foto, darauf ein cremefarbener Streifen */
.intro-inner::before { background: var(--bg); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.intro-line { color: var(--ink-soft); }
.intro-bar { background: var(--green); }

/* Helle Kästchen: links und rechts gleich viel Innenabstand, damit nichts am Rand klebt */
.contact-list > div { padding: 16px 20px; }
.stat { padding: 16px 20px; }
.cam-loc { padding: 16px 20px; }
.choice, .choice + .choice { padding-left: 20px; padding-right: 20px; }
.cam-pick-btn, .cam-pick-btn:nth-child(even) { padding-left: 14px; padding-right: 14px; }
.fact-card { padding: 16px 20px 8px; }
@media (min-width: 760px) {
  .choice, .choice + .choice { padding: 28px; }
}

/* Scanner: nächste Sammelstelle für Glas oder Alu */
.cam-collect { margin-top: 10px; padding: 12px 16px; border-left: 3px solid var(--green); background: rgba(246, 243, 236, 0.86); color: var(--ink); font-weight: 600; }
.cam-collect a { color: var(--green); white-space: nowrap; }

/* Info: Zahlen zu den Standorten */
.data-facts { margin: 22px 0 0; border-top: 1px solid var(--ink); }
.data-facts > div { padding: 14px 20px; border-bottom: 1px dotted var(--line); background: rgba(246, 243, 236, 0.86); }
.data-facts dt { color: var(--green); }
.data-facts dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.data-facts dd b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 2.2rem; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }

/* Route: zuerst wählen, ob Sammelstelle oder Abfalleimer */
.cam-goal { margin-bottom: 16px; }
.cam-goal h2 { margin-bottom: 12px; }
.cam-goal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam-goal-btn { font: inherit; font-size: 1rem; padding: 14px 16px; border: 1px solid var(--green); border-radius: 4px; background: transparent; color: var(--green); cursor: pointer; text-align: center; }
.cam-goal-btn:hover { background: rgba(47, 107, 79, 0.08); }
.cam-goal-btn[aria-pressed="true"] { background: var(--green); color: #fff; }
#route-body { padding-top: 14px; border-top: 1px dotted var(--line); }
.cam-goal[hidden] + #route-body { padding-top: 0; border-top: 0; }

/* =========================================================
   Neu (22.10.2026): Scanner-Werkzeuge, Rückmeldung, Verlauf,
   KI-Trainer, echte Karte, Abfall-ABC und Quiz
   ========================================================= */

/* Kamera: Werkzeuge, Fokusrahmen, Hinweise */
.cam-focus { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px dashed rgba(255, 255, 255, 0.75); border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.12); }
.cam-overlay:not([hidden]) ~ .cam-focus, .cam-view:has(.cam-overlay:not([hidden])) .cam-focus { display: none; }
.cam-hint { position: absolute; left: 12px; right: 12px; bottom: 56px; margin: 0; padding: 8px 12px; background: rgba(29, 28, 26, 0.78); color: #fff; font-size: 0.92rem; text-align: center; border-radius: 4px; z-index: 2; }
.cam-hint[hidden] { display: none; }
.cam-tools { position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; z-index: 2; }
.cam-tool { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(29, 28, 26, 0.65); color: #fff; cursor: pointer; }
.cam-tool[hidden] { display: none; }
.cam-tool svg { width: 22px; height: 22px; fill: currentColor; }
.cam-tool[aria-pressed="true"] { background: #f6d84a; color: #1d1c1a; }
.cam-zoom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: rgba(29, 28, 26, 0.55); color: #fff; border-radius: 4px; z-index: 2; }
.cam-zoom[hidden] { display: none; }
.cam-zoom .mono { color: #fff; font-size: 0.75rem; }
.cam-zoom input { flex: 1; accent-color: var(--green); }
.cam-view video { transform-origin: center; transition: transform .15s; }
.cam-actions { display: flex; flex-wrap: wrap; gap: 10px; width: min(100%, 520px); }
.cam-actions .btn[hidden] { display: none; }
.cam-upload { cursor: pointer; }
.cam-speak[aria-pressed="true"] { background: var(--green); color: var(--bg); }
.cam-ki { margin-top: 10px; color: var(--ink-faint); font-size: 0.75rem; width: min(100%, 520px); }

/* Ergebnis */
.cam-conf { margin-top: 4px; color: var(--green); font-size: 0.8rem; }
.cam-conf:empty, .cam-where:empty { display: none; }
.cam-tip { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--green); background: rgba(47, 107, 79, 0.07); color: var(--ink); }
.cam-tip[hidden] { display: none; }
.cam-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cam-result-actions .btn[hidden] { display: none; }
.cam-result #rescan { margin-top: 0; }
.cam-feedback { margin-top: 18px; padding-top: 14px; border-top: 1px dotted var(--line); }
.cam-feedback[hidden] { display: none; }
.cam-feedback-q { font-weight: 700; }
.cam-feedback-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cam-feedback-btns .btn { min-height: 44px; }
.cam-feedback-btns .btn[hidden] { display: none; }
.cam-feedback-pick { margin-top: 12px; flex-wrap: wrap; }
.cam-feedback-pick[hidden] { display: none; }
.cam-feedback-msg { margin-top: 10px; color: var(--green); font-weight: 600; }
.cam-feedback-msg:empty { display: none; }

/* Verlauf und Trainer-Hinweis im Scanner */
.cam-history, .cam-train { margin-top: 28px; width: min(100%, 520px); padding-top: 16px; border-top: 1px solid var(--ink); }
.cam-history h2, .cam-train h2 { font-family: var(--f-serif); font-weight: 600; font-size: 1.35rem; margin: 4px 0 6px; }
.cam-history-list { list-style: none; margin: 12px 0; padding: 0; }
.cam-history-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.cam-history-list .mono { color: var(--ink-faint); font-size: 0.75rem; }
.cam-history .btn[hidden] { display: none; }
.cam-train .btn { margin-top: 14px; }

/* KI-Trainer */
.tr { padding-block: 8px 60px; }
.tr-intro { max-width: 60ch; color: var(--ink-soft); margin-top: 10px; }
.tr-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .tr-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; } .tr-cam { position: sticky; top: 16px; } }
.tr-cam .cam-view { margin-top: 0; width: 100%; }
.tr-classes { display: grid; gap: 12px; }
.tr-class { padding: 14px 16px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.tr-class-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-class-head h3 { font-family: var(--f-serif); font-weight: 600; font-size: 1.2rem; margin: 0; flex: 1; min-width: 8ch; }
.tr-count { font-variant-numeric: tabular-nums; color: var(--green); }
.tr-count.is-low { color: #b0452f; }
.tr-class-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tr-class-btns .btn { min-height: 42px; padding: 0 14px; font-size: 0.92rem; }
.tr-class-btns .btn.is-rec { background: #b0452f; }
.tr-thumbs { display: flex; gap: 4px; margin-top: 10px; overflow: hidden; }
.tr-thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: 2px; }
.tr-add { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-add input { flex: 1; min-width: 12ch; min-height: 46px; padding: 0 12px; font: inherit; border: 1px solid var(--line); background: #fffdf8; border-radius: 2px; }
.tr-panel { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ink); }
.tr-panel h2 { font-family: var(--f-serif); font-weight: 600; font-size: 1.4rem; }
.tr-progress { margin-top: 12px; }
.tr-progress[hidden] { display: none; }
.tr-result { margin-top: 14px; }
.tr-result table { border-collapse: collapse; margin-top: 10px; font-size: 0.85rem; }
.tr-result th, .tr-result td { padding: 6px 8px; border: 1px dotted var(--line); text-align: center; }
.tr-result td.is-ok { background: rgba(47, 107, 79, 0.15); font-weight: 700; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tr-actions .btn[hidden] { display: none; }
.tr-test { margin-top: 10px; font-weight: 600; }

/* Echte Karte, Abfall-ABC, Quiz auf den Infoseiten */
.live-map { height: 420px; border-top: 1px solid var(--ink); background: var(--grey); z-index: 0; }
.live-map .leaflet-tile-pane { filter: sepia(0.25) saturate(0.8); }
.live-map-bar, .cam-feedback-pick { display: flex; flex-wrap: wrap; overflow: visible; gap: 8px; align-items: center; padding: 10px 0; }
.live-map-bar .chip[aria-pressed="false"] { opacity: 0.55; }
.live-map-bar .chip { min-height: 38px; }
.live-map-info { color: var(--ink-soft); font-size: 0.9rem; padding: 8px 0 0; }
.abc-search { width: 100%; min-height: 54px; margin-top: 18px; padding: 0 16px; font: inherit; font-size: 1.1rem; border: 1px solid var(--ink); background: #fffdf8; border-radius: 2px; }
.abc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .abc-list { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.abc-list li { display: grid; grid-template-columns: 14px 1fr; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.abc-list .swatch { margin-top: 5px; }
.abc-list b { font-weight: 700; }
.abc-list span.where { grid-column: 2; color: var(--ink-soft); font-size: 0.95rem; }
.abc-empty { margin-top: 12px; color: var(--ink-soft); }
.quiz { margin-top: 18px; padding: 18px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.quiz-q { font-family: var(--f-serif); font-size: 1.5rem; margin: 6px 0 14px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opts button { min-height: 52px; font: inherit; font-weight: 600; border: 1px solid var(--green); background: transparent; color: var(--ink); border-radius: 2px; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 12px; text-align: left; }
.quiz-opts button:hover:not(:disabled) { background: rgba(47, 107, 79, 0.08); }
.quiz-opts button.is-right { background: var(--green); color: var(--bg); }
.quiz-opts button.is-wrong { background: #b0452f; color: #fff; border-color: #b0452f; }
.quiz-fb { margin-top: 12px; min-height: 1.5em; color: var(--ink-soft); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.quiz-foot .btn[hidden] { display: none; }
.install-btn[hidden] { display: none; }

/* =========================================================
   Neu (Teil 3): Sprache/Dunkel-Schalter, Punkte, Gemeinde,
   Sprachsuche, Quiz-Modi, Standort ergänzen, Zusatz-KI, Barcode
   ========================================================= */

/* Kopfzeile: Sprache und Hell/Dunkel */
.top { gap: 12px; flex-wrap: wrap; }
.ui-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.top .top-link { order: 1; }
.top .ui-tools { order: 2; margin-left: 0; }
.top .brand { margin-right: auto; }
.ui-lang { font: 600 0.8rem var(--f-body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 6px 4px; min-height: 34px; }
.ui-theme { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer; line-height: 1; }
.ui-theme:hover, .ui-lang:hover { border-color: var(--ink); }

/* Punkte und Abzeichen */
.pk { padding: 16px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.pk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pk-level { font-family: var(--f-serif); font-size: 1.6rem; font-weight: 600; margin: 2px 0 0; }
.pk-points { margin: 0; text-align: right; }
.pk-points b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.pk-points span { color: var(--ink-soft); font-size: 0.85rem; }
.pk .meter { margin-top: 12px; }
.pk-info { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.pk-badges { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pk-badges li { display: grid; grid-template-columns: 30px 1fr; gap: 0 8px; align-items: center; padding: 8px 10px; border: 1px dotted var(--line); opacity: 0.45; }
.pk-badges li.is-got { opacity: 1; border: 1px solid var(--green); }
.pk-medal { grid-row: span 2; font-size: 1.4rem; color: var(--green); text-align: center; }
.pk-badges b { font-size: 0.9rem; }
.pk-badges small { color: var(--ink-soft); font-size: 0.75rem; line-height: 1.3; }
.pk-how { margin-top: 12px; color: var(--ink-faint); font-size: 0.8rem; }
.pk-toasts { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.pk-toast { padding: 12px 16px; background: var(--green); color: var(--bg); border-radius: 4px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); display: grid; gap: 2px; animation: pk-in .3s ease; transition: opacity .5s, transform .5s; }
.pk-toast b { font-size: 1rem; }
.pk-toast span { font-size: 0.85rem; opacity: 0.9; }
.pk-toast.is-out { opacity: 0; transform: translateY(10px); }
@keyframes pk-in { from { opacity: 0; transform: translateY(12px); } }
.cam-points { margin-top: 28px; width: min(100%, 520px); }
.cam-points h2, .cam-ask h2 { font-family: var(--f-serif); font-weight: 600; font-size: 1.35rem; margin: 4px 0 10px; }
.cam-ask { margin-top: 28px; width: min(100%, 520px); padding-top: 16px; border-top: 1px solid var(--ink); }

/* Deine Gemeinde */
.gm-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gm-plz { flex: 1; min-width: 12ch; min-height: 52px; padding: 0 14px; font: inherit; font-size: 1.1rem; border: 1px solid var(--ink); background: #fffdf8; color: var(--ink); border-radius: 2px; }
.gm-out { margin-top: 16px; }
.gm-title { font-family: var(--f-serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 10px; }
.gm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; font-weight: 600; }
.gm-pick select, .gm-pick input { min-height: 44px; padding: 0 10px; font: inherit; border: 1px solid var(--line); background: #fffdf8; color: var(--ink); border-radius: 2px; min-width: 14ch; flex: 1; }
.gm-cal, .gm-rules { margin-top: 14px; padding: 14px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.gm-cal .btn { margin-top: 12px; }
.gm-list { list-style: none; margin: 8px 0 0; padding: 0; }
.gm-list li { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 4px 14px; padding: 9px 0; border-bottom: 1px dotted var(--line); }
@media (max-width: 520px) { .gm-list li { grid-template-columns: 1fr; } }
.gm-list span { color: var(--ink-soft); }
.gm-hint { margin-top: 10px; color: var(--ink-soft); font-size: 0.9rem; }
.gm-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.gm-links a { color: var(--green); font-weight: 600; }

/* Abfall-ABC mit Sprachsuche */
.abc-bar { display: flex; gap: 8px; align-items: stretch; margin-top: 18px; }
.abc-bar .abc-search { margin-top: 0; flex: 1; min-width: 0; color: var(--ink); }
.abc-mic { flex: none; width: 54px; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 2px; cursor: pointer; display: grid; place-items: center; }
.abc-mic svg { width: 24px; height: 24px; fill: currentColor; }
.abc-mic.is-on { background: #b0452f; color: #fff; border-color: #b0452f; animation: abc-pulse 1.2s infinite; }
@keyframes abc-pulse { 50% { box-shadow: 0 0 0 8px rgba(176, 69, 47, 0.2); } }
.abc-voice { margin-top: 10px; color: var(--green); font-weight: 600; }
.abc-voice:empty { display: none; }

/* Quiz-Modi */
.quiz-modes { margin-top: 18px; flex-wrap: wrap; }
.quiz-pic { font-size: 4rem; line-height: 1; margin: 8px 0 0; text-align: center; }
.quiz-pic:empty { display: none; }
.quiz.is-pics .quiz-q { text-align: center; }
.quiz-opts .quiz-bin { display: grid; grid-template-rows: 12px 1fr; padding: 0; border: 0; min-height: 96px; background: transparent; overflow: hidden; }
.quiz-bin-lid { background: color-mix(in srgb, var(--c) 75%, #000); border-radius: 4px 4px 0 0; margin: 0 6px; }
.quiz-bin-body { display: grid; place-items: center; padding: 10px; background: var(--c); color: #fff; font-weight: 700; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); border-radius: 0 0 8px 8px; }
.quiz-opts .quiz-bin.is-right { outline: 4px solid var(--green); outline-offset: 2px; background: transparent; }
.quiz-opts .quiz-bin.is-wrong { outline: 4px solid #b0452f; outline-offset: 2px; background: transparent; opacity: 0.7; }

/* Standort ergänzen */
.live-map.is-picking { cursor: crosshair; outline: 3px dashed #7a3fb0; outline-offset: -3px; }
.live-map-add { margin-top: 12px; padding: 14px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.live-map-add[hidden] { display: none; }
.live-map-field { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 6px; }
.live-map-field select, .live-map-name { min-height: 44px; padding: 0 10px; font: inherit; border: 1px solid var(--line); background: #fffdf8; color: var(--ink); border-radius: 2px; }
.live-map-name { width: 100%; margin-top: 10px; }
.live-map-sorts { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.live-map-sorts[hidden] { display: none; }
.live-map-sorts legend { font-weight: 600; margin-bottom: 6px; }
.live-map-sorts label { display: inline-flex; align-items: center; gap: 4px; }
.live-map-del { margin-top: 6px; font: inherit; font-size: 0.85rem; border: 1px solid #b0452f; color: #b0452f; background: transparent; border-radius: 2px; padding: 4px 10px; cursor: pointer; }

/* Zusatz-KI: Rahmen und Liste */
.cam-boxes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cam-multi[aria-pressed="true"] { background: var(--green); color: var(--bg); }
.cam-multi-list { width: min(100%, 520px); margin-top: 12px; }
.cam-multi-list[hidden] { display: none; }
.cam-multi-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cam-multi-items button { width: 100%; display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px dotted var(--line); background: rgba(246, 243, 236, 0.86); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cam-multi-items button:hover { background: #fffdf8; }
.cam-multi-items button span:last-child { color: var(--ink-soft); font-size: 0.9rem; }

/* Barcode */
.cam-barcode { width: min(100%, 520px); margin-top: 16px; padding: 14px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.cam-barcode[hidden] { display: none; }
.bc-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bc-form input { flex: 1; min-width: 14ch; min-height: 46px; padding: 0 12px; font: inherit; border: 1px solid var(--line); background: #fffdf8; color: var(--ink); border-radius: 2px; }
.bc-card { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.bc-card img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 4px; }
.bc-card h3 { font-family: var(--f-serif); font-weight: 600; font-size: 1.25rem; margin: 0; }
.bc-parts { list-style: none; margin: 12px 0; padding: 0; }
.bc-parts li { display: grid; grid-template-columns: 14px 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.bc-parts .swatch { margin-top: 4px; }
.bc-parts li span:last-child { grid-column: 2; color: var(--ink-soft); font-size: 0.92rem; }
body.is-barcode .cam-focus { width: 80%; aspect-ratio: 2.2; border-color: #f6d84a; }

.tr-suggest { margin-top: 8px; flex-wrap: wrap; }

/* =========================================================
   Dunkelmodus (Systemeinstellung oder Schalter oben rechts)
   ========================================================= */
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #161614;
  --paper: #161614;
  --ink: #ece8df;
  --ink-soft: #bdb7ab;
  --ink-faint: #8f897d;
  --line: #4a463f;
  --red: #74c49a;
  --green: #74c49a;
  --grey: #23221f;
  --pet: #5b8ff0;
  --glas: #3fb07a;
  --alu: #9fb1b8;
  --karton: #e3a33a;
  --sonder: #ee6a55;
  --bio: #98b84e;
}
[data-mode="dark"] body, [data-mode="dark"] .gate-body { background: var(--bg); color: var(--ink); }
[data-mode="dark"] .bgfoto { background: #0e0e0d; }
[data-mode="dark"] .bgfoto::after { background: rgba(22, 22, 20, 0.88); }
[data-mode="dark"] .bgfoto img { filter: brightness(0.55) saturate(0.7); }
[data-mode="dark"] .choice, [data-mode="dark"] .cam-pick-btn, [data-mode="dark"] .stat, [data-mode="dark"] .cam-loc,
[data-mode="dark"] .contact-list > div, [data-mode="dark"] .fact-card, [data-mode="dark"] .cam-collect, [data-mode="dark"] .data-facts > div,
[data-mode="dark"] .tr-class, [data-mode="dark"] .quiz, [data-mode="dark"] .pk, [data-mode="dark"] .gm-cal, [data-mode="dark"] .gm-rules,
[data-mode="dark"] .live-map-add, [data-mode="dark"] .cam-barcode, [data-mode="dark"] .cam-multi-items button, [data-mode="dark"] .scanner,
[data-mode="dark"] .cam-result, [data-mode="dark"] .cam-route { background: rgba(30, 29, 26, 0.92); }
[data-mode="dark"] .choice:hover, [data-mode="dark"] .cam-pick-btn:hover, [data-mode="dark"] .cam-multi-items button:hover { background: #2a2925; }
[data-mode="dark"] .abc-search, [data-mode="dark"] .tr-add input, [data-mode="dark"] .gm-plz, [data-mode="dark"] .gm-pick select, [data-mode="dark"] .gm-pick input,
[data-mode="dark"] .live-map-field select, [data-mode="dark"] .live-map-name, [data-mode="dark"] .bc-form input { background: #1f1e1b; color: var(--ink); }
[data-mode="dark"] .meter { background: #34322d; }
[data-mode="dark"] .btn:hover { background: #8fd3ae; }
[data-mode="dark"] .btn.is-ghost:hover { background: rgba(116, 196, 154, 0.12); }
[data-mode="dark"] .chip { background: transparent; color: var(--ink); }
[data-mode="dark"] .chip[aria-pressed="true"] { background: var(--green); color: var(--bg); }
[data-mode="dark"] .cam-tip { background: rgba(116, 196, 154, 0.1); }
[data-mode="dark"] .intro { background-color: #0e0e0d; }
[data-mode="dark"] .intro::before { background: rgba(22, 22, 20, 0.6); }
[data-mode="dark"] .bin svg { fill: var(--ink); }
[data-mode="dark"] .finder, [data-mode="dark"] .cam-view, [data-mode="dark"] .cam-overlay { background: var(--grey); }
[data-mode="dark"] .cam-map .leaflet-tile-pane, [data-mode="dark"] .live-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
[data-mode="dark"] .leaflet-popup-content-wrapper, [data-mode="dark"] .leaflet-popup-tip { background: #23221f; color: var(--ink); }
[data-mode="dark"] .leaflet-popup-content a, [data-mode="dark"] .gm-links a { color: var(--green); }
[data-mode="dark"] .leaflet-control-attribution { background: rgba(22, 22, 20, 0.8) !important; color: var(--ink-faint); }
[data-mode="dark"] .leaflet-control-attribution a { color: var(--ink-soft); }
[data-mode="dark"] .quiz-bin-body { color: #111; text-shadow: none; }
[data-mode="dark"] .bc-card img { background: #eee; }
[data-mode="dark"] .brand-mark i { filter: brightness(1.2); }
[data-mode="dark"] ::selection { background: var(--green); color: var(--bg); }
.gm-list span.is-lines { white-space: pre-line; }
[data-mode="dark"] .cam-pick-btn[aria-pressed="true"], [data-mode="dark"] .cam-goal-btn[aria-pressed="true"] { background: var(--green); color: var(--bg); }
[data-mode="dark"] .cam-goal-btn[aria-pressed="true"] { color: #111; }

/* =========================================================
   Konto (Login) und Admin-Bereich
   ========================================================= */
.ui-konto { font: 600 0.8rem var(--f-body); color: var(--green); text-decoration: none; border: 1px solid var(--green); border-radius: 2px; padding: 0 10px; min-height: 34px; display: inline-flex; align-items: center; }
.ui-konto.is-in { background: var(--green); color: var(--bg); }
.kt, .ad { padding-block: 8px 60px; }
.kt-intro { max-width: 60ch; color: var(--ink-soft); margin-top: 10px; }
.kt-box { margin-top: 20px; width: min(100%, 480px); }
.kt-tabs { margin-bottom: 14px; }
.kt-form { display: grid; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.kt-field { display: grid; gap: 4px; font-weight: 600; }
.kt-field input { min-height: 48px; padding: 0 12px; font: inherit; font-weight: 400; border: 1px solid var(--line); background: #fffdf8; color: var(--ink); border-radius: 2px; }
.kt-field input:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 0; }
.kt-code { font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.kt-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.9rem; color: var(--ink-soft); }
.kt-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.kt-link { justify-self: start; border: 0; background: none; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.kt-msg { margin: 0; padding: 10px 12px; border-left: 3px solid #b0452f; background: rgba(176, 69, 47, 0.08); color: var(--ink); }
.kt-msg.is-ok { border-left-color: var(--green); background: rgba(47, 107, 79, 0.08); }
.kt-note { color: var(--ink-soft); margin: 8px 0; max-width: 60ch; }
.kt-h { font-family: var(--f-serif); font-weight: 600; font-size: 1.4rem; margin: 4px 0 6px; overflow-wrap: anywhere; }
.kt-profile { padding: 16px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.kt-sync { color: var(--ink-faint); font-size: 0.75rem; }
.kt-more { margin-top: 16px; border-top: 1px dotted var(--line); padding-top: 10px; }
.kt-more summary { cursor: pointer; font-weight: 600; color: var(--green); padding: 6px 0; }
.kt-more .kt-form { margin-top: 10px; }
.kt-danger { background: #b0452f !important; color: #fff !important; }
.kt-danger-link { color: #b0452f; }
.kt-qr { display: grid; justify-items: start; gap: 8px; margin: 14px 0; padding: 16px 20px; border-top: 1px solid var(--ink); background: rgba(246, 243, 236, 0.86); }
.kt-qr img { background: #fff; padding: 8px; border-radius: 4px; }
.kt-secret code { font-size: 0.9rem; word-break: break-all; background: var(--grey); padding: 2px 6px; border-radius: 2px; }
.ad-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0; margin: 18px 0 0; border-top: 1px solid var(--ink); }
.ad-stats > div { padding: 12px 16px; border-bottom: 1px dotted var(--line); background: rgba(246, 243, 236, 0.86); }
.ad-stats dt { color: var(--green); font-size: 0.75rem; }
.ad-stats dd { margin: 4px 0 0; font-family: var(--f-serif); font-size: 2rem; line-height: 1.1; }
.ad-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.ad-bar .abc-search { margin-top: 0; flex: 1; min-width: 14ch; }
.ad-table-wrap { margin-top: 12px; overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ad-table th, .ad-table td { text-align: left; padding: 8px 10px; border-bottom: 1px dotted var(--line); white-space: nowrap; }
.ad-table th { color: var(--green); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.ad-actions { display: flex; gap: 12px; }
[data-mode="dark"] .kt-form, [data-mode="dark"] .kt-profile, [data-mode="dark"] .kt-qr, [data-mode="dark"] .ad-stats > div { background: rgba(30, 29, 26, 0.92); }
[data-mode="dark"] .kt-field input { background: #1f1e1b; color: var(--ink); }
