/* =====================================================================
   TOMEKS TROCKENBAU – Design-System (Redesign 2026)
   Grundlage: Markenbuch Band 2. Ruhe, Präzision, Weißraum, Architektur.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --ink: #111111;            /* Headlines, starke Kontraste, Buttons */
  --anthracite: #3F4348;     /* Primärfarbe der Marke */
  --white: #FFFFFF;
  --surface: #F5F5F3;        /* ruhige Flächen */
  --silver: #A7A9AC;         /* Linien, sekundäre Elemente */
  --text: #2C2F33;           /* Fließtext */
  --muted: #6B6F73;          /* gedämpfter Text */
  --line: #E7E7E4;           /* feine Trennlinien */

  /* Typografie */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstände – 8px-Raster */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-6: 3rem; --sp-8: 4rem; --sp-12: 6rem; --sp-16: 8rem;

  /* Radius & Schatten (sehr dezent) */
  --radius-s: 4px; --radius-m: 6px; --radius-l: 10px;
  --shadow: 0 10px 40px rgba(17,17,17,.06);
  --shadow-hover: 0 18px 60px rgba(17,17,17,.10);

  --container: 1400px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 1.0625rem;      /* ~17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--sp-16) 0; }
.section--tight { padding: var(--sp-12) 0; }
.section--surface { background: var(--surface); }
.section--ink { background: var(--anthracite); color: #e8e9ea; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 1.1rem;
}
.section--ink .eyebrow { color: #9aa0a6; }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--muted); max-width: 60ch; }
.section--ink .lead { color: #c7cace; }

h1, .h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2, .h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section__head { max-width: 720px; margin-bottom: var(--sp-8); }
.section__head.text-center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.9rem; border-radius: var(--radius-m);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, opacity .25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #2b2b2b; transform: translateY(-2px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.btn--on-ink { background: #fff; color: var(--ink); border-color: #fff; }
.btn--on-ink:hover { background: #ececec; transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.header__inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; }
.header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.header__logo img { height: 42px; width: auto; display: block; }

.header__nav { display: flex; align-items: center; gap: .2rem; margin-left: 1.75rem; margin-right: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .9rem; border-radius: var(--radius-s); font-size: .98rem; font-weight: 500;
  color: #fff; opacity: .95; transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}
.nav-link svg { width: 13px; height: 13px; transition: transform .25s ease; }
.nav-link:hover { opacity: 1; background: rgba(255,255,255,.14); }
.nav-item--drop:hover .nav-link svg { transform: rotate(180deg); }
.header__cta { margin-left: 1rem; }
.nav-cta-mobile { display: none; }

/* Dropdown-Panels (Desktop: Hover öffnet, Verlassen schließt) */
.nav-panel {
  position: absolute; top: 100%; left: 0; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: .6rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item--drop:hover .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel a { display: block; padding: .6rem .8rem; border-radius: var(--radius-s); color: var(--anthracite); font-size: .96rem; white-space: nowrap; transition: background-color .15s ease; }
.nav-panel a:hover { background: var(--surface); }
.nav-panel__all { margin-top: .3rem; border-top: 1px solid var(--line); padding-top: .7rem !important; font-weight: 600; color: var(--ink) !important; }
.nav-panel--list { min-width: 280px; }
/* Mega-Panel Referenzen (rechts ausgerichtet, damit es nicht überläuft) */
.nav-panel--mega { left: auto; right: 0; width: 620px; display: grid; grid-template-columns: 240px 1fr; gap: 1rem; }
.nav-feature { display: block; border-radius: var(--radius-m); overflow: hidden; background: var(--surface); padding: 0 0 1rem; }
.nav-feature:hover { background: var(--surface); }
.nav-feature img { width: 100%; height: 140px; object-fit: cover; margin-bottom: .8rem; }
.nav-feature__label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); font-weight: 700; padding: 0 1rem; }
.nav-feature__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); padding: .2rem 1rem 0; letter-spacing: -.01em; }
.nav-feature__info { font-size: .85rem; color: var(--muted); padding: .35rem 1rem 0; white-space: normal; line-height: 1.45; }
.nav-mega__list { display: flex; flex-direction: column; }

