/* ==========================================================================
   Heidrich-Fliesen GmbH – Stylesheet
   Farben aus dem Logo: Grün (Schriftzug), Gelb (Fliesen), Anthrazit (Fugenraster)
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../../fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../../fonts/sourcesans3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../../fonts/sourcesans3-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --green-950: #0e2a15;
  --green-900: #143a1d;
  --green-800: #1a4d26;
  --green-700: #1f6b2e;
  --green-600: #2e8b3d;
  --green-100: #e3f0e2;
  --green-50: #f1f7f0;
  --yellow: #ffe600;
  --yellow-600: #e6c900;
  --yellow-100: #fff8c2;
  --ink: #1b1f1c;
  --ink-2: #3a403c;
  --muted: #5d655f;
  --line: #dcdad0;
  --stone-50: #f8f7f3;
  --stone-100: #f0eee7;
  --stone-200: #e5e2d8;
  --white: #fff;
  --aqua: #2d8fa6;

  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgb(20 30 22 / .06), 0 2px 8px rgb(20 30 22 / .05);
  --shadow: 0 2px 6px rgb(20 30 22 / .06), 0 12px 32px rgb(20 30 22 / .09);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --tilt: -22deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: .18em; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-stone { background: var(--stone-50); }
.section-green { background: var(--green-900); color: #e8efe8; }
.section-green h2, .section-green h3 { color: #fff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.center { text-align: center; }
.max-prose { max-width: 68ch; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }

.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }

/* Eyebrow mit gekippter Fliese */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: .8em; height: .8em; background: var(--yellow);
  outline: 1.5px solid var(--ink); transform: rotate(var(--tilt));
}
.eyebrow-light { color: var(--yellow); }
.eyebrow-light::before { outline-color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .95em 1.4em; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); }
.btn-primary:hover { background: #fff04d; color: var(--ink); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .6em 1.1em; min-height: 42px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--green-900); color: #cfe0cf; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--yellow); }
.topbar .icon { color: var(--yellow); width: 1em; height: 1em; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(20 30 22 / .08); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { display: block; width: 50px; height: 50px; color: var(--ink); }
.brand-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 650; font-size: 1.42rem; color: var(--green-600); letter-spacing: -.01em; }
.brand-dash { color: var(--green-600); }
.brand-sub { font-size: .76rem; color: var(--muted); letter-spacing: .03em; margin-top: 4px; }
.brand-light .brand-mark { color: #e8efe8; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: #a9c1aa; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3em; font: 600 1rem/1 var(--font-head); color: var(--ink);
  text-decoration: none; padding: .8em .85em; border-radius: var(--radius); background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--green-700); background: var(--green-50); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--green-700); }
.nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .35em; height: 3px; background: var(--yellow); border-radius: 2px;
}
.chev { width: 1em; height: 1em; transition: transform .2s; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-item-cta { margin-left: 10px; }
.nav-item-cta .btn[aria-current="page"] { outline: 2px solid var(--ink); }

.sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 290px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-menu a { display: block; padding: 10px 14px 10px 32px; border-radius: 8px; text-decoration: none; color: var(--ink); position: relative; }
.sub-menu a::before { content: ""; position: absolute; left: 12px; top: 17px; width: 9px; height: 9px; background: var(--stone-200); transform: rotate(var(--tilt)); transition: background .2s; }
.sub-menu a:hover { background: var(--stone-50); }
.sub-menu a:hover::before, .sub-menu a[aria-current="page"]::before { background: var(--yellow); outline: 1px solid var(--ink); }
.sub-menu strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.sub-menu span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.35; }

.nav-toggle { display: none; }
.nav-mobile-contact { display: none; }

