/* ==========================================================================
   Praxis Rudolfstrasse · Gestaltung
   Farben, Schriften und Abstände stehen als Variablen ganz oben.
   ========================================================================== */

/* ---------- Schrift (liegt auf dem eigenen Server, kein fremder Anbieter) ----------
   Nunito Sans: freie Schrift, die der Hausschrift Avenir Next sehr nahe kommt. */
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */
:root {
  --petrol: #20687c;        /* RAL 5025 Perlenzian, die Markenfarbe */
  --petrol-tief: #174f5f;
  --tinte: #1e2a30;         /* Text, fast Schwarz wie im Logo */
  --tinte-sanft: #4b5b62;
  --papier: #faf7f2;        /* warmes Weiß */
  --nebel: #e5eef0;         /* helles Petrol für ruhige Flächen */
  --holz: #b98552;          /* Ton des Parketts, nur für feine Linien */
  --holz-tief: #7f5226;
  --weiss: #ffffff;
  --linie: rgba(30, 42, 48, 0.14);

  --schrift-titel: "Nunito Sans", "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Nunito Sans", "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --breite: 1160px;
  --rand: clamp(20px, 4vw, 40px);
  --abstand: clamp(72px, 10vw, 128px);
  --kopf-h: 76px;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(30, 42, 48, 0.05), 0 10px 30px rgba(30, 42, 48, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 899px) {
  :root { --kopf-h: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--tinte);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem); font-weight: 270; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.springen {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--weiss);
  text-decoration: none;
}
.springen:focus { top: 1rem; color: var(--weiss); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Kleine Überschrift mit Linie (wie die Linien im Logo) ---------- */
.kennung {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--petrol);
}
.kennung::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.kennung--hell { color: #cfe4e9; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--weiss);
  font-family: var(--schrift-titel);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.knopf:hover {
  background: var(--petrol-tief);
  color: var(--weiss);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(32, 104, 124, 0.25);
}
.knopf:active { transform: none; }
.knopf .icon { width: 20px; height: 20px; }
.knopf--klein { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.95rem; }
.knopf--rahmen {
  background: transparent;
  color: var(--petrol);
  box-shadow: inset 0 0 0 1.5px var(--petrol);
}
.knopf--rahmen:hover {
  background: var(--petrol);
  color: var(--weiss);
  box-shadow: inset 0 0 0 1.5px var(--petrol);
}
.knopf[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.kopf--gescrollt { border-bottom-color: var(--linie); }

.kopf__innen {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--kopf-h);
}

.logo { display: block; flex: none; line-height: 0; }
.logo img { width: 188px; }

.nav { margin-left: auto; }
.nav__liste {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__liste a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-family: var(--schrift-titel);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--tinte);
  text-decoration: none;
}
.nav__liste a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__liste a:hover { color: var(--petrol); }
.nav__liste a:hover::after,
.nav__liste a:focus-visible::after { transform: scaleX(1); }

.kopf__aktionen { display: flex; align-items: center; gap: 0.5rem; }
.nur-klein { display: none; }

.menue-knopf {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
}
.menue-knopf__linie {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), left 0.3s var(--ease), width 0.3s var(--ease);
}
.menue-knopf__linie:nth-child(1) { top: 17px; }
.menue-knopf__linie:nth-child(2) { top: 25px; left: 17px; width: 16px; }
.kopf--offen .menue-knopf__linie:nth-child(1) { top: 21px; transform: rotate(45deg); }
.kopf--offen .menue-knopf__linie:nth-child(2) { top: 21px; left: 11px; width: 22px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .kopf__innen { gap: 1rem; }
  .logo img { width: 148px; }
  .kopf__aktionen { margin-left: auto; }
  .nur-gross { display: none; }
  .nur-klein { display: inline; }
  .menue-knopf { display: inline-block; }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.25rem var(--rand) 1.25rem;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 18px 30px rgba(30, 42, 48, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .js .kopf--offen .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .js .nav__liste { flex-direction: column; gap: 0; }
  .js .nav__liste a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--linie);
  }
  .js .nav__liste li:last-child a { border-bottom: 0; }
  .nav__liste a::after { display: none; }

  /* Ohne JavaScript: Menüpunkte einfach unter dem Logo zeigen */
  html:not(.js) .kopf__innen { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.75rem 1rem; }
  html:not(.js) .menue-knopf { display: none; }
  html:not(.js) .nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .nav__liste { flex-wrap: wrap; gap: 0.25rem 1.25rem; }
}

