/* ==========================================================================
   ENERSON – components.css
   Navigation · Footer · Buttons · Cards · Cookie Banner · Loading Screen
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. LOADING SCREEN
   -------------------------------------------------------------------------- */

#loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: var(--bg-master);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loader .loader-logo {
  height: 40px;
  width: auto;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  border-radius: 1px;
  transition: width 0.1s linear;
}


/* --------------------------------------------------------------------------
   2. NAVIGATION
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.375rem var(--section-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Always dark – no transparent phase */
  background-color: var(--bg-master);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.3s ease,
              backdrop-filter 0.3s ease,
              padding 0.3s ease;
}

/* Scrolled state – deepen with blur */
.nav.scrolled {
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35),
              inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--duration-micro) ease-out;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a[aria-current="page"] {
  color: var(--accent-text);
}

/* CTA link in nav */
.nav-cta {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  transition: background-color var(--duration-micro) ease-out,
              border-color var(--duration-micro) ease-out !important;
}

.nav-cta:hover {
  background-color: var(--glass-bg);
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Hamburger button – mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: calc(var(--z-nav) + 10);
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav-hamburger span:nth-child(1) { width: 24px; }
.nav-hamburger span:nth-child(2) { width: 18px; }
.nav-hamburger span:nth-child(3) { width: 24px; }

/* Hamburger open state */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 24px;
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 24px;
}

/* Mobile overlay menu */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) + 5);
  background-color: var(--bg-master);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* X-Schliessen-Button im Mobile-Overlay (oben rechts) */
.nav-overlay-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-overlay-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1.5px;
  background-color: var(--text-primary);
  border-radius: 1px;
}
.nav-overlay-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-overlay-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.nav-overlay-close:hover span { background-color: var(--accent); }

.nav-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-overlay ul {
  list-style: none;
  text-align: center;
}

.nav-mobile-overlay ul li + li {
  margin-top: 0.25rem;
}

.nav-mobile-overlay a {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-mobile-overlay a:hover,
.nav-mobile-overlay a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-mobile-overlay a[aria-current="page"] {
  color: var(--accent-text);
}

/* Tighter gap at medium screens to prevent overflow */
@media (max-width: 1200px) and (min-width: 1101px) {
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: 0.8125rem;
  }
}

/* Responsive: show hamburger, hide desktop links */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-overlay {
    display: flex;
  }
}


/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 0.8125rem 1.75rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: background-color var(--duration-micro) ease-out,
              border-color var(--duration-micro) ease-out,
              color var(--duration-micro) ease-out,
              transform var(--duration-micro) ease-out;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1a5fd4 100%);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(38, 112, 237, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent) 100%);
  border-color: var(--accent-glow);
  box-shadow: 0 6px 28px rgba(38, 112, 237, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Ghost button – liquid glass */
.btn-ghost {
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Text link button */
.btn-link {
  background: none;
  border: none;
  color: var(--accent-text);
  padding: 0;
  font-weight: 500;
  gap: 0.375rem;
  min-height: auto;
  transition: color var(--duration-micro) ease-out,
              gap var(--duration-micro) ease-out;
}

.btn-link:hover {
  color: var(--accent-glow);
  gap: 0.625rem;
}

.btn-link svg {
  flex-shrink: 0;
  transition: transform var(--duration-micro) ease-out;
}

.btn-link:hover svg {
  transform: translateX(3px);
}

/* Small variant */
.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5625rem 1.25rem;
  min-height: 36px;
}


/* --------------------------------------------------------------------------
   4. CARDS
   -------------------------------------------------------------------------- */

/* Base card – Liquid Glass */
.card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
              0 8px 32px rgba(5, 7, 15, 0.45),
              0 2px 8px rgba(5, 7, 15, 0.3);
  transition: border-color 200ms ease-out,
              background 200ms ease-out,
              box-shadow 200ms ease-out,
              transform 200ms ease-out;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              inset 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 16px 48px rgba(5, 7, 15, 0.55);
  transform: translateY(-3px);
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card .card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--accent-text);
  transform-origin: center;
  will-change: transform, filter;
}

