/* =============================================
   hiv-positiv.de – Hauptstylesheet
   Design: seriös, klar, rot/dunkelgrau
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --rot:       #CC0000;
  --rot-dunkel:#A00000;
  --rot-hell:  #fdf2f2;
  --text:      #1a1a1a;
  --text-hell: #4a4a4a;
  --border:    #e0e0e0;
  --bg:        #ffffff;
  --bg-grau:   #f7f7f7;
  --max:       1100px;
  --radius:    4px;
  --font:      'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- LINKS ---- */
a { color: var(--rot); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--rot);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-hiv  { color: var(--rot); }
.logo-rest { color: var(--text); }

/* Nav Desktop */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.aktiv {
  background: var(--rot);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* =============================================
   HERO / SEITENINTRO
   ============================================= */
.page-hero {
  background: var(--rot);
  color: #fff;
  padding: 56px 24px 48px;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.page-hero .lead {
  font-size: 18px;
  font-weight: 300;
  max-width: 680px;
  opacity: 0.92;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-hell);
}
.breadcrumb a { color: var(--text-hell); }
.breadcrumb span { margin: 0 6px; }

/* =============================================
   HAUPTINHALT
   ============================================= */
.main-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* Zweispaltig mit Sidebar */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Fließtext */
.prose h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 48px 0 16px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rot);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--text);
}

.prose p {
  margin-bottom: 20px;
  color: var(--text);
}

.prose ul, .prose ol {
  margin: 0 0 20px 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong { font-weight: 600; }

.prose a { color: var(--rot); }

/* =============================================
   INFOBOX / HINWEIS
   ============================================= */
.hinweis {
  background: var(--rot-hell);
  border-left: 3px solid var(--rot);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  font-size: 15px;
  color: var(--text-hell);
}

.hinweis strong { color: var(--text); display: block; margin-bottom: 4px; }

/* =============================================
   FAQ AKKORDEON
   ============================================= */
.faq-block {
  margin: 48px 0;
}

.faq-block h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rot);
}

details {
  border-bottom: 1px solid var(--border);
}

details:first-of-type { border-top: 1px solid var(--border); }

summary {
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 22px;
  color: var(--rot);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details .faq-answer {
  padding: 0 0 20px;
  color: var(--text-hell);
  line-height: 1.7;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--bg-grau);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rot);
  margin-bottom: 16px;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box ul li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 14.5px;
}

.sidebar-box ul li:last-child { border-bottom: none; }

.sidebar-box a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}

.sidebar-box a:hover { color: var(--rot); }

.sidebar-box p {
  font-size: 14.5px;
  color: var(--text-hell);
  line-height: 1.6;
}

/* =============================================
   KARTEN-GRID (Startseite)
   ============================================= */
.themen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.themen-karte {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.themen-karte:hover {
  border-color: var(--rot);
  box-shadow: 0 2px 12px rgba(204,0,0,0.08);
  color: var(--text);
  text-decoration: none;
}

.themen-karte .karte-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rot);
  margin-bottom: 8px;
}

.themen-karte h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.themen-karte p {
  font-size: 14px;
  color: var(--text-hell);
  line-height: 1.55;
}

/* =============================================
   TRENNLINIE MIT TEXT
   ============================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 32px;
  color: var(--text-hell);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 32px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}
.footer-logo .logo-hiv  { color: #ff6666; }
.footer-logo .logo-rest { color: #fff; }

.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-bottom a:hover { color: #fff; }

.footer-medienplus {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.footer-medienplus a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.footer-medienplus a:hover { color: #fff; }

/* =============================================
   RESPONSIV
   ============================================= */
@media (max-width: 600px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .page-hero { padding: 40px 20px 36px; }
  .main-content { padding: 36px 20px 56px; }
  .header-inner { padding: 0 20px; }
}

@media (min-width: 601px) {
  .mobile-nav { display: none !important; }
}

/* =============================================
   UTILITY
   ============================================= */
.text-rot   { color: var(--rot); }
.text-klein { font-size: 14px; color: var(--text-hell); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
th {
  background: var(--rot);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
tr:nth-child(even) td { background: var(--bg-grau); }