/* Schreinerei Huber – Stylesheet
   Aufbau wie beim Café Sonnwend (Morph-Effekte), mit eigenen Farben:
   helles Grau, Moosgrün als Akzent, Eiche nur als kleiner Holzton. */

:root {
  --papier: #F4F4F1;
  --weiss: #FFFFFF;
  --stein: #E9E8E3;
  --tinte: #1D1D1F;
  --grau: #6B6B70;
  --linie: rgba(29, 29, 31, .09);
  --moos: #35503E;
  --moos-tief: #273C2E;
  --eiche: #B07A45;
  --eiche-hell: #E7D3BA;

  --glas: rgba(255, 255, 255, .64);
  --glas-rand: rgba(255, 255, 255, .7);
  --glas-schatten: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 40px rgba(29, 29, 31, .10);
  --blur: blur(22px) saturate(170%);

  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --schrift-gross: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  --maß: min(1200px, 100% - 2rem);
  --r-bild: 24px;
  --r-karte: 18px;
  --abstand: clamp(3rem, 6vw, 5rem);
  --sanft: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: clamp(1rem, .2vw + .95rem, 1.0625rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--schrift-gross);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.032em; hyphens: auto; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.3vw, 1.3rem); letter-spacing: -0.015em; line-height: 1.25; }

p { margin: 0 0 .9em; max-width: 62ch; }
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.22rem); line-height: 1.45; color: var(--grau); letter-spacing: -0.005em; }

a { color: var(--moos); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--moos-tief); }

