/* ============================================================
   TrailLife — Packliste
   ============================================================ */

:root {
  color-scheme: light;
  --ink:        #1b1916;
  --ink-soft:   #3a3630;
  --muted:      #76716a;
  --muted-2:    #9b958c;
  --line:       #e3ddd1;

  --cream:      #f4f1e9;
  --cream-2:    #efeadf;
  --paper:      #fffdf8;

  --orange:     #e3742a;   /* Bikepacking */
  --orange-ink: #b9551a;
  --blue:       #4a6ea4;   /* Wandern */
  --blue-ink:   #355182;
  --forest:     #3b5d3b;   /* Trekking */
  --forest-ink: #2a4a2a;
  --olive:      #7e8b4c;

  --ok-ink:   #2e5b2e;
  --warn-ink: #8a5a15;

  --shadow-sm: 0 1px 2px rgba(40,32,20,.05), 0 4px 14px rgba(40,32,20,.05);
  --shadow-md: 0 6px 18px rgba(40,32,20,.07), 0 22px 50px rgba(40,32,20,.10);
  --shadow-lg: 0 12px 30px rgba(40,32,20,.10), 0 40px 90px rgba(40,32,20,.16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --container: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --font-display: "Anton", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  /* Kategorie-/Verstauort-Chartfarben */
  --c1: #e3742a; --c2: #4a6ea4; --c3: #7e8b4c; --c4: #3b5d3b; --c5: #8a4a5e;
  --c6: #c9a24a; --c7: #3d7d7a; --c8: #5c6570; --c9: #a6431f; --c10: #7a6f8f;
  --c11: #6b8e6e; --c12: #b08968; --c13: #4f6d7a;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink:        #f0ece2;
  --ink-soft:   #ccc5b8;
  --muted:      #8a8278;
  --muted-2:    #6b6560;
  --line:       #2e2b26;

  --cream:      #1a1814;
  --cream-2:    #201e1a;
  --paper:      #232018;

  --orange-ink: #f5a06a;
  --blue-ink:   #9bbde0;
  --forest-ink: #8fc48f;

  --ok-ink: #a7d8a2;
  --warn-ink: #f0c887;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 4px 14px rgba(0,0,0,.25);
  --shadow-md: 0 6px 18px rgba(0,0,0,.28), 0 22px 50px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.35), 0 40px 90px rgba(0,0,0,.50);

  --c1: #e3893f; --c2: #6f92c4; --c3: #97a468; --c4: #5c8a5c; --c5: #a66b81;
  --c6: #d8b968; --c7: #57a19d; --c8: #838d99; --c9: #c05a34; --c10: #968aad;
  --c11: #83ab86; --c12: #c9a184; --c13: #6f93a1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--orange); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow .rule { width: 34px; height: 2px; background: var(--orange); display: inline-block; border-radius: 2px; }
.display { font-family: var(--font-display); font-weight: 400; line-height: .92; text-transform: none; }

svg.ic { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; }

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 300; display: flex; align-items: center; height: 72px;
  background: color-mix(in srgb, var(--cream) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(40,32,20,.06);
}
[data-theme="dark"] .site-header { box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }
.brand .b-trail { color: var(--ink); }
.brand .b-life { color: var(--orange); }
.brand .b-dot { color: var(--orange); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 38px); }
.nav a {
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; letter-spacing: .01em;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--orange); border-radius: 2px; transition: right .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { right: 0; }
.nav a:hover::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); z-index: 350;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: 0 36px;
    background: var(--paper); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .42s var(--ease-out);
  }
  .nav a { font-size: 1.3rem; }
  body.nav-open { overflow: hidden; position: fixed; width: 100%; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink-soft); transition: color .25s, border-color .25s, background .25s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); background: var(--cream-2); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .ico-moon { display: block; } .theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; } [data-theme="dark"] .theme-toggle .ico-sun { display: block; }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative; padding: clamp(56px, 9vw, 96px) 0 clamp(30px, 5vw, 50px); overflow: hidden; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 55% at 18% 10%, rgba(227,116,42,.14), transparent 62%),
    radial-gradient(40% 55% at 85% 15%, rgba(74,110,164,.12), transparent 62%),
    radial-gradient(45% 55% at 55% 90%, rgba(59,93,59,.13), transparent 62%);
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { justify-content: center; }
.hero h1 { margin: 16px 0 0; font-size: clamp(2.6rem, 7vw, 5rem); color: var(--ink); }
.hero h1 .accent { color: var(--orange); }
.hero-sub { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.14rem); text-wrap: balance; }

