@charset "UTF-8";
/* ==========================================================================
   ALVA Solutions GmbH · Website
   Gestaltung: Planblatt und einpoliges Übersichtsschaltbild.
   Schriften: DIN (Bahnschrift / DIN Alternate) für Überschriften,
   Systemschrift für Fließtext, Monospace für Kennzeichnungen.
   Farben: Anthrazit, Lichtgrau wie im Schaltanlagenbau, Signalgelb aus dem Logo.
   Keine externen Schriften, keine Cookies, kein Tracking.
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;
  --ink: #171b1e;
  --ink-2: #283034;
  --steel: #56616a;
  --paper: #eef0ee;
  --paper-2: #e3e7e5;
  --white: #fff;
  --yellow: #fecf00;
  --yellow-2: #ffdc40;
  --line: #d5dada;
  --line-strong: #a4adb1;
  --error: #b3261e;

  --sheet: #13171a;
  --sheet-grid: rgba(255, 255, 255, .055);
  --sheet-border: #3a4348;
  --sheet-text: #eef1f1;
  --sheet-muted: #9ca7ac;
  --wire-off: #56626a;

  --font-display: "Bahnschrift", "DIN Alternate", "DIN Next LT Pro", "DIN Pro", "D-DIN", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --header-h: 78px;
  --ease: cubic-bezier(.55, 0, .15, 1);

  --fs-h1: clamp(2.4rem, 1.45rem + 3.9vw, 4.5rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.15vw, 2.9rem);
  --fs-h3: clamp(1.2rem, 1.08rem + .45vw, 1.45rem);
  --fs-lead: clamp(1.1rem, 1.02rem + .38vw, 1.3rem);
}

/* 2 · Grundlagen --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: break-word; }
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: 0; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: .01em; }
p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
address { font-style: normal; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--yellow); }
.on-dark :focus-visible { outline-color: var(--yellow); box-shadow: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-weight: 600; text-decoration: none; transform: translateY(-220%); }
.skip-link:focus { transform: none; }

/* 3 · Raster, Abschnitte, Typografie-Bausteine -------------------------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8.5vw, 120px); }
.section.compact { padding-block: clamp(40px, 5vw, 72px); }
.section.paper { background: var(--paper); }
.section.ruled { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; max-width: 880px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; column-gap: clamp(32px, 6vw, 110px); }
.section-head.split > .eyebrow { grid-column: 1 / -1; }
.section-head > p:not(.eyebrow) { color: var(--steel); max-width: 62ch; }
.eyebrow { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: .75rem; line-height: 1.3; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .2em; background: var(--yellow); border: 1.5px solid var(--ink); }
.on-dark .eyebrow { color: var(--sheet-text); }
.on-dark .eyebrow::before { border-color: var(--yellow); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--steel); max-width: 58ch; }
.muted { color: var(--steel); }
.tag { font-family: var(--font-mono); font-size: .78rem; line-height: 1.3; letter-spacing: .02em; color: var(--steel); white-space: nowrap; }
.prose { max-width: 70ch; }
.prose p { color: var(--steel); }
.note { margin-top: 28px; max-width: 80ch; font-size: .875rem; line-height: 1.6; color: var(--steel); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }

/* 4 · Schaltflächen und Links ------------------------------------------- */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; transition: transform .25s var(--ease); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; padding: 14px 22px; border: 2px solid var(--ink); background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: .01em; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.button:hover { background: var(--ink-2); border-color: var(--ink-2); }
.button:hover .i, .link:hover .i { transform: translateX(4px); }
.button.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.button.yellow:hover { background: var(--yellow-2); border-color: var(--yellow-2); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--white); }
.button.small { min-height: 44px; padding: 9px 16px; gap: 12px; font-size: .9375rem; }
.link { display: inline-flex; align-items: center; gap: 10px; padding-block: 5px; border-bottom: 2px solid var(--yellow); font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }
.on-dark .link:hover { border-color: var(--sheet-text); }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 11px; border: 1.5px solid currentColor; background: transparent; font-family: var(--font-display); font-weight: 600; font-size: .8125rem; letter-spacing: .03em; transition: background-color .2s, color .2s, border-color .2s; }
.copy-btn .i { width: 15px; height: 15px; }
.copy-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.on-dark .copy-btn:hover { background: var(--sheet-text); border-color: var(--sheet-text); color: var(--ink); }
.copy-btn.is-done, .on-dark .copy-btn.is-done { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* 5 · Kopfzeile und Navigation ------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.3) blur(12px); } }
.site-header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(23, 27, 30, .6); }
.header-inner { width: min(1340px, 100% - 2 * var(--gutter)); height: var(--header-h); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; display: block; }
.brand img { width: 178px; }
.main-nav { position: relative; display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li.has-sub { position: static; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: var(--header-h); padding-inline: 14px; font-size: .96875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after, .has-sub:hover > .nav-link::after, .has-sub.is-open > .nav-link::after { transform: scaleX(1); }
.nav-count { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; line-height: 1; padding: 4px 6px; background: var(--yellow); color: var(--ink); }
.sub-toggle { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -12px; margin-right: 2px; padding: 0; border: 0; background: none; color: var(--ink); }
.sub-toggle .i { width: 15px; height: 15px; }
.has-sub:hover .sub-toggle .i, .has-sub.is-open .sub-toggle .i { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; right: 0; z-index: 5; width: min(800px, calc(100vw - 48px)); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(23, 27, 30, .45); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s; }
.has-sub:hover > .nav-sub, .has-sub.is-open > .nav-sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.has-sub.is-dismissed > .nav-sub { visibility: hidden; opacity: 0; }
.nav-sub-main { list-style: none; margin: 0; padding: 12px; display: grid; gap: 2px; }
.nav-sub-main a { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 8px; padding: 12px 14px; text-decoration: none; transition: background-color .15s; }
.nav-sub-main a:hover, .nav-sub-main a[aria-current="page"] { background: var(--paper); }
.nav-sub-main .tag { grid-row: 1 / 3; padding-top: 4px; }
.nav-sub-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.nav-sub-text { font-size: .875rem; line-height: 1.45; color: var(--steel); }
.nav-sub-extra { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px; background: var(--paper); }
.nav-sub-label { margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.nav-sub-extra a { padding: 6px 0; font-size: .9375rem; line-height: 1.4; text-decoration: none; }
.nav-sub-extra a:hover { text-decoration: underline; }
.nav-sub-extra a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav-cta[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ink); }
.nav-sub-extra .nav-sub-all { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-family: var(--font-display); font-weight: 600; }
.nav-cta { min-height: 44px; padding: 10px 16px; }
.nav-contact { display: none; }
.menu-toggle { display: none; }

/* 6 · Einstieg (Hero) und Seitenkopf ------------------------------------ */
.hero { padding-top: clamp(40px, 5.5vw, 84px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 26px clamp(32px, 6vw, 100px); align-items: end; }
.hero-grid > .eyebrow, .hero-grid > .breadcrumb { grid-column: 1 / -1; }
.hero-side { padding-bottom: 6px; }
.hero-side .actions { margin-top: 28px; }
.page-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(44px, 5.5vw, 84px); }
.page-hero .hero-grid { row-gap: 22px; }
.page-hero.single .hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero.single h1 { max-width: 20ch; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; font-size: .8125rem; color: var(--steel); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { color: var(--line-strong); }
.photo img { width: 100%; object-fit: cover; }
.photo figcaption { margin-top: 10px; font-size: .75rem; line-height: 1.5; color: var(--steel); }
.banner img { aspect-ratio: 2.55; }

/* 7 · Schaltbild: Leistungen als einpoliges Übersichtsschaltbild -------- */
.sheet { position: relative; margin-top: clamp(40px, 5vw, 64px); padding: clamp(34px, 4.6vw, 66px); background-color: var(--sheet); background-image: linear-gradient(var(--sheet-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sheet-grid) 1px, transparent 1px); background-size: 24px 24px; color: var(--sheet-text); border: 1px solid var(--sheet-border); isolation: isolate; }
.sheet::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--sheet-border); pointer-events: none; z-index: -1; }
.sheet-zones { position: absolute; display: flex; justify-content: space-around; font: 500 9px/14px var(--font-mono); letter-spacing: .08em; color: var(--sheet-muted); pointer-events: none; user-select: none; }
.sheet-zones.h { top: 0; left: 14px; right: 14px; height: 14px; }
.sheet-zones.v { top: 14px; bottom: 14px; left: 0; width: 14px; flex-direction: column; align-items: center; }
.sheet .tag { color: var(--sheet-muted); }
.sheet h2 { color: var(--white); }

.sld { --axis: 32px; --sym: 64px; --bus: 6px; display: grid; grid-template-columns: minmax(190px, 1.2fr) repeat(4, minmax(0, 1fr)); grid-template-areas: "src head head head head" "bus bus bus bus bus" "note fdr fdr fdr fdr" ". . . tb tb"; column-gap: clamp(18px, 2.4vw, 36px); }
.sld-head { grid-area: head; align-self: start; display: grid; gap: 16px; padding-bottom: 64px; }
.sld-head p:not(.eyebrow) { max-width: 60ch; color: var(--sheet-muted); }
.sld-src { grid-area: src; display: flex; flex-direction: column; }
.src-node { display: flex; align-items: center; gap: 12px; }
.src-text { display: grid; gap: 2px; min-width: 0; }
.src-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.25; color: var(--white); }
.src-text span:not(.tag) { font-size: .8125rem; line-height: 1.4; color: var(--sheet-muted); }
.sld-src .wire.short { height: 18px; }
.sld-src .wire.grow { flex: 1 1 auto; min-height: 30px; }
.sld-bus { grid-area: bus; position: relative; height: var(--bus); background: linear-gradient(var(--yellow), var(--yellow)) 0 0 / 0% 100% no-repeat, var(--wire-off); transition: background-size .9s var(--ease) .85s; }
.sld-bus-label { position: absolute; right: 0; bottom: calc(100% + 10px); font: 500 .75rem/1.2 var(--font-mono); color: var(--sheet-muted); white-space: nowrap; }
.sld-feeders { grid-area: fdr; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: inherit; list-style: none; margin: 0; padding: 0; }
.sld-note { grid-area: note; align-self: start; max-width: 30ch; padding-top: 38px; font-size: .875rem; line-height: 1.55; color: var(--sheet-muted); }
.sld-note .tag { display: block; margin-bottom: 6px; }
.sheet-tb { grid-area: tb; display: grid; grid-template-columns: repeat(3, auto); margin-top: 48px; border: 1px solid var(--sheet-border); }
.sheet-tb > div { padding: 8px 12px 10px; border-left: 1px solid var(--sheet-border); }
.sheet-tb > div:first-child { border-left: 0; }
.sheet-tb dt { font: 500 .625rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sheet-muted); }
.sheet-tb dd { margin-top: 3px; font-family: var(--font-display); font-weight: 600; font-size: .875rem; line-height: 1.3; color: var(--sheet-text); }

