/* Camping-Planer – Handbuch (1.9.1) */
:root {
  --bg: #f6f4ef; --card: #fff; --ink: #1d2a24; --muted: #66746d; --line: #e2ded4;
  --brand: #1f4d3a; --brand2: #2f6f54; --accent: #e08a2c;
  --camping: #2e7d32; --stellplatz: #1565c0; --transit: #ef6c00; --entsorgung: #7b1fa2; --exc: #c2185b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand2); }
header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--brand); color: #fff; }
header.top .logo { font-size: 26px; }
header.top h1 { font-size: 17px; margin: 0; line-height: 1.2; }
header.top small { display: block; opacity: .8; font-style: italic; font-size: 12px; }
header.top .open { margin-left: auto; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
header.top .open:hover { background: rgba(255,255,255,.12); }
.wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; }
#toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; font-size: 14px; }
#toc summary { display: none; }
#toc ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
#toc li a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
#toc li a::before { counter-increment: s; content: counter(s) ". "; color: var(--muted); }
#toc li a:hover { background: #ebe7dd; }
#toc li a.active { border-left-color: var(--brand); background: #e7efe9; font-weight: 600; }
main { min-width: 0; }
main > section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; margin-bottom: 22px; }
h2 { font-size: 22px; margin: 0 0 6px; color: var(--brand); }
h3 { font-size: 16px; margin: 22px 0 6px; }
p { margin: 8px 0; }
ul, ol { padding-left: 22px; margin: 8px 0; }
li { margin: 3px 0; }
.lead { color: var(--muted); margin-top: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.cols.mob { grid-template-columns: minmax(0, 1fr) 260px; }
figure { margin: 6px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.07); background: #fff; cursor: zoom-in; }
figure.wide img { max-width: 100%; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
.figs { display: grid; gap: 16px; }
.figrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 14px 0; }
kbd, .btn { display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 0 7px; font: inherit; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.btn.p { background: var(--brand); border-color: var(--brand); color: #fff; }
.tip { background: #eef4f0; border-left: 4px solid var(--brand2); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.warn { background: #fff6e8; border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
dl.faq dt { font-weight: 600; margin-top: 14px; }
dl.faq dd { margin: 4px 0 0; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 10px 0 30px; }
/* Bild vergrößern */
#zoom { position: fixed; inset: 0; z-index: 50; background: rgba(20,30,25,.85); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
#zoom[hidden] { display: none; }
#zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; gap: 14px; padding: 14px 12px 60px; }
  #toc { position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
  #toc summary { display: block; padding: 8px 4px; font-weight: 600; cursor: pointer; }
  #toc:not([open]) ol { display: none; }
  .cols, .cols.mob { grid-template-columns: 1fr; }
  .cols figure { max-width: 340px; margin: 6px auto; }
  main > section { padding: 18px 16px; }
  h2 { font-size: 20px; }
  header.top small { display: none; }
}
@media print {
  header.top, #toc, .open { display: none; }
  .wrap { display: block; padding: 0; }
  main > section { border: 0; padding: 0; break-inside: avoid-page; }
  figure img { box-shadow: none; max-width: 260px; }
  .cols { grid-template-columns: 1fr 240px; }
}
