/* ========================================================================
   hamburgsicherheit.de — Globale Styles
   Design: Richtung 4 (Warm & Lokal)
   ======================================================================== */

:root {
  /* Farben */
  --bg-primary: #ffffff;
  --bg-warm: #FAEEDA;
  --bg-warm-soft: #FAF4E8;
  --accent: #D85A30;
  --accent-dark: #993C1D;
  --text-primary: #4A1B0C;
  --text-secondary: #712B13;
  --text-muted: #8A5A3E;
  --border-soft: rgba(216, 90, 48, 0.15);
  --border-medium: rgba(216, 90, 48, 0.25);
  --white: #ffffff;

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 760px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typografie */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 18px; }
h2 { font-size: clamp(22px, 3.5vw, 30px); margin-bottom: 14px; margin-top: 40px; }
h3 { font-size: clamp(18px, 2.5vw, 22px); margin-bottom: 10px; margin-top: 28px; }

p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--border-medium);
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  background: var(--bg-warm);
  padding: 18px 0;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo:hover { color: var(--text-primary); text-decoration: none; }

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* Hero */
.hero {
  background: var(--bg-warm);
  padding: 48px 0 64px;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
}

.hero-intro {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Buttons / CTAs */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-warm);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--bg-warm);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-secondary);
  padding: 14px 6px;
  text-decoration: none;
  font-size: 15px;
}

.btn-secondary:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Trust-Strip */
.trust-strip {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.trust-row {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.trust-item svg {
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-warm {
  background: var(--bg-warm);
}

.section-kicker {
  font-size: 13px;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 10px;
}

.section-intro {
  max-width: 560px;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

/* Card-Grid */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card-white {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 17px;
  margin-top: 0;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Bezirke-Pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--bg-warm);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pill:hover {
  background: var(--accent);
  color: var(--bg-warm);
  text-decoration: none;
}

.pill-accent {
  background: var(--accent);
  color: var(--bg-warm);
  font-weight: 500;
}

.pill-accent:hover {
  background: var(--accent-dark);
  color: var(--bg-warm);
}

/* Artikel-Vorschau */
.article-preview {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.article-preview:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.article-preview-image {
  aspect-ratio: 16 / 9;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-preview-body {
  padding: 20px 22px;
}

.article-preview-meta {
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 8px;
}

.article-preview-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}

/* Finale CTA-Section */
.cta-section {
  background: var(--accent);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--bg-warm);
  max-width: 520px;
  margin: 0 auto 16px;
}

.cta-section p {
  color: rgba(250, 238, 218, 0.9);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
}

.cta-section .btn-primary {
  background: var(--bg-warm);
  color: var(--text-primary);
}

.cta-section .btn-primary:hover {
  background: var(--white);
  color: var(--text-primary);
}

/* Footer */
.site-footer {
  background: var(--bg-warm);
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Artikel-Body (für Ratgeber-Artikel) */
.article-body {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.article-body h1 {
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.article-meta-category {
  color: var(--accent-dark);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 20px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.article-body blockquote {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 22px;
  margin: 28px 0;
}

/* Info-Box (im Artikel) */
.info-box {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0;
}

.info-box-label {
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 8px;
}

.info-box h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.info-box p {
  font-size: 15px;
  margin: 0;
  color: var(--text-secondary);
}

/* Inline Lead-Form-Karte (Artikel & Bezirks-Seiten) */
.lead-card {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

.lead-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 12px;
}

.lead-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.lead-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-warm);
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  width: 100%;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-warm-soft);
}

.lead-form button {
  margin-top: 4px;
}

.lead-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 18px 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.breadcrumbs .sep {
  margin: 0 8px;
  color: var(--border-medium);
}

/* Stats-Box (Bezirks-Seiten) */
.stats-box {
  background: var(--white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 28px 0;
}

.stats-box-label {
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-number {
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Inhaltsverzeichnis */
.toc {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0;
}

.toc-label {
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 8px;
  font-size: 15px;
  position: relative;
}

.toc li::before {
  content: counter(toc) ". ";
  position: absolute;
  left: -18px;
  color: var(--accent);
  font-weight: 500;
}

.toc a {
  color: var(--text-primary);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Weiterlesen / Verwandte Artikel */
.related-section {
  background: var(--bg-warm);
  padding: 48px 0;
  margin-top: 60px;
}

/* ========================================================================
   Mobile Responsive
   ======================================================================== */
@media (max-width: 860px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }

  .hero { padding: 32px 0 44px; }
  .section { padding: 44px 0; }
  .cta-section { padding: 48px 0; }

  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-number { font-size: 30px; }

  .main-nav {
    display: none;
  }

  .nav-row {
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
  }

  .lead-form-row {
    grid-template-columns: 1fr;
  }

  .lead-card {
    padding: 24px 20px;
  }

  .trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-body {
    padding: 24px 20px 60px;
  }

  .article-body p,
  .article-body ul,
  .article-body ol {
    font-size: 16px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .breadcrumbs {
    font-size: 12px;
  }
}

.mobile-menu-toggle {
  display: none;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ========================================================================
   FAQ-Sektion (für Artikel mit Häufige-Fragen-Block)
   ======================================================================== */
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.faq-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.faq-item {
  background: var(--bg-warm-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 18px 22px;
  border: 1px solid var(--border-soft);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-medium);
  background: var(--bg-warm);
}

.faq-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  line-height: 1.45;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 12px;
}