/* =====================================================
   Config — Trip-Typ & Parameter
   ===================================================== */
.config { position: relative; z-index: 1; padding-bottom: clamp(20px, 3vw, 30px); }
.config-card {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 32px); max-width: 980px; margin: 0 auto;
}

.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 720px) { .trip-grid { grid-template-columns: 1fr; } }
.trip-card {
  position: relative; text-align: left; padding: 16px 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--cream-2); color: var(--ink);
  display: flex; align-items: center; gap: 14px;
  transition: transform .25s var(--ease-out), border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trip-card .ti-icon {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--accent-ink, var(--ink)); flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.trip-card .ti-icon svg { width: 22px; height: 22px; }
.trip-card .ti-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.trip-card .ti-sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.trip-card[data-accent="orange"] { --accent: var(--orange); --accent-ink: var(--orange-ink); }
.trip-card[data-accent="blue"] { --accent: var(--blue); --accent-ink: var(--blue-ink); }
.trip-card[data-accent="forest"] { --accent: var(--forest); --accent-ink: var(--forest-ink); }
.trip-card.active { border-color: transparent; background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.trip-card.active .ti-icon { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.trip-card.active .ti-sub { color: rgba(255,255,255,.78); }

.param-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .param-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .param-grid { grid-template-columns: 1fr; } }
.param-group .param-label {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 8px; display: block;
}
.seg { display: flex; flex-direction: column; gap: 6px; }
.seg-btn {
  text-align: left; padding: 9px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--cream-2); color: var(--ink-soft); font-size: .86rem; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.seg-btn .sb-sub { display: block; font-weight: 400; font-size: .74rem; color: var(--muted-2); margin-top: 1px; }
.seg-btn:hover { border-color: var(--muted-2); }
.seg-btn.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.seg-btn.active .sb-sub { color: var(--cream); opacity: .65; }

.config-summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: .8rem; color: var(--muted);
}
.config-summary b { color: var(--ink); font-weight: 600; }
.config-summary .cs-actions { display: flex; gap: 8px; }

/* generic small pill button */
.pbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 600; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.pbtn svg { width: 15px; height: 15px; }
.pbtn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pbtn.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pbtn.danger:hover { border-color: #b9432f; color: #b9432f; }
.pbtn.ghost { border-color: transparent; background: transparent; }
.pbtn.ghost:hover { background: var(--cream-2); }

/* =====================================================
   Liste — Meta & Kategorien
   ===================================================== */
.list-section { padding: clamp(30px, 5vw, 50px) 0 140px; }
.list-meta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.list-title-wrap input.list-name {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink);
  background: transparent; border: none; border-bottom: 2px solid transparent; padding: 2px 0; width: 100%;
  max-width: 560px; transition: border-color .2s;
}
.list-title-wrap input.list-name:hover { border-color: var(--line); }
.list-title-wrap input.list-name:focus { outline: none; border-color: var(--orange); }
.list-title-wrap .lt-hint { font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); margin-top: 4px; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cats { display: flex; flex-direction: column; gap: 16px; }
.cat-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; width: 100%; text-align: left; }
.cat-head .ch-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-head .ch-icon svg { width: 19px; height: 19px; }
.cat-head .ch-title { font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); flex: 1; }
.cat-head .ch-count {
  font-family: var(--font-mono); font-size: .72rem; color: var(--forest-ink); background: rgba(59,93,59,.12);
  padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap;
}
.cat-head .ch-weight { font-family: var(--font-mono); font-size: .74rem; color: var(--muted-2); white-space: nowrap; }
.cat-head .ch-chevron { width: 18px; height: 18px; color: var(--muted-2); transition: transform .3s var(--ease-out); flex-shrink: 0; }
.cat-card.open .ch-chevron { transform: rotate(180deg); }
.cat-mini-track { height: 3px; background: var(--cream-2); }
.cat-mini-fill { height: 100%; background: var(--forest); width: 0%; transition: width .3s var(--ease-out); }
.cat-body { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease-out); }
.cat-card.open .cat-body { max-height: 3000px; }
.cat-items { display: flex; flex-direction: column; padding: 4px 10px 10px; }

