/* ==========================================================
   Patrick Ernst Bodenbeläge – Stylesheet
   Farben, Schriften und Abstände stehen ganz oben als Variablen.
   ========================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
/* Variable Schriften, lokal (DSGVO-konform), Latin-Teilmenge; Lizenz: assets/fonts/OFL-*.txt */
@font-face { font-family: "Jost"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../assets/fonts/jost.woff") format("woff"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../assets/fonts/hanken-grotesk.woff") format("woff"); }

:root {
  --berry: #A6214B;
  --berry-dark: #861A3C;
  --berry-soft: #F7D9E3;
  --ink: #1C1A18;
  --ink-2: #4A4540;
  --muted: #CFC8BF;
  --ground: #EDE8E1;
  --paper: #FBF9F6;
  --line: #D6CEC3;
  --beige: #DBD4CA;

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", sans-serif;

  --radius-panel: 0;
  --radius-card: 0;
  --gutter: 16px;
  --max: 1280px;
  --section-pad: clamp(72px, 8vw, 112px); /* ein Abstand für alle Abschnitte */

  --shadow-panel: 0 30px 70px -30px rgba(40, 25, 15, .45), 0 2px 6px rgba(40, 25, 15, .06);
  --shadow-card: 0 20px 44px -26px rgba(40, 25, 15, .40), 0 1px 2px rgba(40, 25, 15, .05);
  --shadow-card-hover: 0 30px 60px -28px rgba(40, 25, 15, .45), 0 1px 2px rgba(40, 25, 15, .05);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: var(--gutter);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--berry); }
