/* surface.css — Härtung (mirror.mjs), ändert das Aussehen im Ruhezustand nicht.

   Schriften lokal: kein Request an fonts.googleapis.com/fonts.gstatic.com.
   Inter und Brygada 1918 liegen als variable woff2 (latin-Subset) unter
   /fonts/ und decken die auf der Seite verwendeten Gewichte ab.
   Die Dateien werden von copyDesignAssets() aus fonts/ nach site/fonts/
   kopiert; die Google-Fonts-<link>-Tags entfernt stripGoogleFonts(). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Brygada 1918';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/brygada-1918-latin.woff2') format('woff2');
}

/* 1) Fokus-Ring: Astra nutzt weiße gepunktete Outlines, die auf hellen
      Sektionen unsichtbar sind, und "input{outline:none}". Doppelter Ring
      (Bordeaux außen, weißer Halo innen) ist auf jedem Hintergrund sichtbar.
   2) prefers-reduced-motion: alle Animationen/Transitionen aus (u.a.
      Flipbook-Sound-Optik, Slider-Rotation bleibt — sie ist nutzergesteuert).
   3) Touch-Targets: Submenü-Toggles auf 44px Klickfläche ohne Layout-Shift. */

:where(a, button, [role="tab"], [role="button"], input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #6C143C !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #fff !important;
  border-radius: 2px !important;
}

/* Bordeaux-Flächen (Header-Balken, Footer, invertierte Buttons): Ring invertieren */
:where(#colophon a, .ast-header-break-point .main-header-bar a, .elementor-button, .site-header a):focus-visible,
:where(a:focus-visible .elementor-button) {
  outline-color: #fff !important;
  box-shadow: 0 0 0 5px #6C143C !important;
}

/* Astra's input{outline:none} restituieren */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #6C143C !important;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px #fff !important;
}

/* Reduced Motion: alles aus, sofortige Endzustände */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch-Targets: Astra-Submenü-Toggles 41px → 44px Klickfläche,
   Padding+negativer Margin = keine sichtbare Verschiebung. */
@media (pointer: coarse) {
  .ast-menu-toggle {
    padding: 2px;
    margin: -2px;
  }
}
.main-header-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Doppelter Tab-Stopp in "Über Uns" auf Desktop: Astra rendert zusätzlich
   zum .ast-menu-toggle-Button ein <span role="button" tabindex="0"> im <a>. */
#ast-desktop-header .dropdown-menu-toggle[role="button"] {
  pointer-events: none;
}

/* 4) Kurze Seiten (Kontakt, Formulare, Karriere): Footer an den unteren
   Viewport-Rand drücken statt im Leerraum schweben zu lassen. Auf langen
   Seiten ohne Wirkung (Inhalt drückt den Footer ohnehin über den Rand). */
html {
  min-height: 100%;
}
body {
  min-height: 100vh;
}
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#colophon {
  margin-top: auto;
}

/* 5) Download-Komponente (Pflegeleitbild): aus einem versteckten
   Inline-Textlink wird eine sichtbare, flache Download-Box im
   Seiten-Stil (Bordeaux-Akzent, heller Grund, keine Kartenarchitektur). */
.alpen-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 18px 20px;
  background: #f6f5f4;
  border-left: 3px solid #6c143c;
  border-radius: 2px;
}
.alpen-download-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.alpen-download-title {
  font-weight: 600;
  color: #4a4843;
}
.alpen-download-sub {
  font-size: 0.85em;
  color: #5f5c56;
}

/* 7) Fließtext-Kontrast: Astra --ast-global-color-3 (#7f7c76) liegt mit
   4.16:1 unter dem WCAG-AA-Minimum (4.5:1) für 15px-Text. #5f5c56 ist die
   etablierte --text-soft der Design-Historie (6.66:1 auf Weiß). */
.elementor-widget-text-editor {
  color: #5f5c56;
}

/* 8) Screenreader-only (sr-only H1 "Unsere Partner"): Seite hatte nur H3-
   Sektionstitel und keinen H1/H2-Seitentitel. Optisch unverändert. */
.apk-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;
}

