/* ==========================================================================
   IMB Laub – Industrie Metall Bearbeitung
   Ein Stylesheet, Mobile First, keine externen Fonts.
   ========================================================================== */

:root {
  --ink: #15181c;          /* tiefstes Anthrazit */
  --steel: #1f242a;        /* Grundfläche dunkel */
  --steel-2: #2a3037;      /* Karten auf dunkel */
  --line-dark: #39414a;
  --muted-dark: #a3acb6;   /* Text auf dunkel */
  --paper: #f3f4f5;        /* helle Sektion */
  --white: #ffffff;
  --text: #1b1f24;
  --muted: #5b646e;        /* Text auf hell */
  --line: #dde0e4;
  --accent: #ff6b1a;       /* Signal-Orange */
  --accent-strong: #e85a0c;
  --accent-text: #b8480c;  /* Orange als Text auf Weiß (Kontrast AA) */

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 10vw, 7.5rem);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .6em; letter-spacing: -0.02em; font-weight: 800; }
h2, h3, h4 { overflow-wrap: break-word; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--ink); padding: .75rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }

.h-xl { font-size: clamp(2.6rem, 8.5vw, 5.75rem); letter-spacing: -0.035em; }
.h-lg { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -0.03em; }
.h-md { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.lead { font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.dark .lead, .hero .lead, .page-hero .lead { color: var(--muted-dark); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ff7f37; }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--steel-2); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700;
  text-decoration: none; color: var(--accent-text);
}
.dark .link-arrow { color: var(--accent); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--ink); color: var(--muted-dark); font-size: .8125rem; display: none; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar a:hover { color: var(--accent); }
.topbar span + span::before { content: "·"; margin: 0 .6rem; color: var(--line-dark); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); /* bewusst ohne backdrop-filter: der würde das fixierte Mobilmenü einsperren */
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--accent); color: var(--ink); border-radius: 3px;
  font-weight: 900; font-size: .95rem; letter-spacing: -.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-sub { font-size: .625rem; letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; color: var(--muted-dark); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: none; border: 1px solid var(--line-dark); color: var(--white);
  padding: .55rem .8rem; border-radius: var(--radius); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--ink); padding: 1.25rem var(--gutter) 2rem;
  overflow-y: auto; display: none;
}
.nav-open .main-nav { display: block; }
.main-nav ul { list-style: none; }
.main-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
.main-nav a {
  display: block; padding: .95rem 0; text-decoration: none; color: var(--white);
  font-size: 1.2rem; font-weight: 700;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav .sub a { font-size: 1rem; font-weight: 500; padding: .55rem 0 .55rem 1rem; color: var(--muted-dark); }
.main-nav .sub a:hover, .main-nav .sub a[aria-current="page"] { color: var(--accent); }
.main-nav .sub { padding-bottom: .6rem; }
.main-nav .ext { color: var(--accent); }
.nav-cta { margin-top: 1.5rem; }
.main-nav .nav-cta .btn { display: flex; width: 100%; padding: .85rem 1.5rem; color: var(--ink); font-size: 1rem; border-radius: var(--radius); }
.main-nav .nav-cta .btn:hover { color: var(--ink); }

@media (min-width: 1000px) {
  .topbar { display: block; }
  .nav-toggle { display: none; }
  .brand-sub { font-size: .6875rem; letter-spacing: .12em; }
  .main-nav { position: static; display: flex; align-items: center; gap: 1.75rem; padding: 0; background: none; overflow: visible; }
  .main-nav > ul { display: flex; align-items: center; gap: .25rem; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav a { font-size: .9375rem; font-weight: 600; padding: .6rem .85rem; border-radius: var(--radius); }
  .main-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .main-nav .has-sub > a::after { content: ""; display: inline-block; margin-left: .45rem; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
  .main-nav .sub {
    position: absolute; left: 0; top: 100%; min-width: 250px; padding: .5rem;
    background: var(--steel); border: 1px solid var(--line-dark); border-top: 3px solid var(--accent);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .main-nav .sub a { padding: .6rem .8rem; color: var(--white); font-size: .9375rem; }
  .main-nav .sub a:hover { background: var(--steel-2); }
  .nav-cta { margin: 0; }
  .main-nav .nav-cta .btn { width: auto; min-height: 44px; padding: .6rem 1.1rem; font-size: .9375rem; }
}

/* ---------- Hero Startseite ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  background:
    radial-gradient(120% 90% at 80% 100%, #2b2622 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 2px, transparent 2px 64px),   /* Trapezblech-Wand */
    linear-gradient(180deg, #121417 0%, #1c2025 100%);
  min-height: clamp(560px, calc(100svh - var(--header-h)), 900px);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: grayscale(1) contrast(1.1); }
.weld-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 6rem) calc(64px + clamp(3rem, 7vw, 5.5rem)); }
.hero h1 { font-size: clamp(3rem, 11vw, 8.25rem); line-height: .95; letter-spacing: -.045em; margin-bottom: .35em; max-width: 11ch; }
.hero .lead { margin-bottom: 2.25rem; max-width: 34em; }
.hot {
  display: inline-block;
  background: linear-gradient(95deg, #ffffff 0%, #fff0c2 22%, #ffb347 48%, #ff6b1a 72%, #d8430a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,107,26,.35));
}
@media (prefers-reduced-motion: no-preference) {
  .hot { animation: glut 4.5s ease-in-out infinite; }
  @keyframes glut {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(255,107,26,.28)); }
    50% { filter: drop-shadow(0 0 34px rgba(255,120,40,.55)); }
  }
}
@media (max-width: 699px) { .hero .wrap { padding-bottom: calc(44px + 3rem); } }

/* Laufschrift */
.marquee { background: var(--ink); overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding-block: clamp(1rem, 2.5vw, 1.75rem); }
.marquee-track { display: flex; width: max-content; }
.marquee span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3);
}
.marquee span:nth-child(4n+2) { color: var(--accent); -webkit-text-stroke: 0; }
.marquee span::after { content: ""; width: .28em; height: .28em; margin-inline: .55em; background: var(--accent); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: laufen 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes laufen { to { transform: translateX(-50%); } }
}

