/* ==========================================================================
   Renggli Ventures GmbH — style.css
   Struktur: Fonts · Tokens · Base · Surfaces · Header · Buttons · Hero ·
             Sections · Footer · Motion · Responsive
   ========================================================================== */

/* ---------- Fonts (self-hosted, kein Google-Fonts-Request) ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metrik-angepasster Fallback: verhindert Layout-Sprung beim Font-Swap */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 104.3%;
  ascent-override: 95.1%;
  descent-override: 29.7%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Farben (bläulich getönte Neutrals; alle Textfarben ≥ 4.8:1 auf #f7f8fb) */
  --bg: #f7f8fb;
  --text: #111827;
  --text-2: #364152;
  --muted: #566072;
  --subtle: #5f6b7d;
  --line: rgba(17, 24, 39, .09);
  --line-soft: rgba(17, 24, 39, .035);
  --primary: #1f3cff;
  --primary-tint: rgba(31, 60, 255, .075);
  --primary-line: rgba(31, 60, 255, .1);
  --ok: #27b36a;
  --ok-strong: #15803d;   /* Endfarbe der Zähler, 5:1 auf Weiss */
  --hero-logo-w: 148px;   /* Logo in der Hero-Karte */

  /* Flächen */
  --surface-bg: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .58));
  --surface-line: rgba(255, 255, 255, .9);
  --shadow: 0 24px 60px rgba(17, 24, 39, .08);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .92);

  /* Spacing-Skala (4px-Raster) */
  --sp-4: 4px;  --sp-8: 8px;   --sp-12: 12px; --sp-16: 16px; --sp-20: 20px;
  --sp-24: 24px; --sp-32: 32px; --sp-40: 40px; --sp-48: 48px; --sp-56: 56px;
  --sp-64: 64px; --sp-80: 80px;

  /* Radien */
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 28px; --r-pill: 999px;

  /* Typo-Skala */
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px;
  --fs-h3: 24px; --fs-stat: 32px;
  --fs-h2: clamp(34px, 4vw, 48px);
  --fs-h1: clamp(36px, 4.6vw, 62px);
  --font: "DM Sans", "DM Sans Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.25, 1, .5, 1);      /* ease-out-quart */
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .18s;
  --dur: .24s;

  /* Layout */
  --gutter: clamp(12px, 3vw, 20px);
  --shell: min(1160px, 100% - var(--gutter) * 2);
  --header-h: 84px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 48%, #fff 100%);
  font-family: var(--font);
  font-size: var(--fs-md);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image: linear-gradient(rgba(17, 24, 39, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 39, .018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 84%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 84%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(31, 60, 255, .14); }

h1, h2, h3 { text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
/* Fliesstext: keine Einzelwörter in der letzten Zeile (nicht in Karten, dort wird sonst ein Zeilenumbruch mehr erzeugt) */
.hero-lead, .section-intro > p, .tech-copy > p, .about-copy > p, .contact-copy > p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 16px; border-radius: var(--r-sm); background: var(--text); color: #fff; font-size: var(--fs-sm); font-weight: 700; transform: translateY(-200%); transition: transform var(--dur) var(--ease-out); }
.skip-link:focus { transform: none; }
:focus:not(:focus-visible) { outline: none; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(64px, 6vw, 88px) 0; position: relative; }
.section-soft { background: linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .82)); border-block: 1px solid var(--line-soft); }

/* ---------- Surfaces ----------
   .glass   = mit Blur (nur Header, Hero-Karte, Chips)
   .surface = gleicher Look ohne backdrop-filter (alle Content-Karten) */
.glass, .surface {
  background: var(--surface-bg);
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow), var(--shadow-inset);
}
.glass {
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

/* Hintergrund-Glows: Radial-Gradient statt filter: blur() (kein Repaint-Kosten) */
.page-glow { position: fixed; z-index: -2; pointer-events: none; border-radius: 50%; }
.glow-a { width: 520px; height: 520px; top: -240px; left: -220px; background: radial-gradient(circle, rgba(31, 60, 255, .13), transparent 68%); }
.glow-b { width: 600px; height: 600px; top: 14vh; right: -300px; background: radial-gradient(circle, rgba(92, 192, 255, .12), transparent 68%); }

/* ---------- Header / Navigation ---------- */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 50; transition: transform .3s var(--ease-out); }
.site-header.is-hidden { transform: translateY(calc(-100% - var(--sp-24))); }
.site-header:focus-within { transform: none; }