/* Leitungen und Symbole */
.wire { position: relative; display: block; flex: none; width: 2px; margin-left: calc(var(--axis) - 1px); background: linear-gradient(var(--yellow), var(--yellow)) 0 0 / 100% 0% no-repeat, var(--wire-off); transition: background-size .45s var(--ease) var(--d, 0s); }
.wire::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 7px, var(--sheet) 7px 12px); opacity: 0; transition: opacity .2s; }
.is-live .wire { background-size: 100% 100%; }
.is-live .sld-bus { background-size: 100% 100%; }
.sym { display: block; flex: none; width: var(--sym); height: var(--sym); overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; color: var(--wire-off); transition: color .35s var(--ease) var(--d, 0s); }
.sym path, .sym circle { vector-effect: non-scaling-stroke; }
.sym .fill { fill: currentColor; stroke: none; }
.sym-in { height: 48px; }
.sym-trafo { height: 96px; }
.sym-arrow { height: 20px; }
.is-live .sym { color: var(--yellow); }
.sld-src .sym-in { --d: 0s; }
.sld-src .wire.short { --d: .12s; }
.sld-src .sym-trafo { --d: .38s; }
.sld-src .wire.grow { --d: .55s; }

/* Abgänge */
.feeder { position: relative; }
.feeder:nth-child(1) { --fd: 1.05s; }
.feeder:nth-child(2) { --fd: 1.25s; }
.feeder:nth-child(3) { --fd: 1.45s; }
.feeder:nth-child(4) { --fd: 1.65s; }
.feeder-link { display: grid; grid-template-columns: var(--sym) minmax(0, 1fr); grid-template-areas: "circ tag" "body body"; color: inherit; text-decoration: none; }
.feeder-link:focus-visible { outline-offset: 8px; }
.feeder-circuit { grid-area: circ; display: flex; flex-direction: column; }
.feeder-circuit .wire:first-child { height: 36px; --d: var(--fd); }
.feeder-circuit .sym-breaker { --d: calc(var(--fd) + .3s); }
.feeder-circuit .wire:nth-child(3) { height: 24px; --d: calc(var(--fd) + .38s); }
.feeder-circuit .sym-arrow { --d: calc(var(--fd) + .7s); }
.feeder-link > .tag { grid-area: tag; padding-top: 46px; }
.feeder-body { grid-area: body; display: grid; align-content: start; gap: 8px; padding-top: 18px; }
.feeder-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.22; color: var(--white); text-decoration: underline 2px transparent; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.feeder-text { font-size: .9375rem; line-height: 1.55; color: var(--sheet-muted); hyphens: auto; }
.feeder-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.feeder-more .i { width: 16px; height: 16px; }
.feeder-link:hover .feeder-title, .feeder-link:focus-visible .feeder-title { text-decoration-color: var(--yellow); }
.feeder-link:hover .feeder-more .i { transform: translateX(4px); }
.feeder-link:hover .wire::after, .feeder-link:focus-visible .wire::after { opacity: 1; animation: flow-v .7s linear infinite; }
.feeder-link:hover .sym-arrow { transform: translateY(3px); }
.sym-arrow { transition: color .35s var(--ease) var(--d, 0s), transform .25s var(--ease); }
@keyframes flow-v { to { background-position: 0 12px; } }
@keyframes flow-h { to { background-position: 12px 0; } }