/* --------------------------------------------------------------------------
   PARTNER-LOGO-SCHWARM (Sektion Kunden)
   Logos schweben frei, einheitlich weiss eingefärbt für Sichtbarkeit auf Dunkel
   -------------------------------------------------------------------------- */
.partner-swarm {
  position: relative;
  width: 100%;
  height: clamp(108px, 14vh, 150px);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.swarm-logo {
  position: absolute;
  top: 0;
  left: 0;
  /* Gleich grosse „Box" für alle Logos – egal ob breit (Huawei) oder
     quadratisch (Swisscom). Jedes Logo füllt die Box bestmöglich aus. */
  width: auto;
  height: auto;
  max-width: 104px;
  max-height: 46px;
  transform-origin: top left;
  /* Alle Marken-Logos einheitlich weiss – egal welche Originalfarbe */
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}

/* Reduced Motion: Logos ruhig verstreut, keine Bewegung (per JS positioniert) */
@media (prefers-reduced-motion: reduce) {
  .swarm-logo { will-change: auto; }
}

/* Mobile: Logo-Schwarm ganz weglassen. Die Partner stehen bereits im Text
   (Huawei, Sunrise, Swisscom …) und vollständig auf der Kunden-Seite;
   auf schmalen Screens wirkt der frei fliegende Schwarm zu unruhig. */
@media (max-width: 768px) {
  .partner-swarm { display: none; }
}

/* --------------------------------------------------------------------------
   PHOTOVOLTAIK-GALERIE (Sektion PV) – crossfadende Projektbilder, links
   -------------------------------------------------------------------------- */
.pv-gallery {
  position: absolute;
  top: 50%;
  left: clamp(48px, 17vw, 340px);
  transform: translateY(-50%);
  width: clamp(300px, 38vw, 540px);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  z-index: var(--z-content);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
}

.pv-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
  animation: pv-crossfade 18s infinite;
}
.pv-slide:nth-child(1) { animation-delay: 0s;    }
.pv-slide:nth-child(2) { animation-delay: 4.5s;  }
.pv-slide:nth-child(3) { animation-delay: 9s;    }
.pv-slide:nth-child(4) { animation-delay: 13.5s; }

@keyframes pv-crossfade {
  0%   { opacity: 0; transform: scale(1.06); }
  4%   { opacity: 1; }
  22%  { opacity: 1; }
  27%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.0); }
}

/* Mobile: Galerie oben, volle Breite; Text liegt darunter im Glas-Block */
@media (max-width: 768px) {
  .pv-gallery {
    top: clamp(5rem, 14vh, 8rem);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(86vw, 460px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-slide { animation: none; }
  .pv-slide:nth-child(1) { opacity: 1; }
}

/* --------------------------------------------------------------------------
   PROJEKT-FOTO-WAND (Referenzprojekt-Seite) – Karten bobben + wechseln Bilder
   -------------------------------------------------------------------------- */
.projekt-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.projekt-card {
  position: relative;
  width: clamp(120px, 14vw, 188px);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  animation: projekt-bob var(--d, 7s) ease-in-out infinite;
  will-change: transform;
}

.projekt-card .proj-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.projekt-card .proj-layer.is-on { opacity: 1; }

@keyframes projekt-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .projekt-card { animation: none; }
}

/* --------------------------------------------------------------------------
   REFERENZPROJEKTE – 6 Projekt-Karten (Bild + Kunde/Ort)
   -------------------------------------------------------------------------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.ref-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
}
.ref-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.ref-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.92);
}
.ref-card-info { padding: 1rem 1.25rem 1.25rem; }
.ref-card-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.ref-meta { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.ref-meta > div { display: flex; gap: 0.75rem; font-size: 0.875rem; }
.ref-meta dt { color: var(--text-secondary); min-width: 52px; flex-shrink: 0; }
.ref-meta dd { color: var(--text-muted); margin: 0; font-style: italic; }

@media (max-width: 900px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   PHOTO-STRIP – lückenlose Galerie, 5 Zellen crossfaden durch den Bild-Pool
   (genutzt für „Ein Mast entsteht" + „Einblicke aus der Praxis")
   -------------------------------------------------------------------------- */
.photo-strip {
  display: flex;
  width: 100%;
  height: clamp(220px, 32vh, 400px);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.photo-strip-cell {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  border-left: 1px solid var(--bg-master);
}
.photo-strip-cell:first-child { border-left: none; }
.photo-strip-cell .ps-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
  filter: saturate(0.72) brightness(0.88);
}
.photo-strip-cell .ps-layer.is-on { opacity: 1; }
/* dezenter Palettenton über den Bildern */
.photo-strip-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11,16,48,0.18) 0%, rgba(5,7,15,0.42) 100%);
}

