/* ==========================================================================
   MARS BAU GmbH – Stylesheet
   CI: Schwarz #010101 · Blau #336fb3 · Open Sans (Text) · Bahnschrift/Barlow (Headlines)
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-var.woff2") format("woff2-variations"),
       url("../fonts/open-sans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #010101;
  --ink: #0b0e13;
  --ink-2: #131821;
  --ink-3: #1c2330;
  --blue: #336fb3;
  --blue-600: #2a5e99;
  --blue-700: #224d7e;
  --blue-300: #6f9ad0;
  --blue-50: #eef3fa;
  --text: #2b313b;
  --muted: #5d6675;
  --muted-light: #a5adba;
  --line: #e2e7ee;
  --bg-soft: #f4f6f9;
  --white: #fff;

  --font-head: "Bahnschrift", "Barlow", "DIN Alternate", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(1, 1, 1, .06), 0 2px 8px rgba(1, 1, 1, .04);
  --shadow: 0 10px 30px -10px rgba(11, 14, 19, .18), 0 4px 10px -4px rgba(11, 14, 19, .08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 14, 19, .35);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.12; color: var(--black); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.sprite { display: none; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.text-blue { color: var(--blue); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: var(--white); --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; min-height: 48px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd); border-radius: var(--radius);
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn--primary:hover { --btn-bg: var(--blue-600); box-shadow: 0 10px 24px -10px rgba(51, 111, 179, .8); }
.btn--dark { --btn-bg: var(--black); }
.btn--dark:hover { --btn-bg: var(--blue); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--black); }
.btn--white:hover { --btn-bg: var(--black); --btn-fg: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .45); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--black); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--black); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
  color: var(--blue);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 28px; height: 12px; flex-shrink: 0;
  background: linear-gradient(115deg, transparent 0 30%, currentColor 30% 55%, transparent 55% 62%, currentColor 62% 87%, transparent 87%);
}
.eyebrow--light { color: var(--blue-300); }
.eyebrow--center { justify-content: center; }

.section { padding-block: var(--section); position: relative; }
.section__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.15rem); margin-bottom: 20px; }
.section__intro { font-size: 1.075rem; color: var(--muted); max-width: 640px; }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { text-align: center; }
.section__head--center .section__intro { margin-inline: auto; }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section__head--split .section__title { margin-bottom: 0; }
.lead { font-size: 1.2rem; color: var(--black); font-weight: 500; }

/* ---------- Topbar ---------- */
.topbar { background: var(--black); color: var(--muted-light); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 24px; }
.topbar__group { display: flex; gap: 28px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 15px; height: 15px; color: var(--blue-300); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(1, 1, 1, .25); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 32px; }
.header__logo img { width: clamp(210px, 22vw, 290px); height: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; }
.nav__link {
  position: relative; padding: 8px 0;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .05em; text-transform: uppercase; color: var(--black);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--blue); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { padding: .8em 1.3em; min-height: 44px; }

