/* Schriften lokal gehostet (Fontsource 5.3.0, OFL) – keine Verbindung zu Google Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/assets/fonts/jetbrains-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/assets/fonts/jetbrains-mono-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/assets/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ============================================================
   Geschwentner moulds & parts — Relaunch Design System
   Hausfarben recycelt: Rot #a81125 / #de4528 / #860003, Grau, Anthrazit
   ============================================================ */

:root {
  --red: #a81125;
  --red-bright: #de4528;
  --red-dark: #860003;
  --ink: #1e1e1e;
  --ink-soft: #313131;
  --grey: #6c6c72;
  --grey-light: #969696;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --bg-dark: #181819;
  --bg-darker: #101011;
  --white: #ffffff;

  --grad-red: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 45%, var(--red-dark) 100%);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-sm: 0 1px 3px rgba(16,16,17,.08), 0 1px 2px rgba(16,16,17,.04);
  --shadow-md: 0 10px 30px rgba(16,16,17,.10);
  --shadow-lg: 0 30px 60px rgba(16,16,17,.16);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 130px);
  --header-top-h: 104px;
  --nav-h: 52px;
  --header-h: 156px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--grey); line-height: 1.6; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #e8e8ea; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b6b6bb; }

.eyebrow {
  font-family: var(--mono);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem; display: inline-block;
}
.section--dark .eyebrow { color: var(--red-bright); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-red); color: #fff; box-shadow: 0 8px 22px rgba(168,17,37,.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168,17,37,.42); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: var(--red); }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }

/* ---------- Header (zweizeilig: Logo-Zeile + rote Navileiste) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--red-dark);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,16,17,.13); }

.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-top-h); }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 74px; width: auto; transition: height .25s ease; }
.site-header.scrolled .nav__logo img { height: 60px; }

.header-top__meta { display: flex; align-items: center; gap: 1.6rem; }
.header-line { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-soft); }
.header-line svg { color: var(--red); flex: none; }
.header-line span { display: flex; flex-direction: column; line-height: 1.25; }
.header-line strong { font-size: .95rem; font-weight: 700; color: var(--ink); }
.header-line small { font-size: .74rem; color: var(--grey); }
.header-line:hover strong { color: var(--red); }
.header-line::after { display: none; }

/* rote Navileiste */
.nav { background: var(--red); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--nav-h); }
.nav__links { display: flex; align-items: stretch; gap: 2.1rem; list-style: none; }
.nav__links > li { display: flex; align-items: center; }
.nav__links > li > a { font-weight: 700; font-size: .97rem; color: #fff; position: relative; display: inline-flex; align-items: center; gap: .32rem; height: var(--nav-h); }
.nav__links > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; width: 0; margin: 0 auto;
  background: #fff; transition: width .25s ease;
}
.nav__links > li > a:hover { color: #fff; }
.nav__links > li > a:hover::after, .nav__links > li > a.active::after { width: 100%; }
.nav__links > li:hover > a { background: rgba(0,0,0,.10); }
.nav__links > li > a .caret { width: 11px; height: 11px; opacity: .85; transition: transform .25s ease; }
.nav__quick { color: #fff; font-weight: 700; font-size: .9rem; font-family: var(--mono); letter-spacing: .02em; opacity: .95; }
.nav__quick:hover { opacity: 1; text-decoration: underline; }
.nav__quick::after { display: none; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Dropdown sub-menu ---------- */
.nav__links .has-dropdown { position: relative; }
.nav__links .has-dropdown:hover > a .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 268px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: .55rem;
  display: grid; gap: .1rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease; z-index: 200;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav__links .has-dropdown:hover .dropdown,
.nav__links .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown a {
  display: flex; flex-direction: column; gap: .1rem; padding: .6rem .85rem;
  border-radius: 11px; font-size: .94rem; font-weight: 600; color: var(--ink-soft);
}
.dropdown a small { font-weight: 500; font-size: .77rem; color: var(--grey); }
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(168,17,37,.07); color: var(--red); }
.dropdown a:hover small { color: var(--red-bright); }
.dropdown__all { color: var(--red); font-weight: 700; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .7rem; }

/* ---------- Mega-Menü (Leistungen / Branchen) ---------- */
.nav__links .has-megamenu { position: static; }
.nav { position: relative; }
.nav__links .has-megamenu:hover > a .caret { transform: rotate(180deg); }
.megamenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(1140px, 94vw); background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.8rem;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; z-index: 200;
}
.megamenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav__links .has-megamenu:hover .megamenu,
.nav__links .has-megamenu:focus-within .megamenu { opacity: 1; visibility: visible; pointer-events: auto; }
/* JS hover-intent fallback (hält Menü offen beim Überfahren der Lücke) */
.nav__links .has-dropdown.menu-open .dropdown,
.nav__links .has-megamenu.menu-open .megamenu { opacity: 1; visibility: visible; pointer-events: auto; }
.megamenu__head { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.megamenu__grid { display: grid; gap: .55rem; }
.megamenu--leistungen .megamenu__grid { grid-template-columns: repeat(5, 1fr); }
.megamenu--branchen { width: min(880px, 92vw); }
.megamenu--branchen .megamenu__grid { grid-template-columns: repeat(4, 1fr); }
.mega-item { display: flex; flex-direction: column; padding: .7rem; border-radius: 13px; border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mega-item::after { display: none; }
.mega-item:hover { background: #fff; border-color: var(--line); box-shadow: 0 8px 22px rgba(16,16,17,.09); transform: translateY(-3px); }
.mega-thumb { display: block; position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; margin-bottom: .6rem; background: var(--bg-soft); }
.mega-thumb::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(180deg, transparent 55%, rgba(16,16,17,.14)); }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mega-item:hover .mega-thumb img { transform: scale(1.05); }
.mega-title { font-weight: 700; font-size: .9rem; color: var(--ink); line-height: 1.25; margin-top: .1rem; }
.mega-item:hover .mega-title { color: var(--red); }
.mega-desc { font-size: .75rem; color: var(--grey); margin-top: .2rem; line-height: 1.3; }
.megamenu__foot { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.megamenu__foot a { font-weight: 700; font-size: .9rem; color: var(--red); }
.megamenu__foot a::after { display: none; }

/* ---------- Mega-Menü: Gruppen-Variante (Leistungen) ---------- */
.megamenu--groups { width: min(1180px, 95vw); }
.megamenu__cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.mm-col__head { font-family: var(--mono); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .7rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.mm-link { display: block; padding: .42rem .6rem; border-radius: 10px; transition: background .16s ease; }
.mm-link::after { display: none; }
.mm-link:hover { background: rgba(168,17,37,.07); }
.mm-link__t { display: block; font-weight: 700; font-size: .93rem; color: var(--ink); line-height: 1.3; }
.mm-link:hover .mm-link__t { color: var(--red); }
.mm-link__d { display: block; font-size: .76rem; color: var(--grey); line-height: 1.35; }
.mm-promo { display: block; position: relative; margin-top: 1rem; border-radius: 13px; overflow: hidden;
  padding: 1rem 1.1rem; min-height: 118px; color: #fff; background: var(--ink); }
.mm-promo::after { display: none; }
.mm-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .4s ease; }
.mm-promo:hover img { transform: scale(1.06); }
.mm-promo__t, .mm-promo__d { position: relative; z-index: 2; display: block; }
.mm-promo__t { font-weight: 800; font-size: 1.02rem; }
.mm-promo__d { font-size: .8rem; color: #e6e6e8; margin-top: .2rem; }

/* ---------- Hero / Parallax ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-darker); color: #fff; }
.hero__bg {
  position: absolute; inset: -25% 0 -10% 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform; opacity: .82;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(12,12,13,.90) 0%, rgba(12,12,13,.62) 42%, rgba(12,12,13,.28) 72%, rgba(134,0,3,.30) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(90px, 16vw, 200px); max-width: 820px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #ff6a4d; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow strong, .hero .eyebrow b { color: #ff6a4d; }
.hero .lead { color: #d4d4d8; margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem,4vw,3.5rem); margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero__stat .num { font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 800; color: #fff; font-family: var(--mono); }
.hero__stat .lbl { font-size: .9rem; color: #a1a1aa; }

/* page hero (inner pages) */
.page-hero { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: -25% 0 -10% 0; background-size: cover; background-position: center; opacity: .3; will-change: transform; }
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(16,16,17,.5), rgba(16,16,17,.85)); }
.page-hero__inner { position: relative; z-index: 2; padding-block: clamp(70px,11vw,140px); max-width: 800px; }
.page-hero--sm .page-hero__inner { padding-block: clamp(50px,7vw,90px); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #d4d4d8; margin-top: 1.1rem; }
.crumbs { font-size: .85rem; color: #a1a1aa; margin-bottom: 1.2rem; font-family: var(--mono); }
.crumbs a:hover { color: var(--red-bright); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.2rem); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(168,17,37,.08); color: var(--red); margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .98rem; }
.card__link { color: var(--red); font-weight: 700; font-size: .92rem; margin-top: 1rem; display: inline-flex; gap: .4rem; align-items: center; }
.card__link:hover { gap: .7rem; }

.feature-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 340px; display: flex; align-items: flex-end; padding: 1.8rem; color: #fff; }
.feature-card h3 { color: #fff; }
.feature-card p { color: #ececee; }
.feature-card .tag { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.feature-card:hover .tag { background: var(--red); border-color: var(--red); }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.feature-card::after { content:""; position:absolute; inset:0; z-index: 1;
  background: linear-gradient(0deg, rgba(10,10,11,.95) 0%, rgba(10,10,11,.82) 30%, rgba(10,10,11,.42) 58%, rgba(10,10,11,.16) 100%); }
.feature-card:hover img { transform: scale(1.06); }
.feature-card > * { position: relative; z-index: 2; }

/* ---------- Full-bleed photo band ---------- */
.photo-band { position: relative; min-height: clamp(340px, 46vw, 540px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.photo-band__bg { position: absolute; inset: -18% 0; background-size: cover; background-position: center; will-change: transform; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,16,17,.55), rgba(16,16,17,.72)); }
.photo-band__inner { position: relative; z-index: 2; max-width: 840px; padding: clamp(2.5rem,6vw,4.5rem) var(--gutter); }
.photo-band .eyebrow { color: var(--red-bright); }
.photo-band h2 { color: #fff; }
.photo-band p { color: #e4e4e7; margin-top: 1rem; }
.photo-band .btn { margin-top: 1.8rem; }

/* split section with photo (e.g. Maschinenpark) */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.media-split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-split__img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
@media (max-width: 860px) { .media-split { grid-template-columns: 1fr; } }

/* stat strip */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat-box .num { font-family: var(--mono); font-weight: 800; font-size: clamp(1.8rem,3.2vw,2.8rem); color: var(--red); }
.stat-box .lbl { color: var(--grey); font-size: .95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(168,17,37,.03); }

/* ---------- Prose (articles) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--ink-soft); }
.prose li { margin-top: .5rem; }
.prose a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.prose a.btn--primary, .prose a.btn--dark, .prose a.btn--ghost { color: #fff; }
.prose a.btn--dark:hover { color: #fff; }
.prose a.btn--outline { color: var(--ink); }
.prose a.btn--outline:hover { color: var(--red); }
.prose blockquote { border-left: 4px solid var(--red); padding: .6rem 0 .6rem 1.4rem; font-size: 1.15rem; color: var(--ink); font-weight: 500; }

/* ---------- Breadcrumb bar (visible, below header) ---------- */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb-bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding-block: .85rem; font-size: .85rem; font-family: var(--mono); color: var(--grey); }
.breadcrumb-bar a { color: var(--grey); transition: color .2s; }
.breadcrumb-bar a:hover { color: var(--red); }
.breadcrumb-bar .sep { color: var(--grey-light); opacity: .6; }
.breadcrumb-bar [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Blog layout: full-width article + sticky sidebar ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article-layout .prose { max-width: none; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 1.4rem; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.aside-card h4 { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.toc { list-style: none; display: grid; gap: .55rem; }
.toc a { font-size: .92rem; color: var(--ink-soft); line-height: 1.4; display: block; padding-left: .8rem; border-left: 2px solid var(--line); transition: .2s; }
.toc a:hover, .toc a.active { color: var(--red); border-left-color: var(--red); }
.aside-cta { background: var(--grad-red); color: #fff; border-radius: var(--radius); padding: 1.6rem; }
.aside-cta h4 { color: rgba(255,255,255,.85); }
.aside-cta p { color: rgba(255,255,255,.92); font-size: .92rem; margin-bottom: 1.1rem; }
.aside-cta .btn { width: 100%; justify-content: center; background: #fff; color: var(--red); }
.aside-cta .btn:hover { transform: translateY(-2px); }

/* ---------- Author box ---------- */
.author-box { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 2.6rem; }
.author-box .av { width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--grad-red); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.3rem; }
.author-box .av img { width: 100%; height: 100%; object-fit: cover; }
.author-box .who { font-weight: 800; color: var(--ink); }
.author-box .role { font-size: .85rem; color: var(--red); font-family: var(--mono); margin-bottom: .5rem; }
.author-box .bio { font-size: .92rem; color: var(--grey); margin: 0; }
.author-box.compact { padding: 1.1rem 1.3rem; gap: .9rem; }
.author-box.compact .av { width: 48px; height: 48px; font-size: 1rem; }

/* article meta line under H1 in hero */
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: 1.2rem; font-size: .88rem; color: #c4c4c8; font-family: var(--mono); }
.article-meta .by { display: flex; align-items: center; gap: .5rem; }
.article-meta .by .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-red); display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; }

/* ---------- Key takeaways box ---------- */
.key-takeaways { background: linear-gradient(135deg, rgba(168,17,37,.05), rgba(222,69,40,.04));
  border: 1px solid rgba(168,17,37,.18); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2rem 0; }
.key-takeaways h2, .key-takeaways h3 { font-size: 1.05rem; margin: 0 0 .9rem; color: var(--red);
  font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.key-takeaways ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.key-takeaways li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); font-size: .98rem; }
.key-takeaways li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--red); }

/* ---------- Glossar ---------- */
.az-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2.5rem; }
.az-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 .5rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-weight: 600;
  color: var(--ink); text-decoration: none; transition: all .2s; }
.az-nav a:hover { border-color: var(--red); color: var(--red); }
.glossar-group { margin-bottom: 2.6rem; }
.glossar-group > h2 { font-family: var(--mono); color: var(--red); font-size: 1.4rem; border-bottom: 2px solid var(--line);
  padding-bottom: .4rem; margin-bottom: 1.2rem; }
.glossar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.glossar-item { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; transition: all .2s; }
.glossar-item:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.glossar-item .term { font-weight: 800; color: var(--ink); display: block; margin-bottom: .25rem; }
.glossar-item .desc { font-size: .9rem; color: var(--grey); }
.term-callout { background: linear-gradient(135deg, rgba(168,17,37,.05), rgba(222,69,40,.04));
  border: 1px solid rgba(168,17,37,.18); border-left: 4px solid var(--red); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 2rem 0; }
.term-callout h3 { font-family: var(--mono); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--red); margin: 0 0 .6rem; }
.term-callout p:last-child { margin-bottom: 0; }
.term-related { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.term-related a { font-size: .85rem; font-family: var(--mono); padding: .4rem .8rem; border: 1px solid var(--line);
  border-radius: 50px; color: var(--ink); text-decoration: none; transition: all .2s; }
.term-related a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Inline article figures ---------- */
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-sm); }
.prose figcaption { font-size: .85rem; color: var(--grey); margin-top: .7rem; text-align: center; font-style: italic; }
.figure-parallax { overflow: hidden; border-radius: var(--radius); }
.figure-parallax img { will-change: transform; transform: scale(1.12); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.3rem 0; font-size: 1.1rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__q::after { content: "+"; font-size: 1.6rem; color: var(--red); transition: transform .3s; font-weight: 400; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding-bottom: 1.3rem; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--grad-red); color: #fff; border-radius: var(--radius); padding: clamp(2rem,4vw,3.5rem); text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 560px; margin: 1rem auto 2rem; }

/* ---------- Global Contact Section ---------- */
.contact-section { background: var(--bg-dark); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-info h2 { color: #fff; }
.contact-info .lead { color: #c4c4c8; }
.contact-block { margin-top: 2rem; }
.contact-block h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); color: var(--red-bright); margin-bottom: .7rem; }
.contact-people { display: grid; gap: .9rem; }
.contact-person { display: flex; gap: .9rem; align-items: center; }
.contact-person .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-red); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.contact-person .nm { color: #fff; font-weight: 700; line-height: 1.2; }
.contact-person .av--img { width: 52px; height: 52px; background: none; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.contact-person .av--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-person .ro { color: #9a9aa0; font-size: .85rem; }
.contact-lines { list-style: none; display: grid; gap: .55rem; }
.contact-lines a, .contact-lines li { color: #d4d4d8; display: flex; gap: .6rem; align-items: center; }
.contact-lines a:hover { color: var(--red-bright); }
.cert-downloads { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.cert-pill { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: .65rem 1rem; border-radius: 10px; font-size: .9rem; color: #e4e4e7; transition: .2s; }
.cert-pill:hover { background: rgba(255,255,255,.13); border-color: var(--red-bright); }
.contact-map { margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.contact-map iframe { display: block; width: 100%; height: 200px; border: 0; filter: grayscale(.3) invert(.92) hue-rotate(180deg); }
.map-consent { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 1.4rem; text-align: center; background: rgba(255,255,255,.04); }
.map-consent__addr { margin: 0; font-weight: 600; color: #fff; }
.map-consent__note { margin: 0; font-size: .82rem; color: #9a9aa0; max-width: 34ch; }
.map-consent__note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.map-load { padding: .6rem 1.2rem; font-size: .9rem; }

.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-lg); }
.contact-form h3 { color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-top: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .96rem; color: var(--ink); background: var(--bg-soft); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(168,17,37,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field--file { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 1rem; text-align: center; color: var(--grey); font-size: .9rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--grey); margin-top: 1rem; }
.consent input { margin-top: .25rem; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 1.2rem; }
.form-promise { display: flex; align-items: center; gap: .6rem; background: rgba(168,17,37,.06); border: 1px solid rgba(168,17,37,.18); border-radius: var(--radius-sm); padding: .7rem 1rem; margin-bottom: .4rem; font-size: .92rem; color: var(--ink-soft); }
.form-promise svg { color: var(--red); flex: none; }
.file-input { width: 100%; padding: .7rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); font-family: var(--font); font-size: .9rem; color: var(--grey); cursor: pointer; transition: .2s; }
.file-input:hover { border-color: var(--red); background: #fff; }
.file-input::file-selector-button { font-family: var(--font); font-weight: 600; font-size: .85rem; color: #fff; background: var(--ink); border: 0; border-radius: 100px; padding: .5rem 1rem; margin-right: .8rem; cursor: pointer; transition: background .2s; }
.file-input:hover::file-selector-button { background: var(--red); }
.file-hint { display: block; font-size: .78rem; color: var(--grey); margin-top: .4rem; }
.form-trust { text-align: center; font-size: .8rem; color: var(--grey); margin-top: 1rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-darker); color: #9a9aa0; padding-block: clamp(3rem,5vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h5 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a:hover { color: var(--red-bright); }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 1.2rem; }
.footer-logo img { height: 40px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none;
  padding: .8rem var(--gutter); background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.sticky-cta .btn { width: 100%; justify-content: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(16,16,17,.93); display: none; align-items: center; justify-content: center; padding: clamp(1rem,5vw,4rem); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 1rem; right: 1.3rem; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .82; transition: opacity .2s; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 1.9rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__nav:hover { background: var(--red); }
.lightbox__prev { left: 1.3rem; } .lightbox__next { right: 1.3rem; }
@media (max-width: 600px) { .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; } .lightbox__prev{left:.5rem} .lightbox__next{right:.5rem} }

/* gallery grid w/ uniform tiles */
.gallery-grid img { aspect-ratio: 3/2; object-fit: cover; width: 100%; border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease; }
.gallery-grid img:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag { display: inline-block; font-family: var(--mono); font-size: .78rem; padding: .3rem .7rem; border-radius: 100px; background: rgba(168,17,37,.08); color: var(--red); font-weight: 600; }
.divider { height: 1px; background: var(--line); border: 0; }


/* Zertifikat-Pills auf hellem Grund */
.section:not(.section--dark) .cert-pill { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.section:not(.section--dark) .cert-pill:hover { border-color: var(--red); color: var(--red); }
/* Offene Angabe – vor Livegang durch Kundenangabe ersetzen */
.todo { display: inline-block; background: #fff6d8; border: 1px dashed #d9a400; color: #8a6400;
  font-family: var(--mono); font-size: .82em; padding: .05em .45em; border-radius: 5px; }


/* ---------- Branchen-Kacheln (Startseite) ---------- */
.branche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.branche-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 230px; padding: 1.2rem; border-radius: var(--radius); overflow: hidden; color: #fff; }
.branche-tile::after { display: none; }
.branche-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .45s ease; }
.branche-tile::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.72) 38%, rgba(10,10,11,.20) 100%); transition: background .25s ease; }
.branche-tile:hover img { transform: scale(1.07); }
.branche-tile:hover::before { background: linear-gradient(0deg, rgba(134,0,3,.92) 0%, rgba(10,10,11,.70) 42%, rgba(10,10,11,.20) 100%); }
.branche-tile__t, .branche-tile__d { position: relative; z-index: 2; }
.branche-tile__t { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.branche-tile__d { font-size: .82rem; color: #d9d9dd; margin-top: .25rem; }
@media (max-width: 1100px) { .branche-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .branche-grid { grid-template-columns: 1fr; } }


/* ---------- Startup-Hinweis (Startseite) ---------- */
.startup-note { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); box-shadow: var(--shadow-sm); }
.startup-note h3 { margin: .1rem 0 .4rem; }
.startup-note p { max-width: 62ch; font-size: .97rem; margin: 0; }
.startup-note .btn { flex: none; }


/* ---------- Karriere: Stellenanzeigen & Kurzbewerbung ---------- */
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.8rem); box-shadow: var(--shadow-sm); }
.section--soft .job { box-shadow: var(--shadow-md); }
.job__head { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.6rem; }
.job__badge { display: inline-block; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); background: rgba(168,17,37,.08); padding: .35rem .75rem; border-radius: 100px; margin-bottom: .9rem; }
.job h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.18; hyphens: auto; }
.job__mfd { color: var(--grey); font-weight: 600; }
.job h3 { font-size: 1.05rem; margin: 1.8rem 0 .6rem; }
.job p { max-width: 78ch; }
.job__list { list-style: none; display: grid; gap: .55rem; max-width: 84ch; }
.job__list li { position: relative; padding-left: 1.6rem; font-size: .98rem; color: var(--ink-soft); line-height: 1.6; }
.job__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.job__cta { margin-top: 2rem; }

.apply-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.8rem); box-shadow: var(--shadow-md); max-width: 860px; margin-inline: auto; }
.apply-form .field { margin-bottom: 1.1rem; }
.apply-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.apply-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink-soft); }
.apply-form input[type=text], .apply-form input[type=email], .apply-form input[type=tel],
.apply-form input:not([type]), .apply-form select, .apply-form textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .96rem; background: var(--bg-soft); transition: border-color .2s ease, background .2s ease; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: none; border-color: var(--red); background: #fff; }
.apply-form textarea { min-height: 150px; resize: vertical; }
.apply-form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; font-weight: 500;
  color: var(--grey); line-height: 1.5; margin: 1.2rem 0 1.4rem; }
.apply-form .consent input { margin-top: .2rem; flex: none; }
.apply-form .form-trust { font-size: .82rem; color: var(--grey); margin-top: .9rem; }
.apply-form .file-hint { display: block; font-size: .8rem; color: var(--grey); margin-top: .35rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.apply-status { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.6rem; font-size: .95rem; font-weight: 600; }
.apply-status--ok { background: #edf9f0; border: 1px solid #b6e3c3; color: #17693a; }
.apply-status--err { background: #fdf0f1; border: 1px solid #f2c2c6; color: #9c1c2a; }
@media (max-width: 640px) { .apply-form .form-row { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; top: auto; grid-template-columns: 1fr 1fr; }
  .article-aside .aside-toc { grid-column: 1 / -1; }
}
/* Mobile-Nav (Burger) bis 1100px – die Navi trägt jetzt mehr Punkte */
@media (max-width: 1100px) {
  :root { --header-top-h: 84px; --header-h: 84px; }
  .nav { position: static; background: transparent; }
  .nav__inner { min-height: 0; display: block; }
  .nav__quick { display: none; }
  .nav__logo img { height: 58px; }
  .site-header.scrolled .nav__logo img { height: 52px; }
  .header-line--mail { display: none; }
  .header-line small { display: none; }
  .nav__links { position: fixed; inset: var(--header-top-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 1.5rem var(--gutter); gap: 1rem; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow-md); z-index: 90; }
  .nav.open .nav__links { transform: translateY(0); overflow-y: auto; max-height: calc(100vh - var(--header-top-h)); }
  .nav__links > li { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav__links > li > a { color: var(--ink); height: auto; padding: .25rem 0; }
  .nav__links > li:hover > a { background: transparent; color: var(--red); }
  .nav__links > li > a::after { background: var(--red); bottom: -2px; margin: 0; right: auto; }
  .nav__burger { display: flex; }
  /* dropdown becomes inline accordion on mobile */
  .nav__links .has-dropdown { width: 100%; }
  .nav__links .has-dropdown > a .caret { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: .35rem 0 .35rem .9rem; margin-top: .5rem;
    min-width: 0; border-left: 2px solid var(--line); border-radius: 0; }
  .dropdown::before { display: none; }
  .dropdown a { padding: .5rem .2rem; }
  .dropdown a small { display: none; }
  .dropdown__all { border-top: 0; padding-top: .5rem; margin-top: 0; }
  /* mega-menu becomes inline accordion on mobile */
  .nav__links .has-megamenu { width: 100%; }
  .nav__links .has-megamenu > a .caret { display: none; }
  .megamenu { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: .35rem 0 .35rem .9rem; margin-top: .45rem;
    width: auto; border-left: 2px solid var(--line); border-radius: 0; }
  .megamenu::before { display: none; }
  .megamenu__head { display: none; }
  .megamenu--groups, .megamenu--branchen { width: auto; }
  .megamenu__cols { grid-template-columns: 1fr; gap: 1rem; }
  .mm-col__head { margin-bottom: .3rem; }
  .mm-link { padding: .35rem .2rem; }
  .mm-link__d { display: none; }
  .mm-promo { display: none; }
  .megamenu--leistungen .megamenu__grid, .megamenu--branchen .megamenu__grid { grid-template-columns: 1fr; gap: .1rem; }
  .mega-item { flex-direction: row; align-items: center; gap: .7rem; padding: .45rem .2rem; }
  .mega-thumb { width: 44px; aspect-ratio: 1; flex: none; margin-bottom: 0; }
  .mega-desc { display: none; }
  .megamenu__foot { flex-direction: column; gap: .55rem; border-top: 0; padding-top: .5rem; margin-top: .2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}
@media (max-width: 640px) {
  .header-line { display: none; }
  .nav__cta-btn { padding: .7rem 1.1rem; font-size: .9rem; }
}
@media (max-width: 720px) {
  .article-aside { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid, .stats-strip { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}

/* Anker nicht hinter dem Sticky-Header verschwinden lassen */
:where(section, [id]) { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}

/* Geschäftsleitung / Team (Unternehmen) */
.team-photo { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.team-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.team-photo figcaption { margin-top: .7rem; font-size: .88rem; color: #6b6b72; }
.card-portrait { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 1rem; box-shadow: var(--shadow-md); }

/* Bilderpaket bilder-gmp: Logo-Wände, Bildunterschriften, Einzelbilder */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.logo-wall img { width: 100%; aspect-ratio: 520 / 300; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .35rem; }
.logo-wall--icons { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.logo-wall--icons img { aspect-ratio: 1; padding: .6rem; }
.logo-wall--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.4rem; max-width: 520px; }
.figure-grid figure { margin: 0; }
.figure-grid figcaption { margin-top: .6rem; font-size: .9rem; color: #6b6b72; text-align: left; font-style: normal; }
.figure-grid figcaption strong { color: var(--ink); }
.gmp-figure { margin: 0 auto; max-width: 900px; }
.gmp-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); background: #fff; }
.gmp-figure figcaption { margin-top: .7rem; font-size: .9rem; color: #6b6b72; text-align: center; }
@media (max-width: 720px) { .logo-wall--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }
