/* ============================================================
   ADEMI-INGENIEURE — Corporate Site
   Swiss minimalism · Building Services Engineering · Zürich
   ============================================================ */

:root {
  --primary: #0097b2;
  --primary-hover: #00819a;
  --dark: #1a1a1a;
  --dark-soft: #232323;
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f4f4f4;
  --grey-200: #e6e6e6;
  --grey-400: #9a9a9a;
  --grey-600: #5b5b5b;
  --text: #1a1a1a;
  --text-muted: #5b5b5b;

  --max: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 6vw, 88px);

  --ff: "Barlow", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: 0.005em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
}

.section-title-wrap {
  margin-bottom: 44px;
  max-width: 760px;
}
.section-title-wrap h2 + p {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 60ch;
}

.rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin: 24px 0 28px;
  border: 0;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Hero override ---------- */
.hero { min-height: 86vh; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  cursor: pointer;
}
.btn .arr {
  width: 14px; height: 1px; background: currentColor; position: relative;
  transition: width .25s ease;
}
.btn .arr::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arr { width: 22px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-on-dark { background: transparent; border-color: #fff; color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--dark); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--primary);
  transition: gap .2s ease, color .2s ease;
}
.text-link:hover { gap: 14px; color: var(--primary-hover); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 1);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff);
}
.nav-logo img {
  height: 40px; width: 40px;
  object-fit: contain;
}
.nav-logo .lockup {
  display: flex; flex-direction: column; line-height: 1;
}
.nav-logo .lockup .brand {
  color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 0.14em;
}
.nav-logo .lockup .tag {
  color: var(--grey-400); font-size: 10px; letter-spacing: 0.22em; margin-top: 4px; text-transform: uppercase;
}

.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 40px;
}
.nav-list a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: color .2s ease;
}
.nav-list a:hover { color: #fff; }
.nav-list a.active { color: #fff; }
.nav-list a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--primary);
}

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--primary-hover); }

.hamburger {
  display: none;
  width: 32px; height: 32px;
  background: transparent; border: 0;
  position: relative;
}
.hamburger span {
  position: absolute; left: 4px; right: 4px; height: 1.5px; background: #fff;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 16px; }
.hamburger span:nth-child(3) { top: 21px; }
.hamburger.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-list, .nav-right .nav-cta { display: none; }
  .hamburger { display: block; }
  .mobile-menu.open { display: block; }
}

.mobile-menu {
  display: none;
  position: fixed; inset: 76px 0 0 0;
  background: var(--dark);
  z-index: 49;
  padding: 40px var(--pad-x);
}
.mobile-menu ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu .nav-cta { display: inline-flex; margin-top: 28px; }

/* Spacer used at top of interior pages where the big page-hero was removed.
   Pushes content below the fixed 76px header with breathing room. */
.page-top { padding-top: 120px; }
.page-top + section { padding-top: 24px; }
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 140px var(--pad-x) 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 85% 30%, rgba(0,151,178,0.10), transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, #161616 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-weight: 200; }
.page-hero .crumb {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}
.page-hero .crumb span { color: var(--primary); }
.page-hero .crumb a:hover { color: #fff; }
.page-hero .rule { margin: 32px 0 0; }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero video,
.hero .hero-bg,
.hero .hero-slideshow {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .hero-bg {
  background:
    linear-gradient(120deg, rgba(0,151,178,0.18) 0%, transparent 40%),
    url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=2400&q=80") center/cover no-repeat;
  filter: grayscale(0.3) contrast(1.05);
  animation: heroFloat 30s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero .overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.45) 0%, rgba(20,20,20,0.78) 100%);
  z-index: 1;
}
.hero .container {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 80px;
  width: 100%;
}
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.hero-meta .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; display: inline-block; }
.hero h1 {
  color: #fff;
  font-weight: 200;
  max-width: 16ch;
  margin-bottom: 28px;
}
.hero .subline {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  max-width: 52ch;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-corner {
  position: absolute; right: var(--pad-x); bottom: 36px;
  z-index: 2;
  display: flex; align-items: center; gap: 28px;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-corner .num { color: #fff; font-size: 13px; }
.hero-corner .bar { width: 40px; height: 1px; background: rgba(255,255,255,0.3); }

@media (max-width: 700px) {
  .hero-corner { display: none; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: var(--section-y) 0; }
.section-grey { background: var(--grey-100); }
.section-dark { background: var(--dark); color: #fff; }

/* --- Services --- */
.services-head {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 48px;
}
.services-head h2 { word-break: keep-all; overflow-wrap: normal; hyphens: none; }
.services-head .number {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--primary);
}
.services-head p {
  color: var(--text-muted); font-size: 17px; max-width: 50ch; margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--grey-200);
}
.service {
  padding: 40px 32px 36px;
  border-bottom: 2px solid var(--primary);
  border-right: 1px solid var(--grey-200);
  transition: background .25s ease;
  position: relative;
}
.service:last-child { border-right: 0; }
.service:hover { background: #fff; }
.service .num {
  font-size: 12px; letter-spacing: 0.2em;
  color: var(--grey-400); margin-bottom: 40px;
}
.service .icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--primary);
}
.service h3 {
  margin-bottom: 16px;
  font-weight: 400;
}
.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
}
.service .more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  color: var(--primary);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 2px solid var(--primary); }
  .services-head { grid-template-columns: 1fr; gap: 24px; }
}