/* Sehr schmale Handys: Logo und Knopf etwas kompakter */
@media (max-width: 389px) {
  .logo img { width: 130px; }
  .kopf .knopf--klein { padding: 0.5rem 0.95rem; gap: 0.5rem; }
}

/* ---------- Einblenden beim Scrollen ---------- */
@keyframes auftauchen {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--verzoegerung, 0s);
}
.js [data-reveal].ist-sichtbar { opacity: 1; transform: none; }

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

/* ---------- Abschnitte allgemein ---------- */
.abschnitt { padding: var(--abstand) 0; }
.abschnitt--nebel { background: var(--nebel); }
.abschnitt--petrol { background: var(--petrol); color: rgba(255, 255, 255, 0.88); }
.abschnitt--petrol h2 { color: var(--weiss); }

.abschnitt__kopf {
  max-width: 42rem;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.abschnitt__kopf p:not(.kennung) { font-size: 1.1em; color: var(--tinte-sanft); }
.abschnitt--petrol .abschnitt__kopf p:not(.kennung) { color: rgba(255, 255, 255, 0.86); }

/* ---------- Kopfbereich der Startseite ---------- */
.held {
  padding: clamp(36px, 6vw, 88px) 0 var(--abstand);
  overflow: hidden;
}
.held__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.held__text > * { animation: auftauchen 0.9s var(--ease) both; }
.held__text > *:nth-child(2) { animation-delay: 0.08s; }
.held__text > *:nth-child(3) { animation-delay: 0.16s; }
.held__text > *:nth-child(4) { animation-delay: 0.24s; }
.held__text > *:nth-child(5) { animation-delay: 0.32s; }

.held h1 { margin-bottom: 0.45em; }
.held__lead {
  max-width: 33em;
  margin-bottom: 2rem;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  color: var(--tinte-sanft);
}
.held__hinweis {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 30em;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--tinte-sanft);
}
.held__hinweis .icon { width: 18px; height: 18px; margin-top: 0.2em; color: var(--holz); }

.held__bild {
  position: relative;
  margin: 0 0 28px 28px;
  animation: auftauchen 1.1s var(--ease) 0.2s both;
}
.held__bild img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.held__bild::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -28px;
  bottom: -28px;
  width: 58%;
  height: 62%;
  border-radius: var(--radius);
  background: var(--petrol);
}
.held__bild::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -28px;
  width: 28%;
  height: 2px;
  background: var(--holz);
}

@media (prefers-reduced-motion: reduce) {
  .held__text > *, .held__bild { animation: none; }
}

