/* ===== Platzhalter: Header / Nav / Footer ===== */
.placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--color-surface-alt),
    var(--color-surface-alt) 12px,
    #e4e7e9 12px,
    #e4e7e9 24px
  );
  color: var(--color-secondary);
  text-align: center;
  font-size: var(--fs-small);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 18px;
  border: 1px dashed var(--color-secondary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  /* volle Breite: Logo am linken, CTA am rechten Bildschirmrand */
  max-width: none;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand__logo {
  height: 38px;
  width: auto;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

/* ----- Navigation ----- */
.nav {
  flex: 1 1 auto;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.nav__item {
  position: relative;
}

.nav__list a,
.nav__top {
  display: flex;
  align-items: center;
  line-height: 1.2;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.nav__list a:hover,
.nav__top:hover {
  color: var(--color-link);
  text-decoration: none;
}

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

.nav__top::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

/* Dropdown */
.nav__sub {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.nav__sub--cols {
  min-width: 540px;
  columns: 2;
  column-gap: 12px;
}

/* nach links aufklappen, damit Dropdown nicht rechts abgeschnitten wird */
.nav__sub--right {
  left: auto;
  right: 0;
}

.nav__sub li {
  break-inside: avoid;
}

.nav__sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav__sub a:hover {
  background: var(--tint-slate-10);
}

/* OP-Icons im Dropdown: max so gross wie der Text (1em) */
.nav__ico {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  object-fit: contain;
}

.nav__item.has-sub:hover .nav__sub,
.nav__item.has-sub:focus-within .nav__sub,
.nav__item.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__cta {
  flex: 0 0 auto;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--color-link);
  color: var(--color-white);
  border: 2px solid var(--color-link);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42, 100, 170, 0.35);
}

.btn--sm {
  padding: 9px 22px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Ghost-Button (sekundaere Aktion, z.B. "Mehr anzeigen") */
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* "Mehr anzeigen": sichtbar auf Mobile + Desktop (blendet ueberzaehlige
   Kacheln aus; mobil erste 6, Desktop erste 8 = 2 Reihen). */
.treat-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* Mobiler schwebender CTA (unten): nur mobil, siehe Media-Query unten */
.mobile-cta-bar {
  display: none;
}

/* ===== Rechtstext-Seiten (Impressum / Datenschutz als Direktseite) ===== */
.legal-page .container {
  max-width: 860px;
}
.legal-page h1 {
  margin-bottom: 0.6em;
}
.legal h3 {
  margin-top: 1.8em;
}
.legal p {
  margin: 0 0 1em;
}
.legal ul {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}
.legal li {
  margin-bottom: 0.3em;
}
.legal a {
  color: var(--color-link);
  word-break: break-word;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(50vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_2_oaudf.webp");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 40px 24px 104px;
  display: grid;
  gap: 16px;
}

.hero h1 {
  color: var(--color-white);
  margin: 0;
}

.hero .btn {
  justify-self: start;
}

/* Hero-Variante Leistungen & Therapien (eigenes Hintergrundbild) */
.hero--lt {
  background-image:
    linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_lv9su.webp");
}

.badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  background: var(--color-card-mint);
  color: #3f443f;
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
}

.badge img {
  width: 34px;
  height: auto;
  flex: 0 0 auto;
}

.badge strong {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
}

/* ===== Kurzbeschreibung ===== */
.intro {
  background-color: var(--color-surface-alt);
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.intro > .container {
  width: 100%;
}

.intro__grid {
  align-items: center;
  gap: 56px;
}

.intro__text {
  flex: 1.3 1 0;
}

.intro__text .cta-row {
  /* Fachgebiete-Subpages: ersten CTA der Fachgebietssektion zentrieren
     (Desktop). Mobil ist .cta-row ohnehin zentriert (Media-Query unten). */
  justify-content: center;
  margin-top: 32px;
}

.intro__facts {
  order: -1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Ringbandspaltung-Icon: Hoehe = Hoehe der Fakten-Liste (per JS gesetzt), quadratisch */
.intro__icon {
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Fakten-Card: Breite haengt am Inhalt (Liste + volle-Hoehe-Icon), zentriert */
.facts-card {
  position: relative;
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
}

.facts {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.facts__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-slate-10);
  color: var(--color-link);
  font-size: 16px;
}

/* ===== Generische Section-Header ===== */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-head p {
  color: var(--color-secondary);
}

/* Eyebrow / Kicker ueber jedem H2 */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-secondary);
  line-height: 1.4;
  margin: 0 0 16px;
}

/* ===== Ablauf (Schritte) ===== */
.steps {
  background: var(--color-surface);
}

.step {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.step__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-secondary);
  opacity: 0.35;
  margin-bottom: 10px;
}

.step h3 {
  color: var(--color-primary);
}

/* ===== Blurb-Karten (Vorbereitung / Weitere Infos) ===== */
.prep {
  background-color: var(--color-surface-alt);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.95)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_4_9m6bi.webp");
  background-size: cover;
  background-position: center;
}

/* Vorbereitungs-Hintergrund Leistungen & Therapien */
.prep--lt {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.95)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_3_cibca.webp");
}

.blurb-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  height: 100%;
  text-align: center;
}

