/* ============================================================
   Tischlerei Theodor Dannenberg – Stylesheet
   Hell, warm, handwerklich. Farben aus dem Logo (Walnussbraun)
   und heller Eiche. Keine Fremdschriften vom CDN: Fraunces und
   Inter liegen unter /assets/fonts.
   ============================================================ */

@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-variabel.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-kursiv.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-variabel.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --papier: #faf7f2;
  --papier-2: #f3ede4;
  --sand: #e9dfd1;
  --linie: #e2d7c8;
  --tinte: #2a2420;
  --tinte-2: #5b5049;
  --leise: #7a6d63;
  --walnuss: #8a5846;
  --walnuss-dunkel: #6e4435;
  --walnuss-tief: #3b2821;
  --eiche: #c9a27a;
  --eiche-hell: #efe2cf;
  --gruen: #5f7a56;
  --weiss: #fff;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 18px;
  --r-klein: 10px;
  --schatten: 0 1px 2px rgba(59, 40, 33, .06), 0 10px 30px -12px rgba(59, 40, 33, .22);
  --schatten-gross: 0 2px 4px rgba(59, 40, 33, .06), 0 30px 60px -24px rgba(59, 40, 33, .35);
  --wrap: 1240px;
  --kopf-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 1.0625rem/1.7 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--walnuss); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--walnuss-dunkel); }
:focus-visible { outline: 3px solid var(--eiche); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.12; letter-spacing: -.012em; color: var(--tinte); margin: 0 0 .5em; font-variation-settings: "opsz" 96, "SOFT" 30; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); font-weight: 520; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); font-variation-settings: "opsz" 36; }
h1 em, h2 em { font-style: italic; color: var(--walnuss); font-weight: 420; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 650; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap--schmal { width: min(820px, 100% - 2.5rem); }
.nur-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--tinte); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:hover { color: #fff; }
.skip:focus { top: 1rem; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }

.etikett {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1rem;
  font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--walnuss);
}
.etikett::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* ---------- Knöpfe ---------- */
.knopf {
  --k-bg: var(--walnuss); --k-fg: #fff; --k-puls: 138, 88, 70;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; white-space: nowrap; border: 1.5px solid transparent;
  background: var(--k-bg); color: var(--k-fg); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .35s var(--ease);
  isolation: isolate;
}
.knopf .ic { transition: transform .35s var(--ease); }
.knopf:hover { background: var(--walnuss-dunkel); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(59, 40, 33, .6); }
.knopf:hover .ic:last-child { transform: translateX(3px); }
.knopf--rand { --k-bg: transparent; --k-fg: var(--tinte); border-color: rgba(42, 36, 32, .22); }
.knopf--rand:hover { background: var(--weiss); color: var(--tinte); border-color: var(--walnuss); }
.knopf--hell { --k-bg: #fff; --k-fg: var(--walnuss-tief); --k-puls: 255, 255, 255; }
.knopf--hell:hover { background: var(--eiche-hell); color: var(--walnuss-tief); }
.knopf--rand-hell { --k-bg: transparent; --k-fg: #fff; border-color: rgba(255, 255, 255, .5); }
.knopf--rand-hell:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.knopf--gross { min-height: 58px; padding-inline: 2rem; font-size: 1.05rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* Pulsieren: zwei weiche Ringe laufen nacheinander nach aussen.
   Hört bei Hover/Fokus auf und entfällt bei „Bewegung reduzieren“. */
@media (prefers-reduced-motion: no-preference) {
  .knopf--puls::before, .knopf--puls::after {
    content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(var(--k-puls), .55);
    animation: puls 2.6s cubic-bezier(.2, .6, .35, 1) infinite;
  }
  .knopf--puls::after { animation-delay: 1.3s; }
  .knopf--puls:hover::before, .knopf--puls:hover::after,
  .knopf--puls:focus-visible::before, .knopf--puls:focus-visible::after { animation: none; }
}
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(var(--k-puls), .5); }
  70% { box-shadow: 0 0 0 16px rgba(var(--k-puls), 0); }
  100% { box-shadow: 0 0 0 16px rgba(var(--k-puls), 0); }
}

/* ---------- Oberleiste & Kopf ---------- */
.oberleiste { background: var(--walnuss-tief); color: #eaded2; font-size: .84rem; }
.oberleiste__innen { display: flex; gap: 1.6rem; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; }
.oberleiste a, .oberleiste span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.oberleiste a:hover { color: #fff; }
.oberleiste .ic { width: 1.05em; height: 1.05em; opacity: .75; }
@media (max-width: 860px) { .oberleiste span, .oberleiste a[href^="mailto"] { display: none; } .oberleiste__innen { justify-content: center; } }

.kopf { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .96); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.kopf[data-gescrollt] { border-color: var(--linie); box-shadow: 0 8px 24px -18px rgba(59, 40, 33, .35); }
.kopf__innen { display: flex; align-items: center; gap: 1.2rem; min-height: var(--kopf-h); }
.kopf__logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--tinte); margin-right: auto; }
.kopf__logo img { width: 54px; height: 54px; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(59, 40, 33, .6); transition: transform .5s var(--ease); }
.kopf__logo:hover img { transform: rotate(-4deg) scale(1.04); }
.kopf__wort { font: 560 1.18rem/1.1 var(--serif); letter-spacing: -.01em; }
.kopf__wort small { display: block; font: 600 .66rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--walnuss); }
.kopf__nav { display: flex; align-items: center; gap: .15rem; }
.kopf__link { position: relative; white-space: nowrap; padding: .55rem .75rem; color: var(--tinte); text-decoration: none; font-weight: 520; font-size: .97rem; border-radius: 8px; }
.kopf__link::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 1.5px; background: var(--walnuss); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.kopf__link:hover, .kopf__link[aria-current] { color: var(--walnuss); }
.kopf__link:hover::after, .kopf__link[aria-current]::after { transform: scaleX(1); }
.kopf__tel { display: inline-flex; align-items: center; gap: .45rem; color: var(--tinte); text-decoration: none; font-weight: 600; white-space: nowrap; }
.kopf__tel .ic { color: var(--walnuss); }
.kopf__cta { min-height: 46px; padding: .6rem 1.2rem; font-size: .95rem; }
.kopf__tel-mobil { display: none; }
.kopf__burger { display: none; }

