/* Steinbrecher Ingenieurgesellschaft – Website
   Farben und Typografie nach der bisherigen Squarespace-Seite:
   Anthrazit #1f2124, Off-White #f9f9f7, Akzentrot aus dem Logo. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1f2124;
  --ink-2: #26292d;
  --ink-3: #2f3338;
  --black: #0d0d0d;
  --paper: #f9f9f7;
  --paper-2: #efeee9;
  --red: #ef0a10;
  --red-dark: #c40008;
  --on-dark: #f9f9f7;
  --on-dark-muted: #b3b5b8;
  --on-light: #1f2124;
  --on-light-muted: #575a5f;
  --line-dark: rgba(249, 249, 247, 0.16);
  --line-light: rgba(31, 33, 36, 0.14);

  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
  --header-h: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 2.2rem); }
h4 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
strong, b { font-weight: 500; }
ul { padding-left: 1.2em; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--light { background: var(--paper); color: var(--on-light); }
.section--light2 { background: var(--paper-2); color: var(--on-light); }
.section--black { background: var(--black); }
.section--light a:hover, .section--light2 a:hover { color: var(--red-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 20px; color: var(--on-dark-muted);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.section--light .eyebrow, .section--light2 .eyebrow { color: var(--on-light-muted); }

.lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; font-weight: 300; max-width: 60ch; }
.muted { color: var(--on-dark-muted); }
.section--light .muted, .section--light2 .muted { color: var(--on-light-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font: 500 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.section--light .btn:hover, .section--light2 .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.textlink { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); /* kein backdrop-filter: würde das fixierte Mobilmenü auf den Header begrenzen */
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 0.98rem; font-weight: 400; padding: 8px 12px; border-radius: 999px;
  color: var(--on-dark);
}
.nav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav a:hover { color: var(--red); }
.nav .btn { margin-left: 12px; padding: 11px 20px; }
.nav .btn:hover { color: var(--ink); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--on-dark);
  border-radius: 999px; padding: 10px 16px; font: 500 0.95rem/1 var(--font-body); cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 16px; height: 10px; margin-left: 8px; vertical-align: middle;
  background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 40px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; padding: 14px 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .nav .btn { margin: 28px 0 0; justify-content: center; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid currentColor; border-radius: 999px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 1080px) { :root { --header-h: 78px; } .brand img { height: 54px; } }
@media (max-width: 420px) { .brand img { height: 50px; } .site-header .wrap { gap: 12px; } }
@media (max-width: 350px) { .brand img { height: 48px; } .menu-toggle { padding: 10px 12px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--black); }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,13,0.72) 0%, rgba(13,13,13,0.35) 55%, rgba(13,13,13,0.1) 100%), linear-gradient(180deg, rgba(13,13,13,0.1) 0%, rgba(13,13,13,0.2) 45%, rgba(13,13,13,0.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 14ch; margin-bottom: 0.3em; }
.hero .kicker { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 1.7vw, 1.5rem); margin: 0 0 18px; color: var(--on-dark); display: flex; align-items: center; gap: 12px; }
.hero .kicker::before { content: ""; width: 40px; height: 3px; background: var(--red); }
.hero p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 300; max-width: 52ch; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: 0.75rem; color: var(--on-dark-muted); }

.page-hero { padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-dark); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { color: var(--on-dark-muted); }

