/* Kliniken-Seite – Apotheke Aktuell */

: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.65rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  flex-shrink: 0;
  min-width: 0;
}

.brand__logo-full {
  display: block;
  width: min(240px, 100%);
  height: auto;
  flex-shrink: 0;
}

.brand__claim {
  font-size: 0.66rem;
  line-height: 1.2;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  max-width: 240px;
}

@media (min-width: 900px) {
  .brand__logo-full {
    width: 260px;
  }

  .brand__claim {
    font-size: 0.68rem;
    max-width: 260px;
  }
}

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

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

@media (max-width: 480px) {
  .brand__logo-full {
    width: min(200px, 78vw);
  }

  .brand__claim {
    font-size: 0.6rem;
    max-width: 200px;
  }
}

.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-clinic {
  width: min(100%, 260px);
  height: auto;
  overflow: visible;
}

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

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

.hero-clinic__cross {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 5;
  stroke-linecap: round;
}

.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 ---------- */
.overview-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 900px) {
  .overview-grid { grid-template-columns: repeat(4, 1fr); }
}

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

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

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

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

/* ---------- Suche ---------- */
.clinic-search {
  margin: 1.5rem 0 1rem;
  max-width: 42rem;
}

.clinic-search__label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.clinic-search__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}

.clinic-search__input:focus {
  outline: 3px solid rgba(13, 110, 110, 0.25);
  border-color: var(--petrol);
}

.clinic-search__hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.clinic-list-status {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- Klinikliste ---------- */
.clinics-list__title {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.clinics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.clinic-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: var(--bg-muted);
}

.clinic-card[hidden] {
  display: none;
}

.clinic-card--empty,
.clinic-card--no-match {
  color: var(--ink-soft);
  background: var(--bg);
  border-style: dashed;
  text-align: center;
  padding: 1.5rem 1.1rem;
}

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

.clinic-card__address {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.clinic-card__link-wrap {
  margin-top: 0.75rem !important;
}

.clinic-card__link {
  font-weight: 600;
  color: var(--petrol-dark);
  text-decoration: none;
}

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

/* ---------- Pagination ---------- */
.clinic-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  margin-top: 1.25rem;
  min-height: 2.75rem;
}

.clinic-pagination[hidden] {
  display: none;
}

.clinic-pagination__btn {
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--petrol-dark);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.clinic-pagination__btn:hover:not(:disabled) {
  background: var(--petrol-light);
  border-color: #b8d4d3;
}

.clinic-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.clinic-pagination__info {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  min-width: 8.5rem;
  text-align: center;
}

@media (max-width: 480px) {
  .clinic-pagination {
    gap: 0.45rem 0.6rem;
  }

  .clinic-pagination__btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
  }

  .clinic-pagination__info {
    width: 100%;
    order: -1;
    min-width: 0;
  }
}

/* ---------- 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; }
}
