/* ============================================================
   DEALZENTRUM – Dark Design System
   Brand: #d16af5 | Bg: #111111 | Card: #1C1C1C
   ============================================================ */

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

:root {
  /* Brand – Purple */
  --primary:       #d16af5;
  --primary-light: #e394ff;
  --primary-dark:  #a844d4;
  --primary-glow:  rgba(209, 106, 245, 0.18);
  --primary-glow2: rgba(209, 106, 245, 0.09);

  /* Legacy aliases */
  --orange:        #d16af5;
  --orange-light:  #e394ff;
  --orange-dark:   #a844d4;
  --orange-glow:   rgba(209, 106, 245, 0.18);
  --orange-glow2:  rgba(209, 106, 245, 0.09);

  /* Dark neutral backgrounds – warm gray undertone */
  --bg:           #111111;
  --bg-2:         #181818;
  --card:         #1C1C1C;
  --card-hover:   #242424;
  --border:       #2C2C2C;
  --border-light: #383838;

  --text:         #F0EDE8;
  --text-muted:   #888880;
  --text-dim:     #504E4A;

  --hot:   #E8614A;
  --cold:  #5B8FFF;
  --green: #3DCC88;
  --gold:  #F0C442;
  --silver:#B0A898;
  --bronze:#C48A5A;

  --radius-sm:  6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow:    0 2px 14px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.8);
  --glow:      0 0 20px rgba(209,106,245,0.2);

  --font: 'Inter', system-ui, sans-serif;
  --header-h: 80px;
  --subheader-h: 46px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

input, select, textarea, button {
  font-family: inherit;
  font-size: 14px;
}

.hidden { display: none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #d16af5 0%, #a844d4 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(209,106,245,0.22);
  letter-spacing: .01em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e394ff 0%, #c060e8 100%);
  box-shadow: 0 4px 22px rgba(209,106,245,0.35);
  transform: translateY(-1px);
}
.btn-primary.full { width: 100%; padding: 14px; font-size: 15px; border-radius: var(--radius-lg); }

.btn-ghost {
  background: rgba(209,106,245,0.06);
  color: var(--text-muted);
  border: 1px solid rgba(209,106,245,0.16);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(209,106,245,0.1);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0e0e0e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 40px rgba(0,0,0,0.6);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 58px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 4px;
}
.nav-link {
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--card);
}
.nav-link.active { color: var(--primary); }

.header-search {
  flex: 1;
  display: flex;
  max-width: 380px;
}
.search-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--text-dim); }
.search-btn {
  background: var(--primary);
  border: none;
  padding: 8px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background .2s;
}
.search-btn:hover { background: var(--primary-light); }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* user menu */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-header-level-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.user-header-lvl-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.user-header-rank-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  overflow: hidden;
}
.user-avatar:hover { border-color: var(--primary); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar span { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.85); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #282828;
  background-color: #282828;
  border: 1px solid #404040;
  border-radius: var(--radius-lg);
  min-width: 220px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.8);
  overflow: hidden;
  animation: dropIn .15s ease;
  isolation: isolate;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