/* 9) Rezensions-Slider (wprev): Review-Text #777 auf Weiß = 4.47:1,
   knapp unter AA. #6e6e6e = 4.94:1. */
.wprevpro_t1_P_3 {
  color: #6e6e6e;
}

/* 10) Formulare-Tabs (Elementor): Tab-Titel #7f7c76 (4.16:1) → #5f5c56. */
.elementor-tab-title {
  color: #5f5c56;
}

/* 11) Über-uns: Der Textmonolith (1600 Zeichen in einem Widget, null
   Bilder) wird redaktionell gegliedert — Textspalte mit Lead-Absatz,
   Einrichtungsfoto rechts, Indikationen als zweispaltige Liste. */
.apk-about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  align-items: start;
  margin: 8px 0 4px;
}
.apk-about-text p {
  margin: 0 0 16px;
}
.apk-lead {
  font-size: 1.15em;
  line-height: 1.6;
}
.apk-about-img {
  margin: 0;
}
.apk-about-img img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.apk-indications {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  margin: 0 0 16px;
  padding: 16px 20px;
  background: #f6f5f4;
  border-left: 3px solid #6c143c;
  border-radius: 2px;
  list-style: none;
}
.apk-indications li {
  break-inside: avoid;
  padding-left: 18px;
  position: relative;
}
.apk-indications li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: #6c143c;
}
.apk-about-note {
  border-top: 1px solid #e2e1df;
  padding-top: 16px;
}
@media (max-width: 767px) {
  .apk-about {
    grid-template-columns: 1fr;
  }
  .apk-about-img {
    order: -1;
  }
  .apk-indications {
    grid-template-columns: 1fr;
  }
}

/* 12) Startseiten-Hero: echter Viewport-Container statt 896px-Block.
   Elementor setzt min-height:100vh auf den Container, die Spalte bekommt
   aber margin:29vw oben/unten (vertikaler Abstand per Viewport-BREITE) —
   dadurch ragte die Sektion weit über den Screen und der Textkasten lag
   unter der Falz. Jetzt: genau ein Screen unter dem Header, Inhalt mittig,
   Hintergrundbild unverändert als Cover. Header-Höhen aus §19:
   88px ≥1200, 73px 923–1199, 72px ≤922, 64px ≤544. */
.apk-hero > .elementor-container {
  min-height: calc(100svh - 88px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Bild von oben ankern: bei flachen/wilden Fenstern wurde vorher oben das
   Dach abgeschnitten (cover croppt vertikal). Top-Anker behält Skyline,
   Dach und alle Stockwerke; der Beschnitt fällt auf den Hof unten. */
.apk-hero {
  background-position: center top !important;
}
.apk-hero .elementor-element-8346b8d > .elementor-element-populated {
  width: 100%;
  margin: 0 auto !important;
}
.apk-hero .elementor-widget-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 36px;
  box-sizing: border-box;
}
@media (max-width: 1199px) {
  .apk-hero > .elementor-container {
    min-height: calc(100svh - 73px) !important;
  }
}
@media (max-width: 922px) {
  .apk-hero > .elementor-container {
    min-height: calc(100svh - 72px) !important;
  }
  .apk-hero .elementor-widget-wrap {
    padding: 22px 24px;
  }
}
@media (max-width: 544px) {
  .apk-hero > .elementor-container {
    min-height: calc(100svh - 64px) !important;
  }
}

/* 13) Team-Sektion (Startseite): 6 Mitarbeitenden-Porträts in Uniform als
   ruhiges 3×2-Raster runder Avatare statt der ungleichen Stock-Fotos. */
.apk-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.apk-team-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 544px) {
  .apk-team-grid {
    gap: 12px;
  }
}
@media (max-width: 767px) {
  .apk-team-text {
    order: -1;
    width: 100%;
    text-align: center;
  }
  .apk-team-text .elementor-divider {
    margin-inline: auto;
  }
}
.alpen-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  background: #6c143c;
  color: #fff;
  padding: 12px 20px;
  border-radius: 2px;
  text-decoration: none !important;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 200ms ease;
}
.alpen-download-btn:hover,
.alpen-download-btn:focus {
  background: #53102e;
  color: #fff;
}