@media (max-width: 768px) {
  .photo-strip { height: clamp(160px, 26vh, 240px); }
  .photo-strip-cell:nth-child(n+4) { display: none; } /* auf Mobile nur 3 Zellen */
}

/* --------------------------------------------------------------------------
   BILD-TÖNUNG – grelle Handyfotos an die dunkle Palette angleichen
   (PV-Galerie + Projekt-Wand). Award-Foto bleibt unberührt.
   -------------------------------------------------------------------------- */
/* Inline-Variante der PV-Galerie (im normalen Fluss, z.B. Referenz-Seite) */
.pv-gallery-inline {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pv-slide,
.projekt-card .proj-layer {
  filter: saturate(0.5) brightness(0.88) contrast(1.04);
}

.pv-gallery::after,
.pv-gallery-inline::after,
.projekt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  /* Dunkelblau-Schleier + subtiler Akzent-Glaze – dämpft grelle Handyfotos in
     den Palettenton, lässt das Motiv aber klar erkennbar. */
  background:
    linear-gradient(160deg, rgba(38, 112, 237, 0.16) 0%, transparent 58%),
    linear-gradient(180deg, rgba(10, 16, 48, 0.48) 0%, rgba(6, 9, 28, 0.54) 100%);
}

/* Puls wenn ein Datenpaket aus dem Netzwerk ankommt (per JS getriggert) */
.service-card .card-icon.icon-ping {
  animation: card-icon-ping 0.6s ease-out;
}

@keyframes card-icon-ping {
  0%   { transform: scale(1);    color: var(--accent-text); filter: drop-shadow(0 0 0 transparent); }
  35%  { transform: scale(1.22); color: var(--accent-glow); filter: drop-shadow(0 0 9px rgba(58,140,255,0.85)); }
  100% { transform: scale(1);    color: var(--accent-text); filter: drop-shadow(0 0 0 transparent); }
}

/* Netzwerk-Canvas: hinter Text/Cards, nicht klickbar */
#leistungen-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .service-card .card-icon.icon-ping { animation: none; }
}

.service-card .card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.service-card .card-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.service-card .card-link {
  margin-top: auto;
  padding-top: 1rem;
}

/* Strength item */
.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.strength-item:last-child {
  border-bottom: none;
}

.strength-item::before {
  content: '';
  display: block;
  width: 2px;
  height: 1.25rem;
  background-color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.strength-item p {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
}

/* Section header */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .lead {
  max-width: 640px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .card-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 1.5rem;
  }
}


/* --------------------------------------------------------------------------
   5. CUSTOMER LOGOS
   -------------------------------------------------------------------------- */

.kunden-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 4.5rem);
}

.kunden-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  /* feste Reihenhöhe → stabiles Layout, kein CLS */
  height: 56px;
  opacity: 0.62;
  transition: opacity var(--duration-micro) ease-out;
  /* Not clickable, purely decorative */
  pointer-events: none;
  user-select: none;
}

.kunden-logo-item:hover {
  opacity: 0.92;
}

/* Image logos – Grösse über Max-Höhe UND Max-Breite begrenzt:
   schmale Wortmarken (SBB, Axians) füllen die Breite, hohe Lockups
   (Ericsson, Swisscom) füllen die Höhe → optisch ausgewogen, alle lesbar. */
.kunden-logo-item img {
  height: auto;
  width: auto;
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Text placeholder until real logos arrive */
.kunden-logo-item.placeholder {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .kunden-grid {
    gap: 1.5rem 2rem;
  }

  .kunden-logo-item.placeholder {
    font-size: 0.8125rem;
  }
}


/* --------------------------------------------------------------------------
   6. AWARD SECTION
   -------------------------------------------------------------------------- */

.award-visual {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
}

.award-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Glow pulse animation around award image */
.award-visual::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Image placeholder until photo is available */
.award-placeholder {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse 70% 60% at 40% 50%, rgba(22, 33, 76, 0.6) 0%, transparent 70%),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

/* Subtle corner accents */
.award-placeholder::before,
.award-placeholder::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(38, 112, 237, 0.35);
  border-style: solid;
}

