:root {
  --ink: #172126;
  --muted: #5d676b;
  --brand: #546e7a;
  --brand-dark: #2c3e50;
  --accent: #b97d78;
  --accent-button: #e6c8c3;
  --accent-button-hover: #ddb6af;
  --paper: #ffffff;
  --soft: #f4f6f5;
  --warm: #f7eeec;
  --blush: #fbf4f2;
  --blush-line: #ead0cc;
  --line: #d8dedc;
  --max: 1180px;
  --font-heading: 'Arvo', Georgia, serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

section[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--brand-dark);
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  background: var(--brand-dark);
  color: #fff;
  padding: .6rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--brand-dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .15rem .9rem;
}

.nav a {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  padding: .35rem .1rem;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  border-color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  position: relative;
  z-index: 41;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 46%, rgba(255,255,255,.18) 100%),
    url('/assets/img/praxis/portrait-sandra-warm.webp') 82% center / cover;
}

.hero__inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.kicker,
.section-label {
  margin: 0 0 .75rem;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.04;
  color: var(--brand-dark);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.12;
  color: var(--brand-dark);
}

h3 {
  margin-bottom: .55rem;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--brand-dark);
}

.hero__text {
  max-width: 620px;
  margin-bottom: 1.5rem;
  color: #2a3337;
  font-size: 1.2rem;
}

.hero__actions,
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.05rem;
  border: 2px solid var(--brand);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  color: #fff;
  background: var(--brand);
}

.button--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button--secondary {
  color: var(--brand-dark);
  background: rgba(255,255,255,.64);
}

.button--whatsapp {
  color: var(--brand-dark);
  background: var(--accent-button);
  border-color: #d8aaa3;
}

.button--whatsapp:hover {
  background: var(--accent-button-hover);
  border-color: #c9978f;
}

.section {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.page-hero {
  min-height: 420px;
  display: grid;
  align-items: center;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.68));
}

.page-hero > div {
  position: relative;
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.page-hero p:not(.kicker) {
  max-width: 640px;
  font-size: 1.15rem;
}

.page-hero--angebot { background-image: url('/assets/img/praxis/beratungstisch.webp'); }
.page-hero--ueber { background-image: url('/assets/img/praxis/ueber-banner-staerke.webp'); background-position: center 52%; }
.page-hero--preise { background-image: url('/assets/img/praxis/trockenblumen-sideboard.webp'); }
.page-hero--kontakt {
  background-image: url('/assets/img/praxis/kontakt-beratungsraum.webp');
  background-position: center 54%;
}

.section--soft,
.section--dark {
  width: 100%;
  max-width: none;
}

.section--soft > *,
.section--dark > * {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  color: #fff;
  background: var(--brand-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark .section-label {
  color: #fff;
}

.section-head {
  margin-bottom: 2rem;
}

.intro,
.method,
.profile,
.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.detail-block {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail-block img {
  width: 100%;
  height: clamp(280px, 32vw, 420px);
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.detail-block--reverse img {
  order: 2;
}

#einzelberatung img {
  object-position: 50% 58%;
}

#paarberatung img {
  object-position: 52% 45%;
}

#autismusberatung img {
  object-position: 50% 52%;
}

#fachberatung img {
  object-position: 50% 42%;
}

#fortbildung img {
  object-position: 50% 50%;
}

.section--soft-inner {
  width: 100%;
  max-width: none;
  background: var(--soft);
}

.check-list {
  display: grid;
  gap: .55rem;
  margin: 1.2rem 0 1.4rem;
  padding-left: 1.1rem;
}