/* 8 · Abgangsleiste auf den Leistungsseiten ----------------------------- */
.feeder-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.feeder-bar .wrap { padding-top: 16px; }
.fb-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.fb-list a { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 15px 12px 16px 24px; font-family: var(--font-display); font-weight: 600; font-size: .9375rem; line-height: 1.3; color: var(--steel); text-decoration: none; white-space: nowrap; }
.fb-list a::before { content: ""; position: absolute; left: 7px; top: 0; width: 2px; height: 25px; background: var(--line-strong); }
.fb-list a::after { content: ""; position: absolute; left: 3px; top: 24px; width: 10px; height: 10px; border: 2px solid var(--line-strong); background: var(--paper); }
.fb-list a:hover { color: var(--ink); }
.fb-list a[aria-current="page"] { color: var(--ink); }
.fb-list a[aria-current="page"]::before { background: var(--ink); }
.fb-list a[aria-current="page"]::after { background: var(--yellow); border-color: var(--ink); }
.fb-list .tag { font-size: .72rem; }

/* 9 · Inhaltsbausteine -------------------------------------------------- */
/* Referenzen */
.refs { border-bottom: 1px solid var(--line); }
.refs-inner { display: grid; gap: 18px; padding-block: 32px 28px; }
.refs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 34px; }
.refs-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel); }
.refs-note { margin: 0; font-size: .75rem; line-height: 1.4; color: var(--steel); }

