/* ==========================================================================
   NEVO AG — Designsystem
   Basis: NEVO Brand Refinement v6 (Mai 2026)
   Typografie: Manrope (Light 300, Regular 400, Medium 500, Semibold 600, Bold 700, Extrabold 800)
   ========================================================================== */

:root {
  /* Farben — Brand Guide S.11 */
  --c-yellow:   #FFCC21;
  --c-dark:     #2E2E2E;
  --c-grey-70:  #434343;
  --c-grey-50:  #5A5A5A;
  --c-grey-30:  #AAAAAA;
  --c-white:    #FFFFFF;
  --c-offwhite: #F7F7F5;
  --c-line:     #E6E6E3;

  /* Typografie */
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Typo-Skala (Brand Guide S.15: Headline Bold 50, Subhead Medium 25, Body Regular 18) */
  --fs-h1:    clamp(2.8rem, 6vw, 5.2rem);
  --fs-h2:    clamp(2.4rem, 4.6vw, 4.5rem);
  --fs-h3:    clamp(1.4rem, 2.2vw, 1.75rem);
  --fs-body:  1.125rem;                        /* 18px */
  --fs-small: 0.9375rem;

  /* Layout — Inhaltsspalte wie Referenzseite: ~58-60% der Fensterbreite
     auf grossen Screens, mindestens 1280px, auf kleinen voll fluid */
  --w-max: max(1280px, 60vw);
  --pad-x: clamp(20px, 3vw, 40px);
  --sec-y: clamp(72px, 9vw, 140px);

  --radius: 4px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Framer-Verhalten bei schmaleren Desktops: zwischen 1025 und 1440px
   schrumpft das Layout proportional mit (Root-Schrift skaliert runter).
   Ab 1440px bleibt alles fix — keine Vergrösserung auf grossen Screens. */
@media (min-width: 1025px) {
  html { font-size: clamp(13.5px, 1.1111vw, 16px); }
}
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--c-dark);
  background: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* --- Typografie --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-grey-50);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--c-yellow);
  vertical-align: middle;
  margin-right: 12px;
}
.accent { color: var(--c-yellow); }

/* Technische Mono-Annotation (Blueprint-Grafiken, Labels) */
.mono { font-family: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace; }

.lead { font-size: clamp(1.15rem, 1.6vw, 1.375rem); font-weight: 500; line-height: 1.55; }