.item-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); transition: background .15s; }
.item-row:hover { background: var(--cream-2); }
.item-row.excluded { display: none; }
.item-check {
  width: 22px; height: 22px; border-radius: 6px; border: 1.8px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: transparent; background: var(--paper);
  transition: background .15s, border-color .15s, color .15s; cursor: pointer;
}
.item-check svg { width: 13px; height: 13px; }
.item-row.packed .item-check { background: var(--forest); border-color: var(--forest); color: #fff; }
.item-row input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.item-name-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-name { font-size: .95rem; color: var(--ink-soft); transition: color .15s; }
.item-row.packed .item-name { color: var(--muted-2); text-decoration: line-through; }
.item-row.optional-item .item-name { color: var(--muted); }
.item-tags { display: inline-flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; }
.tag-toggle {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r-pill); flex-shrink: 0;
  border: 1px solid var(--line); color: var(--muted-2); background: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.tag-toggle:hover { border-color: var(--muted); color: var(--ink-soft); }
.tag-toggle.on { border-color: transparent; }
.tag-toggle.tag-essential.on { background: rgba(227,116,42,.14); color: var(--orange-ink); }
.tag-toggle.tag-consumable.on { background: rgba(74,110,164,.12); color: var(--blue-ink); }
.tag-toggle.tag-worn.on { background: rgba(126,139,76,.16); color: var(--olive); }
.item-loc {
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted); max-width: 152px;
  background: var(--cream-2); border: 1px solid transparent; border-radius: 7px; padding: 5px 7px;
  flex-shrink: 0; transition: border-color .15s, background .15s, color .15s; cursor: pointer;
}
.item-loc:hover { color: var(--ink-soft); }
.item-loc:focus { outline: none; border-color: var(--orange); background: var(--paper); color: var(--ink); }
.item-qty-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.item-qty {
  width: 38px; min-width: 38px; flex-shrink: 0; text-align: right; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft);
  background: var(--cream-2); border: 1px solid transparent; border-radius: 7px; padding: 4px 5px;
  transition: border-color .15s, background .15s;
}
.item-qty:focus { outline: none; border-color: var(--orange); background: var(--paper); }
.item-x { font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); }
.item-total {
  font-family: var(--font-mono); font-size: .74rem; color: var(--forest-ink); white-space: nowrap; flex-shrink: 0;
}
.item-weight-wrap { display: flex; align-items: baseline; gap: 3px; flex-shrink: 0; }
.item-weight {
  width: 58px; min-width: 58px; flex-shrink: 0; text-align: right; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft);
  background: var(--cream-2); border: 1px solid transparent; border-radius: 7px; padding: 4px 6px;
  transition: border-color .15s, background .15s;
}
.item-weight:focus { outline: none; border-color: var(--orange); background: var(--paper); }
.item-unit { font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); }
.item-remove {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); flex-shrink: 0; opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.item-remove svg { width: 13px; height: 13px; }
.item-row:hover .item-remove { opacity: 1; }
.item-remove:hover { background: rgba(185,67,47,.12); color: #b9432f; }

@media (max-width: 620px) {
  .item-row { flex-wrap: wrap; row-gap: 8px; }
  .item-name-wrap { flex: 1 1 100%; order: 1; }
  .item-check { order: 0; }
  .item-loc { order: 2; max-width: none; flex: 1 1 auto; }
  .item-qty-wrap { order: 3; }
  .item-weight-wrap { order: 4; }
  .item-total { order: 5; }
  .item-remove { order: 6; margin-left: auto; }
}

.cat-excluded-note {
  font-family: var(--font-mono); font-size: .74rem; color: var(--muted-2); padding: 6px 14px 4px;
}
.cat-excluded-note button { color: var(--orange-ink); text-decoration: underline; }

.add-item-row { display: flex; gap: 8px; padding: 8px 10px 12px; flex-wrap: wrap; }
.add-item-row input {
  padding: 9px 12px; border-radius: var(--r-sm); border: 1.5px dashed var(--line);
  background: transparent; font-size: .88rem; color: var(--ink); transition: border-color .2s;
}
.add-item-row .add-item-name { flex: 1; min-width: 140px; }
.add-item-loc {
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft);
  min-width: 132px; max-width: 152px; flex-shrink: 0;
  padding: 9px 8px; border-radius: var(--r-sm); border: 1.5px dashed var(--line);
  background: transparent; transition: border-color .2s;
}
.add-item-loc:focus { outline: none; border-color: var(--orange); border-style: solid; }
.add-item-qty-wrap { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.add-item-row .add-item-qty {
  width: 46px; min-width: 46px; flex-shrink: 0; text-align: right; font-family: var(--font-mono);
  padding: 9px 4px;
}
.add-item-weight-wrap { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.add-item-row .add-item-weight {
  width: 60px; min-width: 60px; flex-shrink: 0; text-align: right; font-family: var(--font-mono);
  padding: 9px 5px;
}
.add-item-row input:focus { outline: none; border-color: var(--orange); border-style: solid; }
.add-item-row button {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--r-sm);
  background: var(--cream-2); color: var(--ink-soft); font-size: .84rem; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s;
}
.add-item-row button:hover { background: var(--ink); color: var(--cream); }
.add-item-row button svg { width: 14px; height: 14px; }

.empty-list {
  text-align: center; padding: 60px 20px; color: var(--muted); font-size: 1rem;
  border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--paper);
}

