/* ==========================================================================
   main.css — muster-praxis.de
   Mobile-First, kein Framework, kein !important, keine hardcodierten Farben
   ========================================================================== */


/* ==========================================================================
   1. CSS Custom Properties / :root
   ========================================================================== */

:root {
  /* Farben */
  --color-primary:       #74741e;  /* Olivgrün — Links, Buttons, Logo, Überschriften, Footer */
  --color-primary-dark:  #5a5a18;  /* Hover-Zustand für Buttons */
  --color-text:          #334155;  /* Fließtext */
  --color-text-dark:     #1e293b;
  --color-bg:            #ffffff;
  --color-bg-subtle:     #F0F5FA;  /* gedimmte Sektionen */
  --color-muted:         #ADB6BE;  /* Metainfo, Nebentext */
  --color-border:        #dddddd;
  --color-nav-mobile-bg: #f9f9f9;
  --color-hero-overlay:  rgba(0, 0, 0, 0.40);  /* WP: has-background-dim-40 */

  /* Team-Featured-Hintergrund: leichtes Oliv-Tint wie im WP-Original      */
  --color-team-featured-bg: rgba(115, 115, 30, 0.18);

  /* Buttons */
  --btn-padding: 10px 24px;

  /* Typografie */
  /* YuseiMagic ausschließlich für das Logo (.nav__logo) */
  --font-heading:      'YuseiMagic', serif;
  --font-body:         'NotoSans', sans-serif;
  --font-size-base:    16px;
  --line-height-base:  1.65;

  /* Layout */
  --container-max:    1200px;
  --spacing-unit:     1rem;

  /* Navigation */
  --nav-height:       70px;
}


/* ==========================================================================
   2. Reset & Box-Model
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Seiten-Hintergrund: #E0E0E05E wie WP-Original.                          */
/* Wird seitlich neben dem Hero und dem .main-container sichtbar           */
/* (beide max 1200px, bei breiteren Viewports).                            */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: rgba(224, 224, 224, 0.37);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}


/* ==========================================================================
   3. Typografie
   ========================================================================== */

p {
  color: var(--color-text);
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-unit);
}

p:last-child {
  margin-bottom: 0;
}

/* Überschriften — NotoSans (NICHT YuseiMagic, die ist nur für das Logo).  */
/* Farbe: var(--color-primary) — Olivgrün wie im WP-Original.              */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

/* Größen nach WP-Referenz (Basis: 15px root) */
h1 { font-size: 2.667rem; font-weight: 700; } /* 40px */
h2 { font-size: 2.133rem; font-weight: 400; } /* 32px */
h3 { font-size: 1.733rem; font-weight: 400; } /* 26px */
h4 { font-size: 1.467rem; font-weight: 400; } /* 22px */
h5 { font-size: 1.2rem;   font-weight: 400; }
h6 { font-size: 1rem;     font-weight: 700; }

.content ul,
.content ol {
  padding-left: calc(var(--spacing-unit) * 1.5);
  margin-bottom: var(--spacing-unit);
}

.content ul { list-style: disc; }
.content ol { list-style: decimal; }

.content li {
  line-height: var(--line-height-base);
  margin-bottom: calc(var(--spacing-unit) * 0.25);
}

.btn {
  display: inline-block;
  padding: var(--btn-padding);
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.35em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  text-decoration: none;
}


/* ==========================================================================
   4. Layout-Container
   ========================================================================== */

/* Basis-Container: max-width, Zentrierung, Innenabstand.                  */
/* Wird von Footer und .main-container genutzt.                            */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: calc(var(--spacing-unit) * 1.25);
}

@media (min-width: 768px) {
  .container {
    padding-inline: calc(var(--spacing-unit) * 2);
  }
}

/* .main-container: der EINE Content-Container für alle Sektionen.         */
/* Weißer Hintergrund hier — nicht in jedem Partial separat.               */
/* Der body-Hintergrund (rgba(224,224,224,0.37)) bleibt seitlich sichtbar  */
/* (Viewports > 1200px).                                                   */
.main-container {
  background-color: var(--color-bg);
}

/* Sections: kein eigener Hintergrund, kein eigener Container.             */
/* Padding-block für vertikalen Rhythmus. Breite = main-container-Inhalt.  */
.section {
  padding-block: calc(var(--spacing-unit) * 2);
}

@media (min-width: 768px) {
  .section {
    padding-block: calc(var(--spacing-unit) * 2.5);
  }
}