/* Logoleiste: nur die Logos, frei auf der Fläche. Ohne Skript oder bei „Bewegung reduzieren“
   stehen sie ruhig nebeneinander, site.js schaltet die Endlosschleife ein (.is-running). */
.logo-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 64px; list-style: none; margin: 0; padding: 0; }
.logo-item { display: flex; align-items: center; justify-content: center; height: 76px; }
.logo-item img { width: auto; height: calc(42px * var(--s, 1)); max-width: calc(190px * var(--w, 1)); object-fit: contain; }
.logo-marquee.is-running { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-marquee.is-running .logo-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; animation: logo-run var(--marquee-time, 40s) linear infinite; }
.logo-marquee.is-running .logo-item { flex: none; margin-right: 80px; }
.logo-marquee:hover .logo-track, .logo-marquee.is-paused .logo-track { animation-play-state: paused; }
@keyframes logo-run { to { transform: translateX(-50%); } }
.marquee-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .04em; color: var(--steel); }
.marquee-toggle .i { width: 13px; height: 13px; }
.marquee-toggle:hover { color: var(--ink); }

/* Leistungszeilen */
.service-rows { border-top: 2px solid var(--ink); }
.service-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); gap: 16px clamp(28px, 5vw, 80px); padding-block: clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.service-row h3 { max-width: 18ch; }
.service-row h3 a { text-decoration: none; }
.service-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.service-row p { color: var(--steel); }
.service-row .link { margin-top: 18px; }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px 28px; font-size: .96875rem; line-height: 1.5; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 2px; background: var(--ink); }

/* Dreiergruppe */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 52px); }
.trio > article { padding-top: 22px; border-top: 2px solid var(--ink); }
.trio h3 { margin-bottom: 14px; }
.trio p { font-size: 1rem; color: var(--steel); }
.trio + .link, .trio + .actions { margin-top: 40px; }

/* Bild und Text */
.photo.wide { margin-bottom: clamp(36px, 4vw, 56px); }
.photo.wide img { aspect-ratio: 2.4; }
.media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.media.reverse > .photo { order: 2; }
.media .photo img { aspect-ratio: 4 / 3; }
.media .photo.tall img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.media-copy h3 { margin: 16px 0 20px; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.media-copy p { color: var(--steel); }
.media-copy .link { margin-top: 26px; }
.stack { display: grid; gap: 30px; }
.stack > article { padding-top: 20px; border-top: 2px solid var(--ink); }
.stack h3 { margin-bottom: 10px; }
.stack p { color: var(--steel); }
.media.top { align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.split h3 { margin-bottom: 18px; }
.statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.25; letter-spacing: -.01em; }
.split .prose .link { margin-top: 24px; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.steps.six, .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
.steps li { position: relative; padding-top: 30px; border-top: 2px solid var(--ink); }
.steps li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--yellow); border: 2px solid var(--ink); }
.step-no { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: .8rem; color: var(--steel); }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 1rem; color: var(--steel); }