/* =====================================================
   HUD — fixe Statusleiste
   ===================================================== */
.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  display: flex; justify-content: center; padding: 14px var(--gut) calc(14px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.hud-inner {
  pointer-events: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 20px);
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px) saturate(1.3);
  border: 1.5px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  padding: 8px 10px 8px 8px; max-width: 100%; overflow-x: auto;
}
.hud-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.hud-ring svg { transform: rotate(-90deg); }
.hud-ring circle { fill: none; stroke-width: 4; }
.hud-ring .track { stroke: var(--cream-2); }
.hud-ring .fill { stroke: var(--forest); stroke-linecap: round; transition: stroke-dashoffset .4s var(--ease-out); }
.hud-ring .hr-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600; color: var(--ink);
}
.hud-stat { display: flex; flex-direction: column; padding: 0 6px; white-space: nowrap; }
.hud-stat .hs-num { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1; }
.hud-stat .hs-num .u { font-family: var(--font-mono); font-size: .58em; color: var(--muted-2); margin-left: 2px; }
.hud-stat .hs-label { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-top: 1px; }
.hud-sep { width: 1px; align-self: stretch; background: var(--line); flex-shrink: 0; }
.hud-btns { display: flex; gap: 6px; flex-shrink: 0; }
.hud-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: background .2s, color .2s; flex-shrink: 0;
}
.hud-btn svg { width: 18px; height: 18px; }
.hud-btn:hover { background: var(--cream-2); color: var(--ink); }
.hud-btn.active { background: var(--ink); color: var(--cream); }

@media (max-width: 640px) {
  .hud { padding-left: 12px; padding-right: 12px; }
  .hud-inner { width: 100%; justify-content: space-between; }
  .hud-stat .hs-label { display: none; }
}

