/* ==========================================================================
   Die Therapeuten – Zirndorf
   Ein Stylesheet, kein Framework. Zielbrowser: aktuelle Evergreens
   sowie Safari/iOS ab 12. Moderne Features nur mit Fallback davor.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, keine Google-Verbindung) ---------- */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (aus dem Praxis-Logo abgeleitet) ---------- */
:root {
  --ink: #102c3a;        /* Text */
  --ink-soft: #4a5f6c;   /* Sekundärtext */
  --navy: #0f425b;       /* Logo-Petrol: Hauptfarbe */
  --navy-dark: #0a3247;
  --berry: #c93d71;      /* Logo-Beere: nur für Handlungen */
  --berry-dark: #b12f60;
  --sky: #e3f0f4;        /* aus Logo-Hellblau, ruhige Fläche */
  --sky-strong: #b3d7e2;
  --blush: #f7ebe8;      /* aus Logo-Rosé, warme Fläche */
  --rose: #dca6a5;
  --paper: #fffdfc;
  --line: #dde5e9;
  --focus: #c93d71;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: 1.25rem;
  --radius: 14px;
  --radius-lg: 28px;
  --pebble: 56% 44% 47% 53% / 45% 52% 48% 55%;
  --pebble-2: 47% 53% 41% 59% / 55% 44% 56% 45%;
  --pebble-3: 61% 39% 52% 48% / 49% 58% 42% 51%;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 48em) {
  body { font-size: 1.125rem; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: 2.25rem; font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem); line-height: 1.08; }
h2 { font-size: 1.75rem; font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem); }
h3 { font-size: 1.3rem; font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem); line-height: 1.25; }
h4 { font-family: var(--font-text); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3em; }

p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 66ch; }
strong { font-weight: 650; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-dark); text-decoration-thickness: 2px; }