.nav-wrap {
  position: relative;
  height: 70px;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-16);
  padding: 0 var(--sp-12);
}
.brand { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; padding-left: var(--sp-4); border-radius: var(--r-sm); }
.brand img { width: auto; height: 46px; }
.nav-button { justify-self: end; }

.main-nav { display: flex; justify-content: center; align-items: center; gap: var(--sp-24); }
.main-nav a { position: relative; padding: 10px 2px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; transition: color var(--dur-fast) var(--ease-out); }
.main-nav a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 1.5px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out); }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: var(--text); place-content: center; gap: 6px; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out); }
.menu-toggle:active { transform: scale(.94); }
.menu-toggle span { width: 18px; height: 2px; background: #fff; transition: transform var(--dur) var(--ease-out); }

/* ---------- Buttons ---------- */
.nav-button, .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--sp-20);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav-button, .button-dark { color: #fff; background: var(--text); box-shadow: 0 12px 26px rgba(17, 24, 39, .15); }
.nav-button:hover, .button-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(17, 24, 39, .2); }
.button-light { color: var(--text-2); background: rgba(255, 255, 255, .72); border: 1px solid var(--line); }
.button-light:hover { background: #fff; transform: translateY(-2px); }
.nav-button:active, .button:active { transform: translateY(0) scale(.98); box-shadow: 0 6px 14px rgba(17, 24, 39, .14); }
.button-light:active { box-shadow: none; }
.button svg { font-size: 17px; }

/* ---------- Gemeinsame Label-Typo ---------- */
.eyebrow, .section-label, .tech-panel-head, .tech-list span, .company-data span {
  color: var(--subtle);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: min(100svh, 920px); display: grid; align-items: center; padding: calc(var(--header-h) + var(--sp-40)) 0 var(--sp-64); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--sp-56); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow > span { flex: none; margin-left: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(31, 60, 255, .09); }
.hero h1 { margin: var(--sp-16) 0 0; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.05em; font-weight: 600; }
.typed-wrap { display: flex; align-items: baseline; height: 1.04em; white-space: nowrap; color: var(--primary); }
.typed-cursor { flex: none; width: 2px; height: .92em; margin-left: 4px; background: currentColor; border-radius: 99px; transform: translateY(.06em); animation: blinkCaret 1s steps(1) infinite; }
.hero-lead { max-width: 610px; margin: var(--sp-24) 0 0; color: var(--muted); font-size: var(--fs-lg); line-height: 1.65; }
.hero-focus-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-20); }
.hero-focus-row span { padding: 7px var(--sp-12); border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255, 255, 255, .65); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-24); }

.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-12); max-width: 460px; margin-top: var(--sp-32); }
.trust-item { padding: var(--sp-16); border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .48); }
.trust-item strong { display: block; font-size: var(--fs-h3); line-height: 1; letter-spacing: -.035em; }
.trust-item span { display: block; margin-top: 6px; color: var(--subtle); font-size: var(--fs-xs); line-height: 1.35; }