/* Sektions-Überschriften: linksbündig wie im WP-Original */
.section__header {
  text-align: left;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.section__header h2 {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.section__header p {
  color: var(--color-muted);
  max-width: 60ch;
}

/* Trennlinie zwischen Hauptsektionen — 25 % Breite, zentriert, Olivgrün.  */
/* Wie WP-Original: wp-block-uagb-separator, 1 px solid #74741e.          */
.section-separator {
  padding-block: calc(var(--spacing-unit) * 0.5);
}

.section-separator::after {
  content: '';
  display: block;
  width: 25%;
  height: 1px;
  background-color: var(--color-primary);
  margin: 0 auto;
}


/* ==========================================================================
   5. Navigation
   ========================================================================== */

/* Header ist NICHT sticky — wie WP-Original. Kein border-bottom.          */
/* min-height: 100px wie WP-Original (padding-top/bottom: 0em, Höhe durch  */
/* Inhalt + min-height). Volle Viewport-Breite — kein max-width.           */
.site-header {
  background-color: var(--color-bg);
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: stretch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: #ffffff;
  z-index: 9999;
  font-size: 0.9rem;
}

/* Volle Viewport-Breite — kein max-width, kein margin-inline: auto.       */
/* padding-inline: 2em wie WP-Original (padding-left: 2em; right: 2em).    */
/* flex: 1 füllt die min-height: 100px des .site-header.                   */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-unit);
  padding-block: 0;
  padding-inline: 2em;
  flex: 1;
}

@media (min-width: 768px) {
  .nav {
    gap: 50px;   /* mind. 50px zwischen Logo und Menü */
  }
}

/* --- Brand: Logo + Subline --- */

.nav__brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo: NUR hier YuseiMagic.                                               */
/* line-height: 1 → 49px Höhe; Tagline ~18px → gesamt ~67px ≤ 70px.       */
.nav__logo {
  font-family: var(--font-heading);
  font-size: 3.267rem;   /* 49px bei 15px root, wie WP-Original */
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
  text-decoration: none;
  display: block;
}

.nav__logo:hover,
.nav__logo:focus-visible {
  text-decoration: none;
  color: var(--color-primary);
}

/* Subline kommt aus .Params.description der Seite (_index.md) */
.nav__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.4;
}

/* --- Hamburger-Button (nur mobil sichtbar) --- */

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: auto;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav__toggle-icon {
  display: block;
  flex-shrink: 0;
}

.nav__bar {
  transform-origin: 12px 12px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle[aria-expanded="true"] .nav__bar--1 {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__bar--2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] .nav__bar--3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Menü-Container (mobil eingeklappt) ---
   Grid-Trick: grid-template-rows 0fr → 1fr für smooth height-Transition.
*/

.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-nav-mobile-bg);
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.nav__menu.open {
  grid-template-rows: 1fr;
}

.nav__menu-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: padding 0.3s ease;
}

.nav__menu.open .nav__menu-inner {
  padding: calc(var(--spacing-unit) * 0.75) 0;
}

/* --- CTA "Termin vereinbaren" ---
   Mobil: Block-Button oben im ausgeklappten Menü.
   Desktop: streckt sich auf die volle Nav-Höhe (70px) — align-self: stretch.
*/

.nav__cta {
  display: block;
  margin: 0 calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 0.5);
  padding: 0.6em 1.4em;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5em;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  text-decoration: none;
}

/* --- Navigations-Liste --- */

.nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item a {
  display: block;
  padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.25);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__item a:hover,
.nav__item a:focus-visible {
  color: var(--color-primary);
  text-decoration: none;
  background-color: var(--color-bg-subtle);
}

.nav__item a[aria-current="page"] {
  color: var(--color-primary);
}

/* --- Telefonnummer --- */

.nav__phone {
  display: block;
  padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.25);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
  text-decoration: none;
}

.nav__phone:hover,
.nav__phone:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- Desktop-Navigation ab 768px --- */

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  /* Nav-Menü: stretch auf volle Header-Höhe, damit CTA ebenfalls           */
  /* gestreckt werden kann.                                                  */
  .nav__menu {
    position: static;
    display: flex;
    align-items: center;
    align-self: stretch;
    background: none;
    border: none;
    grid-template-rows: none;
    transition: none;
    overflow: visible;
  }

  /* display:contents → CTA, List, Phone werden direkte Flex-Items von      */
  /* .nav. Ermöglicht align-self auf dem CTA.                               */
  .nav__menu-inner {
    display: contents;
  }

  .nav__menu.open .nav__menu-inner {
    padding: 0;
  }

  /* CTA: 70px hoch (var(--nav-height)), vertikal zentriert im 100px-Header. */
  /* display:flex + align-items:center zentriert den Text vertikal.         */
  .nav__cta {
    align-self: center;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    margin: 0 calc(var(--spacing-unit) * 0.75) 0 0;
    padding: 0 1.4em;
    border-radius: 7;
    flex-shrink: 0;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
  }

  /* Nav-Links: line-height var(--nav-height) zentriert Text vertikal       */
  .nav__item a {
    padding: 0 calc(var(--spacing-unit) * 0.6);
    line-height: var(--nav-height);
    white-space: nowrap;
  }

  .nav__item a:hover,
  .nav__item a:focus-visible {
    background-color: transparent;
  }

  .nav__phone {
    padding: 0.5em;
    flex-shrink: 0;
  }
}