a:hover { color: var(--berry-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
h2 { font-size: clamp(28px, 3.5vw, 48px); line-height: 1.1; }
h3 { font-weight: 400; font-size: 20px; letter-spacing: .1em; margin-bottom: 12px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: var(--section-pad); }
.eyebrow { font-family: var(--font-display); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--berry); margin-bottom: 12px; }
.eyebrow.light { color: #F1E6DD; letter-spacing: .32em; font-size: 13px; margin-bottom: 22px; }
.eyebrow.on-dark { color: #E9A8BC; }
.eyebrow.on-accent { color: var(--berry-soft); }
.intro { font-size: 18px; color: var(--ink-2); max-width: 440px; }
.small { font-size: 13px; color: #5C564F; margin: 0; }

/* ---------- Schwebende Flächen ---------- */
.panel {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1408px;
  margin: var(--gutter) auto 0;
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.panel.dark { background: var(--ink); color: #F6F3EE; }
.panel.beige { background: var(--beige); color: var(--ink); }
.panel.accent { background: var(--berry); color: #fff; }
.soft { border-radius: var(--radius-card); box-shadow: 0 24px 56px -28px rgba(40, 25, 15, .45); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 16px 30px;
  border-radius: 0; border: 1px solid transparent;
  font-family: var(--font-display); font-size: 16px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--berry); color: #fff; box-shadow: 0 12px 26px -12px rgba(166, 33, 75, .7); }
.btn-accent:hover { background: var(--berry-dark); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { color: inherit; background: rgba(255, 255, 255, .1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 15px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  --h-fg: #fff;
  position: sticky; top: 0; z-index: 50; height: 76px;
  color: var(--h-fg);
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease;
}
.site-header.is-solid, .site-header.menu-open {
  --h-fg: var(--ink);
  background: rgba(237, 232, 225, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(28, 26, 24, .08), 0 14px 30px -24px rgba(40, 25, 15, .5);
}
.bar { max-width: var(--max); height: 100%; margin: 0 auto; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; line-height: 0; align-self: flex-start; }
/* roter Balken mittig im 76px-Kopf: Balkenmitte liegt bei 20,8 % der Logohöhe */
.brand img { height: 90px; width: auto; margin-top: 19px; margin-bottom: -33px; }
.nav { display: flex; align-items: center; gap: 32px; font-family: var(--font-display); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.nav a { color: var(--h-fg); text-decoration: none; position: relative; transition: color .4s ease; }
.nav a:not(.nav-cta) { padding: 14px 0; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s ease; transform-origin: left; }
.nav a:not(.nav-cta):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav a:hover { color: var(--h-fg); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  background: var(--berry); color: #fff !important; text-decoration: none;
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .25s ease;
}
.nav-cta:hover { background: var(--berry-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--h-fg); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle path { transition: transform .3s ease; transform-origin: center; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero.panel { width: 100%; max-width: none; margin: -76px 0 0; box-shadow: none; }
.hero { position: relative; min-height: min(860px, 100svh); display: flex; align-items: flex-end; color: #fff; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Parallax: Bild ragt oben über den Rand hinaus und wandert beim Scrollen langsamer mit (main.js setzt --hy) */
.hero-media { top: -45%; left: -32px; right: -32px; width: auto; height: auto; translate: var(--mx, 0px) calc(var(--hy, 0px) + var(--my, 0px)); will-change: translate; }
.hero-inner { translate: calc(var(--mx, 0px) * -0.35) calc(var(--ty, 0px) + var(--my, 0px) * -0.35); opacity: var(--to, 1); will-change: translate, opacity; }
.hero-media img { animation: slowzoom 24s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20, 14, 10, .55) 0, rgba(20, 14, 10, 0) 180px), linear-gradient(to top, rgba(20, 14, 10, .82) 0%, rgba(20, 14, 10, .55) 45%, rgba(20, 14, 10, .25) 80%, rgba(20, 14, 10, .15) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 160px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1 1 520px; max-width: 980px; }
.hero .eyebrow.is-fit { display: inline-block; white-space: nowrap; }
.hero .eyebrow .last { letter-spacing: 0 !important; }
.hero h1 { margin-left: -.045em; } /* Vorbreite des B ausgleichen, damit links alles bündig steht */
.hero h1 { font-size: clamp(36px, 5.6vw, 84px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.hero .lead { margin: 28px 0 0; font-size: 20px; line-height: 1.5; max-width: 560px; color: #F4EEE8; }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
/* ---------- Schwebendes 30-Jahre-Siegel ---------- */
/* Farben je nach Hintergrund: main.js setzt data-ton auf das Siegel */
.float-badge {
  --b-fg: #fff;
  position: fixed; z-index: 45;
  top: 112px; right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  width: 148px; height: 148px; pointer-events: none; color: var(--b-fg);
  transition: color .6s ease;
  animation: bob 6s ease-in-out infinite;
}
/* Linienvariante: nur die Strichfarbe wechselt mit dem Hintergrund */
.float-badge[data-ton="foto"]   { --b-fg: #fff; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.float-badge[data-ton="hell"],
.float-badge[data-ton="beige"]  { --b-fg: var(--ink); }
.float-badge[data-ton="dunkel"],
.float-badge[data-ton="akzent"] { --b-fg: #fff; }
.badge-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.badge-frame circle { fill: none; stroke: currentColor; stroke-width: .9; vector-effect: non-scaling-stroke; }
.badge-turn { position: absolute; inset: 0; transform: rotate(var(--rot, 0deg)); }
.badge-ring { width: 100%; height: 100%; display: block; animation: spin 28s linear infinite; overflow: visible; }
.badge-text { fill: currentColor; font-family: var(--font-display); font-size: 12px; letter-spacing: 0; }
.badge-core {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); color: currentColor;
}
.badge-num { font-size: 44px; font-weight: 300; line-height: .9; margin-top: 4px; }
.badge-word { font-size: 8.5px; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; margin-top: 6px; }

.scroll-hint {
  position: absolute; z-index: 2; bottom: 28px;
  right: max(24px, calc((100% - var(--max)) / 2 + 24px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  padding: 8px;
  opacity: .85; transition: opacity .4s ease;
}
.scroll-hint:hover { color: #fff; opacity: 1; }
.scroll-hint span { writing-mode: vertical-rl; }
.scroll-hint i { position: relative; display: block; width: 1px; height: 64px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #fff; animation: scrollline 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
.is-scrolled .scroll-hint { opacity: 0; pointer-events: none; }
@keyframes scrollline { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ---------- Abschnittsköpfe ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head .intro { margin: 0; }

/* ---------- Leistungen ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); padding: 36px 32px 40px;
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card p { margin: 0; color: var(--ink-2); }
.card .swatch {
  position: relative; display: block; width: 96px; height: 96px; margin-bottom: 32px;
  object-fit: cover; background-color: #C9A57E;
  box-shadow: 0 10px 22px -12px rgba(40, 25, 15, .55), 0 0 0 1px rgba(28, 26, 24, .06);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.card:hover .swatch { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 16px 28px -12px rgba(40, 25, 15, .6), 0 0 0 1px rgba(28, 26, 24, .06); }
.swatch-tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; letter-spacing: .06em; color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 5px; }
.ph.beratung { background-color: #3A3430; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 12px); }
.card-dark { background: var(--ink); color: #F6F3EE; }
.card-dark p { color: var(--muted); }

/* ---------- Referenzen ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  min-height: 44px; padding: 10px 20px; border-radius: 0;
  border: 1px solid #6B655E; background: transparent; color: #F6F3EE; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { border-color: #F6F3EE; }
.chip.is-active { background: #F6F3EE; color: var(--ink); border-color: #F6F3EE; }
.beige .chip { border-color: rgba(28, 26, 24, .28); color: var(--ink); }
.beige .chip:hover { border-color: var(--ink); }
.beige .chip.is-active { background: var(--ink); color: #F6F3EE; border-color: var(--ink); }
.beige .more .btn-ghost:hover { background: rgba(28, 26, 24, .06); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
#referenzen .section-head { margin-bottom: 36px; }
.ref {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  border-radius: 0; background: #2A2622; color: #F6F3EE; text-align: left; font: inherit;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.ref img, .ref .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
/* Parallax in den Kacheln: Foto etwas größer als die Kachel, main.js verschiebt es mit --py */
.ref img:not(.ref-mark), .ref .ph { top: -16%; height: 132%; translate: 0 var(--py, 0px); will-change: translate; }
.ref:hover img, .ref:hover .ph, .ref:focus-visible img, .ref:focus-visible .ph { transform: scale(1.05); }
.ref .ref-mark {
  position: absolute; z-index: 1; top: 16px; left: 16px; right: auto; bottom: auto;
  width: 116px; object-fit: contain; height: auto; transform: none !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .28));
  pointer-events: none;
}
.ref .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px;
  background: rgba(28, 26, 24, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease;
}
.ref:hover .cap, .ref:focus-visible .cap { opacity: 1; transform: none; }
.cap-meta { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #E9A8BC; margin-bottom: 4px; }
.cap-title { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.cap-place { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.ph-label, .placeholder-label { position: absolute; top: 14px; left: 14px; font-size: 12px; background: rgba(0, 0, 0, .55); color: #fff; padding: 6px 10px; border-radius: 0; }
.gallery li.is-hidden { display: none; }
.more { margin-top: 40px; text-align: center; }
.more:has(> [hidden]) { display: none; }

/* Platzhalter-Texturen, solange Fotos fehlen */
.ph { background-color: #C9A57E; }
.ph.parkett { background-color: #B98D62; background-image: repeating-linear-gradient(45deg, rgba(60, 35, 15, .25) 0 1px, transparent 1px 40px), repeating-linear-gradient(-45deg, rgba(60, 35, 15, .25) 0 1px, transparent 1px 40px); }
.ph.designbelag { background-color: #8E8A84; background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 90px); }
.ph.pvc-linoleum { background-color: #7F8C86; }
.ph.teppich { background-color: #B9B1A6; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 4px); }
.ph.laminat { background-color: #CDB394; background-image: repeating-linear-gradient(90deg, rgba(60, 35, 15, .2) 0 1px, transparent 1px 64px); }

/* ---------- Großansicht (Lightbox) ---------- */
.lightbox {
  width: min(1200px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-panel); overflow: hidden;
  background: var(--ink); color: #F6F3EE;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.lightbox::backdrop { background: rgba(20, 16, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .35s cubic-bezier(.2, .7, .2, 1); }
.lb-stage { position: relative; aspect-ratio: 4 / 3; max-height: calc(100svh - 160px); width: 100%; background: #2A2622; }
.lb-stage img, .lb-stage .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-caption { padding: 20px 28px 24px; }
.lb-close, .lb-nav {
  position: absolute; z-index: 3; width: 64px; height: 64px; padding: 0; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; cursor: pointer;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .55));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s ease;
  opacity: .9;
}
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close:focus:not(:focus-visible), .lb-nav:focus:not(:focus-visible) { outline: none; }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 1px solid #fff; outline-offset: -6px; }
.lb-close { top: 12px; right: 12px; }
.lb-close:hover { transform: rotate(90deg); }
.lb-nav { top: calc(50% - 72px); width: 80px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev:hover { transform: translateX(-6px); }
.lb-next:hover { transform: translateX(6px); }
.lb-caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.lb-count { font-family: var(--font-display); font-size: 14px; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Vorher/Nachher */
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; z-index: 1; pointer-events: none; }
.ba-line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 0; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; letter-spacing: 2px; }
.ba-tag { position: absolute; bottom: 14px; z-index: 1; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; background: rgba(0, 0, 0, .55); padding: 6px 10px; border-radius: 0; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }

/* ---------- Über mich ---------- */
.about { text-align: center; max-width: 820px; }
.about h2 { margin-bottom: 32px; text-wrap: balance; }
.about > p:not(.eyebrow) { font-size: 19px; line-height: 1.75; color: rgba(255, 255, 255, .88); margin: 0 auto 18px; max-width: 62ch; }
.about > p:last-child { margin-bottom: 0; }

/* ---------- Kontakt: Band mit Zeichen ---------- */
.contact-band {
  padding-block: var(--section-pad);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 40px 56px;
}
.contact-mark { width: clamp(150px, 17vw, 220px); height: auto; align-self: center; }
.contact-lead h2 { max-width: 22ch; text-wrap: balance; }
.open-anfrage {
  display: inline-flex; align-items: center; gap: 18px;
  min-height: 60px; padding: 0 26px 0 30px;
  border: 1px solid rgba(28, 26, 24, .55); background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.open-anfrage svg { width: 40px; height: 16px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.open-anfrage:hover { background: var(--berry); color: #fff; border-color: var(--berry); }
.open-anfrage:hover svg { transform: translateX(6px); }
.open-anfrage:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.contact-row {
  grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 22px 0 0;
  border-top: 1px solid rgba(28, 26, 24, .16);
  display: flex; flex-wrap: wrap; gap: 14px 48px;
}
.contact-row li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-row span { font-family: var(--font-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--berry); }
.contact-row a { color: var(--ink); text-decoration: none; font-size: 16px; border-bottom: 1px solid transparent; transition: border-color .25s ease; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--ink); border-bottom-color: rgba(28, 26, 24, .5); }

/* ---------- Auftakt beim ersten Laden ---------- */
.auftakt {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--ground); pointer-events: none;
  animation: auftakt-weg .6s ease 1.25s forwards;
}
.auftakt-in { text-align: center; }
.auftakt-zeichen { display: block; width: 150px; height: auto; margin: 0 auto; animation: auftakt-zeichen .9s cubic-bezier(.2, .7, .2, 1) both; }
.auftakt-logo { display: block; width: 260px; height: auto; margin: 20px auto 0; animation: auftakt-logo .8s cubic-bezier(.2, .7, .2, 1) .25s both; }
@keyframes auftakt-zeichen { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes auftakt-logo { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes auftakt-weg { to { opacity: 0; visibility: hidden; } }
.ohne-intro .auftakt { display: none; }

/* ---------- Anfrage: Schublade von rechts ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(600px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; overflow: hidden;
  background: var(--paper); color: var(--ink);
  box-shadow: -40px 0 80px -40px rgba(20, 14, 10, .6);
}
.drawer[open] { display: flex; flex-direction: column; animation: drawerIn .55s cubic-bezier(.2, .8, .2, 1); }
.drawer.is-closing { animation: drawerOut .35s cubic-bezier(.5, 0, .75, 0) forwards; }
.drawer::backdrop { background: rgba(28, 18, 20, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fadeIn .4s ease; }
.drawer.is-closing::backdrop { animation: fadeOut .35s ease forwards; }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 36px 40px 30px; background: var(--berry); color: #fff;
}
.drawer-kicker { margin: 0 0 10px; font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--berry-soft); }
.drawer-head h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.drawer-close {
  flex: 0 0 auto; width: 52px; height: 52px; margin: -10px -12px 0 0; padding: 0; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; cursor: pointer;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.drawer-close:hover { transform: rotate(90deg); }
.drawer-close:focus:not(:focus-visible) { outline: none; }
.drawer-close:focus-visible { outline: 1px solid #fff; outline-offset: -4px; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.drawer .form { padding: 36px 40px 40px; box-shadow: none; }
.drawer .form > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.drawer .form > *:nth-child(2) { animation-delay: .05s; } .drawer .form > *:nth-child(3) { animation-delay: .1s; }
.drawer .form > *:nth-child(4) { animation-delay: .15s; } .drawer .form > *:nth-child(5) { animation-delay: .2s; }
.drawer .form > *:nth-child(6) { animation-delay: .25s; } .drawer .form > *:nth-child(n+7) { animation-delay: .3s; }
.req { font-style: normal; color: var(--berry); }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerOut { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
html.drawer-open { overflow: hidden; }

.form {
  min-width: 0;
  background: var(--paper); color: var(--ink); padding: 44px 44px 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 32px; row-gap: 30px;
}
.form .full { grid-column: 1 / -1; }
.form-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.form-kicker { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 300; line-height: 1; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.form-note em { font-style: normal; color: var(--berry); }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lbl { padding: 0; font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); transition: color .25s ease; }
.lbl em { font-style: normal; color: var(--berry); }
.field:focus-within .lbl { color: var(--berry); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  padding: 8px 0 10px; border: 0; border-bottom: 1px solid #BDB4A8; border-radius: 0; background: transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.form textarea::placeholder { color: #A39A90; font-size: 15px; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--berry); box-shadow: 0 1px 0 var(--berry); }

/* Bodenart als Auswahlfelder */
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid rgba(28, 26, 24, .22); font-size: 15px; color: var(--ink);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pick label:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #F6F3EE; }
.pick input:focus-visible + span { outline: 2px solid var(--berry); outline-offset: 2px; }

/* Einwilligung */
.form .check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.form .check input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid #8A8178; background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease;
}
.form .check input::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.form .check input:checked { background: var(--berry); border-color: var(--berry); }
.form .check input:checked::after { opacity: 1; }
.form .check input:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

/* Absenden */
.send {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 28px; border: 0; cursor: pointer;
  background: var(--berry); color: #fff;
  font-family: var(--font-display); font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .25s ease;
}
.send svg { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.send:hover { background: var(--berry-dark); }
.send:hover svg { transform: translateX(6px); }
.send:disabled { opacity: .7; cursor: progress; }

.form .hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 16px; font-size: 15px; }
.form-status.ok { background: #E6F0E8; color: #1E4D2B; }
.form-status.err { background: #F7E3E6; color: #7A1F33; }

/* ---------- Fußzeile ---------- */
.footer { color: var(--muted); }
.footer-inner { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; }
.footer-inner p { margin: 0; }
.footer-inner img { height: 24px; width: auto; }
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }
.footer-inner p:not(.credit), .footer nav a { font-family: var(--font-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.footer nav a { text-decoration: none; border-bottom: 1px solid rgba(207, 200, 191, .4); padding-bottom: 2px; }
.footer nav a:hover, .footer nav a[aria-current] { border-bottom-color: currentColor; }
.footer .credit { width: 100%; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8A8178; }
.footer .credit a { color: #CFC8BF; text-decoration: none; letter-spacing: .2em; }
.footer .credit a:hover { color: #fff; }

/* ---------- Rechtliche Seiten ---------- */
.legal-panel { background: var(--paper); margin-top: 24px; }
.legal-body { max-width: 760px; margin: 0 auto; padding: 72px 24px 88px; }
.legal-body h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 32px; }
.legal-body h2 { font-size: 16px; font-weight: 400; letter-spacing: .14em; margin: 36px 0 10px; line-height: 1.3; }
.legal-body ul { padding-left: 1.2em; color: var(--ink-2); }
.legal-body p { color: var(--ink-2); line-height: 1.7; }
.legal-body a { overflow-wrap: anywhere; }
.legal-body .todo { background: var(--berry-soft); color: var(--berry-dark); padding: 0 4px; }

/* ---------- Anruf-Button ---------- */
.call-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 0;
  display: none; align-items: center; justify-content: center;
  background: var(--berry); color: #fff;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .35);
}

/* ---------- Bewegung ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: none; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    background: rgba(237, 232, 225, .97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 24px 40px -24px rgba(40, 25, 15, .45);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.nav-cta) { padding: 16px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid rgba(28, 26, 24, .1); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin-top: 16px; justify-content: center; min-height: 52px; }
  .call-fab { display: flex; }
  .footer-inner { padding-bottom: 96px; } /* Platz für den Anruf-Button */
  .scroll-hint { display: none; }
  #referenzen .section, 
  .hero-inner { padding-bottom: 56px; }
  .float-badge { width: 96px; height: 96px; top: 92px; right: 16px; left: auto; bottom: auto; }
  .float-badge { transition: opacity .4s ease, visibility .4s; }
  .float-badge:not([data-ton="foto"]) { opacity: 0; visibility: hidden; }
  .send { padding: 0 20px; font-size: 15px; letter-spacing: .1em; }
  .badge-num { font-size: 28px; }
  .badge-word { font-size: 6px; margin-top: 3px; }
  .contact-band { grid-template-columns: 1fr; gap: 28px; }
  .contact-mark { width: 130px; }
  .auftakt-zeichen { width: 120px; }
  .auftakt-logo { width: 210px; }
  .open-anfrage { justify-self: start; }
  .contact-row { gap: 16px 32px; }
  .drawer-head { padding: 26px 22px 22px; }
  .drawer .form { padding: 28px 22px 32px; column-gap: 20px; row-gap: 26px; }
  .lb-nav { top: auto; bottom: 8px; }
}
@media (max-width: 480px) {
  :root { --gutter: 10px; --radius-panel: 0; }
  .wrap { padding-inline: 18px; }
  .brand img { height: 66px; margin-top: 24px; margin-bottom: -14px; }
  .gallery { grid-template-columns: 1fr; }
  .ref .ref-mark { width: 96px; top: 12px; left: 12px; }
}
/* Geräte ohne Hover: Bildunterschriften immer zeigen */
@media (hover: none) {
  .ref .cap { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob, .hero-media img, .lightbox[open], .drawer[open], .drawer.is-closing, .drawer::backdrop, .drawer .form > *, .float-badge, .badge-ring, .scroll-hint i::after { animation: none; }
  .badge-turn { transform: none; }
  .auftakt { animation: auftakt-weg .3s ease .5s forwards; }
  .auftakt-zeichen, .auftakt-logo { animation: none; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .card, .card .swatch, .ref img, .ref .ph, .ref .cap, .btn { transition: none; }
  .hero-media, .hero-inner, .ref img, .ref .ph { translate: none !important; opacity: 1 !important; }
}

/* 404 */
.not-found .legal-body { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin-bottom: 20px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
