/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/inter-v20-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/inter-v20-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/inter-v20-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* =========================================
   PHYSIOTHERAPIE ZELS – style.css
   Minimalistisch · Modern · Viel Weißraum
   ========================================= */

/* --- CSS VARIABLES --- */
:root {
  --color-accent: #6499ff;
  --color-accent-dark: #3a76e8;
  --color-accent-light: #e8eeff;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fc;
  --color-border: #e5e7eb;
  --color-white: #ffffff;

  --font-display: "Inter", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 12px rgba(100, 153, 255, 0.08);
  --shadow-md: 0 8px 32px rgba(100, 153, 255, 0.14);
  --shadow-lg: 0 20px 60px rgba(100, 153, 255, 0.18);

  --header-h: 88px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1120px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
address {
  font-style: normal;
}
figure {
  margin: 0;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 17px;
}

.heading-sub {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
  margin-bottom: 0.6em;
}

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

.text-link {
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.text-link:hover {
  border-color: var(--color-accent);
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section {
  padding: var(--space-xl) 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-text {
  max-width: 720px;
  margin-bottom: var(--space-lg);
}
.section-text h1,
.section-text h2 {
  margin-bottom: var(--space-sm);
}

/* --- HEADER --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
#header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo-link {
  display: flex;
  align-items: center;
}
.logo {
  height: 72px;
  width: auto;
  transition: opacity var(--transition);
}
.logo:hover {
  opacity: 0.8;
}

#hauptnavi ul {
  display: flex;
  gap: 2rem;
}
#hauptnavi a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
#hauptnavi a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
#hauptnavi a:hover,
#hauptnavi a.active {
  color: var(--color-text);
}
#hauptnavi a:hover::after,
#hauptnavi a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  padding-top: var(--header-h);
}
.section:first-child {
  padding-top: 0;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: var(--space-lg);
}

/* Single-image variant (Leistungen section) */
.hero-slider--single {
  height: 340px;
  margin-bottom: var(--space-lg);
  pointer-events: none;
}
.hero-slider--single .slider-btn,
.hero-slider--single .slider-dots {
  display: none;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;

  /* placeholder color shown before image loads */
  background: linear-gradient(135deg, #dce8ff 0%, #eef3ff 100%);
}

.hero-slide figcaption {
  position: absolute;
  bottom: 10rem;
  right: 15rem;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: none;
  backdrop-filter: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
  text-align: right;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.figcaption-title {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.2em;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Slider buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.slider-btn:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}
.slider-prev {
  left: calc(1rem + 36px);
}
.slider-next {
  right: calc(1rem + 36px); /* 36px = Breite des Slidebox-Tabs */
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* ============================================
   LEISTUNGEN – PILL LISTS
   ============================================ */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.leistungen-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.leistungen-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.leistungen-card h3 {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

/* Pills */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pill-list span {
  display: inline-block;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 5px 12px;
  line-height: 1.5;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}
.leistungen-card:hover .pill-list span {
  background: var(--color-accent-light);
  border-color: rgba(100, 153, 255, 0.4);
  color: var(--color-accent-dark);
}

/* --- GALERIE --- */
.galerie {
  padding-top: var(--space-lg);
}
.galerie h2 {
  margin-bottom: var(--space-md);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}
.galerie-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  cursor: pointer;
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.9);
}
.galerie-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* --- HEILPRAKTIKER GRID --- */
.heilpraktiker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  justify-items: center;
}
/* Letzte Zeile (Karte 5–7 von 7) zentrieren */
.heilpraktiker-grid .heilpraktiker-card:nth-child(5),
.heilpraktiker-grid .heilpraktiker-card:nth-child(6),
.heilpraktiker-grid .heilpraktiker-card:nth-child(7) {
  /* Bei 7 Kacheln in 4er-Grid: Zeile 2 hat 3 Karten → erste Karte in Zeile 2 beginnt bei Spalte 1 */
}
/* Stattdessen: flexbox-zentriertes Grid mit wrap für echte Symmetrie */
.heilpraktiker-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}
.heilpraktiker-card {
  flex: 0 0 calc(25% - var(--space-md));
  min-width: 148px;
  max-width: 200px;
}
.heilpraktiker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.heilpraktiker-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.heilpraktiker-card figure {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 50%;
  padding: 14px;
}
.heilpraktiker-card figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.heilpraktiker-card h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

/* --- ÜBER UNS --- */
.ueber-uns-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-xl);
}
.ueber-uns-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  object-position: 35% center;
  aspect-ratio: 3/4;
}
.ueber-uns-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.05rem;
}
.signatur {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text-muted);
}
.stellenausschreibung {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
}
.stellenausschreibung h2 {
  margin-bottom: var(--space-sm);
}

