/* Stefanie Karner-Stern – Homepage
   Warme Editorial-Palette aus dem Logo-Mockup,
   Flaechen statt Boxen, Haarlinien statt Schatten. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Allura";
  src: url("../fonts/allura-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Grundflaeche: schmutziges Weiss statt durchgehendem Creme */
  --paper: #f7f5f1;
  --paper-rgb: 247, 245, 241;

  /* Aquarelltoene, aus den Icon-Flaechen ausgelesen */
  --sand: #f6e4d2;
  --blush: #f6d8cc;
  --apricot: #f6d8c0;
  --clay: #f0d2c6;
  --greige: #ded8c6;

  /* Aufgehellte Varianten fuer grosse Flaechen */
  --sand-wash: #f8ebdd;
  --blush-wash: #f8e5dc;
  --greige-wash: #edeade;

  --rose: #c58f86;
  --rose-deep: #b77d76;
  --sage: #a6aa90;
  --ink: #4b372f;
  --ink-muted: #66564e;
  --line: #cdbdb1;
  --line-strong: #b9a79a;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", Arial, sans-serif;
  --font-script: "Allura", cursive;

  --space-section: clamp(4.5rem, 9vw, 8.5rem);
  --radius-btn: 0.3rem;
  --radius-image: 0.35rem;
  --max-width: 72rem;
  --header-height: 5.25rem;
  --focus: 2px solid var(--rose-deep);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-muted);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rose-deep);
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius-btn);
}

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

.wrap {
  width: min(calc(100% - 2.75rem), var(--max-width));
  margin-inline: auto;
}

/* Kleines Label mit vorangestelltem Strich – ruhiger als reine Versalien */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  color: var(--rose-deep);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-title {
  margin: 0;
  max-width: 20ch;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title--accent {
  color: var(--rose);
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 38ch;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.section-intro {
  max-width: 46rem;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--rose-deep);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.25rem;
}

/* Textlink mit feiner Unterlinie statt Pfeil-Button */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  color: var(--rose-deep);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  align-self: flex-start;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

/* Hintergrund und Blur liegen auf einem Pseudo-Element.
   Ein backdrop-filter auf dem Header selbst wuerde ihn zum Bezugsrahmen
   fuer position: fixed machen und das Mobilmenue darin einsperren. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--paper-rgb), 0.92);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.logo-script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 400;
}

.logo-surname {
  margin-top: 0.15rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.logo-divider {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0.3rem 0;
}

.logo-divider::before,
.logo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.logo-star {
  width: 0.45rem;
  height: 0.45rem;
  fill: var(--sage);
}

.logo-role {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--ink);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.35rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 400;
}

.site-nav a:hover {
  color: var(--rose-deep);
}

.site-nav .btn {
  margin-left: 0.5rem;
}

/* Sections */
.section {
  position: relative;
  padding: var(--space-section) 0;
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

/* Getoente Sektionen blenden oben und unten ins Papier aus.
   Der Farbton kommt aus den Aquarellflaechen der Icons. */
.section--tinted {
  --section-tint: var(--sand-wash);
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--section-tint) 14%,
    var(--section-tint) 86%,
    var(--paper) 100%
  );
}

/* Ruecken inhaltlich zusammengehoerende Sektionen enger aneinander */
.section--tight-bottom {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section--tight-top {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.section--blush {
  --section-tint: var(--blush-wash);
}

.section--greige {
  --section-tint: var(--greige-wash);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 70vh, 44rem);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2.75rem), var(--max-width));
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.hero-copy {
  max-width: 34rem;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-title span {
  display: block;
}

.hero-title .accent {
  color: var(--rose);
}

.hero-text {
  margin: 1.75rem 0 0;
  max-width: 34ch;
  color: var(--ink-muted);
  font-size: 1.12rem;
}

/* Freigestelltes Foto fuellt die Hero-Hoehe und darf hinter den Text laufen */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-visual img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right center;
}

/* Weicher Verlauf nach links fuer die Lesbarkeit,
   nach unten und oben gegen die harte Schnittkante des Fotos */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--paper) 0%,
      rgba(var(--paper-rgb), 0.92) 22%,
      rgba(var(--paper-rgb), 0.55) 42%,
      rgba(var(--paper-rgb), 0) 62%
    ),
    linear-gradient(to top, var(--paper) 0%, rgba(var(--paper-rgb), 0) 14%),
    linear-gradient(to bottom, var(--paper) 0%, rgba(var(--paper-rgb), 0) 10%);
}