@media (max-width: 899px) {
  .held__raster { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .held__bild { margin: 0; max-width: 640px; }
  .held__bild::before, .held__bild::after { display: none; }
  .held__bild img { aspect-ratio: 3 / 2; }
}

/* ---------- Die Praxis: Bildstrecke ---------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  max-width: 1000px;
}
.galerie__bild {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--weiss);
}
.galerie__bild--quer { grid-column: span 2; aspect-ratio: 16 / 10; }
.galerie__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.galerie__bild:hover img { transform: scale(1.035); }
.galerie__hinweis { display: none; }

@media (max-width: 699px) {
  .galerie {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--rand) * -1);
    padding: 0 var(--rand) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--rand);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .galerie::-webkit-scrollbar { display: none; }
  .galerie__bild {
    flex: none;
    height: 64vw;
    max-height: 380px;
    scroll-snap-align: start;
  }
  .galerie__bild--quer { width: 85vw; aspect-ratio: auto; }
  .galerie__bild--hoch { width: 48vw; }
  .galerie__hinweis {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: var(--tinte-sanft);
  }
}

/* ---------- Ärztin und Arzt ---------- */
.arzt { padding: var(--abstand) 0; }
.arzt + .arzt { padding-top: 0; }
.arzt + .arzt .arzt__raster {
  padding-top: var(--abstand);
  border-top: 1px solid var(--linie);
}

.arzt__raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "bild kopf"
    "bild titel"
    "bild inhalt";
  column-gap: clamp(36px, 6vw, 96px);
}
.arzt--gespiegelt .arzt__raster {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "kopf bild"
    "titel bild"
    "inhalt bild";
}

.arzt__bild {
  grid-area: bild;
  align-self: start;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}
.arzt--gespiegelt .arzt__bild { justify-self: end; }
.arzt__kopf { grid-area: kopf; }
.arzt__kopf h2 { margin-bottom: 0.35em; }
.arzt__titel {
  grid-area: titel;
  margin-bottom: 1.6rem;
  font-size: 1.05em;
  color: var(--tinte-sanft);
}
.arzt__inhalt { grid-area: inhalt; }
.arzt__inhalt h3 { margin: 1.75rem 0 0.75rem; }
.arzt__notiz {
  padding-left: 1rem;
  border-left: 2px solid var(--nebel);
  font-size: 0.95rem;
  color: var(--tinte-sanft);
}

/* Platzhalter, solange es noch keine Porträtfotos gibt */
.platzhalter {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
}
.platzhalter--petrol {
  background: linear-gradient(160deg, #2a788d 0%, var(--petrol) 55%, var(--petrol-tief) 100%);
  color: rgba(255, 255, 255, 0.78);
}
.platzhalter--nebel {
  background: linear-gradient(160deg, #f0f5f6 0%, var(--nebel) 100%);
  color: var(--petrol);
}
.platzhalter .icon { width: 30%; height: auto; stroke-width: 1; }
.platzhalter::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 12%;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.liste {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.liste li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 2rem;
}
.liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 1.2rem;
  height: 1px;
  background: var(--petrol);
}

.kontaktkarte {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--holz);
  border-radius: var(--radius);
  background: var(--weiss);
  box-shadow: var(--schatten);
}
.kontaktkarte__titel {
  margin-bottom: 0.35rem;
  font-family: var(--schrift-titel);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol);
}
.kontaktkarte__zeit { margin-bottom: 0.75rem; }
.kontaktkarte__wege {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kontaktkarte__wege a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.kontaktkarte__wege a:hover { text-decoration: underline; }
.kontaktkarte__wege .icon { width: 18px; height: 18px; }

@media (max-width: 699px) {
  .arzt__raster,
  .arzt--gespiegelt .arzt__raster {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "bild kopf"
      "titel titel"
      "inhalt inhalt";
    column-gap: 18px;
  }
  .arzt__bild { max-width: none; }
  .arzt--gespiegelt .arzt__bild { justify-self: start; }
  .arzt__kopf { align-self: center; }
  .arzt__kopf .kennung { margin-bottom: 0.5rem; font-size: 0.72rem; letter-spacing: 0.1em; }
  .arzt__kopf .kennung::before { display: none; }
  .arzt__kopf h2 { margin: 0; font-size: 1.6rem; }
  .arzt__titel { margin: 1.25rem 0 0; font-size: 1rem; }
  .arzt__inhalt { margin-top: 1.25rem; }
  .platzhalter .icon { width: 46%; }
  .kontaktkarte { padding: 1.25rem; }
}

/* ---------- So läuft es ab ---------- */
.schritte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.schritt {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(32, 104, 124, 0.3);
}
.schritt::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--holz);
  transition: width 0.6s var(--ease);
}
.schritt:hover::before { width: 100%; }
.schritt__nr {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--schrift-titel);
  font-size: 3.25rem;
  font-weight: 200;
  line-height: 1;
  color: var(--petrol);
}
.schritt h3 { margin-bottom: 0.5rem; }
.schritt p { color: var(--tinte-sanft); }
.schritte__aktion { margin-top: clamp(40px, 5vw, 64px); }