:focus-visible { outline: 3px solid var(--eiche); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; background: var(--tinte); color: #fff; padding: .6rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: var(--maß); margin-inline: auto; }
.section { padding-block: var(--abstand); }
.section--eng { padding-block: calc(var(--abstand) * .55); }
.kopfzeile-text { max-width: 680px; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.kopfzeile-text .lead { margin-bottom: 0; }

/* Glas */
.glas {
  background: var(--glas);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glas-rand);
  box-shadow: var(--glas-schatten);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glas { background: rgba(255, 255, 255, .95); }
}

/* Glas über Fotos: weniger durchsichtig, damit Text auf jedem Foto lesbar bleibt (Kontrast ≥ 4,5:1) */
.kachel__glas, .morph__karte, .cta__karte, .foto-schild { background: rgba(255, 255, 255, .84); }
.kachel__glas p, .morph__karte p, .cta__karte p, .foto-schild p { color: #45454A; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .65em 1.3em;
  font: 600 .98rem/1.2 var(--schrift);
  text-decoration: none; border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color .2s, transform .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn[hidden] { display: none; }
.btn--voll { background: var(--moos); color: #fff; }
.btn--voll:hover { background: var(--moos-tief); color: #fff; }
.btn--leise { background: rgba(29, 29, 31, .06); color: var(--tinte); }
.btn--leise:hover { background: rgba(29, 29, 31, .11); color: var(--tinte); }
.aktionen { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Kopfzeile: schwebende Glasleiste */
.kopf { position: sticky; top: 12px; z-index: 30; padding-top: 12px; margin-top: -12px; }
.kopf__leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 58px; padding: 0 .45rem 0 1rem; border-radius: 999px;
  position: relative;
}
.marke { display: flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--tinte); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.marke:hover { color: var(--tinte); }
.marke svg { width: 28px; height: 28px; flex: none; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a { display: block; padding: .55rem .9rem; border-radius: 999px; color: var(--tinte); text-decoration: none; font-size: .96rem; font-weight: 500; }
.nav a:hover { background: rgba(29, 29, 31, .06); }
.nav a[aria-current="page"] { background: rgba(29, 29, 31, .08); font-weight: 600; }
.nav .nav__cta a { background: var(--moos); color: #fff; margin-left: .35rem; }
.nav .nav__cta a:hover, .nav .nav__cta a[aria-current="page"] { background: var(--moos-tief); }

.menu-knopf {
  display: none; min-width: 48px; min-height: 46px; border: 0; border-radius: 999px;
  background: transparent; color: var(--tinte); cursor: pointer; font: 600 1rem var(--schrift);
  align-items: center; gap: .5rem; padding: 0 .9rem;
}
.menu-knopf span[aria-hidden] { display: grid; gap: 5px; }
.menu-knopf i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-knopf[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-knopf[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-knopf[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-knopf { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    border-radius: var(--r-karte); padding: .5rem;
    background: var(--weiss); border: 1px solid var(--linie);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .14);
    opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .js .nav.offen { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav a { padding: .8rem 1rem; font-size: 1.05rem; border-radius: 14px; }
  .nav .nav__cta a { margin: .35rem 0 0; text-align: center; }
}

/* Öffnungsstatus */
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; margin-bottom: .35rem !important; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9A9A9F; flex: none; }
.status.offen::before { background: #34A853; box-shadow: 0 0 0 4px rgba(52, 168, 83, .18); }

/* =========================================================
   Startseite: Morph-Hero
   Das Foto beginnt im Vollbild und wird beim Scrollen zur
   abgerundeten Karte. --p läuft dabei von 0 bis 1 (setzt main.js).
   ========================================================= */
.morph { --p: 1; position: relative; }
.morph__buehne { position: relative; }
.morph__bild { border-radius: var(--r-bild); overflow: hidden; height: min(66vh, 620px); min-height: 380px; position: relative; }
.morph__bild img { width: 100%; height: 100%; object-fit: cover; }
.morph__titel { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem); }
.morph__titel h1 { margin: 0; }
.morph__titel p { margin: .5rem 0 0; color: var(--grau); }
.morph__karte {
  position: absolute; left: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem);
  max-width: 440px; border-radius: var(--r-karte); padding: clamp(1.1rem, 2.5vw, 1.5rem);
}
.morph__karte p { margin-bottom: .8rem; font-size: .98rem; }
.morph__karte .aktionen { margin-top: 1rem; }

/* Ruhige Variante: Überschrift über dem Foto, Karte auf dem Foto */
html:not(.bewegung) .morph__buehne { width: var(--maß); margin-inline: auto; display: flex; flex-direction: column; }
html:not(.bewegung) .morph__titel { order: -1; }
html:not(.bewegung) .morph__titel .wrap { width: auto; }
@media (max-width: 560px) {
  html:not(.bewegung) .morph__karte { position: relative; left: 0; right: 0; bottom: 0; margin-top: 1rem; max-width: none; }
}

/* Bewegte Variante (nur mit JavaScript und ohne „Bewegung reduzieren“) */
.bewegung .morph { --p: 0; --oben: 84px; height: 200vh; height: 200svh; margin-top: -58px; }
.bewegung .morph__buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* Nur Verschieben und Skalieren (flüssig am iPhone, siehe CLAUDE.md).
   Das Foto ist rundum etwas größer als der Bildschirm, damit die runden Ecken am Anfang nicht zu sehen sind.
   Beim Scrollen wandert es nach unten und schrumpft zur Karte. --s (Kartenbreite) setzt main.js. */
.bewegung .morph__bild {
  position: absolute; inset: calc(var(--r-bild) * -1); height: auto; min-height: 0;
  border-radius: var(--r-bild); transform-origin: 50% 0; will-change: transform;
  transform: translateY(calc(var(--p) * (var(--oben) + var(--r-bild)))) scale(calc(1 - var(--p) * (1 - var(--s, .9))));
}
.bewegung .morph__bild img { transform: scale(calc(1.14 - var(--p) * .14)); transform-origin: 50% 40%; will-change: transform; }
.bewegung .morph__bild::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 18, 14, .2) 0%, rgba(20, 18, 14, .12) 40%, rgba(20, 18, 14, .72) 100%);
  opacity: calc(1 - var(--p));
}
.bewegung .morph__titel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 clamp(2.5rem, 9vh, 5rem);
  color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  opacity: clamp(0, 1 - var(--p) * 2.2, 1);
  transform: translateY(calc(var(--p) * -70px)) scale(calc(1 - var(--p) * .08));
  transform-origin: 0 100%;
}
.bewegung .morph__titel h1 { font-size: clamp(2.8rem, 7.5vw, 6.2rem); line-height: 1; }
.bewegung .morph__titel p { color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.bewegung .morph__karte {
  left: max(2rem, (100vw - 1200px) / 2 + 2rem); bottom: 3rem; right: auto; width: min(440px, 100vw - 4rem);
  opacity: clamp(0, (var(--p) - .45) * 2.6, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - .45) * 2.6, 1)) * 40px));
}
.bewegung .morph__karte:focus-within { opacity: 1; transform: none; }
.scroll-hinweis { display: none; }
.bewegung .scroll-hinweis {
  display: grid; place-items: center; position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0;
  width: 28px; height: 44px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 99px;
  opacity: clamp(0, 1 - var(--p) * 5, 1);
}
.bewegung .scroll-hinweis::before { content: ""; width: 4px; height: 9px; border-radius: 4px; background: #fff; animation: rollen 1.8s var(--sanft) infinite; }
@keyframes rollen { from { transform: translateY(-8px); opacity: 1; } to { transform: translateY(10px); opacity: 0; } }

/* Wo der Browser es kann (Safari ab iOS 26, Chrome, Edge): Der Hero hängt direkt am Scrollen,
   ohne Skript. Die Strecke 0 bis 74svh entspricht der Rechnung in main.js. */
@supports (animation-timeline: scroll()) {
  .bewegung .morph__buehne { height: 100vh; height: 100lvh; }
  .bewegung .morph__bild { animation: karte-schrumpfen linear both; animation-timeline: scroll(root); animation-range: 0 74svh; }
  .bewegung .morph__bild img { animation: foto-zoom linear both; animation-timeline: scroll(root); animation-range: 0 74svh; }
  .bewegung .morph__bild::after { animation: ausblenden linear both; animation-timeline: scroll(root); animation-range: 0 74svh; }
  .bewegung .morph__titel { animation: titel-weg linear both; animation-timeline: scroll(root); animation-range: 0 74svh; }
  .bewegung .morph__karte { animation: karte-ein linear both; animation-timeline: scroll(root); animation-range: 0 74svh; }
  .bewegung .morph__karte:focus-within { animation: none; opacity: 1; transform: none; }
  .bewegung .scroll-hinweis { animation: ausblenden linear both; animation-timeline: scroll(root); animation-range: 0 15svh; }
}
@keyframes karte-schrumpfen { from { transform: none; } to { transform: translateY(calc(var(--oben) + var(--r-bild))) scale(var(--s, .9)); } }
@keyframes foto-zoom { from { transform: scale(1.14); } to { transform: none; } }
@keyframes ausblenden { to { opacity: 0; } }
@keyframes titel-weg { 0% { opacity: 1; transform: none; } 45% { opacity: 0; } 100% { opacity: 0; transform: translateY(-70px) scale(.92); } }
@keyframes karte-ein { 0%, 45% { opacity: 0; transform: translateY(40px); } 84%, 100% { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .bewegung .morph { --oben: 78px; }
  .bewegung .morph__karte { left: 1.6rem; right: 1.6rem; width: auto; bottom: 2rem; }
  /* Am Handy kein Milchglas über dem bewegten Foto, das kostet zu viel Rechenleistung */
  .bewegung .morph .glas { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(252, 252, 250, .94); }
  .morph__karte .status { font-size: .93rem; }
}

/* Erscheinen beim Scrollen */
.bewegung .zeigen { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--sanft), transform .8s var(--sanft); }
.bewegung .zeigen.da { opacity: 1; transform: none; }

/* Wörter, die sich beim Scrollen füllen */
.fuellsatz { font-family: var(--schrift-gross); font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 650; letter-spacing: -0.028em; line-height: 1.18; max-width: 26ch; margin: 0; text-wrap: pretty; }
.bewegung .fuellsatz .wort { color: #8A8A8E; transition: color .35s; }
.bewegung .fuellsatz .wort.an { color: var(--tinte); }
.fuellsatz .wort.akzent.an, .fuellsatz:not(.geteilt) .akzent { color: var(--moos); }

/* Bento-Kacheln */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(190px, 18vw, 250px); gap: .9rem; }
.kachel { position: relative; border-radius: var(--r-bild); overflow: hidden; color: var(--tinte); text-decoration: none; background: var(--stein); }
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sanft); }
.kachel:hover img { transform: scale(1.04); }
.kachel:hover { color: var(--tinte); }
.kachel--gross { grid-column: span 2; grid-row: span 2; }
.kachel--breit { grid-column: span 2; }
.kachel__glas {
  position: absolute; left: .7rem; right: .7rem; bottom: .7rem;
  border-radius: 16px; padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.kachel__glas h3 { margin: 0; font-size: 1.05rem; }
.kachel__glas p { margin: .1rem 0 0; font-size: .88rem; }
.pfeil { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tinte); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.kachel:hover .pfeil { transform: translateX(3px); }
.pfeil svg { width: 14px; height: 14px; }
@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: .7rem; }
  .kachel--gross { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
  .bento { grid-auto-rows: 160px; }
  .kachel--gross, .kachel--breit { grid-column: span 2; }
  .kachel__glas { left: .5rem; right: .5rem; bottom: .5rem; padding: .6rem .75rem; }
  .kachel:not(.kachel--gross):not(.kachel--breit) .pfeil { display: none; }
}

