:root {
  --bg-page: #f4f5f7;
  --bg-elevated: #ffffff;
  --bg-tint: #eceef2;
  --bg-soft: #e2e5eb;
  --ink: #141820;
  --ink-muted: #4b5364;
  --border: #cfd4dc;
  --accent: #1e5a52;
  --accent-hover: #16423c;
  --accent-soft: #d8ebe8;
  --danger: #b42318;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(27, 69, 152, 0.08);
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --header-h: 4.25rem;
  --tpl-mint: #a6c8c8;
  --tpl-slate: #55688d;
  --tpl-ink: #0f172a;
  --tpl-rose: #ba9db7;
  --tpl-rose-light: #d4bdce;
  /* Wellen-Übergang zur Fußzeile (gleiche Basis wie Hero) */
  --footer-bg: var(--tpl-rose-light);
  /* Sichtbare Kante unter der Welle: Rosé wie Hero/Footer, leicht Slate + Abdunkelung wie Overlay/Gradient */
  --footer-wave-fill: color-mix(
    in srgb,
    var(--tpl-rose-light) 82%,
    color-mix(in srgb, var(--tpl-slate) 68%, var(--tpl-ink) 32%) 18%
  );
  --hero-surface-base: var(--tpl-rose-light);
  --hero-surface-gradient: linear-gradient(
    118deg,
    color-mix(in srgb, var(--tpl-slate) 42%, transparent) 0%,
    color-mix(in srgb, var(--tpl-rose) 35%, transparent) 48%,
    transparent 70%
  );
  --hero-surface-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.28) 100%);
  /* Wellen-Overlays: leicht ins Rosé/Lila, passend zu Hero & Footer */
  --wave-elevated: color-mix(in srgb, var(--bg-elevated) 90%, var(--tpl-rose-light) 10%);
  --wave-tint: color-mix(in srgb, var(--bg-tint) 86%, var(--tpl-rose) 14%);
  --wave-soft: color-mix(in srgb, var(--bg-soft) 86%, var(--tpl-rose-light) 14%);
  /* Primär-CTA wie Hero („Kontakt aufnehmen“) */
  --cta-bg: var(--tpl-slate);
  --cta-bg-hover: var(--tpl-ink);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Seitenabstand: auf schmalen Viewports spürbar größer, nie scrollbar durch vw */
  --container-pad: clamp(1.45rem, 0.65rem + 4.5vw, 2.5rem);
  --card-pad-x: clamp(1.25rem, 3.8vw + 0.45rem, 1.65rem);
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

.ph-duotone {
  flex-shrink: 0;
  line-height: 1;
}

.btn .ph-duotone {
  font-size: 1.15rem;
}

.btn-primary .ph-duotone {
  color: inherit;
}

.btn-hero-ghost .ph-duotone {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
}

.h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.25;
}

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

.u-m0 {
  margin: 0;
}

.u-measure {
  max-width: 32ch;
}

.u-mt-sm {
  margin-top: 0.5rem;
}

.u-mt-md {
  margin-top: 1rem;
}

.u-mt-lg {
  margin-top: 2rem;
}

.u-mb-lg {
  margin-bottom: 2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— schlanker Header (ohne Vorlagen-Hintergrund) —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  width: min(1140px, calc(100% - var(--container-pad)));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.brand picture {
  display: block;
  line-height: 0;
}

.brand img {
  width: clamp(120px, 26vw, 200px);
  height: auto;
  transition: opacity 0.25s var(--ease);
}

.brand:hover img {
  opacity: 0.88;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--ink-muted);
}

.nav-desktop a:hover {
  color: var(--ink);
  background: var(--bg-tint);
}

.nav-desktop a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  margin-left: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--bg-elevated);
  border-color: var(--cta-bg);
}