.intro__copy {
  font-size: 1.08rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.offer {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.offer img {
  width: 100%;
  height: clamp(145px, 12vw, 178px);
  object-fit: cover;
  object-position: center;
}

.offer:nth-child(1) img {
  object-position: 50% 58%;
}

.offer:nth-child(2) img {
  object-position: 52% 45%;
}

.offer:nth-child(3) img {
  object-position: 50% 52%;
}

.offer:nth-child(4) img {
  object-position: 50% 42%;
}

.offer:nth-child(5) img {
  object-position: 50% 50%;
}

.offer div {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.offer p {
  margin-bottom: 1.25rem;
}

.offer a {
  margin-top: auto;
  align-self: flex-start;
}

.offer a,
.text-link {
  font-weight: 700;
}

.testimonials-section {
  background: #fff;
}

.testimonial-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .75fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: 2rem;
}

.testimonial-intro .section-head {
  margin-bottom: 0;
}

.testimonial-intro img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 240px;
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--blush-line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--blush));
}

.testimonial-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.testimonial-card cite {
  color: var(--brand-dark);
  font-size: .92rem;
  font-style: normal;
  font-weight: 700;
}

.method-list {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--accent);
  background: var(--warm);
}

.profile {
  align-items: center;
}

.profile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.contact-photo {
  width: min(220px, 55vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.price-grid article {
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
}

.price-grid--page article {
  border-color: var(--blush-line);
  border-top: 5px solid var(--accent);
  background: linear-gradient(180deg, #fff, var(--blush));
}

.price-grid--page {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.price-grid--page article {
  grid-column: span 2;
}

.price-grid--page article:nth-child(4) {
  grid-column: 2 / span 2;
}

.price-grid--page article:nth-child(5) {
  grid-column: 4 / span 2;
}

.price-grid--page h2 {
  font-size: 1.45rem;
}

.center-action {
  margin-top: 2rem;
  text-align: center;
}

.price-grid p {
  margin-bottom: .35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.price-grid span {
  color: rgba(255,255,255,.78);
  font-size: .95rem;
}

.price-grid.price-grid--page p {
  color: var(--brand-dark);
  font-size: 1.65rem;
}

.price-grid.price-grid--page span {
  display: block;
  color: var(--muted);
}

address {
  font-style: normal;
}

.pronouns {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .55em;
  font-weight: 400;
  white-space: nowrap;
}

.contact-form {
  display: grid;
  gap: .9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.contact-form label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid #cbd3d1;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.legal-page {
  max-width: 860px;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  max-width: 74ch;
}

.legal-page a {
  font-weight: 700;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-size: .95rem;
}

.consent input {
  width: auto;
  margin-top: .35rem;
}

.bot-field {
  position: absolute;
  left: -9999px;
}

.footer {
  justify-content: center;
  padding: 1.5rem;
  background: var(--ink);
}

.footer a {
  color: #fff;
}

@media (max-width: 920px) {
  .intro,
  .method,
  .profile,
  .contact,
  .detail-block,
  .testimonial-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid--page article,
  .price-grid--page article:nth-child(4),
  .price-grid--page article:nth-child(5) {
    grid-column: auto;
  }

  .detail-block,
  .intro,
  .method,
  .profile,
  .contact {
    grid-template-columns: 1fr;
  }

  .detail-block--reverse img {
    order: 0;
  }

  .hero {
    min-height: auto;
  }

  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer img {
    height: clamp(170px, 30vw, 220px);
  }
}

@media (max-width: 680px) {
  .testimonial-grid,
  .price-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer img {
    height: clamp(190px, 58vw, 260px);
  }

  .testimonial-intro {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    background:
      linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
      url('/assets/img/praxis/portrait-sandra-warm.webp') 58% center / cover;
  }

  .hero__actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
  }

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

  /* backdrop-filter der Topbar erzeugt sonst einen Containing Block,
     der das position:fixed-Overlay einklemmt -> bei offenem Menü deaktivieren */
  body.nav-open .topbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: .35rem;
    padding: 6.5rem clamp(1.25rem, 7vw, 2rem) 2rem;
    background: rgba(255, 255, 255, .98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--brand-dark);
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.1;
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
    color: var(--accent);
  }
}
