/* ------------------------------------------------------------------------
   Layout: Header, Mobile-Drawer, Footer, Sektionen
   ------------------------------------------------------------------------ */

:root {
  --header-h: 84px;
}

@media (max-width: 600px) {
  :root {
    --header-h: 68px;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
}

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

.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.55rem;
  flex: 0 0 auto;
}

.site-brand__mark img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .site-brand__mark img {
    height: 36px;
    max-width: 150px;
  }
}

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--primary-strong);
  max-width: 22ch;
}

@media (max-width: 480px) {
  .site-brand__name {
    font-size: 0.92rem;
    max-width: 16ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--primary-strong);
  position: relative;
  padding: 0.3em 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right var(--dur-base) var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 520;
  position: relative;
}

.burger span {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--primary-strong);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .burger {
    display: inline-flex;
  }
}

/* ---------- Mobile drawer (Geschwister von <header>, nie Kind) ---------- */
.mobile-drawer-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: oklch(24% 0.012 250 / 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  z-index: 400;
}

.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 410;
  overflow-y: auto;
  padding: 2rem 1.75rem;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer,
  .mobile-drawer-overlay {
    transition: none;
  }
}

.mobile-drawer ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-strong);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

.mobile-drawer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mobile-drawer__legal a {
  min-height: auto;
  border-bottom: none;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
}

@media (min-width: 901px) {
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none;
  }
}

body.drawer-open {
  overflow: hidden;
}

/* ---------- Sektionen – bewusst wechselnde Abstände ---------- */
section {
  position: relative;
}

.section-hero {
  padding-block: clamp(4.5rem, 3.4rem + 5vw, 7.5rem) clamp(7rem, 5rem + 8vw, 11rem);
  background: var(--bg);
  overflow: hidden;
}

.section-glance {
  padding-block: clamp(2.5rem, 2.2rem + 1vw, 3rem);
  background: var(--primary-strong);
  color: oklch(94% 0.01 90);
  margin-top: clamp(-5.5rem, -4vw - 3rem, -3.5rem);
  position: relative;
  z-index: 2;
}

.section-services {
  padding-block: clamp(6rem, 5rem + 4vw, 9rem) clamp(5rem, 4rem + 3vw, 7rem);
  background: var(--bg);
}

.section-gallery {
  padding-block: clamp(3.5rem, 3rem + 2vw, 5rem) 0;
  background: var(--surface);
}

.section-statement {
  padding-block: clamp(4.5rem, 3.8rem + 3vw, 6.5rem);
  background: var(--primary);
  color: oklch(97% 0.008 90);
}

.section-contact {
  padding-block: clamp(6.5rem, 5rem + 6vw, 10rem);
  background: var(--bg);
}

/* ---------- Hero: versetztes Bild, das in die naechste Sektion ragt ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  grid-column: 1 / span 7;
}

.hero-media {
  grid-column: 8 / span 5;
  position: relative;
  margin-bottom: clamp(-9rem, -6vw - 5rem, -6rem);
  z-index: 3;
}

.hero-media__frame {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--accent);
  border-radius: var(--radius-feature);
  z-index: -1;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-high);
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

@media (max-width: 900px) {
  .hero-copy,
  .hero-media {
    grid-column: 1 / -1;
  }

  .hero-media {
    margin-bottom: clamp(-6rem, -5vw - 3rem, -4rem);
    margin-top: 2.5rem;
  }
}

/* ---------- Auf-einen-Blick Leiste ---------- */
.glance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.glance-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.glance-item strong {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--surface);
}

.glance-item span {
  font-size: 0.95rem;
  color: oklch(85% 0.015 90);
}

.glance-contact a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--surface);
  border-bottom: 2px solid var(--accent);
}

/* ---------- Leistungen: asymmetrisch 7/5, Feature + Liste ---------- */
.services-head {
  grid-column: 1 / span 7;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.services-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.service-feature {
  grid-column: 1 / span 7;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.service-feature:hover .service-feature__media img {
  transform: scale(1.03);
}

.service-feature__body {
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
}

.service-feature__body p {
  color: var(--text-muted);
}

.service-list {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.service-list__item {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--dur-base) var(--ease-out);
}

.service-list__item:hover {
  padding-left: 0.4rem;
}

.service-list__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 0 0 auto;
}

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

.service-list__item h3 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.service-list__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-link-arrow {
  margin-left: auto;
  color: var(--accent-deep);
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .services-head,
  .service-feature,
  .service-list {
    grid-column: 1 / -1;
  }
}

/* ---------- Leistungen-Übersicht: alternierende Zeilen ---------- */
.service-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
  margin-bottom: clamp(3rem, 2.5rem + 2vw, 5rem);
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row .service-feature {
  grid-column: 1 / span 7;
}

.service-row--reverse .service-feature {
  grid-column: 6 / span 7;
}

@media (max-width: 900px) {
  .service-row .service-feature,
  .service-row--reverse .service-feature {
    grid-column: 1 / -1;
  }
}

/* ---------- Galerie: vollflaechiger Bruch im Seitenfluss ---------- */
.gallery-head {
  margin-bottom: 1.75rem;
}

.gallery-scroller {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 2.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
  -webkit-overflow-scrolling: touch;
}

.gallery-scroller::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroller::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius);
}

.gallery-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(78vw, 420px);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(0deg, oklch(20% 0.02 250 / 0.72), transparent);
  color: #fff;
  font-weight: 600;
}

/* ---------- Haltung / Statement ---------- */
.statement {
  max-width: 44ch;
  margin: 0 auto;
  text-align: center;
}

.statement blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  line-height: 1.3;
  font-weight: 600;
}

.statement cite {
  font-style: normal;
  color: oklch(85% 0.015 90);
  font-size: 0.95rem;
}

/* ---------- Kontakt ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

.contact-info {
  grid-column: 1 / span 5;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.75rem 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list .icon {
  color: var(--accent-deep);
}

.contact-form-wrap {
  grid-column: 6 / span 7;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
}

.contact-map {
  grid-column: 1 / -1;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

.contact-anamnese-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .contact-info,
  .contact-form-wrap {
    grid-column: 1 / -1;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-strong);
  color: oklch(88% 0.012 90);
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid oklch(100% 0 0 / 0.12);
}

.footer-brand {
  grid-column: 1 / span 4;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
  background: var(--surface);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.footer-col {
  grid-column: span 4;
}

.footer-col h4 {
  color: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: oklch(88% 0.012 90);
}

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

@media (max-width: 900px) {
  .footer-brand,
  .footer-col {
    grid-column: 1 / -1;
  }
}

/* ---------- WPX Cookie / Embed Platzhalter ---------- */
.wpx-embed-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.wpx-embed-placeholder button {
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.wpx-legal-bar {
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem;
  color: var(--text-muted);
}