/* Services – offenes, zentriertes Raster ohne Karten und Trennlinien */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-more {
  display: flex;
  justify-content: center;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

.section-more .text-link {
  margin-top: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.service-card .text-link {
  align-self: center;
}

.service-icon {
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 2.6rem;
  height: 2.6rem;
  stroke: var(--sage);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icons bringen ihre eigene Aquarellflaeche mit – daher groesser als reine Line-Art */
.service-icon img {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.service-card > .service-note {
  margin: -0.85rem 0 1.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.85;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

/* Organische Form: nahezu quadratisch, damit sie rund statt eifoermig wirkt */
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 43% 57% 46% 54% / 54% 45% 55% 46%;
}

.about-copy p {
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: 1.06rem;
}

.about-copy > p:first-of-type {
  margin-top: 1.5rem;
}

.about-copy p + p {
  margin-top: 1rem;
}

/* Eigenschaften als ruhige Reihe mit Trennpunkten */
.traits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--rose-deep);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.traits li + li::before {
  content: "·";
  margin-right: 0.9rem;
  color: var(--line-strong);
}

.about-copy .btn {
  margin-top: 2.25rem;
}

/* Practice */
.practice-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.practice-place {
  margin: 1.5rem 0 0;
  color: var(--rose-deep);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.practice-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}

.practice-gallery__main {
  grid-row: 1 / span 2;
  margin: 0;
}

.practice-gallery__side {
  margin: 0;
}

.practice-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-image);
}

/* Die Seitenbilder geben die Hoehe vor, das grosse Bild fuellt sie aus. */
.practice-gallery__main img {
  min-height: 100%;
}

.practice-gallery__side img {
  aspect-ratio: 4 / 3;
}

/* Booking */
#hebamio-booking {
  display: grid;
  place-items: center;
  min-height: 20rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-image);
  text-align: center;
}

.booking-fallback p {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--ink-muted);
}

.booking-note {
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-list strong {
  font-weight: 400;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--rose-deep);
  text-decoration: underline;
}

/* Formular ohne Box – nur Felder auf Linien */
.contact-form {
  display: grid;
  gap: 1.6rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--rose);
  outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.contact-form .form-status a {
  color: inherit;
}

.contact-form .btn {
  justify-self: start;
}

/* Footer */
.site-footer {
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.25rem;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.footer-brand p {
  margin: 1.1rem 0 0;
  max-width: 30ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-top: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: var(--sage);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover {
  color: var(--rose-deep);
}

.footer-nav h2,
.footer-legal h2 {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-nav ul,
.footer-legal ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-legal a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--rose-deep);
}

.footer-copy {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Kopfbereich der Unterseiten: Text links, Foto rechts im Hintergrund */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(18rem, 38vh, 26rem);
  overflow: hidden;
}

.page-hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(58%, 46rem);
  z-index: 1;
  pointer-events: none;
}

.page-hero__visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 28%;
}

.page-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--paper) 0%,
      rgba(var(--paper-rgb), 0.86) 18%,
      rgba(var(--paper-rgb), 0.45) 40%,
      rgba(var(--paper-rgb), 0) 62%
    ),
    linear-gradient(to top, var(--paper) 0%, rgba(var(--paper-rgb), 0) 16%),
    linear-gradient(to bottom, var(--paper) 0%, rgba(var(--paper-rgb), 0) 12%);
}

.page-hero__copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-hero__copy > * {
  max-width: 36rem;
}

.page-hero__copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* Beide Header-Fotos tragen den Papierton der Seite bereits im Bild.
   Sie werden deshalb als Flaeche eingebaut statt als Freisteller - so
   entsteht keine Silhouette und kein dunkler Saum an den Haaren. */
.page-hero--portrait,
.page-hero--figure {
  min-height: clamp(24rem, 54vh, 36rem);
}

/* Mutter und Kind: gespiegelt, damit die Personen zur Seitenmitte blicken */
.page-hero--portrait .page-hero__visual {
  width: min(54%, 40rem);
}

.page-hero--portrait .page-hero__visual img {
  object-position: 50% 16%;
  transform: scaleX(-1);
}

/* Oben und unten schneidet der Ausschnitt durch das Motiv,
   der Verlauf laesst diese Kanten ins Papier auslaufen. */
.page-hero--portrait .page-hero__visual::after {
  background:
    linear-gradient(
      to right,
      var(--paper) 0%,
      rgba(var(--paper-rgb), 0.9) 14%,
      rgba(var(--paper-rgb), 0.4) 34%,
      rgba(var(--paper-rgb), 0) 56%
    ),
    linear-gradient(to bottom, var(--paper) 0%, rgba(var(--paper-rgb), 0) 14%),
    linear-gradient(to top, var(--paper) 0%, rgba(var(--paper-rgb), 0) 14%);
}