/* --- Layout-Helfer --- */
.container { max-width: var(--w-max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.section--offwhite { background: var(--c-offwhite); }
.section--dark { background: var(--c-dark); color: var(--c-white); }
.section--dark .eyebrow { color: var(--c-grey-30); }

.section-head { max-width: none; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head p { max-width: 42rem; }
.section-head p { margin-top: 1.25rem; color: var(--c-grey-50); }
.section--dark .section-head p { color: var(--c-grey-30); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1.0625rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn--primary { background: var(--c-yellow); color: var(--c-dark); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 204, 33, 0.35); }
.btn--dark { background: var(--c-dark); color: var(--c-white); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(46, 46, 46, 0.3); }
.btn--ghost {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { background: var(--c-dark); color: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-dark); }
.section--dark .btn--ghost:hover { background: var(--c-white); color: var(--c-dark); box-shadow: inset 0 0 0 1.5px var(--c-white); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease);
}
.textlink:hover { gap: 14px; }

/* CTA-Zeile: Button + Textlink nebeneinander (Intro, Abschluss, Unterseiten) */
.cta-actions {
  display: flex; flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 2.25rem;
}

/* Kleine graue Vertrauens-/Hinweiszeile unter CTAs */
.note-line {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--c-grey-50);
}

/* Prägnanter Zwischen-Claim (z.B. «Weniger Konzept. Mehr Produkt.») */
.claim {
  margin-top: 2rem;
  font-weight: 700;
  color: var(--c-dark);
  font-size: 1.2rem;
}
.section--dark .claim { color: var(--c-white); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
}
.site-header .container {
  max-width: none;
  display: flex; align-items: center; justify-content: space-between;
  height: 4.75rem;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
}
/* Dunkler Scroll-Zustand (Startseite: innerhalb Hero/Tagline) */
.site-header.is-dark-scrolled {
  background: rgba(46, 46, 46, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-hidden { transform: translateY(-100%); }

/* Startseite: Logo im dunklen Bereich ausgeblendet, erscheint mit der hellen Leiste */
body.has-hero .site-header .brand {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
body.has-hero .site-header.is-scrolled .brand {
  opacity: 1;
  pointer-events: auto;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { height: 2.75rem; width: auto; }
.brand .brand-mark path { fill: var(--c-white); transition: fill 0.4s; }

/* Auf hellen Seiten / nach Scroll: dunkles Logo + dunkle Links */
.site-header.is-scrolled .brand .brand-mark path,
.site-header.theme-light .brand .brand-mark path { fill: var(--c-dark); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1rem; font-weight: 500;
  padding: 10px 16px;
  border-radius: 4px;
  color: var(--c-white);
  transition: color 0.4s, background 0.3s;
}
.site-header.is-scrolled .nav-link,
.site-header.theme-light .nav-link { color: var(--c-dark); }
.main-nav .nav-link:hover { background: rgba(127, 127, 127, 0.14); }
.nav-link .chev { transition: transform 0.3s; }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }

.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 17.5rem;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(46, 46, 46, 0.16);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-item.open .dropdown, .nav-item:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 0.9875rem; font-weight: 500;
  color: var(--c-dark);
  transition: background 0.2s;
}
.dropdown a:hover { background: var(--c-offwhite); }
.dropdown a span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--c-grey-50); margin-top: 1px; }

/* Burger (Mobile) */
.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative; z-index: 1001;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--c-white);
  transition: transform 0.35s var(--ease), opacity 0.25s, background 0.4s;
}
.site-header.is-scrolled .burger span,
.site-header.theme-light .burger span { background: var(--c-dark); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span { background: var(--c-white) !important; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile-Overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--c-dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--pad-x) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open .site-header { z-index: 1000; }
.mobile-menu a {
  display: block;
  color: var(--c-white);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  padding: 10px 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.25s;
}
.mobile-menu a:hover { color: var(--c-yellow); }
.mobile-menu a.sub { font-size: 1.1rem; font-weight: 500; color: var(--c-grey-30); padding: 6px 0 6px 18px; }
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
.mobile-menu .mm-contact { margin-top: 36px; color: var(--c-grey-30); font-size: 0.95rem; }
.mobile-menu .mm-contact a { display: inline; font-size: 0.95rem; font-weight: 500; color: var(--c-yellow); padding: 0; }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .burger { display: block; }
}