.blurb-card .blurb-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-slate-10);
  color: var(--color-link);
  font-size: 26px;
}

.blurb-card h3 {
  color: var(--color-primary);
}

.blurb-card p {
  color: var(--color-text);
}

/* ===== Zitat ===== */
.quote {
  background: var(--tint-slate-10);
}

/* 2-spaltig: Zitat 75%, Bild 25%, mit Abstand */
.quote__grid {
  display: flex;
  align-items: center;
  gap: 56px;
}

.quote__main {
  flex: 3 1 0;
  min-width: 0;
  text-align: center;
}

.quote__media {
  flex: 1 1 0;
  min-width: 0;
}

.quote__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.quote__icon {
  font-size: 50px;
  color: var(--color-secondary);
  margin-bottom: 18px;
}

.quote__text p {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--color-primary);
  font-weight: 500;
  font-style: italic;
}

.quote__name {
  margin-top: 24px;
  font-weight: 600;
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .quote__grid {
    flex-direction: column;
    text-align: center;
  }

  .quote__media {
    align-self: center;
    width: 55%;
    max-width: 200px;
  }
}

/* ===== Bewertungen (Carousel) ===== */
.reviews {
  background-color: var(--tint-slate-03);
  background-image:
    linear-gradient(rgba(212, 219, 226, 0.95), rgba(236, 238, 241, 0.7)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_a43fr.webp");
  background-size: cover;
  background-position: center;
  padding: 60px 0 70px;
}

.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
  /* symmetrischer Platz, damit Karten-Schatten rundum sauber sichtbar ist */
  padding: 60px 0;
}

.carousel__track {
  display: flex;
  transition: transform 0.8s ease;
}

.review {
  flex: 0 0 100%;
  /* Seitenplatz fuer Schatten -> kein hartes Clipping, kein Nachbar-Peek */
  padding: 0 44px;
  /* Karte vertikal mittig im Slide -> Pfeile mittig zur Karte */
  display: flex;
  align-items: center;
}

