/* =========================================================
   Peter Ziebold Malermeister — Zürich
   Struktur nach FARBWERK, Optik nach Ziebold (dunkel, rot/blau)
   gestaltet von loew.me
   ========================================================= */

:root {
  /* Markenfarben aus dem Ziebold-Logo */
  --blue: #2b2d8c;
  --blue-lit: #6d70ff;
  --red: #df2544;
  --red-deep: #b81c36;

  /* dunkle Grundfläche, aus dem Markenblau abgeleitet */
  --bg: #0b0c1e;
  --bg-2: #12142f;
  --panel: #171a3d;
  --panel-2: #1d2049;

  --ink: #f3f1ea;
  --ink-soft: rgba(243, 241, 234, .82);
  --muted: #9a9dbb;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .07);

  --accent: var(--red);
  --accent-ink: #ffffff;

  --maxw: 1240px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 .45em;
}

p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--red); }

::selection { background: var(--red); color: #fff; }

/* Filmkorn über der ganzen Seite — das "Mystische" */
.grain {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .1s linear; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--red); }

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }

.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--red);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 100px;
  border: 2px solid var(--b); background: var(--b);
  color: #fff; font-weight: 600; font-size: .97rem;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(223, 37, 68, .6); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--blue { --b: var(--blue); box-shadow: none; }
.btn--blue:hover { box-shadow: 0 18px 34px -16px rgba(43, 45, 140, .8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }

.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--red); outline-offset: 3px;
}

/* =========================================================
   LOGO
   ========================================================= */
/* Original-Logo (aus der Signatur vektorisiert), Blau für dunklen Grund aufgehellt */
.brand { display: inline-flex; align-items: center; }
.logo {
  display: block; height: 58px; width: auto;
  filter: drop-shadow(0 4px 18px rgba(11, 12, 30, .6));
  transition: height .35s var(--ease);
}
.site-header.scrolled .logo { height: 44px; }
.footer-brand .logo { height: 66px; }
@media (max-width: 560px) { .logo { height: 44px; } }