/* =====================================================
   Panels — Bottom-Sheets (Gewicht / Listen)
   ===================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(20,16,10,.42); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 501; max-height: 82vh; overflow-y: auto;
  background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
  padding: 10px clamp(20px, 4vw, 40px) calc(28px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .38s var(--ease-out);
  pointer-events: none;
}
.panel.open { transform: translateY(0); pointer-events: auto; }
.panel-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.panel-close { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.panel-close:hover { background: var(--cream-2); color: var(--ink); }
.panel-close svg { width: 16px; height: 16px; }
@media (min-width: 720px) {
  .panel { left: 50%; right: auto; bottom: 24px; width: min(600px, 90vw); border-radius: var(--r-lg);
    transform: translate(-50%, 24px) scale(.97); opacity: 0; }
  .panel.open { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

/* weight panel */
.weight-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 22px; }
.ws-box { background: var(--paper); padding: 16px 18px; }
.ws-box .v { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); line-height: 1; }
.ws-box .v .u { font-family: var(--font-mono); font-size: .42em; color: var(--forest-ink); margin-left: .2em; }
.ws-box .l { margin-top: 6px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.wp-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.wp-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 600; color: var(--muted); border: 1.5px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.wp-tab svg { width: 14px; height: 14px; }
.wp-tab:hover { color: var(--ink); }
.wp-tab.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
[data-theme="dark"] .wp-tab.active { background: var(--paper); border-color: var(--line); color: var(--ink); }
.chart-bars { display: flex; flex-direction: column; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 10px; }
.chart-row .cr-label { font-size: .82rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-row .cr-track { height: 10px; border-radius: var(--r-pill); background: var(--cream-2); overflow: hidden; }
.chart-row .cr-fill { height: 100%; border-radius: var(--r-pill); transition: width .5s var(--ease-out); }
.chart-row .cr-val { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); text-align: right; }
@media (max-width: 480px) { .chart-row { grid-template-columns: 92px 1fr 48px; } }

/* saved lists panel */
.saved-list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); margin-bottom: 10px; transition: border-color .2s, background .2s;
}
.saved-list-item:hover { border-color: var(--muted-2); }
.saved-list-item.active { border-color: var(--forest); background: rgba(59,93,59,.06); }
.sli-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sli-main { flex: 1; min-width: 0; }
.sli-name { font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sli-meta { font-family: var(--font-mono); font-size: .7rem; color: var(--muted-2); margin-top: 2px; }
.sli-btns { display: flex; gap: 4px; flex-shrink: 0; }
.sli-btn { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.sli-btn svg { width: 14px; height: 14px; }
.sli-btn:hover { background: var(--cream-2); color: var(--ink); }
.sli-btn.del:hover { background: rgba(185,67,47,.12); color: #b9432f; }
.new-list-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px;
  border-radius: var(--r-md); border: 1.5px dashed var(--line); color: var(--ink-soft); font-weight: 600; font-size: .9rem;
  transition: border-color .2s, color .2s, background .2s; margin-top: 4px;
}
.new-list-btn:hover { border-color: var(--forest); color: var(--forest-ink); background: rgba(59,93,59,.06); }
.new-list-btn svg { width: 16px; height: 16px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 700;
  background: var(--ink); color: var(--cream); font-size: .86rem; font-weight: 500;
  padding: 12px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease-out);
}
[data-theme="dark"] .toast { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================
   Footer — identisch zum Rest der Seite (index/feldguide/setup)
   ===================================================== */
.footer-wrap { position: relative; background: #1b1916; color: #f4f1e9; overflow: hidden; padding-bottom: 76px; }
[data-theme="dark"] .footer-wrap { background: #0e0d0b; color: #f4f1e9; }
.footer-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 70% at 12% 0%, rgba(227,116,42,.22), transparent 60%),
    radial-gradient(60% 70% at 92% 12%, rgba(126,139,76,.16), transparent 60%),
    radial-gradient(50% 60% at 60% 100%, rgba(74,110,164,.12), transparent 60%);
}
.foot { position: relative; z-index: 2; border-top: 1px solid rgba(244,241,233,.12);
  padding: clamp(40px,6vw,64px) 0 36px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot .brand { font-size: 2rem; margin-bottom: 14px; }
.foot .brand .b-trail { color: #f4f1e9; }
.foot .brand .b-dot { color: var(--orange); }
.foot-blurb { max-width: 320px; color: rgba(244,241,233,.6); font-size: .96rem; }
.foot-bottom { margin-top: clamp(40px,6vw,60px); display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: .76rem; color: rgba(244,241,233,.5); letter-spacing: .03em; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--orange); }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a { color: rgba(244,241,233,.4); }
.foot-legal a:hover { color: var(--orange); }

/* =====================================================
   Back to top
   ===================================================== */
.back-to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: 104px; z-index: 250;
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-soft);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease-out), color .2s, border-color .2s, background .2s;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { color: var(--ink); border-color: var(--muted); background: var(--cream-2); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .back-to-top { right: 12px; bottom: 96px; } }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .001ms, color .2s, border-color .2s, background .2s; }
}

/* =====================================================
   Reveal
   ===================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   Print
   ===================================================== */
@media print {
  .site-header, .hero::before, .hero .eyebrow, .config, .hud, .overlay, .panel, .toast, .foot, .add-item-row, .item-remove, .cat-excluded-note, .list-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { padding: 0 0 20px; text-align: left; }
  .hero-sub { display: none; }
  .cat-card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; margin-bottom: 10px; }
  .cat-body { max-height: none !important; }
  .cat-mini-track { display: none; }
  .item-check { border: 1.4px solid #000; background: #fff !important; }
  .item-row.packed .item-check { background: #fff !important; color: #fff; }
  .item-weight { background: none; border: none; }
  .item-loc { background: none; border: none; -webkit-appearance: none; appearance: none; padding: 0; color: #555; }
  .item-qty { background: none; border: none; }
  .item-total { color: #555; }
  .tag-toggle:not(.on) { display: none; }
  .tag-toggle.on { border: 1px solid #999; background: none !important; color: #333 !important; }
  .list-title-wrap input.list-name { border: none; }
}
