/* =========================================================
   Mugitude – Design-System (Kaffeehaus-Look: Grün, Creme, Gold)
   Breakpoints: iPhone < 768px · iPad 768–1099px · Desktop ≥ 1100px
   ========================================================= */

:root {
  --bg: #F2F0EB;          /* warmes Creme */
  --bg-elev: #F9F8F6;
  --surface: #FFFFFF;
  --surface-2: #EDEBE6;
  --line: #E1DED6;
  --text: #1E3932;        /* Hausgrün als Textfarbe */
  --text-2: #4F625B;
  --text-3: #87958F;

  --green: #00754A;       /* Akzentgrün */
  --green-600: #006241;
  --green-50: #D4E9E2;    /* helles Grün */
  --green-ink: #FFFFFF;
  --house: #1E3932;       /* dunkles Hausgrün */
  --gold: #CBA258;

  --amber: #B7791F;     /* Suche */
  --amber-50: #FBF0DC;
  --coral: #C2533A;     /* Verkaufe */
  --coral-50: #FBE6E0;
  --blue: #2F6FB0;
  --blue-50: #E3EEF9;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-1: 0 1px 2px rgba(29, 36, 32, .05), 0 2px 8px rgba(29, 36, 32, .05);
  --shadow-2: 0 4px 12px rgba(29, 36, 32, .08), 0 16px 40px rgba(29, 36, 32, .10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;

  --sidebar-w: 248px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0E1714;
  --bg-elev: #13201B;
  --surface: #182722;
  --surface-2: #20322B;
  --line: #2A3F37;
  --text: #EEF3F0;
  --text-2: #A8BAB2;
  --text-3: #73877F;
  --green: #3DBE8B;
  --green-600: #2FA578;
  --green-50: #183A2D;
  --green-ink: #06140F;
  --house: #0B1512;
  --gold: #D9B672;
  --amber: #E0A646;
  --amber-50: #33291A;
  --coral: #E57A60;
  --coral-50: #3A231D;
  --blue: #6FA5DD;
  --blue-50: #1B2836;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --shadow-2: 0 8px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App-Shell ---------- */
.app { min-height: 100dvh; display: flex; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view { flex: 1; outline: none; padding: 32px 40px 64px; max-width: 1400px; width: 100%; margin: 0 auto; }

.sidebar {
  position: sticky; top: 0; height: 100dvh;
  width: var(--sidebar-w); flex: none;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 16px;
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 4px 22px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.035em; color: var(--text); }
.brand-name b { color: var(--green); font-weight: 800; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: url("../icons/logo.svg") center/100% no-repeat;
  box-shadow: 0 2px 8px rgba(0, 98, 65, .25);
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--text-2); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--green-50); color: var(--green); font-weight: 600; }
.nav svg { width: 22px; height: 22px; flex: none; }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-3); }
.sidebar-foot { margin-top: auto; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; }
.me-chip:hover { background: var(--surface-2); }
.me-chip .who { min-width: 0; }
.me-chip .who b { display: block; font-size: 14px; }
.me-chip .who small { color: var(--text-3); font-size: 12px; }

.topbar, .tabbar { display: none; }

/* ---------- Typo ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1, .h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
h2.section { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; margin: 36px 0 14px; display: flex; align-items: center; justify-content: space-between; }
h2.section a { font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: 0; }
.muted { color: var(--text-2); }
.tiny { font-size: 12px; color: var(--text-3); }

/* ---------- Avatar ---------- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--av, var(--green));
}
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .1s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: scale(.97); }
.btn:hover { border-color: var(--text-3); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.btn--primary:hover { background: var(--green-600); border-color: var(--green-600); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: none; background: transparent; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

/* Status-Aktionsbuttons */
.status-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.status-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 78px; padding: 12px 8px;
  border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text-2);
  font-weight: 600; font-size: 14px;
  transition: all .15s;
}
.status-btn svg { width: 24px; height: 24px; }
.status-btn:hover { border-color: var(--text-3); color: var(--text); }
.status-btn[aria-pressed="true"].is-own  { background: var(--green-50); border-color: var(--green); color: var(--green); }
.status-btn[aria-pressed="true"].is-want { background: var(--amber-50); border-color: var(--amber); color: var(--amber); }
.status-btn[aria-pressed="true"].is-sell { background: var(--coral-50); border-color: var(--coral); color: var(--coral); }

