/* ═══════════════════════════════════════════════════════════
   report.hamburg – Frontend CSS
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --red:      #c41230;
  --red-dark: #9e0e26;
  --dark:     #141420;
  --navy:     #1a1a2e;
  --grey-bg:  #f6f6f8;
  --grey-lt:  #f0f0f3;
  --border:   #e2e2ea;
  --text:     #1c1c28;
  --muted:    #6b6b80;
  --serif:    'Source Serif 4', Georgia, serif;
  --display:  'Playfair Display', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
  --radius:   5px;
  --shadow-s: 0 1px 4px rgba(0,0,0,.07);
  --shadow-m: 0 4px 16px rgba(0,0,0,.10);
  --trans:    .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Container ─────────────────────────────────────────── */
.container         { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 840px; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 62px;
}
.site-logo img { height: 40px; }
.site-nav { display: flex; gap: 2px; }
.site-nav a {
  color: rgba(255,255,255,.72);
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  padding: 7px 13px; border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.3rem; cursor: pointer; padding: 4px;
}

/* ─── Breaking bar ───────────────────────────────────────── */
.breaking-bar {
  background: var(--red); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 7px 0;
}
.breaking-bar .container { display: flex; align-items: center; gap: 12px; }
.breaking-label {
  background: #fff; color: var(--red);
  padding: 2px 8px; border-radius: 3px; font-size: .72rem;
  white-space: nowrap; flex-shrink: 0;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero { padding: 32px 0 28px; background: var(--grey-bg); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.hero-main { display: flex; flex-direction: column; gap: 12px; }
.hero-img { border-radius: var(--radius); overflow: hidden; }
.hero-img img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform .4s ease;
}
.hero-img:hover img { transform: scale(1.02); }
.hero-text h1 {
  font-family: var(--display); font-size: 1.9rem;
  font-weight: 800; line-height: 1.18; margin: 8px 0 10px;
  letter-spacing: -.01em;
}
.hero-text h1 a:hover { color: var(--red); }
.hero-text p { color: var(--muted); font-size: .94rem; line-height: 1.6; }

.hero-side {
  border-left: 1px solid var(--border); padding-left: 28px;
  display: flex; flex-direction: column; gap: 0;
}
.side-item {
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.side-item:first-child { padding-top: 0; }
.side-item:last-child  { border-bottom: none; }
.side-item h3 {
  font-family: var(--serif); font-size: .98rem;
  font-weight: 600; line-height: 1.35; margin: 5px 0 5px;
}
.side-item h3 a:hover { color: var(--red); }

/* ─── Category Badge ─────────────────────────────────────── */
.cat-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--red); color: #fff;
  padding: 3px 8px; border-radius: 3px;
  transition: background var(--trans);
}
.cat-badge:hover { background: var(--red-dark); }
.cat-badge.small  { font-size: .63rem; }
.meta { font-size: .77rem; color: var(--muted); }