/* --- KONTAKT --- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.kontakt-info h2 {
  margin-bottom: var(--space-md);
}
.kontakt-info address {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.kontakt-img {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 340px;
}
.kontakt-zeiten h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.sprechzeiten {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  align-items: baseline;
}
.sprechzeiten dt {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}
.sprechzeiten dd {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* ============================================
   SLIDE-IN ASIDE (Krankenkassen)
   Tab immer bündig am rechten Bildschirmrand.
   Panel fährt links neben dem Tab heraus.
   ============================================ */

/* Wrapper: tab + panel nebeneinander, flush rechts */
#slidebox {
  position: fixed;
  right: 0;
  bottom: 30%;
  z-index: 90;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  pointer-events: none;
}

/* Tab-Button — ganz rechts, keine border-radius auf der rechten Seite */
.slidebox-tab {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 36px;
  padding: 16px 0;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
  box-shadow: -3px 0 12px rgba(100, 153, 255, 0.3);
  pointer-events: all; /* Tab bleibt immer klickbar */
}
.slidebox-tab:hover {
  background: var(--color-accent-dark);
}
.slidebox-tab svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}
/* Pfeil zeigt links (← panel ist links) */
#slidebox.open .slidebox-tab svg {
  transform: rotate(180deg);
}

.slidebox-tab span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Panel — links vom Tab, per translateX versteckt */
.slidebox-content {
  order: 1;
  width: 260px;
  background: var(--color-white);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 4px);
  border: 1px solid var(--color-border);
  border-right: none;
  position: relative;
  transform: translateX(calc(100% + 36px));
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* Unsichtbares Panel blockiert nichts */
}

#slidebox.open .slidebox-content {
  transform: translateX(0);
  pointer-events: all; /* Geöffnetes Panel ist klickbar */
}

.slidebox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition);
  line-height: 1;
}
.slidebox-close:hover {
  color: var(--color-text);
}

.slidebox-content h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  line-height: 1.2;
}
.slidebox-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.slidebox-content a {
  color: var(--color-accent);
}

/* --- SCROLL TOP BUTTON --- */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition),
    background var(--transition);
  z-index: 80;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#scroll-top:hover {
  background: var(--color-accent-dark);
}

/* --- FOOTER --- */
#footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: flex-start;
  justify-content: space-between;
}
.footer-col p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 0;
}
.footer-col a {
  color: var(--color-accent-light);
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--color-white);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--color-white);
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE: TABLET  ≤ 900px
   ============================================ */
@media (max-width: 900px) {
  .ueber-uns-content {
    grid-template-columns: 1fr;
  }
  .ueber-uns-img {
    max-width: 320px;
  }
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    height: 380px;
  }
  .hero-slider--single {
    height: 240px;
  }
}

/* ============================================
   RESPONSIVE: MOBILE  ≤ 640px
   ============================================ */