.hero-art { position: relative; min-height: 540px; display: grid; place-items: center; }
.visual-wrap { --net-pb: 72px; position: relative; width: min(405px, 100% - 120px); padding-bottom: var(--net-pb); transition: transform .25s var(--ease-out); }
.visual-card { position: relative; z-index: 2; border-radius: var(--r-xl); padding: var(--sp-20); overflow: hidden; }
.visual-card::before { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 60, 255, .18), transparent 68%); top: -110px; left: -90px; pointer-events: none; }
.visual-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; color: var(--subtle); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .72); border: 1px solid var(--line); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(39, 179, 106, .1); }
.visual-logo-wrap { position: relative; min-height: 148px; display: grid; place-items: center; }
.visual-logo { width: var(--hero-logo-w); max-width: 32%; filter: drop-shadow(0 16px 28px rgba(17, 24, 39, .09)); }
.visual-stack { position: relative; z-index: 1; display: grid; gap: 10px; }
.stack-card { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 11px var(--sp-12); border-radius: var(--r-md); background: rgba(255, 255, 255, .62); border: 1px solid var(--line); transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.stack-chevron { font-size: 16px; color: var(--subtle); transition: transform .35s var(--ease-out), color .35s var(--ease-out); }
.stack-icon { transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out); }
.stack-card.is-active { background: #fff; border-color: rgba(31, 60, 255, .3); box-shadow: 0 10px 26px rgba(31, 60, 255, .1); }
.stack-card.is-active .stack-chevron { transform: translateX(3px); color: var(--primary); }
.stack-card.is-active .stack-icon { background: rgba(31, 60, 255, .14); border-color: rgba(31, 60, 255, .2); }
.stack-card small { display: block; color: var(--subtle); font-size: var(--fs-xs); }
.stack-card strong { display: block; margin-top: 2px; font-size: 13px; }

.stack-icon, .service-icon, .shop-symbol, .feature-icon { display: grid; place-items: center; color: var(--primary); background: var(--primary-tint); border: 1px solid var(--primary-line); }
.stack-icon { width: 40px; height: 40px; border-radius: var(--r-sm); font-size: 19px; }

/* Hero-Netzwerk: schwebende Knoten (HTML) + Landepunkte auf den Kategorien; ein Punkt fliegt vom Knoten zur Kategorie */
.node { --float: 9px; position: absolute; z-index: 5; pointer-events: none; white-space: nowrap; animation: nodeFloat 5s ease-in-out infinite; transition: opacity .6s var(--ease-out) .5s, color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.js .node { opacity: 0; }
.js .is-live .node { opacity: 1; }
.node-chip { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--r-pill); color: var(--text-2); font-size: var(--fs-xs); font-weight: 700; }
.node-chip.is-lit { color: var(--primary); border-color: rgba(31, 60, 255, .28); }
.node-text { --float: 6px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; transition-property: opacity, color; }
.node-text.is-lit { color: var(--primary); }
.node-morgenda { top: calc((100% - var(--net-pb)) * .36); left: -46px; animation-delay: -1.6s; }
.node-swiss { top: calc((100% - var(--net-pb)) * .22); right: -46px; animation-delay: 0s; }
.node-nitro { top: calc((100% - var(--net-pb)) * .70); right: -66px; animation-delay: -3s; }
.node-lynex { top: calc((100% - var(--net-pb)) * .84); left: -60px; animation-delay: -2.2s; }
.node-data { bottom: 8px; left: 0; right: 0; width: max-content; margin-inline: auto; animation-delay: -.8s; }

.net-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.net-port { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--primary); scale: 0; transition: scale .6s var(--ease-out-expo) calc(var(--i, 0) * .14s + .9s); }
.net-port::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(31, 60, 255, .13); animation: haloPulse 3.2s ease-in-out infinite; }
.is-live .net-port { scale: 1; }
.net-dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(31, 60, 255, .14), 0 0 16px 3px rgba(31, 60, 255, .4); offset-rotate: 0deg; opacity: 0; }
.net-ping { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 1.5px solid var(--primary); opacity: 0; }

/* ---------- Sektionen ---------- */
.section-intro { max-width: 760px; margin-bottom: var(--sp-40); }
.section-intro h2, .tech-copy h2, .about-copy h2, .contact-copy h2, .software-copy h2 { margin: var(--sp-12) 0 0; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; }
.section-intro > p, .tech-copy > p, .about-copy > p, .contact-copy > p, .software-copy > p { margin: 0; color: var(--muted); font-size: var(--fs-md); line-height: 1.7; }
.section-intro > p { margin-top: var(--sp-16); max-width: 620px; }