.btn-primary:hover {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  color: var(--bg-elevated);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-hero-ghost {
  background: transparent;
  color: var(--bg-elevated);
  border-color: color-mix(in srgb, var(--bg-elevated) 55%, transparent);
}

.btn-hero-ghost:hover {
  background: color-mix(in srgb, var(--bg-elevated) 14%, transparent);
  border-color: var(--bg-elevated);
  color: var(--bg-elevated);
}

.menu-toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle .ph-duotone {
  font-size: 1.3rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1.1rem max(var(--card-pad-x), env(safe-area-inset-right, 0px)) 2rem
    max(var(--card-pad-x), env(safe-area-inset-left, 0px));
  flex-direction: column;
  gap: 0.2rem;
  z-index: 999;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  background: var(--bg-tint);
}

.nav-mobile a.btn-primary,
.nav-mobile a.btn-primary .ph-duotone {
  color: var(--bg-elevated);
}

.nav-mobile a.btn-primary:hover,
.nav-mobile a.btn-primary.is-active {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
  color: var(--bg-elevated);
}

.scroll-top {
  position: fixed;
  right: max(clamp(0.75rem, 3vw, 1.25rem), env(safe-area-inset-right, 0px));
  bottom: max(clamp(0.75rem, 3vw, 1.25rem), env(safe-area-inset-bottom, 0px));
  z-index: 950;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--cta-bg);
  color: var(--bg-elevated);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s, background 0.2s var(--ease);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  background: var(--cta-bg-hover);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--tpl-rose);
  outline-offset: 3px;
}

.scroll-top .ph-duotone {
  font-size: 1.35rem;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition-duration: 0.01ms;
  }
}

main {
  padding-top: var(--header-h);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body,
  main {
    overflow-x: clip;
  }
}

.section {
  position: relative;
}