@media (max-width: 1060px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.22rem; }
  .brand-sub { font-size: .7rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0;
    border-radius: var(--radius); padding: 10px 14px; font: 600 .95rem/1 var(--font-head); cursor: pointer; min-height: 44px;
  }
  .nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
  .nav-toggle-bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 32px; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.15rem; border-radius: 0; }
  .nav-link:hover, .nav-item.is-open > .nav-link { background: none; }
  .nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after { left: 4px; right: auto; width: 28px; bottom: 10px; }
  .sub-menu {
    position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 12px; border-radius: 0;
    opacity: 1; visibility: visible; display: none; background: transparent;
  }
  .sub-menu::before { display: none; }
  .nav-item.is-open > .sub-menu { display: block; transform: none; }
  .sub-menu a { padding: 10px 8px 10px 30px; }
  .nav-item-cta { margin: 20px 0 0; border: 0; }
  .nav-item-cta .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
  .nav-mobile-contact { display: grid; gap: 10px; margin-top: 24px; }
  .nav-mobile-contact a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--stone-50); text-decoration: none; color: var(--ink); font-weight: 600; }
  .nav-mobile-contact .icon { color: var(--green-700); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .nav-toggle-label { display: none; }
  .brand-sub { display: none; }
}

/* ---------- Fliesen-Motiv ---------- */
.tiles-deco {
  position: absolute; pointer-events: none; width: 420px; height: 420px; opacity: .95;
  background:
    linear-gradient(var(--line-c, rgb(255 255 255 / .55)) 0 0) 0 0 / 100% 2px,
    transparent;
}
.grid-lines {
  --c: rgb(27 31 28 / .07);
  background-image:
    linear-gradient(var(--c) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--c) 1.5px, transparent 1.5px);
  background-size: 64px 64px;
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--green-950); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 28 15 / .88) 0%, rgb(10 28 15 / .62) 45%, rgb(10 28 15 / .15) 100%),
    linear-gradient(0deg, rgb(10 28 15 / .55), transparent 40%);
}
.hero-inner { position: relative; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-block: 96px 120px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: #e2ebe2; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-tiles { position: absolute; right: -60px; top: 50%; width: min(46vw, 560px); transform: translateY(-50%); z-index: -1; opacity: .9; }
.hero-tiles svg { width: 100%; height: auto; overflow: visible; }

.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 650; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green-700); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .98rem; line-height: 1.35; display: block; margin-top: 6px; }
.stat::before { content: ""; position: absolute; top: 18px; right: 18px; width: 12px; height: 12px; background: var(--yellow); transform: rotate(var(--tilt)); }
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Unterseiten-Hero */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--green-900); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(12 34 18 / .92) 0%, rgb(12 34 18 / .7) 55%, rgb(12 34 18 / .35) 100%); }
.page-hero-inner { padding-block: clamp(64px, 10vw, 120px) clamp(48px, 7vw, 88px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #dfe9df; max-width: 60ch; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; padding: 0; margin: 0 0 18px; font-size: .92rem; color: #b8cdb9; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; opacity: .6; }
.page-hero-tiles { position: absolute; right: -40px; bottom: -80px; width: 340px; z-index: -1; opacity: .85; }
@media (max-width: 700px) { .page-hero-tiles { width: 220px; right: -70px; bottom: -60px; opacity: .5; } }

/* ---------- Layout-Bausteine ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-reverse > :first-child { order: 0; } }

.media-stack { position: relative; padding: 0 0 48px 48px; }
.media-stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-stack .media-small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid #fff; }
.media-stack::before { content: ""; position: absolute; right: -18px; top: -18px; width: 110px; height: 110px; background: var(--yellow); transform: rotate(var(--tilt)); z-index: -1; }
.media-stack { isolation: isolate; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: .42em; background: var(--yellow);
  outline: 1.5px solid var(--ink); transform: rotate(var(--tilt));
}
.section-green .check-list li::before { outline-color: transparent; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.value { background: var(--green-50); border-radius: var(--radius); padding: 18px; font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
.value small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); margin-top: 4px; font-size: .92rem; }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards-2, .cards-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; position: relative;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--stone-100); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .link-arrow { margin-top: auto; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-tag { position: absolute; left: 14px; top: 14px; background: var(--yellow); color: var(--ink); font: 600 .8rem/1 var(--font-head); padding: 7px 10px; border-radius: 4px; letter-spacing: .02em; }

/* Leistungs-Kacheln (Startseite) */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .service-grid { grid-template-columns: 1fr; } }
.service {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end;
  color: #fff; text-decoration: none; isolation: isolate; background: var(--green-900);
}
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 28 15 / .9) 5%, rgb(10 28 15 / .15) 70%); transition: background .3s; }
.service:hover img { transform: scale(1.06); }
.service:hover { color: #fff; }
.service-body { padding: 22px; width: 100%; }
.service h3 { color: #fff; margin: 0 0 4px; }
.service p { margin: 0; color: #d3e0d3; font-size: .98rem; line-height: 1.45; }
.service-num { position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; display: grid; place-items: center; font: 650 .95rem/1 var(--font-head); color: var(--ink); }
.service-num::before { content: ""; position: absolute; inset: 4px; background: var(--yellow); transform: rotate(var(--tilt)); z-index: -1; }

/* Auszeichnungen / Feature */
.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-900); color: #e3ece3;
  box-shadow: var(--shadow);
}
.feature-media { position: relative; min-height: 340px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.feature-body h2, .feature-body h3 { color: #fff; }
.feature-credit { position: absolute; right: 10px; bottom: 8px; font-size: .75rem; color: #fff; background: rgb(0 0 0 / .45); padding: 2px 8px; border-radius: 3px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature-media { min-height: 260px; } }

/* Video-Karten */
.video-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: #000; color: #fff; text-decoration: none; isolation: isolate; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.video-card:hover img { opacity: .65; transform: scale(1.04); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .75), transparent 60%); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; z-index: 2; box-shadow: 0 10px 30px rgb(0 0 0 / .35); transition: transform .25s; }
.video-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-card:hover .video-play { transform: translate(-50%, -60%) scale(1.08); }
.video-meta { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; }
.video-meta strong { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25; }
.video-meta span { font-size: .88rem; color: #d8d8d8; }
.video-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* Karriere-Band */
.team-band { position: relative; isolation: isolate; overflow: hidden; background: var(--green-700); color: #fff; }
.team-band .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.team-band h2 { color: #fff; }
.team-band p { color: #e6f0e6; }
.team-band-media { align-self: end; }
.team-band-media img { max-height: 440px; width: auto; margin-inline: auto; }
.hashtag { font-family: var(--font-head); font-weight: 700; color: var(--yellow); }
.team-band .grid-lines { position: absolute; inset: 0; z-index: -1; --c: rgb(255 255 255 / .08); transform: rotate(var(--tilt)) scale(1.6); }
@media (max-width: 820px) { .team-band .container { grid-template-columns: 1fr; } .team-band-media img { max-height: 320px; } }

/* CTA-Band */
.cta-band { background: var(--ink); color: #d9ddda; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; z-index: -1;
  background:
    linear-gradient(var(--yellow) 0 0) 0 0 / 50% 50% no-repeat,
    linear-gradient(var(--yellow) 0 0) 100% 100% / 50% 50% no-repeat;
  transform: rotate(var(--tilt)); opacity: .14;
}
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: clamp(48px, 7vw, 80px); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
@media (max-width: 820px) { .cta-band-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b9ccba; position: relative; overflow: hidden; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; padding-block: 64px 40px; }
.footer-brand p { margin: 18px 0; max-width: 42ch; }
.footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); margin-bottom: 16px; }
.footer-contact, .footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .icon { margin-top: .25em; color: var(--yellow); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .08); }
.social a:hover { background: var(--yellow); color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px 28px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .9rem; }
.footer-legal { display: flex; gap: 20px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* ---------- Galerie & Lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--stone-100); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--yellow); transition: box-shadow .2s; }
.gallery a:hover::after, .gallery a:focus-visible::after { box-shadow: inset 0 0 0 4px var(--yellow); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; } }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgb(8 14 10 / .94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e5e5e5; margin-top: 12px; text-align: center; font-size: .98rem; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 64px 10px 90px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; } .lightbox-prev { left: calc(50% - 60px); } .lightbox-next { right: calc(50% - 60px); } }

/* ---------- Über uns ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 40px; padding-bottom: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 82px; top: 8px; width: 14px; height: 14px; background: var(--yellow); outline: 2px solid var(--ink); transform: rotate(var(--tilt)); }
.timeline time { font-family: var(--font-head); font-weight: 650; font-size: 1.25rem; color: var(--green-700); text-align: right; line-height: 1.3; }
.timeline h3 { margin-bottom: .25em; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 34px; }
  .timeline li::before { left: 0; }
  .timeline time { text-align: left; }
}

.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .leaders { grid-template-columns: 1fr; max-width: 560px; } }
.leader { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.leader-photo { aspect-ratio: 4/4.2; overflow: hidden; background: var(--stone-100); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.leader-body { padding: 22px; }
.leader-role { color: var(--green-700); font-weight: 600; margin-bottom: 12px; display: block; }
.leader dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .96rem; }
.leader dt { font-family: var(--font-head); font-weight: 600; color: var(--ink); white-space: nowrap; }
.leader dd { margin: 0; color: var(--ink-2); }
.leader .check-list { font-size: .95rem; margin-top: 16px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.member { text-align: center; }
.member-photo { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone-100); margin-bottom: 10px; position: relative; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s; }
.member:hover .member-photo img { transform: scale(1.04); }
.member-photo.placeholder { display: grid; place-items: center; background: var(--green-50); }
.member-photo.placeholder span { font: 650 2.2rem/1 var(--font-head); color: var(--green-700); position: relative; }
.member-photo.placeholder::before { content: ""; position: absolute; width: 46%; height: 46%; background: var(--yellow); transform: rotate(var(--tilt)); opacity: .55; }
.member strong { display: block; font-family: var(--font-head); font-weight: 600; }
.member small { color: var(--muted); font-size: .92rem; }

/* ---------- Leistungen ---------- */
.service-rows { display: grid; gap: clamp(48px, 7vw, 88px); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { position: relative; }
.service-row-media img { border-radius: var(--radius-lg); aspect-ratio: 3/2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.service-row-media .service-num { top: -16px; left: -16px; width: 64px; height: 64px; font-size: 1.3rem; }
.service-row-media .service-num::before { inset: 6px; outline: 2px solid var(--ink); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .service-row-media { order: 0; } .service-row-media .service-num { left: 10px; top: -18px; } }

.materials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.materials li { background: var(--stone-100); padding: 6px 12px; border-radius: 99px; font-size: .95rem; }

.partners { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.partner { font: 650 1.15rem/1 var(--font-head); color: var(--ink-2); padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- Referenzen ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  font: 600 .98rem/1 var(--font-head); padding: 12px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .count { font-size: .8rem; background: var(--stone-100); color: var(--ink); padding: 3px 7px; border-radius: 99px; }
.tab[aria-selected="true"] .count { background: var(--yellow); }
.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { display: flex; align-items: center; gap: 12px; }
.ref-list { list-style: none; padding: 0; margin: 0; columns: 3 240px; column-gap: 32px; }
.ref-list li { break-inside: avoid; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--stone-200); position: relative; line-height: 1.4; }
.ref-list li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 9px; height: 9px; background: var(--yellow); outline: 1px solid var(--ink); transform: rotate(var(--tilt)); }
.no-js .tab-panel[hidden] { display: block; margin-bottom: 20px; }

/* ---------- Presse ---------- */
.press-list { display: grid; gap: 22px; }
.press {
  display: grid; grid-template-columns: 280px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .25s;
}
.press:hover { box-shadow: var(--shadow); }
.press-media { background: var(--stone-100); position: relative; min-height: 200px; }
.press-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.press-body { padding: 24px 28px; }
.press-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.press-meta .source { color: var(--green-700); font-weight: 600; }
@media (max-width: 700px) { .press { grid-template-columns: 1fr; } .press-media { aspect-ratio: 16/9; min-height: 0; } }

/* ---------- Ideenreiches ---------- */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .downloads { grid-template-columns: 1fr; } }
.download { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.download:hover { box-shadow: var(--shadow); border-color: var(--green-600); color: var(--ink); }
.download img { border-radius: 6px; aspect-ratio: 1.41; object-fit: cover; }
.download strong { display: block; font-family: var(--font-head); line-height: 1.3; }
.download span { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 600; font-size: .95rem; margin-top: 6px; }
.story + .story { margin-top: clamp(48px, 7vw, 80px); }
.story-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 24px; }
@media (max-width: 820px) { .story-head { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Karriere ---------- */
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .path-cards { grid-template-columns: 1fr; } }
.path { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.path-dark { background: var(--green-900); color: #dfe9df; border-color: transparent; }
.path-dark h3 { color: #fff; }
.path .btn { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }
.fact-box { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); }
.fact-box h3 { display: flex; align-items: center; gap: 10px; }
.fact-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fact-table th, .fact-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--stone-200); }
.fact-table th { font-family: var(--font-head); font-weight: 600; width: 34%; padding-right: 16px; color: var(--green-700); }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay div { background: var(--green-50); border-radius: var(--radius); padding: 12px; text-align: center; }
.pay strong { display: block; font: 650 1.25rem/1.1 var(--font-head); color: var(--green-700); }
.pay span { font-size: .85rem; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius-lg); padding: 28px 24px 24px; border: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(step); position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; display: grid; place-items: center; font: 650 1.1rem/1 var(--font-head); color: var(--ink); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: -12px; left: 28px; width: 28px; height: 28px; background: var(--yellow); outline: 2px solid var(--ink); transform: rotate(var(--tilt)); }
.steps li p { margin-bottom: 14px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; font-size: .98rem; }
.field .req { color: #b3261e; }
.field .opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--stone-50); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; min-height: 50px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231b1f1c' stroke-width='2.4' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b6aa; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px rgb(46 139 61 / .15); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #b3261e; background: #fff7f6; }
.field-error { color: #b3261e; font-size: .9rem; margin-top: 6px; display: none; }
.field.has-error .field-error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 6px; }
.form-hint { font-size: .9rem; color: var(--muted); margin: 0; }
.form-status { border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; display: none; gap: 12px; align-items: flex-start; }
.form-status.is-visible { display: flex; }
.form-status.success { background: var(--green-50); border: 1.5px solid var(--green-600); color: var(--green-900); }
.form-status.error { background: #fff4f2; border: 1.5px solid #b3261e; color: #7a1a14; }
.form-status .icon { margin-top: 3px; }
.form-status p { margin: 0; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgb(0 0 0 / .2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside { display: grid; gap: 16px; }
.info-card { background: var(--green-900); color: #dfe9df; border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.info-card h2, .info-card h3 { color: #fff; }
.info-card a { color: #fff; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; }
.info-list .icon { color: var(--yellow); margin-top: .3em; }
.info-list strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--stone-50); }
.map-card-visual { aspect-ratio: 16/9; position: relative; background: var(--green-50); overflow: hidden; }
.map-card-visual .grid-lines { position: absolute; inset: -40%; transform: rotate(var(--tilt)); --c: rgb(31 107 46 / .16); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -70%); width: 54px; height: 54px; color: var(--green-700); }
.map-pin svg { width: 100%; height: 100%; }
.map-card-body { padding: 18px 20px 20px; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal address { font-style: normal; }
.note { background: var(--yellow-100); border-left: 4px solid var(--yellow-600); padding: 14px 18px; border-radius: 4px; }

/* ---------- Animationen ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .cta-band, .site-footer .social, .lightbox { display: none !important; }
  .hero, .page-hero { color: #000; background: none; }
}

/* Feinschliff */
.card-media-logo { aspect-ratio: auto; height: 170px; background: #fff; }
.card-media-logo img { object-fit: contain; padding: 20px; }
.team-band-media { align-self: center; padding-block: 48px; }
.team-band-media img { border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.hero-tiles { opacity: .75; }
/* backdrop-filter würde auf dem Handy das fixierte Menü im Header einsperren */
@media (max-width: 1060px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .hero-tiles { width: 240px; right: -90px; top: auto; bottom: 90px; transform: none; opacity: .45; }
}
/* Lange deutsche Komposita (z. B. „Betonwerksteinverlegearbeiten“) sauber umbrechen */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.split > *, .service-row > *, .contact-layout > *, .feature > * { min-width: 0; }
@media (max-width: 900px) { .media-stack::before { right: 0; top: -18px; width: 80px; height: 80px; } }
html, body { overflow-x: clip; }

/* Große Überschriften nicht automatisch trennen */
h1, .hero h1 { hyphens: manual; -webkit-hyphens: manual; }
@media (min-width: 600px) { h2 { hyphens: manual; -webkit-hyphens: manual; } }
