/* Atemwegsinfekte-Seite – Apotheke Aktuell
   Angeglichen an das Portal-Design der Startseite (assets/css/home.css),
   der Pollenflug- und der Luftqualitäts-Seite: gleiche Farben, gleicher
   Header/Footer, gleiche Card- und Button-Optik. Mobile-first, ohne externe
   Abhängigkeiten, ohne JavaScript. */

:root {
  --petrol: #0d6e6e;
  --petrol-dark: #0a5757;
  --petrol-light: #e3f0ef;
  --green: #2f7d54;
  --red-cross: #c41e3a;
  --ink: #1f2a2a;
  --ink-soft: #4a5757;
  --bg: #ffffff;
  --bg-muted: #f4f6f7;
  --border: #e2e8e8;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 42, 42, 0.06), 0 4px 16px rgba(15, 42, 42, 0.04);
  --maxw: 1120px;

  /* Trendfarben – ruhige Töne, Text steht immer zusätzlich daneben. */
  --trend-up-bg: #f7e0cf; --trend-up-bd: #e7bd9f; --trend-up-fg: #7a4217;
  --trend-down-bg: #dcefe4; --trend-down-bd: #b7dcc7; --trend-down-fg: #1d5a3a;
  --trend-flat-bg: #eef1f1; --trend-flat-bd: #dbe2e2; --trend-flat-fg: #4a5757;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--petrol-dark); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Header (wie Startseite) ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  flex-shrink: 0;
}

.brand__mark {
  display: block;
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.brand__name-primary {
  font-size: 1.5rem;
  font-weight: 800;
  color: #064f54;
}

.brand__name-secondary {
  font-size: 1.22rem;
  font-weight: 450;
  color: #35a9a0;
  letter-spacing: -0.01em;
}

.brand__claim {
  margin-top: 0.08rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}

@media (min-width: 900px) {
  .brand__mark {
    width: 56px;
  }

  .brand__name-primary {
    font-size: 1.58rem;
  }

  .brand__name-secondary {
    font-size: 1.28rem;
  }

  .brand__claim {
    font-size: 0.74rem;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav ul {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .brand {
    column-gap: 0.4rem;
  }

  .brand__mark {
    width: 44px;
  }

  .brand__name-primary {
    font-size: 1.2rem;
  }

  .brand__name-secondary {
    font-size: 1.02rem;
  }

  .brand__claim {
    font-size: 0.64rem;
  }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  color: var(--petrol-dark);
}

.site-nav a:hover {
  color: var(--petrol);
  border-bottom-color: var(--petrol-light);
}

.site-nav a[aria-current="page"] {
  color: var(--petrol);
  font-weight: 600;
  border-bottom-color: var(--petrol);
}

/* ---------- Layout ---------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* ---------- Hero (Band über volle Breite, wie Startseite) ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 90% at 78% 10%, rgba(255, 255, 255, 0.75) 0%, transparent 60%),
    linear-gradient(170deg, #dcecea 0%, #e9f3f2 45%, #f4f9f8 100%);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.75rem, 4.5vw, 3rem) 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 820px) {
  .hero__inner {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
  }
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 4.2vw, 2.3rem);
  line-height: 1.15;
  color: var(--petrol-dark);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.content-meta {
  margin: -0.75rem 0 1.15rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.content-meta a {
  color: var(--petrol);
  font-weight: 500;
  text-decoration: none;
}

.content-meta a:hover {
  text-decoration: underline;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-resp {
  width: min(100%, 260px);
  height: auto;
  overflow: visible;
}

.hero-resp__ring {
  fill: none;
  stroke: rgba(13, 110, 110, 0.16);
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
}

.hero-resp__disc {
  fill: rgba(255, 255, 255, 0.75);
  stroke: rgba(13, 110, 110, 0.12);
  stroke-width: 1;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9aa7a7; }

.btn {
  display: inline-block;
  background: var(--petrol);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.btn:hover, .btn:focus { background: var(--petrol-dark); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.25rem;
}
.card h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.section-intro {
  margin-top: 0;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Kennzahl-Karten ---------- */
.metric-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(15, 42, 42, 0.04);
}

.metric-card--empty {
  color: var(--ink-soft);
  background: var(--bg-muted);
  border-style: dashed;
}

.metric-card__label {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.metric-card__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--petrol);
  font-variant-numeric: tabular-nums;
}

.metric-card__unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 0.3rem;
}

.metric-card__week {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.metric-card__note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.2rem 0 0;
}

.trend-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 2px 9px;
  border: 1px solid transparent;
}
.trend-badge--up { background: var(--trend-up-bg); border-color: var(--trend-up-bd); color: var(--trend-up-fg); }
.trend-badge--down { background: var(--trend-down-bg); border-color: var(--trend-down-bd); color: var(--trend-down-fg); }
.trend-badge--flat { background: var(--trend-flat-bg); border-color: var(--trend-flat-bd); color: var(--trend-flat-fg); }

/* ---------- Quellen-/Stand-Hinweis ---------- */
.source {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.source p { margin: 4px 0; }
.source__note { font-style: italic; }

/* ---------- Prosa / SEO-Text ---------- */
.prose { padding: 0.25rem 0.15rem; }
.prose h2 { color: var(--ink); font-size: 1.25rem; letter-spacing: -0.01em; }
.prose h3 { color: var(--petrol-dark); margin-top: 1.6em; font-size: 1.02rem; }
.prose p { max-width: 70ch; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 14px;
  margin-bottom: 10px;
  background: var(--bg);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
  color: var(--petrol-dark);
}
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.faq p { margin: 0 0 12px; color: var(--ink-soft); }

/* ---------- Trust / E-E-A-T ---------- */
.trust { border-left: 4px solid var(--green); }
.trust__list { margin: 8px 0 0; padding-left: 1.2em; }
.trust__list li { margin-bottom: 6px; color: var(--ink-soft); }

/* ---------- Medizinischer Hinweis ---------- */
.medical-notice {
  background: var(--petrol-light);
  border: 1px solid #cfe2e1;
  border-left: 4px solid var(--petrol);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}
.medical-notice p { margin: 0; color: #29413f; font-size: 0.95rem; }

.page__note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #8a9797;
  text-align: center;
}

/* ---------- Footer (kompakt, wie Startseite) ---------- */
.site-footer {
  background: var(--ink);
  color: #dce3e3;
  margin-top: 2.5rem;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

.site-footer--compact .site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.site-footer__nav a {
  color: #a8d4d4;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  color: #b8c5c5;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header__inner { gap: 0.75rem 1.25rem; }
  .site-nav { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