.award-placeholder::before {
  top: 1.25rem;
  left: 1.25rem;
  border-width: 1px 0 0 1px;
  border-radius: 2px 0 0 0;
}

.award-placeholder::after {
  bottom: 1.25rem;
  right: 1.25rem;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 2px 0;
}

/* Award layout */
.award-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 768px) {
  .award-layout {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   7. SCHWEIZ SVG SECTION
   -------------------------------------------------------------------------- */

.schweiz-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.schweiz-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.schweiz-map-wrapper svg {
  width: 100%;
  height: auto;
}

/* Schweiz-Karte: dezenter Umriss (Bild) + Netzwerk-Overlay (SVG) */
.ch-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1064 / 692;
  margin: 0 auto;
}
.ch-map-outline,
.ch-map-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ch-link {
  stroke: rgba(58, 140, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.ch-node { fill: rgba(150, 195, 255, 0.6); }
.ch-hub  { fill: var(--accent-glow); }
.ch-hub-ring {
  fill: none;
  stroke: var(--accent-glow);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: ch-hub-pulse 3s ease-out infinite;
}
.ch-pulse { fill: rgba(195, 220, 255, 0.95); }
.ch-hub-label {
  fill: var(--accent-glow);
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 500;
  text-anchor: middle;
  opacity: 0.85;
}
@keyframes ch-hub-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-hub-ring { animation: none; }
}

@media (max-width: 768px) {
  .schweiz-layout {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   8. CANVAS SECTIONS (Frame Sequences)
   -------------------------------------------------------------------------- */

.canvas-section {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-master);
}

.canvas-section canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll-stage: tall outer section + sticky inner viewport (IP-CM pattern) */
.scroll-stage {
  width: 100%;
  background-color: var(--bg-master);
}

.canvas-pin {
  /* position: fixed is set by JS on init — CSS here is the fallback state */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-master);
  z-index: var(--z-canvas);
  /* Hidden until JS activates it for the right section */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.canvas-pin.is-active {
  opacity: 1;
  visibility: visible;
}

.canvas-pin canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Journey phase text overlays – fade in/out via JS opacity */
.journey-phase {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(2rem, 5vh, 4rem) var(--section-padding-x);
  z-index: var(--z-content);
  pointer-events: none;
  will-change: opacity;
}

/* Hero-Text: linke Hälfte, vertikal zentriert, kein Gradient */
.journey-phase--left {
  top: 50%;
  bottom: auto;
  right: auto;
  max-width: 44%;
  transform: translateY(-50%);
  background: none;
  text-align: left;
  padding: 2rem clamp(2rem, 5vw, 6rem);
}

/* Signal- & Antenna-Text: "Statement"-Stil.
   Links im freien Raum (Animation liegt rechts), vertikal zentriert,
   mit vertikalem Akzent-Balken → hebt sich vom Hero ab, überlappt den
   Mast nicht, wirkt ruhig und editorial. */
.journey-phase--statement {
  top: 50%;
  bottom: auto;
  right: auto;
  left: 0;
  max-width: 46%;
  transform: translateY(-50%);
  background: none;
  text-align: left;
  padding: 1.5rem clamp(2rem, 5vw, 6rem);
}

/* Vertikaler Akzent-Balken am linken Rand des Textblocks */
.journey-phase--statement::before {
  content: '';
  position: absolute;
  left: clamp(2rem, 5vw, 6rem);
  top: 1.75rem;
  bottom: 1.75rem;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--accent) 0%, var(--accent-glow) 45%, transparent 100%);
  border-radius: 2px;
}

/* Inhalt rechts neben den Balken einrücken */
.journey-phase--statement > * {
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
  max-width: 100%;
}

/* Allow clicks on interactive elements when phase is visible */
.journey-phase a,
.journey-phase button {
  pointer-events: auto;
}


/* EBENE 1 – Canvas: normale Darstellung auf nahtlosem Schwarz.
   Kein mix-blend-mode! Der Pin-Hintergrund wird per JS exakt auf den
   Frame-Schwarzton gesetzt → JPEG-Schwarz und Seiten-Schwarz sind identisch,
   der Canvas-Rand ist dadurch unsichtbar. */
#canvas-journey {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* EBENE 2 – Blaue Atmosphäre ÜBER dem Canvas.
   screen addiert nur Licht (Blau-Touch), die weichen Radial-Verläufe
   erzeugen keine harten Kanten. Hintergrund transparent, damit nur der
   Glow zählt – nicht eine flache Fläche. */
#journey-pin .canvas-placeholder {
  background: transparent;
  mix-blend-mode: screen;
  z-index: 2;
}