.burger { display: none; width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--black); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Diagonal-Streifen (Logo-Motiv) ---------- */
.hero__stripes, .cta__stripes, .footer__stripes { position: absolute; pointer-events: none; display: flex; }
.hero__stripes span, .cta__stripes span, .footer__stripes span { display: block; height: 100%; clip-path: polygon(0 0, 42% 0, 100% 100%, 58% 100%); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100vh - var(--header-h) - 42px), 820px);
  display: flex; align-items: center;
  background: var(--ink); color: var(--white);
  padding-block: clamp(80px, 12vw, 140px) clamp(150px, 16vw, 210px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: heroZoom 18s var(--ease) both; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 1, 1, .94) 0%, rgba(1, 1, 1, .82) 38%, rgba(1, 1, 1, .45) 70%, rgba(1, 1, 1, .25) 100%),
    linear-gradient(0deg, rgba(1, 1, 1, .6) 0%, transparent 40%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__stripes { right: -60px; bottom: 0; height: 62%; gap: 0; z-index: -1; opacity: .9; }
.hero__stripes span { width: 260px; background: var(--blue); opacity: .85; }
.hero__stripes span + span { margin-left: -90px; opacity: .45; }
.hero__inner { position: relative; }
.hero__content { max-width: 760px; }
.hero__title { color: var(--white); font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 26px; }
.hero__title span { color: var(--blue-300); }
.hero__lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 580px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0; }
.hero__trust li { padding: 4px 32px; border-left: 1px solid rgba(255, 255, 255, .2); }
.hero__trust li:first-child { padding-left: 0; border-left: 0; }
.hero__trust strong { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; color: var(--white); }
.hero__trust span { font-size: .85rem; color: rgba(255, 255, 255, .65); text-transform: uppercase; letter-spacing: .08em; }
.icon--star { width: .8em; height: .8em; fill: #f5b941; stroke: #f5b941; }

.hero__content > * { animation: fadeUp .9s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__content > *:nth-child(5) { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Highlights ---------- */
.highlights { position: relative; z-index: 2; margin-top: clamp(-120px, -10vw, -80px); }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); overflow: hidden; }
.highlight { position: relative; padding: clamp(28px, 3vw, 44px); border-right: 1px solid var(--line); transition: background-color .3s; }
.highlight:last-child { border-right: 0; }
.highlight::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--blue); transition: width .45s var(--ease); }
.highlight:hover::before { width: 100%; }
.highlight__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue); }
.highlight__icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.highlight__title { font-size: 1.5rem; margin-bottom: 12px; }
.highlight p { color: var(--muted); margin-bottom: 20px; }
.highlight--accent { background: var(--black); color: rgba(255, 255, 255, .75); }
.highlight--accent .highlight__title { color: var(--white); }
.highlight--accent p { color: rgba(255, 255, 255, .7); }
.highlight--accent .highlight__icon { background: var(--blue); color: var(--white); }
.highlight--accent .link-arrow { color: var(--blue-300); }

/* ---------- Über uns ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.about__media { position: relative; padding: 0 12% 18% 0; }
.about__img { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 4 / 5; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 58%; aspect-ratio: 4 / 3; border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; left: -24px; bottom: 30%;
  display: flex; align-items: center; gap: 14px; padding: 20px 26px;
  background: var(--blue); color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__badge strong { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; }
.about__badge span { font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; line-height: 1.25; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 40px; }
.stat { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.stat:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.stat__icon { display: block; color: var(--blue); margin-bottom: 10px; }
.stat__icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.stat__value { display: block; font-family: var(--font-head); font-size: 2.3rem; line-height: 1.05; color: var(--black); }
.stat__label { display: block; margin-top: 6px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.stat__note { display: block; margin-top: 6px; font-size: .85rem; line-height: 1.5; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(64px, 8vw, 104px); }
.value { position: relative; padding: 36px 32px; background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; }
.value::after {
  content: ""; position: absolute; right: -20px; top: -20px; width: 110px; height: 80px; background: var(--blue); opacity: .07;
  clip-path: polygon(0 0, 42% 0, 100% 100%, 58% 100%);
}
.value__label { display: inline-block; margin-bottom: 14px; padding: 4px 10px; font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: var(--black); border-radius: 2px; }
.value h3 { font-size: 1.4rem; margin-bottom: 12px; }
.value p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--blue); color: rgba(255, 255, 255, .88); padding-block: clamp(56px, 7vw, 84px); }
.cta__stripes { right: 8%; top: 0; height: 100%; }
.cta__stripes span { width: 220px; background: rgba(255, 255, 255, .08); }
.cta__stripes span + span { margin-left: -70px; background: rgba(1, 1, 1, .12); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta__title { color: var(--white); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 12px; }
.cta p { max-width: 640px; font-size: 1.05rem; }

/* ---------- Leistungen ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 40px 34px 34px;
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__num { position: absolute; right: 28px; top: 22px; font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--bg-soft); transition: color .35s; }
.service:hover .service__num { color: var(--blue-50); }
.service__icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px; border-radius: var(--radius); background: var(--black); color: var(--white); transition: background-color .3s; }
.service:hover .service__icon { background: var(--blue); }
.service__icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.service h3 { font-size: 1.45rem; margin-bottom: 14px; }
.service p { color: var(--muted); flex: 1; margin-bottom: 22px; }
.service--featured { background: var(--black); border-color: var(--black); color: rgba(255, 255, 255, .72); }
.service--featured h3 { color: var(--white); }
.service--featured p { color: rgba(255, 255, 255, .7); }
.service--featured .service__icon { background: var(--blue); }
.service--featured .service__num { color: rgba(255, 255, 255, .07); }
.service--featured:hover .service__num { color: rgba(51, 111, 179, .35); }
.service--featured .link-arrow { color: var(--blue-300); }

/* ---------- Brandschutz ---------- */
.fire { background: var(--ink); color: rgba(255, 255, 255, .75); overflow: hidden; }
.fire .section__title { color: var(--white); }
.fire__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.fire__media { position: relative; }
.fire__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); }
.fire__media::before {
  content: ""; position: absolute; left: -24px; top: -24px; width: 45%; height: 45%; z-index: -0;
  border-left: 4px solid var(--blue); border-top: 4px solid var(--blue); border-radius: var(--radius-lg) 0 0 0;
}
.fire__tag {
  position: absolute; right: -16px; bottom: 32px; display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; background: var(--blue); color: var(--white); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--shadow-lg);
}
.checklist { display: grid; gap: 14px; margin: 30px 0 38px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, .88); }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(51, 111, 179, .22); color: var(--blue-300); stroke-width: 3; margin-top: 1px; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 44px; border-top: 2px dashed var(--line); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step__num {
  position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 28px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--white);
  background: var(--black); border-radius: 50%; box-shadow: 0 0 0 10px var(--white);
  transition: background-color .3s, transform .35s var(--ease);
}
.step:hover .step__num { background: var(--blue); transform: scale(1.06); }
.step h3 { font-size: 1.55rem; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 320px; margin-inline: auto; }