.service-grid, .shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); }
.service-card, .shop-card { border-radius: var(--r-lg); padding: var(--sp-24); display: flex; flex-direction: column; }
.service-card { min-height: 300px; }
.shop-card { min-height: 280px; }
.service-icon { width: 48px; height: 48px; border-radius: var(--r-sm); font-size: 22px; }
.service-card h3, .shop-card h3 { margin: var(--sp-24) 0 var(--sp-8); font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.025em; }
.service-card p, .shop-card p { margin: 0 0 var(--sp-24); color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.mini-tags { margin-top: auto; padding-top: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tags span { padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255, 255, 255, .56); color: var(--subtle); font-size: var(--fs-xs); font-weight: 600; }

.shop-head { display: flex; align-items: center; gap: var(--sp-12); color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; }
.shop-symbol { width: 40px; height: 40px; border-radius: var(--r-sm); font-size: 19px; }
.shop-card h3 { margin-top: var(--sp-20); }
.shop-foot { margin-top: auto; padding-top: var(--sp-16); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-16); color: var(--subtle); font-size: var(--fs-xs); font-weight: 600; border-top: 1px solid var(--line); }
.shop-foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: var(--text-2); border-radius: 6px; transition: color var(--dur-fast) var(--ease-out); }
.shop-foot a svg { font-size: 13px; transition: transform var(--dur) var(--ease-out); }
.shop-foot a:hover { color: var(--primary); }
.shop-foot a:hover svg { transform: translate(2px, -2px); }

.tech-grid, .about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--sp-64); align-items: center; }
.tech-copy > p, .about-copy > p { margin-top: var(--sp-16); }
.feature-list { display: grid; gap: var(--sp-8); margin-top: var(--sp-32); }
.feature-row { display: grid; grid-template-columns: 42px 1fr; gap: var(--sp-12); align-items: center; padding: var(--sp-12) 0; border-bottom: 1px solid var(--line); }
.feature-icon { width: 38px; height: 38px; border-radius: var(--r-sm); font-size: 17px; }
.feature-row strong { display: block; font-size: var(--fs-sm); }
.feature-row span { display: block; margin-top: 3px; color: var(--subtle); font-size: 13px; }

.tech-panel { border-radius: var(--r-xl); padding: var(--sp-24); }
.tech-panel-head { display: flex; justify-content: space-between; align-items: center; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(39, 179, 106, .1); }
.tech-list { margin-top: var(--sp-16); border-top: 1px solid var(--line); }
.tech-list > div { display: grid; grid-template-columns: 136px 1fr; gap: var(--sp-16); padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tech-list strong { font-size: 13px; line-height: 1.5; }
.tech-note { margin-top: var(--sp-16); display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-12); align-items: center; padding: 14px; border-radius: var(--r-md); background: rgba(31, 60, 255, .055); border: 1px solid var(--primary-line); color: var(--primary); }
.tech-note > svg { font-size: 23px; }
.tech-note small { display: block; color: var(--subtle); font-size: var(--fs-xs); }
.tech-note strong { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; }

.about-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about-card { min-height: 140px; border-radius: var(--r-lg); padding: var(--sp-24); display: flex; flex-direction: column; justify-content: space-between; }
.about-card strong { font-size: var(--fs-stat); line-height: 1; letter-spacing: -.035em; }
.about-card span { color: var(--subtle); font-size: 13px; line-height: 1.45; }