/* Vom Holz zum Möbel: Bild bleibt stehen, Text scrollt */
.geschichte__raster { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.geschichte__bilder {
  position: sticky; top: 96px; height: min(72vh, 600px); align-self: start;
  border-radius: var(--r-bild); overflow: hidden; background: var(--stein);
}
.geschichte__bilder img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity .8s var(--sanft), transform 1.4s var(--sanft);
}
.geschichte__bilder img.aktiv, .geschichte__bilder:not(.bereit) img:first-child { opacity: 1; transform: none; }
.punkte { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; display: flex; gap: .4rem; padding: .45rem .6rem; border-radius: 99px; }
.punkte span { width: 8px; height: 8px; border-radius: 99px; background: rgba(29, 29, 31, .3); transition: width .4s var(--sanft), background-color .4s; }
.punkte span.aktiv { width: 24px; background: var(--tinte); }
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
.schritte li { counter-increment: schritt; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; padding-block: 1.5rem; }
.schritte li:first-child { min-height: 40vh; justify-content: flex-start; padding-top: 2.5rem; }
.schritte li::before {
  content: counter(schritt); display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%; margin-bottom: .9rem;
  background: var(--moos); color: #fff; font-weight: 650; font-size: .95rem;
}
.schritte h3 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.schritte p { color: var(--grau); font-size: 1.05rem; }
.bewegung .schritte li > * { transition: transform .6s var(--sanft); }
.bewegung .schritte li:not(.aktiv) > * { transform: translateX(-6px); }
@media (max-width: 880px) {
  .geschichte__raster { grid-template-columns: 1fr; gap: 0; }
  /* Der helle „Schatten“ nach oben verdeckt Text, der hinter dem Bild hochscrollt */
  .geschichte__bilder { top: 80px; height: 34vh; z-index: 2; box-shadow: 0 -80px 0 var(--papier), 0 10px 30px rgba(29, 29, 31, .15); }
  .schritte li, .schritte li:first-child { min-height: 48vh; justify-content: flex-start; padding-top: 2rem; }
}