@media (max-width: 640px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 4rem;
  }

  .nav-toggle {
    display: flex;
  }

  #hauptnavi {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: var(--space-md);
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
    z-index: 99;
  }
  #hauptnavi.open {
    transform: translateY(0);
  }
  #hauptnavi ul {
    flex-direction: column;
    gap: 0;
  }
  #hauptnavi a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
  }
  #hauptnavi ul li:last-child a {
    border-bottom: none;
  }

  .hero-slider {
    height: 260px;
  }
  .hero-slider--single {
    height: 180px;
  }
  .hero-slide figcaption {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
  }
  .figcaption-title {
    font-size: 1.3rem;
  }
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .leistungen-grid {
    grid-template-columns: 1fr;
  }
  .heilpraktiker-card {
    flex: 0 0 calc(50% - var(--space-md));
  }
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
  }
  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .sprechzeiten {
    grid-template-columns: 1fr;
  }
  .sprechzeiten dd {
    text-align: left;
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  #scroll-top {
    bottom: 1rem;
    right: 1rem;
  }

  /* Slidebox on mobile: sit lower, narrower panel */
  #slidebox {
    bottom: 5rem;
  }
  .slidebox-content {
    width: 220px;
    transform: translateX(calc(100% + 36px));
  }
  #slidebox.open .slidebox-content {
    transform: translateX(0);
  }
}

/* ============================================
   UNTERSEITEN (Impressum, Datenschutz, Disclaimer)
   ============================================ */

/* Subpage body gets a simple top offset like main */
body.subpage main {
  padding-top: var(--header-h);
}

/* Breadcrumb back-link */
.breadcrumb {
  padding: var(--space-sm) 0 0;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: gap var(--transition);
}
.breadcrumb a:hover {
  gap: 10px;
}
.breadcrumb a svg {
  flex-shrink: 0;
}

/* Legal page layout */
.legal-page {
  padding: var(--space-lg) 0 var(--space-xl);
}

.legal-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

/* Two-column layout for Impressum */
.legal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 720px) {
  .legal-cols {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Info blocks (each §-section) */
.legal-block {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.legal-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.legal-block h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.4rem;
}

/* Prose text inside legal blocks */
.legal-block p,
.legal-prose p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 0.75em;
}
.legal-block p:last-child,
.legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-block address {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.75em;
}

.legal-block strong {
  font-weight: 600;
  color: var(--color-text);
}

.legal-block a,
.legal-prose a {
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.legal-block a:hover,
.legal-prose a:hover {
  border-color: var(--color-accent);
}

/* Standalone prose section (full-width) */
.legal-prose {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.legal-prose:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-prose h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}
.legal-prose h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin: var(--space-sm) 0 0.4rem;
}

/* Map embed */
.legal-map {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.legal-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: none;
}
.legal-map-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}
.legal-map-toggle:hover {
  background: #dce8ff;
}
.legal-map-iframe {
  display: none;
}
.legal-map.open .legal-map-iframe {
  display: block;
}

/* ============================================
   SUBPAGES: Impressum, Datenschutz, Disclaimer
   ============================================ */

/* Body offset — subpages have no hero, so give generous top breathing room */
.subpage main.subpage-main {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  min-height: 70vh;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.breadcrumb a {
  color: var(--color-accent);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--color-accent-dark);
}
.breadcrumb span[aria-hidden] {
  color: var(--color-border);
}

/* Article wrapper */
.legal-content {
  max-width: 960px;
}

.legal-content > h1 {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

/* Two-column grid for Impressum */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* Individual section block */
.legal-section {
  margin-bottom: var(--space-md);
}

/* Full-width section (e.g. Quellenangaben) */
.legal-section--full {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
  margin-top: var(--space-sm);
}

.legal-section h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.legal-section p strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Lists inside legal text */
.legal-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.legal-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}

.legal-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Responsive: single column on tablet and below */
@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-section--full {
    grid-column: 1;
  }
  .subpage main.subpage-main {
    padding-top: calc(var(--header-h) + var(--space-lg));
  }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE  ≤ 420px
   ============================================ */
@media (max-width: 420px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --header-h: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Header */
  .logo {
    height: 52px;
  }

  /* Hero */
  .hero-slider {
    height: 220px;
  }
  .hero-slide figcaption {
    bottom: 0.9rem;
    right: 0.9rem;
    font-size: 1.1rem;
  }
  .figcaption-title {
    font-size: 1.7rem;
    margin-bottom: 0.15em;
  }
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .slider-prev {
    left: 0.5rem;
  }
  .slider-next {
    right: 0.5rem;
  }

  /* Leistungen */
  .leistungen-card {
    padding: 1rem;
  }
  .pill-list span {
    font-size: 0.78rem;
    padding: 4px 9px;
  }

  /* Galerie */
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* Heilpraktiker */
  .heilpraktiker-card {
    flex: 0 0 calc(50% - 1rem);
    padding: 1rem 0.5rem;
  }
  .heilpraktiker-card figure {
    width: 58px;
    height: 58px;
  }
  .heilpraktiker-card h3 {
    font-size: 0.78rem;
  }

  /* Über uns */
  .ueber-uns-img {
    max-width: 100%;
  }

  /* Kontakt */
  .kontakt-img {
    max-width: 100%;
  }

  /* Headings */
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 16px;
  }

  .heading-sub {
    font-size: 16px;
  }

  /* Slidebox */
  #slidebox {
    bottom: 5rem;
  }
  .slidebox-content {
    width: 190px;
  }
  .slidebox-tab {
    width: 30px;
  }
  .slidebox-content {
    transform: translateX(calc(100% + 30px));
  }

  /* Stellenausschreibung */
  .stellenausschreibung {
    padding-top: var(--space-md);
  }

  /* Footer */
  .footer-inner {
    gap: 1.25rem;
  }
}

/* ============================================
   RESPONSIVE: MINIMUM  ≤ 320px
   ============================================ */
@media (max-width: 320px) {
  :root {
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --header-h: 56px;
  }

  .container {
    padding: 0 0.75rem;
  }

  /* Header */
  .logo {
    height: 44px;
  }
  #hauptnavi a {
    font-size: 0.9rem;
    padding: 0.75rem 0;
  }

  /* Hero */
  .hero-slider {
    height: 190px;
  }
  .hero-slide figcaption {
    bottom: 0.6rem;
    right: 0.6rem;
    font-size: 0.95rem;
  }
  .figcaption-title {
    font-size: 1.4rem;
  }
  .slider-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  /* Typography */
  h1 {
    font-size: 19px;
  }
  h2 {
    font-size: 17px;
  }
  h3 {
    font-size: 15px;
  }
  .heading-sub {
    font-size: 14px;
  }
  p {
    font-size: 0.875rem;
  }

  /* Leistungen */
  .pill-list span {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  /* Galerie: single column on tiny screens */
  .galerie-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Heilpraktiker: single column */
  .heilpraktiker-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 120px;
  }
  .heilpraktiker-card figure {
    width: 50px;
    height: 50px;
    padding: 10px;
  }
  .heilpraktiker-card h3 {
    font-size: 0.72rem;
  }

  /* Kontakt */
  .sprechzeiten {
    gap: 0.2rem 0.5rem;
  }
  .sprechzeiten dt,
  .sprechzeiten dd {
    font-size: 0.82rem;
  }

  /* Slidebox: hide panel text on tiny screens */
  .slidebox-tab span {
    display: none;
  }
  .slidebox-tab {
    width: 28px;
    padding: 12px 0;
  }
  .slidebox-content {
    width: 200px;
    transform: translateX(calc(100% + 28px));
    padding: 0.75rem;
  }
  #slidebox.open .slidebox-content {
    transform: translateX(0);
  }

  /* Scroll top */
  #scroll-top {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  /* Footer */
  .footer-col p,
  .footer-nav a {
    font-size: 0.78rem;
  }

  /* Legal subpages */
  .legal-section h2 {
    font-size: 0.65rem;
  }
  .legal-section p {
    font-size: 0.85rem;
  }
  .subpage main.subpage-main {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 2rem;
  }
}