.contact-box { border-radius: var(--r-xl); padding: var(--sp-40); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--sp-56); align-items: center; }
.contact-copy > p { margin-top: var(--sp-16); max-width: 600px; }
.contact-copy .button { margin-top: var(--sp-24); }
.company-data { border-left: 1px solid var(--line); padding-left: var(--sp-32); }
.company-data > div { display: grid; grid-template-columns: 140px 1fr; gap: var(--sp-16); padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.company-data > div:first-child { padding-top: 0; }
.company-data > div:last-child { padding-bottom: 0; border-bottom: 0; }
.company-data strong { font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }

/* Software (Lynex Lab®) */
.software-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--sp-64); align-items: center; }
.software-copy > p { margin-top: var(--sp-16); max-width: 520px; }
.software-copy .button { margin-top: var(--sp-24); }
.software-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.software-card { display: flex; flex-direction: column; border-radius: var(--r-lg); padding: var(--sp-24); }
.software-card h3 { margin: var(--sp-20) 0 var(--sp-8); font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.software-card p { margin: 0 0 var(--sp-20); color: var(--muted); font-size: 13px; line-height: 1.65; }
.software-card .mini-tags { padding-top: 0; }


/* ---------- Brand logos ---------- */
.shop-head-logo {
  min-height: 72px;
  display: flex;
  align-items: center;
}
.shop-brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}
.shop-brand-logo-swisscover {
  max-width: 92px;
  max-height: 72px;
}
.shop-brand-logo-wide {
  max-width: 224px;
  max-height: 54px;
}
.software-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.software-brand-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
}
.software-brand-logo img {
  display: block;
  width: 66px;
  height: 66px;
  object-fit: contain;
}
.software-brand .section-label { margin: 0 0 4px; }
.software-brand-name {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
@media (max-width: 620px) {
  .shop-head-logo { min-height: 62px; }
  .shop-brand-logo { max-width: 178px; max-height: 48px; }
  .shop-brand-logo-swisscover { max-width: 78px; max-height: 62px; }
  .software-brand-logo, .software-brand-logo img { width: 58px; height: 58px; }
  .software-brand-logo { flex-basis: 58px; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-16); }
.faq-card { border-radius: var(--r-lg); padding: var(--sp-24); }
.faq-card h3 { margin: 0 0 var(--sp-8); font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.faq-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.faq-card a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(31, 60, 255, .3); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.faq-card a:hover { text-decoration-color: currentColor; }

/* Zähler: ruhige Animation; ohne JS/Reduced Motion direkt Endwert */
.count { color: var(--ok-strong); font-variant-numeric: tabular-nums; }
.about-card .count, .trust-item .count { display: block; }

/* Karten-Zeilen über die Reihe ausrichten, unabhängig von Titel-/Textlänge */
@supports (grid-template-rows: subgrid) {
  .service-card, .shop-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .service-card .mini-tags, .shop-card .shop-foot { align-self: end; }
}

/* ---------- Footer ---------- */
.site-footer { padding: var(--sp-12) 0 var(--sp-32); }
.footer-inner { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-20); align-items: center; border-top: 1px solid var(--line); }
.footer-logo { width: auto; height: 40px; }
.footer-inner p, .footer-inner a { margin: 0; color: var(--subtle); font-size: var(--fs-xs); }
.footer-inner > a { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--sp-4); border-radius: var(--r-sm); transition: color var(--dur-fast) var(--ease-out); }
.footer-inner > a:hover, .footer-inner p a:hover { color: var(--text); }
.footer-inner p a { text-decoration: underline; text-decoration-color: rgba(17, 24, 39, .25); text-underline-offset: 3px; }

/* ---------- Motion ---------- */
@keyframes haloPulse { 50% { transform: scale(1.4); opacity: .45; } }
@keyframes nodeFloat { 50% { transform: translateY(calc(var(--float) * -1)); } }
@keyframes blinkCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Reveal nur mit aktivem JS (sonst bliebe Inhalt bei Skriptfehler unsichtbar) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .delay-1 { transition-delay: .1s; }
.js .delay-2 { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .main-nav { gap: var(--sp-16); }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + var(--sp-32)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-32); }
  .hero-copy { max-width: 780px; }
  .hero-art { min-height: 430px; }
  .service-grid, .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid > :last-child, .shop-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-header { top: 10px; }
  .nav-wrap { height: 64px; grid-template-columns: 1fr auto; }
  .brand img { height: 42px; }
  .nav-button { display: none; }
  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute; top: calc(100% + var(--sp-8)); left: 0; right: 0;
    display: grid; justify-content: stretch; gap: 0; padding: var(--sp-8);
    border-radius: var(--r-lg); background: #fff; border: 1px solid var(--surface-line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--sp-12); border-radius: var(--r-sm); font-size: var(--fs-md); }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a:active { background: rgba(17, 24, 39, .045); }
  .menu-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { padding-top: calc(var(--header-h) + var(--sp-24)); }
  .tech-grid, .about-grid, .contact-box, .software-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-32); }
  .company-data { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--sp-16); }
  .company-data > div:first-child { padding-top: 14px; }
}