@keyframes dropIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}
.dropdown-header {
  padding: 16px;
  background: linear-gradient(135deg, rgba(168,68,212,0.18) 0%, rgba(168,68,212,0.08) 100%);
  border-bottom: 1px solid rgba(209,106,245,0.2);
}
.dropdown-header strong { display: block; font-size: 15px; margin-bottom: 8px; }
.xp-bar-mini {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.xp-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width .5s;
}
.dropdown-header small { color: var(--text-muted); font-size: 11px; }

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--card-hover); color: var(--text); }
.dropdown-item.text-danger { color: #ff4444; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ===== SUBHEADER ===== */
.subheader {
  background: #161616;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.subheader-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--subheader-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.categories {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-chip {
  background: rgba(209,106,245,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chip.active {
  background: linear-gradient(135deg, #d16af5, #a844d4);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(209,106,245,0.3);
}
.cat-chip.dropdown-open { border-color: var(--primary); color: var(--primary); }
.cat-chip .cat-arrow { font-size: 9px; opacity: .65; margin-left: 2px; }
.cat-chip-wrap { position: relative; }

/* Kategorie-Dropdown Popup (am body hängen) */
.cat-dropdown-popup {
  position: absolute;
  z-index: 9999;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.cat-sub-btn {
  text-align: left;
  padding: 7px 11px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  width: 100%;
  transition: background .12s, color .12s;
}
.cat-sub-btn:hover { background: var(--card-hover); color: var(--text); }
.cat-sub-all { color: var(--text); font-weight: 600; }
.btn-post-deal {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-post-deal:hover { background: var(--primary-light); box-shadow: var(--glow); }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 36px;
  align-items: start;
}

/* ===== SIDEBARS ===== */
.sidebar-left, .sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + var(--subheader-h) + 24px);
}

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin: 0;
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 6px;
}
.lb-nav-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.lb-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* leaderboard */
.leaderboard { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.lb-rank.gold   { background: var(--gold); color: #111; }
.lb-rank.silver { background: var(--silver); color: #111; }
.lb-rank.bronze { background: var(--bronze); color: #fff; }
.lb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
.lb-info { flex: 1; min-width: 0; }
.lb-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-xp { font-size: 11px; color: var(--primary); font-weight: 600; }
.lb-badge { font-size: 16px; }

/* events */
.event-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.event-card:last-child { margin-bottom: 0; }
.event-active {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  order: -1;
}
.event-upcoming {
  background: var(--bg-2);
  border-color: var(--border);
}
.event-icon { font-size: 22px; flex-shrink: 0; }
.event-card strong { display: block; font-size: 13px; margin-bottom: 2px; }
.event-desc { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.event-countdown {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(209,106,245,.1);
  padding: 2px 7px;
  border-radius: 10px;
}

/* stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item { text-align: center; padding: 8px; background: var(--bg-2); border-radius: var(--radius); }
.stat-num { display: block; font-size: 18px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* promo */
.promo-widget { position: relative; border-color: var(--primary); background: var(--orange-glow2); }
.promo-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 1px;
}
.promo-widget h3 { font-size: 16px; margin-bottom: 12px; }
.promo-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.promo-list li { font-size: 13px; color: var(--text-muted); }
.btn-pro {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-pro:hover { box-shadow: var(--glow); }

/* shops */
.shop-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.shop-chip:hover { border-color: var(--primary); color: var(--primary); }

/* achievements */
.achievement-list { display: flex; flex-direction: column; gap: 8px; }
.achievement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background .15s;
}
.achievement-item.unlocked { background: var(--orange-glow2); border: 1px solid var(--primary-glow); }
.achievement-item.locked { opacity: .4; filter: grayscale(1); }
.ach-icon { font-size: 24px; flex-shrink: 0; }
.achievement-item strong { display: block; font-size: 13px; }
.achievement-item small { font-size: 11px; color: var(--text-muted); }

/* ===== FEED ===== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
}
.sort-tabs { display: flex; gap: 4px; }
.sort-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.sort-tab:hover { border-color: var(--primary); color: var(--primary); }
.sort-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.view-toggle { display: none; }
.view-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  font-size: 16px;
}
.view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== DEAL CARD – Tile Grid ===== */
.deal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.deal-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  cursor: pointer;
  position: relative;
}
.deal-card:hover {
  border-color: rgba(209,106,245,0.35);
  box-shadow: 0 0 0 1px rgba(209,106,245,0.15),
              0 8px 32px rgba(209,106,245,0.12),
              0 2px 8px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}
.deal-card.hot-deal {
  border-top: 4px solid var(--hot);
  background: rgba(232,97,74,0.05);
  box-shadow: inset 0 4px 24px rgba(232,97,74,0.12);
}
.deal-card.hot-deal:hover {
  border-color: rgba(232,97,74,0.45);
  box-shadow: inset 0 3px 20px rgba(232,97,74,0.12),
              0 0 0 1px rgba(232,97,74,0.2),
              0 8px 32px rgba(232,97,74,0.15),
              0 2px 8px rgba(0,0,0,0.5);
}
.deal-card.new-deal {
  border-top: 4px solid var(--green);
  background: rgba(61,204,136,0.05);
  box-shadow: inset 0 4px 24px rgba(61,204,136,0.12);
}
.deal-card.new-deal:hover {
  border-color: rgba(61,204,136,0.45);
  box-shadow: inset 0 3px 20px rgba(61,204,136,0.12),
              0 0 0 1px rgba(61,204,136,0.2),
              0 8px 32px rgba(61,204,136,0.15),
              0 2px 8px rgba(0,0,0,0.5);
}

/* ── Dealscore (inline in header row) ── */
.dealscore {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3px 6px 3px 4px;
  position: relative;
}
.dealscore::after {
  content: 'Dealscore';
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22,22,22,0.97);
  border: 1px solid rgba(255,255,255,0.13);
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 200;
}
.dealscore:hover::after {
  opacity: 1;
}
.dealscore-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 26px;
}
.vote-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 10px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 12px;
  transition: all .15s;
  line-height: 1;
}
.vote-btn:hover { background: rgba(209,106,245,0.12); }
.vote-btn.up:hover, .vote-btn.up.voted { color: #d16af5; }
.vote-btn.down:hover, .vote-btn.down.voted { color: var(--text-muted); }
.vote-count {
  font-size: 12px;
  font-weight: 900;
  min-width: 20px;
  text-align: center;
  letter-spacing: -.3px;
  line-height: 1.1;
}
.vote-count.small {
  font-size: 10px;
  min-width: 16px;
}
.vote-count.positive { color: #d16af5; }
.vote-count.negative { color: var(--text-muted); }
.vote-count.neutral  { color: var(--text-dim); }

/* Vote animations */
@keyframes voteUpPop {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.7) translateY(-5px); filter: drop-shadow(0 0 8px #d16af5); }
  55%  { transform: scale(1.25) translateY(-2px); }
  100% { transform: scale(1); filter: none; }
}
@keyframes voteDownShake {
  0%,100% { transform: translateX(0) rotate(0deg); }
  15%  { transform: translateX(-5px) rotate(-8deg); }
  35%  { transform: translateX(5px) rotate(8deg); }
  55%  { transform: translateX(-3px) rotate(-4deg); }
  75%  { transform: translateX(3px) rotate(4deg); }
}
@keyframes voteRemoveFade {
  0%   { transform: scale(1); opacity: 1; }
  40%  { transform: scale(0.55); opacity: 0.25; }
  100% { transform: scale(1); opacity: 1; }
}
.vote-btn.anim-vote-up     { animation: voteUpPop     .42s cubic-bezier(.34,1.56,.64,1); }
.vote-btn.anim-vote-down   { animation: voteDownShake .38s ease; }
.vote-btn.anim-vote-remove { animation: voteRemoveFade .32s ease; }

/* ── Image ── */
.deal-image-wrap {
  width: 100%;
  height: 220px;
  min-width: unset;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 14px 14px 0 0;
}
.deal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.deal-image-placeholder { font-size: 44px; }
.deal-placeholder-dragon { width: 100%; height: 100%; object-fit: contain; opacity: 0.55; }

/* ── Body ── */
.deal-body {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Header row: tags left, dealscore right ── */
.deal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}

/* ── Tags ── */
.deal-tags { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; flex: 1; min-width: 0; }
.deal-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  white-space: nowrap;
  letter-spacing: .2px;
  flex-shrink: 0;
}
.deal-tag.hot    { background: rgba(232,97,74,0.12); color: var(--hot); border-color: rgba(232,97,74,0.28); }
.deal-tag.green  { background: rgba(61,204,136,0.1); color: var(--green); border-color: rgba(61,204,136,0.25); }
.deal-tag.freebie{ background: rgba(61,204,136,0.1); color: var(--green); border-color: rgba(61,204,136,0.25); }

/* ── Title ── */
.deal-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #f0eeff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* ── Prices ── */
.deal-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.deal-price-new {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.6px;
}
.deal-price-old {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.deal-discount {
  background: rgba(168,68,212,0.22);
  border: 1px solid rgba(209,106,245,0.38);
  color: #e394ff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
}

/* ── Meta ── */
.deal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.deal-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-dim);
}
.deal-meta-item .icon { font-size: 11px; }
.deal-shop { font-weight: 600; color: var(--text-muted); }
.deal-click-heat { color: #ff7043; font-weight: 700; }
.deal-click-heat.boiling { color: #ff3d00; animation: pulseHeat 1.8s ease-in-out infinite; }
@keyframes pulseHeat { 0%,100%{opacity:1} 50%{opacity:.65} }

/* ── Card Actions (bottom of body) ── */
.deal-card-actions {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-top: auto;
  padding-top: 4px;
}
.deal-card-actions .btn-deal-link { flex: 1; text-align: center; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.deal-actions { display: none; }
.deal-actions-btns { display: none; }
.btn-deal-link {
  background: linear-gradient(135deg, #d16af5, #a844d4);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(209,106,245,0.25);
}
.btn-deal-link:hover {
  box-shadow: 0 4px 18px rgba(209,106,245,0.4);
  transform: translateY(-1px);
}
.deal-save-btn, .deal-fav-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-dim);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.deal-save-btn:hover, .deal-fav-btn:hover { border-color: #d16af5; color: #d16af5; background: rgba(209,106,245,0.1); }
.deal-save-btn.saved, .deal-fav-btn.active { border-color: #d16af5; color: #d16af5; background: rgba(209,106,245,0.12); }

/* temperature bar (removed) */
.temp-bar { display: none; }
.temp-fill { display: none; }

/* ===== SUCHERGEBNIS-LEISTE ===== */
#searchResultsBar {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
#searchResultsBar strong {
  color: var(--primary);
  font-weight: 700;
}

/* ===== LOAD MORE ===== */
.btn-load-more {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-load-more:hover { border-color: var(--primary); color: var(--primary); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--border);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  z-index: 1;
}
.modal-close:hover { background: var(--border-light); color: var(--text); }

.modal-title {
  padding: 24px 24px 0;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.xp-hint {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-glow);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

/* auth modal */
.auth-modal { max-width: 420px; }
.auth-header { padding: 32px 28px 20px; text-align: center; }
.auth-logo-img { height: 48px; width: auto; display: block; margin: 0 auto 12px; }
.auth-header h2 { font-size: 22px; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-form { padding: 0 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.auth-switch { text-align: center; padding: 0 28px 24px; color: var(--text-muted); font-size: 14px; }

/* post modal */
.post-modal { max-width: 560px; }
.post-modal .auth-form { padding: 0 24px 24px; }
#autofillStatus { transition: color .2s; }

/* deal modal */
.deal-modal { max-width: 700px; }
.deal-modal-close-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 0;
  overflow: visible;
  display: flex;
  justify-content: flex-end;
}
.deal-modal-close-wrap .modal-close {
  position: static;
  margin: 14px 14px 0 0;
}

/* form elements */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select option { background: var(--card); }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; }

/* deal detail */
.deal-detail-hero {
  height: 280px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
}
.deal-detail-hero img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.deal-detail-hero .placeholder { font-size: 80px; }
.deal-detail-body { padding: 24px; }
.deal-detail-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.deal-detail-prices { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.deal-detail-price { font-size: 36px; font-weight: 900; color: var(--primary); }
.deal-detail-old { font-size: 18px; text-decoration: line-through; color: var(--text-dim); }
.deal-detail-disc { background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.deal-detail-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.deal-detail-actions { display: flex; gap: 10px; }
.btn-deal-cta {
  flex: 1;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.btn-deal-cta:hover { box-shadow: 0 0 24px var(--primary-glow); }

/* comments */
.comments-section { padding: 0 24px 24px; border-top: 1px solid var(--border); }
.comments-title { font-size: 15px; font-weight: 700; margin: 16px 0 12px; }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius);
  outline: none;
}
.comment-input:focus { border-color: var(--primary); }
.btn-comment { background: var(--primary); border: none; color: #fff; padding: 9px 16px; border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-content { flex: 1; }
.comment-header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.comment-name { font-size: 13px; font-weight: 700; }
.comment-time { font-size: 11px; color: var(--text-dim); }
.comment-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.reply-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  margin-top: 4px;
  transition: color .15s;
}
.reply-btn:hover { color: var(--primary); }

.comment-reply-tag {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  background: var(--orange-glow2);
  padding: 1px 6px;
  border-radius: 4px;
}
.comment-quote {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-2);
  border-left: 2px solid var(--primary);
  border-radius: 0 4px 4px 0;
  padding: 4px 10px;
  margin-bottom: 6px;
}
.comment-quote-who {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.comment-quote-text {
  font-size: 12px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comment-quote-deleted {
  font-size: 11px;
  font-style: italic;
  color: var(--text-dim);
}
.comment-pin-badge {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  background: var(--orange-glow2);
  border: 1px solid var(--primary-glow);
  padding: 1px 7px;
  border-radius: 4px;
}
.comment-pinned {
  background: rgba(209,106,245,.04);
  border-left: 2px solid var(--primary);
  padding-left: 8px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-left: -10px;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.comment-votes {
  display: flex;
  align-items: center;
  gap: 1px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px;
}
.cvote-up, .cvote-down {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 9px;
  color: var(--text-dim);
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
  transition: color .15s, background .15s;
}
.cvote-up:hover   { color: var(--green); background: rgba(34,204,102,.1); }
.cvote-down:hover { color: var(--hot);   background: rgba(255,68,68,.1); }
.cvote-up.voted   { color: var(--green); background: rgba(34,204,102,.15); }
.cvote-down.voted { color: var(--hot);   background: rgba(255,68,68,.15); }
.cvote-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 14px;
  text-align: center;
  padding: 0 2px;
}

/* Flat list: replies indented, threads visually separated */
.comment-list { display: flex; flex-direction: column; gap: 6px; }
.comment-reply-item {
  margin-left: 42px;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}
.comment-thread-root + .comment-thread-root,
.replies-container + .comment-thread-root {
  margin-top: 12px;
}

/* Replies collapsible container */
.replies-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.replies-container.replies-hidden { display: none; }

/* Toggle button */
.replies-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: border-color .15s, color .15s;
  margin-left: auto;
}
.replies-toggle:hover { border-color: var(--primary); color: var(--primary); }
.btn-load-more-comments {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-load-more-comments:hover { border-color: var(--primary); color: var(--primary); }

.deal-share-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deal-share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ===== XP TOAST ===== */
.xp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 30px var(--primary-glow);
  z-index: 300;
  animation: toastIn .3s ease;
}
@keyframes toastIn {
  from { opacity:0; transform: translateX(30px); }
  to   { opacity:1; transform: translateX(0); }
}
.xp-toast-icon { font-size: 28px; }
.xp-toast strong { display: block; font-size: 16px; color: var(--primary); }
.xp-toast small { font-size: 12px; color: var(--text-muted); }

/* ===== LEVEL UP ===== */
.levelup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease;
}
.levelup-box {
  text-align: center;
  padding: 50px 60px;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 80px var(--primary-glow);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { transform: scale(.5); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}
.levelup-fireworks { font-size: 40px; margin-bottom: 12px; }
.levelup-box h1 {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.levelup-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 0 40px var(--primary-glow);
}
.levelup-box p { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }

/* ===== PROFILE PAGE ===== */
.profile-page { display: none; }
.profile-page.active { display: block; }
.profile-hero {
  background: linear-gradient(180deg, var(--orange-glow2) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.profile-avatar-lg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: url('https://dealzentrum.de/wp-content/uploads/2025/07/dealzentrum_drache_keinfoto.png') center/cover !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  border: 3px solid var(--primary);
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.9);
}
.profile-info { flex: 1; }
.profile-username { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.profile-joined { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.level-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.level-badge-lg {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}
.level-name { font-weight: 600; color: var(--text-muted); font-size: 14px; }
.xp-bar-lg {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
  max-width: 400px;
}
.xp-fill-lg {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 5px;
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}
.xp-label { font-size: 12px; color: var(--text-muted); }

/* ===== GRID VIEW (same tile layout) ===== */

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .main-layout { grid-template-columns: 200px 1fr 240px; }
}

@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
}

@media (max-width: 768px) {
  /* ---- Header: 3-zeilig (Logo+Actions / Nav-Tabs / Suche) ---- */
  :root { --header-h: 148px; --subheader-h: 48px; }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 12px 0;
    gap: 0;
    align-items: center;
  }

  /* Zeile 1: Logo links, Actions rechts */
  .logo { order: 1; flex-shrink: 0; }
  .logo-img { height: 58px; }
  .header-actions { order: 2; margin-left: auto; gap: 6px; }
  .header-fav-btn { order: 2; }
  .user-menu { order: 2; }
  .header-actions .btn-ghost,
  .header-actions .btn-primary { padding: 6px 10px; font-size: 11px; }

  /* Zeile 2: Nav-Tabs horizontal scrollbar */
  .main-nav {
    order: 3;
    display: flex !important;
    flex: 0 0 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 4px;
    padding: 8px 0 6px;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link {
    font-size: 12px;
    padding: 5px 13px;
    border-radius: 20px;
    background: var(--bg-2);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--border);
  }
  .nav-link.active { background: rgba(209,106,245,.12); border-color: var(--primary); }

  /* Zeile 3: Suche full-width */
  .header-search {
    order: 4;
    display: flex !important;
    flex: 0 0 100%;
    padding: 6px 0 8px;
  }
  .search-input { flex: 1; height: 36px; font-size: 13px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .search-btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 36px; padding: 0 14px; }

  /* ---- Subheader: Kategorien prominent, Deal-Posten → "+" ---- */
  .subheader-inner { padding: 0 10px; gap: 8px; height: 48px; min-height: 48px; align-items: center; }
  .categories { flex: 1; display: flex; align-items: center; }
  .cat-panel-btn { font-size: 13px; padding: 8px 14px; width: 100%; display: flex; align-items: center; gap: 6px; justify-content: flex-start; }

  /* Deal Posten → runder "+" FAB */
  .btn-post-deal {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-post-deal::after {
    content: '+';
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    margin-top: -1px;
  }

  /* ---- Sort-bar: kompakt, overflow visible damit Dropdowns sichtbar ---- */
  .sort-bar {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 10px;
    overflow: visible;
    max-width: 100%;
  }
  .sort-info { font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .filter-panel-btn { font-size: 11px; padding: 5px 10px; gap: 4px; flex-shrink: 0; }
  .sort-tabs { flex-wrap: nowrap; gap: 4px; flex-shrink: 0; }
  .sort-tab { padding: 5px 9px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  .quick-filters { display: none; }

  /* ---- Deal Cards: 2-Spalten-Grid ---- */
  .main-layout { padding: 12px 8px; max-width: 100%; overflow: hidden; }
  #feedSection, .feed { min-width: 0; overflow-x: clip; overflow-y: visible; max-width: 100%; }
  #dealFeed { grid-template-columns: 1fr 1fr !important; gap: 8px; width: 100%; max-width: 100%; }
  .deal-image-wrap { height: 38vw; padding: 8px; }
  .deal-image-wrap img { width: 100%; height: 100%; border-radius: 8px; }
  .deal-body { padding: 8px 10px; gap: 5px; }
  .deal-header-row { gap: 4px; }
  .dealscore { padding: 2px 5px 2px 3px; }
  .vote-btn { font-size: 9px; padding: 2px 4px; }
  .vote-count { font-size: 12px; min-width: 18px; }
  .dealscore-label { font-size: 6px; }
  .deal-title { font-size: 11px; -webkit-line-clamp: 2; line-clamp: 2; }
  .deal-tags { display: none; }
  .deal-meta { display: none; }
  .deal-prices { gap: 4px; }
  .deal-price-new { font-size: 15px; }
  .deal-price-old { font-size: 10px; }
  .deal-discount { font-size: 10px; padding: 1px 5px; }
  .deal-card-actions { gap: 4px; padding-top: 2px; }
  .deal-card-actions .btn-deal-link { font-size: 10px; padding: 7px 6px; }
  .deal-fav-btn { font-size: 10px; padding: 7px 8px; }
  .deal-share-btn { font-size: 9px; padding: 3px 5px; }

  /* ---- Deal Modal ---- */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .deal-modal {
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    margin: 0;
  }
  .deal-modal-close-wrap { padding: 0; }

  /* ---- Form ---- */
  .form-row { grid-template-columns: 1fr; }

  /* ---- Kategorien Panel ---- */
  .cat-panel { width: 85vw; }

  /* ---- Profil Hero: vertikal stapeln ---- */
  .profile-hero {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 20px !important;
    gap: 16px !important;
  }
  .profile-hero > div:first-child { margin: 0 auto; }
  .profile-hero .btn-ghost { width: 100%; justify-content: center; }
  .xp-bar-lg { max-width: 100% !important; }
  .profile-stats { justify-content: center !important; }
  .profile-tabs { gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab { font-size: 12px; padding: 7px 12px; white-space: nowrap; }

  /* ---- Auth Modal ---- */
  .auth-header { padding: 24px 20px 16px; }
  .auth-form { padding: 0 20px 20px; }
  .auth-switch { padding: 0 20px 20px; }

  /* ---- Footer ---- */
  .site-footer { padding: 28px 16px 20px; }
  .footer-logo-img { height: 58px; }
  .footer-links { gap: 6px 14px; }
  .footer-links a { font-size: 12px; }

  /* ---- Favoriten ---- */
  .fav-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fav-sort-bar { flex-wrap: wrap; }

  /* ---- Kommentare ---- */
  .comment-item { gap: 8px; }
  .replies-wrap { padding-left: 28px; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo-img { height: 58px; width: auto; display: block; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-contact-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  align-self: auto;
}
.footer-contact-btn:hover {
  background: var(--orange-glow2);
  border-color: var(--primary);
  color: var(--primary);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== LEGAL PAGES ===== */
.legal-container {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px 40px;
}
.legal-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-bottom: 28px;
}
.legal-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.legal-hero p {
  color: var(--text-muted);
  font-size: 14px;
}
.legal-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  margin-bottom: 16px;
}
.legal-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.legal-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.legal-section p, .legal-section li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-section ul {
  padding-left: 18px;
  margin-top: 6px;
}
.legal-section li { margin-bottom: 4px; }
.legal-section a { color: var(--primary); }
.legal-placeholder {
  background: rgba(209,106,245,.1);
  border: 1px dashed var(--primary);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--primary);
  font-style: italic;
  font-size: 13px;
}

@media (max-width: 768px) {
  .legal-hero { padding: 24px 20px; }
  .legal-section { padding: 20px; }
  .legal-container { margin: 20px auto; }
}

@media (max-width: 480px) {
  /* ---- Layout ---- */
  .main-layout { padding: 10px 8px; }
  #dealFeed { grid-template-columns: 1fr 1fr !important; gap: 6px; }
  .fav-grid { grid-template-columns: 1fr 1fr !important; gap: 6px; }

  /* ---- Deal Card ---- */
  .deal-image-wrap { height: 42vw; }
  .deal-body { padding: 6px 8px; gap: 4px; }
  .deal-title { font-size: 10px; }
  .deal-prices { gap: 3px; }
  .deal-price-new { font-size: 14px; font-weight: 900; }
  .deal-price-old { font-size: 10px; }
  .deal-discount { font-size: 9px; padding: 1px 4px; }
  .deal-card-actions { gap: 3px; }
  .deal-card-actions .btn-deal-link { font-size: 9px; padding: 6px 4px; }
  .deal-share-btn { font-size: 9px; padding: 3px 5px; }

  /* ---- Header ---- */
  .logo-img { height: 58px; }
  .header-actions .btn-primary { display: none; }
  .header-actions .btn-ghost { padding: 7px 12px; font-size: 12px; }

  /* ---- Footer ---- */
  .footer-logo-img { height: 58px; }
}

/* Very small phones (≤360px) */
@media (max-width: 360px) {
  .main-layout { padding: 8px 6px; }
  #dealFeed { gap: 5px; }
  .deal-image-wrap { height: 46vw; }
  .deal-body { padding: 4px 6px; }
  .deal-title { font-size: 10px; }
  .deal-price-new { font-size: 13px; }
  .deal-price-old { font-size: 9px; }
  .deal-discount { font-size: 9px; padding: 1px 4px; }
  .deal-actions { padding: 0 4px 4px; }
  .deal-actions-btns .btn-deal-link { font-size: 9px; padding: 5px 3px; }
  .deal-share-btn { font-size: 8px; padding: 3px 4px; }
}

/* ===== SIDEBAR BANNER ===== */
.sidebar-banner {
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  line-height: 0;
  width: 100%;
  min-height: 0;
}
.sidebar-banner iframe {
  border: none;
  display: block;
  width: 100%;
  max-width: 100%;
}
.sidebar-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 12px);
}

/* Fallback: fixed rechts, nur auf sehr breiten Screens */
.sidebar-banner--floating {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  max-width: 300px;
  display: none;
}
@media (min-width: 1600px) {
  .sidebar-banner--floating { display: block; }
}

/* ===== COUPON ===== */
.coupon-chip {
  background: rgba(61,204,136,0.1);
  border: 1px dashed rgba(61,204,136,0.38);
  color: var(--green);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .2px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  font-family: monospace;
}
.coupon-chip:hover {
  background: rgba(61,204,136,0.2);
  border-color: rgba(61,204,136,0.6);
}

.coupon-display {
  background: rgba(61,204,136,0.06);
  border: 1px dashed rgba(61,204,136,0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.coupon-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.coupon-code-btn {
  background: rgba(61,204,136,0.14);
  border: 1px solid rgba(61,204,136,0.38);
  color: var(--green);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1.5px;
  transition: background .15s;
}
.coupon-code-btn:hover { background: rgba(61,204,136,0.24); }
.coupon-hint {
  font-size: 11px;
  color: var(--text-dim);
  flex: 1;
}

/* Coupon im Deal-Modal – zwischen Zum Deal und Teilen */
.modal-coupon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  background: rgba(61,204,136,0.06);
  border: 1px dashed rgba(61,204,136,0.35);
  border-radius: var(--radius);
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  align-self: stretch;
}
.modal-coupon:hover {
  background: rgba(61,204,136,0.12);
  border-color: rgba(61,204,136,0.6);
}
.modal-coupon-code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 1.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.modal-coupon-copy {
  font-size: 9px;
  font-weight: 600;
  color: rgba(61,204,136,0.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}

/* ===== AD CARD ===== */
.ad-card {
  border: 1px dashed rgba(255,255,255,0.12) !important;
  color: inherit;
  opacity: 0.88;
}
.ad-card .deal-image-wrap {
  background: #161616;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ad-card:hover {
  border-color: rgba(209,106,245,0.28) !important;
  opacity: 1;
}
.ad-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: flex-start;
  white-space: nowrap;
}

/* ===== KATEGORIEN-BUTTON in Subheader ===== */
.cat-panel-btn {
  background: var(--orange-glow2);
  border: 1px solid var(--primary-glow);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.cat-panel-btn:hover { background: var(--primary-glow); border-color: var(--primary); }

/* ===== KATEGORIEN SLIDE-IN PANEL ===== */
.cat-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.cat-panel-overlay.open { opacity: 1; visibility: visible; }

.cat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 92vw;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border-light);
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1), visibility .32s;
  visibility: hidden;
  overflow: hidden;
}
.cat-panel.open { transform: translateX(0); visibility: visible; }

.cat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-2);
}
.cat-panel-title { font-size: 16px; font-weight: 700; margin: 0; }
.cat-panel-close {
  background: var(--border);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
}
.cat-panel-close:hover { background: var(--border-light); color: var(--text); }

.cat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.cat-panel-all-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--primary-glow);
  background: var(--orange-glow2);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 10px;
  transition: all .15s;
}
.cat-panel-all-btn:hover { background: var(--primary-glow); }
.cat-panel-section { border-bottom: 1px solid var(--border); }
.cat-panel-section:last-child { border-bottom: none; }
.cat-panel-main-row { display: flex; align-items: center; }
.cat-panel-main-name {
  flex: 1;
  text-align: left;
  padding: 13px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s;
}
.cat-panel-main-name:hover { color: var(--primary); }
.cat-panel-expand {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 13px 14px;
  cursor: pointer;
  font-size: 11px;
  transition: color .15s;
}
.cat-panel-expand:hover { color: var(--primary); }
.cat-panel-subs { display: none; flex-direction: column; padding: 0 0 8px 14px; }
.cat-panel-section.open .cat-panel-subs { display: flex; }
.cat-panel-sub-btn {
  text-align: left;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: all .12s;
}
.cat-panel-sub-btn:hover { background: var(--card-hover); color: var(--text); }

/* ===== KATEGORIE-PICKER (Formular) ===== */
.cat-picker { position: relative; }
.cat-picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: border-color .2s;
}
.cat-picker-btn:hover, .cat-picker-btn:focus { border-color: var(--primary); outline: none; }
.cat-picker-arrow { color: var(--text-muted); font-size: 11px; margin-left: 8px; flex-shrink: 0; }
.cat-picker-popup {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.cpk-section { border-bottom: 1px solid var(--border); }
.cpk-section:last-child { border-bottom: none; }
.cpk-header { display: flex; align-items: center; }
.cpk-main {
  flex: 1;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s;
}
.cpk-main:hover { color: var(--primary); }
.cpk-arrow {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 11px;
  transition: color .15s;
}
.cpk-arrow:hover { color: var(--primary); }
.cpk-subs { display: none; flex-direction: column; padding: 0 0 6px 14px; background: var(--bg-2); }
.cpk-section.open .cpk-subs { display: flex; }
.cpk-sub {
  text-align: left;
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all .12s;
}
.cpk-sub:hover { background: var(--card-hover); color: var(--text); }

/* ===== FILTER PANEL ===== */
.filter-panel-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-panel-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(209,106,245,.06); }
.filter-panel-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(209,106,245,.08); }
.filter-panel-btn.active::after { content: '●'; font-size: 7px; color: var(--primary); vertical-align: middle; }

.sort-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.filter-panel-overlay.open { opacity: 1; visibility: visible; }

.filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 501;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  display: flex;
  flex-direction: column;
}
.filter-panel.open { transform: translateX(0); visibility: visible; }

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-panel-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.filter-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s;
}
.filter-panel-close:hover { color: var(--text); }

.filter-panel-body {
  padding: 24px 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.filter-section { display: flex; flex-direction: column; }
.filter-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.filter-sort-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-sort-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.filter-sort-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-sort-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Filter Chips (Deal-Typ, Rabatt etc.) ── */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(209,106,245,.05); }
.filter-chip.active {
  background: rgba(209,106,245,.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* ── Filter Panel Layout verbessert ── */
.filter-panel {
  display: flex;
  flex-direction: column;
}
.filter-panel-body {
  flex: 1;
  overflow-y: auto;
}
.filter-panel-actions {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--card);
  display: flex;
  gap: 10px;
}
.filter-apply-btn, .filter-reset-btn { flex: 1; }

.filter-price-row { display: flex; gap: 12px; }
.filter-price-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.filter-price-field label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.filter-price-field input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
.filter-price-field input:focus { outline: none; border-color: var(--primary); }


@media (max-width: 768px) {
  .filter-panel { width: 85vw; }
}

/* ===== SORT-BAR DROPDOWNS ===== */
.sb-dropdown {
  position: relative;
  flex-shrink: 0;
}
.sb-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 7px 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sb-dropdown-btn:hover { border-color: var(--primary); color: var(--primary); }
.sb-dropdown-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(209,106,245,.08); }
.sb-arrow { font-size: 9px; opacity: .5; transition: transform .15s; }
.sb-dropdown.open .sb-arrow { transform: rotate(180deg); }
.sb-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 5px;
  min-width: 140px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  z-index: 200;
}
.sb-dropdown.open .sb-dropdown-menu { display: flex; }
.sb-drop-item {
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: all .12s;
  white-space: nowrap;
}
.sb-drop-item:hover { background: var(--card-hover); color: var(--text); }
.sb-drop-item.active { color: var(--primary); font-weight: 700; background: rgba(209,106,245,.08); }