/* ==========================================================================
   KENNZAHLEN
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stat {
  background: var(--c-white);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat .num {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .num sup { font-size: 0.5em; color: var(--c-yellow); font-weight: 800; }
.stat .label { font-weight: 600; margin-top: 14px; }
.stat .ctx { font-size: var(--fs-small); color: var(--c-grey-50); margin-top: 2px; }
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   LEISTUNGS-KACHELN
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.card {
  position: relative;
  background: var(--c-offwhite);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s;
}
/* Standard-Hover für alle Karten: anheben + dunkel invertieren */
.card:hover,
.case-card:hover,
.quote:hover {
  transform: translateY(-6px);
  background: var(--c-dark);
  color: var(--c-white);
  box-shadow: 0 32px 80px rgba(46, 46, 46, 0.28);
  border-color: transparent;
}
.card .card-num {
  font-size: 0.875rem; font-weight: 700;
  color: var(--c-yellow);
  letter-spacing: 0.1em;
}
.card h3 { margin: 18px 0 12px; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; }
.card p { color: var(--c-grey-50); transition: color 0.45s; font-size: 1.05rem; }
.card:hover p { color: var(--c-grey-30); }
.card .card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; font-weight: 600; font-size: 0.9875rem;
}
.card .card-link .arrow { transition: transform 0.3s var(--ease); color: var(--c-yellow); }
.card:hover .card-link .arrow { transform: translateX(6px); }
@media (max-width: 760px) { .cards-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   WARUM NEVO
   ========================================================================== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.diff-grid--2x2 { grid-template-columns: repeat(2, 1fr); }
.diff h3 { margin-bottom: 14px; padding-top: 24px; border-top: 2px solid var(--c-dark); position: relative; }
.diff h3::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 48px; height: 2px;
  background: var(--c-yellow);
}
.diff p { color: var(--c-grey-50); font-size: 1.05rem; }
@media (max-width: 880px) { .diff-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PROZESS (dunkle Sektion, Stil PPT Section-Divider)
   ========================================================================== */
.process-list { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 7.5rem 1fr 1.4fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--c-grey-70);
}
.process-step:last-child { border-bottom: 1px solid var(--c-grey-70); }
.process-step .step-num {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--c-yellow);
  letter-spacing: -0.02em;
}
.process-step h3 { color: var(--c-white); }
.process-step p { color: var(--c-grey-30); font-size: 1.05rem; }
@media (max-width: 760px) {
  .process-step { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   PROJEKTE / CASES
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.case-card {
  display: flex; flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.625rem, 3vw, 2.5rem);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s, background 0.45s, color 0.45s;
}
.case-card .case-tag {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-grey-50);
  margin-bottom: 20px;
  transition: color 0.45s;
}
.case-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.case-card .case-client { font-weight: 500; font-size: 0.85em; color: var(--c-grey-50); transition: color 0.45s; }
.case-card .challenge { font-size: 0.95rem; color: var(--c-grey-50); margin-bottom: 16px; transition: color 0.45s; }
.case-card:hover .case-tag,
.case-card:hover .case-client,
.case-card:hover .challenge { color: var(--c-grey-30); }
.case-card .result {
  font-size: 1.02rem; font-weight: 500;
  padding-left: 16px;
  border-left: 3px solid var(--c-yellow);
  margin-bottom: 24px;
}
.case-card .card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9875rem; }
.case-card .card-link .arrow { color: var(--c-yellow); transition: transform 0.3s var(--ease); }
.case-card:hover .card-link .arrow { transform: translateX(6px); }
@media (max-width: 880px) { .cases-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.quote {
  display: flex; flex-direction: column;
  background: var(--c-offwhite);
  border-radius: var(--radius-lg);
  padding: clamp(1.625rem, 3vw, 2.5rem);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s, color 0.45s;
}
.quote .qmark {
  font-size: 3.4rem; font-weight: 800; line-height: 0.6;
  color: var(--c-yellow);
  margin-bottom: 22px;
  font-family: Georgia, serif;
}
.quote blockquote { font-size: 1.02rem; line-height: 1.6; }
.quote .who { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.quote .who strong { display: block; font-size: 0.9875rem; }
.quote .who span { font-size: 0.875rem; color: var(--c-grey-50); }
@media (max-width: 880px) { .quotes-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   KUNDEN-LOGOS
   ========================================================================== */
.clients {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.clients img {
  height: clamp(56px, 6vw, 84px);
  width: auto;
  filter: grayscale(1);
  transition: filter 0.3s;
}
.clients img:hover { filter: grayscale(0); }

/* ==========================================================================
   CTA-ABSCHLUSS
   ========================================================================== */
.cta-final { position: relative; overflow: hidden; }
.cta-final .glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 33, 0.13) 0%, transparent 65%);
  top: -260px; right: -200px;
  pointer-events: none;
}
.cta-final .cta-inner { max-width: 820px; position: relative; }
.cta-final h2 { color: var(--c-white); }
.cta-final p { color: var(--c-grey-30); margin-top: 1.5rem; }
.cta-final .cta-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 2.5rem; }
.cta-final .cta-direct { color: var(--c-grey-30); font-size: 0.9875rem; }
.cta-final .cta-direct a { color: var(--c-white); font-weight: 600; border-bottom: 1.5px solid var(--c-yellow); }
.cta-final .trust-note { margin-top: 1.75rem; font-size: 0.875rem; color: var(--c-grey-50); }