/* ─── Topics ─────────────────────────────────────────────── */
.topics { padding: 28px 0; }
.topics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.topic-card {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 8px; border-radius: var(--radius);
  font-weight: 600; font-size: .85rem; text-align: center;
  color: #fff; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 76px;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.topic-polizeimeldungen  { background: linear-gradient(135deg,#1a1a2e,#2d2d4a); }
.topic-leben-in-hamburg  { background: linear-gradient(135deg,#1b5e20,#2e7d32); }
.topic-hamburg-entdecken { background: linear-gradient(135deg,#0d47a1,#1565c0); }
.topic-ratgeber          { background: linear-gradient(135deg,#4a148c,#6a1b9a); }
.topic-blog              { background: linear-gradient(135deg,#b71c1c,#c41230); }

/* ─── Section Title ──────────────────────────────────────── */
.section-title {
  font-family: var(--display); font-size: 1.25rem; font-weight: 800;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  letter-spacing: -.01em;
}

/* ─── Article Grid ───────────────────────────────────────── */
.latest { padding: 0 0 48px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.card-img { overflow: hidden; }
.card-img img {
  aspect-ratio: 16/9; object-fit: cover; width: 100%;
  transition: transform .35s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 {
  font-family: var(--serif); font-size: 1rem;
  font-weight: 600; line-height: 1.35;
}
.card-body h3 a:hover { color: var(--red); }
.card-body p { font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* ─── Article List ───────────────────────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 0; }
.list-item {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.list-img { border-radius: var(--radius); overflow: hidden; }
.list-img img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  transition: transform .35s ease;
}
.list-item:hover .list-img img { transform: scale(1.04); }
.list-body h2 {
  font-family: var(--serif); font-size: 1.08rem;
  font-weight: 600; line-height: 1.35; margin-bottom: 6px;
}
.list-body h2 a:hover { color: var(--red); }
.list-body p { font-size: .88rem; color: var(--muted); }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { font-size: .78rem; color: var(--muted); margin: 18px 0; }
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }

.page-title { font-family: var(--display); font-size: 2rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.page-desc  { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }

/* ─── Single Article ─────────────────────────────────────── */
.article { padding: 16px 0 48px; }
.article-header { margin-bottom: 22px; }
.article-header h1 {
  font-family: var(--display); font-size: 2.1rem; font-weight: 800;
  line-height: 1.18; margin: 10px 0 12px; letter-spacing: -.02em;
}
.article-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article-meta a { color: var(--red); }
.article-meta-divider::before { content: '·'; }
.article-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-img img { width: 100%; max-height: 500px; object-fit: cover; }
.article-img figcaption { font-size: .76rem; color: var(--muted); padding: 6px 0; }

.ai-summary {
  background: linear-gradient(135deg, #f0f4ff, #eef1ff);
  border-left: 4px solid #3b5bdb;
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 22px; font-size: .9rem; color: #333; line-height: 1.6;
}
.ai-summary strong { color: #3b5bdb; }

.article-content {
  font-family: var(--serif); font-size: 1.06rem;
  line-height: 1.8; color: var(--text);
}
.article-content p      { margin-bottom: 1.25em; }
.article-content h2     { font-family: var(--display); font-size: 1.5rem; font-weight: 800; margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.article-content h3     { font-family: var(--display); font-size: 1.2rem; margin: 1.4em 0 .5em; }
.article-content a      { color: var(--red); text-decoration: underline; }
.article-content ul,
.article-content ol     { margin: .8em 0 .8em 1.6em; }
.article-content li     { margin-bottom: .35em; }
.article-content strong { font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--red); padding: 10px 18px;
  margin: 1.2em 0; color: var(--muted); font-style: italic;
}

/* ─── Werbung / ANZEIGE ──────────────────────────────────── */
.ad-wrap { margin: 24px 0; }
.ad-label {
  display: block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); background: var(--grey-lt);
  border: 1px solid var(--border); border-bottom: none;
  padding: 4px 10px; border-radius: var(--radius) var(--radius) 0 0;
  width: fit-content;
}
.ad-slot {
  background: var(--grey-lt); border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  min-height: 90px; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle   { min-height: 250px; }
.ad-slot--sidebar     { min-height: 200px; }

/* ─── Related ────────────────────────────────────────────── */
.related { border-top: 2px solid var(--border); padding: 32px 0; margin-top: 32px; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; gap: 5px; margin: 28px 0; flex-wrap: wrap; }
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .85rem; font-weight: 500;
  transition: background var(--trans), border-color var(--trans);
}
.pagination a.active { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover:not(.active) { background: var(--grey-lt); border-color: #c0c0cc; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #aaa; padding: 44px 0 0; margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col h4 { color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col a  { display: block; color: #888; font-size: .84rem; margin-bottom: 6px; transition: color var(--trans); }
.footer-col a:hover { color: #fff; }
.footer-col p  { font-size: .84rem; color: #777; margin-top: 10px; line-height: 1.6; }
.footer-copy   { padding: 16px 0; font-size: .78rem; color: #555; }

.btn-primary {
  display: inline-block; background: var(--red); color: #fff;
  padding: 10px 22px; border-radius: var(--radius); font-weight: 600;
  border: none; cursor: pointer; font-size: .9rem;
  transition: background var(--trans);
}
.btn-primary:hover { background: var(--red-dark); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-side        { border-left: none; border-top: 1px solid var(--border); padding: 20px 0 0; flex-direction: row; flex-wrap: wrap; gap: 0; }
  .side-item        { width: 50%; padding-right: 16px; }
  .topics-grid      { grid-template-columns: repeat(3,1fr); }
  .article-grid     { grid-template-columns: repeat(2,1fr); }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav         { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: var(--dark); padding: 8px 0; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
  .site-nav.open    { display: flex; }
  .site-nav a       { padding: 12px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-toggle       { display: block; }
  .hero-text h1     { font-size: 1.45rem; }
  .topics-grid      { grid-template-columns: repeat(2,1fr); }
  .article-grid     { grid-template-columns: 1fr; }
  .list-item        { grid-template-columns: 1fr; }
  .list-img         { display: none; }
  .footer-inner     { grid-template-columns: 1fr; }
  .article-header h1{ font-size: 1.6rem; }
  .side-item        { width: 100%; }
}

/* ─── Logo weißer Hintergrund ────────────────────────────── */
.site-logo {
  display: inline-flex; align-items: center;
  background: #fff;
  padding: 5px 10px;
  border-radius: 4px;
}
.site-logo img { height: 36px; width: auto; display: block; }

/* ─── Kein-Bild Placeholder ──────────────────────────────── */
.card--no-img .card-body {
  padding: 18px 18px 18px;
  border-top: 3px solid var(--red);
}
.card--no-img .card-body h3 { font-size: 1.05rem; }

.list-item--no-img {
  grid-template-columns: 1fr;
}
.list-item--no-img .list-body h2 { font-size: 1.12rem; }

/* Kachel-Ersatz wenn kein Bild im Hero-Nebenartikel */
.side-item--no-img { background: none; }

/* Artikel ohne Bild: größeres Excerpt hervorheben */
.article--no-img .article-header {
  padding: 24px 0 20px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 24px;
}
.article--no-img .article-header h1 { font-size: 2.3rem; }

/* ─── Intro ──────────────────────────────────────────────── */
.intro { padding: 28px 0 8px; }
.intro-claim {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
  border-left: 4px solid var(--red); padding-left: 14px;
}

/* ─── Topics kompakt ─────────────────────────────────────── */
.topics { padding: 18px 0 24px; }

/* ─── News Strip ─────────────────────────────────────────── */
.news-strip { padding: 0 0 40px; }
.news-strip-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; border-bottom: 2px solid var(--red); padding-bottom: 8px;
}
.news-strip-title {
  font-family: var(--display); font-size: 1.15rem; font-weight: 800;
  letter-spacing: -.01em;
}
.news-strip-more { font-size: .82rem; color: var(--red); font-weight: 500; }
.news-strip-more:hover { text-decoration: underline; }

.news-strip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

/* News card */
.news-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.news-card-img { display: block; overflow: hidden; }
.news-card-img img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform .35s;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.news-card-body h3 {
  font-family: var(--serif); font-size: .97rem;
  font-weight: 600; line-height: 1.32;
}
.news-card-body h3 a:hover { color: var(--red); }
.news-card-excerpt { font-size: .83rem; color: var(--muted); line-height: 1.5; }

/* Textkarte ohne Bild – roter Rand oben */
.news-card--text { border-top: 3px solid var(--red); }
.news-card--text .news-card-body { padding-top: 14px; }

/* ─── Footer Logo ────────────────────────────────────────── */
.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.footer-logo-wrap img { display: block; }

/* ─── Werbung dezenter ───────────────────────────────────── */
.ad-wrap { margin: 20px 0; }
.ad-label {
  font-size: .63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #aaa;
  background: transparent; border: none; border-bottom: none;
  padding: 0 0 3px; display: block; width: fit-content;
}
.ad-slot {
  background: var(--grey-lt); border: 1px solid var(--border);
  border-radius: var(--radius); min-height: 80px;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Responsive News Strip ──────────────────────────────── */
@media (max-width: 900px) { .news-strip-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .news-strip-grid { grid-template-columns: 1fr; } }