@media (max-width: 620px) {
  .software-bento, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  :root { --fs-h1: clamp(28px, 9.4vw, 44px); --fs-lg: 16px; --fs-h2: 32px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + var(--sp-16)) 0 var(--sp-48); }
  .trust-row { gap: var(--sp-8); }
  .trust-item { padding: var(--sp-12); }
  .hero-focus-row { gap: var(--sp-8); }
  .hero-art { min-height: 0; }
  .visual-card { padding: var(--sp-16); border-radius: var(--r-lg); }
  .visual-logo-wrap { min-height: 132px; }
  .node, .net-layer { display: none; }
  .visual-wrap { width: 100%; padding-bottom: 0; }
  .service-grid, .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid > :last-child, .shop-grid > :last-child { grid-column: auto; }
  .service-card, .shop-card { min-height: 0; }
  .about-cards { grid-template-columns: minmax(0, 1fr); }
  .about-card { min-height: 112px; }
  .tech-list > div, .company-data > div { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .contact-box { padding: var(--sp-24); border-radius: var(--r-lg); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--sp-4); padding-top: var(--sp-16); }
  .footer-inner > a { justify-self: start; margin-left: calc(var(--sp-4) * -1); }
}

@media (pointer: coarse) {
  .shop-foot a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Upgrade 25.09.2026: Security, Privacy & Tracking ---------- */
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Hero-Kennzahlen: vier ruhige, kompakte Fakten */
.trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 650px; }
.trust-item { min-height: 92px; }

/* Vier Leistungsfelder auf grossen Screens */
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card { min-height: 318px; }

/* Security & Performance */
.security-section { overflow: hidden; }
.security-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--sp-64); align-items: center; }
.security-copy h2 { margin: var(--sp-12) 0 0; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; }
.security-copy > p { margin: var(--sp-16) 0 0; max-width: 560px; color: var(--muted); font-size: var(--fs-md); line-height: 1.7; text-wrap: pretty; }
.security-signature { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--sp-28, 28px); color: var(--text-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.security-signature i { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(31, 60, 255, .08); }
.security-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.security-card { min-height: 210px; border-radius: var(--r-lg); padding: var(--sp-24); }
.security-kicker { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding-inline: 8px; border-radius: var(--r-pill); background: var(--primary-tint); color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.security-card h3 { margin: var(--sp-20) 0 var(--sp-8); font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.security-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.68; }

/* Footer */
.footer-links { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-12); }
.footer-links a, .footer-link-button { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--sp-4); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--subtle); font: inherit; font-size: var(--fs-xs); cursor: pointer; transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover, .footer-link-button:hover { color: var(--text); }

/* Consent-Banner: wird nur angezeigt, wenn eine echte GTM-ID konfiguriert ist */
.consent-banner { position: fixed; z-index: 80; left: 50%; bottom: 18px; width: min(760px, calc(100% - 28px)); transform: translateX(-50%); border-radius: var(--r-lg); padding: var(--sp-20); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-24); align-items: center; }
.consent-banner[hidden] { display: none !important; }
.consent-banner strong { display: block; font-size: var(--fs-sm); }
.consent-banner p { margin: 5px 0 0; color: var(--muted); font-size: var(--fs-xs); line-height: 1.55; }
.consent-banner p a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--sp-8); justify-content: flex-end; }
.consent-actions .button { min-height: 42px; padding-inline: var(--sp-16); border: 0; cursor: pointer; }

/* Datenschutz */
.legal-main { padding: calc(var(--header-h) + var(--sp-64)) 0 var(--sp-80); }
.legal-hero { max-width: 820px; padding: var(--sp-48) 0 var(--sp-40); }
.legal-hero h1 { margin: var(--sp-12) 0 0; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.05em; font-weight: 600; }
.legal-hero p { max-width: 720px; margin: var(--sp-20) 0 0; color: var(--muted); font-size: var(--fs-lg); line-height: 1.65; }
.legal-layout { display: grid; grid-template-columns: minmax(0, .32fr) minmax(0, .68fr); gap: var(--sp-48); align-items: start; }
.legal-nav { position: sticky; top: 110px; border-radius: var(--r-lg); padding: var(--sp-20); }
.legal-nav strong { display: block; margin-bottom: var(--sp-12); font-size: var(--fs-sm); }
.legal-nav a { display: block; padding: 8px 0; color: var(--subtle); font-size: 13px; line-height: 1.35; }
.legal-nav a:hover { color: var(--primary); }
.legal-content { display: grid; gap: var(--sp-16); }
.legal-card { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); scroll-margin-top: 110px; }
.legal-card h2 { margin: 0 0 var(--sp-12); font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.legal-card h3 { margin: var(--sp-20) 0 var(--sp-8); font-size: 17px; }
.legal-card p, .legal-card li { color: var(--muted); font-size: var(--fs-sm); line-height: 1.75; }
.legal-card p { margin: 0 0 var(--sp-12); }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: var(--sp-12) 0 0; padding-left: 20px; }
.legal-card a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(31, 60, 255, .28); text-underline-offset: 3px; }
.privacy-control { margin-top: var(--sp-16); }
.privacy-control .button { border: 0; cursor: pointer; }
.legal-note { color: var(--subtle); font-size: var(--fs-xs); }