/* ---------- Vorteile ---------- */
.benefits { background: var(--bg-soft); }
.benefits__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.benefits__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.benefits__intro p { color: var(--muted); margin-bottom: 32px; font-size: 1.05rem; }
.benefits__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.benefit { padding: 34px 30px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.benefit:nth-child(even) { transform: translateY(40px); }
.benefit:hover { box-shadow: var(--shadow); }
.benefit__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.benefit__icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.benefit h3 { font-size: 1.3rem; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: .96rem; }

/* ---------- Referenzen ---------- */
.references { background: var(--ink); color: rgba(255, 255, 255, .75); }
.references .section__title { color: var(--white); }
.references .section__intro { color: rgba(255, 255, 255, .65); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-3); cursor: zoom-in; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1, 1, 1, .85) 0%, rgba(1, 1, 1, 0) 55%); transition: opacity .4s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__caption { position: absolute; left: 22px; right: 60px; bottom: 18px; z-index: 1; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--white); line-height: 1.25; }
.gallery__caption small { display: block; margin-bottom: 4px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); }
.gallery__zoom { position: absolute; right: 18px; bottom: 18px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); transform: scale(.6); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.gallery__zoom .icon { width: 18px; height: 18px; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { transform: scale(1); opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 60px 80px; background: rgba(1, 1, 1, .94); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { margin-top: 16px; color: rgba(255, 255, 255, .8); font-family: var(--font-head); font-size: 1.1rem; letter-spacing: .02em; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--white); cursor: pointer; transition: background-color .2s; }
.lightbox__btn:hover { background: var(--blue); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%) scaleX(-1); }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s, box-shadow .3s; }
.info-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.info-card__icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius); background: var(--blue); color: var(--white); }
.info-card__icon .icon { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.info-card p { color: var(--muted); }
.info-card a { color: var(--black); font-weight: 600; transition: color .2s; }
.info-card a:hover { color: var(--blue); }
.info-card__list { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; margin: 0; color: var(--muted); }
.info-card__list dt { font-weight: 600; color: var(--text); }
.info-card__list dd { margin: 0; }

.contact__form-wrap { padding: clamp(28px, 4vw, 48px); background: var(--bg-soft); border-radius: var(--radius-lg); border-top: 4px solid var(--blue); }
.contact__form-title { font-size: 1.75rem; margin-bottom: 10px; }
.contact__form-intro { color: var(--muted); margin-bottom: 28px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--black); }
.field label span { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; min-height: 50px;
  background: var(--white); border: 1px solid #d3dae4; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23336fb3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath 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:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(51, 111, 179, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c53030; box-shadow: 0 0 0 4px rgba(197, 48, 48, .1); }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.checkbox a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.checkbox.is-invalid { color: #c53030; }
.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form__status { display: none; padding: 14px 18px; border-radius: var(--radius); font-weight: 500; }
.form__status.is-success { display: block; background: #e8f5ee; color: #1e6b45; border-left: 4px solid #2f9e66; }
.form__status.is-error { display: block; background: #fdeeee; color: #9b2c2c; border-left: 4px solid #c53030; }

.map { margin-top: 32px; height: 420px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); position: relative; }
.map::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; }
.map__consent { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.map__icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 14px; stroke-width: 1.6; }
.map__title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--black); margin-bottom: 8px; }
.map__text { max-width: 520px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.map__text a { color: var(--blue); text-decoration: underline; }
.map__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--black); color: var(--muted-light); padding-top: clamp(64px, 8vw, 96px); font-size: .95rem; }
.footer__stripes { right: -40px; top: 0; height: 100%; opacity: .5; }
.footer__stripes span { width: 200px; background: rgba(51, 111, 179, .12); }
.footer__stripes span + span { margin-left: -70px; background: rgba(51, 111, 179, .06); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer__brand img { width: 260px; margin-bottom: 22px; }
.footer__brand p { max-width: 380px; }
.footer h3 { color: var(--white); font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding-block: clamp(64px, 9vw, 110px); }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); }
.page-hero .hero__stripes { height: 100%; }
.breadcrumb { display: flex; gap: 10px; margin-top: 14px; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.breadcrumb a:hover { color: var(--white); }
.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal__content { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin: 48px 0 14px; padding-top: 8px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal address { font-style: normal; }
.legal .todo { background: #fff4d6; padding: 1px 6px; border-radius: 3px; color: #7a5300; font-weight: 600; }

/* ---------- Reveal-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .benefit.reveal.is-visible:nth-child(even) { transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__list { gap: 22px; }
  .nav { gap: 24px; }
  .topbar__hours span:last-child { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  /* backdrop-filter würde das fixierte Menü an den Header binden */
  .header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter) 40px;
    background: var(--white); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 18px 0; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 28px; min-height: 56px; }

  .section__head--split { grid-template-columns: 1fr; }
  .about__grid, .fire__grid, .benefits__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 620px; }
  .benefits__intro { position: static; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .fire__media { max-width: 680px; }
}