.review__card {
  width: 100%;
  display: block;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px 38px;
  box-shadow: var(--shadow-card);
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.review__stars {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

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

.review__name {
  margin-top: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

/* "… mehr"-Hinweis bei mobil gekuerztem Zitat (per JS angehaengt) */
.review__more {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.carousel__btn--prev {
  left: -64px;
}

.carousel__btn--next {
  right: -64px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary);
  opacity: 0.4;
  cursor: pointer;
  padding: 0;
}

.carousel__dot.is-active {
  opacity: 1;
  background: var(--color-primary);
}

/* ===== Alternativen ===== */
.alternatives .row {
  align-items: center;
  gap: 50px;
}

.alternatives img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.alternatives h2 {
  color: var(--color-primary);
}

/* ===== Video ===== */
.video-section {
  background: linear-gradient(
    rgba(202, 206, 213, 0.25) 0%,
    var(--color-white) 55%
  );
  padding: 25px 0;
}

.video-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.video-frame__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-frame__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: var(--tint-slate-10);
  color: var(--color-text);
}

.video-frame__consent p {
  max-width: 36ch;
  margin: 0;
}

.video-frame__iframe[src] ~ .video-frame__consent {
  display: none;
}

/* ===== FAQ ===== */
.faq {
  background: var(--tint-slate-10);
}

.toggle {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.toggle__head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.toggle__head::after {
  content: "\002B";
  font-size: 1.4rem;
  color: var(--color-link);
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

.toggle.is-open .toggle__head::after {
  transform: rotate(45deg);
}

.toggle__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toggle__body-inner {
  padding: 0 24px 22px;
  color: var(--color-text);
}

/* ===== Standorte + Kontakt ===== */
.contact {
  background-image:
    linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_vtccr.webp");
  background-size: cover;
  background-position: center top;
}

.contact .row {
  align-items: start;
  gap: var(--gap);
}

.location {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.location > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.location__body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.location__city {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
}

.location h4 {
  color: var(--color-primary);
  margin: 2px 0 18px;
}

.location__rows {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.location__line {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 8px 22px;
  align-items: start;
  font-size: 0.95rem;
}

.location__line dt {
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.location__line dd {
  margin: 0;
  white-space: pre-line;
  color: var(--color-text);
}

.location__actions {
  margin-top: auto;
  display: grid;
  gap: 18px;
}

.location .btn {
  width: 100%;
}

/* Kontaktformular */
.contact-form {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 28px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Nachrichten-Feld faellt flexibel, damit Formular-Hoehe = Standort-Kacheln */
.field--grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field--grow textarea {
  flex: 1 1 auto;
}

.contact-form h3 {
  color: var(--color-primary);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-base);
  font-size: 0.95rem;
  padding: 13px 15px;
  border: 1px solid #d6dbe1;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  color: var(--color-text);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 3px rgba(42, 100, 170, 0.12);
}

.contact-form .btn {
  margin-top: auto;
  width: 100%;
}

/* Fussnote unterhalb der Kachel (out of flow -> Button bleibt am Kachelboden) */
.form-note {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-secondary);
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 56px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 0;
}

.footer-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.8;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Scroll-Reveal (seitenweit) ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Trustbar: dezentes Einschweben von links, gestaffelt */
.trust.reveal {
  transform: translateX(-28px);
}
.trust.reveal.is-visible {
  transform: none;
}
.trust-row .trust:nth-child(1) { transition-delay: 0s; }
.trust-row .trust:nth-child(2) { transition-delay: 0.09s; }
.trust-row .trust:nth-child(3) { transition-delay: 0.18s; }
.trust-row .trust:nth-child(4) { transition-delay: 0.27s; }
.trust-row .trust:nth-child(5) { transition-delay: 0.36s; }

/* ===== Hover-Effekt: alle Kacheln (nach Reveal definiert -> gewinnt) ===== */
.step,
.blurb-card,
.facts-card,
.location,
.contact-form,
.toggle,
.symptom-card,
.treat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover,
.blurb-card:hover,
.facts-card:hover,
.location:hover,
.contact-form:hover,
.toggle:hover,
.symptom-card:hover,
.treat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(36, 52, 71, 0.14);
}

/* Bewertungs-Karten: kein Hover-Lift, keine Unterstreichung */
.review__card:hover {
  text-decoration: none;
}

/* ===== Responsive Grids ===== */
@media (max-width: 1023px) {
  .grid-4 .col {
    flex: 1 1 calc(50% - var(--gap));
  }

  /* Mobile-Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    display: none;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 24px 20px;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
  }

  .nav__item {
    border-top: 1px solid var(--color-surface-alt);
  }

  .nav__top {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav__sub,
  .nav__sub--cols {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: 0;
    columns: 1;
    padding: 0 0 10px 14px;
  }

  .nav__item.is-open .nav__sub {
    display: block;
  }
}

@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
  }

  /* Subpage-Hero (nicht Home): Hintergrund nimmt 50svh ein und reicht bis
     ganz oben unter die schwebende Leiste (body padding-top per
     Negativ-Margin aufheben). svh -> stabil trotz Browser-Adressleiste. */
  .hero:not(.hero--home) {
    margin-top: calc(-1 * var(--header-h));
    min-height: 40vh;
    min-height: 40svh;
    /* h1 in den unteren Bereich: 25% der Hero-Hoehe ueber dem Boden. */
    justify-content: flex-end;
  }
  /* Inhalt unter die schwebende Leiste schieben (sonst ueberlappt der
     fixe Header die h1) + h1 endet 25% (= 10svh von 40svh) ueber dem Boden. */
  .hero:not(.hero--home) .hero__inner {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 10svh;
  }

  .hero .badge {
    position: static;
    align-self: flex-start;
    max-width: 100%;
    margin: 16px;
  }

  .hero h1 {
    font-size: 2rem;
    overflow-wrap: break-word;
  }

  /* CTA-Pillen auf Kachel-Breite: wie die Buttons in den Standort-Kacheln
     (Container 327 - 2x26 Body-Padding = 275, linke Kante bei 50px). */
  .hero .btn {
    justify-self: stretch;
    padding-inline: 18px;
    margin-inline: 26px;
  }

  .alternatives .cta-row {
    padding-inline: 26px;
  }
  .alternatives .cta-row .btn {
    width: 100%;
  }

  .alternatives .row {
    flex-direction: column-reverse;
  }

  .carousel__btn--prev {
    left: -8px;
  }

  .carousel__btn--next {
    right: -8px;
  }

  .location__line {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* =========================================================
   Krankheitsbilder (Seitentyp). Nutzt bestehende Komponenten,
   ergaenzt nur 3er-Grid, Hintergrund-Sektion, Symptom- und
   Behandlungs-Karten. Aendert nichts am bestehenden Stil.
   ========================================================= */

/* 3-spaltiges Grid (Symptome, konservative Behandlungen) */
.grid-3 > .col {
  flex: 0 0 calc((100% - var(--gap) * 2) / 3);
  max-width: calc((100% - var(--gap) * 2) / 3);
}

/* Symptom-Karte: Icon + Text, kein Titel */
.symptom-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.symptom-card .symptom-card__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-slate-10);
  color: var(--color-link);
  font-size: 16px;
}
.symptom-card p {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
}

/* Hero-Variante Krankheitsbilder (eigenes Hintergrundbild) */
.hero--kb {
  background-image:
    linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_477wn.webp");
}
/* Krankheitsbilder: Bildausschnitt mobil etwas nach rechts (Motiv weiter links zeigen) */
@media (max-width: 767px) {
  .hero--kb {
    background-position: 40% center;
  }
}

/* Ursachen & Diagnose: Hintergrundbild mit hellem Overlay (wie .prep) */
.kb-bg {
  background-color: var(--color-surface-alt);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.95)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_2_7lrip.webp");
  background-size: cover;
  background-position: center;
}

/* Behandlungs-Untertitel (Konservativ / Operativ) */
.kb-subhead {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 24px;
}
.kb-group + .kb-group {
  margin-top: 50px;
}

/* Behandlungs-Karte: Icon + Titel + Text (ganze Kachel verlinkt) */
.treat-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  height: 100%;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
a.treat-card:hover h4 {
  color: var(--color-link);
}
.treat-card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

/* Behandlungs-Grid: feste Kartenbreite (4er-Raster) fuer beide Gruppen,
   damit konservative und operative Karten exakt gleich gross sind.
   Weniger als 4 Karten fuellen die Reihe nicht auf (linksbuendig). */
.treat-grid > .col {
  flex: 0 0 calc((100% - var(--gap) * 3) / 4);
  max-width: calc((100% - var(--gap) * 3) / 4);
}
.treat-card h4 {
  color: var(--color-primary);
  margin: 0 0 8px;
}
.treat-card p {
  margin: 0;
}

/* Behandlungs-/Krankheitsbild-Karte mit Foto oben statt Icon */
.treat-card--img {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.treat-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex: 0 0 auto;
}
.treat-card__body {
  flex: 0 0 auto;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
}
/* Feste Zeilen-Reserven -> Titel und Text immer an gleicher Stelle,
   alle Kacheln gleich gross (Bildhoehe via aspect-ratio bereits gleich) */
.treat-card__body h4 {
  margin: 0;
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.treat-card__body p {
  margin: 0;
  min-height: 5.2em;
}

/* "Auf einen Blick" als geteiltes Layout: Bild links, Text rechts */
.intro__media {
  flex: 1 1 0;
}
.intro__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

@media (max-width: 1023px) {
  .grid-3 > .col,
  .treat-grid > .col {
    flex: 1 1 calc(50% - var(--gap));
    max-width: calc(50% - var(--gap));
  }
}
@media (max-width: 767px) {
  .grid-3 > .col,
  .treat-grid > .col {
    max-width: 100%;
  }
}

/* =========================================================
   Über-mich-Seite (Einzelseite). Hero-Variante, Lebenslauf-
   Timeline + Seitenkarten, Social-Links. Nutzt sonst die
   bestehenden Komponenten (intro split, treat-card, section-head).
   ========================================================= */

/* Hero-Variante Über mich */
.hero--about {
  background-image:
    linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_2_2u1lw.webp");
}

/* Hero-Variante Fachgebiete: Desktop-Bild */
.hero--fg {
  background-image:
    linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_ddxvz.webp");
}
/* Fachgebiete: eigenes Mobil-Bild */
@media (max-width: 767px) {
  .hero--fg {
    background-image:
      linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
      url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_fypqf.webp");
  }
}

/* Dedizierte Desktop-Hero-Bilder (NEU). Mobil (<768) behaelt das bisherige Bild ("mobile passt"). */
@media (min-width: 768px) {
  /* Operationen (bare .hero) */
  .hero:not([class*="hero--"]) {
    background-image:
      linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
      url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_0g20c.webp");
  }
  /* Ueber mich */
  .hero--about {
    background-image:
      linear-gradient(-45deg, rgba(36, 52, 71, 0.8), rgba(36, 52, 71, 0.4)),
      url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_z7wrn.webp");
  }
}

/* Intro als 50vh-Band: zusammen mit Hero (50vh abzgl. Header) = 100vh.
   Bild auf die Bandhoehe begrenzen statt die Sektion aufzublaehen. */
.intro--band {
  min-height: 50vh;
  padding-block: 0;
}
.intro--band .intro__media img {
  max-height: calc(50vh - 80px);
  object-fit: cover;
}
/* Statt Foto ein grosses Fachgebiet-Icon (kontain, gleiche Bandhoehe) */
.intro--band .intro__media--icon img {
  height: calc(50vh - 80px);
  max-height: calc(50vh - 80px);
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* Intro "Über mich": Header-Logo als dezentes Wasserzeichen */
.intro--logo {
  position: relative;
  overflow: hidden;
  /* laengerer Fliesstext sprengt das 50vh-Band -> normale Sektionspolsterung
     (Abstand zu Hero oben + Folgesektion unten), Hoehe waechst mit Inhalt */
  min-height: 0;
  padding-block: var(--section-pad-sm);
}
.intro--logo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  background: url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_0ng3w.svg") no-repeat center center / 380px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.intro--logo > .container {
  position: relative;
  z-index: 1;
}
/* Intro-Bild: oberen Ausschnitt (Kopf) zeigen - alle Breiten */
.intro--logo .intro__media img {
  object-position: center top;
}
/* Desktop: Bild fuellt volle Spaltenhoehe (= Texthoehe); absolut -> blaeht das Grid nicht auf.
   Mobil bleibt das Originalverhalten (intro--band) erhalten. */
@media (min-width: 768px) {
  .intro--logo .intro__media {
    align-self: stretch;
    position: relative;
  }
  .intro--logo .intro__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
}

/* Sport-Sektion: Hintergrundbild (verblasst) + Sportarzt-Bild vorne */
.sport-bg {
  background-color: var(--color-surface-alt);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.95)),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_3_49t32.webp");
  background-size: cover;
  background-position: center;
}
.sport .row {
  align-items: center;
  gap: 50px;
}
.sport__media {
  flex: 1 1 0;
  display: grid;
  gap: 20px;
}
.sport__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.sport__text {
  flex: 1 1 0;
}
/* OEFB-Logo rechtsbuendig in der Sport-Textspalte (Desktop; mobil bleibt zentriert) */
.sport .partner {
  justify-content: flex-end;
}

/* Partner-Logos (AUVA / ÖFB) */
.partner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.partner img {
  height: 52px;
  width: auto;
  flex: 0 0 auto;
}
.partner span {
  color: var(--color-secondary);
  font-weight: 600;
  line-height: 1.3;
}
/* Werdegang: Timeline links, Zusatz-Infos rechts */
.about-cv .row {
  gap: 50px;
  align-items: flex-start;
}
.about-cv__main {
  flex: 1.5 1 0;
}
/* AUVA-Logo rechtsbuendig in der Werdegang-Spalte (Desktop; mobil bleibt zentriert) */
.about-cv__main .partner {
  justify-content: flex-end;
}
.about-cv__aside {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline__item {
  position: relative;
  padding: 0 0 28px 28px;
  border-left: 2px solid var(--tint-slate-10);
}
.timeline__item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-link);
}
.timeline__date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.timeline__item h4 {
  margin: 4px 0 4px;
  color: var(--color-primary);
}
.timeline__item p {
  margin: 0;
}

.about-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
}
.about-card h4 {
  margin: 0 0 14px;
  color: var(--color-primary);
}
.about-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.about-card--chips ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-card--chips li {
  background: var(--tint-slate-10);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Social-Links (YouTube / Instagram) */
.social-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-card {
  flex: 1 1 260px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(36, 52, 71, 0.14);
  text-decoration: none;
}
.social-card__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}
.social-card b {
  font-family: var(--font-heading);
  color: var(--color-primary);
  display: block;
}
.social-card span {
  color: var(--color-secondary);
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .about-card--chips ul {
    gap: 8px;
  }
}

/* =========================================================
   Startseite (Home)
   ========================================================= */

/* Hero ueber volle Bildschirmhoehe (abzgl. Header) mit Subline + CTA */
.hero--home {
  min-height: calc(100vh - var(--header-h));
  align-items: center;
  background-image:
    linear-gradient(to right, rgba(36, 52, 71, 0.85) 0%, rgba(36, 52, 71, 0.7) 35%, rgba(36, 52, 71, 0.25) 60%, rgba(36, 52, 71, 0) 80%),
    url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_3_bur5s.webp");
  /* Arzt rechts im Bild -> rechte Kante pinnen, damit Motiv viewportunabhaengig steht */
  background-position: right center;
}
/* Hero-Text laeuft ueber die linke Bildschirmhaelfte, bis exakt zur Mitte */
.hero--home .hero__inner {
  max-width: none;
  width: 40vw;
  margin-inline: 10vw 0;
  padding-block: 40px;
  padding-inline: 0;
}
.hero--home .eyebrow--hero,
.hero--home h1 {
  max-width: none;
}
.hero--home .btn {
  margin-top: 24px;
}
.eyebrow--hero {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}
/* Modal-Layover (Impressum) */
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 52, 71, 0.6);
}
.modal__dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 56px clamp(28px, 5vw, 64px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 20px;
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  color: var(--color-secondary);
  cursor: pointer;
}
.modal__close:hover {
  color: var(--color-primary);
}
.modal__content h2 {
  margin-top: 0;
}
.modal__content h3 {
  margin: 28px 0 8px;
  color: var(--color-primary);
}
.modal__content p {
  margin: 0 0 8px;
  color: var(--color-text);
}
.modal__content ul {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--color-text);
}
.modal__content li {
  margin-bottom: 4px;
}
.modal__lead {
  font-size: 1.05rem;
}
body.modal-open {
  overflow: hidden;
}

