/* =====================================================================
   STYLE.CSS – Aussehen der Seite
   Farben und Schriften stehen ganz oben unter :root. Eine Farbe ändern =
   nur dort ändern. Alle Kontraste sind auf WCAG AA geprüft.
   ===================================================================== */

:root {
  /* Hauptfarbe (Rosenholz) und Neutraltöne */
  --farbe: #8a3b4a;          /* Buttons, Akzente. Weiß darauf: 7,5:1 */
  --farbe-dunkel: #6e2c3a;   /* Hover */
  --farbe-hell: #f3e7e8;     /* zarte Flächen */
  --grund: #faf7f5;          /* Seitenhintergrund */
  --weiss: #ffffff;
  --text: #1f1a1c;           /* Fließtext: 16:1 */
  --text-leise: #5e5559;     /* Nebentext: 6,7:1 */
  --linie: #e6dcdc;

  /* Schriften: Systemschriften, nichts wird nachgeladen */
  --schrift-titel: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --schrift-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Bewegung */
  --ease-aus: cubic-bezier(.22, 1, .36, 1);
  --dauer: 700ms;

  --rand: clamp(1.25rem, 5vw, 3rem);
  --breite: 68rem;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; scroll-padding-bottom: 6rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--schrift-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--farbe); text-underline-offset: .2em; }
a:hover { color: var(--farbe-dunkel); }
:focus-visible { outline: 3px solid var(--farbe); outline-offset: 3px; border-radius: 4px; }

.innen { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.springen {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--text); color: #fff; padding: .7rem 1rem; border-radius: 8px;
}
.springen:focus { top: 1rem; color: #fff; }

/* Platzhalter: gelb markiert, damit nichts übersehen wird */
.platzhalter { background: #fff1b8; color: #3d3200; padding: 0 .25em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Vorschau-Band (nur bei PREVIEW = true) */
.vorschau-band {
  background: var(--text); color: #fff; text-align: center;
  font-size: .8125rem; letter-spacing: .02em; padding: .35rem 1rem;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 245, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 220, 220, .7);
}
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.marke { font-family: var(--schrift-titel); font-size: 1.15rem; color: var(--text); text-decoration: none; line-height: 1.1; }
.marke small { display: block; font-family: var(--schrift-text); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.navi { display: none; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.navi a { color: var(--text); text-decoration: none; font-size: .95rem; position: relative; padding: .5rem 0; }
.navi a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-aus);
}
.navi a:hover::after, .navi a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.kopf-tel {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem;
  border-radius: 999px; border: 1px solid var(--farbe); color: var(--farbe); text-decoration: none; font-size: .95rem;
  transition: background-color 200ms, color 200ms;
}
.kopf-tel:hover { background: var(--farbe); color: #fff; }
.kopf-tel svg { width: 1rem; height: 1rem; }

/* ---------- Anruf-Button (der auffällige) ---------- */
.anruf {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 3.5rem; padding: 0 1.6rem 0 1.25rem;
  border-radius: 999px; background: var(--farbe); color: #fff;
  font-size: 1.05rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(138, 59, 74, .65);
  transition: transform 250ms var(--ease-aus), box-shadow 250ms;
  touch-action: manipulation;
}
.anruf::before { /* dunklere Fläche, die beim Hover von links hereinwächst */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--farbe-dunkel);
  transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease-aus);
}
.anruf:hover { color: #fff; transform: translateY(-2px); }
.anruf:hover::before { transform: scaleX(1); }
.anruf:active { transform: scale(.97); }
.anruf .icon {
  position: relative; display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.anruf .icon svg { width: 1.05rem; height: 1.05rem; }
.anruf .icon::after { /* sanfter Puls-Ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7);
  animation: puls 2.6s var(--ease-aus) infinite 1.8s; opacity: 0;
}
@keyframes puls { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

.leise-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 500; }
.leise-link span { transition: transform 300ms var(--ease-aus); display: inline-block; }
.leise-link:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 10vw, 7rem) 0 clamp(3.5rem, 9vw, 6.5rem); overflow: hidden; }
.hero::before { /* weicher Farbschimmer statt Foto */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; z-index: -1;
  background: radial-gradient(closest-side, rgba(138, 59, 74, .12), rgba(138, 59, 74, 0));
}
.hero .innen { display: grid; gap: 2.5rem; align-items: center; }
.ueberzeile { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.35rem, 9vw, 4.6rem); max-width: 14ch; }
.hero h1 .wort { display: inline-block; opacity: 0; transform: translateY(.45em); animation: wort 900ms var(--ease-aus) forwards; animation-delay: calc(var(--w) * 110ms + 150ms); }
.hero h1 em { font-style: italic; color: var(--farbe); }
@keyframes wort { to { opacity: 1; transform: none; } }
.hero .unterzeile { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--text-leise); max-width: 34ch; margin: 1.5rem 0 2rem; }
.hero .aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.ruhig-ein { opacity: 0; transform: translateY(14px); animation: wort 900ms var(--ease-aus) forwards; animation-delay: 900ms; }
.ruhig-ein.spaeter { animation-delay: 1100ms; }