/* ==========================================================================
   FOOTER (hell, 1:1 nach Framer-Vorlage)
   ========================================================================== */
.site-footer {
  --f-line: #DCDCD7;
  background: #EFEEEB;
  color: var(--c-dark);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
}
.f-col {
  border-left: 1px solid var(--f-line);
  padding: clamp(2.25rem, 3.5vw, 3.5rem) clamp(1.75rem, 3vw, 3.5rem);
  display: flex; flex-direction: column;
  min-height: clamp(26rem, 38vw, 35rem);
}
.f-col:first-child { border-left: none; padding-left: 0; }
.f-col:last-child { padding-right: 0; }

.f-label {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #8F8F89;
  margin-bottom: 28px;
}

/* Linke Spalte: Logo / Kontakt-Box / Legal / Copyright */
.f-brand .f-logo svg { display: block; width: clamp(11rem, 14vw, 16rem); height: auto; }
.f-brand .f-logo svg path { fill: var(--c-dark); }
.f-brand .f-box {
  border-top: 1px solid var(--f-line);
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: clamp(24px, 2.5vw, 36px);
}
.f-brand .f-contact a {
  display: block; width: fit-content;
  font-size: 1.05rem; font-weight: 600;
  padding: 2px 0;
  transition: color 0.25s;
}
.f-brand .f-contact a:hover { color: var(--c-grey-50); }
.f-brand .f-contact .addr { color: var(--c-grey-50); font-size: 0.9rem; margin-top: 14px; line-height: 1.6; }
.f-brand .f-legal a {
  display: block; width: fit-content;
  font-size: 1rem; font-weight: 500;
  padding: 3px 0;
  transition: color 0.25s;
}
.f-brand .f-legal a:hover { color: var(--c-grey-50); }
.f-brand .f-copy { margin-top: auto; padding-top: 32px; font-size: 0.85rem; color: var(--c-grey-50); }

/* Grosse Link-Listen (Menu / Connect) */
.f-links a {
  display: block; width: fit-content;
  font-size: clamp(1.9rem, 2.4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  transition: color 0.25s, transform 0.3s var(--ease);
}
.f-links a:hover { color: var(--c-grey-30); transform: translateX(6px); }

.f-mail-big {
  margin-top: auto; padding-top: 48px;
  font-size: clamp(1.3rem, 1.8vw, 1.9rem);
  font-weight: 500;
  width: fit-content;
  transition: color 0.25s;
}
.f-mail-big:hover { color: var(--c-grey-50); }

/* Dekorative Kreuze wie in der Vorlage */
.f-crosses {
  margin-top: auto; padding-top: 48px;
  color: #C9C9C3;
  font-size: 1.1rem; font-weight: 300;
  letter-spacing: 1.4em;
  user-select: none;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; }
  .f-col {
    border-left: none;
    border-top: 1px solid var(--f-line);
    padding-left: 0; padding-right: 0;
    min-height: 0;
  }
  .f-col:first-child { border-top: none; }
  .f-mail-big, .f-crosses { padding-top: 28px; }
  .f-brand .f-copy { padding-top: 28px; }
}

/* ==========================================================================
   BILD-PLATZHALTER
   ========================================================================== */