/* Heller Header-Zustand (gescrollt / Unterseiten) */
.header.is-solid { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom-color: var(--line); }
.header.is-solid .nav-link { color: var(--anthracite); opacity: 1; }
.header.is-solid .nav-link:hover { background: var(--surface); }
.header.is-solid .header__cta.btn--ghost-light { color: #fff; background: var(--ink); border-color: var(--ink); }
.header.is-solid .header__cta.btn--ghost-light:hover { background: #2b2b2b; }

/* Dezenter Schleier hinter dem transparenten Header – Lesbarkeit über hellen Videobildern */
.header::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,17,17,.5) 0%, rgba(17,17,17,0) 100%);
  opacity: 1; transition: opacity .35s ease;
}
.header.is-solid::after { opacity: 0; }
.header:not(.is-solid) .nav-link { text-shadow: 0 1px 12px rgba(0,0,0,.22); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 6px; width: 46px; height: 46px; margin-left: auto; padding: 11px; background: none; border: 0; cursor: pointer; }
.burger span { height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .25s ease, background-color .3s ease; }
.header.is-solid .burger span { background: var(--ink); }
body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,.35) 40%, rgba(63,67,72,.72) 100%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding-top: var(--header-h); }
.hero__inner { max-width: 900px; }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero .lead { color: rgba(255,255,255,.9); font-size: 1.25rem; max-width: 62ch; margin-bottom: 2.2rem; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero__scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.hero__scroll span { width: 1px; height: 42px; background: rgba(255,255,255,.5); animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity:.3; transform: scaleY(.6); } 50% { opacity:1; transform: scaleY(1); } }