/* Ganzfigur: das Motiv steht frei im Bild, der Ausschnitt schneidet
   nur durch leeres Papier - hier braucht es keine Verlaeufe. */
.page-hero--figure .page-hero__visual {
  width: min(56%, 42rem);
}

.page-hero--figure .page-hero__visual img {
  object-position: 88% 50%;
}

.page-hero--figure .page-hero__visual::after {
  background: none;
}

/* Detailbloecke mit Icon: Icon links, Text rechts */
.detail-list {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.detail-item__icon img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}

.detail-item__body h2 {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.detail-item__body p {
  margin: 0 0 0.9rem;
  max-width: 52ch;
  color: var(--ink-muted);
}

.detail-item__body p:last-child {
  margin-bottom: 0;
}

.detail-item__meta {
  margin-top: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.detail-list--tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
}

.detail-list--tiles .detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.5rem, 2vw, 1.5rem);
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.detail-list--tiles .detail-item__icon {
  margin-bottom: 0.35rem;
}

.detail-list--tiles .detail-item__icon img {
  width: 7rem;
  height: 7rem;
}

.detail-list--tiles .detail-item__body h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.detail-list--tiles .detail-item__body p {
  margin-inline: auto;
  max-width: 38ch;
}

@media (max-width: 760px) {
  .page-hero {
    display: block;
    min-height: 0;
  }

  .page-hero__visual {
    position: relative;
    width: 100%;
    height: clamp(14rem, 46vw, 20rem);
  }

  .page-hero__visual img {
    object-position: 58% 22%;
  }

  .page-hero__visual::after {
    background: linear-gradient(to bottom, rgba(var(--paper-rgb), 0) 55%, var(--paper) 100%);
  }

  .page-hero__copy {
    padding-top: 1.25rem;
  }

  .page-hero--portrait,
  .page-hero--figure {
    min-height: 0;
  }

  .page-hero--portrait .page-hero__visual {
    width: 100%;
    height: clamp(17rem, 72vw, 26rem);
  }

  .page-hero--portrait .page-hero__visual img {
    object-position: 50% 26%;
  }

  .page-hero--portrait .page-hero__visual::after {
    background: linear-gradient(to bottom, rgba(var(--paper-rgb), 0) 62%, var(--paper) 100%);
  }

  /* Die Figur wird ganz gezeigt: contain statt cover, sonst schneidet
     der Ausschnitt Kopf oder Fuesse ab. */
  .page-hero--figure .page-hero__visual {
    width: 100%;
    height: clamp(14rem, 58vw, 22rem);
  }

  .page-hero--figure .page-hero__visual img {
    object-fit: contain;
    object-position: 72% 50%;
  }

  .page-hero--figure .page-hero__visual::after {
    background: none;
  }
}

@media (max-width: 700px) {
  .detail-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .detail-item__body p {
    margin-inline: auto;
  }

  .detail-list--tiles {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.legal-main {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 5rem;
}

.legal-main .wrap {
  width: min(calc(100% - 2.5rem), 44rem);
}

.legal-main.wide .wrap {
  width: min(calc(100% - 2.5rem), 52rem);
}

.detail-block {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.detail-block h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.detail-meta {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.legal-main h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.legal-main h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.legal-main p,
.legal-main li {
  color: var(--ink-muted);
}

.legal-main ul {
  padding-left: 1.15rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .service-grid,
  .service-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .practice-intro,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-visual {
    position: static;
    justify-content: center;
    margin-inline: auto;
    max-width: 26rem;
  }

  .hero-visual img {
    height: auto;
    width: 100%;
  }

  .hero-visual::after {
    display: none;
  }

  .hero-grid {
    margin-inline: auto;
    padding-bottom: 2rem;
  }

  .hero-copy {
    max-width: none;
  }

  .practice-intro {
    align-items: start;
  }

  .practice-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .practice-gallery__main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .practice-gallery__main img {
    aspect-ratio: 16 / 10;
  }

  .about-photo {
    max-width: 22rem;
    margin-inline: auto;
  }
}

@media (max-width: 839px) {
  .wrap {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 40;
    background: var(--paper);
    padding: 1.5rem 1.25rem 2rem;
    /* Einblenden statt seitlichem Hereinschieben: ein fixiertes Panel
       ausserhalb des Viewports laesst sich nicht wegclippen und wuerde
       auf Mobilgeraeten horizontales Scrollen ausloesen. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a {
    font-size: 1.1rem;
  }

  .site-nav .btn {
    margin: 1rem 0 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .service-grid,
  .service-grid--four,
  .practice-gallery {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .btn-row .btn {
    width: 100%;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