/* Foto mit Zoom beim Scrollen */
.bewegung [data-zoom] img { transform: scale(calc(1.14 - var(--z, 0) * .14)); }

/* Glas-CTA über Foto */
.cta { position: relative; border-radius: var(--r-bild); overflow: hidden; min-height: 400px; display: grid; place-items: center; padding: clamp(1.25rem, 4vw, 2.5rem); }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__karte { position: relative; border-radius: var(--r-karte); padding: clamp(1.4rem, 3.5vw, 2.25rem); max-width: 500px; text-align: center; }
.cta__karte h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta__karte p { margin-inline: auto; }
.cta__karte .aktionen { justify-content: center; margin-top: 1.25rem; }
@media (max-width: 560px) { .cta { min-height: 340px; } }

/* =========================================================
   Seitenkopf Unterseiten: Text links, Foto rechts
   ========================================================= */
.seitenkopf { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem); }
.seitenkopf__raster { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: center; }
.seitenkopf h1 { max-width: 15ch; }
.seitenkopf .lead { max-width: 42ch; }
.seitenkopf__bild { border-radius: var(--r-bild); overflow: hidden; aspect-ratio: 4 / 3; }
.seitenkopf__bild img { width: 100%; height: 100%; object-fit: cover; }
.seitenkopf--schlicht h1 { max-width: none; }
@media (max-width: 880px) {
  .seitenkopf__raster { grid-template-columns: 1fr; }
  .seitenkopf__bild { aspect-ratio: 16 / 9; }
}