/* ==========================================================================
   6. Hero-Sektion
   ========================================================================== */

/* Hero außerhalb des .main-container — eigene max-width wie .container.   */
/* Hintergrundbild füllt den 1200px-Block; body-Farbe auf den Seiten.     */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-bg-subtle);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Overlay — immer vorhanden (transparent), bei .hero--with-image aktiv */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: transparent;
}

/* Hintergrundbild vorhanden: Overlay 40 %, Text unten-zentriert */
.hero--with-image {
  align-items: flex-end;
}

.hero--with-image::before {
  background-color: var(--color-hero-overlay);
}

/* Inhalts-Box: gleiche padding-inline wie .container für bündige Ausrichtung */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline: calc(var(--spacing-unit) * 1.25);
  padding-block: calc(var(--spacing-unit) * 2);
}

@media (min-width: 768px) {
  .hero__content {
    padding-inline: calc(var(--spacing-unit) * 2);
  }
}

.hero--with-image .hero__content {
  padding-bottom: calc(var(--spacing-unit) * 3);
}

/* Hero-Haupttext: NotoSans-Bold, groß — kein YuseiMagic */
.hero__title {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 2em;
  line-height: 1.25;
  margin-bottom: 0;
}

.hero--with-image .hero__title {
  color: var(--color-bg-subtle); /* #F0F5FA wie WP: has-ast-global-color-5-color */
}

.hero__subline {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1.1rem;
  margin-top: calc(var(--spacing-unit) * 0.75);
  margin-bottom: 0;
}

.hero--with-image .hero__subline {
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.4em;
  }

  .hero__subline {
    font-size: 1.15rem;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 2.8em;
  }
}


/* ==========================================================================
   7. Team-Grid
   ========================================================================== */

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(var(--spacing-unit) * 0.75);
}

.team-card__photo {
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--color-bg-subtle);
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}

.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
}

.team-card__name {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-primary);
  font-size: 1.733rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.team-card__role {
  color: #888888;
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Featured-Karte: erster Arzt / erste Ärztin --- */

/* team-featured: alignfull — bricht aus dem container-padding heraus.     */
/* Negative margin-inline hebt den padding-inline des .container auf.      */
.team-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 2);
  background-color: var(--color-team-featured-bg);
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2.5);
  margin-inline: calc(var(--spacing-unit) * -1.25);
}

@media (min-width: 768px) {
  .team-featured {
    grid-template-columns: minmax(0, 33.33%) 1fr;
    align-items: flex-start;
    margin-inline: calc(var(--spacing-unit) * -2);
  }
}

.team-featured__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(var(--spacing-unit) * 0.5);
  padding: 20px;
}

.team-featured__person .team-card__photo {
  width: 250px;
  height: 250px;
}

.team-featured__intro {
  color: var(--color-text);
  line-height: var(--line-height-base);
  padding: 20px;
}

.team-featured__intro p {
  margin-bottom: var(--spacing-unit);
}

/* --- Sekundäres Grid: MFA, Azubis --- */

.team-grid--secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 2);
}

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


/* ==========================================================================
   8. Praxiszeiten
   ========================================================================== */

.zeiten-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 0.5);
}

.zeiten-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 0.75);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.zeiten-row__day {
  font-weight: 700;
  color: var(--color-text-dark);
}

.zeiten-row__hours {
  color: var(--color-text);
  text-align: right;
}

.zeiten-hinweis {
  margin-top: var(--spacing-unit);
}

.zeiten-table {
  display: none;
}