/* Checkliste */
.checklist { max-width: 980px; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.checklist li { position: relative; padding: 18px 0 18px 42px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 5px; top: 25px; width: 14px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* Fragen und Antworten */
.faq { max-width: 980px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 56px 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.35; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .job summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] > summary::after, .job[open] > summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--steel); }
.faq details > p, .faq details > div { max-width: 75ch; padding: 0 56px 26px 0; color: var(--steel); }

/* Rahmenbedingungen */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.benefits li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.benefits strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.benefits span { display: block; margin-top: 6px; font-size: .96875rem; color: var(--steel); }

/* Projektliste */
.project-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.project-list a { display: grid; grid-template-columns: 160px minmax(0, 1.3fr) minmax(0, 1fr) 24px; gap: 8px clamp(20px, 3vw, 44px); align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; }
.pl-sector { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.pl-main strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; text-decoration: underline 3px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.pl-main span { display: block; margin-top: 4px; }
.pl-scope { font-size: .96875rem; color: var(--steel); }
.project-list .i { align-self: center; }
.project-list a:hover strong { text-decoration-color: var(--yellow); }
.project-list a:hover .i { transform: translateX(4px); }

/* Projektkarten */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.case { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 38px); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); transition: box-shadow .3s; }
.case:target { box-shadow: 0 0 0 3px var(--yellow); }
.case h3 { margin: 12px 0 14px; }
.case > p { color: var(--steel); }
.case .link { align-self: flex-start; margin-top: 22px; }
.case h4 { margin: 12px 0 14px; font-size: var(--fs-h3); line-height: 1.15; }
/* Projekte nach Branchen: Gruppentitel mit Kennzeichnung wie im Schaltplan */
.case-group { display: flex; align-items: baseline; gap: 14px; margin: clamp(44px, 5vw, 68px) 0 22px; padding-top: 16px; border-top: 2px solid var(--ink); }
.case-group .tag { font-size: .8125rem; }
.fb-list + .case-group { margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 761px) { .fb-list.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.facts { display: grid; margin-top: auto; padding-top: 24px; }
.facts > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.facts dt, .kv dt { padding-top: 2px; font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }
.facts dd { font-family: var(--font-display); font-weight: 600; }

/* Datenblock im Stil eines Schriftfelds */
.kv { display: grid; border: 2px solid var(--ink); background: var(--white); }
.kv > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-strong); }
.kv > div:first-child { border-top: 0; }
.kv dd { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.kv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 2px solid var(--ink); background: var(--line-strong); }
.kv-grid > div { padding: 16px 20px 18px; background: var(--white); }
.kv-grid dt { font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }
.kv-grid dd { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }

/* Person */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.person .photo img { aspect-ratio: 4 / 5; object-position: 50% 15%; }
.person-copy h2 { margin: 16px 0 22px; }
.person-copy p { color: var(--steel); }
.person-sign { display: grid; gap: 2px; margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--yellow); }
.person-sign strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.person-sign span { font-size: .9375rem; color: var(--steel); }
.person-copy .actions { margin-top: 30px; }