/* ===== QUICK FILTER BAR ===== */
.quick-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.qf-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
}
.qf-group { display: flex; flex-direction: column; }
.qf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.qf-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.qf-chip:hover { border-color: var(--primary); color: var(--primary); }
.qf-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.qf-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

.qf-group-price { min-width: 160px; flex: 1; max-width: 280px; }
.qf-label strong { color: var(--primary); font-weight: 700; }

.qf-range-wrap {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  margin-top: 2px;
}
.qf-range-track {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  pointer-events: none;
}
.qf-range-fill {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  left: 0; width: 100%;
}
.qf-range-fill-single {
  left: 0 !important;
  width: 0%;
}
.qf-range {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 3;
  outline: none;
}
.qf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: transform .1s;
}
.qf-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.qf-range::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  cursor: pointer;
  pointer-events: all;
}

.qf-save-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.qf-save-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(209,106,245,.06); }

@media (max-width: 600px) {
  .quick-filters { gap: 10px; padding: 10px; }
  .qf-divider { display: none; }
  .qf-group-price { max-width: 100%; width: 100%; }
  .qf-save-btn { margin-left: 0; width: 100%; text-align: center; }
}

/* ===== SAVE SEARCH MODAL ===== */
.save-search-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.ss-toggle-wrap { flex-shrink: 0; }
.ss-toggle-track {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.ss-toggle-track.on { background: var(--primary); }
.ss-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.ss-toggle-track.on .ss-toggle-thumb { left: 23px; }

/* ===== ADMIN-AKTIONEN WIDGET ===== */
.admin-action-btn {
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.admin-action-btn:hover {
  border-color: var(--primary);
  background: rgba(209,106,245,.06);
  color: var(--primary);
}

/* ===== FAVORITEN ===== */
.header-fav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s;
  flex-shrink: 0;
  cursor: pointer;
}
.header-fav-btn:hover { transform: scale(1.18); }
.header-fav-btn .fav-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 2px solid var(--bg);
  font-family: Inter, sans-serif;
}