/* 6) Partner-Raster (unsere-partner): ersetzt die EAEL-JS-Masonry
   (4 Galerien mit 3 verschiedenen Zellbreiten und wilden Logo-Höhen)
   durch EIN einheitliches, flaches Raster: 3/2/1 Spalten, gleiche
   Zellhöhe, zentrierte Logos, Hairline-Rahmen, echte alt-Texte. */
.apk-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 8px;
}
.apk-partner-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e2e1df;
  border-radius: 2px;
  transition: border-color 200ms ease;
}
.apk-partner-cell:hover,
.apk-partner-cell:focus-visible {
  border-color: #6c143c;
}
.apk-partner-cell img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* SVGs ohne intrinsische Größe (nur viewBox) kollabieren auf 0x0 —
   mit height:auto feuert loading=lazy nie (nie im Viewport). Fix: Höhe. */
.apk-partner-cell img[src$=".svg"] {
  height: 64px;
}
@media (max-width: 1024px) {
  .apk-partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .apk-partner-grid {
    grid-template-columns: 1fr;
  }
}

/* 14) Rechtsseite (Impressum & Datenschutz): Der alte TYPO3-Import war eine
   10.000-px-Textwand ohne Hierarchie (doppeltes H3 "Impressum", Kapitel-
   nummern als <strong>-Absätze, 1200px Zeilenlänge). Jetzt: lesbare 760px-
   Spalte, echte H2/H3-Struktur, Inhaltsverzeichnis mit Sprungmarken,
   Datenblätter statt Fließtext-Adressen. Optik mit den bestehenden Tokens
   (Bordeaux #6c143c, Text #5f5c56, Fläche #f6f5f4, Hairline #e2e1df). */
.apk-legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 4px 20px 16px;
  color: #5f5c56;
  font-size: 1rem;
  line-height: 1.7;
}
.apk-legal p {
  margin: 0 0 1em;
}
.apk-legal a {
  color: #6c143c;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.apk-legal a:hover {
  color: #53102e;
}
.apk-legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f6f5f4;
  padding: 1px 4px;
  border-radius: 2px;
}
.apk-legal-head {
  margin: 0 0 30px;
}
.apk-legal-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c143c;
}
.apk-legal-title {
  margin: 0 0 14px;
  font-family: 'Brygada 1918', serif;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  color: #4a4843;
}
.apk-legal-lead {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.apk-legal-stand {
  margin: 0;
  font-size: 0.84rem;
  color: #6f6c66;
}
.apk-legal-toc {
  margin: 0 0 48px;
  padding: 20px 22px;
  background: #f6f5f4;
  border-left: 3px solid #6c143c;
  border-radius: 2px;
}
.apk-legal-toc-title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c143c;
}
.apk-legal-toc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px 40px;
}
.apk-legal-toc-group {
  margin: 0 0 6px;
  font-family: 'Brygada 1918', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #4a4843;
}
.apk-legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.apk-legal-toc li {
  margin: 0 0 4px;
  break-inside: avoid;
}
.apk-legal .apk-legal-toc a {
  display: inline-block;
  color: #5f5c56;
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.45;
  border-bottom: 1px solid transparent;
}
.apk-legal .apk-legal-toc a:hover {
  color: #6c143c;
  border-bottom-color: #6c143c;
}
.apk-legal-section + .apk-legal-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e2e1df;
}
.apk-legal-section-title {
  margin: 0 0 8px;
  font-family: 'Brygada 1918', serif;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  font-weight: 600;
  color: #4a4843;
}
.apk-legal-intro {
  font-size: 1.05rem;
}
.apk-legal h3 {
  margin: 32px 0 10px;
  font-family: 'Brygada 1918', serif;
  font-size: 1.38rem;
  line-height: 1.3;
  font-weight: 600;
  color: #4a4843;
}
.apk-legal h3:first-of-type {
  margin-top: 22px;
}
.apk-legal ul {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
  list-style: disc;
}
.apk-legal li {
  margin: 0 0 0.4em;
  padding-left: 0.2em;
}
.apk-legal li::marker {
  color: #6c143c;
}
.apk-legal-address {
  margin: 0 0 1.2em;
  font-style: normal;
  line-height: 1.65;
}
.apk-legal-data {
  margin: 0 0 1.2em;
}
.apk-legal-data > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #ecebe9;
}
.apk-legal-data > div:last-child {
  border-bottom: 0;
}
.apk-legal-data dt {
  font-weight: 600;
  color: #4a4843;
}
.apk-legal-data dd {
  margin: 0;
}
.apk-legal h2[id],
.apk-legal h3[id] {
  scroll-margin-top: 24px;
}
@media (max-width: 767px) {
  .apk-legal {
    font-size: 0.97rem;
  }
  .apk-legal-toc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .apk-legal-toc {
    padding: 16px 18px;
    margin-bottom: 36px;
  }
  .apk-legal-data > div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }
  .apk-legal-section + .apk-legal-section {
    margin-top: 40px;
    padding-top: 30px;
  }
  .apk-legal h3 {
    margin-top: 28px;
    font-size: 1.25rem;
  }
}
@media print {
  .apk-legal {
    max-width: none;
    color: #000;
  }
  .apk-legal-toc {
    display: none;
  }
  .apk-legal a {
    color: #000;
    text-decoration: none;
  }
  .apk-legal h2,
  .apk-legal h3 {
    color: #000;
    break-after: avoid;
  }
  .apk-legal p,
  .apk-legal li {
    orphans: 3;
    widows: 3;
  }
}