@media (max-width: 1060px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid > :last-child { grid-column: auto; }
  .security-grid { gap: var(--sp-40); }
}

@media (max-width: 860px) {
  .security-grid, .legal-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-32); }
  .legal-nav { position: static; }
  .footer-links { justify-self: start; justify-content: flex-start; }
}

@media (max-width: 620px) {
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .trust-item { min-height: 88px; }
  .service-grid, .security-bento { grid-template-columns: minmax(0, 1fr); }
  .security-card { min-height: 0; }
  .consent-banner { bottom: 10px; grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); padding: var(--sp-16); }
  .consent-actions { justify-content: stretch; }
  .consent-actions .button { flex: 1 1 150px; }
  .legal-main { padding-top: calc(var(--header-h) + var(--sp-40)); }
  .legal-hero { padding-top: var(--sp-32); }
}

/* ========================================================================== 
   Layout-Fix 25.09.2026 v2
   Cache-busted via ?v=filemtime in PHP. Keeps the new blocks compatible with
   browsers that previously cached the older stylesheet.
   ========================================================================== */

/* Hero facts: three useful facts, balanced in one row on desktop */
.trust-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  gap: 12px;
}
.trust-item {
  min-height: 112px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trust-item strong { font-size: clamp(30px, 2.4vw, 38px); }
.trust-item span { max-width: 180px; margin-top: 9px; font-size: 13px; line-height: 1.42; }

/* Four capabilities: clean 2 × 2 composition, no orphan card */
.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.service-grid > :last-child { grid-column: auto; }
.service-card {
  display: flex;
  min-height: 252px;
  padding: 28px;
}
.service-card h3 { margin-top: 22px; }
.service-card p { max-width: 560px; }

/* Security & performance: bento panel with readable principle chips */
.security-section {
  position: relative;
  overflow: hidden;
}
.security-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -250px;
  top: -170px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(31, 60, 255, .075), transparent 68%);
}
.security-grid {
  position: relative;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.security-copy { max-width: 510px; }
.security-signature {
  gap: 8px;
  margin-top: 26px;
  text-transform: none;
  letter-spacing: 0;
}
.security-signature span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .62);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}
.security-signature i {
  width: 4px;
  height: 4px;
  box-shadow: none;
}
.security-bento { gap: 16px; }
.security-card {
  min-height: 218px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.security-kicker { align-self: flex-start; }
.security-card h3 { margin-top: 22px; font-size: 20px; }
.security-card p { font-size: 14px; line-height: 1.68; }

/* Privacy page remains readable even on very wide displays */
.legal-main .shell { max-width: 1180px; }
.legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.legal-nav { top: 104px; }
.legal-card { background: rgba(255, 255, 255, .76); }

@media (max-width: 1060px) {
  .trust-row { max-width: 720px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid > :last-child { grid-column: auto; }
}

@media (max-width: 860px) {
  .security-grid,
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .security-copy { max-width: 680px; }
  .legal-nav { position: static; }
}

@media (max-width: 620px) {
  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .trust-item {
    min-height: 110px;
    padding: 14px 12px;
  }
  .trust-item strong { font-size: 28px; }
  .trust-item span { font-size: 11px; line-height: 1.35; }
  .service-grid,
  .security-bento { grid-template-columns: minmax(0, 1fr); }
  .service-card,
  .security-card { min-height: 0; padding: 22px; }
  .security-signature { gap: 7px; }
  .security-signature span { min-height: 32px; padding-inline: 10px; font-size: 11px; }
}

@media (max-width: 390px) {
  .trust-row { grid-template-columns: minmax(0, 1fr); }
  .trust-item { min-height: 84px; }
  .trust-item span { max-width: none; font-size: 12px; }
}