.img-ph {
  position: relative;
  background: #ECECE9;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: #9A9A94;
  overflow: hidden;
  width: 100%;
}
.img-ph::before {
  content: "";
  width: 2.25rem; height: 2.25rem;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="9" cy="10" r="2"/><path d="M3 17l5-5 4 4 3-3 6 6"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="9" cy="10" r="2"/><path d="M3 17l5-5 4 4 3-3 6 6"/></svg>') center / contain no-repeat;
}
.img-ph span {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 1rem;
}
.img-ph--dark { background: #3A3A3A; color: #6E6E6E; }
.section--dark .img-ph { background: #3A3A3A; color: #6E6E6E; }
.card .img-ph { background: #E2E2DE; margin-bottom: 1.625rem; }
.card:hover .img-ph { background: #3A3A3A; color: #6E6E6E; }

/* Echte Bilder in Kacheln */
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.625rem;
}

/* Avatar-Platzhalter (Testimonials) */
.avatar-ph {
  flex: 0 0 auto;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--c-dark);
  color: var(--c-yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
}
.quote .who .avatar { flex: 0 0 auto; width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; object-position: center top; }
.quote .who { display: flex; align-items: center; gap: 14px; transition: border-color 0.45s; }
.quote .who .avatar-ph { color: var(--c-yellow); font-size: 0.9rem; font-weight: 700; transition: background 0.45s, color 0.45s; }
.quote:hover .who { border-color: var(--c-grey-70); }
.quote:hover .who strong { color: var(--c-white); }
.quote:hover .who span { color: var(--c-grey-30); }
.quote:hover .who .avatar-ph { background: var(--c-yellow); color: var(--c-dark); }

/* Zweispaltiges Layout Text + Bild */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Variante: Bild oben bündig mit der Headline und grösser */
.split--top {
  align-items: start;
  grid-template-columns: 0.9fr 1.15fr;
}
.split--top img { margin-top: 0.35em; }

/* ==========================================================================
   SCROLL-REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Interaktive PCB-Hotspots (/elektronik-entwicklung/) ===== */
.pcb-figure{position:relative; margin-top:clamp(2.5rem,4vw,3.5rem); border-radius:var(--radius); overflow:visible;}
.pcb-img{width:100%; height:auto; display:block; border-radius:var(--radius);}
.pcb-markers{position:absolute; inset:0;}
.pcb-hot{position:absolute; width:130px; height:130px; margin:-65px 0 0 -65px;}
.pcb-dot{position:absolute; left:50%; top:50%; width:26px; height:26px; margin:-13px 0 0 -13px; padding:0; border-radius:50%; background:var(--c-yellow); border:2px solid var(--c-dark); box-shadow:0 0 0 4px rgba(255,204,33,.22); cursor:pointer; opacity:0; transform:scale(0); transition:box-shadow .25s;}
.pcb-hot.revealed .pcb-dot{animation:pcbDrop .55s cubic-bezier(.34,1.56,.64,1) forwards;}
@keyframes pcbDrop{0%{opacity:0; transform:scale(0);} 55%{opacity:1; transform:scale(1.35);} 78%{transform:scale(.9);} 100%{opacity:1; transform:scale(1);}}
.pcb-dot:hover, .pcb-dot:focus-visible, .pcb-dot.active{box-shadow:0 0 0 8px rgba(255,204,33,.35); outline:none; z-index:5;}
.pcb-tip{position:absolute; bottom:calc(100% + 12px); left:50%; transform:translateX(-50%); width:max-content; max-width:240px; background:var(--c-dark); color:#fff; font-size:.8125rem; line-height:1.45; text-align:left; padding:10px 12px; border-radius:6px; box-shadow:0 14px 34px rgba(0,0,0,.4); opacity:0; pointer-events:none; transition:opacity .18s; z-index:6;}
.pcb-tip strong{display:block; color:var(--c-yellow); margin-bottom:3px; font-size:.84rem; letter-spacing:.01em;}
.pcb-tip--below{bottom:auto; top:calc(100% + 12px);}
.pcb-tip--left{left:0; transform:none;}
.pcb-tip--right{left:auto; right:0; transform:none;}
.pcb-dot:hover .pcb-tip, .pcb-dot:focus-visible .pcb-tip, .pcb-dot.active .pcb-tip{opacity:1; pointer-events:auto;}
@media (prefers-reduced-motion: reduce){ .pcb-hot.revealed .pcb-dot{animation:none; opacity:1; transform:scale(1);} }
@media (max-width:600px){ .pcb-hot{width:96px; height:96px; margin:-48px 0 0 -48px;} .pcb-dot{width:22px; height:22px; margin:-11px 0 0 -11px;} .pcb-tip{max-width:170px; font-size:.75rem;} }

/* ===== Projekt-Galerie + Lightbox ===== */
.pgallery{margin-top:18px;}
.pgallery-strip{display:flex; flex-wrap:wrap; gap:12px;}
.pgallery-thumb{padding:0; border:0; border-radius:var(--radius); overflow:hidden; cursor:pointer; width:122px; height:82px; background:#E2E2DE; box-shadow:0 0 0 1px var(--c-line); transition:transform .25s, box-shadow .25s;}
.pgallery-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.pgallery-thumb:hover{transform:translateY(-3px); box-shadow:0 0 0 2px var(--c-yellow);}
.pgallery-ph{width:122px; height:82px; border-radius:var(--radius); border:1px dashed var(--c-grey-30); display:flex; align-items:center; justify-content:center; font-size:.75rem; color:var(--c-grey-50);}
.pgallery-hint{margin-top:10px; font-size:.8125rem; color:var(--c-grey-50);}
.plightbox{position:fixed; inset:0; z-index:1000; background:rgba(18,18,18,.93); display:flex; align-items:center; justify-content:center; padding:4vw;}
.plightbox[hidden]{display:none;}
.plightbox-img{max-width:92vw; max-height:88vh; width:auto; height:auto; border-radius:var(--radius); box-shadow:0 24px 70px rgba(0,0,0,.55);}
.plightbox-close{position:absolute; top:14px; right:22px; font-size:2.6rem; line-height:1; color:#fff; background:none; border:0; cursor:pointer; padding:4px 10px;}
.plightbox-nav{position:absolute; top:50%; transform:translateY(-50%); font-size:3.2rem; line-height:1; color:#fff; background:none; border:0; cursor:pointer; padding:0 16px; opacity:.8;}
.plightbox-nav:hover, .plightbox-close:hover{opacity:1; color:var(--c-yellow);}
.plightbox-prev{left:6px;} .plightbox-next{right:6px;}
@media (max-width:600px){ .pgallery-thumb,.pgallery-ph{width:100px; height:68px;} .plightbox-nav{font-size:2.4rem;} }

/* ===== Einblicke-Galerie (Prozessbilder, Raster + Captions) ===== */
.einblicke-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:18px;}
.einblicke-item{margin:0;}
.einblicke-thumb{width:100%; height:170px;}
.einblicke-item figcaption{margin-top:9px; font-size:.8125rem; color:var(--c-grey-50); line-height:1.45;}
.plightbox-cap{position:absolute; left:0; right:0; bottom:max(16px,3vh); text-align:center; color:#ededed; font-size:.95rem; line-height:1.5; padding:0 8vw;}
.einblicke-ph{height:170px; border-radius:var(--radius); border:1px dashed var(--c-grey-30); display:flex; align-items:center; justify-content:center; font-size:.8125rem; color:var(--c-grey-50);}

/* ===== Kundenstimmen: 2 Spalten, breites Foto, schmaler Text ===== */
.quotes-grid--photo{grid-template-columns:repeat(2,1fr); gap:clamp(1rem,2vw,1.75rem);}
.quotes-grid--photo .quote{flex-direction:row; gap:clamp(16px,1.6vw,24px); padding:clamp(1.25rem,2vw,1.6rem); align-items:stretch;}
.quote-photo{flex:0 0 auto; width:48%; align-self:stretch; min-height:300px; object-fit:cover; object-position:center top; border-radius:var(--radius); background:#E2E2DE; display:block;}
.quote-photo--ph{display:flex; align-items:center; justify-content:center; text-align:center; font-size:.8rem; color:var(--c-grey-50); border:1px dashed var(--c-grey-30);}
.quote-body{display:flex; flex-direction:column; flex:1 1 auto; min-width:0;}
.quotes-grid--photo blockquote{font-size:1.0rem; line-height:1.6;}
.quotes-grid--photo .quote-body .who{margin-top:18px;}
@media (max-width:920px){ .quotes-grid--photo{grid-template-columns:1fr;} .quote-photo{width:42%;} }
@media (max-width:560px){ .quotes-grid--photo .quote{flex-direction:column; align-items:stretch;} .quote-photo{width:100%; height:280px; min-height:0;} }

/* ===== Blueprint-Diagramme: Brace / Glow / Pfeil-Einblendung ===== */
svg[data-blueprint] .bp-draw{stroke-dasharray:1; stroke-dashoffset:1; transition:stroke-dashoffset .65s var(--ease) .15s;}
svg[data-blueprint].is-on .bp-draw{stroke-dashoffset:0;}
svg[data-blueprint] .bp-glow{opacity:0; transition:opacity .5s ease .35s;}
svg[data-blueprint].is-on .bp-glow{opacity:1;}
svg[data-blueprint] .bp-arrow{opacity:0; transition:opacity .45s ease;}
svg[data-blueprint].is-on .bp-arrow{opacity:1;}

/* ===== Partner-Logo (einheitliches Partner-Template) ===== */
.partner-logo{height:44px; width:auto; margin-bottom:20px; display:block;}
.partner-kat{font-size:0.875rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--c-grey-50); margin-bottom:0.75rem;}

/* ===== Partner-Logo-Leiste (Team-Seite: Vertrauensbeweis statt Karten) ===== */
.partner-strip{display:flex; flex-wrap:wrap; align-items:center; gap:clamp(28px,5vw,64px); margin-top:clamp(2rem,4vw,3rem);}
.partner-strip-logo{height:clamp(30px,3.6vw,44px); width:auto; opacity:.7; transition:opacity .3s var(--ease);}
.partner-strip-logo:hover{opacity:1;}

/* ===== Vertraulichkeits-/NDA-Hinweis (Projekt-Übersicht) ===== */
.nda-note{display:flex; gap:16px; align-items:flex-start; max-width:none; margin:0 0 clamp(2.5rem,4vw,3.5rem); padding:clamp(1.1rem,2vw,1.5rem) clamp(1.25rem,2.5vw,1.75rem); background:var(--c-white); border:1px solid var(--c-line); border-left:3px solid var(--c-yellow); border-radius:var(--radius);}
.nda-badge{flex:0 0 auto; font-family:ui-monospace,"Cascadia Mono",Consolas,monospace; font-size:0.7rem; letter-spacing:0.12em; font-weight:600; color:var(--c-dark); background:var(--c-yellow); padding:5px 9px; border-radius:3px; margin-top:2px;}
.nda-note p{margin:0; color:var(--c-grey-50); font-size:0.975rem; line-height:1.62;}
.nda-note strong{color:var(--c-dark); font-weight:600;}
@media (max-width:600px){ .nda-note{flex-direction:column; gap:12px;} }

/* ===== Diagramm-Split: bulletproof gegen Grid-Blowout (IO-Link Architektur) =====
   Beide Spalten min 0, Diagrammspalte hart auf max. 440px begrenzt. Damit kann
   das hohe SVG die Textspalte nie mehr auf Wortbreite zusammendrücken. */
.split--diagram{ grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; }
@media (max-width: 880px){ .split--diagram{ grid-template-columns: 1fr; } }