/* Leistungen */
.reiter-halter { position: sticky; top: 84px; z-index: 20; display: flex; justify-content: center; padding-block: .5rem; pointer-events: none; }
.reiter {
  pointer-events: auto;
  display: flex; gap: .15rem; padding: .3rem; border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.reiter::-webkit-scrollbar { display: none; }
.reiter a { white-space: nowrap; padding: .55rem .95rem; min-height: 44px; display: flex; align-items: center; border-radius: 999px; color: var(--tinte); text-decoration: none; font-size: .93rem; font-weight: 500; }
.reiter a:hover { background: rgba(29, 29, 31, .06); }
.reiter a.aktiv { background: var(--tinte); color: #fff; }

.leistung { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.leistung:nth-of-type(even) .leistung__bild { order: 2; }
.leistung__bild { border-radius: var(--r-bild); overflow: hidden; aspect-ratio: 3 / 2; }
.leistung__bild img { width: 100%; height: 100%; object-fit: cover; }
.leistung h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.leistung p { color: var(--grau); }
.hinweis-text { font-size: .93rem; color: var(--grau); margin: 1rem 0 0; }
@media (max-width: 880px) {
  .leistung { grid-template-columns: 1fr; gap: 1rem; }
  .leistung:nth-of-type(even) .leistung__bild { order: 0; }
}

.merkmale { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.merkmale li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .85rem .38rem .65rem; border-radius: 999px;
  background: var(--weiss); border: 1px solid var(--linie); font-size: .9rem;
}
.merkmale li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--eiche); }

.ablauf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; counter-reset: schritt; }
.ablauf li { counter-increment: schritt; background: var(--weiss); border-radius: var(--r-karte); padding: 1.25rem 1.15rem 1.35rem; }
.ablauf li::before {
  content: counter(schritt); display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%; margin-bottom: .9rem;
  background: var(--moos); color: #fff; font-weight: 650; font-size: .95rem;
}
.ablauf h3 { font-size: 1.08rem; margin-bottom: .3em; }
.ablauf p { font-size: .93rem; color: var(--grau); margin: 0; }
@media (max-width: 1000px) { .ablauf { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .ablauf { grid-template-columns: 1fr; gap: .6rem; }
  .ablauf li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; padding: 1rem 1.1rem; }
  .ablauf li::before { grid-row: span 2; margin: 0; }
}