/* Durchgehender Verlauf ueber Behandlungen + Operationen + Krankheitsbilder */
.fade-band {
  background: linear-gradient(to bottom, var(--color-surface-alt) 0%, var(--color-white) 100%);
}
.fade-band > .section {
  background: transparent;
}

/* Google-Logo zwischen Ueberschrift und Karten, verlinkt zum Profil */
.reviews__google {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
}
.reviews__google img {
  display: block;
  height: 44px;
  width: auto;
}

/* Counter: raufzaehlende Kennzahlen (Kurzportraet) */
.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  margin: 44px 0 12px;
}
.counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.counter__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--color-primary);
}
.counter__label {
  color: var(--color-secondary);
  font-weight: 500;
}

/* Fachgebiete: graue Sektion (max 1400), Bild + Kacheln im Container */
.fg-intro .intro__head h2 {
  margin-bottom: 8px;
}
.fg-tiles {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.fg-tile {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  background: var(--color-white);
  border: 1px solid rgba(36, 52, 71, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fg-tile:hover {
  box-shadow: 0 12px 30px rgba(36, 52, 71, 0.12);
  transform: translateY(-2px);
}
.fg-tile__icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fg-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fg-tile__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* Trustbar: 5 Items mit rundem Icon + Label */
.trustbar {
  background: var(--color-surface);
  padding-block: 32px;
}
.trustbar .container {
  max-width: 1600px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.trust {
  flex: 1 1 150px;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.trust__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex: 0 0 auto;
}
.trust__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.35;
}

/* =========================================================
   Mobile-Feinschliff (UX-Audit) – nur Smartphone (<=767px)
   ========================================================= */
@media (max-width: 767px) {
  /* Schwebender CTA unten: erscheint, sobald der Hero-CTA aus dem Blick ist
     (per JS .is-visible). Hintergrund volle Bildschirmbreite, Button auf
     Contentbreite (.container). padding-bottom env(safe-area) -> auf iPhones
     nicht vom Home-Indicator verdeckt. Mind. 44px Touchziel via .btn-Padding. */
  .mobile-cta-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: transparent;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(110%);
    transition: transform 0.3s ease;
    pointer-events: none;
  }
  .mobile-cta-bar .btn {
    pointer-events: auto;
  }
  .mobile-cta-bar.is-visible {
    transform: translateY(0);
  }
  .mobile-cta-bar .container {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-inline: 24px;
    display: flex;
    justify-content: center;
  }
  /* gleiche Groesse wie die uebrigen CTAs: Inhaltsbreite (auto), zentriert */
  .mobile-cta-bar .btn {
    width: auto;
  }

  /* Header: Kontakt-CTA ausblenden (Hamburger uebernimmt Navigation),
     verhindert Ueberlauf neben langem Logo */
  .site-header .nav__cta {
    display: none;
  }
  .brand span {
    font-size: 1.05rem;
  }

  /* Lange Komposita (z.B. Sehnenscheidenentzündung, Resektionsarthroplastik)
     duerfen h1/h2 mobil nicht ueber die Breite hinausstehen -> umbrechen
     (Silbentrennung dank lang="de-AT", break-word als Fallback). */
  h1,
  h2 {
    overflow-wrap: break-word;
    hyphens: auto;
  }
  /* Hero-inner ist ein Grid: implizite Spalte = max-content -> ein langes
     Wort sprengt sonst die Spalte (und das Layout). minmax(0,1fr) begrenzt
     die Spalte auf die Containerbreite, damit der Umbruch greift. */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* CTAs mobil immer mittig (nicht linksbuendig). Ausnahme: explizit
     definierte Bereiche (z.B. Kontaktsektion). Hebt .intro__text .cta-row
     {flex-start} auf. */
  .cta-row,
  .intro__text .cta-row {
    justify-content: center;
  }

  /* Partner-Logos (Ueber mich: AUVA im Werdegang, ÖFB im Sport) mittig */
  .partner--bottom,
  .sport .partner {
    justify-content: center;
  }

  /* Home-Hero: Text volle Breite statt 40vw, lesbarer Verlauf ueber ganze Breite */
  .hero--home .hero__inner {
    width: 100%;
    margin-inline: 0;
    padding: 32px 24px;
    /* inner fuellt die Hero-Hoehe -> Button kann ans untere Ende */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  .hero--home {
    justify-content: center;
    /* Kein Verlauf auf Mobile -> reines Bild. Bild rechtsbuendig:
       rechter Bildrand = rechter Bildschirmrand. */
    background-image:
      url("https://publicitas-assets-delivery.nk-522.workers.dev/img/publicitas_digitalagentur_1_oh5n1.webp");
    background-position: right center;
    /* Hintergrund bis ganz nach oben (unter die schwebende Leiste):
       body padding-top per Negativ-Margin aufheben, volle Viewporthoehe.
       svh = kleinster Viewport (Adressleiste sichtbar) -> CTA nie geclippt. */
    margin-top: calc(-1 * var(--header-h));
    min-height: 100vh;
    min-height: 100svh;
  }
  /* Hero-CTA an den unteren Bildschirmrand: Hero ist 100vh-Header hoch,
     also Hero-Unterkante = Screen-Unterkante. margin-top:auto schiebt den
     Button nach unten, padding-bottom (32px) des inner ist der Abstand. */
  .hero--home .btn {
    margin-top: auto;
  }

  /* Hero-Text (eyebrow + h1) beginnt ca. bei 25svh ab Viewport-Oberkante
     (Hero reicht bis oben, abzgl. inner padding-top 32px). */
  .hero--home .eyebrow--hero {
    margin-top: calc(25svh - 32px);
  }

  /* Hero-Eyebrow: Name oben, Rolle in eigener Zeile darunter (Trenner aus) */
  .eyebrow--hero .eyebrow__sep {
    display: none;
  }
  .eyebrow--hero .eyebrow__role {
    display: block;
  }

  /* Intro-Sektionen mobil: keine 50vh-Zentrierung, normales Section-Padding
     wie alle anderen Sektionen (einheitliche Hoehe ueber die ganze Seite). */
  .intro {
    min-height: 0;
  }
  .intro--band {
    min-height: 0;
    padding-block: var(--section-pad-sm);
  }

  /* Fachgebiete mobil: Reihenfolge Kopf -> Bild -> Kacheln (DOM-Reihenfolge),
     Bild volle Breite, gleichmaessige Abstaende ueber das Grid-Gap.
     align-items:stretch hebt das geerbte .intro__grid{align-items:center} auf,
     damit der Kopf voll links steht (gleiche Kante wie "Ueber mich"). */
  .fg-grid {
    align-items: stretch;
  }
  .fg-intro .intro__media img {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .fg-grid .fg-tiles {
    margin-top: 0;
  }

  /* Bewertungen mobil: Google-Logo 25% groesser, Abstand Logo -> erste
     Kachel um 25% verringert (110px -> 82px; Viewport-Padding bleibt fuer
     den Karten-Schatten erhalten, Kuerzung ueber section-head). */
  .reviews__google img {
    height: 55px;
  }
  .reviews .section-head {
    margin-bottom: 22px;
  }

  /* Einheitliche Section-Koepfe mobil: alle Eyebrow + H2 linksbuendig,
     gleiche Abstaende (Referenz: Sektion "Ueber mich"). Eyebrow->H2 = 16px
     und H2-Unterabstand = 0.5em gelten bereits ueberall; hier nur die
     zentrierten .section-head linksbuendig stellen + fg-H2 angleichen. */
  .section-head {
    text-align: left;
    max-width: none;
    margin-inline: 0;
  }
  .fg-intro .intro__head h2 {
    margin-bottom: 0.5em;
  }

  /* Buttons mobil: Beschriftung mittig (auch bei Umbruch auf 2 Zeilen) */
  .btn {
    text-align: center;
  }

  /* Header als schwebende, abgerundete Leiste (Radius wie Content-Kacheln).
     fixed -> bleibt erreichbar (Menue oeffenbar) UND ist Positionskontext
     fuer das absolute Mobile-Menue (.nav top:100%). Versteckt sich beim
     Runterscrollen (.site-header--hidden, per JS) und gleitet beim
     Hochscrollen sanft zurueck. */
  .site-header {
    position: fixed;
    top: 8px;
    left: 12px;
    right: 12px;
    border-radius: var(--radius);
    z-index: 100;
    transition: transform 0.35s ease;
  }
  .site-header--hidden {
    transform: translateY(calc(-100% - 12px));
  }
  body {
    padding-top: var(--header-h);
  }
  /* Mobile-Menue als eigene schwebende Karte: rundum abgerundet,
     kleiner Abstand zur Leiste. */
  .nav {
    border-radius: var(--radius);
    margin-top: 8px;
  }

  /* Kontakt: Karten gestapelt -> volle Breite. .contact .row hat
     align-items:start, dadurch schrumpfen die Spalten sonst auf Inhaltsbreite
     (medzentrum23 schmaler als die anderen). */
  .contact .row > .col {
    width: 100%;
  }
  /* Reihenfolge mobil: Standort 1190 (col2) zuerst, dann 1230 (col1),
     dann das Kontaktformular (col3). */
  .contact .row > .col:nth-child(1) {
    order: 2;
  }
  .contact .row > .col:nth-child(2) {
    order: 1;
  }
  .contact .row > .col:nth-child(3) {
    order: 3;
  }

  /* Trustbar: stabiles 2-Spalten-Raster (lange Woerter brechen) */
  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 16px;
  }
  .trust {
    flex: none;
    max-width: none;
    margin: 0;
  }
  .trust__label {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  /* 5. Item (ungerade + letztes) volle Breite, mittig */
  .trust:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Counter mobil: 3 gleiche Spalten in einer Reihe (kein Umbruch, kein
     leeres Eck). Zahl oben, Label zentriert darunter (laenger umbricht). */
  .counters {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }
  .counter {
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  /* Haeufige Beschwerden mobil: nur erste 6 Kacheln, Rest nach Klick */
  .treat-grid--more:not(.is-expanded) .col:nth-child(n+7) {
    display: none;
  }

  /* OP/LT Intro: Facts-Karte stapelt (Liste oben, Icon klein darunter),
     verhindert Ueberlappung von Icon und Text */
  .facts-card {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .facts {
    width: 100%;
  }
  .facts-card .intro__icon {
    width: 88px;
    height: auto;
    max-height: 88px;
  }

  /* "Medizinisch geprüft"-Badge unter den Hero-Inhalt (unter das Hero-Bild) */
  .hero .badge {
    order: 1;
  }

  /* Badge mobil aus dem Hero in die "Auf einen Blick"-Sektion verschoben
     (per JS, initBadgePlacement) -> normaler Fluss, oben in der Sektion. */
  .intro > .container > .badge {
    position: static;
    max-width: 100%;
    /* Abstand nach oben (zum Hero) halbiert: negative Margin = halbes
       Section-Padding. Abstand nach unten (zum Eyebrow) +50% (22 -> 33). */
    margin-top: calc(var(--section-pad-sm) / -2);
    margin-bottom: 33px;
  }

  /* Ueber mich, Intro-Wasserzeichen-Logo mobil: oben mittig statt rechts. */
  .intro--logo::before {
    left: 0;
    right: 0;
    width: auto;
    background-position: center top;
  }

  /* Fachgebiete: grosses Icon unter dem Hero um 50% verkleinern */
  .intro--band .intro__media--icon img {
    height: calc((50vh - 80px) / 2);
    max-height: calc((50vh - 80px) / 2);
  }

  /* Intro "Auf einen Blick": kompaktere Abstaende zwischen Kopf/Medien/Body */
  .intro__grid {
    gap: 22px;
  }
  /* Basis-order der Infokachel zuruecksetzen -> DOM-Reihenfolge Kopf/Medien/Body */
  .intro__facts {
    order: 0;
  }
  .intro__head {
    margin: 0;
  }
  /* H2-Unterabstand wie ueberall (Standard 0.5em) -> einheitliche Koepfe */
  .intro__head h2 {
    margin-bottom: 0.5em;
  }
  .intro__body {
    margin: 0;
  }
}

/* =========================================================
   Intro "Auf einen Blick": Kopf (eyebrow+h2) / Medien (Bild od.
   Infokachel) / Body (Text+CTA). Desktop = Medien links,
   Kopf oben-rechts, Body unten-rechts (Layout wie zuvor).
   Mobile stapelt in DOM-Reihenfolge: Kopf -> Medien -> Body.
   ========================================================= */
.intro__head {
  margin: 0;
}
.intro__head h2 {
  margin-top: 0;
}

@media (min-width: 768px) {
  .intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "media head"
      "media body";
    align-items: center;
    column-gap: 56px;
    row-gap: 0;
  }
  .intro__facts,
  .intro__media {
    grid-area: media;
    align-self: center;
  }
  .intro__head {
    grid-area: head;
    align-self: end;
  }
  .intro__body {
    grid-area: body;
    align-self: start;
  }
}

/* Fachgebiete (Desktop): Bild links (volle Bandhoehe), Kopf oben-rechts,
   Auswahlkacheln unten-rechts. Eigenes Areas-Raster inkl. Kacheln. */
@media (min-width: 768px) {
  .fg-grid {
    grid-template-areas:
      "media head"
      "media tiles";
  }
  .fg-grid .fg-tiles {
    grid-area: tiles;
    align-self: start;
  }
}

/* Ueber-mich Intro (Desktop): Bild links (volle Hoehe), Kopf/Text/CTA rechts.
   Eigenes Areas-Raster inkl. CTA-Zeile. Mobil stapelt per DOM-Reihenfolge:
   Kopf -> Text -> Bild -> CTA. */
@media (min-width: 768px) {
  .intro--logo-grid {
    grid-template-areas:
      "media head"
      "media body"
      "media cta";
  }
  .intro--logo-grid .cta-row {
    grid-area: cta;
    align-self: start;
    justify-content: flex-start;
  }

  /* Haeufige Beschwerden Desktop: nur erste 8 Kacheln (2 Reihen a 4),
     Rest nach Klick auf "Mehr anzeigen". */
  .treat-grid--more:not(.is-expanded) .col:nth-child(n+9) {
    display: none;
  }
}