.container {
  width: min(1080px, calc(100% - var(--container-pad)));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

/* —— Hero: Rosé/Lila + Verlauf + Wellen —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(88vh, 780px);
  overflow-x: clip;
  overflow-y: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--hero-surface-base);
  background-image: var(--hero-surface-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-surface-overlay);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1.25rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  max-width: min(1080px, calc(100% - var(--container-pad)));
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--bg-elevated);
  text-shadow: 0 2px 28px rgba(15, 23, 42, 0.35);
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg-elevated) 88%, var(--tpl-rose-light));
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-stoerer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  margin: clamp(0.85rem, 2.2vw, 1.25rem) 0 0;
  padding: 0.55rem var(--card-pad-x);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.1);
}

.hero-stoerer__icon {
  flex-shrink: 0;
  margin-left: 0.06rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--accent);
}

.hero-stoerer__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

@media (max-width: 640px) {
  .hero-stoerer__on-wide-only {
    display: none;
  }

  .hero {
    min-height: min(100vh, 720px);
    min-height: min(100dvh, 720px);
  }

  .hero-content {
    padding: calc(var(--header-h) + 0.85rem) 0 clamp(1.75rem, 5vw, 2.5rem);
  }

  .hero-content h1,
  .hero-lead {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stoerer {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    border-radius: var(--radius);
  }

  .hero-stoerer__link {
    align-self: flex-start;
  }

  .section-pad {
    padding-block: clamp(2rem, 6vw, 3.25rem);
  }

  .section-title {
    margin-bottom: 1.75rem;
  }

  .section-title h2,
  .h2,
  .heading-with-ph {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .heading-with-ph {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .contact-layout {
    gap: 1.35rem;
  }

  .contact-card h2.contact-card__title,
  .form-panel h2.form-panel__title {
    flex-wrap: wrap;
    min-width: 0;
  }

  .faq-item summary {
    padding: 0.9rem var(--card-pad-x);
    padding-right: max(2.15rem, calc(var(--card-pad-x) + 1rem));
    font-size: 0.92rem;
  }

  .faq-panel__inner {
    padding-inline: var(--card-pad-x);
  }

  .hours div {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }
}

.hero-stoerer__link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  color: var(--accent);
}

.hero-stoerer__link:hover {
  color: var(--accent-hover);
}

.hero-stoerer__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero-wave {
  position: relative;
  z-index: 2;
  width: 100%;
  line-height: 0;
  margin-top: auto;
  overflow-x: clip;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 56px);
  margin-left: 0;
  transform: scaleY(-1);
  transform-origin: center;
}

.hero-wave-layer {
  fill: color-mix(in srgb, var(--tpl-rose) 44%, var(--wave-tint) 56%);
}

.hero-wave-fill {
  fill: var(--bg-tint);
}

/* Segment-Übergänge: gleiche Wellenform wie Hero (nach unten in die Folgefläche) */
.section-wave {
  position: relative;
  z-index: 1;
  width: 100%;
  line-height: 0;
  margin: 0;
  overflow-x: clip;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: clamp(36px, 5.5vw, 52px);
  margin-left: 0;
  transform: scaleY(-1);
  transform-origin: center;
}

/* Halbtransparente Layer: Mischung aus abgehendem und ziel-Hintergrund (leicht rosé) */
.section-wave--from-elevated.section-wave--to-tint .section-wave-layer {
  fill: color-mix(in srgb, var(--wave-elevated) 70%, var(--wave-tint) 30%);
}

.section-wave--from-tint.section-wave--to-soft .section-wave-layer {
  fill: color-mix(in srgb, var(--wave-tint) 66%, var(--wave-soft) 34%);
}

.section-wave--from-soft.section-wave--to-elevated .section-wave-layer {
  fill: color-mix(in srgb, var(--wave-soft) 62%, var(--wave-elevated) 38%);
}

.section-wave--from-tint.section-wave--to-elevated .section-wave-layer {
  fill: color-mix(in srgb, var(--wave-tint) 64%, var(--wave-elevated) 36%);
}

.section-wave--from-elevated.section-wave--to-soft .section-wave-layer {
  fill: color-mix(in srgb, var(--wave-elevated) 66%, var(--wave-soft) 34%);
}

.section-wave--from-soft.section-wave--to-footer .section-wave-layer {
  fill: color-mix(in srgb, var(--bg-soft) 52%, var(--footer-wave-fill) 48%);
}

.section-wave-fill {
  fill: var(--bg-tint);
}

.section-wave--to-tint .section-wave-fill {
  fill: var(--bg-tint);
}

.section-wave--to-soft .section-wave-fill {
  fill: var(--bg-soft);
}

.section-wave--to-elevated .section-wave-fill {
  fill: var(--bg-elevated);
}

.section-wave--to-footer .section-wave-fill {
  fill: var(--footer-wave-fill);
}

/* Naht Kontakt (bg-soft) → Welle: gleiche Fläche hinter dem SVG wie die Section */
.section-wave--from-soft.section-wave--to-footer {
  background-color: var(--bg-soft);
}

.section-pad.section--tail-wave {
  padding-bottom: 0;
}

.section-pad.section--tail-wave > .section-wave {
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

.section-pad {
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
}

.bg-white {
  background: var(--bg-elevated);
}

.bg-sand {
  background: var(--bg-tint);
}

.bg-muted {
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2.25rem;
}

.section-title h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title p {
  margin: 0;
  font-size: 1rem;
}

.section-title--mark .section-title__icon {
  display: block;
  margin: 0 auto 0.55rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  color: var(--accent);
  line-height: 1;
}

.section-title--mark h2 {
  margin-top: 0;
}

.faq-accordion {
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color 0.42s var(--ease), box-shadow 0.42s var(--ease);
}

.faq-item[open] {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  padding: 1rem var(--card-pad-x);
  padding-right: max(2.5rem, calc(var(--card-pad-x) + 1.1rem));
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--ink);
  list-style: none;
  position: relative;
}

.faq-item summary .ph-duotone {
  margin-top: 0.1rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.faq-item__summary-text {
  flex: 1;
  min-width: 0;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: var(--card-pad-x);
  top: 50%;
  transform: translateY(-50%);
  content: "+";
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-item > .faq-panel {
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s var(--ease);
}

.faq-item[open] > .faq-panel {
  /* Höhe wird per Skript gesetzt; Fallback falls JS fehlt */
  max-height: min(120vh, 3200px);
}

.faq-panel__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 var(--card-pad-x) 1.05rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.faq-panel p {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item > .faq-panel {
    transition-duration: 0.14s;
  }

  .faq-item {
    transition: none;
  }
}

.karriere-stellen-title {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
}

.karriere-accordion {
  margin-bottom: 0;
}

.karriere-accordion .faq-panel__inner {
  padding-top: 0.85rem;
}

.karriere-bewerb-cta {
  margin-top: 2.75rem;
  margin-bottom: 0;
}

.faq-panel__sub {
  margin: 1.1rem 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.faq-panel ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.faq-panel li + li {
  margin-top: 0.35rem;
}

.team-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .team-layout {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.95fr);
    gap: clamp(1.75rem, 4vw, 3.25rem);
  }
}

.team-layout-text.prose {
  margin-inline: 0;
  max-width: none;
}

.team-intro-title {
  margin: 0 0 0.5rem;
}

.team-intro-subtitle {
  margin: 0 0 1.15rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
}

.heading-with-ph {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.heading-with-ph .ph-duotone {
  font-size: 1.05em;
  color: var(--accent);
}

.team-layout-text.prose > p {
  margin-top: 0;
  margin-bottom: 1em;
}

.team-layout-text.prose > p:last-of-type {
  margin-bottom: 0;
}

.signature-placeholder {
  margin-top: 1.75rem;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  border: 1px dashed color-mix(in srgb, var(--ink-muted) 45%, var(--border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-elevated) 55%, transparent);
}

.signature-placeholder__label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.signature-placeholder__hint {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink-muted) 82%, var(--ink));
}

@media (min-width: 900px) {
  .team-layout-text.prose {
    max-width: 38rem;
  }
}

.team-layout-text.prose > *:last-child {
  margin-bottom: 0;
}

.team-layout-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .team-layout-visual {
    justify-content: flex-end;
  }
}