/* Kennzahlen-Leiste */
.facts { background: var(--ink); color: var(--white); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); }
.facts li { padding: 1.6rem 1rem 1.6rem 0; border-bottom: 1px solid var(--line-dark); }
.facts li:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line-dark); }
.facts li:nth-child(even) { padding-left: 1.25rem; }
.facts strong { display: block; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.facts li > span { color: var(--muted-dark); font-size: .9375rem; }
@media (min-width: 860px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li, .facts li:nth-child(odd), .facts li:nth-child(even) { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 2.25rem 1.5rem; }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
}

/* ---------- Unterseiten-Hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, #16191d 0%, #1f242a 100%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 8vw, 5.5rem) calc(16px + clamp(2.5rem, 6vw, 4.5rem)); }
.page-hero h1 { max-width: 16em; }
.breadcrumb { font-size: .875rem; color: var(--muted-dark); margin-bottom: 1.75rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-dark); }
.breadcrumb a { text-decoration: none; color: var(--muted-dark); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--steel); color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.split { max-width: none; display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
  .section-head.split .lead { margin-bottom: .6em; }
}

/* Leistungs-Karten */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(21,24,28,.1); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-num { font-size: .8125rem; font-weight: 700; color: var(--accent-text); letter-spacing: .1em; margin-bottom: .5rem; }
.card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card .link-arrow { margin-top: auto; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--accent); transition: width .3s; z-index: 1; }
.card:hover::before { width: 100%; }

/* Grid-Kinder dürfen schrumpfen (verhindert horizontales Scrollen) */
.split-2 > *, .cards > *, .boxes > *, .contact-grid > *, .footer-main > *, .hero .wrap > * { min-width: 0; }

/* Zweispaltige Inhaltsblöcke */
.split-2 { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .split-2 { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split-2.media-right > .media { order: 2; }
  .split-2.center { align-items: center; }
}
.media img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

/* Listen mit Strich */
.ticks { list-style: none; display: grid; gap: 0; }
.ticks li {
  position: relative; padding: .8rem 0 .8rem 2rem; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem; width: 14px; height: 3px; background: var(--accent);
}
.dark .ticks li { border-color: var(--line-dark); }
.ticks li small { display: block; color: var(--muted); font-weight: 400; font-size: .9375rem; }
.dark .ticks li small { color: var(--muted-dark); }
@media (min-width: 640px) { .ticks.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* Chips (Materialien) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .9375rem; background: var(--white);
}
.dark .chips li { background: var(--steel-2); border-color: var(--line-dark); color: var(--white); }

/* Info-Kästen */
.boxes { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .boxes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .boxes.three { grid-template-columns: repeat(3, 1fr); } }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.paper .box { border-color: transparent; }
.dark .box { background: var(--steel-2); border-color: var(--line-dark); }
.box h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.box p { color: var(--muted); margin: 0; }
.dark .box p { color: var(--muted-dark); }
.box .big { display: block; font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: .75rem; color: var(--accent-text); }
.dark .box .big { color: var(--accent); }

/* Hervorhebungs-Block (Referenz, Fernwärme) */
.feature {
  display: grid; background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden;
}
.feature-body { padding: clamp(2rem, 5vw, 3.5rem); }
.feature-body p { color: var(--muted-dark); }
.feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.1fr .9fr; } .feature.flip > .feature-media { order: -1; } }
.badge {
  display: inline-block; padding: .35rem .7rem; margin-bottom: 1.1rem;
  background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px;
}

