/* ── Haruby Betrugswarnungen – Frontend v1.1 ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --hbw-accent:     #e63946;
  --hbw-accent2:    #ff6b6b;
  --hbw-dark:       #0d0f14;
  --hbw-dark2:      #161921;
  --hbw-dark3:      #1e2130;
  --hbw-card:       #1a1d29;
  --hbw-border:     rgba(255,255,255,.08);
  --hbw-border2:    rgba(255,255,255,.14);
  --hbw-text:       #f0f2f7;
  --hbw-muted:      #8892a4;
  --hbw-radius:     16px;
  --hbw-radius-sm:  10px;
  --hbw-font-head:  'Syne', sans-serif;
  --hbw-font-body:  'DM Sans', sans-serif;
  --hbw-shadow:     0 4px 24px rgba(0,0,0,.35);
  --hbw-glow:       0 0 40px rgba(230,57,70,.18);
}

.hbw-archive-wrap *,
.hbw-archive-wrap *::before,
.hbw-archive-wrap *::after { box-sizing: border-box; }

.hbw-archive-wrap {
  font-family: var(--hbw-font-body);
  color: var(--hbw-text);
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ── Hero Header ─────────────────────────────────────────────────────────── */
.hbw-header {
  background: var(--hbw-dark2);
  border: 1px solid var(--hbw-border2);
  border-radius: 20px;
  padding: 40px 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--hbw-shadow), var(--hbw-glow);
  animation: hbwFadeUp .5s ease both;
}
.hbw-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230,57,70,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,57,70,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 80%);
}
.hbw-header::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(230,57,70,.28) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hbw-header-inner { position: relative; z-index: 1; }

.hbw-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--hbw-accent);
  color: #fff;
  font-family: var(--hbw-font-head);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 30px;
  margin-bottom: 14px;
  width: fit-content;
}
.hbw-badge-dot {
  width: 7px; height: 7px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  animation: hbwPulse 1.6s ease-in-out infinite;
}

.hbw-title {
  font-family: var(--hbw-font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--hbw-text);
}
.hbw-title span { color: var(--hbw-accent); }

.hbw-subtitle {
  margin: 0;
  color: var(--hbw-muted);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 560px;
}

.hbw-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hbw-border);
  position: relative;
  z-index: 1;
}
.hbw-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--hbw-muted);
}
.hbw-meta-item strong { color: var(--hbw-text); font-weight: 600; }

/* ── Controls ─────────────────────────────────────────────────────────────── */
.hbw-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  animation: hbwFadeUp .5s .1s ease both;
}
.hbw-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hbw-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--hbw-border2);
  border-radius: 30px;
  font-family: var(--hbw-font-body);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hbw-muted);
  background: var(--hbw-dark2);
  transition: all .2s;
  white-space: nowrap;
}
.hbw-cat-tab:hover {
  border-color: var(--hbw-accent2);
  color: var(--hbw-accent2);
  background: rgba(230,57,70,.08);
  transform: translateY(-1px);
}
.hbw-cat-tab.active {
  border-color: var(--hbw-accent);
  color: #fff;
  background: var(--hbw-accent);
  box-shadow: 0 4px 14px rgba(230,57,70,.35);
}

