/* ============================================================
   Patientenservice – zentrales Stylesheet
   Farbwelt aus der Praxis-Grafik (Element 1.svg):
   Dunkelblau #08678e · Mittelblau #3380a6 · Hellblau #a1d1da
   ============================================================ */

:root {
  --farbe-primaer: #08678e;
  --farbe-primaer-dunkel: #0d3e59;
  --farbe-akzent: #3380a6;
  --farbe-akzent-hell: #a1d1da;
  --farbe-text: #2c2e31;
  --farbe-text-gedeckt: #50555a;
  --farbe-flaeche: #f0f2f2;
  --farbe-rand: #ccced6;
  --farbe-weiss: #ffffff;

  --radius: 0;  /* eckig: scharfe Kanten als Ausdruck von Präzision */
  --schatten: 0 1px 3px rgba(13, 62, 89, 0.12);
  --inhalt-breite: 42rem;
}

/* ---------- Basis ---------- */

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--farbe-text);
  background: var(--farbe-weiss);
}

/* Seiten-Wrapper: auf Mobil vollflächig, auf Desktop zentrierte Karte
   (siehe Media-Query unten) */
.seite {
  background: var(--farbe-weiss);
}

main {
  max-width: var(--inhalt-breite);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--farbe-primaer-dunkel);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--farbe-primaer-dunkel);
  margin: 2rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--farbe-primaer);
}

/* Hover: Unterstreichung entfernen – gilt für alle unterstrichenen Links */
a:hover {
  text-decoration: none;
}

/* Klar sichtbarer Fokusring für alle interaktiven Elemente
   (Tastatur-Navigation / Barrierefreiheit) */
a:focus-visible,
.button:focus-visible,
.kachel:focus-visible {
  outline: 3px solid var(--farbe-primaer-dunkel);
  outline-offset: 2px;
}

.einleitung {
  color: var(--farbe-text-gedeckt);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

/* ---------- Kopfbereich ---------- */

.kopf {
  border-bottom: 3px solid var(--farbe-akzent-hell);
  background: var(--farbe-weiss);
}

.kopf-inhalt {
  max-width: var(--inhalt-breite);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

/* Logo + Name als ein gemeinsamer Link zur Startseite */
.kopf-marke {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.kopf-logo {
  width: 88px;
  height: auto;
  flex-shrink: 0;
}

.kopf-name {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--farbe-primaer-dunkel);
  line-height: 1.3;
}

.kopf-marke:hover .kopf-name {
  text-decoration: underline;
}

/* "Zentrum für zahnärztliche Implantologie" nicht mehr sichtbar im Kopf,
   bleibt aber für Screenreader/SEO im DOM */
.kopf-zusatz {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Service-Kacheln ---------- */

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

.kachel {
  display: block;
  padding: 1.25rem 1.25rem 1.125rem;
  background: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--schatten);
}

.kachel:hover,
.kachel:focus-visible {
  border-color: var(--farbe-akzent);
  background: #e9f3f6;
}

.kachel-titel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--farbe-primaer);
  margin-bottom: 0.25rem;
}

.kachel-titel::after {
  content: "›";
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--farbe-akzent);
}

.kachel-text {
  margin: 0;
  color: var(--farbe-text-gedeckt);
  font-size: 0.9375rem;
}

/* ---------- Buttons ---------- */

.button {
  display: block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: var(--farbe-primaer);
  color: var(--farbe-weiss);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.button:hover,
.button:focus-visible {
  background: var(--farbe-primaer-dunkel);
}

.button--sekundaer {
  background: var(--farbe-weiss);
  color: var(--farbe-primaer);
  border: 2px solid var(--farbe-primaer);
}

.button--sekundaer:hover,
.button--sekundaer:focus-visible {
  background: var(--farbe-flaeche);
}

.button-gruppe {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* ---------- Adressblock ---------- */

.adresse {
  font-size: 1.0625rem;
  line-height: 1.7;
  padding: 1rem 1.25rem;
  background: var(--farbe-flaeche);
  border-radius: var(--radius);
}

/* ---------- Kennzahl ---------- */

.kennzahl {
  margin: 1.5rem 0;
  padding: 1.5rem 1.25rem;
  background: var(--farbe-primaer-dunkel);
  color: var(--farbe-weiss);
  border-radius: var(--radius);
  text-align: center;
}

.kennzahl strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--farbe-akzent-hell);
}