/* Karriere */
.career { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.career .photo img { aspect-ratio: 3 / 4; object-position: 50% 25%; }
.career-copy h2 { margin: 16px 0 20px; }
.career-copy > p { color: var(--steel); max-width: 60ch; }
.job-links { list-style: none; margin: 32px 0 30px; padding: 0; border-top: 2px solid var(--ink); }
.job-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 6px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.jl-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; text-decoration: underline 3px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.jl-meta { font-size: .875rem; color: var(--steel); }
.job-links a:hover .jl-title { text-decoration-color: var(--yellow); }
.job-links a:hover .i { transform: translateX(4px); }

.job-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.job-filters button { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ink); background: transparent; font-family: var(--font-display); font-weight: 600; font-size: .9375rem; transition: background-color .15s, color .15s; }
.job-filters button:hover { background: var(--paper); }
.job-filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.job-count { margin-bottom: 18px; font-family: var(--font-mono); font-size: .8125rem; color: var(--steel); }
.jobs { border-top: 2px solid var(--ink); }
.job { border-bottom: 1px solid var(--line-strong); }
.job > summary { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 24px 56px 24px 0; list-style: none; cursor: pointer; }
.job > summary::-webkit-details-marker { display: none; }
.job-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.25; }
.job-meta { display: block; margin-top: 6px; font-size: .875rem; color: var(--steel); }
.job-cat { padding: 4px 8px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.job > summary:hover .job-title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.job-body { display: grid; gap: 24px; max-width: 1040px; padding: 0 0 38px; }
.job-lead { font-size: 1.0625rem; }
.job-also { padding: 12px 16px; background: var(--white); border-left: 3px solid var(--yellow); font-size: .9375rem; color: var(--steel); }
.job-also strong { color: var(--ink); }
.job-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.job-cols h4 { margin-bottom: 12px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.job-cols ul { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; font-size: .9375rem; line-height: 1.5; }
.job-cols li { position: relative; padding-left: 18px; }
.job-cols li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 2px; background: var(--ink); }
.job-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.job-apply p { font-size: .875rem; color: var(--steel); }

/* 10 · Kontaktband und Kontaktseite ------------------------------------- */
.contact-band { position: relative; padding-block: clamp(56px, 7.5vw, 104px); background-color: var(--ink); background-image: linear-gradient(var(--sheet-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sheet-grid) 1px, transparent 1px); background-size: 24px 24px; color: var(--sheet-text); }
.cb-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.cb-main h2 { margin: 16px 0 18px; color: var(--white); }
.cb-main > p:not(.eyebrow) { max-width: 52ch; color: var(--sheet-muted); }
.cb-person { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 22px; align-items: start; padding: 26px; border: 1px solid var(--sheet-border); background: rgba(19, 23, 26, .75); }
.cb-person img { width: 108px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.cb-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--white); }
.cb-role { font-size: .875rem; color: var(--sheet-muted); }
.cb-lines { display: grid; gap: 2px; margin-top: 14px; }
.cb-lines a { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--sheet-text); text-decoration: none; overflow-wrap: anywhere; }
.cb-lines a:hover { color: var(--yellow); }
.cb-person .copy-btn { margin-top: 14px; }
.cb-person p + p { margin-top: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.direct { display: grid; gap: 30px; }
.direct-block { padding-top: 18px; border-top: 2px solid var(--ink); }
.label { display: block; margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel); }
.big-contact { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.big-contact:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.direct .copy-btn { margin-top: 12px; }
.direct-person { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; }
.direct-person img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.direct-person strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.direct-person span { font-size: .875rem; color: var(--steel); }

.inquiry { padding: clamp(24px, 3.5vw, 44px); background: var(--paper); border-top: 3px solid var(--ink); }
.inquiry h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.inquiry > p { margin-top: 10px; color: var(--steel); }
.form-grid { display: grid; gap: 18px; margin-top: 28px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 12px; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.topic { position: relative; display: block; cursor: pointer; }
.topic input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.topic span { position: relative; display: flex; align-items: center; min-height: 50px; padding: 10px 12px 10px 38px; border: 1.5px solid var(--line-strong); background: var(--white); font-family: var(--font-display); font-weight: 600; font-size: .9375rem; line-height: 1.25; transition: border-color .15s, box-shadow .15s; }
.topic span::before { content: ""; position: absolute; left: 13px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border: 2px solid var(--line-strong); background: var(--white); }
.topic:hover span { border-color: var(--ink); }
.topic input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.topic input:checked + span::before { background: var(--yellow); border-color: var(--ink); }
.topic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--yellow); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.opt { font-family: var(--font-text); font-weight: 400; font-size: .8125rem; color: var(--steel); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 0; background: var(--white); font-size: 1rem; line-height: 1.4; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { padding-right: 42px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23171b1e' stroke-width='1.8'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #87919a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { font-size: .875rem; color: var(--error); }
.form-note { font-size: .8125rem; line-height: 1.55; color: var(--steel); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-result { margin-top: 24px; padding: 22px; background: var(--white); border-left: 4px solid var(--yellow); }
.form-result:focus { outline: none; }
.form-result p { font-size: .9375rem; }
.form-result pre { max-height: 300px; margin: 16px 0; padding: 16px; overflow: auto; background: var(--paper); font-family: var(--font-mono); font-size: .8125rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

/* 11 · Rechtstexte ------------------------------------------------------ */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 2px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: .875rem; line-height: 1.4; }
.toc a { padding: 5px 0; color: var(--steel); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.legal { max-width: 76ch; }
.legal h2 { margin: 52px 0 14px; font-size: 1.45rem; line-height: 1.25; }
.legal > h2:first-child { margin-top: 0; }
.legal h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.legal p, .legal li { color: #3b454c; }
.legal ul { display: grid; gap: 6px; margin: 12px 0; padding-left: 1.2em; }
.legal a { text-decoration-color: var(--line-strong); }
.legal a:hover { text-decoration-color: var(--ink); }
.legal .box { margin: 20px 0; padding: 18px 22px; background: var(--paper); border-left: 4px solid var(--ink); }
.legal .box p { color: var(--ink); }
.legal .kv { margin: 16px 0 8px; }
.legal-stand { margin-top: 48px; font-size: .875rem; color: var(--steel); }

/* 12 · Fußzeile im Stil eines Schriftfelds ------------------------------ */
.site-footer { padding-block: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 48px); background: var(--paper); }
.titleblock { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, .8fr); grid-template-areas: "brand firma kontakt leist alva" "brand reg social leist alva" "legal legal legal sheet copy"; gap: 1px; background: var(--line-strong); border: 2px solid var(--ink); }
.tb { min-width: 0; padding: 16px 18px 18px; background: var(--white); }
.tb-brand { grid-area: brand; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 24px; }
.tb-brand img { width: 196px; }
.tb-brand p { max-width: 30ch; font-size: .875rem; color: var(--steel); }
.tb-firma { grid-area: firma; }
.tb-kontakt { grid-area: kontakt; }
.tb-leist { grid-area: leist; }
.tb-alva { grid-area: alva; }
.tb-reg { grid-area: reg; }
.tb-social { grid-area: social; }
.tb-legal { grid-area: legal; }
.tb-sheet { grid-area: sheet; }
.tb-copy { grid-area: copy; }
.tb-label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: .6875rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel); }
.tb p, .tb li { font-size: .875rem; line-height: 1.6; }
.tb ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tb a { text-decoration: none; }
.tb a:hover { text-decoration: underline; }
.tb a[aria-current="page"] { font-weight: 600; }
.tb-legal ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tb-legal .tb-hint { margin-top: 8px; font-size: .8125rem; color: var(--steel); }
.tb-sheet p { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }

/* 13 · 404 und Sonderfälle ---------------------------------------------- */
.error-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.error-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.error-links a:hover .i { transform: translateX(4px); }

/* 14 · Anpassungen nach Bildschirmbreite -------------------------------- */
@media (max-width: 1180px) {
  .nav-link { padding-inline: 11px; }
  .nav-link::after { left: 11px; right: 11px; }
  .main-nav { gap: 16px; }
  .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "brand firma kontakt" "brand reg social" "leist alva legal" "sheet copy copy"; }
}

@media (max-width: 1023.98px) {
  /* Schaltbild senkrecht: Sammelschiene links, Abgänge nach rechts */
  .sld { --sym: 48px; --axis: 32px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "src" "fdr" "note" "tb"; }
  .sld-head { padding-bottom: 36px; }
  .sld-src .sym-in, .sld-src .sym-trafo { width: 64px; }
  .sld-src .sym-in { height: 48px; }
  .sld-src .sym-trafo { height: 96px; }
  .sld-src .wire.grow { flex: none; height: 26px; min-height: 0; }
  .sld-bus { display: none; }
  .sld-feeders { grid-template-columns: minmax(0, 1fr); margin-left: calc(var(--axis) - var(--bus) / 2); }
  .feeder { padding-left: var(--bus); }
  .feeder::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--bus); background: linear-gradient(var(--yellow), var(--yellow)) 0 0 / 100% 0% no-repeat, var(--wire-off); transition: background-size .3s linear calc(var(--fd) - .25s); }
  .feeder:last-child::before { bottom: auto; height: calc(16px + 24px + 3px); }
  .is-live .feeder::before { background-size: 100% 100%; }
  .feeder-link { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "circ tag" "circ body"; column-gap: 14px; padding-block: 16px 22px; }
  .feeder-circuit { flex-direction: row; align-items: center; height: 48px; }
  .feeder-circuit .wire { width: auto; height: 2px; margin-left: 0; background-size: 0% 100%; }
  .feeder-circuit .wire:first-child { width: 18px; height: 2px; }
  .feeder-circuit .wire:nth-child(3) { width: 10px; height: 2px; }
  .is-live .feeder-circuit .wire { background-size: 100% 100%; }
  .feeder-circuit .wire::after { background: repeating-linear-gradient(to right, transparent 0 7px, var(--sheet) 7px 12px); }
  .feeder-link:hover .wire::after, .feeder-link:focus-visible .wire::after { animation-name: flow-h; }
  .feeder-circuit .sym-breaker { width: 48px; height: 48px; transform: rotate(-90deg); }
  .feeder-circuit .sym-arrow { width: 20px; height: 20px; transform: rotate(-90deg); }
  .feeder-link:hover .sym-arrow { transform: rotate(-90deg) translateY(3px); }
  .feeder-link > .tag { padding-top: 2px; }
  .feeder-body { padding-top: 4px; }
  .sld-note { max-width: 52ch; padding-top: 18px; }
  .sheet-tb { justify-self: start; margin-top: 32px; }
}