/* Sichtbarer Fokus: Fallback für ältere Browser, dann :focus-visible */
a:focus,
button:focus,
summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible) { outline: none; }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 48em) { :root { --gutter: 2rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; margin-right: 0.5em; flex-shrink: 0; }
.btn--berry { background: var(--berry); color: #fff; }
.btn--berry:hover { background: var(--berry-dark); color: #fff; text-decoration: none; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy-dark); text-decoration: none; }

.btn-row { display: flex; flex-wrap: wrap; margin: -0.375rem; }
.btn-row > * { margin: 0.375rem; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  -webkit-transition: border-color .2s ease, box-shadow .2s ease;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,66,91,.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}
@media (min-width: 48em) { .header-inner { min-height: 5.25rem; } }

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 3rem; }
@media (min-width: 48em) { .brand img { height: 3.4rem; } }

.nav-toggle {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; margin-right: 0.55rem; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  -webkit-transition: -webkit-transform .2s ease, opacity .2s ease;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { -webkit-transform: translateY(5px) rotate(45deg); transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { -webkit-transform: translateY(-5px) rotate(-45deg); transform: translateY(-5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.site-nav li { margin-left: 0.25rem; }
.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover { background: var(--sky); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--sky); color: var(--navy-dark); }
.site-nav .nav-call { margin-left: 0.5rem; }
.site-nav .nav-call a { background: var(--berry); color: #fff; padding-left: 1.1rem; padding-right: 1.1rem; }
.site-nav .nav-call a:hover { background: var(--berry-dark); color: #fff; }

/* Mobile Navigation: nur mit JS eingeklappt, ohne JS bleibt sie sichtbar */
@media (max-width: 61.99em) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: 0.75rem; }
  .site-nav li { margin: 0; }
  .site-nav .nav-call { display: none; }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { display: block; padding: 0.25rem 0 1rem; }
  .js .site-nav a { padding: 0.85rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .js .site-nav a:hover,
  .js .site-nav a[aria-current="page"] { background: transparent; color: var(--navy); }
}

/* Öffnungsstatus */
.open-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.open-status::before {
  content: "";
  width: 0.6rem; height: 0.6rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #9aa7a3;
}
.open-status.is-open::before { background: #3e9a6a; box-shadow: 0 0 0 4px rgba(62,154,106,.2); }
.open-status:empty { display: none; }

/* ---------- Abschnitte ---------- */
.section { padding: 3.5rem 0; }
@media (min-width: 48em) { .section { padding: 5.5rem 0; } }
.section--blush { background: var(--blush); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #eef5f8; --focus: #b3d7e2; }
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--navy a { color: #fff; }

.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1em; }
.section--navy .section-head p { color: #cfe2ea; }

.lead { font-size: 1.15em; color: var(--ink-soft); max-width: 36rem; }

/* ---------- Hero (Startseite) ---------- */
.hero { padding: 1.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; grid-gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-media { position: relative; }
.hero-media .pebble { border-radius: var(--pebble); overflow: hidden; background: var(--sky); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 72%; }
.hero-media .pebble img { height: 20rem; }
.hero-badge {
  position: absolute;
  left: -0.25rem;
  bottom: 0.5rem;
  max-width: 15rem;
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -18px rgba(15,66,91,.55);
  font-size: 0.95rem;
  line-height: 1.4;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--navy-dark); }

@media (min-width: 62em) {
  .hero { padding: 2.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; grid-gap: 4rem; }
  .hero-media .pebble img { height: 33rem; }
  .hero-badge { left: -2rem; bottom: 2.5rem; }
}

/* Unterseiten-Kopf */
.page-hero { padding: 2rem 0 2.5rem; background: var(--sky); }
.page-hero h1 { font-size: 2.1rem; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
@media (min-width: 48em) { .page-hero { padding: 3.5rem 0 4rem; } }

/* ---------- Beschwerden-Liste ---------- */
.complaints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0 2.5rem;
}
@media (min-width: 40em) { .complaints { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62em) { .complaints { grid-template-columns: 1fr 1fr 1fr; } }
.complaints li { padding: 1.1rem 0 1.2rem; border-top: 1px solid rgba(15,66,91,.18); }
.complaints h3 { margin-bottom: 0.3rem; font-size: 1.25rem; }
.complaints p { margin: 0; color: var(--ink-soft); }

/* ---------- Ablauf erster Termin (echte Reihenfolge) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr; grid-gap: 2rem; }
@media (min-width: 48em) { .steps { grid-template-columns: 1fr 1fr; grid-gap: 2.5rem 3rem; } }
@media (min-width: 70em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--pebble-2);
  background: var(--berry);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 2.75rem;
  text-align: center;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.section--navy .steps p { color: #cfe2ea; }

/* ---------- Angebote (drei Wege) ---------- */
.offers { display: grid; grid-template-columns: 1fr; grid-gap: 1.25rem; }
@media (min-width: 62em) { .offers { grid-template-columns: 1.2fr 1fr 1fr; grid-gap: 1.5rem; } }
.offer {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.offer--main { background: var(--navy); border-color: var(--navy); color: #e6f0f4; --focus: #b3d7e2; }
.offer--main h3 { color: #fff; }
.offer--main a { color: #fff; }
.offer h3 { margin-bottom: 0.5rem; }
.offer ul { padding-left: 1.1rem; margin-bottom: 1.25rem; }
.offer li { margin-bottom: 0.2rem; }
.offer .more { margin-top: auto; font-weight: 650; }
.offer p { color: inherit; }

/* ---------- Bild + Text ---------- */
.split { display: grid; grid-template-columns: 1fr; grid-gap: 2.5rem; align-items: center; }
@media (min-width: 62em) {
  .split { grid-template-columns: 1fr 1fr; grid-gap: 4.5rem; }
  .split--flip > :first-child { -webkit-box-ordinal-group: 3; order: 2; }
}
.split-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); }
.split-media img { width: 100%; height: 18rem; object-fit: cover; }
@media (min-width: 62em) { .split-media img { height: 28rem; } }
.split-media.pebble { border-radius: var(--pebble-3); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.checks li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 0.45em;
  width: 1.05rem; height: 0.6rem;
  border-left: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  -webkit-transform: rotate(-45deg); transform: rotate(-45deg);
}

/* ---------- Team ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 2rem 1.25rem; }
@media (min-width: 40em) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62em) { .team { grid-template-columns: repeat(5, 1fr); grid-gap: 2.5rem 1.75rem; } }
.member-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 11rem;
  border-radius: var(--pebble);
  background: var(--sky);
  margin-bottom: 1rem;
}
@media (min-width: 40em) { .member-photo { height: 14rem; } }
@media (min-width: 62em) { .member-photo { height: 12.5rem; } }
.team li:nth-child(2n) .member-photo { border-radius: var(--pebble-2); background: var(--blush); }
.team li:nth-child(3n) .member-photo { border-radius: var(--pebble-3); }
.member-photo picture { height: 86%; }
.member-photo img { width: auto; height: 100%; max-width: none; }
.member-photo > img { height: 86%; }
.member-initials {
  display: flex; align-items: center; justify-content: center;
  width: 9rem; height: 9rem; max-width: 86%;
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--navy);
}
.member h3 { margin-bottom: 0.15rem; font-size: 1.2rem; }
.member .role { color: var(--ink-soft); font-size: 0.95em; margin: 0; }
.member .bio { margin-top: 0.6rem; font-size: 0.97em; }

/* ---------- Leistungen (Detailseite) ---------- */
.service-group { padding-top: 0.5rem; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; grid-gap: 0 3rem; }
@media (min-width: 48em) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-list li { padding: 1.25rem 0 1.35rem; border-top: 1px solid var(--line); }
.service-list h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.service-list p { margin: 0; color: var(--ink-soft); }

.toc { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 1.5rem -0.3rem 0; }
.toc li { margin: 0.3rem; }
.toc a {
  display: inline-block; padding: 0.45rem 0.95rem;
  border-radius: 999px; background: var(--paper);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.toc a:hover { background: #fff; }

.note {
  max-width: 48rem;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--rose);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95em;
  color: var(--ink-soft);
}
.note p { margin: 0; }

/* ---------- Kosten ---------- */
.pay { display: grid; grid-template-columns: 1fr; grid-gap: 1.25rem; }
@media (min-width: 62em) { .pay { grid-template-columns: repeat(3, 1fr); grid-gap: 1.5rem; } }
.pay-item { padding: 1.6rem 1.6rem 1.4rem; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pay-item h3 { margin-bottom: 0.4rem; }
.pay-item p { margin-bottom: 0.6rem; }
.pay-item .who { font-weight: 650; color: var(--navy-dark); }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 650;
  font-size: 1.05em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 0.4rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  margin-top: -0.4rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  -webkit-transform: rotate(45deg); transform: rotate(45deg);
  -webkit-transition: -webkit-transform .2s ease; transition: transform .2s ease;
}
.faq details[open] summary::after { -webkit-transform: rotate(-135deg); transform: rotate(-135deg); margin-top: -0.1rem; }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; grid-gap: 2.5rem; }
@media (min-width: 62em) { .contact-grid { grid-template-columns: 1.1fr 1fr; grid-gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.contact-list li { display: flex; align-items: flex-start; padding: 0.55rem 0; }
.contact-list svg { width: 1.35rem; height: 1.35rem; margin: 0.2rem 0.85rem 0 0; flex-shrink: 0; color: var(--berry); }
.section--navy .contact-list svg { color: var(--sky-strong); }
.section--navy .contact-list a { color: #fff; }
.contact-list a { font-weight: 600; }

.hours { width: 100%; max-width: 26rem; border-collapse: collapse; margin-bottom: 1rem; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,.22); font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }
.section:not(.section--navy) .hours th,
.section:not(.section--navy) .hours td { border-bottom-color: var(--line); }
.hours tr.is-today th,
.hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " (heute)"; font-weight: 400; opacity: .8; }

.map-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blush);
  color: var(--ink);
  text-decoration: none;
}
.map-card:hover { color: var(--ink); text-decoration: none; }
.map-card img { width: 100%; height: 15rem; object-fit: cover; }
.map-card span { display: block; padding: 1rem 1.25rem; font-weight: 650; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.todo { background: #fff3cd; padding: 0 0.25em; border-radius: 3px; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--ink); color: #c5d3da; padding: 3.5rem 0 2rem; font-size: 0.97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; grid-gap: 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.25rem; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer-legal p { margin: 0.25rem 1.5rem 0.25rem 0; }
.footer-legal ul { display: flex; }
.footer-legal li { margin: 0.25rem 1.25rem 0.25rem 0; }

/* ---------- Mobile Aktionsleiste ---------- */
.action-bar { display: none; }
@media (max-width: 47.99em) {
  body { padding-bottom: 4.6rem; }
  .action-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -18px rgba(15,66,91,.6);
    padding: 0.5rem 0.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  }
  .action-bar a {
    -webkit-box-flex: 1; flex: 1 1 0%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 3.2rem;
    margin: 0 0.25rem;
    border-radius: 12px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
  }
  .action-bar a svg { width: 1.35rem; height: 1.35rem; margin-bottom: 0.15rem; color: var(--navy); }
  .action-bar a.is-primary { background: var(--berry); color: #fff; }
  .action-bar a.is-primary svg { color: #fff; }
}

/* ---------- Bewegung ---------- */
/* Ein einziger Moment: das Hero-Bild atmet beim Laden einmal ein. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media .pebble {
    -webkit-animation: breathe 1.4s cubic-bezier(.2,.7,.2,1) both;
    animation: breathe 1.4s cubic-bezier(.2,.7,.2,1) both;
  }
}
@-webkit-keyframes breathe {
  from { opacity: 0; -webkit-transform: scale(.94); border-radius: 50%; }
  to { opacity: 1; -webkit-transform: none; }
}
@keyframes breathe {
  from { opacity: 0; transform: scale(.94); border-radius: 50%; }
  to { opacity: 1; transform: none; }
}

@media print {
  .site-header, .action-bar, .site-footer { display: none; }
  body { padding: 0; }
}

/* Grid-Kinder dürfen schrumpfen (verhindert Überlauf durch große Bilder/lange Wörter) */
.hero-grid > *,
.split > *,
.contact-grid > *,
.offers > *,
.pay > *,
.team > li,
.steps > li,
.complaints > li,
.service-list > li,
.footer-grid > * { min-width: 0; }
.contact-list a,
.site-footer a { overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