.kennzahl span {
  font-size: 1.0625rem;
}

/* ---------- Leistungsgruppen ---------- */

.leistungs-gruppen {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.leistungs-gruppe {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
}

.leistungs-gruppe h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--farbe-primaer-dunkel);
}

.leistungs-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leistungs-liste li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--farbe-rand);
  font-size: 0.9875rem;
  line-height: 1.5;
}

.leistungs-liste li:last-child {
  border-bottom: none;
}

.leistungs-liste li::before {
  content: "";
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  /* vertikal mittig zur ersten Textzeile:
     (Zeilenhöhe 1.5em − Marker 0.375em) / 2 ≈ 0.56em */
  margin-top: 0.56em;
  background: var(--farbe-akzent);
}

.leistungs-liste--frei li {
  border-bottom: none;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* ---------- Abgangshinweis ---------- */

.abgang-hinweis {
  font-size: 0.875rem;
  color: var(--farbe-text-gedeckt);
}

/* ---------- Anfahrtsskizze ---------- */

.skizze {
  margin: 1.75rem 0 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--farbe-weiss);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
}

.skizze img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Hinweiskasten ---------- */

.hinweis {
  padding: 1rem 1.25rem;
  background: #e9f3f6;
  border-left: 4px solid var(--farbe-akzent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
  color: var(--farbe-text-gedeckt);
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.rechtstext {
  font-size: 1rem;
}

.rechtstext h2 {
  font-size: 1.1875rem;
  margin-top: 2rem;
}

.rechtstext h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--farbe-primaer-dunkel);
  margin: 1.25rem 0 0.25rem;
}

.rechtstext ul {
  padding-left: 1.25rem;
}

.rechtstext li {
  margin-bottom: 0.35rem;
}

/* Platzhalter im Fließtext sichtbar machen */
.platzhalter {
  background: #fff3cd;
  padding: 0.05em 0.35em;
  font-style: normal;
}

/* ---------- Fußbereich ---------- */

.fuss {
  border-top: 1px solid var(--farbe-rand);
  background: var(--farbe-flaeche);
}

.fuss-inhalt {
  max-width: var(--inhalt-breite);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--farbe-text-gedeckt);
}

/* ---------- „Nach oben"-Button (fest, ohne JavaScript) ---------- */

.nach-oben {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--farbe-primaer);
  color: var(--farbe-weiss);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(13, 62, 89, 0.35);
}

.nach-oben:hover,
.nach-oben:focus-visible {
  background: var(--farbe-primaer-dunkel);
}

/* per JavaScript nur bei scrollbarem Inhalt sichtbar */
.nach-oben[hidden] {
  display: none;
}

.fuss-navigation {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* alle Links in der Fußzeile (Navigation + Telefonnummer):
   dauerhaft unterstrichen, auch beim Hovern */
.fuss-inhalt a {
  color: var(--farbe-text-gedeckt);
  text-decoration: underline;
}

/* Fußzeile: einziger Hover-Effekt ist das Entfernen der Unterstreichung */
.fuss-inhalt a:hover {
  text-decoration: none;
}

.fuss-navigation a {
  display: inline-block;
  padding: 0.4rem 0;
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  .kacheln {
    grid-template-columns: 1fr 1fr;
  }

  .button-gruppe {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

  .leistungs-gruppen {
    grid-template-columns: 1fr 1fr;
  }

  /* gleich lange Karten (Grid-Standard "stretch") und einheitlicher
     Listenstart: die Überschrift reserviert Platz für zwei Zeilen, damit
     die Listen auch bei umbrechender Überschrift auf gleicher Höhe beginnen */
  .leistungs-gruppe h2 {
    min-height: 2.6em;
  }
}

/* ---------- Desktop: ganze Seite als zentrierte Karte ---------- */

@media (min-width: 768px) {
  body {
    background: #e4e7ea;
  }

  .seite {
    max-width: var(--inhalt-breite);
    margin: 2.5rem auto;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(13, 62, 89, 0.14);
  }

  /* innerhalb der Karte spannen Kopf/Inhalt/Fuß über die volle Kartenbreite,
     die seitlichen Ränder übernimmt die Karte selbst */
  .kopf-inhalt,
  main,
  .fuss-inhalt {
    max-width: none;
  }
}