/* EBENE 0 – Blauer Glow LINKS hinter dem Text, läuft nach rechts aus.
   Liegt UNTER dem Canvas → erscheint nur links (Canvas dort transparent),
   rechts vom undurchsichtigen Logo-Frame verdeckt. Hält die Seite während der
   Logo-Phase bläulich, ohne den Screen-Kasten ums Logo zu erzeugen. */
.journey-left-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 95% at 2% 42%,
      rgba(26, 50, 130, 0.60) 0%,
      rgba(16, 32, 92, 0.30) 38%,
      transparent 72%);
}
/* Gestapelt (Mobile/Tablet): Frame zentriert → linker Glow würde einen schwarzen
   Kasten ums Logo erzeugen. Ganz ausblenden, Logo liegt sauber auf Schwarz. */
@media (max-width: 1024px) {
  .journey-left-glow { display: none; }
}

/* journey-stage: enthält Canvas + Glow + Texte. Wird beim Slide-Übergang
   per JS als Ganzes nach links translatiert. */
#journey-stage {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* Nächste Sektion gleitet während des Slide-Übergangs von rechts herein.
   Per JS aktiviert (Transform scroll-getrieben), danach zurück in den Fluss. */
#section-leistungen-canvas.is-sliding-in {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-canvas) + 1);
  will-change: transform;
}

@media (max-width: 1024px) {
  .journey-phase--left,
  .journey-phase--statement {
    top: auto;
    bottom: 0;
    left: 0;
    max-width: 100%;
    transform: none;
    background: linear-gradient(to top, rgba(5,7,15,0.92) 0%, rgba(5,7,15,0.55) 55%, transparent 100%);
    padding: clamp(2rem, 5vw, 3rem) var(--section-padding-x) clamp(2.5rem, 7vw, 4rem);
  }
  /* Akzent-Balken auf Mobile ausblenden (Text liegt unten über voller Breite) */
  .journey-phase--statement::before {
    display: none;
  }
  .journey-phase--statement > * {
    padding-left: 0;
  }
}

/* Text overlay on canvas sections */
.canvas-text {
  position: absolute;
  inset: 0;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 5rem);
  max-width: 800px;
  pointer-events: none;
}

.canvas-text .btn,
.canvas-text .btn-link,
.canvas-text .service-card,
.canvas-text a {
  pointer-events: auto;
}

/* Mobile: reset any inline positioning so canvas text fills full width */
@media (max-width: 600px) {
  .canvas-text {
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    align-items: stretch;
  }

  /* Leistungen canvas: scale down card text on very small screens */
  .canvas-text .card-title {
    font-size: 1rem;
  }

  .canvas-text .card-body {
    font-size: 0.875rem;
  }
}

/* Leistungen-Sektion auf Mobile/Tablet: natürliche Höhe + Inhalt von OBEN.
   Desktop bleibt 100dvh mit Karten unten (bottom:0) + Horizontal-Slide. Auf
   Mobile sind die 3 Karten gestapelt → höher als der Viewport; bei bottom-
   Verankerung würde die oberste Karte oben abgeschnitten. Darum hier top-
   verankert, auto-Höhe, scrollbar – nichts wird mehr abgeschnitten. */