/* 15) Anfahrt: lokal gehostete OpenStreetMap-Karte (karte/alpenpark-karte.webp,
   erzeugt von karte/make-map.py). Kein Google-Request, keine Cookies.
   Desktop: Infokarte links (340px), Karte rechts; mobil gestapelt. Die Karte
   ist 1200×400 und wird per object-fit beschnitten, der Marker bleibt mittig. */
.apk-map {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 300px;
  background: #f6f5f4;
  border: 1px solid #e2e1df;
  border-left: 3px solid #6c143c;
  border-radius: 2px;
  overflow: hidden;
}
.apk-map-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 26px 28px;
  box-sizing: border-box;
  line-height: 1.5;
}
.apk-map-visual {
  display: block;
  min-height: 300px;
  overflow: hidden;
}
.apk-map-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}
.apk-map-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c143c;
}
.apk-map-address {
  margin: 0;
  color: #5f5c56;
  line-height: 1.55;
}
.apk-map-address strong {
  color: #4a4843;
}
.apk-map-load {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
  background: #6c143c;
  color: #fff;
  padding: 11px 20px;
  border-radius: 2px;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 200ms ease;
}
.apk-map-load:hover,
.apk-map-load:focus-visible {
  background: #53102e;
  color: #fff;
}
.apk-map-note {
  margin: 2px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6f6c66;
}
.apk-map-note a {
  color: #6c143c;
}
@media (max-width: 767px) {
  .apk-map {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .apk-map-info {
    padding: 22px 20px;
  }
  .apk-map-visual {
    min-height: 220px;
  }
  .apk-map-visual img {
    height: 220px;
    min-height: 220px;
  }
}

/* 16) Speiseplan: leichte PDF-Karte statt DearFlip-Flipbook. Reines CSS,
   kein Bild, kein JS; links ein Menü-Cover, rechts Text + PDF-Button. */
.apk-menu {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid #e2e1df;
  border-left: 3px solid #6c143c;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}
.apk-menu-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 270px;
  padding: 30px 34px;
  background: #f6f5f4;
  border-right: 1px solid #e2e1df;
}
.apk-menu-cover-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c143c;
}
.apk-menu-cover-title {
  font-family: 'Brygada 1918', serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  color: #4a4843;
}
.apk-menu-cover-icon {
  width: 64px;
  height: 64px;
  margin-top: 10px;
  color: #6c143c;
  opacity: 0.9;
}
.apk-menu-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 32px 36px;
  line-height: 1.6;
}
.apk-menu-text {
  margin: 0;
  color: #5f5c56;
  font-size: 1.05rem;
}
.apk-menu a.apk-menu-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
  background: #6c143c;
  color: #fff;
  padding: 11px 20px;
  border-radius: 2px;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  transition: background 200ms ease;
}
.apk-menu a.apk-menu-btn:hover,
.apk-menu a.apk-menu-btn:focus-visible {
  background: #53102e;
  color: #fff;
}
.apk-menu-meta {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f6c66;
}
@media (max-width: 767px) {
  .apk-menu {
    grid-template-columns: 1fr;
  }
  .apk-menu-cover {
    min-height: 200px;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid #e2e1df;
  }
  .apk-menu-cover-title {
    font-size: 2rem;
  }
  .apk-menu-cover-icon {
    width: 48px;
    height: 48px;
  }
  .apk-menu-body {
    padding: 24px 22px;
  }
}