/* Herz-Button auf Deal-Card */
.deal-fav-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  color: var(--text-dim);
  transition: transform .15s, color .15s;
  align-self: flex-start;
}
.deal-fav-btn:hover { transform: scale(1.15); color: #d16af5; border-color: #d16af5; }
.deal-fav-btn.active { color: #d16af5; border-color: #d16af5; background: rgba(209,106,245,0.12); }

/* ===== FAVORITEN-SEITE ===== */
.fav-page-header {
  max-width: 900px;
  margin: 32px auto 20px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fav-sort-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fav-sort-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.fav-sort-btn:hover { border-color: var(--primary); color: var(--primary); }
.fav-sort-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.fav-feed {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fav-feed .deal-image-wrap { height: 180px; }
.fav-feed .deal-tags { flex-wrap: wrap; overflow: visible; }
.fav-feed .deal-title { -webkit-line-clamp: 3; line-clamp: 3; }

/* ===== DEAL DETAIL PAGE ===== */
.deal-page-wrap {
  max-width: 960px;
  margin: 28px auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.deal-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.deal-breadcrumb a:hover { color: var(--primary); }
.bc-sep { color: var(--text-dim); }
.bc-current { color: var(--text); }

.deal-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.deal-detail-image-wrap {
  flex-shrink: 0;
  width: 260px;
  position: relative;
}
.deal-detail-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 16px;
  display: block;
}

.deal-detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deal-detail-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.deal-detail-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.deal-price-free { color: var(--green) !important; }

.deal-detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-height: 180px;
  overflow-y: auto;
}

.deal-detail-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.deal-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.deal-vote-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
}

.deal-detail-cta {
  padding: 12px 24px;
  font-size: 15px;
}

.deal-section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.deal-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.deal-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.related-deal-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s, border-color .15s;
}
.related-deal-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

@media (max-width: 700px) {
  .deal-detail-card { flex-direction: column; }
  .deal-detail-image-wrap { width: 100%; }
  .deal-detail-img { height: 200px; }
  .deal-detail-title { font-size: 17px; }
}

/* ============================================================
   COOKIE CONSENT BANNER + MODAL
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a1a;
  border-top: 1px solid #2e2e2e;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.7);
  padding: 16px 24px;
  transition: transform .3s ease;
}
.cookie-banner.hidden { display: none; }

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.cookie-banner-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.cookie-banner-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.cookie-banner-text p strong {
  color: var(--text);
  font-weight: 600;
}

.cookie-banner-text p a {
  color: var(--primary);
  text-decoration: none;
}
.cookie-banner-text p a:hover { text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.cookie-btn-accept:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.cookie-btn-reject:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.cookie-btn-settings:hover { color: var(--text-muted); }

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-modal-overlay.hidden { display: none; }

.cookie-modal {
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 600px;
  padding: 28px 28px 32px;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cookie-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color .15s, background .15s;
}
.cookie-modal-close:hover {
  background: var(--bg-2);
  color: var(--text);
}

.cookie-modal-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cookie-cat {
  background: #242424;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.cookie-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-cat-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.cookie-cat-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.cookie-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  background: #333;
  border-radius: 11px;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s;
  flex-shrink: 0;
}
.cookie-toggle.on { background: var(--primary); }
.cookie-toggle.locked {
  background: #2a2a2a;
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
  pointer-events: none;
}
.cookie-toggle.on .cookie-toggle-thumb { left: 19px; }

.cookie-always-on {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
  white-space: nowrap;
}

.cookie-modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-modal-save {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.cookie-modal-save:hover { background: var(--primary-light); }

/* Mobile adjustments */
@media (max-width: 768px) {
  .cookie-banner { padding: 14px 16px; }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: row;
    justify-content: stretch;
  }

  .cookie-btn-accept,
  .cookie-btn-reject {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }

  .cookie-btn-settings { padding: 6px 0; }

  .cookie-modal {
    padding: 22px 18px 28px;
    border-radius: 16px 16px 0 0;
  }
}

