/* Startseite – Apotheke Aktuell
   Modernes Gesundheits-/Apothekenportal, Petrol/Grün, ohne externe Abhängigkeiten.
   Wird auch von den statischen Info-Seiten (/impressum/ etc.) genutzt. */

:root {
  --petrol: #0d6e6e;
  --petrol-dark: #0a5757;
  --petrol-light: #e3f0ef;
  --green: #2f7d54;
  --red-cross: #c41e3a;
  --amber: #f59e0b;
  --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;
}

* { 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,
input:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  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 ---------- */
.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.85rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand__mark {
  flex-shrink: 0;
  line-height: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--petrol-dark);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.brand__name-line--accent {
  color: var(--petrol);
}

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

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

.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;
}

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

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

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--petrol);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-pill:hover { background: var(--petrol-dark); }

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

.section {
  margin-top: 2.5rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.15rem;
}

.section__title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section__more {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--petrol);
}

.section__more:hover { text-decoration: underline; }

/* ---------- Hero (full-bleed band) ---------- */
.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(2rem, 5vw, 3.5rem) 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

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

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 4.8vw, 2.75rem);
  line-height: 1.12;
  color: var(--petrol-dark);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.08rem;
}

/* PLZ form: horizontal, prominent */
.plz-form {
  max-width: 34rem;
}

.plz-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.plz-form__field {
  position: relative;
  flex: 1;
  min-width: 12rem;
  display: flex;
}

.plz-form__field-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa0a0;
  pointer-events: none;
}

.plz-form__input {
  flex: 1;
  width: 100%;
  font-size: 1.05rem;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(15, 42, 42, 0.05);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.plz-form__input::placeholder { color: #93a5a5; }

.plz-form__btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2.1rem;
  border: none;
  border-radius: 10px;
  background: var(--petrol);
  color: #fff;
  cursor: pointer;
}

.plz-form__btn:hover { background: var(--petrol-dark); }

.plz-form__hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.plz-form__hint svg {
  flex-shrink: 0;
  color: var(--petrol);
}

/* Hero visual: echte Deutschlandkarte (Wikimedia) mit Pin- und Icon-Overlay */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-map {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-map__frame {
  position: relative;
  display: block;
  width: min(100%, 296px);
}

.hero-map__frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(13, 110, 110, 0.18));
}

.hero-map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Nur die Marker-Links fangen Klicks – die Karte darunter bleibt frei. */
.hero-map__marker a {
  pointer-events: auto;
  text-decoration: none;
  outline: none;
  cursor: pointer;
}

/* Unsichtbare, vergrößerte Klickfläche um den Punkt */
.hero-map__hit {
  fill: transparent;
  stroke: none;
}

.hero-map__dot {
  fill: var(--petrol);
  stroke: #fff;
  stroke-width: 3.5;
  transition: fill 0.15s ease;
}

.hero-map__marker a:hover .hero-map__dot,
.hero-map__marker a:focus .hero-map__dot {
  fill: var(--petrol-dark);
}

/* Sichtbarer Tastaturfokus: Ring um den Punkt */
.hero-map__marker a:focus-visible .hero-map__hit {
  fill: rgba(13, 110, 110, 0.14);
  stroke: var(--petrol-dark);
  stroke-width: 3;
}

.hero-map__label {
  font-size: 22px;
  font-weight: 600;
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 5px;
}

.hero-map__marker a:hover .hero-map__label,
.hero-map__marker a:focus .hero-map__label {
  fill: var(--petrol-dark);
}

.hero-map__credit {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
  max-width: 34ch;
}

.hero-map__credit a {
  color: inherit;
}

/* ---------- Status cards ---------- */
.section--data {
  margin-top: -1.75rem;
  position: relative;
  z-index: 1;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 6 Karten (5 Daten-Kacheln + Ratgeber-Promo): ab 980px in 2 Reihen à 3. */
@media (min-width: 980px) {
  .data-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.stat-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.stat-card__icon {
  display: inline-flex;
  line-height: 0;
}

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

.stat-card__value--teaser {
  font-size: 1.35rem;
  padding: 0.2rem 0;
}

.stat-card__status {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--petrol);
}

.stat-card__note {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  flex: 1;
}

.stat-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--petrol);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  width: 100%;
}