/* 17) Formulare: statisches PDF-Raster statt Elementor-Tabs/Flipbooks. */
.apk-forms {
  max-width: 1000px;
  margin: 10px auto 16px;
}
.apk-forms-lead {
  margin: 0 0 24px;
  max-width: 720px;
  color: #5f5c56;
  font-size: 1.05rem;
  line-height: 1.6;
}
.apk-forms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.apk-forms a.apk-form-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 22px 20px;
  background: #f6f5f4;
  border: 1px solid #e2e1df;
  border-left: 3px solid #6c143c;
  border-radius: 2px;
  color: #5f5c56;
  text-decoration: none;
  transition: border-color 200ms ease;
}
.apk-forms a.apk-form-card:hover,
.apk-forms a.apk-form-card:focus-visible {
  border-color: #6c143c;
  color: #5f5c56;
}
.apk-form-icon {
  width: 30px;
  height: 38px;
  flex: none;
  color: #6c143c;
}
.apk-form-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apk-form-title {
  font-family: 'Brygada 1918', serif;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  color: #4a4843;
}
.apk-form-sub {
  font-size: 0.92rem;
  line-height: 1.5;
}
.apk-form-meta {
  margin-top: 2px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f6c66;
}
.apk-form-action {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c143c;
}
@media (max-width: 1024px) {
  .apk-forms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .apk-forms {
    margin-top: 4px;
  }
  .apk-forms-grid {
    grid-template-columns: 1fr;
  }
  .apk-forms a.apk-form-card {
    padding: 20px 20px 18px;
  }
}

/* 18) Kontaktseite: Die Live-Seite bestand aus einem Hero und drei
   Emoji-Zeilen (Telefon, E-Mail, Adresse) mit ~300px Leerraum. Jetzt:
   Datenblatt mit echten Kontaktwegen, redaktionelle Randspalte für
   Aufnahme/Karriere/Datenschutz und die lokale OSM-Anfahrtkarte.
   Keine Karten-Optik, nur Hairlines und Typografie. */