/* ---------- Ticker (Leistungsband wie bisher) ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--red-dark); }
.ticker__track { display: inline-flex; gap: 0; animation: ticker 60s linear infinite; padding: 14px 0; }
.ticker span { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 18px; }
.ticker span::after { content: "✦"; margin-left: 36px; font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; flex-wrap: wrap; white-space: normal; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; }

/* Leistungs-/Spartenkarten */
.service {
  border-top: 1px solid var(--line-dark); padding: 28px 0 8px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px);
}
.section--light .service, .section--light2 .service { border-color: var(--line-light); }
.service h3 { margin-bottom: 0.4em; }
.service .tag { font-size: 0.85rem; color: var(--on-dark-muted); font-weight: 400; }
.section--light .service .tag { color: var(--on-light-muted); }
.service ul.checks { columns: 2; column-gap: 32px; }
@media (max-width: 860px) { .service { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .service ul.checks { columns: 1; } }

ul.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.checks li { position: relative; padding: 6px 0 6px 22px; break-inside: avoid; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 2px; background: var(--red); }

.tile {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--ink-2); border: 1px solid var(--line-dark);
  text-decoration: none; border-radius: var(--radius); transition: border-color 0.2s, transform 0.2s; height: 100%;
}
.tile:hover { border-color: var(--red); color: inherit; }
.tile h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); margin: 0; }
.tile p { margin: 0; color: var(--on-dark-muted); font-size: 0.98rem; }
.tile .num { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 0.95rem; }
.section--light .tile { background: #fff; border-color: var(--line-light); }
.section--light .tile p { color: var(--on-light-muted); }

/* Projektkarten */
.pcard { display: flex; flex-direction: column; text-decoration: none; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); height: 100%; transition: border-color 0.2s; }
.pcard, .pcard:hover { color: var(--on-dark); }
.pcard:hover { border-color: var(--red); }
.pcard__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pcard:hover .pcard__img img { transform: scale(1.03); }
.pcard__img--empty { display: grid; place-items: center; }
.pcard__img--empty img { width: 64px; height: auto; opacity: 0.5; object-fit: contain; }
.pcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__client { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 500; }
.pcard h3 { font-size: clamp(1.2rem, 1.5vw, 1.45rem); margin: 0; }
.pcard__meta { margin-top: auto; padding-top: 10px; font-size: 0.92rem; color: var(--on-dark-muted); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-block; font-size: 0.78rem; padding: 4px 10px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--on-dark-muted); }
.section--light .chip { border-color: var(--line-light); color: var(--on-light-muted); }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  font: 400 0.95rem/1 var(--font-body); color: var(--on-dark); background: transparent; border: 1px solid var(--line-dark);
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.filters button:hover { border-color: var(--on-dark); }
[data-hidden="true"] { display: none !important; }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.facts div { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.25; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.bignum { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; color: var(--on-dark); }
.bignum span { color: var(--red); }

/* Projekt-Detail */
.project-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.project-meta div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.project-meta dt { color: var(--on-dark-muted); font-size: 0.9rem; }
.project-meta dd { margin: 0; }
@media (max-width: 480px) { .project-meta div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin: 4px 0; }
.note { font-size: 0.9rem; color: var(--on-dark-muted); border-left: 2px solid var(--red); padding: 4px 0 4px 14px; max-width: 68ch; }
.section--light .note { color: var(--on-light-muted); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; grid-column: span 4; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.gallery figure.wide { grid-column: span 8; }
.gallery figure.full { grid-column: span 12; }
.gallery figure.half { grid-column: span 6; }
.gallery a { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery figure.tall img { aspect-ratio: 3 / 4; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 0.85rem; background: linear-gradient(transparent, rgba(13,13,13,0.8)); color: #fff; }
@media (max-width: 760px) { .gallery figure, .gallery figure.wide, .gallery figure.half { grid-column: span 12; } .gallery figure.tall img { aspect-ratio: 3 / 2; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(13,13,13,0.95); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: center; color: var(--on-dark-muted); font-size: 0.9rem; }
.lightbox button { position: absolute; background: none; border: 1px solid var(--line-dark); color: #fff; border-radius: 999px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; }
.lightbox .lb-close { top: 10px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Logos der Auftraggeber */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.logos figure { margin: 0; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px 14px; }
.logos .logo-box { height: 64px; width: 100%; display: flex; align-items: center; justify-content: center; }
.logos img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter 0.25s, opacity 0.25s; }
.logos img.wide { width: 100%; max-height: none; }
.logos figure:hover img { filter: none; opacity: 1; }
.logos figcaption { font-size: 0.78rem; line-height: 1.25; color: var(--on-light-muted); text-align: center; }
@media (hover: none) { .logos img { filter: none; opacity: 1; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { margin: 0; }
.person img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--ink-3); filter: grayscale(0.15); }
.person figcaption { padding-top: 14px; }
.person .name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1.3vw, 1.25rem); display: block; line-height: 1.2; }
.person .role { display: block; color: var(--on-dark-muted); font-size: 0.95rem; margin-top: 4px; }
.person .degree { display: block; color: var(--on-dark-muted); font-size: 0.85rem; margin-top: 2px; }

/* Standorte */
.site-card { border-top: 2px solid var(--red); padding-top: 22px; }
.site-card .n { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 1rem; }
.site-card h3 { font-size: clamp(1.2rem, 1.5vw, 1.45rem); margin: 8px 0 12px; }
.site-card p { margin: 0 0 6px; color: var(--on-dark-muted); }
.section--light .site-card p { color: var(--on-light-muted); }

/* Tabelle weitere Referenzen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.refs { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
table.refs th { text-align: left; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-dark); }
table.refs td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
table.refs td:first-child { font-weight: 500; }
@media (max-width: 640px) {
  table.refs { min-width: 0; }
  table.refs thead { display: none; }
  table.refs tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  table.refs td { display: block; padding: 2px 0; border: 0; }
  table.refs td[data-label]::before { content: attr(data-label) ": "; color: var(--on-dark-muted); }
}

/* Software */
.feature { border-left: 2px solid var(--red); padding: 4px 0 4px 20px; }
.feature h4 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--on-dark-muted); font-size: 0.98rem; }
.mock { background: var(--black); border: 1px solid var(--line-dark); border-radius: 8px; padding: clamp(16px, 2.5vw, 28px); font-size: 0.85rem; }
.mock__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.mock__row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.mock__row b { font-weight: 500; color: var(--on-dark-muted); font-size: 0.8rem; }
.mock__lane { position: relative; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line-dark) calc(10% - 1px) 10%); border-radius: 3px; }
.mock__lane span { position: absolute; top: 3px; height: 16px; border-radius: 3px; background: var(--ink-3); border: 1px solid rgba(255,255,255,0.2); }
.mock__lane span.ok { background: #2f6b4a; border-color: #3f8a61; }
.mock__lane span.warn { background: #8a6a12; border-color: #b08716; }
.mock__lane span.late { background: #8d1a1a; border-color: var(--red); }
.mock__lane em { position: absolute; top: -2px; width: 2px; height: 26px; background: var(--red); }
.mock__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: var(--on-dark-muted); font-size: 0.78rem; }
.mock__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* Kontakt */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.contact-list span { color: var(--on-dark-muted); font-size: 0.9rem; }
.contact-list a { font-size: 1.15rem; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.cta { background: var(--black); padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line-dark); }
.cta h2 { max-width: 16ch; }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); margin-top: 1.8em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal dl { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 20px; margin: 0 0 1.5em; }
.legal dt { color: var(--on-dark-muted); }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* Footer */
.site-footer { background: var(--black); border-top: 1px solid var(--line-dark); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.site-footer h4 { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer address { font-style: normal; color: var(--on-dark-muted); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--on-dark-muted); font-size: 0.85rem; }
.footer-bottom ul { display: flex; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Hilfsklassen */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 24px; }
.divider { height: 1px; background: var(--line-dark); margin: clamp(40px, 6vw, 80px) 0; border: 0; }
.breadcrumb { font-size: 0.9rem; color: var(--on-dark-muted); margin-bottom: 24px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { margin: 0 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reveal { opacity: 1; }

.nw { white-space: nowrap; }

.checks--2 { columns: 2; column-gap: 32px; }
@media (max-width: 480px) { .checks--2 { columns: 1; } }
.person .ph { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--ink-3); display: grid; place-items: center; }
.person .ph img { width: 72px; height: auto; aspect-ratio: auto; background: none; filter: none; opacity: 0.55; }

/* Verlinkte Chips (Leistungsbereiche) */
.chip--link { text-decoration: none; font-size: 0.85rem; padding: 7px 13px; transition: border-color 0.2s, color 0.2s; }
.chip--link:hover { border-color: var(--red); color: var(--on-dark); }
.section--light .chip--link:hover { color: var(--on-light); }

/* Karussell */
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.carousel__btn:hover { border-color: var(--red); color: var(--red); }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.carousel::-webkit-scrollbar { display: none; }
.carousel__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.carousel__item { flex: 0 0 clamp(260px, 38vw, 520px); scroll-snap-align: start; }
.carousel__item a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.carousel__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.carousel__item a:hover img { transform: scale(1.03); }
.carousel__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(transparent, rgba(13,13,13,0.85)); color: #fff; font-size: 0.95rem; }
@media (max-width: 640px) { .carousel__item { flex-basis: 85vw; } .carousel__nav { display: none; } }

/* Tabs und Bauphasen-Vergleich */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.tabs__list button { font: 500 0.95rem/1 var(--font-body); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; color: var(--on-light); cursor: pointer; }
.tabs__list button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs__panel[hidden] { display: none; }
.phase-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.phase-head small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--on-light-muted); }
.phase-row { border-top: 1px solid var(--line-light); padding: 16px 0; }
.phase-row h4 { margin: 0 0 12px; }
.phase-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phase-pair figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.phase-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phase-pair figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; font-size: 0.8rem; color: #fff; background: linear-gradient(transparent, rgba(13,13,13,0.8)); }
@media (min-width: 1000px) { .phase-pair img { aspect-ratio: 16 / 10; } }

/* Kontaktformular (öffnet das E-Mail-Programm) */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 24px; }
.form__full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--on-dark-muted); }
.form input, .form textarea, .form select { font: 400 1rem/1.4 var(--font-body); color: var(--on-dark); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--red); }
.form textarea { resize: vertical; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.section-head > * { min-width: 0; }
.section--light .pcard:hover, .section--light2 .pcard:hover { color: var(--on-dark); }
.section--light .pcard .muted, .section--light2 .pcard .muted { color: var(--on-dark-muted); }

/* Projektkachel: Titel und Leistungen beim Überfahren */
.pcard__img { position: relative; }
.pcard__hover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px; background: linear-gradient(180deg, rgba(13,13,13,0.15), rgba(13,13,13,0.88)); color: #fff; opacity: 0; transition: opacity 0.25s; }
.pcard__hover-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.pcard__hover-list { font-size: 0.88rem; color: #e6e6e3; }
.pcard__hover-list::before { content: ""; display: block; width: 28px; height: 2px; background: var(--red); margin-bottom: 8px; }
.pcard:hover .pcard__hover, .pcard:focus-visible .pcard__hover { opacity: 1; }
@media (hover: none) { .pcard__hover { display: none; } }

/* Bauphasen-Schieberegler (JS schaltet ein; ohne JS stehen die Bilder nebeneinander) */
.phase-pair.is-slider { display: block; position: relative; border-radius: var(--radius); overflow: hidden; --pos: 50%; }
.phase-pair.is-slider figure { position: absolute; inset: 0; border-radius: 0; }
.phase-pair.is-slider figure:first-child { position: relative; z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.phase-pair.is-slider figure:last-of-type { z-index: 0; }
.phase-pair.is-slider img { aspect-ratio: 16 / 9; height: 100%; }
.phase-pair.is-slider figcaption { display: none; }
.phase-pair.is-slider a { pointer-events: none; }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.compare__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare__range:focus-visible + .compare__line { box-shadow: 0 0 0 3px var(--red); }
.compare__tag { position: absolute; top: 12px; z-index: 2; background: rgba(13,13,13,0.75); color: #fff; font-size: 0.8rem; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.compare__tag--a { left: 12px; }
.compare__tag--b { right: 12px; }
@media (max-width: 640px) { .phase-pair.is-slider img { aspect-ratio: 4 / 3; } }

/* Bewegung reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .pcard:hover .pcard__img img, .carousel__item a:hover img { transform: none; }
}
.tabs__panel:has(.is-slider) .phase-head { display: none; }
.section--light .tile--dark, .tile--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.section--light .tile--dark p, .tile--dark p { color: var(--on-dark-muted); }
.tile--dark:hover { border-color: var(--red); }

/* Titelbilder im Wechsel (Startseite) */
.hero__slides img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 8s ease-out; }
.hero__slides img.is-active { opacity: 1; transform: none; }
.hero__pause { position: absolute; right: var(--gutter); bottom: 16px; z-index: 2; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(13, 13, 13, 0.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero__pause[hidden] { display: none; }
.hero__pause:hover, .hero__pause:focus-visible { border-color: var(--red); }
.hero__pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero__pause .i-play, .hero__pause.is-paused .i-pause { display: none; }
.hero__pause.is-paused .i-play { display: block; }
@media (prefers-reduced-motion: reduce) { .hero__slides img { transition: none; transform: none; } }

/* Abschnitt mit Hintergrundbild (Stadtbüro) */
.cta--img { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 176px) 0; }
.cta__img { position: absolute; inset: 0; }
.cta__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.cta--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.78) 45%, rgba(13, 13, 13, 0.6) 100%); }
@media (max-width: 860px) { .cta--img::after { background: rgba(13, 13, 13, 0.8); } }
.cta--img .wrap { position: relative; z-index: 1; }
.cta__credit { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; margin: 0; font-size: 0.75rem; color: var(--on-dark-muted); }
.hero .hero__credit { font-size: 0.75rem; font-weight: 400; max-width: none; margin: 0; }

/* Hinweis „Wir stellen ein“ im Titelbereich der Startseite */
.hero .hiring { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; background: rgba(13, 13, 13, 0.55); color: #fff; font-size: 0.95rem; font-weight: 600; text-decoration: none; max-width: 100%; }
.hero .hiring:hover, .hero .hiring:focus-visible { border-color: var(--red); color: #fff; }
.hiring__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Standort: zwei Bilder nebeneinander auf der Startseite */
.duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
.duo a { display: block; border-radius: var(--radius); overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.6s ease; }
.duo a:last-child img { aspect-ratio: auto; }
.duo a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .duo img { transition: none; } }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.job-tile .textlink { margin-top: auto; color: var(--red); font-weight: 600; }

/* ---------- Code-Gestaltung (Software) ---------- */
:root { --code-bg: #15171a; --c-kw: #ff6b6b; --c-fn: #7cc4ff; --c-str: #a6d98a; --c-num: #f5b85b; --c-com: #8b939c; --c-text: #e6e6e3; }
.has-codebg { position: relative; overflow: hidden; }
.has-codebg > .wrap { position: relative; z-index: 1; }
.codebg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.25), #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,0.25), #000 70%); }
.codebg__track { animation: codebg-scroll 80s linear infinite; }
.codebg pre { margin: 0; padding: 0 0 0 52%; font: 400 0.82rem/1.9 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--c-text); white-space: pre; }
.codebg .ln { display: block; min-height: 1.9em; opacity: 0.13; }
.codebg .ln:nth-child(7n+3) { animation: codebg-lit 11s ease-in-out infinite; }
.codebg .ln:nth-child(11n+6) { animation: codebg-lit 13s ease-in-out 4s infinite; }
.codebg .ln:nth-child(13n+9) { animation: codebg-lit 9s ease-in-out 7s infinite; }
@keyframes codebg-scroll { to { transform: translateY(-50%); } }
@keyframes codebg-lit { 0%, 70%, 100% { opacity: 0.13; } 82% { opacity: 0.55; } }
.is-offscreen .codebg__track, .is-offscreen .codebg .ln { animation-play-state: paused; }
@media (max-width: 860px) { .codebg pre { padding-left: 0; } .codebg { -webkit-mask-image: none; mask-image: none; opacity: 0.6; } }
.page-hero--code { background: var(--black); }

.code { margin: 0; background: var(--code-bg); border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.code__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line-dark); background: #1b1d21; }
.code__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d43; }
.code__bar i:first-child { background: var(--red); }
.code__bar span { margin-left: 10px; font: 0.78rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--c-com); }
.code__body { margin: 0; padding: 18px 18px 10px; font: 400 0.86rem/1.65 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--c-text); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.code__body .ln { display: block; min-height: 1.65em; }
.c-kw { color: var(--c-kw); } .c-fn { color: var(--c-fn); } .c-str { color: var(--c-str); } .c-num { color: var(--c-num); } .c-com { color: var(--c-com); font-style: italic; }
.code__cursor { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--red); animation: code-blink 1s steps(1) infinite; }
@keyframes code-blink { 50% { opacity: 0; } }
.code__term { border-top: 1px solid var(--line-dark); padding: 12px 18px 14px; font: 0.8rem/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #c9cdd2; min-height: calc(4 * 1.7em + 26px); }
.code__term p { margin: 0; max-width: none; transition: opacity 0.3s; }
.code__term p.is-hidden { opacity: 0; }
.code__prompt { color: var(--red); }
.code__ok { color: var(--c-str); }
.code__note { margin: 10px 0 0; font-size: 0.8rem; color: var(--on-dark-muted); }
@media (max-width: 640px) { .code__body { font-size: 0.78rem; padding: 14px 12px 8px; } .code__term { padding: 10px 12px 12px; font-size: 0.74rem; } }
@media (prefers-reduced-motion: reduce) { .codebg__track, .codebg .ln, .code__cursor { animation: none; } }

/* Logo eines Auftraggebers auf heller Fläche */
.client-logo { display: inline-flex; align-items: center; max-width: 100%; margin: 0 0 22px; padding: 10px 14px; background: #fff; border-radius: 6px; }
.client-logo img { height: 34px; width: auto; max-width: 100%; }
.client-logo--hero { margin: 24px 0 0; }
@media (max-width: 420px) { .client-logo img { height: 28px; } }

/* Kennzeichnung von Symbolbildern auf Projektkacheln */
.pcard__note { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 4px 9px; border-radius: 4px; background: rgba(13, 13, 13, 0.72); color: #fff; font-size: 0.75rem; line-height: 1.3; }