.team-photos-stack {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  padding: 0;
}

@media (min-width: 900px) {
  .team-photos-stack {
    max-width: 340px;
    margin-inline: 0 0;
    margin-left: auto;
  }
}

.team-photo {
  margin: 0;
}

.team-photos-stack .team-photo--lead {
  position: relative;
}

.team-photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 6%, var(--bg-elevated));
  box-shadow: 0 14px 42px rgba(10, 12, 16, 0.1);
}

.team-photos-stack .team-photo--lead .team-photo-frame {
  aspect-ratio: 3 / 4;
  max-height: clamp(280px, 46vw, 480px);
}

.team-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-caption {
  margin: 0.65rem 0 0;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1em;
}

.signature {
  font-weight: 600;
  color: var(--ink);
}

.grid-services {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.leistungen-content {
  display: grid;
  gap: 1rem;
}

.leistungen-content > .cta-row {
  margin-top: 0;
}

.card-service {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.35rem var(--card-pad-x);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card-service:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow);
}

.card-service .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.card-service .icon .ph-duotone {
  font-size: 1.35rem;
  color: inherit;
}

.card-service h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
}

.card-service p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.cta-row {
  text-align: center;
  margin-top: 2.25rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

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

.info-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.35rem var(--card-pad-x);
  border: 1px solid var(--border);
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
}

.info-card h3.info-card__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.info-card h3.info-card__title .ph-duotone {
  font-size: 1.15rem;
  color: var(--accent);
}

.info-card h3.info-card__title span {
  min-width: 0;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
}

.info-card-maps-link {
  margin-top: 0.95rem;
}

.maps-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.maps-inline-link .ph-duotone {
  font-size: 1.125em;
  color: inherit;
}

.info-card--map {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.info-card--map-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.map-external-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-top: -0.05rem;
  border-radius: var(--radius);
  color: var(--cta-bg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.map-external-icon:hover {
  color: var(--cta-bg-hover);
  background: color-mix(in srgb, var(--cta-bg) 8%, var(--bg-elevated));
  border-color: color-mix(in srgb, var(--cta-bg) 25%, var(--border));
}

.map-external-icon:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}

.map-external-icon svg {
  display: block;
}

.praxis-gallery,
.leistungen-gallery {
  display: grid;
  gap: 1rem;
}

.praxis-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.leistungen-gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

@media (max-width: 720px) {
  .praxis-gallery {
    grid-template-columns: 1fr;
  }
}

.praxis-gallery-thumb,
.leistungen-gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--border);
  box-shadow: 0 6px 24px rgba(10, 12, 16, 0.06);
  text-decoration: none;
  color: inherit;
}

.praxis-gallery-thumb picture,
.leistungen-gallery-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.praxis-gallery-thumb img,
.leistungen-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.praxis-gallery-thumb:hover img,
.praxis-gallery-thumb:focus-visible img,
.leistungen-gallery-thumb:hover img,
.leistungen-gallery-thumb:focus-visible img {
  transform: scale(1.04);
}

.praxis-gallery-thumb:focus-visible,
.leistungen-gallery-thumb:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 3px;
}

.praxis-map {
  position: relative;
  z-index: 0;
  height: clamp(200px, 34vw, 280px);
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: none;
  background: #f4f2ef;
  overflow: hidden;
}

.praxis-map .leaflet-container {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  z-index: 0;
  font-family: var(--font-sans), system-ui, sans-serif;
  background: #f4f2ef;
}

.praxis-map .leaflet-control-zoom a {
  color: var(--ink);
}

.praxis-map .leaflet-control-attribution {
  font-size: 0.65rem;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
}