/* =========================================================
   HEADER + NAVIGATION (mit Unterkategorien)
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  padding: 18px 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 12, 30, .88);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border-radius: 100px;
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-item.active > .nav-link { color: #fff; }
.nav-item.active > .nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav-link .caret {
  width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); opacity: .7;
}
.nav-item:hover .nav-link .caret { transform: translateY(1px) rotate(-135deg); }

.subnav {
  position: absolute; top: 100%; left: 0;
  min-width: 268px; padding: 18px 10px 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  /* Verzögerung nur beim Schliessen: aufklappen sofort, zuklappen nach 0.6 s,
     damit man in Ruhe auf eine Unterkategorie zielen kann. */
  transition: opacity .25s var(--ease) .6s, transform .25s var(--ease) .6s, visibility .25s .6s;
}
/* unsichtbare Brücke über der Lücke — sonst reisst der Hover beim Runterfahren ab */
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; }
.nav-item:hover .subnav, .nav-item:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.nav-item:hover, .nav-item:focus-within { padding-bottom: 14px; margin-bottom: -14px; }
.subnav a {
  display: block; padding: 9px 14px; border-radius: 10px;
  font-size: .93rem; color: var(--ink-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.subnav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav .btn { margin-left: 10px; padding: 11px 20px; }

.hamburger {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; padding: 0; position: relative;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger span::before { transform: translate(-50%, -8px); }
.hamburger span::after { transform: translate(-50%, 6px); }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { transform: translate(-50%, -50%) rotate(45deg); }
.hamburger.open span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* =========================================================
   HERO (Startseite)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(120px, 16vw, 180px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-2); }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-wipe {
  position: absolute; inset: 0; background: rgba(11, 12, 30, .58);
  -webkit-mask: linear-gradient(90deg, #000 var(--wipe, 40%), transparent calc(var(--wipe, 40%) + 24%));
          mask: linear-gradient(90deg, #000 var(--wipe, 40%), transparent calc(var(--wipe, 40%) + 24%));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 28% 60%, transparent 28%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 9rem);
  font-weight: 600; line-height: .96; letter-spacing: -.03em;
  text-shadow: 0 8px 60px rgba(0, 0, 0, .7);
  margin: 0;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--ink-soft); max-width: 34ch; margin: 30px 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint i { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; display: block; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: sweep 2.2s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =========================================================
   SEITEN-HERO (Unterseiten)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(140px, 18vw, 210px) 0 clamp(30px, 5vw, 60px);
}
.page-hero .glow {
  position: absolute; z-index: 0; top: -30%; right: -12%;
  width: 60vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 45, 140, .55), transparent 62%);
  filter: blur(30px);
}
.page-hero .glow--red {
  top: auto; bottom: -40%; right: auto; left: -14%;
  width: 46vw; max-width: 520px;
  background: radial-gradient(circle, rgba(223, 37, 68, .3), transparent 64%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--red); }

/* =========================================================
   ABSCHNITTS-KÖPFE + RASTER
   ========================================================= */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 52px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 17ch; margin: 0; }
.section-head p { max-width: 36ch; margin: 0; color: var(--ink-soft); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Karten ---------- */
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); background: var(--panel-2); }
.card__num { font-size: .8rem; font-weight: 600; color: var(--red); letter-spacing: .12em; }
.card h3 { font-size: 1.4rem; margin-top: 12px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .97rem; }
.card__bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--red); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.card:hover .card__bar { transform: scaleY(1); }
.card__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--red);
  transition: gap .3s var(--ease);
}
.card:hover .card__more { gap: 13px; }
a.card { color: inherit; display: block; }
.card--accent { background: var(--blue); border-color: transparent; }
.card--accent:hover { background: #33359e; }
.card--accent .card__num { color: #fff; }
.card--accent p { color: rgba(255, 255, 255, .86); }
.card--accent .card__more { color: #fff; }

/* =========================================================
   ZAHLENBAND
   ========================================================= */
.stats {
  background: linear-gradient(120deg, var(--blue) 0%, #1a1c62 55%, #121438 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 68px);
}
.stats .grid-4, .stats .grid-5 { gap: 18px; }
.stat__num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 600; line-height: 1; color: #fff; letter-spacing: -.03em;
}
.stat__num .suffix { color: var(--red); }
.stat__label { color: rgba(255, 255, 255, .72); font-size: .95rem; margin-top: 8px; }

/* =========================================================
   SPLIT / FEATURE
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.split__media img, .split__media video { width: 100%; height: 100%; object-fit: cover; }
.split--rev .split__media { order: 2; }
.split h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--ink-soft);
}
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 4px;
  border-radius: 6px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* =========================================================
   LEISTUNGS-DETAIL
   ========================================================= */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(40px, 6vw, 78px) 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 100px;
}
.service-detail:first-of-type { border-top: none; }
.service-detail--rev .service-detail__text { order: 2; }
.service-detail__media {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4;
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.service-detail__media img, .service-detail__media video { width: 100%; height: 100%; object-fit: cover; }
.service-detail__media.block { display: grid; place-items: center; }
.service-detail__media.block .big {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 600;
  color: rgba(255, 255, 255, .92); letter-spacing: -.02em; text-align: center; padding: 0 20px;
}
.service-detail h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
.service-detail p { color: var(--ink-soft); }

.profil-h {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 30px 0 6px;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag-pill {
  font-size: .84rem; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft); background: rgba(255, 255, 255, .04);
}

/* =========================================================
   PROJEKT-GALERIE + LIGHTBOX
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 250px; grid-column: span 4;
  border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer; text-align: left; padding: 0; color: inherit; font: inherit;
  display: block; width: 100%;
}
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 8; }
.tile.half { grid-column: span 6; }
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px;
  background: linear-gradient(to top, rgba(8, 9, 22, .92), transparent);
  color: var(--ink);
}
.tile__cap .tag { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tile__cap h3 { font-size: 1.25rem; margin: 5px 0 0; }
.tile__zoom {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(11, 12, 30, .6); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile:hover .tile__zoom, .tile:focus-visible .tile__zoom { opacity: 1; transform: scale(1); }
.tile__zoom::before, .tile__zoom::after { content: ""; position: absolute; background: var(--ink); }
.tile__zoom::before { width: 14px; height: 2px; }
.tile__zoom::after { width: 2px; height: 14px; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 7, 18, .9); backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox__inner {
  position: relative; width: min(1080px, 100%); max-height: 88vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.35fr .65fr;
}
.lightbox__media { background: var(--bg-2); min-height: 320px; }
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__body { padding: clamp(24px, 3vw, 40px); }
.lightbox__body .tag { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.lightbox__body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 8px 0 14px; }
.lightbox__body p { color: var(--ink-soft); }
.lightbox__meta { list-style: none; padding: 0; margin: 20px 0 0; }
.lightbox__meta li { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: .93rem; }
.lightbox__meta strong { min-width: 96px; color: var(--muted); font-weight: 500; }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(11, 12, 30, .7); border: 1px solid var(--line);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__close:hover { background: var(--red); border-color: var(--red); }
.lightbox__nav {
  position: absolute; bottom: 18px; right: 18px; z-index: 3; display: flex; gap: 8px;
}
.lightbox__nav button {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(11, 12, 30, .7); border: 1px solid var(--line);
  color: var(--ink); cursor: pointer; font-size: 1.1rem;
}
.lightbox__nav button:hover { background: var(--red); border-color: var(--red); }

/* =========================================================
   CTA-BANNER
   ========================================================= */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(130deg, var(--red) 0%, #c01f3a 48%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 88px);
}
.cta h2 { font-size: clamp(2.1rem, 5.6vw, 4rem); color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 48ch; margin: 0 auto 30px; }
.cta .btn { --b: #0b0c1e; border-color: #0b0c1e; }
.cta .btn:hover { box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .7); }
.cta .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.cta .btn--ghost:hover { background: #fff; color: var(--red); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   TEAM
   ========================================================= */
.person {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.person__photo {
  aspect-ratio: 4 / 5; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--blue), #171a3d);
  display: grid; place-items: center;
}
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__photo .initials {
  font-family: "Fraunces", Georgia, serif; font-size: 2.6rem; font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.person__photo .placeholder-note {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); text-align: center;
}
.person__body { padding: 22px; }
.person h3 { font-size: 1.25rem; margin: 0; }
.person .role { color: var(--red); font-weight: 600; font-size: .92rem; }
.person p { color: var(--ink-soft); margin: 12px 0 0; font-size: .94rem; }

/* =========================================================
   OFFENE STELLEN
   ========================================================= */
.job {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  margin-bottom: 18px;
}
.job:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(223, 37, 68, .5); }
.job h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 6px; }
.job p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.job .job-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .04); color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 241, 234, .35); }
.field input:focus, .field textarea:focus { border-color: var(--red); background: rgba(255, 255, 255, .07); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status { font-size: .95rem; }

.info-block {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-bottom: 18px;
}
.info-block h3 { font-size: 1.15rem; }
.info-row { display: flex; gap: 14px; padding: 8px 0; color: var(--ink-soft); }
.info-row strong { color: var(--ink); min-width: 78px; font-weight: 500; }
.info-row a:hover { color: var(--red); }

.map {
  border-radius: var(--radius); overflow: hidden; height: 250px; position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(43, 45, 140, .35), rgba(223, 37, 68, .18)),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 44px),
    var(--bg-2);
  display: grid; place-items: center;
}
.map__pin {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--ink);
  padding: 12px 20px; border-radius: 100px; font-weight: 600;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map__pin::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }

/* =========================================================
   KARTE (Leaflet, zwei Standorte)
   ========================================================= */
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow);
}
.map-live { height: clamp(300px, 46vh, 460px); width: 100%; background: var(--bg-2); }
.map-live .leaflet-container { background: var(--bg-2); font-family: "Inter", sans-serif; }
/* Die OSM-Kacheln sind hell — hier dunkel eingefärbt, damit sie zur Seite passen */
.map-live .leaflet-tile-pane { filter: invert(1) hue-rotate(190deg) brightness(.92) contrast(.9) saturate(.7); }
.map-live .leaflet-control-attribution {
  background: rgba(11, 12, 30, .8); color: var(--muted); font-size: 11px;
}
.map-live .leaflet-control-attribution a { color: var(--muted); }
.map-pin {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--red); border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
  font-weight: 700; font-size: .8rem; color: #fff;
}
.map-pin span { transform: rotate(45deg); }
.map-pin--blue { background: var(--blue-lit); }
.map-fallback { padding: 24px; color: var(--ink-soft); }
.map-legend { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.map-legend__item {
  display: block; padding: 18px 22px; color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.map-legend__item + .map-legend__item { border-left: 1px solid var(--line); }
.map-legend__item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.map-legend__item strong { display: block; color: var(--red); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.map-legend__item span { font-size: .95rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #08091a; border-top: 1px solid var(--line-soft);
  padding: clamp(54px, 8vw, 92px) 0 28px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
  padding-bottom: 46px; border-bottom: 1px solid var(--line-soft);
}
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: 18px; font-size: .95rem; }
.footer-col h4 {
  font-family: "Inter", sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; color: var(--ink-soft); padding: 5px 0; margin: 0; font-size: .95rem; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; font-size: .84rem; color: var(--muted);
}

/* =========================================================
   SCHRIFT-VARIANTE  ?schrift=modern
   Überschriften in einer modernen Grotesk statt der Serifenschrift.
   ========================================================= */
html.schrift-modern h1,
html.schrift-modern h2,
html.schrift-modern h3,
html.schrift-modern h4,
html.schrift-modern .stat__num,
html.schrift-modern .big,
html.schrift-modern .lightbox__body h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
}
html.schrift-modern .hero h1 { font-weight: 700; }

/* =========================================================
   SCROLL-REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 1040px) {
  .nav-link { padding: 10px 11px; font-size: .9rem; }
}

@media (max-width: 940px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .lightbox__inner { grid-template-columns: 1fr; }
  .lightbox__media { min-height: 240px; max-height: 46vh; }
}

@media (max-width: 880px) {
  .hamburger { display: block; }
  /* Wichtig: Die Kopfzeile darf auf dem Handy weder backdrop-filter noch filter
     oder transform tragen. Jede dieser Eigenschaften macht sie zum Bezugsrahmen
     für das position:fixed-Menü — das Menü klebte dann in der Kopfzeile fest und
     war abgeschnitten (iOS Safari). Deshalb hier stattdessen deckende Farbe. */
  .site-header,
  .site-header.scrolled {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    filter: none;
    transform: none;
  }
  .site-header.scrolled { background: rgba(11, 12, 30, .96); }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; overflow-y: auto;
    background: var(--bg-2); border-left: 1px solid var(--line);
    padding: calc(env(safe-area-inset-top, 0px) + 84px) 20px
             calc(env(safe-area-inset-bottom, 0px) + 32px);
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .8);
    z-index: 90;
  }
  .nav.open { transform: translateX(0); }
  .nav-item { width: 100%; }
  .nav-link { padding: 11px 16px; font-size: 1.02rem; border-radius: 12px; }
  .nav-item.active > .nav-link { background: rgba(255, 255, 255, .06); }
  .nav-item.active > .nav-link::after { display: none; }
  .nav-link .caret { display: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 8px 16px; min-width: 0;
  }
  .subnav a { padding: 7px 12px; font-size: .93rem; color: var(--muted); }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split, .service-detail { grid-template-columns: 1fr; }
  .split--rev .split__media, .service-detail--rev .service-detail__text { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.half { grid-column: span 2; }
  .tile.tall { grid-row: span 1; }
  .job { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .map-legend { grid-template-columns: 1fr; }
  .map-legend__item + .map-legend__item { border-left: none; border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.half { grid-column: span 1; }
}

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