/*
 * Server-rendered landing pages: /aerzte, /aerzte/{city},
 * /aerzte/{specialty}/{city}, and the practice profiles /praxis/{slug}-{id}
 * (api/registry/seo.js).
 *
 * Loaded after style.css and search.css and only adds what those pages need
 * on top: a header that works without JavaScript, the breadcrumb, the intro
 * paragraph and the specialty list. Tokens (--teal, --forest, --line, ...)
 * come from style.css.
 *
 * Hosting serves *.css as immutable for a year (firebase.json), so the pages
 * link this file as /aerzte.css?v=N: bump N in seo.js whenever it changes.
 */

/* ---------- header without the JS menu ---------- */

/*
 * style.css hides .site-nav below 860px until script.js opens it. These pages
 * ship no script, so the nav stays inline and shows only the two links that
 * matter on a phone.
 */
@media (max-width: 860px) {
  .seo-page .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: auto;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .seo-page .site-nav > a { display: none; }
  .seo-page .site-nav > a.seo-nav-primary {
    display: block;
    padding: 0;
    border: 0;
    font-size: 14px;
  }
  .seo-page .header-actions { display: flex; margin: 0; }
}

/* ---------- breadcrumb ---------- */

.seo-breadcrumb { padding-top: 20px; font-size: 13px; color: var(--ink-soft); }
.seo-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.seo-breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--ink-soft); }
.seo-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--teal); text-decoration: underline; }
.seo-breadcrumb [aria-current] { color: var(--ink); }

.seo-page .results-head { padding-top: 12px; }

/* ---------- copy ---------- */

.seo-intro {
  max-width: 72ch;
  margin: 0 0 20px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.seo-subhead {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--forest);
}

.seo-more { display: flex; justify-content: center; margin: -24px 0 40px; }

.seo-state a { color: var(--teal); }

.seo-count { color: var(--ink-soft); font-size: 13px; font-weight: 600; }

.seo-page .search-support .specialty-cloud { margin-bottom: 28px; }

/* ---------- specialty list on the city page ---------- */

.seo-specialty-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.seo-specialty-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.seo-specialty-list a:hover { border-color: var(--teal); }

.seo-hub h2 { margin-top: 24px; }
.seo-hub h2:first-child { margin-top: 0; }

/* ---------- practice profile: /praxis/{slug}-{id} ---------- */

.practice-head { margin: 12px 0 20px; }
.practice-head:hover { border-color: var(--line); }
.practice-head.is-bookable:hover { border-color: var(--line); border-left-color: var(--teal); }

.practice-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  color: var(--forest);
  overflow-wrap: anywhere;
}

.tag.tag-verified { background: var(--teal); border-color: var(--teal); color: var(--paper); }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.practice-panel {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.practice-panel h2,
.practice-claim h2,
.practice-report h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--forest);
}

.practice-panel p { margin: 10px 0 0; }
.practice-panel address { font-style: normal; line-height: 1.6; color: var(--ink); }
.practice-panel a,
.practice-report a,
.practice-claim p a:not(.button) { color: var(--teal); overflow-wrap: anywhere; }

.practice-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  line-height: 1.5;
}
.practice-contact dt { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.practice-contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.practice-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.practice-hours th {
  padding: 5px 12px 5px 0;
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.practice-hours td { padding: 5px 0; font-variant-numeric: tabular-nums; }
.practice-hours tr + tr th,
.practice-hours tr + tr td { border-top: 1px solid var(--line); }

.practice-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

.practice-raw-hours {
  padding: 2px 6px;
  font-size: 13px;
  background: var(--canvas);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.practice-claim {
  margin: 0 0 20px;
  padding: 20px 22px;
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: 16px;
}
.practice-claim p { max-width: 72ch; margin: 0 0 14px; line-height: 1.6; color: var(--ink); }
.practice-claim p:last-child { margin-bottom: 0; }

.practice-report { margin: 0 0 24px; font-size: 14px; color: var(--ink-soft); }
.practice-report h2 { font-size: 16px; }
.practice-report p { max-width: 72ch; margin: 0 0 8px; line-height: 1.6; }
.practice-report ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }

.search-support .practice-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}
.practice-related li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.practice-related a { color: var(--forest); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.practice-related a:hover { color: var(--teal); text-decoration: underline; }
.practice-related-meta { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

.practice-all { margin: 0 0 32px; }