@media (max-width: 860px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight { border-right: 0; border-bottom: 1px solid var(--line); }
  .highlight--accent { border-bottom-color: var(--black); }
  .values { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { left: 44px; right: auto; top: 44px; bottom: 44px; border-top: 0; border-left: 2px dashed var(--line); }
  .step { display: grid; grid-template-columns: 88px 1fr; column-gap: 28px; text-align: left; padding: 0; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; }
  .step p { margin: 0; max-width: none; }
  .topbar__hours { display: none; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 130px; }
  .hero__stripes { height: 40%; right: -120px; }
  .hero__stripes span { width: 180px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust li { padding: 4px 18px; }
  .hero__trust strong { font-size: 1.3rem; }
  .hero__trust li:last-child { display: none; }
  .stats { grid-template-columns: 1fr; }
  .about__badge { left: 12px; bottom: 26%; padding: 14px 18px; }
  .about__badge strong { font-size: 2.6rem; }
  .services__grid { grid-template-columns: 1fr; }
  .benefits__list { grid-template-columns: 1fr; }
  .benefit:nth-child(even), .js .benefit.reveal.is-visible:nth-child(even) { transform: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__caption { left: 14px; bottom: 12px; font-size: 1rem; }
  .gallery__zoom { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
  .fire__tag { right: 12px; bottom: 16px; font-size: .85rem; }
  .fire__media::before { left: -12px; top: -12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .lightbox { padding: 70px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__next { transform: scaleX(-1); }
  .map { height: 380px; }
  .topbar__group { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .header, .hero__stripes, .cta, .map, .lightbox, .footer__stripes { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
