/* ==========================================================
   Eike Rother – Renovierung & Innenausbau
   ========================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4efe7;
  --bg-2: #ebe4d8;
  --paper: #fbf8f3;
  --ink: #1d1b18;
  --ink-2: #3a3631;
  --muted: #6f685e;
  --line: #d8cfc1;
  --accent: #b4603a;      /* Terrakotta */
  --accent-2: #8c4526;
  --oak: #c8a477;
  --sage: #8a9a82;
  --dark: #1f1d1a;
  --dark-2: #2a2723;

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

  --radius: 18px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
em, .ital { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1em 1.6em; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--b); background: var(--b); color: var(--paper);
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { border-color: var(--accent); box-shadow: 0 14px 30px -14px rgba(180, 96, 58, .7); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--light { --b: var(--paper); color: var(--ink); }
.btn--light:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header.hidden { transform: translateY(-100%); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo .name { font-family: var(--serif); font-size: 1.3rem; line-height: 1; letter-spacing: -.01em; }
.logo .sub { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: .8em 1.3em; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: min(100svh, 1000px); padding: 130px 0 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hero .container { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.loaded .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .24s; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 480px; margin: 30px 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, max-content); gap: 34px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.hero-meta strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.loaded .fade-up { opacity: 1; transform: none; }
.d1 { transition-delay: .45s !important; } .d2 { transition-delay: .6s !important; } .d3 { transition-delay: .75s !important; }

.hero-art { position: relative; aspect-ratio: 600 / 560; }
.hero-art .frame {
  position: absolute; inset: 0; border-radius: 300px 300px var(--radius) var(--radius);
  background: var(--paper); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(60, 40, 20, .35), inset 0 0 0 1px var(--line);
}
.hero-art svg { width: 100%; height: 100%; }
.hero-badge {
  position: absolute; left: -26px; bottom: 60px; z-index: 2;
  width: 132px; height: 132px; border-radius: 50%; background: var(--dark); color: var(--paper);
  display: grid; place-items: center;
}
.hero-badge svg.ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.hero-badge text { font: 600 10.5px var(--sans); letter-spacing: .26em; text-transform: uppercase; fill: var(--paper); }
.hero-badge .core { width: 40px; height: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bg-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}

/* SVG draw animation */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loaded .hero .draw, .in .draw { animation: draw 1.8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.92); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.loaded .hero .pop, .in .pop { opacity: 1; transform: none; }

.paint-sweep { transform-box: fill-box; transform-origin: left; transform: scaleX(0); }
.loaded .hero .paint-sweep { animation: sweep 2.4s var(--ease) 1.6s forwards; }
@keyframes sweep { to { transform: scaleX(1); } }
.roller { animation: roll 2.4s var(--ease) 1.6s forwards; }
@keyframes roll { 0% { transform: translate(0, 0); } 25% { transform: translate(38px, 40px); } 50% { transform: translate(75px, 0); } 75% { transform: translate(112px, 40px); } 100% { transform: translate(150px, 10px); } }
.lamp { transform-origin: 250px 0; animation: swing 6s ease-in-out infinite; }
@keyframes swing { 0%,100% { transform: rotate(2.2deg); } 50% { transform: rotate(-2.2deg); } }
.glow { animation: glow 4s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .55; } 50% { opacity: .85; } }
.leaf { transform-box: fill-box; transform-origin: bottom center; animation: sway 5s ease-in-out infinite; }
.leaf:nth-child(2n) { animation-delay: -2s; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.dust circle { animation: float 7s ease-in-out infinite; }
.dust circle:nth-child(2) { animation-delay: -2s; animation-duration: 9s; }
.dust circle:nth-child(3) { animation-delay: -4s; animation-duration: 8s; }
@keyframes float { 0%,100% { transform: translate(0, 0); opacity: .2; } 50% { transform: translate(8px, -18px); opacity: .7; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; margin-top: 70px; background: var(--bg); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.marquee-track span:nth-child(even) { font-style: italic; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service {
  background: var(--bg); padding: clamp(28px, 3.4vw, 44px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  transition: background .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 96, 58, .16), transparent 70%);
  opacity: 0; transition: opacity .6s, transform .8s var(--ease); transform: scale(.6);
}
.service:hover { background: var(--paper); }
.service:hover::before { opacity: 1; transform: scale(1); }
.service .num { font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
.service .icon { width: 64px; height: 64px; margin: 6px 0 auto; color: var(--ink); }
.service.in:hover .icon .draw { animation: redraw 1.4s var(--ease) forwards; }
@keyframes redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.service .icon .acc { color: var(--accent); }
.service h3 { margin-top: 26px; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }
.service ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: .76rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); }

/* ---------- Über / Haltung ---------- */
.about { background: var(--dark); color: var(--paper); overflow: hidden; }
.about .eyebrow { color: #a59d90; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about h2 { color: var(--paper); }
.about h2 em { color: var(--oak); }
.about-text p { color: #c9c1b4; font-size: 1.08rem; }
.about-art { position: relative; aspect-ratio: 4 / 5; }
.about-art::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--oak); border-radius: var(--radius); opacity: .55; }
.about-art img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 86% 30%; border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #3a3631; margin-top: 46px; border-radius: 14px; overflow: hidden; }
.principle { background: var(--dark); padding: 26px 24px; }
.principle .k { font-family: var(--serif); font-size: 1.25rem; color: var(--paper); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.principle .k svg { width: 22px; height: 22px; color: var(--oak); }
.principle p { font-size: .92rem; color: #a59d90; margin: 0; }

/* ---------- Vorher / Nachher ---------- */
.ba-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 480px; margin-inline: auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(60, 40, 20, .4), 0 0 0 1px var(--line);
  user-select: none; touch-action: pan-y;
}
.ba svg, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba img { object-fit: cover; object-position: center 60%; pointer-events: none; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--paper);
  transform: translateX(-1px); pointer-events: none;
}
.ba .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1b18' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .tag { position: absolute; top: 18px; padding: 6px 12px; border-radius: 99px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: rgba(29,27,24,.75); color: #fff; pointer-events: none; backdrop-filter: blur(6px); }
.ba .tag.l { left: 18px; } .ba .tag.r { right: 18px; background: var(--accent); }
.ba-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.ba-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ba-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.ba-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- Ablauf ---------- */
.process { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps-line { position: absolute; top: 31px; left: 32px; right: 32px; height: 1px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease) .2s; }
.in .steps-line i, .steps.in .steps-line i { transform: scaleX(1); }
.step { position: relative; }
.step .dot {
  width: 64px; height: 64px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; margin-bottom: 30px; position: relative; z-index: 1;
  transition: background .5s, color .5s, border-color .5s;
}
.steps.in .step .dot { background: var(--dark); color: var(--paper); border-color: var(--dark); }
.steps.in .step:nth-child(2) .dot { transition-delay: .2s; }
.steps.in .step:nth-child(3) .dot { transition-delay: .8s; }
.steps.in .step:nth-child(4) .dot { transition-delay: 1.4s; }
.steps.in .step:nth-child(5) .dot { transition-delay: 2s; background: var(--accent); border-color: var(--accent); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Materialien ---------- */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mat { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; cursor: default; box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: transform .6s var(--ease), box-shadow .6s; }
.mat:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 30px 50px -28px rgba(60,40,20,.55); }
.mat svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mat figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(251, 248, 243, .9); backdrop-filter: blur(8px); }
.mat figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.2; }
.mat figcaption span { font-size: .76rem; color: var(--muted); }
.mat:nth-child(even) { margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details > div { color: var(--muted); padding: 0 50px 26px 0; }

/* ---------- Kontakt ---------- */
.contact { background: var(--dark); color: var(--paper); border-radius: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 0 0; overflow: hidden; }
.contact .eyebrow { color: #a59d90; }
.contact h2 { color: var(--paper); }
.contact h2 em { color: var(--oak); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 100px); }
.contact-info p { color: #c9c1b4; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .ic { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3f3a34; display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; color: var(--oak); }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #8d857a; }
.contact-list a { text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--oak); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--dark-2); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px solid #36322d; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 500; color: #b5ad9f; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid #4a443d; padding: 10px 0; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a477' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--oak); }
.field input::placeholder, .field textarea::placeholder { color: #6f685e; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px solid #4a443d; font-size: .86rem; color: #c9c1b4; transition: all .3s; }
.chips input:checked + span { background: var(--oak); border-color: var(--oak); color: var(--dark); }
.chips input:focus-visible + span { outline: 2px solid var(--oak); outline-offset: 2px; }

.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: #a59d90; }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.consent a { color: var(--oak); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form .btn { --b: var(--accent); color: #fff; }
.form .btn::after { background: var(--oak); }
.form .btn:hover { color: var(--dark); }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form-status { font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: #a9c79d; }
.form-status.err { color: #e79a7a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { grid-column: 1 / -1; text-align: center; padding: 40px 10px; display: none; }
.form.sent .form-success { display: block; }
.form.sent > :not(.form-success) { display: none; }
.form-success svg { width: 90px; height: 90px; margin: 0 auto 20px; color: var(--oak); }
.form-success h3 { font-size: 2rem; margin-bottom: 10px; }
.form-success p { color: #b5ad9f; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #8d857a; padding: 70px 0 34px; font-size: .9rem; }
.footer-big { font-family: var(--serif); font-size: clamp(3rem, 12vw, 10.5rem); line-height: .9; color: var(--paper); letter-spacing: -.04em; margin: 0 0 50px; white-space: nowrap; overflow: hidden; }
.footer-big em { color: var(--oak); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid #36322d; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Galerie / Baustellenfotos ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shot { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.shot a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(29,27,24,.72)); pointer-events: none; }
.shot:hover img { transform: scale(1.05); }
.shot-wide { grid-column: span 2; aspect-ratio: auto; }
.shot-wide a { position: absolute; inset: 0; }
.shot-wide img { object-position: 50% 40%; }
.shot figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; pointer-events: none; }
.shot figcaption span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oak); }
.shot figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,18,16,.94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 10px; }
.lightbox figcaption { font-family: var(--serif); font-size: 1.15rem; }
.lb-close, .lb-nav { background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; opacity: .75; padding: 10px; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 100px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .note { background: #fff4e6; border: 1px solid #efd3b0; padding: 16px 20px; border-radius: 12px; font-size: .92rem; }

/* ---------- Responsive ---------- */
.hero .container > *, .about-grid > *, .ba-wrap > *, .faq-grid > *, .contact-grid > *, .form > * { min-width: 0; }

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .mat:nth-child(even) { margin-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot-wide { aspect-ratio: 8 / 5; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .steps-line { display: none; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .burger { display: block; z-index: 2; }
  .logo { z-index: 2; position: relative; }
  .hero .container, .about-grid, .ba-wrap, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 110px; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-badge { left: 0; width: 108px; height: 108px; bottom: 30px; }
  .about-art { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .gallery { gap: 10px; }
  .shot figcaption { left: 12px; right: 12px; bottom: 10px; }
  .shot figcaption strong { font-size: 1rem; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .steps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; grid-template-columns: 1fr 1fr; }
  .marquee { margin-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}

/* ---------- Logo Rother Raumgestaltung (E3) ---------- */
.logo svg.brand { width: auto; height: 46px; color: var(--ink); }
@media (max-width: 640px) { .logo svg.brand { height: 38px; } }