@media (max-width: 1024px) {
  #section-leistungen-canvas {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  #section-leistungen-canvas .canvas-text {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    bottom: auto !important;
    justify-content: flex-start;
    background: none !important;
    padding-top: clamp(5rem, 16vh, 9rem) !important;
    padding-bottom: clamp(3rem, 9vh, 4.5rem) !important;
  }
  /* Vertikaler Slide-Overlay oben verankert + natürliche Höhe behalten
     (statt inset:0 = 100vh), damit der obere Rand sichtbar bleibt. */
  #section-leistungen-canvas.is-sliding-in {
    bottom: auto;
    height: auto;
    min-height: 100dvh;
  }
}

/* Placeholder for canvas when frames not yet available */
.canvas-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.canvas-placeholder strong {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--accent-text);
}


/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */

.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem var(--section-padding-x) 2rem;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem 4rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

/* Logo block */
.footer-logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo-block img {
  height: 28px;
  width: auto;
}

.footer-ip-group {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-claim {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Footer nav */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-micro) ease-out;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--accent-text);
}

/* Touch: Footer-Links auf Mobile auf volle Trefferhöhe bringen (min. 44px).
   Der Text bleibt optisch gleich – nur die Klickfläche wächst. */
@media (max-width: 768px) {
  .footer-nav {
    gap: 0;
  }
  .footer-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Footer contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-micro) ease-out;
  white-space: nowrap;
}

.footer-contact a:hover {
  color: var(--accent-text);
}

/* Footer bottom row */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-address {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-overlay);
  width: 44px;
  height: 44px;
  background: rgba(38, 112, 237, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(58, 140, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 4px 20px rgba(38, 112, 237, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease,
              visibility 0.3s ease,
              transform 0.3s ease,
              box-shadow 200ms ease-out,
              background 200ms ease-out;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(58, 140, 255, 0.85);
  box-shadow: 0 6px 28px rgba(38, 112, 237, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}


/* --------------------------------------------------------------------------
   10. COOKIE BANNER
   -------------------------------------------------------------------------- */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
              0 -8px 32px rgba(0, 0, 0, 0.4);
  padding: 1.25rem var(--section-padding-x);
  transform: translateY(100%);
  /* visibility mitführen: sonst bleiben die drei Buttons dauerhaft
     fokussierbar, obwohl der Banner weggeschoben ist – ein Tastaturnutzer
     könnte unsichtbar sein Consent setzen. */
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000),
              visibility 0.4s;
}

#cookie-banner.visible {
  transform: translateY(0);
  visibility: visible;
}

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--duration-micro) ease-out;
}

.cookie-text a:hover {
  color: var(--accent-glow);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* --------------------------------------------------------------------------
   11. PAGE HERO (inner pages – no canvas)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-top: calc(var(--section-padding-y) + 90px); /* offset for fixed nav */
  padding-bottom: var(--section-padding-y);
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
  background-color: var(--bg-master);
  /* Subtle depth gradient */
  background-image: radial-gradient(
    ellipse 80% 60% at 15% 50%,
    rgba(22, 33, 76, 0.45) 0%,
    transparent 70%
  );
  position: relative;
}

/* Accent line at left edge – visual anchor */
.page-hero::before {
  content: '';
  position: absolute;
  left: var(--section-padding-x);
  top: calc(var(--section-padding-y) + 90px);
  bottom: var(--section-padding-y);
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    rgba(38, 112, 237, 0.2) 60%,
    transparent 100%
  );
  border-radius: 1px;
}

.page-hero .container {
  max-width: var(--container-max);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .lead {
  max-width: 680px;
}

/* Lead-Visual auf Leistungs-Unterseiten (Bild neben Hero-Text) */
.leistung-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--glass-border);
}

/* KI-Kennzeichnung (EU AI Act Art. 50): muss direkt am Inhalt sichtbar sein,
   nicht im Impressum. Dezent, aber klar erkennbar und immer eingeblendet. */
.ai-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: rgba(5, 7, 15, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}
.leistung-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.92);
  display: block;
}
@media (max-width: 768px) {
  .leistung-media { aspect-ratio: 4 / 3; } /* auf Mobile flacher */
}

/* ESTI-Zulassung steht alleine – nicht über die ganze Breite ziehen */
.cert-list--solo {
  max-width: 640px;
}

/* Award-Reihe: alle fünf freigestellten Huawei-Auszeichnungen nebeneinander,
   unter dem Foto der Preisverleihung ("Ausgezeichnete Leistung"). */