/* ---------- Warum / Feature-Spalten ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.feature__icon { width: 44px; height: 44px; color: var(--anthracite); margin-bottom: 1.2rem; }
.feature__icon svg { width: 100%; height: 100%; stroke-width: 1.6; }
.feature h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,17,17,0) 30%, rgba(17,17,17,.82) 100%); }
.service:hover img { transform: scale(1.05); }
.service__body { padding: 2rem; }
.service__body h3 { color: #fff; font-size: 1.5rem; margin-bottom: .35rem; }
.service__body p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Referenzfilm ---------- */
.filmblock { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16/8; }
.filmblock video { width: 100%; height: 100%; object-fit: cover; }
.filmblock__caption { position: absolute; left: 2rem; bottom: 1.6rem; color: #fff; z-index: 2; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.filmblock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.5) 100%); }

/* ---------- Projekt-Galerie / Karten ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pcard { display: block; background: #fff; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pcard__img { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__body { padding: 1.5rem 1.6rem 1.8rem; }
.pcard__cat { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); font-weight: 600; }
.pcard__title { font-size: 1.4rem; margin: .5rem 0 .4rem; }
.pcard__loc { color: var(--muted); font-size: .95rem; }

/* ---------- Zitat / Qualitätsversprechen ---------- */
.quote { max-width: 960px; margin: 0 auto; text-align: center; }
.quote p { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.3; font-weight: 600; color: #fff; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.quote cite { color: #9aa0a6; font-style: normal; font-size: 1rem; letter-spacing: .04em; }

/* ---------- Projektablauf / Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; counter-reset: step; }
.tstep { position: relative; padding-top: 2.5rem; }
.tstep::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 1.05rem; font-weight: 700; color: var(--anthracite); }
.tstep::after { content: ""; position: absolute; top: .55rem; left: 2.4rem; right: -1rem; height: 1px; background: var(--line); }
.tstep:last-child::after { display: none; }
.tstep h4 { font-size: 1.05rem; margin: 0 0 .35rem; }
.tstep p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Partner-Logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3.5rem; }
.logos img { max-height: 42px; width: auto; filter: grayscale(1); opacity: .6; transition: opacity .3s ease, filter .3s ease; }
.logos img:hover { opacity: 1; filter: none; }

/* ---------- Bewertungen ---------- */
.rating { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; }
.stars { position: relative; font-family: Arial, sans-serif; font-size: 1.6rem; line-height: 1; letter-spacing: 3px; }
.stars__bg { color: #d9dadc; }
.stars__fg { color: #fbbc04; position: absolute; inset: 0; overflow: hidden; white-space: nowrap; }
.rating__meta { color: var(--muted); font-size: 1rem; }
.rating__num { font-weight: 700; color: var(--ink); }

/* ---------- Split (KI-Berater / CTA) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.split__media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--anthracite); color: #c7cace; padding: var(--sp-12) 0 var(--sp-6); }
.footer a { color: #c7cace; transition: color .2s ease; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: var(--sp-8); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__logo img { height: 52px; width: auto; margin-bottom: 1.4rem; }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.footer__col a, .footer__col p { display: block; margin-bottom: .6rem; font-size: .98rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: var(--sp-4); font-size: .88rem; color: #9aa0a6; }
.footer__bottom a { color: #9aa0a6; }

/* ---------- Scroll-Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Cookie-Banner ---------- */
.cookie { position: fixed; left: 1.5rem; bottom: 1.5rem; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 16px 50px rgba(0,0,0,.18); padding: 1.6rem; z-index: 200; transform: translateY(160%); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.cookie.is-visible { transform: none; }
.cookie h4 { font-size: 1.05rem; margin: 0 0 .5rem; }
.cookie p { font-size: .9rem; color: var(--muted); margin: 0 0 1.1rem; }
.cookie p a { color: var(--ink); text-decoration: underline; }
.cookie__row { display: flex; gap: .7rem; }
.cookie .btn { padding: .7rem 1.1rem; font-size: .9rem; flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; }
  .tstep::after { display: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .section { padding: var(--sp-12) 0; }
  .section--tight { padding: var(--sp-8) 0; }
  .container, .header__inner, .footer .container { padding: 0 1.25rem; }
  .header__nav { display: none; }
  .burger { display: flex; }
  .header__cta { display: none; }
  /* backdrop-filter würde den Header zum Bezugsrahmen des fixierten Menüs machen – auf Mobil vermeiden */
  .header.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  /* Mobiles Menü – Dropdowns werden zu offenen Listen */
  .header__nav.is-mobile {
    display: flex; position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 2rem; margin: 0;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: 90;
  }
  body.nav-open .header__nav.is-mobile { transform: none; }
  .header__nav.is-mobile .nav-item { border-bottom: 1px solid var(--line); }
  .header__nav.is-mobile .nav-link { color: var(--ink); font-size: 1.15rem; font-weight: 600; padding: 1rem .25rem; opacity: 1; text-shadow: none; }
  .header__nav.is-mobile .nav-link svg { display: none; }
  /* Panels auf Mobil dauerhaft geöffnet und statisch */
  .header__nav.is-mobile .nav-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 .8rem;
    width: auto; display: block; grid-template-columns: 1fr;
  }
  .header__nav.is-mobile .nav-panel a { padding: .6rem 1rem; font-size: 1rem; }
  .header__nav.is-mobile .nav-feature { display: none; }
  .header__nav.is-mobile .nav-cta-mobile { display: inline-flex; margin-top: 1.6rem; }

  .services { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .filmblock { aspect-ratio: 16/11; }
  .hero .lead { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .cookie { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   UNTERSEITEN – zusätzliche Komponenten
   ===================================================================== */

/* Unterseiten-Hero (anthrazit, damit der transparente weiße Header sitzt) */
.subhero { background: var(--anthracite); color: #fff; padding: calc(var(--header-h) + 5rem) 0 4.5rem; }
.subhero .eyebrow { color: #9aa0a6; }
.subhero h1 { color: #fff; max-width: 18ch; }
.subhero .lead { color: #c7cace; margin-top: 1.2rem; }
.breadcrumb { font-size: .85rem; color: #9aa0a6; margin-bottom: 1.4rem; }
.breadcrumb a { color: #9aa0a6; }
.breadcrumb a:hover { color: #fff; }

/* Filter-Chips (Referenzen) */
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.filter button {
  padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--anthracite); font-weight: 500; font-size: .95rem; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter button:hover { border-color: var(--anthracite); }
.filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pcard.is-hidden { display: none; }

/* Projekt-Detail */
.proj-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-l); }
.proj-layout { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; }
.proj-story h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.proj-story h2:first-child { margin-top: 0; }
.proj-story p { color: var(--text); margin: 0 0 1.1rem; }
.facts { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.8rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.facts h3 { font-size: 1.05rem; margin: 0 0 1.2rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: .9rem; }
.facts dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silver); font-weight: 600; }
.facts dd { margin: .15rem 0 0; font-size: 1rem; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; }
.tag { font-size: .82rem; padding: .3rem .75rem; background: var(--surface); border-radius: 999px; color: var(--anthracite); }
@media (max-width: 900px) { .proj-layout { grid-template-columns: 1fr; gap: 2.5rem; } .facts { position: static; } }

/* Galerie + Lightbox */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-m); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); cursor: zoom-in; }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(17,17,17,.94); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius-m); }
.lightbox__btn { position: fixed; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, transform .2s ease; }
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { display: none; } }

/* Leistungs-Detailblöcke */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.svc:not(:last-child) { margin-bottom: var(--sp-12); }
.svc--flip .svc__media { order: 2; }
.svc__media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__num { font-size: .85rem; letter-spacing: .12em; color: var(--silver); font-weight: 600; }
.svc h2 { font-size: 1.9rem; margin: .4rem 0 1rem; }
.svc ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.svc li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; color: var(--text); }
.svc li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border: 1.5px solid var(--anthracite); border-radius: 50%; }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; gap: 1.5rem; } .svc--flip .svc__media { order: 0; } }

/* Kontaktformular */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form__row { display: flex; flex-direction: column; gap: .45rem; }
.form label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input, .form textarea {
  width: 100%; padding: .95rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-m);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--anthracite); box-shadow: 0 0 0 4px rgba(63,67,72,.08); }