.apk-contact {
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}
.apk-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: start;
}
.apk-contact-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c143c;
}
.apk-contact-title {
  margin: 0 0 22px;
  font-family: 'Brygada 1918', serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.2;
  font-weight: 600;
  color: #4a4843;
}
.apk-contact-data {
  margin: 0;
  border-top: 1px solid #e2e1df;
}
.apk-contact-data > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #e2e1df;
}
.apk-contact-data dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6c143c;
}
.apk-contact-data dd {
  margin: 0;
  font-family: 'Brygada 1918', serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.3;
  color: #4a4843;
}
.apk-contact-data dd address {
  font-style: normal;
}
.apk-contact-value {
  color: #4a4843;
  text-decoration: none;
  border-bottom: 1px solid #d8d5d1;
  transition: color 200ms ease, border-color 200ms ease;
}
.apk-contact-value:hover,
.apk-contact-value:focus-visible {
  color: #6c143c;
  border-bottom-color: #6c143c;
}
.apk-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}
.apk-contact-block {
  padding: 0 0 20px;
  border-bottom: 1px solid #e2e1df;
}
.apk-contact-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.apk-contact-text {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5f5c56;
}
.apk-contact-link {
  display: inline-block;
  padding: 12px 0;
  margin: -8px 0 -12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c143c;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.apk-contact-link:hover,
.apk-contact-link:focus-visible {
  border-bottom-color: #6c143c;
}
.apk-contact .apk-map {
  margin-top: 48px;
}
@media (max-width: 921px) {
  .apk-contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 767px) {
  .apk-contact-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .apk-contact .apk-map {
    margin-top: 36px;
  }
}

/* 19) Header schlanker: Das Bordeaux-Band war 141px hoch (Logo 120×109
   plus 2×16px Branding-Padding) und im 1024px-Layout 240px, weil die
   sieben Menüpunkte bei 2×24px Innenabstand in zwei Zeilen à 120px
   umbrachen. Jetzt 88px Desktop / 73px Tablet / 72px Mobile / 64px klein,
   Logo proportional kleiner, unter 1200px engere Menüabstände, damit
   die Navigation einzeilig bleibt. Die Bordeaux-Fläche bleibt. */
@media (min-width: 1200px) {
  /* !important: Astras Transparent-Header (/ueber-uns/) setzt inline 120px. */
  header .custom-logo-link img {
    width: 76px !important;
    max-width: 76px !important;
  }
  .site-header .site-branding {
    padding: 8px 0;
  }
  .ast-primary-header-bar,
  .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 88px;
  }
  .ast-desktop:not(:has(.ast-header-sticked)) .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 88px;
  }
}
@media (min-width: 923px) and (max-width: 1199px) {
  header .custom-logo-link img {
    width: 62px !important;
    max-width: 62px !important;
  }
  .site-header .site-branding {
    padding: 8px 0;
  }
  .ast-primary-header-bar,
  .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 72px;
  }
  .ast-desktop:not(:has(.ast-header-sticked)) .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 72px;
  }
  .ast-builder-menu-1 .menu-item > .menu-link {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* Astra schaltet das Mobile-Menü erst bei 922px um, die Theme-CSS aber
   schon bei 921px — bei genau 922px blieb die Desktop-Mindesthöhe (120px)
   am Mobile-Header hängen und das Menü war unsichtbar. Bereich angleichen. */
@media (min-width: 923px) and (max-width: 1023px) {
  .ast-builder-menu-1 .menu-item > .menu-link {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 922px) {
  .ast-mobile-header-wrap .ast-primary-header-bar,
  .ast-primary-header-bar,
  .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 72px;
  }
  .site-header .site-branding {
    padding: 8px 0;
  }
  header .custom-logo-link img {
    width: 48px !important;
    max-width: 48px !important;
  }
}
@media (max-width: 544px) {
  .ast-mobile-header-wrap .ast-primary-header-bar,
  .ast-primary-header-bar,
  .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 64px;
  }
  header .custom-logo-link img {
    width: 40px !important;
    max-width: 40px !important;
  }
}

/* 20) Statische Galerien und Rezensions-Slider: Die letzten drei JS-Inseln
   sind ersetzt. Startseite: 15 wprev-Karten als horizontaler 3/2/1-Slider
   mit Scroll-Snap, Pfeilen und Zähler (kleines Inline-JS statt Unslider);
   Therapien: 2×6 Karussellbilder als 2-Spalten-Raster statt Swiper;
   Wellness: Galerie öffnet die Bilder direkt (kein Lightbox-JS). Die
   wprev-CSS bleibt für Karten, Sterne und Avatare aktiv. */
.apk-reviews {
  margin-top: 28px;
  overflow: visible;
}
.apk-reviews-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.apk-reviews-count {
  font-size: 14px;
  color: #5f5c56;
  letter-spacing: 0.02em;
}
.apk-reviews-buttons {
  display: flex;
  gap: 8px;
}
.apk-reviews-buttons button {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex: 0 0 44px;
  padding: 0;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(108, 20, 60, 0.28);
  border-radius: 50%;
  background: #fff;
  color: #6c143c;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.apk-reviews-buttons button:hover:not(:disabled) {
  background: #6c143c;
  border-color: #6c143c;
  color: #fff;
}
.apk-reviews-buttons button:disabled {
  opacity: 0.32;
  cursor: default;
}
.apk-reviews-buttons button:focus-visible {
  outline: 2px solid #6c143c;
  outline-offset: 2px;
}
.apk-reviews-buttons .apk-reviews-toggle .apk-icon-play {
  display: none;
}
.apk-reviews-buttons .apk-reviews-toggle.is-paused .apk-icon-pause {
  display: none;
}
.apk-reviews-buttons .apk-reviews-toggle.is-paused .apk-icon-play {
  display: block;
}
.apk-reviews-viewport {
  position: relative;
}
.apk-reviews-viewport > ul:focus-visible {
  outline: 2px solid #6c143c;
  outline-offset: 4px;
  border-radius: 4px;
}
.apk-reviews-viewport > ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.apk-reviews-viewport > ul:active {
  cursor: grabbing;
}
.apk-reviews-viewport > ul::-webkit-scrollbar {
  display: none;
}
.apk-reviews-viewport > ul > li,
.apk-reviews .wprevpro_t1_outer_div {
  display: contents;
}
/* Die W3-Clearfix-Pseudoelemente der Zeilen-Wrapper würden bei
   display:contents als leere Grid-Items Zellen belegen. */
