/* Metallbau Schmidt GmbH – Stylesheet */
:root {
  --ink: #161b22;
  --anthracite: #1b2129;
  --steel-900: #242b35;
  --steel-700: #3b4552;
  --steel-500: #6b7685;
  --steel-300: #b9c1cb;
  --steel-100: #e9edf1;
  --steel-50: #f4f6f8;
  --white: #ffffff;
  --navy: #384b6d;          /* Logofarbe */
  --navy-dark: #2a3a57;
  --spark: #ef7d22;         /* Funkenschlag */
  --spark-dark: #d1650e;
  --text: #2a313b;
  --muted: #5d6774;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-head: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(22,27,34,.06), 0 8px 24px rgba(22,27,34,.08);
  --shadow-lg: 0 24px 60px rgba(22,27,34,.18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--spark-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--spark); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.3em; border-radius: var(--radius); font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; line-height: 1.2; font-family: var(--font); }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn--accent { background: var(--spark); color: #fff; }
.btn--accent:hover { background: var(--spark-dark); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--navy); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--spark-dark); margin-bottom: .9em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ffb36e; }
.eyebrow .dot { display: none; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--anthracite); color: var(--steel-300); font-size: .85rem; }
.topbar__in { display: flex; gap: 28px; justify-content: flex-end; align-items: center; min-height: 38px; }
.topbar a, .topbar span { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar .ico { color: var(--spark); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--steel-100); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(22,27,34,.08); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand img { width: clamp(200px, 22vw, 270px); height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 10px 12px; text-decoration: none; color: var(--steel-700); font-weight: 600; font-size: .95rem; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--spark); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { padding: .7em 1.1em; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle .ico-close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 660px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero__bg, .page-hero__bg, .banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg { animation: slowzoom 18s ease-out forwards; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after, .page-hero::after, .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,20,26,.92) 0%, rgba(16,20,26,.72) 45%, rgba(16,20,26,.25) 100%); }
.hero__in { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 104px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 16ch; margin-bottom: .35em; }
.hero h1 span { display: block; font-size: .46em; font-weight: 500; color: var(--steel-300); margin-top: .35em; letter-spacing: 0; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: #e6e9ed; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Facts ---------- */
.facts { position: relative; z-index: 3; margin-top: -64px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); overflow: hidden; padding: 0; }
.fact { padding: 28px 26px; border-right: 1px solid var(--steel-100); display: flex; flex-direction: column; gap: 4px; }
.fact:last-child { border-right: 0; }
.fact__num { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.fact__label { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.facts .wrap { padding: 0; max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 5vw, 68px) 0; }
.facts + .section { padding-top: clamp(36px, 4vw, 56px); }
.section:not(.section--steel):not(.section--dark) + .section:not(.section--steel):not(.section--dark) { padding-top: 0; }
.section--steel + .section--steel { padding-top: 0; }
.section--steel { background: var(--steel-50); }
.section--dark { background: var(--anthracite); color: var(--steel-300); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(20px, 3vw, 32px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__lead { font-size: 1.08rem; color: var(--muted); }
.section--dark .section__lead { color: var(--steel-300); }
.prose p { color: var(--text); }
.intro p { font-size: 1.15rem; line-height: 1.75; color: var(--steel-700); }
.intro { margin-bottom: clamp(20px, 3vw, 32px); }
.section > .narrow.intro { margin-bottom: 0; }
.signature { font-weight: 700; color: var(--navy); font-family: var(--font-head); font-size: 1.15rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
.split--reverse .split__media { order: -1; }
.frame { margin: 0; position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--steel-100); }
.frame::before { content: ""; position: absolute; width: 38%; height: 38%; right: -16px; bottom: -16px; border-right: 4px solid var(--spark); border-bottom: 4px solid var(--spark); border-radius: 0 0 var(--radius-lg) 0; }
.frame--tall img { aspect-ratio: 3 / 4; }
.split__media.frame--tall { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 3px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--spark); color: var(--text); }
.card__ico { width: 40px; height: 40px; color: var(--navy); margin-bottom: 18px; stroke-width: 1.6; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); font-size: .92rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.gallery__item { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--steel-100); position: relative; }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,20,26,.55), transparent 55%); opacity: 0; transition: opacity .3s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery--3 .gallery__item img { aspect-ratio: 3 / 2; }
.gallery--teaser { grid-template-columns: repeat(6, 1fr); }
.gallery--teaser .gallery__item:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
.gallery--teaser .gallery__item:nth-child(2) { grid-column: 4 / 7; grid-row: 1; }
.gallery--teaser .gallery__item:nth-child(3) { grid-column: 4 / 7; grid-row: 2; }
.gallery--teaser .gallery__item:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
.gallery--teaser .gallery__item:nth-child(5) { grid-column: 3 / 5; grid-row: 3; }
.gallery--teaser .gallery__item:nth-child(6) { grid-column: 5 / 7; grid-row: 3; }
.gallery--teaser .gallery__item img { aspect-ratio: auto; position: absolute; inset: 0; }
.gallery--teaser .gallery__item { min-height: 200px; }
.gallery--teaser .gallery__item:nth-child(1) { min-height: 420px; }
.gallery--masonry { display: block; columns: 3 280px; column-gap: 14px; }
.gallery--masonry .gallery__item { margin-bottom: 14px; break-inside: avoid; }
.gallery--masonry .gallery__item img { aspect-ratio: auto; height: auto; min-height: 160px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,15,20,.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; border-radius: var(--radius); box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--spark); }
.lightbox button .ico { width: 26px; height: 26px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--steel-300); font-size: .9rem; letter-spacing: .1em; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; }
.page-hero__in { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 40px; }
.page-hero h1 { color: #fff; max-width: 20ch; margin: 0; }
.page-hero__lead { margin-top: 1em; color: var(--steel-300); max-width: 60ch; }
.page-hero--slider { min-height: 400px; }
.crumbs { display: flex; gap: .6em; font-size: .85rem; color: var(--steel-300); margin-bottom: 18px; }
.crumbs a { color: #fff; text-decoration: none; opacity: .85; }
.crumbs a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.slider { position: absolute; inset: 0; }
.slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, transform 7s ease-out; transform: scale(1.06); }
.slider__img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--steel-700), var(--spark)); }
.timeline li { position: relative; padding: 52px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 15px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--anthracite); border: 3px solid var(--spark); }
.timeline__year { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.timeline__text { font-size: .93rem; line-height: 1.5; display: block; }

/* ---------- Statement ---------- */
.statement { margin: 0; padding: clamp(28px, 5vw, 52px); border-left: 5px solid var(--spark); background: var(--steel-50); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.statement__text { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; color: var(--ink); margin: 0; font-weight: 500; }

/* ---------- Banner ---------- */
.banner { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.banner__in { position: relative; z-index: 2; padding: clamp(48px, 7vw, 84px) var(--gutter); }
.banner h2 { color: #fff; max-width: 18ch; margin-bottom: .8em; }

/* ---------- Unsere Arbeit ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 1.4em; }
.chips li { background: var(--steel-50); border: 1px solid var(--steel-100); border-radius: 999px; padding: .45em 1em; font-size: .92rem; font-weight: 600; color: var(--steel-700); }
.section--steel .chips li { background: #fff; }
.weld { margin-top: 1.4em; padding-top: 1.4em; border-top: 1px solid var(--steel-100); }
.prose .cert, .cert { display: flex; gap: 14px; align-items: flex-start; background: var(--navy); color: #fff; padding: 20px 22px; border-radius: var(--radius-lg); margin: 0; }
.cert .ico { width: 30px; height: 30px; color: #ffb36e; margin-top: 2px; }
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partners li { border: 1px solid var(--steel-700); border-radius: var(--radius-lg); padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; color: #fff; font-weight: 600; font-size: 1.05rem; transition: border-color .25s, background .25s; }
.partners li:hover { border-color: var(--spark); background: var(--steel-900); }
.partners .ico { width: 34px; height: 34px; color: var(--spark); stroke-width: 1.6; }

/* ---------- Mitarbeiter ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.panel { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.panel--wide { grid-column: 1 / -1; }
.panel h2 { font-size: 1.45rem; }
.panel__ico { width: 38px; height: 38px; color: var(--spark); margin-bottom: 16px; stroke-width: 1.6; }
.people { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.people li { background: var(--steel-50); border-radius: var(--radius); padding: 18px 20px; border-left: 3px solid var(--navy); }
.people__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.people__role { font-size: .9rem; color: var(--muted); }
.job { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); border-top: 4px solid var(--spark); }
.job__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.job__actions .btn { justify-content: center; }
.job .chips { margin-bottom: 0; }

/* ---------- Werkstatt ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; background: var(--steel-50); border-radius: var(--radius-lg); padding: 40px 30px 34px; overflow: hidden; }
.feature__num { position: absolute; top: 14px; right: 22px; font-family: var(--font-head); font-size: 4.2rem; font-weight: 700; color: var(--steel-100); line-height: 1; }
.feature__ico { position: relative; width: 42px; height: 42px; color: var(--navy); margin-bottom: 20px; stroke-width: 1.6; }
.feature h2 { position: relative; font-size: 1.4rem; }
.feature p { position: relative; }
.feature--accent { background: var(--anthracite); color: var(--steel-300); }
.feature--accent h2 { color: #fff; }
.feature--accent .feature__num { color: var(--steel-900); }
.feature--accent .feature__ico { color: var(--spark); }
.feature--accent .link-arrow { color: #ffb36e; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 12px; }
.contact-list a, .contact-list div { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--steel-100); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, background .2s; line-height: 1.45; }
.contact-list a:hover { border-color: var(--spark); background: var(--steel-50); color: var(--ink); }
.contact-list .ico { width: 44px; height: 44px; padding: 11px; background: var(--steel-50); border-radius: 50%; color: var(--navy); }
.contact-list small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.contact__form { background: var(--steel-50); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--steel-700); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .8em .95em; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(56,75,109,.18); }
.form textarea { resize: vertical; min-height: 140px; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--spark); }
.form .btn { justify-self: start; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }
.form .is-invalid { border-color: #c0392b; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
.form-msg--ok { background: #e6f4ea; color: #1e6b34; border-left: 4px solid #2e9e4f; }
.form-msg--err { background: #fdecea; color: #8e2a1f; border-left: 4px solid #c0392b; }

.route { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.route__list { display: grid; gap: 12px; align-content: start; }
.route details { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.route summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; gap: 12px; align-items: center; list-style: none; }
.route summary::-webkit-details-marker { display: none; }
.route summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--spark); line-height: 1; }
.route details[open] summary::after { content: "–"; }
.route summary .ico { color: var(--navy); width: 22px; height: 22px; }
.route ol { margin: 0; padding: 0 26px 20px 46px; color: var(--steel-700); font-size: .96rem; }
.route ol li { margin-bottom: .4em; padding-left: 4px; }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; background: var(--steel-900) url("../bilder/hero-funkenschlag.jpg") center / cover; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(22,27,34,.84); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.map__consent { position: relative; z-index: 1; height: 100%; min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--steel-300); gap: 14px; }
.map__consent p { max-width: 42ch; margin: 0; font-size: .93rem; }
.map__consent strong { color: #fff; font-size: 1.1rem; }
.map__consent a { color: #ffb36e; }
.map__ico { width: 44px; height: 44px; color: var(--spark); }

/* ---------- Rechtliches / Links ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.4em; font-size: 1.1rem; }
.legal ul { padding-left: 1.2em; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.link-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 20px 24px; border: 1px solid var(--steel-100); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.link-list a:hover { border-color: var(--spark); background: var(--steel-50); color: var(--ink); }
.link-list strong { font-family: var(--font-head); font-size: 1.15rem; }
.link-list span { color: var(--muted); grid-column: 1; }
.link-list .ico { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--spark); }

/* ---------- CTA & Footer ---------- */
.cta-band { background: var(--navy); color: #dfe5ee; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(239,125,34,.35), transparent 65%); }
.cta-band__in { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer { background: var(--ink); color: var(--steel-300); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb36e; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-top: 44px; padding-bottom: 32px; }
.site-footer__name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.25rem; margin: 0; }
.site-footer__head { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--steel-500); font-weight: 700; margin-bottom: 1.1em; }
.site-footer__list { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer__list li { margin-bottom: .45em; }
.site-footer__badge { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 600; }
.site-footer__badge .ico { color: var(--spark); width: 24px; height: 24px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--steel-900); padding-top: 22px; padding-bottom: 26px; font-size: .86rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--spark); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; z-index: 40; }
.to-top .ico { transform: rotate(-90deg); width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: #fff; background: var(--spark-dark); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav ul a { padding: 10px 8px; font-size: .9rem; }
  .nav { gap: 12px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .timeline li { border-top: 2px solid var(--steel-700); padding-top: 32px; }
  .timeline li::before { top: -9px; }
}
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--steel-100); box-shadow: 0 20px 40px rgba(22,27,34,.12); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--steel-100); }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--spark-dark); }
  .nav__cta { margin-top: 16px; justify-content: center; }
  body.nav-open .nav-toggle .ico-open { display: none; }
  body.nav-open .nav-toggle .ico-close { display: block; }
  .topbar .topbar__addr { display: none; }
  .topbar__in { justify-content: space-between; }
  .split, .contact, .route, .job { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media.frame--tall { position: relative; top: 0; }
  .frame--tall img { aspect-ratio: 4 / 3; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--steel-100); }
  .features, .partners { grid-template-columns: 1fr 1fr; }
  .feature--accent { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__mail span { display: none; }
  .hero { min-height: 620px; }
  .hero__in { padding-top: 56px; padding-bottom: 110px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero::after, .page-hero::after { background: linear-gradient(180deg, rgba(16,20,26,.55) 0%, rgba(16,20,26,.9) 100%); }
  .cards, .team-grid, .features, .partners, .people, .form__row { grid-template-columns: 1fr; }
  .gallery, .gallery--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery--teaser .gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 150px; }
  .gallery--teaser .gallery__item:nth-child(1) { grid-column: 1 / -1; min-height: 240px; }
  .gallery--teaser { grid-template-columns: 1fr 1fr; }
  .gallery--masonry { columns: 2; column-gap: 10px; }
  .gallery--masonry .gallery__item { margin-bottom: 10px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .page-hero { min-height: 300px; }
  .page-hero__in { padding-top: 80px; padding-bottom: 40px; }
  .frame::before { right: -8px; bottom: -8px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; justify-content: center; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__count { bottom: 32px; }
  .contact-list a, .contact-list div { word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .cta-band, .to-top, .map, .contact__form { display: none !important; }
  .hero, .page-hero { min-height: 0; color: #000; background: none; }
  .hero::after, .page-hero::after, .hero__bg, .page-hero__bg, .slider { display: none; }
  .hero h1, .page-hero h1 { color: #000; }
}