.stat-card__link:hover { text-decoration: underline; }

/* UV level colors (value + status share the slug class) */
.stat-card__value.uv-niedrig,  .stat-card__status.uv-niedrig  { color: #2c7a3f; }
.stat-card__value.uv-mittel,   .stat-card__status.uv-mittel   { color: #b45309; }
.stat-card__value.uv-hoch,     .stat-card__status.uv-hoch     { color: #c2410c; }
.stat-card__value.uv-sehrhoch, .stat-card__status.uv-sehrhoch { color: #b91c1c; }
.stat-card__value.uv-extrem,   .stat-card__status.uv-extrem   { color: #7f1d1d; }
.stat-card__value.uv-na,       .stat-card__status.uv-na       { color: var(--ink-soft); }

/* Luftqualitätsindex-Farben (UBA-LQI 0 = sehr gut ... 4 = sehr schlecht) */
.stat-card__value.air-0,  .stat-card__status.air-0  { color: #2c7a3f; }
.stat-card__value.air-1,  .stat-card__status.air-1  { color: #5c7a1f; }
.stat-card__value.air-2,  .stat-card__status.air-2  { color: #b45309; }
.stat-card__value.air-3,  .stat-card__status.air-3  { color: #c2410c; }
.stat-card__value.air-4,  .stat-card__status.air-4  { color: #b91c1c; }
.stat-card__value.air-na, .stat-card__status.air-na { color: var(--ink-soft); }

/* Promo card (Gesundheitsratgeber) */
.promo-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 560px) and (max-width: 979px) {
  .promo-card { grid-column: span 2; }
}

.promo-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.promo-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.promo-card__art {
  align-self: flex-end;
  line-height: 0;
  margin: 0.25rem 0;
}

.data-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ---------- Ratgeber teasers (magazine look) ---------- */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
}

.teaser {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 42, 42, 0.04);
}

.teaser__media {
  flex: 0 0 96px;
  min-height: 100%;
}

.teaser__media--pollen {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55) 0 8px, transparent 9px),
    radial-gradient(circle at 65% 60%, rgba(255, 255, 255, 0.45) 0 6px, transparent 7px),
    radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.4) 0 5px, transparent 6px),
    linear-gradient(160deg, #a7c9a2 0%, #7ba877 55%, #5c8f61 100%);
}

.teaser__media--sun {
  background:
    radial-gradient(circle at 70% 25%, #fde68a 0 16px, rgba(253, 230, 138, 0.4) 24px, transparent 34px),
    linear-gradient(160deg, #bfdbea 0%, #dbeef5 50%, #f0d9ac 100%);
}

.teaser__media--heat {
  background:
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.5) 0 10px, transparent 12px),
    linear-gradient(160deg, #f3c6a0 0%, #e8a179 55%, #d97f57 100%);
}

.teaser__body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.teaser__tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
}

.teaser h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.teaser__body > p:not(.teaser__tag) {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex: 1;
}

.teaser a {
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Service CTA ---------- */
.service-cta {
  background: var(--petrol-light);
  border: 1px solid rgba(13, 110, 110, 0.15);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-cta__text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--petrol-dark);
}

.service-cta__text p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: var(--petrol);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  white-space: nowrap;
}

.btn:hover { background: var(--petrol-dark); color: #fff; }

.btn--small {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.5rem 1.05rem;
}

/* ---------- Footer (compact) ---------- */
.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__nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

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

/* ---------- Legal / info pages ---------- */
.legal-page {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.legal-page__back {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.legal-page__back a {
  text-decoration: none;
  font-weight: 500;
}

.legal-page__back a:hover {
  text-decoration: underline;
}

.legal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  max-width: 52rem;
}

.legal-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  color: var(--petrol-dark);
  line-height: 1.25;
}

.legal-content h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  color: var(--petrol-dark);
}

.legal-content p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  max-width: 65ch;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  font-weight: 500;
}

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

  .btn-pill { order: 2; }
  .site-nav { order: 3; width: 100%; }

  .hero h1 { max-width: none; }

  .plz-form__btn { flex: 1; }

  /* Karte mobil etwas kleiner – Labels kompakter, aber lesbar */
  .hero-map__frame {
    width: min(100%, 260px);
  }

  .hero-map__label {
    font-size: 19px;
  }
}