/* --- About preview (2-col) --- */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-split .img-wrap {
  position: relative; aspect-ratio: 4/5;
  background: var(--grey-200) center/cover no-repeat;
}
.about-split .img-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}
.about-split .img-wrap.about-home {
  background-image: url("about-workstation.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.about-split .img-wrap::after {
  content: ""; position: absolute; left: -20px; bottom: -20px;
  width: 120px; height: 120px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}
.about-split h2 { margin-bottom: 24px; }
.about-split p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 56ch;
}

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 56px; }
  .about-split .img-wrap { aspect-ratio: 16/10; }
}

/* --- Facts strip (dark) --- */
.facts {
  background: var(--dark);
  color: #fff;
  padding: clamp(48px, 5vw, 72px) 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.fact {
  background: var(--dark);
  padding: 28px 24px;
  text-align: center;
}
.fact .num {
  color: var(--primary);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.fact .label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .facts-grid { grid-template-columns: 1fr; }
}

/* --- CTA banner --- */
.cta {
  background: var(--primary);
  color: #fff;
  padding: clamp(44px, 5vw, 72px) 0;
}
.cta .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta h2 {
  color: #fff;
  font-weight: 300;
  margin-bottom: 14px;
}
.cta p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 17px;
  max-width: 50ch;
}
.cta .right { text-align: right; }
@media (max-width: 800px) {
  .cta .container { grid-template-columns: 1fr; }
  .cta .right { text-align: left; }
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.value {
  border-top: 2px solid var(--primary);
  padding-top: 24px;
}
.value .icon { width: 36px; height: 36px; color: var(--primary); margin-bottom: 18px; }
.value h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 14px;
}
.value p { color: var(--text-muted); margin: 0; font-size: 15.5px; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; gap: 40px; } }

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 28px;
}
.team-card .photo {
  aspect-ratio: 4/5;
  background: var(--grey-200) center/cover no-repeat;
  margin-bottom: 24px;
  filter: grayscale(0.2);
}
.team-card h4 { font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.team-card .role { color: var(--primary); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 14px; }
.team-card p { color: var(--text-muted); margin: 0; font-size: 14.5px; }
.team-card .team-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-card .team-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--dark);
  letter-spacing: 0.01em;
  transition: color .2s ease;
}
.team-card .team-contact a:hover { color: var(--primary); }
.team-card .team-contact svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.team-card .team-contact .placeholder {
  display: block;
  height: 1em;
  line-height: 1.4;
  font-size: 13.5px;
}
@media (max-width: 800px) { .team { grid-template-columns: 1fr; gap: 48px; } }

/* ============================================================
   REFERENZEN
   ============================================================ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.ref {
  display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.ref .img {
  aspect-ratio: 4/3;
  background: var(--grey-200) center/cover no-repeat;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.ref .img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}
.ref .cat {
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ref h3 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.ref p { color: var(--text-muted); font-size: 15px; margin: 0 0 18px; }
.ref .meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--grey-200);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ref .meta .ort { color: var(--dark); }
@media (max-width: 1000px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ref-grid { grid-template-columns: 1fr; } }

.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-200);
}
.filter-bar button {
  background: transparent;
  border: 1px solid var(--grey-200);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all .2s ease;
}
.filter-bar button:hover { color: var(--dark); border-color: var(--dark); }
.filter-bar button.active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
}
.contact-info .item {
  display: flex; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--grey-200);
}
.contact-info .item:first-of-type { border-top: 1px solid var(--grey-200); }
.contact-info .icon {
  width: 32px; height: 32px; flex-shrink: 0;
  color: var(--primary);
}
.contact-info .label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey-400); margin-bottom: 6px;
}
.contact-info .val { font-size: 17px; color: var(--dark); }
.contact-info a:hover { color: var(--primary); }

.form { display: grid; gap: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 10px;
}
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--grey-200);
  padding: 12px 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--dark);
  outline: none;
  resize: vertical;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-400); }

.consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-muted);
  margin-top: 8px;
}
.consent input[type=checkbox] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--grey-400);
  margin: 4px 0 0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.consent input[type=checkbox]:checked {
  background: var(--primary); border-color: var(--primary);
}
.consent input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.form .submit { justify-self: start; margin-top: 12px; }

.map-wrap {
  margin-top: var(--section-y);
  aspect-ratio: 21/8;
  background: var(--grey-100);
  overflow: hidden;
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .form .row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand .brand-lockup {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand img {
  height: 44px; width: 44px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}
.footer-brand .brand-name {
  color: #fff; font-size: 14px; font-weight: 500;
  letter-spacing: 0.14em; margin-bottom: 0;
}
.footer-brand p { margin: 0; max-width: 36ch; line-height: 1.7; }
.footer-col h5 {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 6px 0 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(0,151,178,0.4);
  padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: #fff; }
.footer-bottom .legal { display: flex; gap: 24px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   PARTNER CAROUSEL (infinite marquee)
   ============================================================ */