/* Über uns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__bild { border-radius: var(--r-bild); overflow: hidden; aspect-ratio: 4 / 3; }
.split__bild img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split__bild { aspect-ratio: 16 / 10; } }

.chronik { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.chronik li { background: var(--weiss); border-radius: var(--r-karte); padding: 1.25rem 1.15rem; border-top: 3px solid var(--eiche-hell); }
.chronik time { display: block; font-family: var(--schrift-gross); font-size: 1.9rem; font-weight: 650; letter-spacing: -0.035em; color: var(--moos); line-height: 1; margin-bottom: .7rem; }
.chronik h3 { font-size: 1.05rem; margin-bottom: .3em; }
.chronik p { margin: 0; color: var(--grau); font-size: .93rem; }
@media (max-width: 1000px) {
  .chronik { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; }
  .chronik li { scroll-snap-align: start; }
}

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.person { background: var(--weiss); border-radius: var(--r-karte); padding: 1.25rem; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.monogramm {
  width: 52px; height: 52px; border-radius: 50%; grid-row: span 2;
  display: grid; place-items: center; font-weight: 650; font-size: 1.05rem; color: #3A2A1A;
  background: var(--farbe);
}
.person h3 { font-size: 1.05rem; margin: 0; }
.person .rolle { color: var(--grau); font-size: .9rem; margin: 0; }
.person .ueber { grid-column: 1 / -1; color: var(--grau); font-size: .93rem; margin: .8rem 0 0; }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; gap: .6rem; } }

/* Kontakt */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.info { border-radius: var(--r-karte); padding: 1.1rem 1.25rem; background: var(--weiss); }
.info h2 { font-family: var(--schrift); font-size: .9rem; letter-spacing: 0; color: var(--grau); font-weight: 600; margin-bottom: .3rem; }
.info p, .info address { margin: 0; font-style: normal; font-size: 1.02rem; }
.info a { color: var(--tinte); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.info a:hover { text-decoration: underline; }
.zeiten { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; margin: .4rem 0 0; font-size: .95rem; }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; }
@media (max-width: 560px) {
  .infos { gap: .6rem; }
  .info { padding: .9rem 1rem; }
  /* E-Mail und Öffnungszeiten brauchen die volle Breite, Telefon und Adresse stehen nebeneinander */
  .infos .info:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .infos .info:nth-child(4) { grid-column: 1 / -1; order: 4; }
}

.kontakt { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: stretch; }
/* Formular wächst auf die Höhe der rechten Spalte, das Nachrichtenfeld nimmt den Platz ein */
.kontakt .formular-karte { display: flex; flex-direction: column; }
.kontakt .formular { flex: 1; display: flex; flex-direction: column; }
.formular .feld--wachsen { flex: 1; display: flex; flex-direction: column; }
.formular .feld--wachsen textarea { flex: 1; }
.seitenleiste { display: grid; gap: clamp(1rem, 3vw, 1.75rem); }
@media (max-width: 880px) { .kontakt { grid-template-columns: 1fr; gap: 1rem; } }

.formular-karte, .box { border-radius: var(--r-bild); padding: clamp(1.25rem, 3vw, 2rem); background: var(--weiss); }
.formular-karte h2, .box h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.box p { color: var(--grau); font-size: .97rem; }
.box .klein { font-size: .88rem; }
.formular { display: grid; gap: 1rem; }
.feld { display: grid; gap: .35rem; min-width: 0; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .feld-reihe { grid-template-columns: 1fr; } }
.feld label { font-weight: 600; font-size: .95rem; }
.feld .freiwillig { font-weight: 400; color: var(--grau); }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinte);
  background: var(--papier); border: 1px solid rgba(29, 29, 31, .14);
  border-radius: 12px; padding: .7rem .9rem; min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.feld textarea { min-height: 7.5rem; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--moos); box-shadow: 0 0 0 4px rgba(53, 80, 62, .18); }
