/* ==========================================================================
   Fliesenlegerfachbetrieb Oliver Schüßler – Stylesheet
   Mobile-first · Safari/iOS & Android getestet · keine externen Ressourcen
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --ink: #17181a;
  --ink-2: #2a2b2e;
  --ink-soft: #55575c;
  --stone: #f4f1ec;
  --stone-2: #ebe6de;
  --stone-3: #ddd6ca;
  --white: #fff;
  --accent: #c8643b;        /* Terrakotta */
  --accent-dark: #a64e2a;
  --accent-soft: #f3e2d8;
  --teal: #2f6f78;          /* Mosaik-Akzent */
  --grout: #cfc8bc;         /* Fugenfarbe */
  --line: rgba(23, 24, 26, .12);

  --font-head: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px -12px rgba(0,0,0,.18);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.05), 0 30px 60px -20px rgba(0,0,0,.35);
  --vh: 1vh;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, .25vw + 15px, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-variation-settings: "wdth" 100;
}
h1 { font-size: clamp(2.5rem, 7.4vw, 6.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--stone); }
.section--stone2 { background: var(--stone-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2em;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 8px 0 / 6px 6px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 8px / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 8px / 6px 6px no-repeat;
  opacity: .9;
}
.section--dark .eyebrow { color: #e8916b; }
.lead { font-size: clamp(1.08rem, .6vw + .95rem, 1.35rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.section--dark .lead { color: #b9b4ab; }
.accent { color: var(--accent); }
.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 4rem; }
  .section-head--split .lead { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.5em;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn:hover::before { transform: translateY(0); }
}
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--accent { --bg: var(--accent); }
.btn--accent::before { background: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { color: #fff; }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--lg { min-height: 60px; padding: 1em 1.8em; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  transition: background-color .5s ease, box-shadow .5s ease, color .4s ease, transform .55s cubic-bezier(.33, 1, .68, 1);
  will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  color: var(--ink);
}
.site-header--over-dark { color: #fff; }
.site-header.is-scrolled {
  background: rgba(244, 241, 236, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.site-header.is-hidden { transform: translate3d(0, -110%, 0); transition-duration: .5s, .5s, .4s, .45s; transition-timing-function: ease, ease, ease, cubic-bezier(.32, 0, .67, 0); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark rect { transition: transform .6s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.brand:hover .brand-mark rect:nth-child(1) { transform: rotate(90deg); }
.brand:hover .brand-mark rect:nth-child(4) { transform: rotate(-90deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-pre { font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .01em; white-space: nowrap; opacity: .85; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -.015em; white-space: nowrap; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .02em; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .header-actions .icon-btn[href^="mailto"] { display: none; }
  .header-inner { gap: 10px; }
  .site-header .brand { gap: 9px; }
  .site-header .brand-mark { width: 34px; height: 34px; }
  .site-header .brand-pre { font-size: .64rem; }
  .site-header .brand-name { font-size: 1.04rem; }
  .site-header .brand-sub { font-size: .58rem; letter-spacing: 0; }
}
@media (max-width: 380px) { .header-actions .icon-btn { display: none; } }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border-radius: 999px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: transparent; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px currentColor; transition: background .3s, color .3s, box-shadow .3s;
}
.icon-btn:hover { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.header-cta { display: none; }
.menu-toggle {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; display: grid; place-items: center;
}
.site-header--over-dark:not(.is-scrolled) .menu-toggle { background: #fff; color: var(--ink); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1000px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; min-height: 46px; padding: .6em 1.2em; font-size: .92rem; }
}

/* ---------- Mobiles Menü (Fliesen-Overlay) ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(6, 1fr);
  pointer-events: none; visibility: hidden;
}
.mobile-nav .tile {
  background: var(--ink); transform: scale(0); border-radius: 2px;
  transition: transform .5s var(--ease-out);
}
.nav-open .mobile-nav { pointer-events: auto; visibility: visible; }
.nav-open .mobile-nav .tile { transform: scale(1.02); }
.mobile-nav-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 10px) var(--gutter) calc(30px + env(safe-area-inset-bottom));
  color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { overflow: hidden; }
.mobile-nav li a {
  display: flex; align-items: baseline; gap: 14px; padding: 6px 0; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -.03em;
  transform: translateY(110%); transition: transform .6s var(--ease-out), color .3s;
}
.mobile-nav li a small { font-family: var(--font-body); font-size: .8rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.mobile-nav li a[aria-current="page"] { color: #e8916b; }
.nav-open .mobile-nav li a { transform: translateY(0); }
.mobile-nav .mobile-nav-foot { margin-top: 36px; display: grid; gap: 10px; opacity: 0; transform: translateY(16px); transition: opacity .5s .35s, transform .6s .35s var(--ease-out); }
.nav-open .mobile-nav .mobile-nav-foot { opacity: 1; transform: none; }
.mobile-nav-foot .btn { width: 100%; }
.nav-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-open .site-header .menu-toggle { background: #fff; color: var(--ink); }
.nav-open .site-header .icon-btn { visibility: hidden; }
html.nav-open, html.nav-open body { overflow: hidden; }
@media (min-width: 1000px) { .mobile-nav { display: none; } }

/* ---------- Mobile Aktionsleiste (immer Anruf + E-Mail) ---------- */
.action-bar {
  position: fixed; left: 10px; right: 10px; z-index: 80;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  background: rgba(23, 24, 26, .9);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-radius: 999px; box-shadow: var(--shadow-lg);
  transform: translateY(160%); transition: transform .6s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 700; color: #fff; font-size: .98rem;
}
.action-bar a:first-child { background: var(--accent); }
.action-bar a:last-child { background: rgba(255,255,255,.1); }
.action-bar svg { width: 20px; height: 20px; }
.nav-open .action-bar { transform: translateY(160%); }
@media (min-width: 1000px) {
  .action-bar { left: auto; right: 24px; bottom: 24px; grid-template-columns: auto auto; }
  .action-bar a { padding: 0 20px; }
}
body { padding-bottom: 0; }

/* ---------- Hero mit Fliesenfeld ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: calc(var(--vh) * 100);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px + env(safe-area-inset-top)) 0 clamp(110px, 12vw, 120px);
  background: var(--ink); color: #fff; overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-tiles {
  position: absolute; inset: -4%; z-index: -2;
  display: grid; gap: 3px; background: #0d0e0f;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  grid-auto-rows: 1fr;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.06);
  will-change: transform;
}
.hero-tiles .t {
  position: relative; background: var(--c, #2a2b2e);
  opacity: 0; transform: translateY(-30px) scale(.86) rotate(var(--r, 0deg));
  animation: lay .9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
  overflow: hidden;
}
.hero-tiles .t::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.13) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 6s var(--ease) infinite; animation-delay: calc(var(--d, 0s) + 1.5s);
}
.hero-tiles .t--accent { --c: var(--accent); }
.hero-tiles .t--teal { --c: var(--teal); }
@keyframes lay { to { opacity: 1; transform: none; } }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,14,15,.55) 0%, rgba(13,14,15,.15) 35%, rgba(13,14,15,.85) 78%, rgba(13,14,15,.97) 100%),
    radial-gradient(120% 80% at 10% 100%, rgba(13,14,15,.9), transparent 60%);
}
.hero-content { position: relative; }
.hero h1 { margin-bottom: .3em; max-width: 13ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero h1 em { font-style: normal; color: #e8916b; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 10px 18px; border-radius: 22px; line-height: 1.4;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  opacity: 0; animation: fadeUp .9s .5s var(--ease-out) forwards;
}
.hero-text { max-width: 560px; color: #d5d0c7; font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); opacity: 0; animation: fadeUp .9s .55s var(--ease-out) forwards; }
.hero .btn-row { margin-top: 30px; opacity: 0; animation: fadeUp .9s .7s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-meta {
  display: none; position: absolute; right: var(--gutter); bottom: clamp(40px, 8vw, 110px);
  text-align: right; font-size: .82rem; color: #b9b4ab; line-height: 1.8;
  opacity: 0; animation: fadeUp .9s .9s var(--ease-out) forwards;
}
.hero-meta strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; display: block; }
@media (min-width: 1100px) { .hero-meta { display: block; } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
  display: none;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: wheel 2s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1000px) and (min-height: 700px) { .scroll-hint { display: block; } }

/* Unterseiten-Hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + clamp(50px, 9vw, 120px)) 0 clamp(50px, 7vw, 90px);
  background: var(--ink); color: #fff;
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 16ch; }
.page-hero .lead { color: #c8c2b8; }
.page-hero-pattern {
  position: absolute; z-index: -1; right: -6%; top: 0; bottom: 0; width: min(60%, 700px);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero-pattern i { background: var(--ink-2); aspect-ratio: 1; animation: lay .8s var(--ease-out) both; animation-delay: var(--d, 0s); }
.page-hero-pattern i:nth-child(7n+3) { background: var(--accent); }
.page-hero-pattern i:nth-child(11n+5) { background: var(--teal); }
.breadcrumb { font-size: .85rem; color: #a39e95; margin-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Laufband ---------- */
.marquee-wrap { position: relative; z-index: 3; overflow: hidden; padding: 30px 0; margin: -30px 0; pointer-events: none; }
.marquee {
  background: var(--accent); color: #fff; overflow: hidden; padding: 18px 0;
  transform: rotate(-1.2deg) scale(1.03); margin: -14px 0; position: relative;
  box-shadow: var(--shadow);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.8rem); white-space: nowrap;
}
.marquee span::after { content: ""; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal-Animationen ---------- */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), clip-path 1.2s var(--ease-out); transition-delay: var(--delay, 0s); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="tile"] { transform: perspective(800px) rotateX(18deg) translateY(50px); transform-origin: 50% 100%; }
[data-reveal="clip"] { opacity: 1; }
[data-reveal="clip"] > * { clip-path: inset(0 0 100% 0); -webkit-clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out), -webkit-clip-path 1.1s var(--ease-out); }
[data-reveal="clip"] > :nth-child(2) { transition-delay: .1s; } [data-reveal="clip"] > :nth-child(3) { transition-delay: .2s; } [data-reveal="clip"] > :nth-child(4) { transition-delay: .3s; } [data-reveal="clip"] > :nth-child(5) { transition-delay: .4s; }
[data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.split-words.is-in .w > span { transform: none; }
.no-js [data-reveal], .no-js [data-reveal="clip"] > * { opacity: 1; transform: none; clip-path: none; -webkit-clip-path: none; }
.no-js .split-words .w > span { transform: none; }

/* ---------- Intro / Meisterbetrieb ---------- */
.intro-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; } }
.intro-statement { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 3.3vw, 2.8rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .8em; }
.intro-statement .muted { color: #a39d93; }
.seal {
  position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto;
  display: grid; place-items: center;
}
.seal-ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.seal-ring text { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .38em; fill: var(--ink); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-core {
  width: 52%; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  transform: rotate(45deg);
}
.seal-core i { background: var(--ink); border-radius: 4px; display: grid; place-items: center; }
.seal-core i:nth-child(2) { background: var(--accent); }
.seal-core i:nth-child(3) { background: var(--teal); }
.seal-core i:nth-child(4) { background: var(--stone-3); }
.seal-core b {
  transform: rotate(-45deg); font-family: var(--font-head); color: #fff; font-size: clamp(.68rem, 1.7vw, .95rem); text-align: center; line-height: 1.1;
}
.seal-core i:nth-child(4) b { color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 36px; }
.fact { background: var(--stone); padding: 22px 20px; }
.fact-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.fact-num sup { font-size: .45em; color: var(--accent); vertical-align: top; margin-left: 2px; }
.fact-label { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Leistungen ---------- */
.services { display: grid; gap: 14px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.service {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px 26px 28px; border-radius: var(--radius-lg);
  background: var(--ink-2); color: var(--stone);
  min-height: 260px; display: flex; flex-direction: column;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 44px 44px; background-position: -1px -1px;
  transition: background-size .8s var(--ease-out), opacity .6s;
  -webkit-mask-image: radial-gradient(circle at var(--mx, 80%) var(--my, 0%), #000, transparent 70%);
  mask-image: radial-gradient(circle at var(--mx, 80%) var(--my, 0%), #000, transparent 70%);
}
.service::after {
  content: ""; position: absolute; width: 140px; height: 140px; right: -40px; top: -40px; z-index: -1;
  background: var(--accent); border-radius: 12px; transform: rotate(45deg) scale(.4); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .6s;
}
.service:hover, .service.is-active { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service:hover::before, .service.is-active::before { background-size: 30px 30px; }
.service:hover::after, .service.is-active::after { transform: rotate(45deg) scale(1); opacity: .9; }
.service-icon { width: 48px; height: 48px; margin-bottom: auto; color: #e8916b; transition: color .4s; }
.service:hover .service-icon, .service.is-active .service-icon { color: #fff; }
.service h3 { margin: 40px 0 10px; color: #fff; }
.service p { margin: 0; color: #b9b4ab; font-size: .95rem; }
.service-num { position: absolute; right: 24px; bottom: 18px; font-family: var(--font-head); font-size: .8rem; color: #6d6a64; }

/* ---------- Ablauf / Prozess (Sticky) ---------- */
.process { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .process { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .process-sticky { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 40px); }
}
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step { position: relative; padding: 28px 0 28px 76px; border-top: 1px solid rgba(255,255,255,.12); counter-increment: s; }
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.step::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 26px; width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; border-radius: 6px;
  background: rgba(255,255,255,.06); color: #e8916b;
  transition: background .5s, color .5s, transform .7s var(--ease-out);
}
.step.is-in::before { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.step h3 { margin-bottom: 6px; color: #fff; }
.step p { margin: 0; color: #b9b4ab; }

/* ---------- Projekt-Teaser (horizontal) ---------- */
.proj-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 420px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.proj-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
  .proj-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; margin: 0; gap: 22px; }
  .proj-rail .proj-card:nth-child(3n+2) { transform: translateY(60px); }
  .proj-rail .proj-card:nth-child(3n+2).is-in { transform: translateY(60px); }
}
.proj-card { scroll-snap-align: start; text-decoration: none; display: block; }
.proj-card figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--stone-3); }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.proj-card:hover img, .proj-card.is-active img { transform: scale(1.07); }
.proj-card figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65));
}
.proj-card figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; }
.proj-card .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; margin-bottom: 8px; }
.proj-card h3 { margin: 0; font-size: 1.35rem; }
.proj-card .arrow {
  position: absolute; top: 16px; right: 16px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease-out);
}
.proj-card:hover .arrow, .proj-card.is-active .arrow { transform: scale(1) rotate(0); }
@media (hover: none) { .proj-card .arrow { transform: scale(.85); } }

/* ---------- Zeitstrahl ---------- */
.timeline-wrap { position: relative; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline-line {
  position: absolute; left: 19px; top: 8px; bottom: 8px; width: 4px;
  background: repeating-linear-gradient(180deg, var(--stone-3) 0 18px, transparent 18px 22px);
  border-radius: 2px;
}
.timeline-line i {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  background: repeating-linear-gradient(180deg, var(--accent) 0 18px, transparent 18px 22px);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.tl-item { position: relative; padding: 0 0 56px 64px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 6px; top: 4px; width: 30px; height: 30px;
  background: var(--stone); border: 3px solid var(--stone-3); border-radius: 6px; transform: rotate(45deg);
  transition: background .5s, border-color .5s, transform .8s var(--ease-out);
}
.tl-item.is-in .tl-dot { background: var(--accent); border-color: var(--accent); transform: rotate(225deg); }
.tl-year { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.tl-card { margin-top: 12px; padding: 24px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tl-card h3 { margin-bottom: 8px; }
.tl-card p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) {
  .timeline-line { left: 50%; margin-left: -2px; }
  .tl-item { width: 50%; padding: 0 64px 80px 0; text-align: right; }
  .tl-item:nth-child(odd) { margin-left: 50%; padding: 0 0 80px 64px; text-align: left; }
  .tl-item .tl-dot { left: auto; right: -15px; }
  .tl-item:nth-child(odd) .tl-dot { left: -15px; right: auto; }
  .tl-item:nth-child(even) .tl-card { margin-left: auto; }
  .tl-card { max-width: 440px; text-align: left; }
}
/* ---------- Werte ---------- */
.values { display: grid; gap: 14px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.value svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 18px; }
.value h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Einzugsgebiet ---------- */
.area-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .area-grid { grid-template-columns: 1fr 1fr; gap: 70px; } }
.area-map { position: relative; width: 100%; max-width: 620px; margin: 0 auto; }
.area-map svg { width: 100%; height: auto; overflow: visible; }
.area-map .ring { fill: none; stroke: rgba(255,255,255,.18); stroke-width: .5; stroke-dasharray: 2 2; }
.area-map .ring-50 { fill: none; stroke: var(--accent); stroke-width: .8; stroke-dasharray: 316; stroke-dashoffset: 316; transition: stroke-dashoffset 2.4s var(--ease-out); }
.area-map.is-in .ring-50 { stroke-dashoffset: 0; }
.area-map .zone { fill: var(--accent); opacity: .08; }
.area-map .grid-line { stroke: rgba(255,255,255,.05); stroke-width: .3; }
.area-map .town circle { fill: #fff; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
.area-map .town text { fill: #cfc9bf; font-size: 3.2px; font-family: var(--font-body); font-weight: 600; opacity: 0; transition: opacity .6s; transition-delay: var(--d, 0s); }
.area-map.is-in .town circle { transform: scale(1); }
.area-map.is-in .town text { opacity: 1; }
.area-map .home rect { fill: var(--accent); }
.area-map .home text { fill: #fff; font-size: 4px; font-weight: 800; font-family: var(--font-head); }
.area-map .pulse { fill: none; stroke: var(--accent); stroke-width: .6; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease-out) infinite; }
.area-map .pulse:nth-of-type(2) { animation-delay: 1.3s; }
@keyframes pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(3.5); opacity: 0; } }
.area-map .label-50 { fill: #e8916b; font-size: 3.4px; font-weight: 700; font-family: var(--font-body); letter-spacing: .08em; }
.town-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.town-list li {
  padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.section:not(.section--dark) .town-list li { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.town-list li small { color: #9c968c; font-weight: 500; margin-left: 4px; }

.region-cols { display: grid; gap: 18px; }
@media (min-width: 760px) { .region-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .region-cols { grid-template-columns: repeat(3, 1fr); } }
.region { background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); }
.region h3 { font-size: 1.25rem; }
.region p { color: var(--ink-soft); font-size: .95rem; }
.region ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.region li { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--stone); }

/* ---------- Karte (2-Klick, Consent) ---------- */
.map-embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); color: #fff; }
@media (max-width: 600px) { .map-embed { aspect-ratio: 4 / 5; } }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 14px; padding: clamp(20px, 5vw, 48px);
  background:
    linear-gradient(rgba(23,24,26,.86), rgba(23,24,26,.92)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.06) 39px 40px);
}
.map-consent p { margin: 0; color: #c8c2b8; font-size: .92rem; max-width: 52ch; }
.map-consent a { color: #fff; }
.map-consent label { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #c8c2b8; cursor: pointer; }
.map-consent input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--accent); color: #fff; padding: clamp(80px, 12vw, 160px) 0;
}
.cta-tiles {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.14) 2px, transparent 2px);
  background-size: 80px 80px;
  transform: translate3d(0, var(--py, 0), 0) rotate(-8deg) scale(1.4);
}
.cta h2 { font-size: clamp(2.4rem, 7vw, 6rem); max-width: 14ch; }
.cta p { font-size: 1.15rem; max-width: 46ch; opacity: .92; }
.cta .btn-row { margin-top: 34px; }
.cta .btn--light:hover::before { background: var(--ink); }
.contact-cards { display: grid; gap: 12px; margin-top: 46px; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: block; text-decoration: none; padding: 22px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: background .4s, transform .5s var(--ease-out);
}
a.contact-card:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.contact-card small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.contact-card strong { font-family: var(--font-head); font-size: clamp(1.1rem, 1.6vw, 1.35rem); word-break: break-word; }

/* ---------- Projekte-Seite ---------- */
.filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 40px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter::-webkit-scrollbar { display: none; }
.filter button {
  flex: none; border: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s;
}
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.project { display: grid; gap: 22px; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project[hidden] { display: none; }
@media (min-width: 1000px) {
  .project { grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
  .project-info { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 30px); }
}
.project-index { font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--accent); letter-spacing: .1em; }
.project h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 6px 0 14px; }
.project-info p { color: var(--ink-soft); font-size: .98rem; }
.spec { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); font-size: .92rem; }
.spec dt, .spec dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--ink-soft); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; background: var(--stone); }
.spec dd { font-weight: 600; }
.spec dt:nth-last-of-type(1), .spec dd:last-of-type { border-bottom: 0; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--stone-3); cursor: zoom-in; }
.gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 700px) { .gallery a:first-child { grid-column: span 3; grid-row: span 2; aspect-ratio: auto; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-out);
}
.gallery a:hover::after { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(13,14,15,.96);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  padding: calc(60px + env(safe-area-inset-top)) 12px calc(80px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; transition: transform .4s var(--ease-out), opacity .3s; user-select: none; -webkit-user-select: none; }
.lightbox-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
}
.lightbox-btn:hover { background: var(--accent); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: calc(10px + env(safe-area-inset-top)); right: 12px; }
.lightbox-prev { left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); }
.lightbox-next { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .lightbox-prev, .lightbox-next { top: 50%; bottom: auto; margin-top: -25px; } }
.lightbox-count { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(26px + env(safe-area-inset-bottom)); color: #b9b4ab; font-size: .9rem; font-weight: 600; }
.lightbox-caption { position: absolute; left: 70px; right: 70px; top: calc(22px + env(safe-area-inset-top)); color: #fff; font-weight: 700; font-size: .95rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; padding-top: .4em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.8em; }
.legal p, .legal li { color: #3b3d41; }
.legal address { font-style: normal; }
.legal .box { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin: 20px 0; }
.legal a { color: var(--accent-dark); word-break: break-word; }
.toc { background: #fff; border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 30px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 30px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent); }
.placeholder { background: #fff2c2; padding: 0 4px; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1011; color: #b9b4ab; padding: 80px 0 calc(110px + env(safe-area-inset-bottom)); font-size: .95rem; position: relative; overflow: hidden; }
@media (min-width: 1000px) { .site-footer { padding-bottom: 40px; } }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-family: var(--font-body); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-brand { color: #fff; }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand .brand-pre { font-size: .85rem; }
.footer-brand .brand-sub { font-size: .78rem; }
.footer-claim { margin-top: 16px; max-width: 34ch; }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.linklike { background: none; border: 0; padding: 0; text-decoration: none; font-size: inherit; color: inherit; }
.linklike:hover { color: #fff; }
.footer-word {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); margin-top: 50px; white-space: nowrap; user-select: none;
}

/* ---------- Cookie-Consent ---------- */
.cc-banner {
  position: fixed; z-index: 500; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 560px; margin-left: auto;
  background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5), 0 0 0 1px var(--line);
  padding: 22px; transform: translateY(130%); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s;
  max-height: calc(100vh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .cc-banner { right: 24px; bottom: 24px; left: auto; padding: 28px; } }
.cc-banner.is-visible { transform: none; opacity: 1; }
.cc-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.cc-title i { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(45deg); flex: none; }
.cc-title i::before, .cc-title i::after { content: ""; background: var(--accent); border-radius: 2px; }
.cc-banner p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.55; }
.cc-banner a { color: var(--accent-dark); }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-actions .btn { min-height: 48px; font-size: .92rem; padding: .7em 1em; white-space: normal; }
.cc-actions .btn--ghost { color: var(--ink); }
.cc-actions .btn--ghost:hover { color: #fff; }
.cc-modal {
  position: fixed; inset: 0; z-index: 600; display: grid; place-items: end center;
  background: rgba(13,14,15,.6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@media (min-width: 640px) { .cc-modal { place-items: center; } }
.cc-modal.is-open { opacity: 1; visibility: visible; }
.cc-dialog {
  width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(40px); transition: transform .5s var(--ease-out);
}
@media (min-width: 640px) { .cc-dialog { border-radius: 20px; padding: 32px; } }
.cc-modal.is-open .cc-dialog { transform: none; }
.cc-dialog h2 { font-size: 1.6rem; }
.cc-dialog > p { font-size: .92rem; color: var(--ink-soft); }
.cc-cat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 12px 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat-head strong { font-size: 1rem; }
.cc-cat p { font-size: .86rem; color: var(--ink-soft); margin: 8px 0 0; }
.cc-cat details { margin-top: 8px; font-size: .84rem; color: var(--ink-soft); }
.cc-cat summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.cc-cat table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.cc-cat td { border-top: 1px solid var(--line); padding: 6px 4px; vertical-align: top; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--stone-3); border-radius: 999px; transition: background .3s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .35s var(--ease-out); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc-dialog .cc-actions { margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cc-dialog .cc-actions { grid-template-columns: 1fr; justify-items: end; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: #fff; padding: 120px var(--gutter) 80px; }
.notfound .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 25vw, 16rem); line-height: .9; letter-spacing: -.06em; }
.notfound .big span { display: inline-block; animation: wobble 3s ease-in-out infinite; }
.notfound .big span:nth-child(2) { color: var(--accent); animation-delay: .3s; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) translateY(-6px); } }

/* ---------- Reduzierte Bewegung ---------- */
/* ---------- Reduzierte Bewegung (iPhone: Bedienungshilfen > Bewegung reduzieren) ----------
   Statt alles abzuschalten: sanfte Überblendungen bleiben, große Bewegungen entfallen. */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal="tile"], [data-reveal="scale"], [data-reveal="left"], [data-reveal="right"], [data-reveal="up"] {
    transform: none !important; transition: opacity .9s ease !important; transition-delay: var(--delay, 0s) !important;
  }
  [data-reveal="clip"] > * { clip-path: none !important; -webkit-clip-path: none !important; opacity: 0; transition: opacity .9s ease !important; }
  [data-reveal="clip"].is-in > * { opacity: 1; }
  .split-words .w > span { transform: none !important; opacity: 0; transition: opacity .8s ease !important; transition-delay: calc(var(--i) * 40ms) !important; }
  .split-words.is-in .w > span { opacity: 1; }
  .hero-tiles .t { transform: none; animation-name: fadeIn; }
  .hero-tiles .t::after, .seal-ring, .marquee-track, .area-map .pulse, .notfound .big span, .scroll-hint::after { animation: none !important; }
  .hero h1 .line > span { transform: none; opacity: 0; animation-name: fadeIn; }
  .hero-badge, .hero-text, .hero .btn-row, .hero-meta { animation-name: fadeIn; }
  .hero-tiles { transform: none !important; }
  .service:hover, .service.is-active, .proj-card:hover img, .proj-card.is-active img { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .action-bar, .cc-banner, .cc-modal, .mobile-nav, .marquee, .site-footer .footer-word { display: none !important; }
  .hero, .page-hero, .section--dark, .cta { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
.eyebrow--light, .section--dark .eyebrow.eyebrow--light { color: #fff; }
.eyebrow--light::before { filter: brightness(0) invert(1); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform .4s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { padding: 0 22px 22px; margin: 0; color: var(--ink-soft); }

/* ---------- Logo: Fliesen genau so hoch wie der Textblock ---------- */
.brand { --bp: .74rem; --bn: 1.18rem; --bs: .66rem; --blh: 1.08; align-items: center; }
.brand-text { line-height: var(--blh); }
.brand-pre { font-size: var(--bp) !important; }
.brand-name { font-size: var(--bn) !important; }
.brand-sub { font-size: var(--bs) !important; padding-bottom: .16em; margin-bottom: -.16em; }
.brand .brand-mark { width: calc((var(--bp) + var(--bn) + var(--bs)) * var(--blh)) !important; height: calc((var(--bp) + var(--bn) + var(--bs)) * var(--blh)) !important; }
.footer-brand { --bp: .85rem; --bn: 1.5rem; --bs: .78rem; }
@media (max-width: 480px) { .site-header .brand { --bp: .64rem; --bn: 1.04rem; --bs: .58rem; gap: 9px; } }
@media (max-width: 380px) {
  .header-actions .icon-btn { display: none; }
  .site-header .brand { --bp: .62rem; --bn: 1rem; --bs: .56rem; }
  .action-bar { transform: none; }
}

/* Header: nur ein Anruf-Button (auf großen Bildschirmen der orange Button) */
@media (min-width: 1000px) { .header-actions .icon-btn--phone { display: none; } }

/* Zeitstrahl: Stationen statt Jahreszahlen */
.tl-year { font-size: clamp(1.9rem, 4vw, 3rem); hyphens: manual; }