.map-fallback-msg {
  margin: 0;
  padding: 1.25rem var(--card-pad-x);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.map-fallback-msg a {
  color: var(--cta-bg);
  font-weight: 600;
}

.map-fallback-msg a:hover {
  color: var(--cta-bg-hover);
}

.hours {
  display: grid;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}

.hours div:last-child {
  border-bottom: none;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.75rem var(--card-pad-x);
  border: 1px solid var(--border);
}

.contact-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.contact-card h2.contact-card__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-card h2.contact-card__title .ph-duotone {
  font-size: 1.15em;
  color: var(--accent);
}

.contact-card > p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.contact-list .ph-duotone {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 0.08rem;
}

.form-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3.5vw, 2rem) var(--card-pad-x);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-panel header {
  margin-bottom: 1.35rem;
}

.form-panel h2 {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
}

.form-panel h2.form-panel__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.form-panel h2.form-panel__title .ph-duotone {
  font-size: 1.1em;
  color: var(--accent);
}

.form-panel header p {
  margin: 0;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid > .field {
  min-width: 0;
}

@media (min-width: 560px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.field input:not([type="file"]),
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:not([type="file"]):focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.field input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.15rem;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--ink);
}

.field input[type="file"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.field-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.2rem;
  display: none;
}

.field.is-invalid .field-error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select,
.field.is-invalid input[type="file"] {
  border-color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink-muted);
}

.checkbox-input {
  width: auto;
  margin-top: 0.22rem;
  accent-color: var(--accent);
}

.form-footer {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 2.75rem 0 0;
  color: var(--ink-muted);
  background-color: var(--hero-surface-base);
  background-image: var(--hero-surface-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-surface-overlay);
  pointer-events: none;
}

.site-footer > .container,
.site-footer > .footer-bar {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 58%, var(--ink-muted) 42%);
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
}

.footer-brand h3 {
  margin: 0 0 0.35rem;
}

.footer-brand__logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  width: fit-content;
}

.footer-brand__logo picture {
  display: block;
  line-height: 0;
}

.footer-brand__logo img {
  width: min(200px, 70vw);
  height: auto;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
}

.footer-brand__logo:hover img {
  opacity: 1;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-hover);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a,
.footer-links .footer-modal-trigger {
  display: inline;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-links .footer-modal-trigger:hover {
  background: none;
  border: none;
  color: var(--accent-hover);
}

.footer-links a:focus-visible,
.footer-links .footer-modal-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bar {
  margin-top: 0.5rem;
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--tpl-ink) 14%, transparent);
  padding: 0.9rem 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ink) 72%, var(--ink-muted) 28%);
  text-align: center;
}

.inline-link-btn {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  vertical-align: baseline;
}

.inline-link-btn:hover {
  color: var(--cta-bg);
}

dialog {
  box-sizing: border-box;
  margin: auto;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(400px, calc(100% - var(--container-pad)));
  max-width: calc(100% - var(--container-pad));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

dialog.dialog-reveal {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.985);
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    overlay 0.28s ease-out allow-discrete,
    display 0.28s ease-out allow-discrete;
}

dialog.dialog-reveal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog.dialog-reveal::backdrop {
  background: rgba(10, 12, 16, 0.52);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition:
    opacity 0.26s ease-out,
    overlay 0.26s ease-out allow-discrete,
    display 0.26s ease-out allow-discrete;
}

dialog.dialog-reveal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog.dialog-reveal[open] {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.985);
  }

  dialog.dialog-reveal[open]::backdrop {
    opacity: 0;
  }
}

dialog.dialog-legal {
  width: min(560px, calc(100% - var(--container-pad)));
  max-width: calc(100% - var(--container-pad));
}

.dialog-legal-inner {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 860px);
}

.dialog-body--scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.75rem var(--card-pad-x) 1rem;
  -webkit-overflow-scrolling: touch;
}

.dialog-body--scroll h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.dialog-body--scroll h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dialog-body--scroll h3:first-of-type {
  margin-top: 0;
}

.dialog-body--scroll p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.dialog-body--scroll a {
  color: var(--cta-bg);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.dialog-body--scroll a:hover {
  color: var(--cta-bg-hover);
}

.dialog-actions {
  flex-shrink: 0;
  padding: 1rem var(--card-pad-x) 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

.dialog-body {
  padding: 1.75rem var(--card-pad-x);
}

.dialog-body h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.dialog-body p {
  margin: 0 0 1.1rem;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-mobile {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