/* ============================================================
   DZ MAGAZIN – BLOG
   ============================================================ */

.blog-hero {
  background: linear-gradient(135deg, #181818 0%, #1a1228 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 56px 20px 48px;
  text-align: center;
}
.blog-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(168,68,212,0.12);
  border: 1px solid rgba(168,68,212,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 0 14px;
  color: var(--text);
}
.blog-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 20px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; margin: 28px auto; } }

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: rgba(209,106,245,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(168,68,212,0.12);
}
.blog-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #1c1c1c;
}
.blog-card-img-placeholder {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #1c1228, #1a1a2e);
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.blog-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
}
.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Artikel-Seite ── */
.blog-article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color .15s;
}
.blog-back:hover { color: var(--primary); }

.blog-article-header { margin-bottom: 32px; }
.blog-article-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.blog-article-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.5px;
  color: var(--text);
  margin: 0 0 16px;
}
.blog-article-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.blog-article-meta span { display: flex; align-items: center; gap: 4px; }

.blog-article-content {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-muted);
}
.blog-article-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: -.3px;
}
.blog-article-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.blog-article-content p { margin: 0 0 18px; }
.blog-article-content ul, .blog-article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.blog-article-content li { margin-bottom: 8px; }
.blog-article-content strong { color: var(--text); font-weight: 700; }
.blog-article-content a { color: var(--primary); text-decoration: none; }
.blog-article-content a:hover { text-decoration: underline; }
.blog-article-content blockquote {
  border-left: 3px solid var(--primary);
  margin: 24px 0;
  padding: 12px 20px;
  background: rgba(168,68,212,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-style: italic;
}
.blog-article-content .highlight-box {
  background: rgba(61,204,136,0.07);
  border: 1px solid rgba(61,204,136,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.blog-article-content .highlight-box strong { color: var(--green); }

.blog-cta-box {
  background: linear-gradient(135deg, rgba(168,68,212,0.12), rgba(168,68,212,0.05));
  border: 1px solid rgba(168,68,212,0.25);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 40px 0;
  text-align: center;
}
.blog-cta-box h3 { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.blog-cta-box p { font-size: 14px; color: var(--text-muted); margin: 0 0 18px; }

/* Blog header-Streifen */
.blog-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0e0e0e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 40px rgba(0,0,0,0.6);
}
.blog-site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.blog-nav-links { display: flex; align-items: center; gap: 20px; }
.blog-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.blog-nav-links a:hover { color: var(--text); }
.blog-nav-links a.active { color: var(--primary); }

/* ============================================================
   IMAGE UPLOAD ZONE & GALERIE
   ============================================================ */
.img-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: border-color .2s, background .2s;
  min-height: 88px;
  position: relative;
}
.img-upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-glow2);
}
.img-upload-placeholder {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 14px 8px;
  user-select: none;
}
.img-upload-placeholder:hover { color: var(--text); }
.img-upload-placeholder u { color: var(--primary-light); }
.img-upload-placeholder kbd {
  font-family: monospace;
  font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-muted);
}
.img-gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.img-tile {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: grab;
}
.img-tile:active { cursor: grabbing; }
.img-tile.dragging { opacity: .35; }
.img-tile.drag-over { outline: 2px solid var(--primary); outline-offset: 2px; }
.img-tile img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  user-select: none;
  pointer-events: none;
}
.img-tile-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .02em;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.img-tile-del {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}
.img-tile-del:hover { color: #f87171; border-color: #f87171; }
.img-add-tile {
  width: 90px;
  height: 90px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  gap: 4px;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.img-add-tile:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ============================================================
   NOTIFICATION BELL
   ============================================================ */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
}
.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text);
  transition: background .15s;
  line-height: 1;
}
.notif-bell-btn:hover { background: var(--bg-2); }
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.notif-badge.hidden { display: none; }

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 500px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 400;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notif-dropdown.hidden { display: none; }

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.notif-mark-all {
  font-size: 12px;
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-list {
  flex: 1;
  overflow-y: auto;
  max-height: 280px;
}
.notif-empty {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 16px;
  margin: 0;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-2); }