.feld [aria-invalid="true"] { border-color: #B3261E; }
.fehler { color: #B3261E; font-size: .9rem; margin: 0; }
.fehler:empty { display: none; }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: .25rem; }
.formular__fuss p { margin: 0; font-size: .88rem; color: var(--grau); max-width: 38ch; }
.meldung { font-weight: 600; color: var(--moos); margin: 0; }
.meldung:empty { display: none; }

/* Kleine Karte: lädt erst nach Zustimmung, scrollt erst nach Klick mit */
.karte {
  position: relative; border-radius: var(--r-karte); overflow: hidden; height: 220px; margin: 1rem 0 .9rem;
  background:
    linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, .9) 47% 49.5%, transparent 49.5%),
    linear-gradient(20deg, transparent 60%, rgba(255, 255, 255, .7) 60% 61.5%, transparent 61.5%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, .55) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, .55) 52px 54px),
    #E2E6DE;
}
.karte iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.karte.aktiv iframe { pointer-events: auto; }
.karte__knopf { position: absolute; inset: 0; display: grid; place-items: center; }
.karte__sperre {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: transparent;
  display: flex; align-items: flex-end; justify-content: center; padding: .7rem;
}
.karte__sperre span { background: rgba(29, 29, 31, .78); color: #fff; font: 600 .85rem var(--schrift); padding: .45rem .8rem; border-radius: 99px; }
.karte.aktiv .karte__sperre { display: none; }

/* Terminbuchung im Fenster */
.termin-fenster { width: min(860px, calc(100% - 1.5rem)); height: min(86vh, 760px); padding: 0; border: 0; border-radius: var(--r-bild); overflow: hidden; background: var(--weiss); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.termin-fenster[open] { display: flex; flex-direction: column; }
.termin-fenster::backdrop { background: rgba(29, 29, 31, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.termin-fenster__kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .6rem .6rem 1.25rem; border-bottom: 1px solid var(--linie); }
.termin-fenster__kopf h2 { font-size: 1.1rem; margin: 0; }
.termin-fenster__inhalt { flex: 1; }
.termin-fenster iframe { width: 100%; height: 100%; border: 0; display: block; }
.schliessen { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(29, 29, 31, .06); cursor: pointer; display: grid; place-items: center; color: var(--tinte); }
.schliessen:hover { background: rgba(29, 29, 31, .12); }
.schliessen svg { width: 16px; height: 16px; }

/* Text-Seiten: Impressum, Datenschutz */
.textseite { background: var(--weiss); border-radius: var(--r-bild); padding: clamp(1.25rem, 4vw, 3rem); max-width: 820px; overflow-wrap: break-word; }
.textseite h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 2em; }
.textseite h2:first-of-type { margin-top: 0; }
.textseite h3 { font-size: 1.05rem; margin-top: 1.5em; }
.textseite address { font-style: normal; margin-bottom: 1em; }
.beispiel { background: #FFF6E5; border: 1px solid #F0D9A8; border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 2rem; font-size: .95rem; }
.beispiel p { margin: 0; }

/* Fußzeile */
.fuss { --grau: #55555A; background: var(--stein); color: var(--grau); font-size: .93rem; margin-top: var(--abstand); }
.fuss .marke { color: var(--tinte); margin-bottom: .75rem; }
.fuss__innen { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.75rem; padding-block: 2.75rem 2rem; }
.fuss h2 { font-family: var(--schrift); font-size: .93rem; font-weight: 600; letter-spacing: 0; color: var(--tinte); margin-bottom: .6rem; }
.fuss a, .fuss .link-knopf { color: var(--grau); text-decoration: none; }
.fuss a:hover, .fuss .link-knopf:hover { color: var(--tinte); text-decoration: underline; }
.fuss address { font-style: normal; }
.fuss p { margin: 0 0 .45rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fuss__unten { border-top: 1px solid var(--linie); padding-block: 1.1rem; font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.fuss__unten p { margin: 0; max-width: none; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 880px) { .fuss__innen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss__innen { grid-template-columns: 1fr 1fr; gap: 1.25rem; } .fuss__innen > div:first-child { grid-column: 1 / -1; } }

/* Cookie-Hinweis */
.cookie {
  position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(600px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow-y: auto;
  border-radius: var(--r-karte); padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, .86);
  color: #1D1D1F;
}
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: .3rem; color: #1D1D1F; }
.cookie p { font-size: .9rem; color: #4A4A4F; margin-bottom: .8rem; }
.cookie a { color: #273C2E; }
.cookie .aktionen { gap: .5rem; }
.cookie .btn { min-height: 44px; padding: .55em 1.05em; font-size: .92rem; }
.cookie__wahl { display: grid; gap: .5rem; margin: 0 0 .9rem; padding: 0; border: 0; }
.cookie__wahl[hidden] { display: none; }
.schalter { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border-radius: 12px; background: rgba(29, 29, 31, .05); font-size: .9rem; }
.schalter input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--moos); flex: none; }
.schalter strong { display: block; color: #1D1D1F; }
.schalter span { color: #4A4A4F; }

/* Handy: insgesamt etwas kompakter */
@media (max-width: 560px) {
  :root { --abstand: 2.5rem; --r-bild: 20px; }
  .morph__bild { height: 56vh; min-height: 320px; }
  .lead { font-size: 1.02rem; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