.form textarea { min-height: 150px; resize: vertical; }
.form__file input { padding: .7rem; background: var(--surface); border-style: dashed; cursor: pointer; }
.form__hint { font-size: .82rem; color: var(--muted); }
.form__check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.form__check input { width: auto; margin-top: .3rem; }
.form__check label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.contact-info { background: var(--surface); border-radius: var(--radius-l); padding: 2rem; }
.contact-info h3 { font-size: 1.1rem; margin: 0 0 1.3rem; }
.contact-info__item { display: flex; gap: .85rem; margin-bottom: 1.3rem; }
.contact-info__item svg { flex: 0 0 auto; color: var(--anthracite); margin-top: .1rem; }
.contact-info__label { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--silver); font-weight: 600; }
.contact-info__item a { color: var(--ink); }
.contact-info__item a:hover { color: var(--anthracite); }

/* Karte mit Klick-Zustimmung */
.map { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 21/9; background: var(--surface); border: 1px solid var(--line); }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; padding: 2rem; }
.map__consent p { color: var(--muted); max-width: 440px; margin: 0; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Karriere – Stellenliste */
.joblist { list-style: none; padding: 0; margin: 0; max-width: 780px; }
.joblist li { padding: 1.2rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .8rem; }
.joblist li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--anthracite); flex: 0 0 auto; }

/* Footer – Social Media */
.footer__social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #c7cace; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.footer__social a:hover { background: #fff; color: var(--anthracite); border-color: #fff; }

/* Rechtstexte (Impressum / Datenschutz) */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text); margin: 0 0 1rem; }
.legal a { color: var(--anthracite); text-decoration: underline; }