.award-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--glass-border);
}
.award-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  margin: 0;
  max-width: 180px;
}
/* Grösse über Max-Höhe UND Max-Breite: hohe Glaspokale füllen die Höhe,
   die breite Urkunde die Breite → optisch ausgewogene Reihe. */
.award-strip-item img {
  width: auto;
  height: auto;
  max-height: 140px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
}
.award-strip figcaption {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.award-strip figcaption em {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-text);
}

@media (max-width: 600px) {
  .award-strip { gap: 1.75rem 1.25rem; }
  .award-strip-item { max-width: 118px; }
  .award-strip-item img { max-height: 92px; max-width: 118px; }
  .award-strip figcaption { font-size: 0.6875rem; }
}

/* Award-Gruppenfoto (Zertifikate-Seite) */
.award-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--glass-border);
}
.award-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) brightness(0.95);
}

@media (max-width: 768px) {
  .award-photo { aspect-ratio: 4 / 3; }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-micro) ease-out;
}

.breadcrumb a:hover {
  color: var(--text-secondary);
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-secondary);
}


/* Canvas-to-content gradient fade (applied after canvas-section) */
.canvas-section + .section,
.canvas-section + [style*="background-color"] {
  position: relative;
}

.canvas-section + .section::before,
.canvas-section + [style*="background-color"]::before {
  content: '';
  position: absolute;
  top: calc(-1 * clamp(40px, 8vw, 80px));
  left: 0;
  right: 0;
  height: clamp(40px, 8vw, 80px);
  pointer-events: none;
  z-index: 1;
}


/* --------------------------------------------------------------------------
   12. SECTION DIVIDER
   -------------------------------------------------------------------------- */

.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--glass-border) 20%,
    var(--glass-border) 80%,
    transparent
  );
  margin: 0 var(--section-padding-x);
}


/* --------------------------------------------------------------------------
   13. CONTACT BLOCK
   -------------------------------------------------------------------------- */

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-text);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-micro) ease-out;
}

a.contact-item-value:hover {
  color: var(--accent-text);
}


/* --------------------------------------------------------------------------
   14. TWO-COLUMN CONTENT LAYOUT
   -------------------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.two-col.align-center {
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   15. LIST ITEMS (Leistungen etc.)
   -------------------------------------------------------------------------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   16. MAP SECTION (Kontakt)
   -------------------------------------------------------------------------- */

.map-wrapper {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-consent-overlay {
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}

.map-consent-overlay p {
  font-size: 0.875rem;
  max-width: 360px;
}

.map-consent-overlay.hidden {
  display: none;
}


/* --------------------------------------------------------------------------
   17. TEAM CARDS
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
              0 8px 32px rgba(5, 7, 15, 0.45);
  transition: border-color 200ms ease-out,
              box-shadow 200ms ease-out,
              transform 200ms ease-out;
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              inset 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 16px 48px rgba(5, 7, 15, 0.55);
  transform: translateY(-3px);
}

.team-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: radial-gradient(ellipse 90% 70% at 50% 65%, rgba(38,112,237,0.13) 0%, var(--bg-secondary) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.team-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  pointer-events: none;
  user-select: none;
}

.team-placeholder-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(38,112,237,0.35);
  background: rgba(38,112,237,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent-glow);
  letter-spacing: 0.03em;
}

.team-placeholder-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card-info {
  padding: 1.25rem 1.5rem;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.team-card-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}


/* --------------------------------------------------------------------------
   18. CERTIFICATE ITEMS
   -------------------------------------------------------------------------- */

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
              0 4px 16px rgba(5, 7, 15, 0.35);
  transition: border-color var(--duration-micro) ease-out,
              box-shadow var(--duration-micro) ease-out;
}

.cert-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              inset 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 8px 28px rgba(5, 7, 15, 0.5);
}

.cert-icon {
  width: 40px;
  height: 40px;
  background: rgba(38, 112, 237, 0.1);
  border: 1px solid rgba(38, 112, 237, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-text);
}

.cert-icon svg {
  width: 20px;
  height: 20px;
}

.cert-content {
  flex: 1;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cert-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}