@media (min-width: 768px) {
  .zeiten-list {
    display: none;
  }

  /* Tabelle: is-style-stripes wie WP-Original — kein Border, abwechselnd  */
  /* grau (#f0f0f0) und weiß. Kein sichtbarer Tabellenkopf.                */
  .zeiten-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
  }

  .zeiten-table th,
  .zeiten-table td {
    padding: 0.5em 0.75em;
    text-align: left;
    color: var(--color-text);
    font-size: 0.95rem;
  }

  .zeiten-table th[scope="row"] {
    font-weight: 700;
    color: var(--color-text-dark);
    width: 35%;
    font-family: var(--font-body);
  }

  /* Stripes: ungerade Zeilen #f0f0f0 (WP is-style-stripes), gerade weiß   */
  .zeiten-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #f0f0f0;
  }

  .zeiten-table.is-style-stripes tbody tr:nth-child(even) {
    background-color: var(--color-bg);
  }
}


/* ==========================================================================
   8b. Zeiten + Leistungen — nebeneinander (Desktop)
   ========================================================================== */

.zeiten-leistungen-row {
  width: 100%;
}

@media (min-width: 768px) {
  .zeiten-leistungen-row {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 3);
  }

  /* Zeiten: 35 %, Leistungen: Rest (≈ 65 %) — wie WP-Original */
  .zeiten-leistungen-row > #zeiten {
    flex: 0 0 35%;
    min-width: 0;
  }

  .zeiten-leistungen-row > #leistungen {
    flex: 1;
    min-width: 0;
  }
}


/* ==========================================================================
   9. Leistungen
   ========================================================================== */

.leistungen {
  max-width: 750px;
}


/* ==========================================================================
   10. Terminvereinbarung — Modal (<dialog>)
   ========================================================================== */

/* Rahmenloser Dialog ohne eigenes Padding — Layout über Flex-Children.    */
/* margin: auto zentriert den Dialog im Viewport (horizontal + vertikal).  */
.termin-modal {
  padding: 0;
  border: none;
  width: min(95vw, 900px);
  height: min(90dvh, 800px);
  min-height: 600px;
  overflow: hidden;
  margin: auto;
}

/* display:flex nur wenn geöffnet — Browser setzt [open] display:block     */
.termin-modal[open] {
  display: flex;
  flex-direction: column;
}

/* Abdunklung hinter dem Modal */
.termin-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
}

/* Kopfzeile: Olivgrün-Balken mit Schließen-Button rechts                  */
.termin-modal__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

/* Schließen-Button: weißer Kreis mit X                                    */
.termin-modal__close {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.termin-modal__close:hover,
.termin-modal__close:focus-visible {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

/* iframe füllt den restlichen Modal-Raum — min-height:0 erlaubt Flex-Shrink */
.termin-modal iframe {
  flex: 1 1 0;
  width: 100%;
  border: none;
  min-height: 0;
  display: block;
}


/* ==========================================================================
   11. Kontakt
   ========================================================================== */

.kontakt-columns {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

@media (min-width: 768px) {
  .kontakt-columns {
    flex-direction: row;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 3);
  }

  .kontakt-text,
  .kontakt-map {
    flex: 1;
    min-width: 0;
  }
}

.kontakt-adresse,
.kontakt-info {
  margin-bottom: calc(var(--spacing-unit) * 1.25);
}

.kontakt-adresse p,
.kontakt-info p {
  margin-bottom: calc(var(--spacing-unit) * 0.4);
  color: var(--color-text);
}

.kontakt-adresse a,
.kontakt-info a {
  color: var(--color-primary);
  text-decoration: none;
}

.kontakt-adresse a:hover,
.kontakt-adresse a:focus-visible,
.kontakt-info a:hover,
.kontakt-info a:focus-visible {
  text-decoration: underline;
}

/* Karten-Bild: Graustufen-Filter wie WP-Original */
.kontakt-map img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}


/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-primary);
  padding-block: calc(var(--spacing-unit) * 1.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-unit);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 0.875rem;
  color: #ffffff;
  margin-bottom: 0;
}

.footer-copy a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: #dddddd;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 1.25);
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  font-size: 0.875rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #dddddd;
  text-decoration: underline;
}


/* ==========================================================================
   13. Single-Page (Unterseiten: Impressum, Datenschutz, etc.)
   ========================================================================== */

.single-page__inner {
  max-width: 80ch;
}

.single-page__back {
  display: inline-block;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.single-page__back:hover,
.single-page__back:focus-visible {
  text-decoration: underline;
}

.single-page__title {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  padding-bottom: calc(var(--spacing-unit) * 0.75);
  border-bottom: 1px solid var(--color-border);
}

.single-page__content {
  line-height: var(--line-height-base);
}

.single-page__content h2 {
  margin-top: calc(var(--spacing-unit) * 2);
}

.single-page__content h3 {
  margin-top: calc(var(--spacing-unit) * 1.5);
}


/* ==========================================================================
   14. Utility-Klassen
   ========================================================================== */

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

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