/* Augenbraue aus Härchenstrichen */
.braue-buehne { position: relative; }
.braue { width: 100%; max-width: 34rem; margin-inline: auto; overflow: visible; }
.braue .schweben { animation: schweben 7s ease-in-out infinite alternate 2.6s; transform-box: fill-box; transform-origin: center; }
@keyframes schweben { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-6px) rotate(-1.2deg); } }
.haar {
  stroke: var(--farbe); stroke-width: 1.6; stroke-linecap: round; fill: none;
  opacity: 0; transform: scale(.15); transform-box: fill-box; transform-origin: 0% 100%;
  animation: haar 650ms var(--ease-aus) forwards; animation-delay: calc(var(--i) * 32ms + 450ms);
}
@keyframes haar { to { opacity: .9; transform: scale(1); } }
.braue-notiz { text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); margin-top: 1rem; }

/* Die Braue gleitet beim Scrollen sanft weg (nur, wo der Browser das kann) */
@supports (animation-timeline: scroll()) {
  .braue-buehne { animation: wegscrollen linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  @keyframes wegscrollen { to { transform: translateY(-50px) scale(.94); opacity: .25; } }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 11vw, 8rem) 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.kopf-abschnitt { max-width: 38rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.kopf-abschnitt h2 { font-size: clamp(2rem, 6vw, 3.1rem); margin-bottom: 1rem; }
.kopf-abschnitt p { color: var(--text-leise); font-size: 1.1rem; }
.marke-klein { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--farbe); margin-bottom: .9rem; font-weight: 600; }

/* Leistungen */
.karten { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.karte {
  position: relative; background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px;
  padding: 2rem 1.6rem 1.75rem; display: flex; flex-direction: column;
  transition: transform 400ms var(--ease-aus), box-shadow 400ms var(--ease-aus), border-color 400ms;
}
.karte:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(31, 26, 28, .35); border-color: #d9c6c8; }
.karte .zeichen { width: 2.75rem; height: 2.75rem; color: var(--farbe); margin-bottom: 1.5rem; transition: transform 500ms var(--ease-aus); }
.karte:hover .zeichen { transform: rotate(-8deg) scale(1.08); }
.karte h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.karte p { color: var(--text-leise); }
.karte .preis { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--linie); font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.karte .preis-wert { font-weight: 600; color: var(--text); }
.preis-hinweis { margin-top: 1.5rem; font-size: .9rem; color: var(--text-leise); }

/* Ablauf */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; counter-reset: schritt; }
.schritt { display: grid; grid-template-columns: 3rem 1fr; gap: 1.1rem; }
.schritt::before {
  counter-increment: schritt; content: counter(schritt, decimal-leading-zero);
  font-family: var(--schrift-titel); font-size: 1.5rem; color: var(--farbe); line-height: 1.2;
}
.schritt h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.schritt p { color: var(--text-leise); margin: 0; }
.hinweis-box { margin-top: 3rem; padding: 1.25rem 1.4rem; border-radius: 14px; background: var(--farbe-hell); font-size: .95rem; }
.hinweis-box strong { display: block; margin-bottom: .25rem; }

/* Über mich: der eine dunkle Moment der Seite */
.ueber { background: var(--farbe); color: #fff; border-top: 0 !important; }
.ueber .innen { display: grid; gap: 2.5rem; align-items: center; }
.ueber h2 { font-size: clamp(2rem, 6vw, 3.1rem); margin-bottom: 1.25rem; }
.ueber .marke-klein { color: #f6dfe2; }
.ueber p { color: #fbeef0; max-width: 36rem; }
.ueber .platzhalter { color: #3d3200; }
.fakt { display: flex; gap: 1rem; align-items: baseline; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.fakt b { font-family: var(--schrift-titel); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.fakt span { font-size: .95rem; color: #fbeef0; }

/* Foto-Platzhalter */
.foto {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 5; border-radius: 22px; padding: 1.5rem; overflow: hidden;
  background: linear-gradient(160deg, #f3e7e8 0%, #e9d4d7 55%, #dcbfc4 100%);
  color: #4a2a31; font-size: .95rem;
}
.foto::after { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(74, 42, 49, .35); border-radius: 14px; pointer-events: none; }
.foto strong { display: block; font-family: var(--schrift-titel); font-weight: 400; font-size: 1.25rem; margin-bottom: .25rem; }
.foto-quer { aspect-ratio: 16 / 10; }

/* Termine & Kontakt */
.kontakt-raster { display: grid; gap: 1.25rem; }
.feld { background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; padding: 1.75rem 1.6rem; }
.feld h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.feld address { font-style: normal; margin-bottom: 1rem; }
.zeiten { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.5rem; margin: 0 0 1rem; }
.zeiten dt { color: var(--text-leise); }
.zeiten dd { margin: 0; font-variant-numeric: tabular-nums; }
.zeiten-text { font-size: 1.05rem; }
.feld .anruf { margin-top: .5rem; }
.kontakt-liste { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.kontakt-liste a { overflow-wrap: anywhere; }

/* Abschluss */
.schluss { text-align: center; }
.schluss h2 { font-size: clamp(2.1rem, 7vw, 3.6rem); max-width: 16ch; margin: 0 auto 1.25rem; }
.schluss p { color: var(--text-leise); margin-bottom: 2rem; }

/* Fuß */
.fuss { padding: 2.5rem 0 6.5rem; font-size: .9rem; color: var(--text-leise); border-top: 1px solid var(--linie); }
.fuss .innen { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { color: var(--text-leise); min-height: 44px; display: inline-flex; align-items: center; }

/* Mobile Anrufleiste unten */
.anrufleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .75rem var(--rand) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 245, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--linie);
}
.anrufleiste .anruf { width: 100%; justify-content: center; }

/* Rechtstexte */
.recht { padding: clamp(3rem, 8vw, 5rem) 0 4rem; }
.recht .innen { max-width: 46rem; }
.recht h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); margin-bottom: 1.5rem; }
.recht h2 { font-size: 1.45rem; margin: 2.25rem 0 .75rem; }
.recht dl { display: grid; grid-template-columns: 1fr; gap: .2rem 1.5rem; }
.recht dt { font-weight: 600; margin-top: .6rem; }
.recht dd { margin: 0; }
.entwurf-hinweis { padding: 1rem 1.25rem; border-radius: 12px; background: #fff1b8; color: #3d3200; margin-bottom: 2rem; }

/* ---------- Einblenden beim Scrollen (nur mit JavaScript aktiv) ---------- */
.js .einblenden { opacity: 0; transform: translateY(24px); transition: opacity var(--dauer) var(--ease-aus), transform var(--dauer) var(--ease-aus); transition-delay: calc(var(--v, 0) * 90ms); }
.js .einblenden.sichtbar { opacity: 1; transform: none; }

/* ---------- Ab Tablet / Desktop ---------- */
@media (min-width: 720px) {
  .navi { display: flex; }
  .anrufleiste { display: none; }
  .fuss { padding-bottom: 2.5rem; }
  .karten { grid-template-columns: repeat(3, 1fr); }
  .schritte { grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; }
  .kontakt-raster { grid-template-columns: 1fr 1fr; }
  .recht dl { grid-template-columns: 14rem 1fr; }
  .recht dt { margin-top: 0; }
}
@media (min-width: 960px) {
  .hero .innen { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .ueber .innen { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
}

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .hero h1 .wort, .ruhig-ein, .haar { opacity: 1; transform: none; }
  .haar { opacity: .9; }
  .js .einblenden { opacity: 1; transform: none; }
  .anruf .icon::after { display: none; }
}