@media (max-width: 699px) {
  .schritte { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .schritt { padding: 0 0 2rem 4rem; border-top: 0; }
  .schritt::before { display: none; }
  .schritt::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 3.2rem;
    bottom: 0.75rem;
    width: 1px;
    background: rgba(32, 104, 124, 0.3);
  }
  .schritt:last-child { padding-bottom: 0; }
  .schritt:last-child::after { display: none; }
  .schritt__nr { position: absolute; left: 0; top: -0.15rem; font-size: 2.6rem; }
  .schritte__aktion .knopf { width: 100%; justify-content: center; }
}

/* ---------- Anfahrt ---------- */
.anfahrt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.adresse {
  margin-bottom: 1.25rem;
  font-size: 1.15em;
  font-style: normal;
}
.adresse strong { font-family: var(--schrift-titel); font-weight: 700; }
.anfahrt__kopf { margin-bottom: 2.75rem; }

.wege {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wege li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.wege__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nebel);
  color: var(--petrol);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.wege li:hover .wege__icon { background: var(--petrol); color: var(--weiss); }
.wege h3 { margin: 0.5rem 0 0.25rem; font-size: 1.08rem; }
.wege p { color: var(--tinte-sanft); }

.anfahrt__karte { position: sticky; top: calc(var(--kopf-h) + 24px); }
.karte {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--nebel);
  box-shadow: var(--schatten);
}
.karte__skizze { position: absolute; inset: 0; width: 100%; height: 100%; }
.karte__hinweis {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--schatten);
}
.karte__hinweis p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--tinte-sanft); }
.karte__hinweis .knopf { flex: none; }
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte--geladen .karte__skizze { display: none; }

@media (max-width: 899px) {
  .anfahrt { grid-template-columns: minmax(0, 1fr); }
  .anfahrt__karte { position: static; }
  .karte { aspect-ratio: 4 / 5; }
  .karte__hinweis { flex-direction: column; align-items: stretch; }
  .karte__hinweis .knopf { justify-content: center; }
}
@media (min-width: 560px) and (max-width: 899px) {
  .karte { aspect-ratio: 4 / 3; }
}

/* ---------- Kontakt ---------- */
.anrufkarten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.anrufkarte {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(24px, 3vw, 36px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--weiss);
  color: var(--tinte);
  box-shadow: 0 20px 40px rgba(10, 40, 50, 0.18);
}
.anrufkarte h3 { margin: 0; font-size: 1.4rem; font-weight: 600; }
.anrufkarte__fach { margin: -0.5rem 0 0; font-size: 0.98rem; color: var(--tinte-sanft); }