.notif-item.unread { background: rgba(255,107,0,.06); }
.notif-item.unread:hover { background: rgba(255,107,0,.1); }
.notif-msg {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}
.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-settings {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: var(--bg-2);
}
.notif-settings-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.notif-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 0;
}
.notif-toggle-row input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }

@media (max-width: 480px) {
  .notif-dropdown { width: calc(100vw - 32px); right: -60px; }
}

/* ===== TOP DEALS WIDGET ===== */
.td-rank {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.td-deal-item:nth-child(1) .td-rank { color: #f5a623; }
.td-deal-item:nth-child(2) .td-rank { color: #9b9b9b; }
.td-deal-item:nth-child(3) .td-rank { color: #b87333; }

.td-deal-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  border-radius: 6px;
}
.td-deal-item:last-child { border-bottom: none; }
.td-deal-item:hover { background: var(--bg-2); padding-left: 4px; padding-right: 4px; }
.td-deal-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-2);
}
.td-deal-info { flex: 1; min-width: 0; }
.td-deal-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-deal-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.td-deal-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.td-deal-votes { font-size: 11px; color: var(--text-muted); }
.td-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.td-page-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  transition: background .15s;
}
.td-page-btn:hover:not(:disabled) { background: var(--bg-3); }
.td-page-btn:disabled { opacity: .35; cursor: default; }
#tdPageInfo { font-size: 12px; color: var(--text-muted); min-width: 36px; text-align: center; }

/* ===== PROFIL SCROLL-LISTE (max 7 sichtbar) ===== */
.profile-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 476px; /* ~7 Einträge à 58px + Gaps */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-right: 4px;
}
.profile-scroll-list::-webkit-scrollbar { width: 4px; }
.profile-scroll-list::-webkit-scrollbar-track { background: transparent; }
.profile-scroll-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.profile-notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.4;
  cursor: default;
  transition: background .15s;
}
.profile-notif-item.unread {
  background: rgba(255,107,0,.06);
  border-color: rgba(255,107,0,.2);
}
.profile-notif-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.profile-notif-msg { flex: 1; color: var(--text); }
.profile-notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ===== MOBILE: Benachrichtigungsglocke nur auf Desktop ===== */
@media (max-width: 768px) {
  .notif-bell { display: none !important; }
}