@media (max-width: 959.98px) {
  :root { --header-h: 66px; }
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand img { width: 148px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 2px 0 12px; border: 0; background: none; font-family: var(--font-display); font-weight: 600; font-size: .9375rem; letter-spacing: .02em; }
  .menu-toggle-icon { position: relative; width: 22px; height: 14px; }
  .menu-toggle-icon span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
  .menu-toggle-icon span:first-child { top: 2px; }
  .menu-toggle-icon span:last-child { top: 10px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { top: 6px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { top: 6px; transform: rotate(-45deg); }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 59; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--white); border-top: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list > li { display: block; }
  .nav-link { width: 100%; height: auto; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"], .nav-link.is-active { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 7px; }
  .sub-toggle { display: none; }
  .nav-sub { position: static; display: block; width: auto; visibility: visible; opacity: 1; transform: none; background: none; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .nav-sub-main { padding: 6px 0 4px; }
  .nav-sub-main a { padding: 9px 0; }
  .nav-sub-main a:hover, .nav-sub-main a[aria-current="page"] { background: none; }
  .nav-sub-main a[aria-current="page"] .nav-sub-title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .nav-sub-text, .nav-sub-label, .nav-sub-extra .nav-sub-all { display: none; }
  .nav-sub-extra { padding: 0 0 14px 50px; background: none; }
  .nav-cta { justify-content: space-between; margin-top: 26px; min-height: 54px; }
  .nav-contact { display: grid; gap: 4px; margin-top: 22px; font-size: .9375rem; color: var(--steel); }
  .nav-contact a { color: var(--ink); text-decoration: none; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 900px) {
  .hero-grid, .section-head.split, .media, .split, .person, .career, .contact-layout, .cb-grid, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .media.reverse > .photo { order: 0; }
  .media .photo img, .media .photo.tall img { aspect-ratio: 3 / 2; }
  .person .photo, .career .photo { max-width: 460px; }
  .career .photo img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps.six, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row h3 { max-width: none; }
  .project-list a { grid-template-columns: minmax(0, 1fr) 24px; }
  .project-list .pl-sector, .project-list .pl-main, .project-list .pl-scope { grid-column: 1; }
  .project-list .i { grid-column: 2; grid-row: 1 / 4; }
  .job-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; }
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .trio { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand brand" "firma kontakt" "reg social" "leist alva" "legal legal" "sheet copy"; }
  .fb-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: thin; }
  .fb-list a { padding-right: 22px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  h1, h2 { hyphens: auto; }
  .banner img { aspect-ratio: 1.6; }
  .photo.wide img { aspect-ratio: 1.5; }
  .steps, .steps.six, .steps.three, .benefits, .job-cols, .field-row, .kv-grid { grid-template-columns: minmax(0, 1fr); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .job > summary { grid-template-columns: minmax(0, 1fr); padding-right: 44px; }
  .job-cat { justify-self: start; }
  .job-links a { grid-template-columns: minmax(0, 1fr) 24px; }
  .job-links .jl-meta { grid-column: 1; }
  .job-links .i { grid-column: 2; grid-row: 1 / 3; }
  .logo-item { height: 64px; }
  .logo-item img { height: calc(34px * var(--s, 1)); max-width: calc(150px * var(--w, 1)); }
  .logo-marquee.is-running .logo-item { margin-right: 52px; }
  .cb-person { grid-template-columns: 84px minmax(0, 1fr); padding: 20px; }
  .cb-person img { width: 84px; }
  .actions .button { width: 100%; }
  .hero-side .actions { align-items: stretch; flex-direction: column; }
  .hero-side .actions .link { align-self: flex-start; }
  .sheet { padding: 42px 18px 30px 24px; }
  .sld-feeders { margin-left: calc(var(--axis) - var(--bus) / 2 - 8px); }
  .sld-src .sym-in, .sld-src .sym-trafo { margin-left: -8px; }
  .sld-src .wire { margin-left: calc(var(--axis) - 9px); }
  .feeder-body { display: contents; }
  .feeder-link { grid-template-areas: "circ tag" "circ title" "text text" "more more"; column-gap: 10px; }
  .feeder-circuit .wire:first-child { width: 12px; }
  .feeder-circuit .wire:nth-child(3) { width: 6px; }
  .feeder-circuit .sym-breaker { width: 42px; height: 42px; }
  .feeder-circuit .sym-arrow { width: 16px; height: 16px; }
  .feeder-circuit { height: 42px; }
  .feeder:last-child::before { height: calc(16px + 21px + 3px); }
  .feeder-title { grid-area: title; align-self: start; font-size: 1.125rem; }
  .feeder-text { grid-area: text; padding: 10px 0 0 18px; }
  .feeder-more { grid-area: more; margin: 10px 0 0 18px; }
  .sheet-tb { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .sheet-tb > div { border-left: 0; border-top: 1px solid var(--sheet-border); }
  .sheet-tb > div:first-child { border-top: 0; }
  .sld-bus-label { display: none; }
  .tb-brand img { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

@media print {
  .site-header, .feeder-bar, .skip-link, .menu-toggle, .contact-band .actions, .job-filters, .copy-btn, .form-actions { display: none !important; }
  body { font-size: 11pt; }
  .section { padding-block: 18pt; }
  .sheet, .contact-band { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .sheet h2, .src-text strong, .feeder-title, .cb-main h2, .cb-name { color: #000 !important; }
}