.anruf {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--petrol);
  color: var(--weiss);
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.anruf:hover {
  background: var(--petrol-tief);
  color: var(--weiss);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(32, 104, 124, 0.25);
}
.anruf__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.anruf__label {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.anruf__nummer {
  display: block;
  font-family: var(--schrift-titel);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.anrufkarte__zeit { margin: 0; font-size: 0.98rem; color: var(--tinte-sanft); }
.anrufkarte__zeit strong { display: block; font-weight: 600; color: var(--tinte); }
.anrufkarte__mail {
  margin: auto 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--linie);
}
.anrufkarte__mail a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.anrufkarte__mail a:hover { text-decoration: underline; }
.anrufkarte__mail .icon { width: 18px; height: 18px; }

/* Nachricht schreiben (aufklappbar) */
.schreiben {
  margin-top: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.06);
  color: var(--weiss);
  transition: background-color 0.3s ease;
}
.schreiben:hover { background: rgba(255, 255, 255, 0.1); }
.schreiben[open] { border-color: transparent; background: var(--weiss); color: var(--tinte); }
.schreiben summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1.1rem clamp(20px, 3vw, 36px);
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.schreiben summary::-webkit-details-marker { display: none; }
.schreiben__plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.schreiben__plus::before,
.schreiben__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.schreiben__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.schreiben[open] .schreiben__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.schreiben__inhalt { padding: 0 clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px); }
.schreiben__hinweis {
  max-width: 46em;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--papier);
  font-size: 0.98rem;
  color: var(--tinte-sanft);
}

.formular fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; }
.formular legend { margin-bottom: 0.6rem; padding: 0; font-weight: 600; }
.wahlen { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wahl {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.6rem 1.15rem;
  border: 1px solid rgba(30, 42, 48, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.wahl:hover { border-color: var(--petrol); }
.wahl:has(input:checked) { border-color: var(--petrol); background: var(--nebel); }
.wahl input { width: 18px; height: 18px; margin: 0; accent-color: var(--petrol); }

.formular__raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.25rem;
}
.feld { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.feld label { font-size: 0.98rem; font-weight: 600; }
.feld__frei { font-weight: 400; color: var(--tinte-sanft); }
.feld input,
.feld textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(30, 42, 48, 0.22);
  border-radius: 8px;
  background: var(--papier);
  color: var(--tinte);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--petrol);
  background: var(--weiss);
  box-shadow: 0 0 0 3px rgba(32, 104, 124, 0.18);
}
.zustimmung {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--tinte-sanft);
  cursor: pointer;
}
.zustimmung input { flex: none; width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--petrol); }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.formular__status { margin: 0; font-weight: 600; }
.formular__status--ok { color: var(--petrol); }
.formular__status--fehler { color: var(--holz-tief); }

/* Unsichtbares Feld gegen Spam-Programme (Honeypot) */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 699px) {
  .anrufkarten { grid-template-columns: minmax(0, 1fr); }
  .formular__raster { grid-template-columns: minmax(0, 1fr); }
  .formular__fuss .knopf { width: 100%; justify-content: center; }
}

/* ---------- Fußzeile ---------- */
.fuss {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  border-top: 1px solid var(--linie);
  background: var(--papier);
  font-size: 0.98rem;
  color: var(--tinte-sanft);
}
.fuss__raster {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.fuss .logo img { width: 200px; }
.fuss address { font-style: normal; }
.fuss__titel {
  margin-bottom: 0.5rem;
  font-family: var(--schrift-titel);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinte);
}
.fuss__links { margin: 0; padding: 0; list-style: none; }
.fuss__links a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--tinte-sanft);
  text-decoration: none;
}
.fuss__links a:hover { color: var(--petrol); text-decoration: underline; }
.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: 0.875rem;
}

@media (max-width: 899px) {
  .fuss__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .fuss__raster { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .fuss__links a { padding: 0.55rem 0; }
}

/* ---------- Impressum und Datenschutz ---------- */
.rechtstext { padding: clamp(40px, 6vw, 80px) 0 var(--abstand); }
.rechtstext__innen { max-width: 760px; }
.rechtstext h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.rechtstext h2 { margin: 2.5rem 0 0.75rem; font-size: 1.45rem; font-weight: 600; }
.rechtstext h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.rechtstext p,
.rechtstext li { color: var(--tinte-sanft); }
.rechtstext strong { color: var(--tinte); }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext a { overflow-wrap: anywhere; }
.vorlage-hinweis {
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--holz);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--nebel);
  color: var(--tinte);
}
.vorlage-hinweis p { color: var(--tinte); }