/* Fernwärme-Teaser */
.fw { background: var(--paper); }
.fw .feature { background: #1d2a22; } /* dunkles Grün-Anthrazit: eigenes Unternehmen, erkennbar anders */
.fw .badge { background: #8cc63f; }
.fw .eyebrow { color: #a6d45f; }
.fw .eyebrow::before { background: #8cc63f; }
.fw .btn-primary { background: #8cc63f; }
.fw .btn-primary:hover { background: #9fd456; }
.fw .ticks li { border-color: rgba(255,255,255,.12); }
.fw .ticks li::before { background: #8cc63f; }

/* CTA-Band */
.cta-band { background: var(--accent); color: var(--ink); }
.cta-band .wrap { padding-block: clamp(3rem, 7vw, 5rem); display: grid; gap: 2rem; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.125rem; max-width: 34em; }
.cta-band .btn-ghost { color: var(--ink); }
.cta-band .btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.3fr auto; align-items: center; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-item .label { display: block; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: .4rem; }
.contact-item a, .contact-item .val { font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -.01em; word-break: break-word; }
.contact-item a:hover { color: var(--accent-text); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: var(--accent-text); font-weight: 800; }
.open-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: 1rem; font-size: .9375rem; }
.open-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9aa3ad; }
.open-status.is-open::before { background: #2fa84f; box-shadow: 0 0 0 4px rgba(47,168,79,.18); }
.open-status.is-closed::before { background: #d04a3a; }

.map-box {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--steel);
  height: 420px; color: var(--white);
}
@media (min-width: 900px) { .map-box { height: 100%; min-height: 520px; } }
.map-box 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;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background:
    linear-gradient(0deg, rgba(31,36,42,.92), rgba(31,36,42,.92)),
    repeating-linear-gradient(0deg, transparent 0 39px, #3a414a 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #3a414a 39px 40px);
}
.map-consent h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.map-consent p { color: var(--muted-dark); font-size: .9375rem; max-width: 30em; }
.map-consent p a { color: var(--white); }

.steps { counter-reset: s; list-style: none; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-weight: 800; font-size: .875rem; border-radius: 2px;
}

/* ---------- Rechtstexte ---------- */
.legal { max-width: 48rem; }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.5rem; }
.legal h3 { font-size: 1.125rem; margin-top: 1.75rem; margin-bottom: .4em; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1em; }
.legal li { margin-bottom: .35em; }
.legal a { color: var(--accent-text); word-break: break-word; }
.legal address { font-style: normal; margin-bottom: 1em; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: .9375rem; }
.footer-main { display: grid; gap: 2.5rem; padding-block: 4rem 3rem; }
@media (min-width: 700px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; color: var(--muted-dark); }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .brand { margin-bottom: 1.25rem; }
.footer-contact a { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.4rem; font-size: .8125rem; }

/* ---------- Bewegung ---------- */
.js-anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js-anim .rv.in { opacity: 1; transform: none; }
.js-anim .rv .eyebrow::before { width: 0; transition: width .7s cubic-bezier(.2,.7,.2,1) .25s, box-shadow .7s .25s; }
.js-anim .rv.in .eyebrow::before { width: 28px; box-shadow: 0 0 12px rgba(255,107,26,.8); }

/* Glanz über orange Buttons */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: -2px auto -2px -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 120%; }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(255,107,26,.18), 0 10px 28px rgba(255,107,26,.35); }

/* Karten: Bild-Zoom + heiße Kante */
.card-media { overflow: hidden; }
.card-media img { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.card:hover .card-media img { transform: scale(1.06); filter: saturate(1.15) contrast(1.05); }
.card::before { box-shadow: 0 0 14px rgba(255,107,26,.9); }
.card:hover { box-shadow: 0 18px 40px rgba(21,24,28,.14), 0 0 0 1px var(--ink); }

/* Kennzahlen: heiße Zahl */
.facts strong .num { color: var(--accent); text-shadow: 0 0 24px rgba(255,107,26,.35); }

/* Hilfsklassen */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.stack > * + * { margin-top: 2.5rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .site-header, .topbar, .cta-band, .map-box, .nav-toggle { display: none !important; }
  .page-hero, .hero, .section.dark { background: none !important; color: #000 !important; }
}

/* Metallbau auf imb-laub.de: Kontaktkästen neben der Adresse 2 × 2, drei Karten nebeneinander */
@media (min-width: 900px) { .split-2 .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