.apk-reviews-viewport > ul::before,
.apk-reviews-viewport > ul::after,
.apk-reviews-viewport > ul > li::before,
.apk-reviews-viewport > ul > li::after,
.apk-reviews .wprevpro_t1_outer_div::before,
.apk-reviews .wprevpro_t1_outer_div::after,
.apk-reviews .wprevpro_t1_DIV_1::before,
.apk-reviews .wprevpro_t1_DIV_1::after {
  content: none !important;
  display: none !important;
}
.apk-reviews .wprevpro_t1_DIV_1 {
  flex: 0 0 calc((100% - 36px) / 3);
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 20px;
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
  scroll-snap-align: start;
}
.apk-reviews .wprevpro_t1_DIV_2 {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 30px;
}
.apk-reviews .wprevpro_t1_A_8 {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.apk-reviews .wprevpro_t1_A_8 img {
  float: none;
  margin: 0;
}
.apk-reviews .wprevpro_t1_SPAN_5 {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  float: none;
  padding-top: 0;
}
.apk-review-rating-note {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.92rem;
  color: #6e6e6e;
}
@media (max-width: 900px) {
  .apk-reviews .wprevpro_t1_DIV_1 {
    flex-basis: calc((100% - 18px) / 2);
  }
}
@media (max-width: 600px) {
  .apk-reviews {
    margin-top: 20px;
  }
  .apk-reviews .wprevpro_t1_DIV_1 {
    flex-basis: 100%;
  }
  .apk-reviews-nav {
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .apk-reviews-viewport > ul {
    scroll-behavior: auto;
  }
}

.apk-static-gallery {
  overflow: visible;
}
.apk-static-gallery > .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: auto;
  transform: none !important;
}
.apk-static-gallery .swiper-slide {
  width: auto !important;
  height: auto !important;
  margin: 0;
}
.apk-static-gallery .swiper-slide-inner {
  display: block;
  height: 100%;
  margin: 0;
}
.apk-static-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.apk-job-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #6c143c;
}
.apk-job-link img {
  display: block;
  border: 1px solid #e2e1df;
  border-radius: 2px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.apk-job-link-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: #6c143c;
  color: #fff;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 200ms ease;
}
.apk-job-link:hover img,
.apk-job-link:focus-visible img {
  border-color: #6c143c;
}
.apk-job-link:hover .apk-job-link-cta,
.apk-job-link:focus-visible .apk-job-link-cta {
  background: #53102e;
  color: #fff;
}
.apk-home-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 4px;
}
.apk-home-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 6px;
  font-family: 'Brygada 1918', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: #6c143c;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(108, 20, 60, 0.35);
  transition: color 200ms ease, border-color 200ms ease;
}
.apk-home-contact-link:hover,
.apk-home-contact-link:focus-visible {
  color: #53102e;
  border-bottom-color: #53102e;
}

/* Wellness-Galerie mobil: Elementor setzt margin:0 -15px -15px 0 und
   padding-right:15px; bei 1 Spalte schiebt das die Bilder nach rechts und
   erzeugt 15px Horizontal-Overflow. Auf Mobile ohne Negativmargen. */
@media (max-width: 767px) {
  .elementor-image-gallery .gallery {
    margin: 0 !important;
  }
  .elementor-image-gallery .gallery-item {
    width: 100% !important;
    padding: 0 0 15px !important;
  }
}