.hbw-search-form { display: flex; gap: 8px; flex: 1; max-width: 340px; min-width: 220px; }
.hbw-search-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--hbw-dark2);
  border: 1.5px solid var(--hbw-border2);
  border-radius: var(--hbw-radius-sm);
  color: var(--hbw-text);
  font-family: var(--hbw-font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.hbw-search-input::placeholder { color: var(--hbw-muted); }
.hbw-search-input:focus {
  border-color: var(--hbw-accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,.15);
}
.hbw-search-btn {
  padding: 10px 16px;
  background: var(--hbw-accent);
  color: #fff;
  border: none;
  border-radius: var(--hbw-radius-sm);
  cursor: pointer;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.hbw-search-btn:hover   { background: var(--hbw-accent2); transform: scale(1.04); }
.hbw-search-btn:active  { transform: scale(.97); }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.hbw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.hbw-card {
  background: var(--hbw-card);
  border: 1px solid var(--hbw-border);
  border-radius: var(--hbw-radius);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  animation: hbwCardIn .4s ease both;
  -webkit-tap-highlight-color: transparent;
}
.hbw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  border-color: var(--hbw-border2);
}

/* Left accent stripe */
.hbw-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
}
.hbw-card.hbw-cat-phishing::before { background: #e63946; }
.hbw-card.hbw-cat-shopping::before { background: #f4a261; }
.hbw-card.hbw-cat-fakeshop::before { background: #a855f7; }
.hbw-card.hbw-cat-telefon::before  { background: #38bdf8; }
.hbw-card.hbw-cat-sonstige::before { background: #64748b; }

.hbw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hbw-card-cat {
  font-size: .71rem;
  font-weight: 700;
  color: var(--hbw-muted);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hbw-card-title {
  font-family: var(--hbw-font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--hbw-text);
  letter-spacing: -.01em;
}
.hbw-card-desc {
  font-size: .875rem;
  color: var(--hbw-muted);
  margin: 0;
  line-height: 1.65;
  flex-grow: 1;
}
.hbw-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--hbw-border);
  font-size: .78rem;
  margin-top: auto;
}
.hbw-card-date   { color: var(--hbw-muted); }
.hbw-card-source { color: var(--hbw-muted); margin-left: auto; font-size: .74rem; }
.hbw-card-link {
  margin-left: auto;
  color: var(--hbw-accent2);
  font-weight: 700;
  text-decoration: none;
  font-size: .82rem;
  transition: color .18s, letter-spacing .18s;
}
.hbw-card-link:hover { color: #fff; letter-spacing: .01em; }

/* Badges */
.hbw-card-sev {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.hbw-sev-high { background: rgba(230,57,70,.18);  color: #ff8a93; border: 1px solid rgba(230,57,70,.28); }
.hbw-sev-mid  { background: rgba(244,162,97,.14); color: #f4c28a; border: 1px solid rgba(244,162,97,.28); }
.hbw-sev-low  { background: rgba(52,211,153,.11); color: #6ee7b7; border: 1px solid rgba(52,211,153,.22); }

/* Stagger */
.hbw-card:nth-child(1)  { animation-delay:.03s }
.hbw-card:nth-child(2)  { animation-delay:.07s }
.hbw-card:nth-child(3)  { animation-delay:.11s }
.hbw-card:nth-child(4)  { animation-delay:.15s }
.hbw-card:nth-child(5)  { animation-delay:.18s }
.hbw-card:nth-child(6)  { animation-delay:.21s }
.hbw-card:nth-child(n+7){ animation-delay:.24s }

/* ── Empty ────────────────────────────────────────────────────────────────── */
.hbw-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--hbw-muted);
  background: var(--hbw-dark2);
  border: 1px dashed var(--hbw-border2);
  border-radius: var(--hbw-radius);
}
.hbw-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 14px; opacity: .65; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.hbw-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}
.hbw-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  background: var(--hbw-dark2);
  border: 1.5px solid var(--hbw-border2);
  color: var(--hbw-text);
  border-radius: var(--hbw-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  font-family: var(--hbw-font-body);
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.hbw-page-btn:hover {
  background: var(--hbw-accent);
  border-color: var(--hbw-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230,57,70,.3);
}
.hbw-page-info { color: var(--hbw-muted); font-size: .85rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.hbw-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hbw-border);
  font-size: .78rem;
  color: var(--hbw-muted);
  text-align: center;
  line-height: 1.75;
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes hbwFadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes hbwCardIn {
  from { opacity:0; transform:translateY(10px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes hbwPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.4; transform:scale(.65); }
}

/* ── Tablet ───────────────────────────────────────────────────────────────── */
@media (max-width:860px) {
  .hbw-archive-wrap { padding:20px 14px 48px; }
  .hbw-header       { padding:28px 22px 24px; border-radius:14px; }
  .hbw-title        { font-size:1.7rem; }
  .hbw-grid         { grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:14px; }
  .hbw-search-form  { max-width:100%; }
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width:600px) {
  .hbw-archive-wrap { padding:14px 12px 40px; }

  .hbw-header { padding:20px 16px 18px; border-radius:12px; }
  .hbw-header::after { width:140px; height:140px; top:-30px; right:-30px; }
  .hbw-title  { font-size:1.4rem; }
  .hbw-subtitle { font-size:.875rem; }
  .hbw-meta-row { gap:12px; margin-top:18px; padding-top:16px; }
  .hbw-meta-item { font-size:.78rem; }

  .hbw-controls { flex-direction:column; align-items:stretch; gap:10px; }
  .hbw-cat-tabs {
    overflow-x:auto; flex-wrap:nowrap;
    padding-bottom:6px; gap:6px;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .hbw-cat-tabs::-webkit-scrollbar { display:none; }
  .hbw-cat-tab { padding:7px 13px; font-size:.78rem; }
  .hbw-search-form { max-width:100%; min-width:0; }
  .hbw-search-input { font-size:16px; /* Prevents iOS zoom */ }

  .hbw-grid { grid-template-columns:1fr; gap:10px; }
  .hbw-card { padding:16px 14px 14px; border-radius:12px; }
  .hbw-card:hover { transform:none; } /* Disable hover lift on touch */
  .hbw-card-title { font-size:.92rem; }

  .hbw-pagination { flex-direction:column; gap:10px; }
  .hbw-page-btn { width:100%; justify-content:center; padding:13px; }
}

@media (prefers-reduced-motion:reduce) {
  .hbw-card,.hbw-header,.hbw-controls { animation:none; }
  .hbw-badge-dot { animation:none; }
}