.menue { position: relative; display: flex; align-items: center; }
.menue > .kopf__link { padding-right: .2rem; }
.menue__auf { display: grid; place-items: center; width: 30px; height: 34px; background: none; border: 0; color: var(--tinte); cursor: pointer; border-radius: 6px; }
.menue__auf .ic { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.menue[data-offen] .menue__auf .ic { transform: rotate(180deg); }
.menue__liste {
  position: absolute; top: calc(100% + 10px); left: -1rem; width: 620px; padding: .8rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten-gross);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.menue[data-offen] .menue__liste { opacity: 1; visibility: visible; transform: none; }
.menue__liste a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--tinte); transition: background-color .2s; }
.menue__liste a:hover, .menue__liste a[aria-current] { background: var(--papier-2); }
.menue__liste .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--eiche-hell); color: var(--walnuss); flex: none; }
.menue__liste strong { display: block; font-weight: 600; font-size: .96rem; line-height: 1.3; }
.menue__liste small { display: block; color: var(--leise); font-size: .83rem; line-height: 1.35; }

@media (max-width: 1240px) { .kopf__tel span { display: none; } }
@media (max-width: 1120px) {
  .kopf__burger { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--linie); border-radius: 12px; background: #fff; cursor: pointer; }
  .kopf__burger-striche, .kopf__burger-striche::before, .kopf__burger-striche::after { display: block; width: 20px; height: 1.8px; background: var(--tinte); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
  .kopf__burger-striche::before, .kopf__burger-striche::after { content: ""; position: absolute; left: 0; }
  .kopf__burger-striche::before { top: -6px; } .kopf__burger-striche::after { top: 6px; }
  .kopf[data-offen] .kopf__burger-striche { background: transparent; }
  .kopf[data-offen] .kopf__burger-striche::before { transform: translateY(6px) rotate(45deg); }
  .kopf[data-offen] .kopf__burger-striche::after { transform: translateY(-6px) rotate(-45deg); }
  .kopf__nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-top: 1px solid var(--linie); padding: .8rem 1.25rem 1.5rem;
    max-height: calc(100vh - var(--kopf-h)); overflow-y: auto; box-shadow: 0 30px 40px -30px rgba(59, 40, 33, .4);
    display: none;
  }
  .kopf[data-offen] .kopf__nav { display: flex; }
  .kopf__link { padding: .85rem .2rem; font-size: 1.08rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .kopf__link::after { display: none; }
  .menue { flex-wrap: wrap; }
  .menue > .kopf__link { flex: 1; }
  .menue__auf { width: 48px; height: 48px; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .menue__liste { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: .3rem 0; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .menue[data-offen] .menue__liste { display: grid; }
  .kopf__tel-mobil { display: inline-flex; margin-top: 1rem; }
}
@media (max-width: 640px) {
  :root { --kopf-h: 70px; }
  .kopf__cta { display: none; }
  .kopf__logo img { width: 46px; height: 46px; }
  .kopf__wort { font-size: 1.02rem; }
  .kopf__tel { width: 48px; height: 48px; justify-content: center; border: 1px solid var(--linie); border-radius: 12px; background: #fff; }
}

/* ---------- Brotkrumen ---------- */
.krumen ol { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .86rem; color: var(--leise); }
.krumen li + li::before { content: "/"; margin-right: .3rem; opacity: .5; }
.krumen a { color: inherit; text-decoration: none; }
.krumen a:hover { color: var(--walnuss); text-decoration: underline; }
main > .wrap > .krumen { padding-top: 1.6rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 3rem + 5vw, 8rem) 0; position: relative; }
.abschnitt--eng { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.abschnitt--flaeche { background: var(--papier-2); }
.abschnitt--weiss { background: #fff; }
.kopfzeile { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.kopfzeile--mitte { margin-inline: auto; text-align: center; }
.kopfzeile--mitte .etikett::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.kopfzeile p { color: var(--tinte-2); font-size: 1.12rem; }
.einleitung { font-size: 1.2rem; color: var(--tinte-2); }
.fliess h2 { margin-top: 1.6em; }
.fliess h3 { margin-top: 1.4em; }
.fliess > :first-child { margin-top: 0; }

.haken { list-style: none; padding: 0; display: grid; gap: .55rem; }
.haken li { display: flex; gap: .7rem; align-items: flex-start; }
.haken .ic { color: var(--gruen); width: 1.35em; height: 1.35em; padding: .15em; margin-top: .12em; border-radius: 50%; background: #e7eee2; stroke-width: 2.2; }
.haken--spalten { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 2rem; }

.hinweis { border-left: 3px solid var(--eiche); background: var(--eiche-hell); padding: 1rem 1.3rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.hinweis p:last-child { margin: 0; }

/* Zweispalter Text/Bild */
.zweispalt { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; }
.zweispalt--umgekehrt > :first-child { order: 2; }
.zweispalt__bild { position: relative; }
.zweispalt__bild > img, .rahmenbild img { border-radius: var(--r); box-shadow: var(--schatten-gross); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.zweispalt__bild--quer > img { aspect-ratio: 4 / 3; }
.zweispalt__marke {
  position: absolute; left: -1.5rem; bottom: 2rem; background: #fff; border-radius: 16px; padding: 1rem 1.2rem;
  box-shadow: var(--schatten-gross); display: flex; gap: .9rem; align-items: center; max-width: 280px;
}
.zweispalt__marke strong { font: 560 2.1rem/1 var(--serif); color: var(--walnuss); }
.zweispalt__marke span { font-size: .88rem; line-height: 1.35; color: var(--tinte-2); }
@media (max-width: 900px) {
  .zweispalt { grid-template-columns: 1fr; }
  .zweispalt--umgekehrt > :first-child { order: 0; }
  .zweispalt__marke { left: 1rem; }
}

/* Bild mit zweitem, versetztem Bild */
.bildpaar { position: relative; padding: 0 0 18% 12%; }
.bildpaar img:first-child { border-radius: var(--r); box-shadow: var(--schatten-gross); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.bildpaar img:last-child { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 6px solid var(--papier); box-shadow: var(--schatten-gross); }

/* ---------- Ken Burns ---------- */
.kenburns { overflow: hidden; }
.kenburns img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .kenburns img { animation: kenburns 26s ease-in-out infinite alternate; will-change: transform; }
}
@keyframes kenburns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-2.5%, -1.5%, 0); }
}

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { position: relative; min-height: clamp(460px, 62vh, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.seitenkopf__bild { position: absolute; inset: 0; z-index: -2; }
.seitenkopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(250, 247, 242, .97) 0%, rgba(250, 247, 242, .9) 34%, rgba(250, 247, 242, .35) 62%, rgba(250, 247, 242, 0) 80%),
              linear-gradient(0deg, rgba(250, 247, 242, 1) 0%, rgba(250, 247, 242, 0) 26%);
}
.seitenkopf__innen { padding: 2rem 0 clamp(2.5rem, 2rem + 3vw, 5rem); }
.seitenkopf h1 { max-width: 14ch; }
.seitenkopf__text { font-size: 1.18rem; color: var(--tinte-2); max-width: 36rem; }
@media (max-width: 760px) {
  .seitenkopf { min-height: 0; flex-direction: column; align-items: stretch; }
  .seitenkopf__bild { position: relative; height: 46vw; min-height: 220px; order: -1; }
  .seitenkopf::before { background: linear-gradient(0deg, var(--papier) 0%, rgba(250, 247, 242, .0) 46%); }
  .seitenkopf__innen { margin-top: -.5rem; padding-top: 0; }
  .seitenkopf h1 { max-width: none; }
}

/* ---------- Parallax ---------- */
.parallax { position: relative; overflow: hidden; }
.parallax > .parallax__ebene { position: absolute; inset: -12% 0; }
.parallax > .parallax__ebene img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax > .parallax__ebene { animation: parallax linear both; animation-timeline: view(); }
  }
}
@keyframes parallax { from { transform: translate3d(0, -9%, 0); } to { transform: translate3d(0, 9%, 0); } }

.bildband { min-height: clamp(420px, 70vh, 720px); display: flex; align-items: center; color: #fff; isolation: isolate; }
.bildband::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(42, 30, 24, .78) 0%, rgba(42, 30, 24, .45) 50%, rgba(42, 30, 24, .1) 100%); }
.bildband .parallax__ebene { z-index: -1; }
.bildband .wrap { position: relative; z-index: 1; }
.bildband h2, .bildband .etikett { color: #fff; }
.bildband p { max-width: 38rem; font-size: 1.15rem; color: #f3ebe2; }
.bildband__zahlen { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.2rem; }
.bildband__zahlen div { border-left: 1.5px solid rgba(255, 255, 255, .45); padding-left: 1rem; }
.bildband__zahlen strong { display: block; font: 520 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--serif); }
.bildband__zahlen span { font-size: .92rem; color: #eaded2; }

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(1rem, .6rem + 1vw, 1.8rem); }
.karte { background: #fff; border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.karte:hover { transform: translateY(-6px); box-shadow: var(--schatten-gross); }
.karte__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.karte__bild { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.karte:hover .karte__bild img { transform: scale(1.07); }
.karte__icon { position: absolute; left: 1.1rem; bottom: -1.4rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--walnuss); color: #fff; box-shadow: 0 10px 22px -10px rgba(59, 40, 33, .8); z-index: 1; }
.karte__bild { overflow: visible; }
.karte__bild img { border-radius: var(--r) var(--r) 0 0; }
.karte__bild { clip-path: inset(0 0 -40px 0 round var(--r) var(--r) 0 0); }
.karte__icon .ic { width: 26px; height: 26px; }
.karte__text { padding: 2.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.karte__text h3 { margin-bottom: .35rem; }
.karte__text p { color: var(--tinte-2); font-size: .98rem; margin-bottom: .8rem; }
.karte__punkte { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.karte__punkte li { font-size: .8rem; padding: .2rem .6rem; border-radius: 99px; background: var(--papier-2); color: var(--tinte-2); }
.karte__mehr { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--walnuss); }
.karte__mehr .ic { transition: transform .35s var(--ease); }
.karte:hover .karte__mehr .ic { transform: translateX(4px); }

/* Vorteile / Merkmale mit Icons */
.merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.4rem; }
.merkmal { padding: 1.6rem; border-radius: var(--r); background: #fff; border: 1px solid var(--linie); transition: border-color .3s, transform .4s var(--ease); }
.merkmal:hover { border-color: var(--eiche); transform: translateY(-3px); }
.merkmal > .ic { width: 50px; height: 50px; padding: 11px; border-radius: 14px; background: var(--eiche-hell); color: var(--walnuss); margin-bottom: 1rem; }
.merkmal h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.merkmal p { margin: 0; color: var(--tinte-2); font-size: .97rem; }

/* Ablauf in Schritten */
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.4rem; counter-reset: schritt; }
.schritte li { position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--r); background: #fff; box-shadow: var(--schatten); counter-increment: schritt; }
.schritte li::before { content: "0" counter(schritt); font: 500 2.6rem/1 var(--serif); color: var(--eiche); display: block; margin-bottom: .8rem; }
.schritte h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.schritte p { margin: 0; font-size: .96rem; color: var(--tinte-2); }

/* Zeitleiste (Über uns) */
.zeitleiste { list-style: none; padding: 0; margin: 0; position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 7.2rem; top: .5rem; bottom: .5rem; width: 1.5px; background: var(--linie); }
.zeitleiste li { display: grid; grid-template-columns: 6.4rem 1fr; gap: 2rem; padding: 0 0 2rem; position: relative; }
.zeitleiste li::before { content: ""; position: absolute; left: calc(7.2rem - 6px); top: .55rem; width: 13px; height: 13px; border-radius: 50%; background: var(--papier); border: 2.5px solid var(--walnuss); }
.zeitleiste time { font: 560 1.45rem/1.2 var(--serif); color: var(--walnuss); text-align: right; }
.zeitleiste h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.zeitleiste p { margin: 0; color: var(--tinte-2); }
@media (max-width: 600px) {
  .zeitleiste::before { left: .35rem; }
  .zeitleiste li { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; }
  .zeitleiste li::before { left: 0; }
  .zeitleiste time { text-align: left; }
}

/* ---------- Galerie + Leuchtkasten ---------- */
.galerie { columns: 4 240px; column-gap: 1rem; }
.galerie figure { margin: 0 0 1rem; break-inside: avoid; }
.galerie a { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.galerie img { width: 100%; transition: transform 1s var(--ease), filter .4s; }
.galerie a:hover img { transform: scale(1.05); }
.galerie__zoom { position: absolute; right: .8rem; bottom: .8rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--walnuss); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.galerie a:hover .galerie__zoom, .galerie a:focus-visible .galerie__zoom { opacity: 1; transform: none; }
.galerie figcaption { font-size: .84rem; color: var(--leise); padding: .45rem .2rem 0; }

.leuchtkasten { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.leuchtkasten::backdrop { background: rgba(28, 20, 16, .92); }
.leuchtkasten__innen { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 4rem 1rem 3rem; }
.leuchtkasten img { max-width: min(1400px, 100%); max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.leuchtkasten p { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #eee; margin: 0; font-size: .95rem; }
.leuchtkasten button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.leuchtkasten button:hover { background: rgba(255, 255, 255, .25); }
.leuchtkasten__zu { top: 1rem; right: 1rem; }
.leuchtkasten__zurueck { left: 1rem; top: 50%; translate: 0 -50%; }
.leuchtkasten__vor { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; font: 560 1.14rem/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq__ic { color: var(--walnuss); transition: transform .35s var(--ease); }
.faq details[open] .faq__ic { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--tinte-2); }

/* ---------- CTA ---------- */
.abschnitt--cta { padding-top: 0; }
.cta { position: relative; border-radius: calc(var(--r) * 1.4); overflow: hidden; padding: clamp(2.5rem, 2rem + 4vw, 5rem); display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center; color: #fff; isolation: isolate; }
.cta__bild { position: absolute; inset: 0; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(59, 40, 33, .95) 0%, rgba(110, 68, 53, .86) 55%, rgba(138, 88, 70, .6) 100%); }
.cta h2 { color: #fff; }
.cta p { margin: 0; color: #f1e6da; font-size: 1.12rem; max-width: 36rem; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Kontakt & Formular ---------- */
.kontakt { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 900px) { .kontakt { grid-template-columns: 1fr; } }
.kontaktkarte { background: #fff; border-radius: var(--r); padding: 2rem; box-shadow: var(--schatten); }
.kontaktkarte + .kontaktkarte { margin-top: 1.2rem; }
.kontaktliste { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.kontaktliste li { display: flex; gap: .9rem; align-items: flex-start; }
.kontaktliste .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--eiche-hell); color: var(--walnuss); }
.kontaktliste small { display: block; color: var(--leise); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.kontaktliste a { font-weight: 600; text-decoration: none; }
.zeiten { border-collapse: collapse; width: 100%; font-size: .96rem; }
.zeiten th, .zeiten td { text-align: left; padding: .35rem 0; vertical-align: top; }
.zeiten th { font-weight: 500; padding-right: 1rem; }
.zeiten__zusatz { font-size: .9rem; color: var(--leise); margin: .3rem 0 0; }

.formular { background: #fff; border-radius: var(--r); padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); box-shadow: var(--schatten-gross); }
.formular__zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .formular__zeile { grid-template-columns: 1fr; } }
.feld { margin-bottom: 1.1rem; }
.feld label, .feld legend { display: block; font-weight: 600; font-size: .94rem; margin-bottom: .35rem; }
.feld input, .feld textarea, .feld select {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border-radius: 12px; border: 1.5px solid var(--linie);
  background: var(--papier); color: var(--tinte); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: none; border-color: var(--walnuss); background: #fff; box-shadow: 0 0 0 4px rgba(138, 88, 70, .14); }
.feld [aria-invalid="true"] { border-color: #b3261e; }
.feld__hilfe { font-size: .84rem; color: var(--leise); margin: .35rem 0 0; }
.feld__fehler { color: #b3261e; font-size: .88rem; margin: .35rem 0 0; }
.feld--datei input { padding: .6rem; background: #fff; }
.themen { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0 0 1.1rem; }
fieldset.feld { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.themen label { display: inline-flex; position: relative; }
.themen input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.themen span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 99px; border: 1.5px solid var(--linie); background: var(--papier); cursor: pointer; font-size: .92rem; transition: all .2s; }
.themen span .ic { width: 1.05em; height: 1.05em; color: var(--walnuss); }
.themen input:checked + span { background: var(--walnuss); border-color: var(--walnuss); color: #fff; }
.themen input:checked + span .ic { color: #fff; }
.themen input:focus-visible + span { outline: 3px solid var(--eiche); outline-offset: 2px; }
.kontrolle { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--tinte-2); font-weight: 400 !important; }
.kontrolle input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--walnuss); flex: none; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung:empty { display: none; }
.meldung { padding: 1rem 1.2rem; border-radius: 12px; margin: 1rem 0; }
.meldung--fehler { background: #fbeae8; color: #7d1d17; }
.meldung--ok { background: #e7eee2; color: #2f4a28; padding: 1.5rem; border-radius: var(--r); font-size: 1.08rem; }

.karte-einbettung { position: relative; border-radius: var(--r); overflow: hidden; background: var(--sand); aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.karte-einbettung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-einbettung p { max-width: 30rem; font-size: .92rem; color: var(--tinte-2); }

/* ---------- Tabellen ---------- */
table { border-collapse: collapse; width: 100%; }
.fliess table th, .fliess table td { border-bottom: 1px solid var(--linie); padding: .6rem .5rem; text-align: left; }

/* ---------- Fuss ---------- */
.fuss { position: relative; background: var(--walnuss-tief); color: #d8cabd; padding: 5rem 0 6rem; margin-top: 0; overflow: hidden; }
.fuss__holz { position: absolute; inset: 0; opacity: .07; background: repeating-linear-gradient(178deg, transparent 0 22px, #fff 22px 23px, transparent 23px 41px, #fff 41px 41.6px); pointer-events: none; }
.fuss .wrap { position: relative; }
.fuss__raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 1000px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss__raster { grid-template-columns: 1fr; } }
.fuss a { color: #f3ebe2; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss__logo { width: 72px; height: 72px; margin-bottom: 1rem; }
.fuss__name { font: 560 1.2rem/1.3 var(--serif); color: #fff; }
.fuss__titel { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--eiche); margin: .5rem 0 1.2rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.fuss .zeiten th, .fuss .zeiten td { padding: .25rem 0; color: #eaded2; }
.fuss .zeiten__zusatz, .fuss__klein { color: #b9a898; font-size: .88rem; }
.fuss__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.fuss__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); transition: background-color .2s, border-color .2s; }
.fuss__social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.fuss__route { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; }
.fuss__unten { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; color: #b9a898; }
.fuss__unten ul { display: flex; gap: 1.4rem; }

/* Schnellleiste mobil */
.schnellleiste { display: none; }
@media (max-width: 760px) {
  /* Liquid Glass (iOS 26): schwebende Glaskapsel mit zwei Glasknöpfen.
     Unschärfe + Sättigung holen die Farben der Seite ins Glas, Lichtkanten
     oben und unten geben Tiefe, der Glanz folgt dem Finger (--gx, --gy aus site.js). */
  .schnellleiste {
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1.35fr; gap: .4rem; padding: .35rem;
    border-radius: 999px; isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14));
    -webkit-backdrop-filter: blur(18px) saturate(190%) brightness(1.06);
    backdrop-filter: blur(18px) saturate(190%) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .85),
      inset 0 -1px 1px rgba(255, 255, 255, .3),
      inset 0 0 12px rgba(255, 255, 255, .18),
      0 12px 32px -10px rgba(40, 26, 20, .38),
      0 2px 6px rgba(40, 26, 20, .08);
  }
  .schnellleiste::before {
    /* Spiegelung oben im Glas */
    content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    opacity: .55; pointer-events: none; z-index: -1;
  }
  .schnellleiste a {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px;
    border-radius: 999px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; color: var(--tinte);
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .22));
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 1px 3px rgba(40, 26, 20, .08);
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, background-color .3s;
    -webkit-tap-highlight-color: transparent;
  }
  .schnellleiste a::after {
    /* Lichtfleck, der dem Finger folgt */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    background: radial-gradient(120px 80px at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
    opacity: .7; transition: opacity .3s;
  }
  .schnellleiste a:active { transform: scale(.94); }
  .schnellleiste a:active::after { opacity: 1; }
  .schnellleiste .ic { width: 1.2em; height: 1.2em; }
  .schnellleiste__haupt {
    color: #fff !important; text-shadow: 0 1px 1px rgba(40, 20, 10, .25);
    background: linear-gradient(180deg, rgba(160, 104, 82, .82), rgba(122, 76, 60, .88)) !important;
    border-color: rgba(255, 220, 200, .45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 225, 210, .6), inset 0 -1px 0 rgba(60, 30, 20, .3), 0 6px 16px -6px rgba(110, 68, 53, .7) !important;
  }
  .schnellleiste__haupt::after { background: radial-gradient(120px 80px at var(--gx, 50%) var(--gy, 0%), rgba(255, 230, 215, .45), rgba(255, 255, 255, 0) 70%); }
  /* Ohne backdrop-filter: deckender, damit es lesbar bleibt */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .schnellleiste { background: rgba(250, 247, 242, .94); }
  }
  @media (prefers-reduced-transparency: reduce) {
    .schnellleiste { background: rgba(250, 247, 242, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .schnellleiste a { transition: none; }
    .schnellleiste a:active { transform: none; }
  }
  .fuss { padding-bottom: 8rem; }
}

/* ---------- Einblenden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--anim-verzug, 0ms); }
  .js [data-anim="hoch"] { transform: translate3d(0, 34px, 0); }
  .js [data-anim="links"] { transform: translate3d(-40px, 0, 0); }
  .js [data-anim="zoom"] { transform: scale(.94); }
  .js [data-anim].sichtbar { opacity: 1; transform: none; }
}

/* ============================================================
   Startseite: Hero mit Bildkomposition
   ============================================================ */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(90% 80% at 78% 30%, #fffdf9 0%, var(--papier) 50%, var(--papier-2) 100%); }
.hero::before {
  /* feine Maserung als Hintergrund, nur angedeutet */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(100deg, rgba(201, 162, 122, 0) 0 22px, rgba(201, 162, 122, .07) 23px, rgba(201, 162, 122, 0) 26px 58px);
  -webkit-mask-image: radial-gradient(70% 90% at 85% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 85% 40%, #000, transparent 75%);
}
.hero__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; min-height: min(calc(100svh - var(--kopf-h) - 38px), 860px); padding-block: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
.hero__text h1 { margin-bottom: .4em; }
.hero__text h1 em { white-space: nowrap; }
.hero__text h1 small { display: block; font: 600 .78rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--walnuss); margin-bottom: 1.1rem; }
.hero__unter { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--tinte-2); max-width: 31rem; }
.hero__siegel { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.8rem; font-size: .92rem; color: var(--tinte-2); }
.hero__siegel span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__siegel .ic { color: var(--walnuss); }

/* Bildkomposition: großes Foto, Detailfoto davor, Siegel mit Logo */
.hero__bilder { position: relative; padding: 0 0 12% 9%; }
.hero__haupt { position: relative; margin: 0; }
.hero__rahmen { aspect-ratio: 5 / 4; border-radius: 28px 28px 28px 120px; clip-path: inset(0 round 28px 28px 28px 120px); }
.hero__haupt::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px 28px 28px 120px; box-shadow: var(--schatten-gross); }
.hero__rahmen img { transform-origin: 40% 55%; }
.hero__haupt figcaption {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--tinte);
  background: rgba(250, 247, 242, .82); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 8px 24px -12px rgba(59, 40, 33, .45);
}
.hero__haupt figcaption span { margin-left: -.5rem; white-space: pre; }
.hero__haupt figcaption .ic { width: 1.05em; height: 1.05em; color: var(--walnuss); }
.hero__detail { position: absolute; left: 0; bottom: 0; width: 38%; z-index: 2; }
.hero__detail img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 6px solid var(--papier); box-shadow: var(--schatten-gross); }
.hero__stempel { position: absolute; z-index: 3; right: -1.2rem; top: -1.8rem; width: clamp(104px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: var(--schatten); display: grid; place-items: center; }
.hero__stempel img { width: 46%; height: auto; }
.hero__ring { position: absolute; inset: 4%; width: 92%; height: 92%; overflow: visible; }
.hero__ring text { font: 600 9.4px/1 var(--sans); letter-spacing: .19em; text-transform: uppercase; fill: var(--walnuss); }

@media (prefers-reduced-motion: no-preference) {
  /* Auftritt beim Laden: Text, dann Foto, Detail und Siegel */
  .hero__text > * { animation: hero-auf .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__text > :nth-child(4) { animation-delay: .24s; }
  .hero__haupt { animation: hero-bild 1.2s var(--ease) .1s both; }
  .hero__detail { animation: hero-auf 1s var(--ease) .45s both; }
  .hero__stempel { animation: hero-stempel .9s var(--ease) .6s both; }
  .hero__ring { animation: hero-dreh 40s linear infinite; }
  /* leichter Parallax: Detailfoto und Siegel wandern beim Scrollen schneller als das große Foto */
  @supports (animation-timeline: scroll()) {
    .hero__detail img { animation: hero-tiefe-detail linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__stempel img { animation: hero-tiefe-stempel linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__haupt figcaption { animation: hero-tiefe-stempel linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes hero-auf { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-bild { from { opacity: 0; transform: translate3d(40px, 0, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hero-stempel { from { opacity: 0; transform: scale(.6) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes hero-dreh { to { transform: rotate(360deg); } }
@keyframes hero-tiefe-detail { to { transform: translate3d(0, -70px, 0); } }
@keyframes hero-tiefe-stempel { to { transform: translate3d(0, -24px, 0); } }

@media (max-width: 860px) {
  .hero__raster { grid-template-columns: 1fr; min-height: 0; padding-block: 1.2rem 2.8rem; gap: 2rem; }
  .hero__bilder { order: -1; padding: 0 0 14% 0; margin-inline: -.25rem; }
  .hero__rahmen { aspect-ratio: 4 / 3; border-radius: 22px 22px 22px 70px; clip-path: inset(0 round 22px 22px 22px 70px); }
  .hero__haupt::before { border-radius: 22px 22px 22px 70px; }
  .hero__detail { left: auto; right: 6%; width: 34%; }
  .hero__detail img { border-width: 5px; border-radius: 18px; }
  .hero__stempel { right: auto; left: -.4rem; top: auto; bottom: 2%; width: 92px; }
  .hero__haupt figcaption { right: auto; left: .8rem; bottom: auto; top: .8rem; font-size: .78rem; }
  .hero__haupt figcaption span { display: none; }
  .hero__text h1 small { font-size: .72rem; letter-spacing: .12em; }
}

/* Übergang Hero → Leistungen: das Möbel „rollt“ in die Seite */
.start-leistungen { position: relative; margin-top: -1px; }

/* Siegel-Leiste */
.vertrauen { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: center; padding: 1.8rem 0; border-block: 1px solid var(--linie); }
.vertrauen div { display: flex; gap: .8rem; align-items: center; }
.vertrauen .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--walnuss); border: 1px solid var(--linie); }
.vertrauen strong { display: block; font: 560 1.05rem/1.2 var(--serif); }
.vertrauen span { font-size: .86rem; color: var(--leise); }

/* Einzugsgebiet */
.orte { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.orte li { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 99px; background: #fff; border: 1px solid var(--linie); font-size: .92rem; }
.orte .ic { color: var(--walnuss); width: 1em; height: 1em; }

.auszeichnung { border-radius: var(--r); overflow: hidden; box-shadow: var(--schatten); }

/* Fehlerseite */
.fehlerseite { text-align: center; padding: 6rem 0; }
.fehlerseite h1 { max-width: none; }

@media print {
  .oberleiste, .kopf, .schnellleiste, .fuss, .abschnitt--cta { display: none !important; }
  body { background: #fff; }
}
.formular__titel { font-size: 1.6rem; margin-bottom: 1.2rem; }
.abstand-oben { margin-top: 1.6rem; }
.marke__titel { display: block; font-size: 1.1rem !important; }
.zweispalt__marke .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--eiche-hell); color: var(--walnuss); }
.h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); font-variation-settings: "opsz" 36; }
.kontaktkarte .hinweis { display: flex; gap: .6rem; align-items: center; margin-bottom: 0; }
.knopfreihe--mitte { justify-content: center; }
.fliess .etikett + h2, .fliess .etikett + h1 { margin-top: 0; }

/* ============================================================
   Leistungs-Karussell (Startseite): 3D-Coverflow
   ============================================================ */
.abschnitt--karussell { overflow: hidden; isolation: isolate; }
.abschnitt--karussell::before, .abschnitt--karussell::after {
  /* zwei weiche Farbwolken in Eiche und Walnuss hinter den Karten */
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; top: 30%;
}
.abschnitt--karussell::before { left: -12%; background: radial-gradient(circle closest-side, rgba(201, 162, 122, .32), rgba(201, 162, 122, 0)); }
.abschnitt--karussell::after { right: -12%; background: radial-gradient(circle closest-side, rgba(138, 88, 70, .22), rgba(138, 88, 70, 0)); }

.karussell { position: relative; }
.karussell__liste { list-style: none; margin: 0; padding: 0; }
.karussell__link { display: block; position: relative; height: 100%; border-radius: 28px; overflow: hidden; text-decoration: none; color: #fff; background: var(--sand);
  border: 2px solid rgba(42, 36, 32, .08); box-shadow: 0 30px 60px -24px rgba(59, 40, 33, .55); }
.karussell__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.karussell__link:hover, .karussell__link:focus-visible { color: #fff; }
.karussell__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 20, 15, 0) 35%, rgba(30, 20, 15, .25) 55%, rgba(30, 20, 15, .82) 100%); }
.karussell__inhalt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.4rem 1.5rem; }
.karussell__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: .4rem;
  color: #fff; background: rgba(42, 28, 20, .42); border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px -8px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
.karussell__icon .ic { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.karussell__titel { font: 560 1.55rem/1.15 var(--serif); letter-spacing: -.01em; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.karussell__text { font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.karussell__mehr { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-weight: 600; font-size: .95rem; }
.karussell__mehr .ic { transition: transform .35s var(--ease); }
.karussell__link:hover .karussell__mehr .ic { transform: translateX(4px); }
.karussell__link:hover .karussell__bild { transform: scale(1.05); }

/* Ohne JavaScript: wischbarer Streifen */
.karussell:not(.ist-aktiv) .karussell__liste { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1.25rem 1.5rem; }
.karussell:not(.ist-aktiv) .karussell__karte { flex: 0 0 min(78vw, 300px); height: 420px; scroll-snap-align: center; }
.karussell:not(.ist-aktiv) .karussell__pfeil, .karussell:not(.ist-aktiv) .karussell__punkte { display: none; }

/* Mit JavaScript: Bühne mit Perspektive */
.karussell.ist-aktiv .karussell__buehne { position: relative; height: 480px; perspective: 1000px; }
.karussell.ist-aktiv .karussell__liste { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; }
.karussell.ist-aktiv .karussell__karte {
  --pos: 0;
  position: absolute; width: 320px; height: 460px;
  transition: transform .6s cubic-bezier(.22, .8, .24, 1), opacity .6s, filter .6s;
  transform: translateX(calc(var(--pos) * 45%)) scale(.7) rotateY(calc(var(--pos) * -10deg));
  opacity: 0; filter: blur(4px); visibility: hidden; z-index: 1;
}
.karussell.ist-aktiv .karussell__karte[data-lage="mitte"] { transform: translateX(0) scale(1) rotateY(0); opacity: 1; filter: none; visibility: visible; z-index: 10; }
.karussell.ist-aktiv .karussell__karte[data-lage="nachbar"] { transform: translateX(calc(var(--pos) * 45%)) scale(.85) rotateY(calc(var(--pos) * -10deg)); opacity: .45; visibility: visible; z-index: 5; cursor: pointer; }
.karussell.ist-aktiv .karussell__karte[data-lage="nachbar"] .karussell__inhalt { opacity: 0; transition: opacity .3s; }
.karussell.ist-aktiv .karussell__karte[data-lage="mitte"] .karussell__inhalt { opacity: 1; transition: opacity .5s .2s; }
@media (min-width: 1100px) {
  /* breite Schirme: auch die übernächsten Karten schimmern durch */
  .karussell.ist-aktiv .karussell__karte[data-lage="fern"] { transform: translateX(calc(var(--pos) * 52%)) scale(.7) rotateY(calc(var(--pos) * -12deg)); opacity: .18; visibility: visible; z-index: 2; filter: blur(6px); }
}

.karussell__pfeil {
  position: absolute; top: 50%; z-index: 20; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; color: var(--tinte);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 20px -8px rgba(59, 40, 33, .45);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background-color .2s;
}
.karussell__pfeil:hover { background: rgba(255, 255, 255, .85); transform: scale(1.08); }
.karussell__pfeil:active { transform: scale(.94); }
.karussell__pfeil--zurueck { left: max(1rem, calc(50% - 360px)); }
.karussell__pfeil--vor { right: max(1rem, calc(50% - 360px)); }
@media (min-width: 1100px) {
  .karussell__pfeil--zurueck { left: calc(50% - 420px); }
  .karussell__pfeil--vor { right: calc(50% - 420px); }
}
.karussell__punkte { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.karussell__punkt { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(42, 36, 32, .2); cursor: pointer; transition: width .35s var(--ease), background-color .3s; }
.karussell__punkt[aria-current="true"] { width: 26px; background: var(--walnuss); }
.karussell__punkt:focus-visible { outline: 3px solid var(--eiche); outline-offset: 3px; }
.karussell__alle { text-align: center; margin-top: 2rem; }

@media (max-width: 600px) {
  .karussell.ist-aktiv .karussell__buehne { height: 420px; }
  .karussell.ist-aktiv .karussell__karte { width: 240px; height: 400px; }
  .karussell__titel { font-size: 1.3rem; }
  .karussell__pfeil { width: 42px; height: 42px; margin-top: -21px; }
}
@media (prefers-reduced-motion: reduce) {
  .karussell.ist-aktiv .karussell__karte { transition: none; }
}