/* ---------- Badges / Chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  background: var(--surface-2); color: var(--text-2);
}
.badge svg { width: 12px; height: 12px; }
.badge--own  { background: var(--green-50); color: var(--green); }
.badge--want { background: var(--amber-50); color: var(--amber); }
.badge--sell { background: var(--coral-50); color: var(--coral); }
.badge--rare { background: var(--blue-50); color: var(--blue); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Segmented ---------- */
.segmented {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--surface-2); border-radius: 999px;
}
.segmented button {
  border: 0; background: transparent; height: 36px; padding: 0 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.segmented .n { font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ---------- Toolbar / Suche ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 220px; position: relative;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 42px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.select {
  height: 46px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238F978F'%3E%3Cpath d='M5 7l5 6 5-6z'/%3E%3C/svg%3E") right 12px center/14px no-repeat;
  appearance: none; -webkit-appearance: none; font-size: 14px; font-weight: 500;
}
.filter-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.filter-row .chips { flex: 1; min-width: 0; }
.result-count { color: var(--text-3); font-size: 13px; white-space: nowrap; }

/* ---------- Statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.stat .label { font-size: 13px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .value { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.stat .value small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px;
  padding: 28px 32px; margin-bottom: 28px;
  border-radius: var(--radius-l);
  background: radial-gradient(120% 140% at 100% 0%, #00754A 0%, #1E3932 55%);
  color: #fff;
}
:root[data-theme="dark"] .hero { background: radial-gradient(120% 140% at 100% 0%, #0B5A3B 0%, #142822 60%); }
.hero h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 8px; }
.hero p { margin: 0 0 18px; opacity: .85; max-width: 46ch; }
.hero .btn { background: #fff; color: #1E3932; border-color: #fff; }
.hero .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-mugs { display: flex; justify-content: flex-end; gap: 0; height: 170px; }
.hero-mugs .m { width: 140px; margin-left: -36px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.hero-mugs .m:nth-child(2) { transform: translateY(-14px) rotate(-4deg); z-index: 2; }
.hero-mugs .m:nth-child(3) { transform: rotate(5deg); }
.hero-progress { margin-top: 18px; max-width: 360px; }
.hero-progress .bar { background: rgba(255,255,255,.18); }
.hero-progress .bar i { background: #fff; }
.hero-progress .tiny { color: rgba(255,255,255,.75); display: flex; justify-content: space-between; margin-top: 6px; }

/* ---------- Tassen-Raster ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: transparent; }
.card-media { aspect-ratio: 1 / 1; background: var(--surface-2); display: grid; place-items: center; padding: 14%; position: relative; }
.card-media svg { width: 100%; height: 100%; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.card-title { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-quick {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: none;
  background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-1);
  transition: all .15s;
}
.card-quick svg { width: 18px; height: 18px; }
.card-quick[aria-pressed="true"] { background: var(--green); color: #fff; }
.card-quick:hover { transform: scale(1.08); }

.empty {
  text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-l);
  color: var(--text-2);
}
.empty svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--text-3); }
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 18px; }
.empty p { margin: 0 0 16px; }

/* ---------- Fortschritt ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .4s; }
.series-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.series-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.series-item header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.series-item b { font-size: 15px; }
.series-item span { font-size: 13px; color: var(--text-3); font-weight: 600; }

/* ---------- Detail ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 600; margin-bottom: 18px; }
.back svg { width: 20px; height: 20px; }
.back:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { position: sticky; top: 24px; }
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-l); background: var(--surface-2); aspect-ratio: 1 / 1;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 12%; position: relative; }
.gallery-main figcaption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--text-3); font-weight: 600; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  width: 76px; height: 76px; padding: 10px; border-radius: 14px; border: 2px solid transparent;
  background: var(--surface-2);
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--green); }
.gallery-dots { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .2s; }
.gallery-dots i.on { background: var(--text); width: 18px; border-radius: 4px; }

.detail-info .eyebrow { font-size: 13px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.detail-info h1 { font-family: var(--font-display); font-size: 38px; line-height: 1.08; letter-spacing: -.03em; margin: 6px 0 8px; }
.detail-info .sub { color: var(--text-2); margin: 0 0 18px; }
.detail-info .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 22px 0; }
.specs div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.desc { color: var(--text-2); margin: 0 0 8px; }
.my-offer { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--coral-50); color: var(--coral); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.my-offer .btn { color: var(--coral); border-color: transparent; }

/* ---------- Listing (Markt) ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.listing {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.listing:hover { border-color: var(--text-3); }
.listing-media { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); padding: 9px; }
.listing-main { min-width: 0; }
.listing-title { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.listing-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-user { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.listing-user .stars { color: var(--amber); font-weight: 600; white-space: nowrap; }
.listing-user > span:not(.avatar):not(.stars) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-main .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.cond { font-size: 12px; color: var(--text-3); }

.match-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.match {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--green-50), var(--surface));
  border: 1px solid var(--line);
}
.match .listing-media { background: var(--surface); }
.match b { display: block; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ---------- Profil ---------- */
.profile-card {
  display: flex; align-items: center; gap: 20px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); margin-bottom: 24px;
}
.profile-card h1 { font-family: var(--font-display); font-size: 26px; margin: 0; letter-spacing: -.02em; }
.profile-card .actions { margin-left: auto; display: flex; gap: 10px; }
.settings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.settings .row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 56px; }
.settings .row:last-child { border-bottom: 0; }
.settings .row svg.ic { width: 22px; height: 22px; color: var(--text-2); flex: none; }
.settings .row .lbl { flex: 1; }
.settings .row .lbl small { display: block; color: var(--text-3); font-size: 13px; }
.settings a.row:hover { background: var(--surface-2); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- Auth ---------- */
.auth {
  min-height: calc(100dvh - 96px); display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.auth-art { background: radial-gradient(130% 120% at 0% 0%, #00754A, #1E3932 60%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.auth-art h2 { font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: -.03em; margin: 0; }
.auth-art .mugs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.auth-art .mugs div { background: rgba(255,255,255,.08); border-radius: 18px; padding: 14px; aspect-ratio: 1; }
.auth-form { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 440px; width: 100%; margin: 0 auto; }
.auth-form h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); font-size: 16px;
}
.field textarea { height: 88px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Sheet / Modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 20, 17, .45); backdrop-filter: blur(2px); z-index: 50; animation: fade .2s; }
.sheet {
  position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  background: var(--bg-elev); border-radius: var(--radius-l); box-shadow: var(--shadow-2);
  padding: 24px; animation: pop .22s cubic-bezier(.2,.8,.2,1);
}
.sheet h2 { font-family: var(--font-display); margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.sheet .sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.sheet .grabber { display: none; }
.sheet-actions { display: flex; gap: 10px; margin-top: 8px; }
.sheet-actions .btn { flex: 1; }
.cond-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cond-picker label { position: relative; }
.cond-picker input { position: absolute; opacity: 0; }
.cond-picker span { display: block; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.cond-picker small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.cond-picker input:checked + span { border-color: var(--coral); background: var(--coral-50); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
@keyframes up { from { transform: translateY(100%); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   iPad  (768 – 1099 px): Icon-Rail
   ========================================================= */
@media (max-width: 1099px) {
  :root { --sidebar-w: 84px; }
  .sidebar { padding: 20px 12px; align-items: center; }
  .sidebar .brand { padding: 4px 0 16px; }
  .sidebar .brand-name, .nav .label, .nav .count, .me-chip .who { display: none; }
  .nav a { flex-direction: column; gap: 4px; padding: 10px 6px; width: 60px; justify-content: center; }
  .nav a::after { content: attr(data-short); font-size: 10.5px; font-weight: 600; }
  .me-chip { padding: 6px; justify-content: center; }
  .view { padding: 28px 28px 56px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail { gap: 28px; }
  .detail-info h1 { font-size: 32px; }
  .two-col { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr auto; }
  .hero-mugs { height: 140px; }
  .hero-mugs .m { width: 110px; }
  .auth-art, .auth-form { padding: 36px; }
}

/* iPad Hochformat: Detail untereinander, Galerie im Breitformat */
@media (min-width: 768px) and (max-width: 959px) {
  .detail { grid-template-columns: 1fr; }
  .gallery { position: static; display: grid; grid-template-columns: 1fr 88px; gap: 12px; }
  .gallery-main { aspect-ratio: 16 / 10; }
  .gallery-main figure { padding: 6%; }
  .gallery-thumbs { flex-direction: column; margin-top: 0; }
  .gallery-thumbs button { width: 88px; height: 88px; }
}

/* iPad Querformat / kleine Laptops: 4 Spalten */
@media (min-width: 960px) and (max-width: 1099px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   iPhone  (< 768 px): Header + Tab-Bar
   ========================================================= */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 20;
    padding: calc(var(--safe-t) + 8px) 16px 8px;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
  }
  .topbar.scrolled { border-bottom-color: var(--line); }
  .topbar .brand { padding: 0; font-size: 18px; }
  .topbar .brand-mark { width: 38px; height: 38px; }
  .topbar .brand { font-size: 19px; gap: 9px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-3); position: relative; }
  .tabbar a svg { width: 25px; height: 25px; }
  .tabbar a[aria-current="page"] { color: var(--green); }
  .tabbar .label, .tabbar .count { display: none; }
  .tabbar a::after { content: attr(data-short); }
  .tabbar .pip { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 10px; display: grid; place-items: center; }

  .view { padding: 8px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); }
  .page-head { margin-bottom: 16px; }
  .page-head h1, .h1 { font-size: 30px; }
  .page-head .btn { display: none; }
  h2.section { font-size: 19px; margin: 28px 0 12px; }

  .toolbar { gap: 8px; margin-bottom: 12px; }
  .search { min-width: 0; flex-basis: 100%; }
  .toolbar .select { flex: 1; min-width: 0; height: 40px; font-size: 13px; }
  .filter-row { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 16px; }
  .filter-row .chips { margin: 0 -16px; padding: 2px 16px; }
  .result-count { font-size: 12px; }

  .hero { grid-template-columns: 1fr; padding: 22px 20px 20px; gap: 0; }
  .hero { margin-bottom: 22px; }
  .hero h1 { font-size: 22px; margin-bottom: 14px; }
  .hero p { display: none; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .hero-progress { margin-top: 14px; }
  .page-head p { font-size: 14px; }
  .hero-mugs { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .value { font-size: 24px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14px; }
  .card-meta { font-size: 12px; }

  .back { margin-bottom: 10px; }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; margin: 0 -16px; }
  .gallery-main { border-radius: 0; aspect-ratio: 1 / .92; }
  .gallery-thumbs { display: none; }
  .gallery-dots { display: flex; }
  .detail-info h1 { font-size: 30px; }
  .status-actions { gap: 8px; }
  .status-btn { min-height: 70px; font-size: 13px; }
  .specs { grid-template-columns: 1fr 1fr; }

  .listing { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 10px 12px 10px 10px; }
  .listing-media { width: 56px; height: 56px; padding: 7px; }
  .listing-side { gap: 4px; }
  .listing-side .cond { display: none; }
  .listing-side .btn { font-size: 0; gap: 0; width: 36px; padding: 0; }
  .match-strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .match { scroll-snap-align: start; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; justify-content: center; padding: 0 8px; }

  .profile-card { flex-direction: column; text-align: center; padding: 22px 18px; }
  .profile-card .actions { margin: 0; }

  .auth { grid-template-columns: 1fr; min-height: auto; border: 0; background: transparent; border-radius: 0; }
  .auth-art { border-radius: var(--radius-l); padding: 24px; }
  .auth-art h2 { font-size: 24px; }
  .auth-art .mugs { display: none; }
  .auth-form { padding: 24px 4px; }

  /* Bottom-Sheet statt Modal */
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%;
    max-height: 92dvh; border-radius: 24px 24px 0 0;
    padding: 10px 20px calc(20px + var(--safe-b));
    animation: up .28s cubic-bezier(.2,.8,.2,1);
  }
  .sheet .grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
  .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Gesamte Karte klickbar, Schnellaktion bleibt darüber */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-quick { z-index: 2; }

/* Login/Registrierung: ohne App-Navigation */
body[data-page="login"] .sidebar, body[data-page="registrieren"] .sidebar,
body[data-page="login"] .tabbar,  body[data-page="registrieren"] .tabbar,
body[data-page="login"] .topbar,  body[data-page="registrieren"] .topbar { display: none; }
body[data-page="login"] .view, body[data-page="registrieren"] .view { padding-bottom: 32px; }

/* =========================================================
   Kaffeehaus-Look: Buttons, Akzente
   ========================================================= */
.btn { border-color: var(--green); color: var(--green); background: transparent; }
.btn:hover { border-color: var(--green); background: var(--green-50); }
.btn--primary, .btn--primary:hover { color: var(--green-ink); background: var(--green); border-color: var(--green); }
.btn--primary:hover { background: var(--green-600); }
.btn--ghost { border-color: transparent; }
.page-head h1, .h1, .detail-info h1, .hero h1 { font-weight: 800; }
.detail-info .eyebrow { color: var(--gold); }
:root[data-theme="light"] .detail-info .eyebrow { color: #A6803A; }
.badge--rare { background: color-mix(in srgb, var(--gold) 22%, transparent); color: #8A6A2A; }
:root[data-theme="dark"] .badge--rare { color: var(--gold); }
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); pointer-events: none;
}
.hero h1 { position: relative; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 4px 0 14px; }
.hint svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--green); }
.price small { font-size: 11px; font-weight: 700; color: var(--text-3); margin-left: 2px; }
.btn--chat { border-color: var(--green); }

/* ---------- Tag/Nacht-Umschalter ---------- */
.theme-switch {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; margin: 0 4px 10px;
  background: var(--surface-2); border-radius: 999px;
}
.theme-switch button {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-3); font-size: 12px; font-weight: 600;
}
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.theme-switch--wide { margin: 0; min-width: 270px; }
.theme-switch--wide button { height: 36px; font-size: 13px; }
.settings .row--wrap { flex-wrap: wrap; }

/* ---------- Nav-Badge ---------- */
.nav a { position: relative; }
.nav .pip, .tabbar .pip {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.nav .pip { margin-left: auto; }
.nav .count + .pip { margin-left: 6px; }

/* =========================================================
   Chat
   ========================================================= */
body[data-page="nachrichten"] .view { padding-bottom: 32px; max-width: 1400px; }
.chat-layout {
  display: grid; grid-template-columns: 360px minmax(0, 1fr);
  height: calc(100dvh - 64px); min-height: 520px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
}
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list-head { padding: 20px 20px 12px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.chat-list-head .h1 { font-size: 26px; }
.chat-list-head p { margin: 4px 0 0; }
.chat-list .empty { margin: 16px; }
.chat-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 20px; border-top: 1px solid var(--line); }
.chat-item:hover { background: var(--bg-elev); }
.chat-item[aria-current="true"] { background: var(--green-50); }
.chat-ava { position: relative; flex: none; }
.chat-ava .avatar { width: 46px; height: 46px; font-size: 15px; }
.chat-ava .listing-media { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; padding: 2px; border-radius: 8px; border: 2px solid var(--surface); background: var(--surface-2); }
.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-mug { font-size: 12px; color: var(--green); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-last { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-last.is-unread { color: var(--text); font-weight: 650; }
.ci-badge { flex: none; min-width: 20px; height: 20px; border-radius: 10px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }

.chat-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-placeholder { margin: auto; text-align: center; padding: 40px; }
.chat-placeholder svg { width: 48px; height: 48px; margin: 0 auto 10px; color: var(--text-3); }
.chat-placeholder h3 { margin: 0 0 4px; }
.chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-back { display: none; margin-left: -8px; }
.ch-who { display: flex; flex-direction: column; min-width: 0; }
.ch-who .stars { color: var(--amber); }
.chat-context { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.chat-context .listing-media { width: 52px; height: 52px; padding: 6px; flex: none; }
.cc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-actions { display: flex; gap: 8px; flex: none; }

.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { align-self: flex-start; max-width: min(75%, 460px); padding: 9px 14px 7px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--green); border-color: var(--green); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg time, .msg-card time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; text-align: right; }
.msg-sys { align-self: center; display: flex; gap: 6px; align-items: center; max-width: 90%; text-align: center; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-50); padding: 6px 12px; border-radius: 12px; }
.msg-sys svg { width: 14px; height: 14px; flex: none; }
.msg-sys--info { color: var(--text-2); background: var(--surface-2); font-weight: 500; margin-bottom: 6px; }
.msg-card { align-self: flex-start; width: min(300px, 85%); padding: 12px 14px 8px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); }
.msg-card.me { align-self: flex-end; border-color: var(--green); }
.mc-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.mc-label svg { width: 15px; height: 15px; color: var(--green); }
.mc-price { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.mc-actions { display: flex; gap: 8px; margin-top: 10px; }
.mc-actions .btn { flex: 1; }
.mc-status { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.mc-status.is-accepted { background: var(--green-50); color: var(--green); }
.mc-status.is-declined { background: var(--coral-50); color: var(--coral); }
.mc-trade { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; }
.mc-trade a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.mc-trade .listing-media { width: 72px; height: 72px; padding: 8px; }
.mc-arrow svg { width: 20px; height: 20px; color: var(--green); }

.chat-input { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-elev); font-size: 16px; line-height: 1.35; }
.chat-input textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.send-btn svg { width: 20px; height: 20px; }
.send-btn:hover { background: var(--green-600); }

/* Tausch-Auswahl */
.trade-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 14px; padding: 2px; }
.trade-pick label { position: relative; cursor: pointer; }
.trade-pick input { position: absolute; opacity: 0; }
.trade-pick label > span { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 13px; }
.trade-pick .tp-img { width: 100%; aspect-ratio: 1; padding: 6px; background: var(--surface-2); border-radius: 10px; margin-bottom: 4px; }
.trade-pick small { color: var(--text-3); font-size: 11px; }
.trade-pick input:checked + span { border-color: var(--green); background: var(--green-50); }
.trade-pick input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* iPad */
@media (max-width: 1099px) {
  .sidebar .theme-switch { grid-template-columns: 1fr; margin: 0 0 10px; border-radius: 18px; }
  .sidebar .theme-switch button { width: 44px; height: 34px; }
  .sidebar .theme-switch span { display: none; }
  .nav .pip { position: absolute; top: 4px; right: 8px; margin: 0; }
  .chat-layout { grid-template-columns: 290px minmax(0, 1fr); height: calc(100dvh - 56px); }
  .cc-actions .btn span { display: none; }
  .cc-actions .btn { width: 38px; padding: 0; }
}

/* iPhone */
@media (max-width: 767px) {
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .tabbar .pip { position: absolute; top: 6px; left: calc(50% + 4px); min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .topbar-actions { display: flex; gap: 4px; align-items: center; }
  .theme-switch--wide { min-width: 0; width: 100%; }
  .listing-side .btn--chat span { display: none; }

  .chat-layout { grid-template-columns: 1fr; height: auto; min-height: 0; border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .chat-layout:not(.has-thread) .chat-thread { display: none; }
  .chat-list { border: 0; overflow: visible; margin: 0 -16px; }
  .chat-list-head { position: static; background: transparent; padding: 0 16px 12px; }
  .chat-item { padding: 12px 16px; }

  /* Geöffneter Chat: Vollbild */
  .chat-layout.has-thread .chat-list { display: none; }
  .chat-layout.has-thread .chat-thread {
    position: fixed; inset: 0; z-index: 40; background: var(--surface);
    padding-top: var(--safe-t);
  }
  .chat-back { display: grid; }
  .chat-head { padding: 8px 12px; }
  .chat-context { padding: 8px 12px; flex-wrap: wrap; }
  .chat-context .listing-media { width: 44px; height: 44px; }
  .cc-actions { width: 100%; }
  .cc-actions .btn { flex: 1; width: auto; padding: 0 10px; }
  .cc-actions .btn span { display: inline; }
  .chat-msgs { padding: 14px 12px; }
  .msg { max-width: 82%; }
  .chat-input { padding: 8px 10px calc(8px + var(--safe-b)); }
  .trade-pick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body[data-page="nachrichten"] .view { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 28px); }
}
/* Kontrast auf Grün (v. a. Nachtmodus) */
.msg.me, .send-btn, .ci-badge { color: var(--green-ink); }
.chat-list, .chat-item, .ci-main { min-width: 0; }
@media (max-width: 767px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Logo: Tresor + Name in drei Zeilen
   ========================================================= */
.brand { gap: 12px; padding: 2px 6px 22px; }
.brand-mark { width: 56px; height: 56px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 3px 6px rgba(0, 98, 65, .22)); }
.brand-name { display: flex; flex-direction: column; font-size: 16px; line-height: .98; letter-spacing: -.01em; font-weight: 800; text-transform: none; }
.brand-name > * { display: block; }
.brand-name b { color: var(--green); }
@media (max-width: 1099px) {
  .sidebar .brand-mark { width: 50px; height: 50px; }
}
@media (max-width: 767px) {
  .topbar .brand { gap: 9px; }
  .topbar .brand-mark { width: 42px; height: 42px; }
  .topbar .brand-name { font-size: 13.5px; }
}

/* =========================================================
   Allgemein: Kopf-Aktionen, Hinweise, Formular-Extras
   ========================================================= */
.head-actions, .empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint--warn { background: var(--amber-50); color: var(--text); }
.hint--warn svg { color: var(--amber); }
.hint a, .legal a, .auth-legal a, .check a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.btn--danger, .btn--danger:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.select--sm { height: 38px; font-size: 13px; padding-right: 30px; }
.sheet-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green); flex: none; }
.sheet-ic svg { width: 24px; height: 24px; }
.sheet-ic--danger { background: var(--coral-50); color: var(--coral); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.check small { display: block; color: var(--text-3); font-size: 12px; }
.check-list { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px !important; }
.switch--sm { width: 44px; height: 26px; }
.switch--sm span::after { width: 20px; height: 20px; }
.switch--sm input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .55; }
.ulink:hover { color: var(--green); text-decoration: underline; }
.segmented--scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented .n--hot { background: var(--coral); color: #fff; border-radius: 9px; padding: 0 6px; min-width: 18px; text-align: center; }

/* Glocke im iPhone-Header */
.bell-btn { position: relative; }
.bell-btn .pip { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.topbar .bell-btn, .topbar #theme-cycle { width: 36px; height: 36px; }

/* =========================================================
   Dashboard
   ========================================================= */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
a.kpi:hover { border-color: var(--green); }
.kpi > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.kpi-ic svg { width: 22px; height: 22px; }
.kpi-label { font-size: 12.5px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.kpi-value { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.kpi-value small { font-size: 14px; color: var(--text-3); }
.info-tip { border: 0; background: none; padding: 0; color: var(--text-3); display: inline-grid; }
.info-tip svg { width: 14px; height: 14px; }

.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px; min-width: 0; }
.panel--map { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 10px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; margin: 0; }
.panel-head a { font-size: 13px; font-weight: 600; color: var(--green); }

.map-wrap { flex: 1; display: grid; place-items: center; background: var(--bg-elev); border-radius: var(--radius); padding: 10px; }
.worldmap { width: 100%; height: auto; }
.wm-land circle { fill: #CEC8BC; }
:root[data-theme="dark"] .wm-land circle { fill: #2E463D; }
.wm-pin { cursor: default; outline: none; }
.wm-pin .wm-dot { stroke: var(--surface); stroke-width: 1.5; }
.wm-own .wm-dot { fill: var(--green); }
.wm-own .wm-halo { fill: var(--green); opacity: .18; }
.wm-want .wm-dot { fill: var(--amber); }
.wm-miss .wm-dot { fill: var(--surface); stroke: var(--text-3); stroke-width: 1.4; }
.wm-pin:hover .wm-dot, .wm-pin:focus .wm-dot { stroke: var(--text); stroke-width: 2; }
.map-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.lg-own { background: var(--green); } .lg-want { background: var(--amber); } .lg-miss { border: 1.4px solid var(--text-3); }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 96px 1fr 22px; align-items: center; gap: 10px; font-size: 13px; }
.hbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.hbar b { text-align: right; }
.series-mini { display: flex; flex-direction: column; gap: 4px; }
.sm-row { display: grid; grid-template-columns: 1fr 90px 34px; align-items: center; gap: 10px; font-size: 13px; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; }
.sm-row:hover { background: var(--bg-elev); }
.sm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-n { text-align: right; color: var(--text-3); font-weight: 600; }
.mini-list { display: flex; flex-direction: column; gap: 4px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 12px; min-width: 0; }
.mini:hover { background: var(--bg-elev); }
.mini .listing-media { width: 44px; height: 44px; padding: 5px; flex: none; }
.mini > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.mini b { font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   Detailseite: Fotos & Redaktions-Hinweis
   ========================================================= */
.detail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.detail-top .back { margin: 0; }
.gallery-main figure.is-photo { padding: 0; }
.gallery-main figure.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main figure.is-photo figcaption { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gallery-thumbs button.is-photo { padding: 0; overflow: hidden; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.notes-box { border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin: 0 0 16px; }
.notes-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8A6A2A; }
:root[data-theme="dark"] .notes-head { color: var(--gold); }
.notes-head svg { width: 15px; height: 15px; }
.notes-box p { margin: 6px 0 0; }

/* =========================================================
   Bewertungen
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-head .tiny { margin-left: auto; }
.review-stars { color: var(--gold); letter-spacing: 1px; }
.review-stars i { color: var(--line); font-style: normal; }
.review p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.review-card { align-self: center; width: min(360px, 92%); display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 16px; margin-top: 8px; border-radius: 18px; background: var(--surface); border: 1.5px dashed var(--gold); }
.review-card .mc-label svg { color: var(--gold); }
.review-card textarea { width: 100%; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); font-size: 15px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 0; }
.star-input label { font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }

/* =========================================================
   Profil: Benachrichtigungs-Tabelle, Vorschau-Leiste
   ========================================================= */
.notify-table .row { display: grid; grid-template-columns: 1fr 60px 60px 60px; justify-items: center; }
.notify-table .row .lbl { justify-self: stretch; }
.notify-head { min-height: 40px !important; font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; background: var(--bg-elev); }
.preview-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.preview-bar svg { width: 18px; height: 18px; }
.preview-bar a { margin-left: auto; text-decoration: underline; }
.profile-card .actions { flex-wrap: wrap; justify-content: flex-end; }

/* =========================================================
   Mitteilungen
   ========================================================= */
.notes { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.note { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note:hover { background: var(--bg-elev); }
.note.is-unread { background: color-mix(in srgb, var(--green-50) 55%, var(--surface)); }
.note.is-unread .note-main > span:last-child { font-weight: 650; }
.note-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.note-ic svg { width: 20px; height: 20px; }
.note-main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.note-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.note .tiny { white-space: nowrap; }

/* =========================================================
   CSV-Import, Vorschlag-Foto
   ========================================================= */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; cursor: pointer; margin-bottom: 14px; }
.dropzone.over, .dropzone:hover { border-color: var(--green); background: var(--green-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 30px; height: 30px; color: var(--green); }
.dz-name { color: var(--green); font-weight: 600; }
.import-sum { display: flex; gap: 6px; margin-bottom: 8px; }
.import-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.import-list div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.import-list div:last-child { border-bottom: 0; }
.import-list .unk { color: var(--coral); }
.photo-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 14px; }
.photo-pick:hover { border-color: var(--green); color: var(--green); }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-pick svg { width: 22px; height: 22px; }
.photo-pick img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }

/* =========================================================
   Account löschen
   ========================================================= */
.del-list { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

/* =========================================================
   Verwaltung
   ========================================================= */
.adm-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.adm-row { display: grid; grid-template-columns: 52px minmax(0, 1.4fr) 1fr 60px 70px 60px 30px; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-row:last-child { border-bottom: 0; }
a.adm-row:hover { background: var(--bg-elev); }
.adm-row--head { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); background: var(--bg-elev); }
.adm-row .listing-media { width: 52px; height: 52px; padding: 5px; overflow: hidden; }
.adm-row .listing-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.adm-row > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.adm-edit svg { width: 18px; height: 18px; color: var(--text-3); }
.todo, .roles { display: flex; flex-direction: column; gap: 8px; }
.todo a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-elev); }
.todo a:hover { background: var(--green-50); }
.todo svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.todo a > span, .roles div { display: flex; flex-direction: column; }
.roles div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.roles div:last-child { border-bottom: 0; }

.editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.editor .panel:first-child { grid-row: span 2; }
.editor-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-cover { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 99px; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.photo-del svg { width: 14px; height: 14px; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line); background: transparent; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.photo-add:hover { border-color: var(--green); color: var(--green); }
.photo-add svg { width: 26px; height: 26px; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.sugg { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sugg-media { width: 72px; height: 72px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--text-3); }
.sugg-media svg { width: 30px; height: 30px; }
.sugg-media img { width: 100%; height: 100%; object-fit: cover; }
.sugg-main { display: flex; flex-direction: column; min-width: 0; }
.sugg-main p { margin: 6px 0; font-size: 14px; color: var(--text-2); }
.sugg-actions { display: flex; gap: 8px; }
.user-row { display: grid; grid-template-columns: 40px 1fr 170px 100px; gap: 12px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.user-row.is-blocked { opacity: .6; }
.user-row .avatar { width: 40px; height: 40px; }
.ur-main { display: flex; flex-direction: column; min-width: 0; }

/* =========================================================
   Rechtliches, Footer, Cookie-Banner
   ========================================================= */
.legal { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-size: 34px; letter-spacing: -.03em; margin: 0 0 18px; }
.legal h2 { font-size: 17px; margin: 26px 0 6px; }
.legal p { color: var(--text-2); margin: 0 0 10px; }
.ph { background: var(--amber-50); color: var(--amber); font-weight: 600; padding: 0 4px; border-radius: 4px; }
.auth-legal { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.auth-legal a { font-weight: 600; text-decoration: none; }

.site-foot { padding: 20px 40px 28px; max-width: 1400px; width: 100%; margin: 0 auto; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }
.site-foot a { color: var(--text-2); font-weight: 600; }
.site-foot a:hover { color: var(--green); }
.site-foot p { margin: 0; max-width: 80ch; }
body[data-page="nachrichten"] .site-foot, body[data-page="login"] .site-foot, body[data-page="registrieren"] .site-foot { display: none; }

.cookie-banner {
  position: fixed; z-index: 45; left: calc(var(--sidebar-w) + 24px); right: 24px; bottom: 24px; max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-2);
  animation: up .3s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner[hidden] { display: none; }
.cb-text { flex: 1; font-size: 14px; }
.cb-text p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.cb-text a { color: var(--green); font-weight: 600; text-decoration: underline; }
.cb-actions { display: flex; gap: 8px; flex: none; }

/* ---------- Responsive: Dashboard, Verwaltung, Footer ---------- */
@media (max-width: 1299px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpis .kpi:nth-child(n+4) { display: none; }
}
@media (max-width: 1099px) {
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel--map { grid-column: 1 / -1; grid-row: auto; }
  .editor { grid-template-columns: 1fr; }
  .editor .panel:first-child { grid-row: auto; }
  .site-foot { padding: 20px 28px 28px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cb-actions { justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .view { padding-bottom: 28px; }
  .site-foot { padding: 18px 16px calc(var(--tabbar-h) + var(--safe-b) + 20px); }
  .cookie-banner { left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); padding: 14px; gap: 10px; }
  .cb-actions .btn { flex: 1; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpis .kpi:nth-child(n+4) { display: flex; }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .kpi { padding: 12px; gap: 10px; }
  .kpi-ic { width: 36px; height: 36px; }
  .kpi-value { font-size: 20px; }
  .dash, .dash--2 { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 14px 16px; border-radius: var(--radius); }
  .map-wrap { margin: 0 -8px; padding: 4px; }
  .head-actions { width: 100%; justify-content: stretch; }
  .head-actions .btn { flex: 1; padding: 0 10px; font-size: 13px; }
  .page-head .head-actions .btn { display: inline-flex; }
  .page-head > .btn[data-action="suggest"] { display: inline-flex; width: 100%; }
  .notify-table .row { grid-template-columns: 1fr 48px 48px 48px; padding: 12px; }
  .notify-table .lbl small { display: none; }
  .adm-row { grid-template-columns: 48px minmax(0, 1fr) 60px 24px; gap: 10px; padding: 8px 12px; }
  .adm-row .hide-s { display: none; }
  .sugg { grid-template-columns: 56px 1fr; }
  .sugg-media { width: 56px; height: 56px; }
  .sugg-actions { grid-column: 1 / -1; }
  .sugg-actions .btn { flex: 1; }
  .user-row { grid-template-columns: 40px 1fr; }
  .user-row select, .user-row .btn { grid-column: span 1; }
  .user-row select { grid-column: 1 / 2; grid-column: 1 / -1; }
  .legal h1 { font-size: 28px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card .actions { justify-content: center; }
  .detail-top { margin-bottom: 10px; }
}

/* Korrekturen */
.hint { display: block; position: relative; padding-left: 36px; }
.hint svg { position: absolute; left: 12px; top: 11px; margin: 0; }
.segmented button { white-space: nowrap; flex: none; }
@media (max-width: 767px) {
  .segmented:not(.segmented--scroll) button { flex: 1; }
  .settings.notify-table .row .lbl small { display: none; }
}

/* =========================================================
   Logo größer (v2)
   ========================================================= */
.sidebar .brand { gap: 12px; padding: 0 2px 22px; }
.sidebar .brand-mark { width: 70px; height: 70px; }
.sidebar .brand-name { font-size: 20px; line-height: .96; }
@media (max-width: 1099px) {
  .sidebar .brand { padding: 0 0 16px; }
  .sidebar .brand-mark { width: 60px; height: 60px; }
}
@media (max-width: 767px) {
  .topbar .brand-mark { width: 50px; height: 50px; }
  .topbar .brand-name { font-size: 16px; }
}

/* =========================================================
   Footer (Hausgrün) & Spenden-Kaffeetasse
   ========================================================= */
.site-foot {
  max-width: none; margin: 32px 0 0; border-top: 0;
  background: var(--house); color: rgba(255,255,255,.72);
  padding: 28px 40px 30px;
}
:root[data-theme="dark"] .site-foot { background: #0A1310; border-top: 1px solid var(--line); }
.foot-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 28px; align-items: start; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand .brand-mark { width: 50px; height: 50px; filter: none; }
.foot-brand b { display: block; color: #fff; font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.foot-brand b span { color: var(--gold); }
.foot-brand p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.site-foot nav { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.site-foot nav a, .site-foot .owner-link { color: #fff; font-weight: 600; font-size: 13.5px; }
.site-foot nav a:hover, .site-foot .owner-link:hover { color: var(--gold); }
  background: var(--gold); border-color: var(--gold); color: #1E3932; gap: 10px;
}

.donate-cup { width: 110px; margin: 4px auto 10px; display: block; }
.donate-head { text-align: center; }
.donate-head h2 { margin-bottom: 6px; }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 10px; }
.donate-amounts a { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 800; font-size: 20px; font-family: var(--font-display); }
.donate-amounts a small { font-size: 12px; font-weight: 600; color: var(--text-3); font-family: var(--font); }
.donate-amounts a:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.btn--paypal { background: #FFC439; border-color: #FFC439; color: #111; }
.btn--paypal:hover { background: #F2B52C; border-color: #F2B52C; color: #111; }

@media (max-width: 1099px) {
  .site-foot { padding: 26px 28px 28px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .site-foot { margin-top: 24px; padding: 24px 18px calc(var(--tabbar-h) + var(--safe-b) + 22px); }
  .foot-inner { grid-template-columns: 1fr; gap: 20px; }
  .site-foot nav { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
}

/* =========================================================
   Logo-Bereich oben links in Footer-Farben (Hausgrün + Gold)
   ========================================================= */
.sidebar .brand {
  background: var(--house); color: #fff; border-radius: 20px;
  padding: 12px 14px; margin: 0 0 18px; gap: 12px;
  box-shadow: 0 4px 14px rgba(30, 57, 50, .18);
}
:root[data-theme="dark"] .sidebar .brand { background: #0A1310; border: 1px solid var(--line); }
.sidebar .brand-name, .topbar .brand-name { color: #fff; }
.sidebar .brand-name b, .topbar .brand-name b { color: var(--gold); }
.sidebar .brand-mark { width: 64px; height: 64px; filter: none; }
.sidebar .brand-name { font-size: 19px; }
@media (max-width: 1099px) {
  .sidebar .brand { padding: 8px; border-radius: 16px; margin-bottom: 14px; }
  .sidebar .brand-mark { width: 52px; height: 52px; }
}
@media (max-width: 767px) {
  .topbar .brand { background: var(--house); padding: 5px 12px 5px 6px; border-radius: 16px; gap: 8px; }
  :root[data-theme="dark"] .topbar .brand { background: #0A1310; border: 1px solid var(--line); }
  .topbar .brand-mark { width: 44px; height: 44px; filter: none; }
  .topbar .brand-name { font-size: 14.5px; }
}
.donate-amounts a { gap: 2px; }
.donate-amounts .d-ic { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.donate-amounts .d-name { font-size: 13px; font-weight: 700; font-family: var(--font); color: var(--text); }

/* =========================================================
   Sprache (Schieberegler), Währung, Gäste, Melden
   ========================================================= */
.lang-switch, .cur-switch {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px;
  background: var(--surface-2); border-radius: 999px;
}
[data-lang-switch] .lang-switch { margin: 0 4px 8px; }
.lang-switch button, .cur-switch button {
  height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3);
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.lang-switch button[aria-checked="true"] { background: var(--house); color: #fff; box-shadow: var(--shadow-1); }
.cur-switch button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.lang-switch .flag { font-size: 14px; line-height: 1; }
.lang-switch--wide, .settings .cur-switch { min-width: 260px; }
.lang-switch--wide button, .settings .cur-switch button { height: 36px; font-size: 13px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.auth-top .back { margin: 0; font-size: 14px; }
.auth-top .lang-switch { min-width: 210px; }

.price-row { display: flex; gap: 8px; }
.price-row input { flex: 1; min-width: 0; }
.price-row select { width: 96px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); padding: 0 10px; font-weight: 700; }
.price-row + .tiny { margin-top: 2px; }

.avatar--guest { background: var(--surface-2); color: var(--text-2); }
.avatar--guest svg { width: 60%; height: 60%; }
.nav a.is-locked { color: var(--text-3); }
.nav .lock svg, .tabbar .lock svg { width: 13px; height: 13px; }
.nav .lock { margin-left: auto; display: inline-grid; color: var(--text-3); }
.tabbar .lock { position: absolute; top: 8px; left: calc(50% + 6px); display: grid; }
@media (max-width: 1099px) { .nav .lock { position: absolute; top: 6px; right: 10px; } }

.gate { max-width: 460px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gate h1, .gate h2 { font-family: var(--font-display); margin: 8px 0 0; letter-spacing: -.02em; }
.gate h1 { font-size: 30px; }
.gate .muted { margin: 0 0 12px; }
.gate-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.gate-ic svg { width: 30px; height: 30px; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.gate--sheet { margin: 6px auto; }
.gate-card { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px; border-radius: var(--radius); background: var(--green-50); }
.gate-card > svg { width: 26px; height: 26px; color: var(--green); flex: none; }
.gate-card > div { flex: 1; display: flex; flex-direction: column; }

.report-btn { color: var(--text-3); margin-left: auto; }
.report-btn:hover { color: var(--coral); background: var(--coral-50); }
.report-btn svg { width: 16px; height: 16px; }
.reason-list { display: flex; flex-direction: column; padding: 10px 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.reason-list .check { margin-bottom: 10px; }
.chat-blocked { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--coral-50); font-size: 14px; }
.chat-blocked svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.chat-blocked span { flex: 1; }
.sugg-media .avatar { width: 56px; height: 56px; font-size: 18px; }

@media (max-width: 767px) {
  .report-btn span { display: none; }
  .auth-top { flex-wrap: wrap; }
  .price-row select { width: 84px; }
  .chat-blocked { flex-wrap: wrap; padding-bottom: calc(12px + var(--safe-b)); }
}
[hidden] { display: none !important; }
@media (max-width: 767px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-form { min-width: 0; }
  .auth-top .lang-switch { min-width: 0; }
}

/* =========================================================
   Serien: Unterserien-Leiste, Format- & Editions-Badges
   ========================================================= */
.badge--special { background: color-mix(in srgb, var(--gold) 22%, transparent); color: #8A6A2A; }
:root[data-theme="dark"] .badge--special { color: var(--gold); }
.badge--special svg { width: 11px; height: 11px; }
.badge--ornament { background: var(--coral-50); color: var(--coral); }
.sub-row { display: flex; align-items: center; gap: 10px; margin: -12px 0 22px; }
.sub-label { font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.chips--sub { flex: 1; min-width: 0; }
.chip--sm { height: 30px; padding: 0 12px; font-size: 13px; }
.chip--static { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.chip--static i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-3); }
.chip--add { display: inline-flex; align-items: center; gap: 4px; border-style: dashed; color: var(--green); }
.chip--add svg { width: 14px; height: 14px; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.sub-select { display: flex; gap: 6px; }
.sub-select select { flex: 1; min-width: 0; }
.sub-select .btn { width: 48px; min-height: 48px; padding: 0; border-radius: 12px; }
.sub-none { height: 48px; display: flex; align-items: center; padding: 0 14px; border: 1px dashed var(--line); border-radius: 12px; }
.series-admin { display: flex; flex-direction: column; }
.sa-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sa-row:last-child { border-bottom: 0; }
.sa-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.sa-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sa-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 1299px) {
  .toolbar .select { flex: 1; min-width: 140px; }
}
@media (max-width: 767px) {
  .sub-row { flex-direction: column; align-items: stretch; gap: 6px; margin-top: -6px; }
  .chips--sub { margin: 0 -16px; padding: 2px 16px; }
  .field-row--3 { grid-template-columns: 1fr 1fr; }
  .field-row--3 .field:last-child { grid-column: 1 / -1; }
}

/* Hinweis: E-Mail noch nicht bestätigt (Server-Modus) */
.verify-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 12px; background: var(--amber-50); font-size: 14px; }
.verify-bar svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.verify-bar span { flex: 1; min-width: 180px; }

/* =========================================================
   Dashboard v2: Karte volle Breite, 4 Kacheln, 2 Spalten
   ========================================================= */
.kpis { grid-template-columns: repeat(4, 1fr); }
.kpis .kpi:nth-child(n+4) { display: flex; }
.panel--map { grid-column: auto; grid-row: auto; margin-bottom: 16px; }
.panel--map .map-wrap { padding: 14px 18px; }
.dash--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hbars { gap: 9px; }
.mini-switch { display: inline-flex; padding: 2px; gap: 2px; border-radius: 999px; background: var(--surface-2); }
.mini-switch button { border: 0; background: transparent; border-radius: 999px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.mini-switch button[aria-checked="true"] { background: var(--house); color: #fff; }
@media (max-width: 1299px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis .kpi:nth-child(n+4) { display: flex; } }
@media (max-width: 1099px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .kpis .kpi:last-child { grid-column: auto; }
  .dash--2 { grid-template-columns: 1fr; }
}

/* Gold-Button (Matches) */
.btn--gold, .hero .btn--gold { background: var(--gold); border-color: var(--gold); color: #1E3932; }
.btn--gold:hover, .hero .btn--gold:hover { background: #D9B672; border-color: #D9B672; color: #1E3932; }

/* Tag/Nacht-Schalter: aktiv dunkelgrün wie die Sprache */
.theme-switch button[aria-checked="true"] { background: var(--house); color: #fff; box-shadow: var(--shadow-1); }
:root[data-theme="dark"] .theme-switch button[aria-checked="true"],
:root[data-theme="dark"] .lang-switch button[aria-checked="true"],
:root[data-theme="dark"] .mini-switch button[aria-checked="true"] { background: var(--green); color: var(--green-ink); }

/* Profil-Bereich unten in der Seitenleiste hervorheben */
.sidebar .me-chip { background: var(--house); color: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(30, 57, 50, .18); }
.sidebar .me-chip:hover { background: #24453C; }
.sidebar .me-chip .who b { color: #fff; }
.sidebar .me-chip .who small { color: rgba(255,255,255,.7); }
.sidebar .me-chip .avatar { box-shadow: 0 0 0 2px var(--gold); }
.sidebar .me-chip .avatar--guest { background: rgba(255,255,255,.14); color: #fff; }
:root[data-theme="dark"] .sidebar .me-chip { background: #0A1310; border: 1px solid var(--line); }
@media (max-width: 1099px) { .sidebar .me-chip { padding: 6px; border-radius: 50%; } }

/* Navigations-Zähler als goldene Badges (wie die roten Hinweise) */
.nav .count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--gold); color: #1E3932; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.nav a[aria-current="page"] .count { background: var(--gold); color: #1E3932; }


/* Navigations-Zähler: weiße Schrift wie bei den roten Hinweisen */
.nav .count, .nav a[aria-current="page"] .count { color: #fff; }

/* ---------- Katalog: Seitenweise laden ---------- */
.more-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 8px; }

/* =========================================================
   Erweiterungen: Meine Angaben, Doppelt, Filter, Liste, Länder,
   Abzeichen, Rangliste, Druck
   ========================================================= */
.badge--qty { background: var(--gold); color: #fff; font-weight: 800; }
.card-extra { margin-top: 10px; width: 100%; justify-content: center; }
span.card-extra { display: flex; align-items: center; gap: 6px; color: var(--text-3); }
span.card-extra svg { width: 14px; height: 14px; }

/* Meine Angaben */
.mine-card { margin: 14px 0 4px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.mine-card header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mine-card header b { display: inline-flex; align-items: center; gap: 6px; }
.mine-card header b svg { width: 16px; height: 16px; color: var(--gold); }
.mine-card header .btn { margin-left: auto; }
.mine-card dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 16px; margin: 0; }
.mine-card dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.mine-card dd { margin: 2px 0 0; font-weight: 600; }
.mine-note { margin: 10px 0 0; white-space: pre-line; color: var(--text-2); }
.chip-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: 14px; }
.chip-radio input:checked + span { background: var(--house); color: #fff; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* Weitere Filter */
.more-filters { margin: -4px 0 14px; }
.more-filters summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.more-filters summary .n { background: var(--gold); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.mf-grid { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 10px; }
.mf-grid .field { display: grid; gap: 4px; margin: 0; font-size: 12px; color: var(--text-3); }
.mf-grid input.select { width: 120px; }
.check--inline { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; }
.result-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.view-toggle { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.view-toggle button { border: 0; background: none; width: 34px; height: 30px; border-radius: 99px; display: grid; place-items: center; color: var(--text-3); cursor: pointer; }
.view-toggle button svg { width: 17px; height: 17px; }
.view-toggle button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* Listenansicht */
.mug-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.mt-row { display: grid; grid-template-columns: 44px 150px minmax(0, 2fr) minmax(0, 1.4fr) 60px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.mt-row:first-child { border-top: 0; }
.mt-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--surface-2); }
.mt-row.is-own { background: color-mix(in srgb, var(--green) 6%, transparent); }
.mt-sku { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-2); }
.mt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mt-name a { font-weight: 600; color: var(--text); text-decoration: none; }
.mt-name .badge { padding: 1px 6px; }
.mt-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: #fff; }
.mt-check[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.mt-check svg { width: 16px; height: 16px; }
@media (max-width: 767px) {
  .mt-row { grid-template-columns: 36px 1fr 46px; }
  .mt-row .mt-sku { display: none; }
  .result-tools { gap: 6px; }
}

/* Länder */
a.hbar--link { color: inherit; text-decoration: none; border-radius: 8px; }
a.hbar--link:hover span { color: var(--green-ink); text-decoration: underline; }
.head-link, .panel-head h2 .head-link { color: inherit; font: inherit; text-decoration: none; }
.head-link:hover { color: var(--green-ink); }
.wm-pin { cursor: pointer; }
.country-progress { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px; display: grid; gap: 14px; }
.cp-total { display: flex; align-items: center; gap: 14px; }
.cp-total .bar { flex: 1; height: 12px; }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 18px; }
.country-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 64px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.country-row:hover { border-color: var(--green); }
.cr-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-n { text-align: right; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Abzeichen */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.badge-tile { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); opacity: .75; }
.badge-tile b { font-size: 14px; }
.bt-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); margin-bottom: 4px; }
.bt-ic svg { width: 22px; height: 22px; }
.badge-tile.is-earned { opacity: 1; border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.badge-tile.is-earned .bt-ic { background: var(--gold); color: #fff; }
.bt-progress { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bt-progress i { display: block; height: 100%; background: var(--gold); }
.badge-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 700; }
.badge-chip svg { width: 15px; height: 15px; }
.profile-extra-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.badge-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.badge-bar.is-new { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.bb-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.bb-ic svg { width: 22px; height: 22px; }
.bb-text { display: grid; flex: 1; min-width: 180px; }
.bb-actions { display: flex; gap: 8px; }

/* Rangliste */
.lb-list { display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 34px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.lb-row.is-me { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.lb-rank { font-weight: 800; color: var(--text-3); text-align: center; }
.lb-row:nth-child(-n+3) .lb-rank { color: var(--gold); }
.lb-name { display: grid; min-width: 0; }
.lb-name a { color: var(--text); font-weight: 600; text-decoration: none; }
.lb-val { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Checkliste drucken */
#print-area { display: none; }
/* ---------- Aktuelles ---------- */
.news-list { display: grid; gap: 14px; }
.news-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 18px 14px 14px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.news-card:hover { border-color: var(--green); transform: translateY(-1px); }
.nc-media { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius); background: var(--bg); padding: 10px; }
.nc-media svg { width: 100%; height: auto; }
.nc-media--icon { color: var(--green); }
.nc-media--icon svg { width: 46px; height: 46px; }
.nc-body { display: grid; gap: 6px; min-width: 0; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.nc-title { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.nc-text { color: var(--text-2); line-height: 1.5; }
.nc-more { color: var(--green); font-weight: 600; font-size: 14px; }
.news-article { max-width: 720px; }
.news-article h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.12; margin: 0 0 16px; }
.na-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.na-meta span { display: grid; }
.na-meta small { color: var(--text-3); }
.na-mug { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin: 0 0 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.na-mug svg { width: 86px; height: auto; flex-shrink: 0; }
.na-mug span { display: grid; }
.na-mug small { color: var(--text-3); }
.na-body { font-size: 17px; line-height: 1.65; }
.na-body p { margin: 0 0 1em; }
.na-body a { color: var(--green); }
.nb-more { color: var(--green); font-weight: 600; font-size: 14px; }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-bar .hint { flex: 1; min-width: 240px; }
.news-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.nr-main { display: grid; min-width: 0; }
.nr-badges, .nr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.editor--single { grid-template-columns: 1fr; max-width: 760px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.check-row span { display: grid; font-weight: 600; }
.check-row small { font-weight: 400; color: var(--text-3); }
@media (max-width: 640px) {
  .news-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .nc-title { font-size: 17px; }
  .nc-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .news-row { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.team-card { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.tc-head { display: flex; align-items: center; gap: 14px; }
.tc-head .avatar { width: 64px; height: 64px; font-size: 22px; }
.tc-head > div { display: grid; gap: 6px; justify-items: start; }
.tc-head b { font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.tc-meta { margin: 0; color: var(--text-3); font-size: 14px; }
.tc-bio { margin: 0; line-height: 1.55; color: var(--text-2); }
.tc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; color: #000; font: 10pt/1.35 -apple-system, "Segoe UI", Arial, sans-serif; }
  #print-area .pr-head { display: flex; justify-content: space-between; border-bottom: 2px solid #1E3932; padding-bottom: 4pt; margin-bottom: 8pt; color: #1E3932; }
  #print-area h1 { font-size: 18pt; margin: 0 0 2pt; }
  #print-area p { margin: 0 0 8pt; color: #444; }
  #print-area table { width: 100%; border-collapse: collapse; }
  #print-area th { text-align: left; font-size: 8pt; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #888; padding: 3pt 4pt; }
  #print-area td { border-bottom: 1px solid #ddd; padding: 3pt 4pt; vertical-align: top; }
  #print-area tr { break-inside: avoid; }
  #print-area .pr-box { width: 16pt; font-size: 13pt; text-align: center; }
  @page { margin: 14mm 12mm; }
}

/* =========================================================
   Mugitude-Logo (12/2026): Tasse mit Weltkugel, Name in einer Zeile
   Desktop: Logo oben, Schrift darunter · Tablet: nur Logo · Handy: nebeneinander
   ========================================================= */
.brand-name { display: block; white-space: nowrap; }
.brand-name > * { display: inline; }
.brand-mark { border-radius: 0; box-shadow: none; filter: none; }
@media (min-width: 1100px) {
  .sidebar .brand { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 18px 12px 14px; }
  .sidebar .brand-mark { width: 88px; height: 88px; }
  .sidebar .brand-name { font-size: 27px; line-height: 1; letter-spacing: -.03em; }
}
@media (max-width: 767px) {
  .topbar .brand-name { font-size: 19px; letter-spacing: -.02em; }
}
.auth-hero .brand-name, .foot-brand b { white-space: nowrap; }

/* =========================================================
   Seitenleiste aufgeräumt (12/2026)
   Gruppen (Sammeln · Tauschen · Community), ruhige Zähler, Verwaltung abgesetzt,
   Nutzerkarte mit Mitteilungen, Einstellungen (Sprache, Erscheinungsbild) und Abzeichen
   ========================================================= */
.nav-group { padding: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.nav .count, .nav a[aria-current="page"] .count {
  min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; display: inline;
  color: var(--text-3); font-size: 12px; font-weight: 600;
}
.nav a[aria-current="page"] .count { color: var(--green); }
.nav--staff { padding: 10px 0 8px; margin-bottom: 8px; border-top: 1px solid var(--line); }

.me-card {
  position: relative; background: var(--house); color: #fff; border-radius: 18px; padding: 6px;
  box-shadow: 0 4px 14px rgba(30, 57, 50, .18);
}
:root[data-theme="dark"] .me-card { background: #0A1310; border: 1px solid var(--line); box-shadow: none; }
.me-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 8px 0; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar .me-card .me-chip { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 10px 6px 8px; border-radius: 12px; background: none; box-shadow: none; }
.sidebar .me-card .me-chip:hover, .sidebar .me-card .me-chip[aria-current="page"] { background: rgba(255,255,255,.08); }
.me-card .me-chip .who { max-width: 100%; }
.me-card .me-chip .who b, .me-card .me-chip .who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .me-chip .avatar { width: 44px; height: 44px; font-size: 15px; }
.nav-new { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--gold); color: #1E3932; font-size: 10px; font-weight: 800; }
.nav-new + .count { margin-left: 6px; }
.me-tool {
  position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.78); cursor: pointer;
}
.me-tool:hover, .me-tool[aria-current="page"], .me-tool[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
.me-tool svg { width: 20px; height: 20px; }
.me-tool .pip {
  position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--house);
}
.settings-pop[hidden] { display: none; }
.sp-label { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 0 4px; }
.settings-pop [data-lang-switch] .lang-switch, .settings-pop .theme-switch { margin: 0 0 4px; }

/* iPad: schmale Leiste – Gruppen als Trennlinien, Nutzerkarte senkrecht */
@media (max-width: 1099px) {
  .nav-group { font-size: 0; padding: 0; height: 1px; width: 36px; margin: 6px auto; background: var(--line); }
  .nav .count, .nav a[aria-current="page"] .count { display: none; }
  .nav a { padding: 8px 6px; }
  .nav--staff { padding: 6px 0; margin-bottom: 6px; }
  .sidebar { overflow-y: auto; scrollbar-width: none; }
  .sidebar-foot { position: relative; }
  .nav--staff { width: 60px; }
  .me-card { padding: 6px 4px; border-radius: 16px; }
  .me-row { flex-direction: column; gap: 4px; margin: 2px 4px 0; }
  .nav-new { position: absolute; top: 4px; right: 6px; font-size: 0; width: 9px; height: 9px; padding: 0; border-radius: 50%; }
  .sidebar .me-card .me-chip { display: flex; justify-content: center; padding: 4px; border-radius: 50%; }
  .settings-pop { position: fixed; left: calc(var(--sidebar-w) + 10px); right: auto; bottom: 16px; width: 250px; }   /* fixed: wird von der scrollbaren Leiste nicht abgeschnitten */
}
.settings-pop .theme-switch { grid-template-columns: repeat(3, 1fr); border-radius: 999px; }
.settings-pop .theme-switch button { width: auto; height: 32px; }
.settings-pop .theme-switch span { display: inline; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Desktop: Seitenleiste kompakter, damit sie auch auf Laptops (ca. 800 px Höhe) ganz passt – Logo bleibt groß */
@media (min-width: 1100px) {
  .sidebar { padding: 14px 16px 12px; gap: 6px; overflow-y: auto; scrollbar-width: none; }
  .sidebar .brand { padding: 14px 12px 12px; }
  .me-row { padding-top: 4px; }
  .sidebar .nav a { padding: 8px 12px; }
  .nav-group { padding: 10px 12px 3px; }
  .nav--staff { padding: 6px 0 4px; margin-bottom: 6px; }
  .sidebar .me-card .me-chip { padding: 8px 6px 6px; gap: 4px; }
  .me-card .me-chip .avatar { width: 40px; height: 40px; }
  .me-tool { width: 34px; height: 34px; }
}

/* =========================================================
   Footer (12/2026): eine Ebene, drei Spalten
   links Logo + Hinweis · Mitte Rechtliches · rechts „Gefällt dir Mugitude?“ + Kaffeekasse
   ========================================================= */
.site-foot { padding: 0; }
.foot-inner {
  max-width: 1320px; margin: 0 auto; padding: 30px 40px 32px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 40px; align-items: start;
}
.foot-brand { display: block; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-logo .brand-mark { width: 44px; height: 44px; }
.foot-logo b { margin: 0; font-size: 20px; color: #fff; font-family: var(--font-display); letter-spacing: -.02em; }
.foot-brand p { max-width: 46ch; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.68); }
.foot-inner nav { justify-self: center; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.foot-coffee { justify-self: end; max-width: 330px; }
.foot-coffee b { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.foot-coffee p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.72); }
.foot-coffee p a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot-coffee .btn { gap: 8px; box-shadow: 0 4px 14px rgba(203,162,88,.3); }
.foot-coffee .btn svg { width: 17px; height: 17px; }
@media (max-width: 1099px) {
  .foot-inner { padding: 26px 28px 28px; gap: 28px; grid-template-columns: minmax(0, 1fr) auto; }
  .foot-coffee { grid-column: 1 / -1; justify-self: stretch; max-width: none; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
  .foot-inner nav { justify-self: end; }
}
@media (max-width: 767px) {
  .site-foot { padding: 0 0 calc(var(--tabbar-h) + var(--safe-b)); }
  .foot-inner { grid-template-columns: 1fr; padding: 22px 18px 24px; gap: 20px; }
  .foot-inner nav { justify-self: start; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .foot-coffee .btn { width: 100%; justify-content: center; }
}
/* Footer: Spalten mit Überschrift, feine Trennlinien, Links mit Symbol */
.foot-legal b, .foot-coffee b { display: block; color: #fff; font-size: 15px; margin: 0 0 12px; }
.foot-inner nav { justify-self: stretch; padding: 0; gap: 4px; }
.foot-legal { padding: 0 40px; border-left: 1px solid rgba(255,255,255,.1); border-right: 1px solid rgba(255,255,255,.1); align-self: stretch; }
.site-foot .foot-legal nav a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; color: rgba(255,255,255,.85); font-weight: 600; font-size: 13.5px; }
.site-foot .foot-legal nav a svg { width: 16px; height: 16px; flex: none; color: var(--gold); opacity: .85; }
.site-foot .foot-legal nav a:hover { color: var(--gold); }
.foot-coffee { justify-self: stretch; max-width: none; }
@media (min-width: 1100px) { .foot-inner { grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 40px; } }
@media (max-width: 1099px) {
  .foot-legal { padding: 0 0 0 28px; border-right: 0; }
  .foot-coffee { padding-top: 20px; }
}
@media (max-width: 767px) {
  .foot-legal { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .foot-legal nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
}

/* Dashboard: Aktuelles unter der Weltkarte – die zwei neuesten Beiträge */
.panel--news { margin-bottom: 16px; }
.dn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dn-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); text-decoration: none; transition: border-color .15s; }
.dn-item:hover { border-color: var(--green); }
.dn-item .bb-ic { background: var(--green); width: 36px; height: 36px; }
.dn-item .bb-ic svg { width: 19px; height: 19px; }
.dn-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dn-main b { font-size: 14.5px; line-height: 1.35; }
.dn-text { font-size: 12.5px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dn-item .nb-more { align-self: center; font-size: 13px; }
.panel--news .panel-head .nb-more { font-size: 13px; }
@media (max-width: 767px) {
  .dn-list { grid-template-columns: 1fr; }
  .dn-item .nb-more { display: none; }
}

/* =========================================================
   Schnell-Erfassen · Jahres-Rückblick · Lücken im Katalog
   ========================================================= */
.qa-toolbar, .gap-toolbar { align-items: flex-end; }
.qa-toolbar .field, .gap-toolbar .field { margin: 0; min-width: 180px; }
.qa-toolbar .field > span, .gap-toolbar .field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.qa-progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 12px; margin-bottom: 8px; display: grid; gap: 8px; }
.qa-progress p { margin: 0; font-size: 15px; color: var(--text-2); }
.qa-progress b { color: var(--text); font-size: 18px; }
.qa-group { margin: 18px 0 6px; }
.qa-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; margin: 0 0 10px; }
.qa-head .sa-dot { margin: 0; }
.qa-head .tiny { margin-left: auto; font-weight: 600; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.qa-item {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 60px; padding: 10px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color .15s, background .15s;
}
.qa-item:hover { border-color: var(--green); }
.qa-item:disabled { opacity: .6; }
.qa-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--text-3); display: grid; place-items: center; flex: none; }
.qa-box svg { width: 16px; height: 16px; opacity: 0; color: #fff; }
.qa-txt { display: flex; flex-direction: column; min-width: 0; }
.qa-txt b { font-size: 15px; overflow-wrap: anywhere; }
.qa-item[aria-pressed="true"] { background: var(--green-50); border-color: var(--green); }
.qa-item[aria-pressed="true"] .qa-box { background: var(--green); border-color: var(--green); }
.qa-item[aria-pressed="true"] .qa-box svg { opacity: 1; }
:root[data-theme="dark"] .qa-item[aria-pressed="true"] .qa-box svg { color: var(--green-ink); }

.yr-stats { margin-bottom: 16px; }
.yr-dash { margin-bottom: 16px; }
.yr-months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; }
.yr-months li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.yr-bar { width: 100%; height: 140px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.yr-bar i { display: block; width: 100%; background: var(--green); border-radius: 8px 8px 0 0; }
.yr-months li.is-best .yr-bar i { background: var(--gold); }
.yr-months b { font-size: 14px; }
.yr-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.yr-highlights li { display: flex; gap: 12px; align-items: flex-start; }
.yr-highlights li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.yr-highlights b { font-size: 15px; overflow-wrap: anywhere; }
.yr-highlights a { color: var(--green); }
.yr-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }
.yr-ic svg { width: 18px; height: 18px; }
.yr-panel { margin-bottom: 8px; }
.yr-chips { flex-wrap: wrap; }
.yr-chips .chip { display: inline-flex; align-items: center; }
.yr-chips .chip svg { width: 14px; height: 14px; margin-right: 4px; }
.card-extra svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.field--inline { margin: 0; }

.gap-intro { margin: 0 0 14px; }
.gap-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 18px; }
.gap-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.gap-chip b { font-size: 22px; font-family: var(--font-display); }
.gap-chip span { font-size: 13px; color: var(--text-2); }
.gap-chip[aria-pressed="true"] { border-color: var(--green); background: var(--green-50); }
.gap-chip:hover { border-color: var(--green); }
.gap-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gap-list li + li { border-top: 1px solid var(--line); }
.gap-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); }
.gap-row:hover { background: var(--surface-2); }
.gap-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gap-also { max-width: 40%; text-align: right; }
@media (max-width: 700px) {
  .qa-toolbar .field, .gap-toolbar .field { min-width: 0; flex: 1 1 140px; }
  .qa-grid { grid-template-columns: 1fr; }
  .yr-bar { height: 100px; }
  .yr-months { gap: 3px; }
  .gap-also { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qa-item { transition: none; } }
.qa-toolbar .select, .gap-toolbar .select { height: 46px; width: 100%; flex: none; font-size: 15px; }
@media (max-width: 767px) {
  .qa-progress { top: 70px; }   /* unter der oberen Leiste (iPhone) */
}