.partners-carousel {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--grey-200);
  border-bottom: 2px solid var(--primary);
  padding: 36px 0;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
  width: max-content;
  animation: partners-scroll 28s linear infinite;
}
.partners-carousel:hover .partners-track { animation-play-state: paused; }
.partner-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 0 12px;
}
.partner-item img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity .3s ease;
}
.partner-item:hover img { opacity: 1; }

@keyframes partners-scroll {
  from { transform: translateX(0); }
  /* 9 items total = 3 groups of 3, so 1/3 wraps seamlessly */
  to   { transform: translateX(calc(-100% / 3)); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}

/* Keep old .partner styles as no-op fallback */
.partners-grid { display: none; }
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px 36px;
  border-bottom: 2px solid var(--primary);
  border-right: 1px solid var(--grey-200);
  text-align: center;
  transition: background .25s ease;
}
.partner:last-child { border-right: 0; }
a.partner { color: inherit; }
a.partner:hover { background: rgba(0,151,178,0.05); }
.partner .logo-wrap {
  height: 88px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.partner .logo-wrap img {
  max-height: 80px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity .3s ease;
}
a.partner:hover .logo-wrap img { opacity: 1; }
.partner .name {
  font-size: 20px; font-weight: 500; color: var(--dark);
  letter-spacing: 0.04em; margin-bottom: 12px;
}
.partner .desc {
  color: var(--text-muted); font-size: 14.5px;
  max-width: 36ch; margin: 0 auto 22px;
}
.partner .visit {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary);
  margin-top: auto;
}
a.partner:hover .visit { gap: 12px; }
@media (max-width: 900px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner { border-right: 0; }
}

/* ============================================================
   TEAM — initials placeholder
   ============================================================ */
.team-card .photo.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: #fff;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 200;
  letter-spacing: 0.04em;
  filter: none;
  position: relative;
}
.team-card .photo.initials::after {
  content: "";
  position: absolute;
  left: 24px; bottom: 24px;
  width: 28px; height: 2px;
  background: var(--primary);
}

/* Allow 2-up team layout when only two cards */
.team.team-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
@media (max-width: 800px) { .team.team-2 { grid-template-columns: 1fr; } }

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.legal-page { padding: 80px 0 var(--section-y); }
.legal-page .legal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  max-width: 1040px;
}
.legal-page .toc {
  position: sticky; top: 110px; align-self: start;
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.legal-page .toc h5 {
  color: var(--primary);
  margin: 0 0 20px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
}
.legal-page .toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.legal-page .toc a { color: var(--text-muted); }
.legal-page .toc a:hover { color: var(--dark); }
.legal-page .content h2 {
  font-size: 26px; font-weight: 400;
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-200);
}
.legal-page .content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-page .content p, .legal-page .content li {
  color: var(--text-muted); font-size: 16px; line-height: 1.8;
}
.legal-page .content ul { padding-left: 20px; }
.legal-page .content dl {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 12px 24px; margin: 0 0 8px;
}
.legal-page .content dt {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey-400); padding-top: 4px;
}
.legal-page .content dd { margin: 0; color: var(--dark); font-size: 16px; }
.legal-page .content dd a:hover { color: var(--primary); }
@media (max-width: 800px) {
  .legal-page .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-page .toc { position: static; }
  .legal-page .content dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-page .content dd { margin-bottom: 12px; }
}

/* ============================================================
   UTIL — fade-in on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
