/* ============================================================
   Trashtrace — app.css
   ============================================================ */

:root {
  --bg: #f5f0e8;
  --bg2: #ede8dc;
  --ink: #1a1a14;
  --ink2: #4a4a3a;
  --accent: #2d5a1b;
  --accent2: #5a8c2e;
  --warn: #c8401a;
  --success: #1b5a3a;
  --card: #faf7f0;
  --border: #d4cebe;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Mono', monospace; background: var(--bg); color: var(--ink); min-height: 100vh; padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.site-nav {
  background: var(--ink);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  /* Safe-area für Dynamic Island / Notch */
  padding-top: env(safe-area-inset-top, 0px);
  padding-top: max(env(safe-area-inset-top), 0px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--bg);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: #8bc34a; }
.logo:hover { text-decoration: none; }
.nav-right { display: flex; gap: 0.5rem; align-items: center; }

.lang-switcher {
  display: flex;
  border: 1px solid #333;
  border-radius: var(--radius);
  overflow: hidden;
  margin-right: 0.5rem;
}
.lang-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.6rem;
  background: transparent;
  color: #666;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.lang-btn.active { background: #333; color: var(--bg); }
.lang-btn:hover:not(.active) { color: #aaa; text-decoration: none; }

.nav-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-btn.ghost { background: transparent; color: #aaa; }
.nav-btn.ghost:hover { color: var(--bg); text-decoration: none; }
.nav-btn.primary { background: var(--accent2); color: white; }
.nav-btn.primary:hover { background: #6aa336; text-decoration: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #aaa;
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.mobile-menu .close-btn {
  position: absolute;
  top: calc(1.25rem + env(safe-area-inset-top));
  right: 2rem;
  font-size: 1.5rem;
  color: #666;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
}

/* ── HERO ── */
.hero {
  background: var(--ink);
  color: var(--bg);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,140,46,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--accent2); }
.hero p { font-size: 0.95rem; color: #999; max-width: 480px; line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── STATS ── */
.stats-bar {
  background: var(--accent);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; color: var(--bg); }
.stat-num { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 700; display: block; line-height: 1; }
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 1;
  font-weight: 500;
  margin-top: 0.2rem;
  display: block;
}

/* ── TABS ── */
.tabs-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 0; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink2);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
.tab:hover:not(.active) { color: var(--ink); }

/* ── MAIN LAYOUT ── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.feed { display: flex; flex-direction: column; gap: 2rem; }

/* ── CARDS ── */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.card-link:hover { transform: translateY(-2px); }
.card-link:hover .card-title { color: var(--accent); }

/* ── NEWS DETAIL ── */
.news-article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.news-hero-img { position: relative; width: 100%; }
.news-hero-img img { width: 100%; height: auto; display: block; }
.news-hero-placeholder { position: relative; width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; background: #e8e0d0; }
.news-article-body { padding: 2rem; }
.news-article-title { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.news-article-content { font-size: 0.95rem; line-height: 1.8; color: var(--ink2); }
.news-article-content > *:first-child { margin-top: 0; }
.news-article-content > *:last-child { margin-bottom: 0; }
.news-article-content p { margin: 0 0 1rem; }
.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  font-family: 'Fraunces', serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 1.4rem 0 0.65rem;
  line-height: 1.25;
}
.news-article-content h1 { font-size: 1.6rem; }
.news-article-content h2 { font-size: 1.35rem; }
.news-article-content h3 { font-size: 1.15rem; }
.news-article-content h4 { font-size: 1rem; }
.news-article-content ul,
.news-article-content ol {
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}
.news-article-content li { margin: 0.2rem 0; }
.news-article-content blockquote {
  margin: 0 0 1rem;
  padding: 0.5rem 0.9rem;
  border-left: 3px solid var(--accent2);
  background: var(--bg2);
}
.news-article-content pre {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
}
.news-article-content code {
  font-family: 'DM Mono', monospace;
  font-size: 0.82em;
  background: var(--bg2);
  border-radius: 3px;
  padding: 0.08rem 0.3rem;
}
.news-article-content pre code {
  background: transparent;
  padding: 0;
}
.news-article-content a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 480px) {
  .news-article-body { padding: 1.25rem; }
  .news-article-title { font-size: 1.4rem; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  animation: fadeUp 0.3s ease both;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-img { width: 100%; height: auto; display: block; }
.card-img-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-img-placeholder.is-empty {
  height: 220px;
  font-size: 3rem;
  background: #e8e0d0;
}
/* Wrapper wenn echtes Bild vorhanden — keine feste Höhe */
.post-img-wrap,
.card-img-wrap {
  height: auto !important;
  background: none;
  display: block;
  position: relative;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  aspect-ratio: auto;
  overflow: hidden;
  flex: 0 0 auto;
  z-index: 1;
}
.post-img-wrap .card-img,
.card-img-wrap .card-img {
  position: static !important;
  inset: auto !important;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  display: block;
}
.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-title-link:hover {
  color: var(--accent);
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  font-weight: 500;
}
.badge-open, .badge-offen { background: var(--warn); color: white; }
.badge-claimed { background: #e8820a; color: white; }
.badge-resolved, .badge-erledigt, .badge-erfolg { background: var(--success); color: white; }
.badge-bericht, .badge-investigation { background: var(--ink); color: var(--bg); }
.badge-report { background: var(--ink2); color: var(--bg); }
.badge-success { background: var(--accent2); color: white; }
.badge-blog { background: #355c7d; color: #fff; }

.card-body {
  position: relative;
  z-index: 2;
  background: var(--card);
  padding: 1.25rem;
  flex: 1 1 auto;
}
.card-meta { display: flex; gap: 1rem; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); margin-bottom: 0.6rem; flex-wrap: wrap; }
.card-meta .company { color: var(--warn); font-weight: 500; }
.card-title { position: relative; z-index: 3; color: var(--ink); font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.card-text { position: relative; z-index: 3; font-size: 0.8rem; line-height: 1.65; color: var(--ink2); margin-bottom: 1rem; }
.card-footer { display: flex; align-items: center; padding-top: 0.75rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 0.4rem; }
.card-username { font-size: 0.7rem; color: var(--ink2); flex: 1; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Startseitenkarten: Bild oben, Text darunter — neue Klassen */
.news-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  animation: fadeUp 0.3s ease both;
}
.news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.news-card-img {
  display: block;
  position: relative;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.news-card-img img {
  display: block;
  width: 100%;
  height: auto;
}
.news-card-img .card-img-placeholder {
  width: 100%;
  height: 220px;
}
.news-card-body {
  display: block;
  padding: 1.25rem;
  background: var(--card);
}

/* Startseitenkarten: Bild oben, Text darunter — alte Klassen (Fallback für Server-Cache) */
.card--stacked {
  display: block !important;
}
.card--stacked .card-img-wrap,
.card--stacked .card-img-wrap--stacked {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  float: none !important;
  clear: none !important;
}
.card--stacked .card-img-wrap img,
.card--stacked .card-img-wrap--stacked img,
.card--stacked .card-img-wrap .card-img,
.card--stacked .card-img-wrap--stacked .card-img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  max-height: none !important;
}
.card--stacked .card-body,
.card--stacked .card-body--stacked {
  display: block !important;
  position: static !important;
  width: 100% !important;
  margin-top: 0 !important;
  background: var(--card) !important;
  padding: 1.25rem !important;
}

/* ── BUTTONS ── */
.btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-primary { background: var(--accent2); color: white; }
.btn-primary:hover { background: #6aa336; transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--bg); border: 1px solid #444; }
.btn-outline:hover { border-color: #888; text-decoration: none; }
.report-btn-with-icon .btn-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.7rem; }
.btn-danger { background: var(--warn); color: white; }
.btn-danger:hover { background: #a33415; }
.btn-ghost { background: var(--bg2); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); text-decoration: none; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #2a2a20; text-decoration: none; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.action-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.action-btn:hover { border-color: var(--accent2); color: var(--accent2); text-decoration: none; }
.action-btn.claim { background: var(--accent2); color: white; border-color: var(--accent2); }
.action-btn.claim:hover { background: #6aa336; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.sidebar-title { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

.melden-card { background: var(--accent); border: none; border-radius: var(--radius); padding: 1.5rem; text-align: center; color: white; }
.melden-card h2,
.melden-card h3 { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.melden-card p { font-size: 0.75rem; opacity: 0.75; margin-bottom: 1rem; line-height: 1.5; }
.melden-card .btn { width: 100%; background: white; color: var(--accent); font-weight: 500; }
.melden-card .btn:hover { background: var(--bg); text-decoration: none; }

/* ── MAP ── */
#sidebar-map { height: 220px; border-radius: var(--radius); }
#fullmap { height: calc(100vh - 56px); }
.map-consent-host {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7f4ef 0%, #efebe2 100%);
  padding: 1rem;
}
.map-consent-box {
  text-align: center;
  max-width: 460px;
}
.map-consent-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.map-consent-text {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink2);
}
.map-consent-btn {
  margin: 0 auto;
}

.map-back-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.15s;
}
.map-back-btn:hover { background: var(--bg); text-decoration: none; }
.leaflet-control-zoom-locate {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #fff;
  color: #333;
  border-top: 1px solid #ccc;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.leaflet-control-zoom-locate:hover { background: #f4f4f4; color: #333; text-decoration: none !important; }
.leaflet-control-zoom-locate.locating { opacity: 0.4; cursor: wait; }
.leaflet-control-zoom-locate svg { display: block; pointer-events: none; }
#detail-map { height: 300px; border-radius: var(--radius); }
.map-btn {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.map-btn:hover { text-decoration: underline; }

.map-filter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  min-width: 200px;
}
.map-filter-toggle {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  text-align: left;
}
.map-filter-body { padding: 1rem; display: none; }
.map-filter-body.open { display: block; }
.map-filter h2,
.map-filter h4 { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 0.5rem; }
.map-filter label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; margin-bottom: 0.35rem; cursor: pointer; }
.map-filter input[type="checkbox"] { accent-color: var(--accent2); }
.map-filter-sep { height: 1px; background: var(--border); margin: 0.75rem 0; }

/* ── SETTINGS ── */

.hidden { display: none !important; }

.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.settings-tab {
  background: none;
  border: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  color: var(--ink2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.settings-tab:hover { color: var(--ink); }
.settings-tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.settings-panel { padding: 1.75rem; }
.settings-section-title { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }
.settings-field { margin-bottom: 1rem; }
.settings-field .form-input { width: 100%; }
.settings-hint { font-size: 0.72rem; color: var(--ink2); display: block; margin-top: 0.3rem; }
.settings-sep { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.input-error { border-color: var(--warn) !important; }

.settings-2fa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}

/* ── LEADERBOARD ── */
.lb-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.lb-item:last-child { border-bottom: none; }
.lb-rank { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; color: var(--border); width: 24px; text-align: center; }
.lb-rank.top { color: var(--accent2); }
.lb-info { flex: 1; }
.lb-name { font-size: 0.78rem; font-weight: 500; }
.lb-city { font-size: 0.65rem; color: var(--ink2); }
.lb-count { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; color: var(--accent2); }

.offender-row { margin-bottom: 0.6rem; }
.offender-label { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; margin-bottom: 3px; }
.offender-label span:first-child { color: var(--warn); }
.offender-label span:last-child { font-family: 'Fraunces', serif; font-weight: 700; }
.offender-bar { height: 4px; background: var(--bg2); border-radius: 2px; }
.offender-bar-fill { height: 4px; background: var(--warn); border-radius: 2px; }
.offender-note { margin-top: 0.75rem; font-size: 0.65rem; color: var(--ink2); }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(26,26,20,0.7); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: var(--radius); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--border); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--card); z-index: 1; }
.modal-title { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--ink2); padding: 0.25rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; position: sticky; bottom: 0; background: var(--card); }

.gps-status { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.8rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.gps-status.detecting { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.gps-status.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.gps-status.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
#mini-map { height: 200px; border-radius: var(--radius); margin-top: 0.75rem; display: none; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent2); }
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--warn); }
.form-textarea { min-height: 90px; resize: vertical; }
.markdown-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.markdown-toolbar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.45rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.markdown-tool {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  padding: 0.25rem 0.45rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  line-height: 1.15;
  cursor: pointer;
}
.markdown-tool:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}
.markdown-editor-input {
  border: none;
  border-radius: 0;
  background: transparent;
}
.markdown-editor-input:focus {
  border: none;
  outline: 1px solid transparent;
}
.form-error { font-size: 0.7rem; color: var(--warn); margin-top: 0.3rem; }
.form-hint { font-size: 0.7rem; color: var(--ink2); margin-top: 0.3rem; }
.title-length-indicator {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.title-length-indicator.is-good { color: var(--success); }
.title-length-indicator.is-bad { color: var(--warn); }
.form-checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; cursor: pointer; }
.form-checkbox input { accent-color: var(--accent2); }

.upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: all 0.15s; color: var(--ink2); font-size: 0.8rem; position: relative; }
.upload-area:hover { border-color: var(--accent2); color: var(--accent2); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.upload-preview { max-width: 100%; max-height: 200px; border-radius: var(--radius); margin-top: 0.75rem; object-fit: cover; display: none; }

/* ── FLASH ── */
.flash-bar {
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.flash-bar.success { background: var(--success); color: white; }
.flash-bar.error { background: var(--warn); color: white; }

.notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ink);
  color: var(--bg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  z-index: 300;
  display: none;
  align-items: center;
  gap: 0.5rem;
  max-width: 320px;
  border-left: 3px solid var(--accent2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.notification.show { display: flex; }

/* ── TAB PANELS ── */
.tab-panel { display: none; flex-direction: column; gap: 2rem; }
.tab-panel.active { display: flex; }

/* ── AUTH PAGES ── */
.auth-page { min-height: 100vh; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { background: var(--card); border: 1px solid #2a2a20; border-radius: var(--radius); width: 100%; max-width: 420px; padding: 2.5rem; }
.auth-logo { text-align: center; margin-bottom: 2rem; text-decoration: none; display: block; }
.auth-logo:hover { text-decoration: none; }
.auth-logo img { display: inline-block; width: auto; height: 66px; max-width: min(100%, 320px); }
.auth-title { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-sub { font-size: 0.78rem; color: var(--ink2); margin-bottom: 2rem; }
.auth-link { font-size: 0.75rem; color: var(--ink2); text-align: center; margin-top: 1.25rem; }
.auth-link a { color: var(--accent2); }
.auth-footer { font-size: 0.7rem; color: #888; text-align: center; margin-top: 1rem; line-height: 1.6; }

/* ── DASHBOARD ── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.page-title { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.page-sub { font-size: 0.82rem; color: var(--ink2); margin-bottom: 2rem; }
.verify-banner {
  background: #fff7df;
  border: 1px solid #f2d48a;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}
.verify-banner-title { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.verify-banner-text { font-size: 0.8rem; color: #6f5a2e; line-height: 1.55; margin-bottom: 0.8rem; }
.verify-banner-success {
  font-size: 0.76rem;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.75rem;
}
.profile-kachel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.profile-avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--accent2); color: white; font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-name { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; }
.profile-meta { font-size: 0.75rem; color: var(--ink2); margin-top: 0.3rem; line-height: 1.8; }
.dashboard-action-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.dashboard-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.48rem 0.72rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dashboard-action-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.profile-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.profile-stat { text-align: center; }
.profile-stat-num { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--accent2); }
.profile-stat-label { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.table-title { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 0.82rem; }
th { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); padding: 0.75rem 1rem; background: var(--bg2); border-bottom: 1px solid var(--border); text-align: left; font-weight: 500; }
td { font-size: 0.8rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }

/* ── STATUS BADGE ── */
.status-badge { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 2px; font-weight: 500; display: inline-block; }
.status-open { background: #fee2e2; color: var(--warn); }
.status-claimed { background: #fef3c7; color: #92400e; }
.status-resolved { background: #dcfce7; color: var(--success); }
.status-success { background: #dcfce7; color: var(--success); }
.status-report { background: #ece7df; color: var(--ink2); }
.status-investigation { background: #e7e2da; color: var(--ink); }
.status-blog { background: #e4edf7; color: #355c7d; }

/* ── ADMIN ── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-kachel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-kachel-num { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 900; color: var(--accent2); }
.stat-kachel-label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); margin-top: 0.25rem; }
.admin-nav { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.admin-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.admin-form-title { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ── DETAIL PAGE ── */
.report-detail { max-width: 760px; margin: 0 auto; padding: 2rem; }
.detail-img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; max-height: 400px; object-fit: cover; }
.detail-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink2); margin-bottom: 1rem; }
.detail-title { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.detail-text { font-size: 0.88rem; line-height: 1.7; color: var(--ink2); margin-bottom: 1.5rem; }
.detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; margin-top: 1.5rem; }

/* ── RESOLVE FORM ── */
.resolve-form-wrap {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.25rem;
}
.resolve-form-intro {
  font-size: 0.85rem;
  color: var(--ink2);
  margin-bottom: 1rem;
}
.resolve-upload-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.resolve-upload-btn { cursor: pointer; }
.resolve-filename { font-size: 0.8rem; color: var(--ink2); }
.resolve-preview {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: block;
  max-height: 300px;
  object-fit: contain;
  background: var(--bg);
}
.resolve-consent {
  margin-top: 0.25rem;
  background: var(--ink);
  color: var(--bg);
}

/* ── POSTS TABLE RESPONSIVE ── */
.posts-table-title { font-weight: 500; font-size: 0.88rem; }

.edit-img-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 680px) {
  .posts-table thead { display: none; }
  .posts-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .posts-table td {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    border: none;
    padding: 0;
  }
  .posts-table td::before {
    content: attr(data-label);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink2);
    min-width: 80px;
    padding-top: 0.1rem;
    flex-shrink: 0;
  }
  .posts-table td.col-img::before  { content: 'Bild'; }
  .posts-table td.col-title::before { content: 'Titel'; }
  .posts-table td.col-type::before  { content: 'Typ'; }
  .posts-table td.col-pub::before   { content: 'Veröff.'; }
  .posts-table td.col-date::before  { content: 'Datum'; }
  .posts-table td.col-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.25rem;
  }
  .posts-table td.col-actions::before { display: none; }
  .posts-table-title { white-space: normal; }
}

/* ── FOOTER ── */
footer { background: var(--ink); color: #c8c2b0; font-size: 0.72rem; letter-spacing: 0.05em; padding: 1.5rem 0; margin-top: 4rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #e8e2cf; text-decoration: none; letter-spacing: 0.05em; transition: color 0.15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }

/* ── LEGAL PAGES ── */
.legal-page { max-width: 760px; }
.legal-intro { font-size: 0.8rem; color: var(--ink2); margin-bottom: 2.5rem; margin-top: -0.5rem; }
.legal-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.9rem; color: var(--ink); }
.legal-section p { font-size: 0.88rem; line-height: 1.8; color: var(--ink2); margin-bottom: 0.75rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { font-size: 0.88rem; line-height: 1.8; color: var(--ink2); padding-left: 1.4rem; margin-bottom: 0.75rem; }
.legal-section ul li { margin-bottom: 0.25rem; }
.legal-section a { color: var(--accent2); }
.legal-section code { font-family: 'DM Mono', monospace; font-size: 0.82rem; background: var(--border); padding: 0.1rem 0.35rem; border-radius: 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 0.75rem 0; }
.legal-table th { text-align: left; padding: 0.6rem 0.75rem; background: var(--bg); border: 1px solid var(--border); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); }
.legal-table td { padding: 0.65rem 0.75rem; border: 1px solid var(--border); color: var(--ink2); vertical-align: top; line-height: 1.6; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination.pagination-top { margin-top: 0; margin-bottom: 1rem; }
.pagination a, .pagination span {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
}
.pagination .active span { background: var(--accent2); color: white; border-color: var(--accent2); }
.pagination a:hover { border-color: var(--accent2); }
.pagination [disabled] { opacity: 0.4; cursor: not-allowed; }

/* ── REPORT CREATE PAGE ── */
.report-create-wrap { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.report-create-inner {}
.report-fieldset { border: none; padding: 0; margin: 0; }
.report-fieldset:disabled { opacity: 0.45; pointer-events: none; }
.report-create-footer { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

#report-map { height: 260px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.75rem; border: 1px solid var(--border); }

/* GPS Gate */
.gps-gate { border-radius: var(--radius); margin-bottom: 1.75rem; overflow: hidden; }

.gps-gate-detecting,
.gps-gate-success,
.gps-gate-denied { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); }

.gps-gate-detecting { background: #1a1a2e; border: 1px solid #2a2a4a; color: var(--bg); }
.gps-gate-success   { background: #1a2e1a; border: 1px solid #2a4a2a; color: #a8d4a8; }
.gps-gate-denied    { background: #2e1a1a; border: 1px solid #4a2a2a; color: #d4a8a8; flex-wrap: wrap; gap: 0.75rem; }

.gps-gate-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.15rem; }
.gps-gate-sub   { font-size: 0.78rem; opacity: 0.8; line-height: 1.5; }

.gps-gate-icon { font-size: 1.4rem; flex-shrink: 0; }

/* Pulse animation */
.gps-pulse {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.gps-pulse::before,
.gps-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: gpsPulse 1.8s ease-out infinite;
}
.gps-pulse::after { animation-delay: 0.9s; }
@keyframes gpsPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Photo consent */
.photo-consent {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #b0b0c8;
  width: 100%;
}
.consent-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent2);
  cursor: pointer;
}
.consent-checkbox span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.consent-checkbox span strong { color: var(--bg); }

/* ── BRANDS ADMIN ── */

/* Toolbar */
.brands-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.brands-stats { font-size: 0.85rem; color: var(--ink2); display: flex; align-items: center; gap: 0.5rem; }
.brands-stats strong { color: var(--ink); }
.brands-stats-sep { opacity: 0.4; }
.brands-toolbar-right { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.brands-search { max-width: 200px; font-size: 0.82rem; padding: 0.4rem 0.7rem; height: 34px; }

/* Konzernliste (Übersicht) */
.corp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.corp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.12s;
  gap: 1rem;
}
.corp-item:last-child { border-bottom: none; }
.corp-item:hover { background: var(--bg); text-decoration: none; }
.corp-item-left { display: flex; align-items: center; gap: 0.75rem; }
.corp-item-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 0.95rem; }
.corp-item-badge {
  font-size: 0.72rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.15rem 0.55rem;
  color: var(--ink2);
  white-space: nowrap;
}
.corp-item-arrow { color: var(--ink2); font-size: 1rem; flex-shrink: 0; }

/* Markentabelle (Detailseite) */
.brand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.brand-table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink2);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand-table td {
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.brand-table tr:last-child td { border-bottom: none; }
.brand-table .brand-row:hover td { background: var(--bg); }
.brand-row-actions { text-align: right; white-space: nowrap; }
.brand-del-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--warn);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
}
.brand-del-btn:hover { background: var(--warn); color: #fff; }

/* Brand dropdown (Autocomplete in Melden-Formular) */
.brand-dropdown-group {
  padding: 0.35rem 0.9rem 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.brand-dropdown-group:first-child { border-top: none; }
.brand-tag-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; min-height: 0; }
.brand-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; padding: 0.25rem 0.5rem 0.25rem 0.7rem;
  border-radius: 2rem; font-weight: 500;
}
.brand-tag button { background: none; border: none; cursor: pointer; font-size: 0.95rem; padding: 0; line-height: 1; opacity: 0.7; }
.brand-tag button:hover { opacity: 1; }
/* Bestätigte Marke (aus DB) */
.brand-tag-confirmed { background: var(--accent); color: #fff; }
.brand-tag-confirmed button { color: #fff; }
/* Vorschlag (nicht in DB) */
.brand-tag-suggestion { background: var(--bg2); color: var(--ink2); border: 1px dashed var(--border); }
.brand-tag-suggestion em { font-style: normal; opacity: 0.7; font-size: 0.68rem; }
.brand-tag-suggestion button { color: var(--ink2); }
/* Freitext-Option im Dropdown */
.brand-dropdown-custom { font-style: normal; color: var(--ink2); border-top: 1px solid var(--border); }
.brand-dropdown-custom:hover { background: var(--bg); color: var(--ink); }
.brand-input-wrap { position: relative; }
.brand-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 200px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.brand-dropdown-item { padding: 0.6rem 0.9rem; font-size: 0.85rem; cursor: pointer; }
.brand-dropdown-item:hover { background: var(--bg); }

/* ── SHOP ── */
.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.shop-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  background: #fff;
}
.shop-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  object-position: center;
  background: #fff;
}
.shop-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.shop-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.shop-card-price {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.shop-card-description {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink2);
  margin: 0;
  flex: 1;
}
.shop-affiliate-note {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink2);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}
.shop-admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.shop-category-admin-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.shop-category-admin-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}
.shop-category-admin-item .action-btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
}

/* ── SUPPORT PAGE ── */
.support-page { max-width: 980px; }
.support-intro {
  color: var(--ink2);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.support-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.support-switch-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: var(--card);
  color: var(--ink2);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.support-switch-btn + .support-switch-btn { border-left: 1px solid var(--border); }
.support-switch-btn.active {
  background: var(--accent);
  color: #fff;
}
.support-panel { display: none; }
.support-panel.active { display: block; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.support-card .card-body { padding: 1.1rem 1.15rem; }
.support-card h2,
.support-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.support-card p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink2);
  margin-bottom: 0.55rem;
}
.support-card p:last-child { margin-bottom: 0; }
.support-donation-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.6rem;
}
.support-donation-box:last-child { margin-bottom: 0; }
.support-donation-box strong {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.support-note-card {
  border-color: #d9bca8;
  background: #fff8f2;
}

/* ── HOW IT WORKS PAGE ── */
.how-page { max-width: 980px; }
.how-intro {
  color: var(--ink2);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.how-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.how-switch-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: var(--card);
  color: var(--ink2);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.how-switch-btn + .how-switch-btn { border-left: 1px solid var(--border); }
.how-switch-btn.active {
  background: var(--accent);
  color: #fff;
}
.how-panel { display: none; }
.how-panel.active { display: block; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.how-step-card .card-body { padding: 1.1rem 1.15rem; }
.how-step-num {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  margin-bottom: 0.55rem;
}
.how-step-card h2,
.how-step-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.how-step-card p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink2);
  margin-bottom: 0.55rem;
}
.how-step-card p:last-child { margin-bottom: 0; }
.how-install-card { grid-column: 1 / -1; }
.how-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.how-install-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.how-install-box strong {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  /* Brands Toolbar */
  .brands-toolbar { flex-direction: column; align-items: flex-start; }
  .brands-toolbar-right { width: 100%; }
  .brands-search { max-width: 100%; flex: 1; }

  .how-steps { grid-template-columns: 1fr; }
  .how-install-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }

  .shop-grid { grid-template-columns: 1fr; }

  /* Markentabelle → Stack-Layout */
  .brand-table thead { display: none; }
  .brand-table .brand-row,
  .brand-table .brand-edit-row { display: block; border-bottom: 1px solid var(--border); }
  .brand-table td { display: block; padding: 0.5rem 1rem; border: none; }
  .brand-table .brand-row-actions { text-align: left; padding-top: 0; padding-bottom: 0.75rem; display: flex; gap: 0.5rem; }
}

@media (max-width: 768px) {
  .main { grid-template-columns: 1fr; padding: 1rem; }
  .sidebar { order: 2; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-bar { gap: 1.5rem; padding: 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-inner { padding: 0 1.25rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .tabs-wrap { padding: 1.5rem 1rem 0; }
  .nav-right .nav-btn, .nav-right .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .page-wrap { padding: 1.25rem; }
  .profile-kachel { gap: 1rem; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .report-detail { padding: 1.25rem; }
  .detail-title { font-size: 1.4rem; }
  .site-nav { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 480px) {
  .report-create-wrap { padding: 1.25rem 1rem 3rem; }
  .report-create-footer { flex-direction: column; }
  .report-create-footer .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .shop-card-body .btn { width: 100%; }
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0.75rem 0.5rem;
  }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.45rem; letter-spacing: 0.03em; }
  .admin-grid { grid-template-columns: 1fr; }
  .profile-stats { gap: 1rem; }
}
