/* Apothekenkurier.de, Magazin-Layout nach altem Aufbau: grauer Kopf, weisse Navigation, rote Akzente, schwarze Rubrikbalken */
:root {
  --rot: #e30613;
  --rot-dunkel: #b3050f;
  --schwarz: #20201e;
  --grau-kopf: #585858;
  --grau-text: #444;
  --grau-hell: #f3f3f3;
  --linie: #e2e2e2;
  --text: #2b2b2b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Kopf */
.kopf { background: var(--grau-kopf); color: #fff; }
.kopf-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-top { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; font-weight: 400; margin-bottom: 5px; }
.logo-main { font-size: 30px; font-weight: 700; letter-spacing: .3px; }
.logo-main i { font-style: normal; color: var(--rot); }
.tagline { margin: 6px 0 0 64px; font-size: 13px; color: #ddd; }
.kopf-rechts { text-align: right; line-height: 1.3; }
.kopf-label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #ccc; }
.kopf-nummer { display: block; color: #fff; font-size: 22px; font-weight: 700; }
.kopf-klein { display: block; font-size: 12px; color: #ccc; }

/* Navigation */
.hauptnav { background: #fff; border-bottom: 1px solid var(--linie); }
.hauptnav .wrap { display: flex; justify-content: space-between; align-items: stretch; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.hauptnav li a { display: block; padding: 12px 16px; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--grau-text); border-right: 1px solid var(--linie); }
.hauptnav li:first-child a { border-left: 1px solid var(--linie); }
.hauptnav li a:hover { background: var(--grau-hell); text-decoration: none; }
.hauptnav li.aktiv a { background: var(--rot); color: #fff; }
.navtoggle, .navlabel { display: none; }

/* Hero */
.hero { margin: 18px 0 26px; }
.hero a { display: block; position: relative; background: var(--schwarz); overflow: hidden; }
.hero img { width: 100%; aspect-ratio: 1200 / 467; object-fit: cover; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 28px 22px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.hero-label { display: inline-block; background: var(--rot); padding: 3px 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.hero-titel { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; }

/* Rubrikbalken */
.balken { display: inline-block; margin: 0; padding: 6px 14px; background: var(--schwarz); color: #fff; font-size: 17px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; }
.balken.rot { background: var(--rot); }
.sektion > .balken, .titelblock > .balken, h1.balken { position: relative; }
.sektion, .titelblock { margin-bottom: 36px; }
.sektion::before, .titelblock::before { content: none; }
.sektion > .balken + *, .titelblock > .balken + * { border-top: 3px solid var(--schwarz); padding-top: 18px; }
.titelblock > .balken + * { border-top-color: var(--rot); }
h1.balken { display: inline-block; font-size: 20px; }
h1.balken + .rubrik-intro { border-top: 3px solid var(--schwarz); padding-top: 14px; margin-top: 0; }

/* Layout */
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.haupt { min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Titelblock */
.titel-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.titel-art h3 { margin: 0 0 8px; font-size: 20px; }
.titel-art h3 a { color: var(--text); }
.titel-art p { margin: 0 0 8px; color: var(--grau-text); }
.titel-side { list-style: none; margin: 0; padding: 0; }
.titel-side li { margin-bottom: 14px; }
.titel-side a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--linie); }
.titel-side a:hover { text-decoration: none; border-color: var(--rot); }
.side-titel { display: inline-block; background: var(--schwarz); color: #fff; font-weight: 500; font-size: 14px; padding: 7px 12px; }
.mehr { color: var(--rot-dunkel); font-size: 14px; white-space: nowrap; }

/* Karten */
.karte { display: flex; flex-direction: column; }
.karte-bild img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 12px; }
.karte h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.karte h3 a { color: var(--rot-dunkel); }
.karte p { margin: 0 0 12px; font-size: 14.5px; color: var(--grau-text); flex: 1; }
.karte-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kat-tag { font-size: 12px; color: #6a6a6a; background: var(--grau-hell); padding: 5px 10px; }
.kat-tag::before { content: "▪ "; color: var(--rot); }
.btn { display: inline-block; background: var(--rot); color: #fff; font-size: 13px; padding: 8px 16px; }
.btn:hover { background: var(--rot-dunkel); text-decoration: none; }

/* Sidebar */
.seite .box { margin-bottom: 28px; }
.seite .box .balken { display: block; }
.seite .box img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.kategorien { background: var(--rot); color: #fff; padding: 14px 16px 6px; }
.kategorien h2 { margin: 0 0 6px; font-size: 16px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kategorien ul { list-style: none; margin: 0; padding: 0; }
.kategorien li { border-top: 1px solid rgba(255,255,255,.6); }
.kategorien li a { display: block; padding: 10px 16px; color: #fff; font-size: 15px; }
.kategorien li a:hover { background: rgba(0,0,0,.12); text-decoration: none; }

/* Artikel */
.brotkrumen { font-size: 13px; color: #777; margin: 18px 0 10px; }
.artikel h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.vorspann { font-size: 18px; color: var(--grau-text); margin: 0 0 20px; }
.artikel-bild { margin: 0 0 24px; }
.artikel-bild img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.text { font-size: 17px; max-width: 72ch; }
.text h2 { font-size: 22px; margin: 32px 0 10px; color: var(--rot-dunkel); }
.text h3 { font-size: 18px; margin: 24px 0 8px; }
.text p { margin: 0 0 16px; }
.text ul { margin: 0 0 16px; padding-left: 22px; }
.kasten { border-left: 5px solid var(--rot); background: var(--grau-hell); padding: 16px 20px; margin: 28px 0; }
.kasten h3 { margin: 0 0 8px; font-size: 16px; text-transform: uppercase; letter-spacing: .5px; color: var(--rot-dunkel); }
.kasten ul { margin: 0; padding-left: 20px; }
.kasten li { margin-bottom: 4px; }
.autor { font-size: 14px; color: #777; border-top: 1px solid var(--linie); padding-top: 12px; margin: 30px 0 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hinweis { background: var(--grau-hell); border-left: 5px solid var(--rot); padding: 16px 20px; margin: 20px 0; }
.rubrik-intro { color: var(--grau-text); margin-bottom: 24px; }

/* Fuss */
.fuss { background: var(--grau-kopf); color: #fff; margin-top: 30px; }
.fuss a { color: #fff; }
.fuss-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 30px; padding: 28px 16px; align-items: center; }
.fuss-logo .tagline { color: #ddd; }
.fuss-links { list-style: none; margin: 0; padding: 0; }
.fuss-links li { padding: 4px 0; }
.fuss-links li::before { content: "▪ "; color: var(--rot); }
.fuss-notruf { font-size: 14px; line-height: 1.4; }
.fuss-notruf p { margin: 0 0 10px; }
.fuss-notruf strong { text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.fuss-notruf a { color: #ffd84d; font-weight: 700; }
.fuss-notruf small { color: #ddd; }
.fuss-badge { width: 96px; height: 96px; border-radius: 50%; background: var(--rot); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; transform: rotate(-12deg); line-height: 1.25; }
.fuss-badge:hover { text-decoration: none; background: var(--rot-dunkel); }
.fuss-zeile { background: var(--schwarz); font-size: 12px; color: #bbb; }
.fuss-zeile .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.nach-oben { color: #bbb; }

/* Mobil */
@media (max-width: 900px) {
  .zweispaltig { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .fuss-inner { grid-template-columns: 1fr 1fr; }
  .fuss-badge { justify-self: end; }
}
@media (max-width: 640px) {
  .kopf-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .kopf-rechts { text-align: left; }
  .kopf-nummer { font-size: 18px; }
  .tagline { margin-left: 0; }
  .hauptnav .wrap { flex-wrap: wrap; padding: 0; }
  .navlabel { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 100%; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--linie); }
  .navlabel span { display: block; width: 24px; height: 3px; background: var(--grau-kopf); }
  .navlabel::after { content: "Menü"; position: absolute; left: 56px; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--grau-text); }
  .navlabel { position: relative; }
  .hauptnav ul { display: none; flex-direction: column; width: 100%; }
  .navtoggle:checked ~ ul { display: flex; }
  .hauptnav li a, .hauptnav li:first-child a { border: 0; border-bottom: 1px solid var(--linie); }
  .hero-titel { font-size: 22px; }
  .hero-text { padding: 26px 16px 14px; }
  .titel-grid, .grid2, .grid3 { grid-template-columns: 1fr; }
  .titel-side a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .artikel h1 { font-size: 26px; }
  .text { font-size: 16.5px; }
  .fuss-inner { grid-template-columns: 1fr; }
  .fuss-badge { justify-self: start; transform: none; }
}
