/* ═══════════════════════════════════════════════════
   NOREX — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

/* ─── SELF-HOSTED FONTS (kein Google CDN) ─────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.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;
}

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --bg:           #0A0A0A;
  --bg-2:         #111111;
  --primary:      #0EA5E9;
  --cyan:         #06B6D4;
  --blue:         #3B82F6;
  --white:        oklch(0.96 0.005 250);
  --gray:         #9CA3AF;
  --gray-dim:     rgba(156,163,175,0.6);
  --card-bg:   rgba(255,255,255,0.04);
  --card-bdr:  rgba(255,255,255,0.08);
  --grad:         linear-gradient(100deg, oklch(0.78 0.14 180), oklch(0.72 0.18 295));
  --shadow:       0 4px 24px rgba(6,182,212,0.15), 0 1px 4px rgba(0,0,0,0.4);
  --shadow-lg:    0 16px 48px rgba(6,182,212,0.2), 0 4px 12px rgba(0,0,0,0.5);
  --xs: 4px; --sm: 8px; --md: 16px; --lg: 32px;
  --xl: 64px; --2xl: 128px;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--white);
  text-wrap: balance;
}
a { text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── UTILITIES ──────────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section { padding: var(--xl) 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--card-bdr), transparent); }

/* ─── PILL BUTTONS ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; cursor: pointer;
}
.shiny-cta {
  position: relative; overflow: hidden;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.2; font-weight: 600;
  border-radius: 360px; border: none;
  color: #ffffff;
  background: linear-gradient(100deg, oklch(0.78 0.14 180), oklch(0.72 0.18 295));
  box-shadow: 0 4px 24px rgba(6,182,212,0.3), 0 1px 4px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, opacity 0.2s ease;
  cursor: pointer; outline-offset: 4px;
}
.shiny-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.5s ease;
}
.shiny-cta:hover::after { transform: translateX(100%); }
.shiny-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(6,182,212,0.45), 0 2px 8px rgba(0,0,0,0.5); }
.shiny-cta:active { transform: translateY(0); }
.shiny-cta:focus-visible { outline: 2px solid #0EA5E9; }
.shiny-cta span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.shiny-cta.shiny-ghost { background: transparent; border: 2px solid rgba(255,255,255,0.25); box-shadow: none; color: #ffffff; }
.shiny-cta.shiny-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(6,182,212,0.5); color: #06B6D4; box-shadow: 0 4px 20px rgba(6,182,212,0.15); }
.shiny-cta.shiny-ghost::after { display: none; }
.shiny-cta.shiny-sm { padding: 10px 22px; font-size: 13px; }
.shiny-cta.shiny-full { width: 100%; justify-content: center; padding: 16px 32px; font-size: 16px; }

/* ─── BUTTON GLOW WRAPPER ────────────────────── */
/*
  Nutzung: <span class="btn-glow">  oder  <span class="btn-glow btn-glow-ghost">
             <a class="btn shiny-cta ...">...</a>
           </span>

  - .btn-glow        → Cyan/Blau-Glow (für den gradient Button)
  - .btn-glow-ghost  → Weißer Glow    (für den Ghost Button)
*/
.btn-glow {
  position: relative;
  display: inline-flex;
}
.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 360px;
  background: linear-gradient(100deg, oklch(0.78 0.14 180), oklch(0.72 0.18 295));
  opacity: 0.55;
  filter: blur(12px);
  transition: opacity 1s ease, filter 0.2s ease;
  z-index: 0;
}
.btn-glow:hover::before {
  opacity: 0.9;
  filter: blur(16px);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.btn-glow > * { position: relative; z-index: 1; }

/* Ghost-Variante: weißer/silberner Glow */
.btn-glow.btn-glow-ghost::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(156,163,175,0.4));
  opacity: 0.25;
  filter: blur(14px);
}
.btn-glow.btn-glow-ghost:hover::before {
  opacity: 0.45;
  filter: blur(18px);
}

/* ─── BADGE ──────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.2);
  border-radius: 100px; padding: 5px 14px;
  font-size: 11px; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 6px var(--cyan);
}

/* ─── CARD ───────────────────────────────────── */
.card {
  background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--card-bdr); border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(14,165,233,0.2); }

/* ─── NAV ────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,10,0.8);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 40px; height: 120px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 108px; width: auto; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ─── TUBELIGHT PILL ─────────────────────────── */
.tl-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 100px;
  padding: 4px;
}

.tl-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  transition: color 0.2s ease, background 0.2s ease;
}
.tl-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.tl-item.active { color: var(--primary); background: rgba(14,165,233,0.08); }
.tl-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Icon hidden on desktop, shown in mobile pill */
.tl-icon { display: none; flex-shrink: 0; }

/* Chevron */
.tl-chevron {
  display: inline; vertical-align: middle; margin-left: 1px;
  transition: transform 0.2s ease;
}
#nav-leistungen-btn.open .tl-chevron { transform: rotate(180deg); }

/* ── Lamp-Effekt ── */
.tl-lamp {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 10;
}
.tl-item.active .tl-lamp { opacity: 1; }

.tl-lamp-bar {
  display: block;
  width: 30px; height: 3px;
  background: linear-gradient(90deg, oklch(0.78 0.14 180), oklch(0.75 0.16 237), oklch(0.72 0.18 295));
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 10px rgba(14,165,233,0.9), 0 0 4px rgba(6,182,212,0.6);
}
.tl-lamp-g1 {
  display: block; width: 48px; height: 18px; margin-top: -2px;
  background: radial-gradient(ellipse at top, rgba(6,182,212,0.35) 0%, transparent 70%);
  filter: blur(5px);
}
.tl-lamp-g2 {
  display: block; width: 30px; height: 12px; margin-top: -8px;
  background: radial-gradient(ellipse at top, rgba(14,165,233,0.28) 0%, transparent 70%);
  filter: blur(3px);
}
.tl-lamp-g3 {
  display: block; width: 16px; height: 8px; margin-top: -5px;
  background: radial-gradient(ellipse at top, rgba(14,165,233,0.2) 0%, transparent 70%);
  filter: blur(2px);
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 20px); left: 50%;
  transform: translateX(-50%);
  min-width: 360px;
  background: rgba(14,14,14,0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 4px 16px rgba(6,182,212,0.08);
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}
.nav-dropdown.open {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Accordion group in dropdown */
.dd-group { border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.dd-group:last-child { margin-bottom: 0; }

.dd-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: 8px;
  cursor: pointer; user-select: none;
  transition: background 0.15s;
}
.dd-group-header:hover { background: rgba(255,255,255,0.05); }
.dd-group-header.active { background: rgba(6,182,212,0.08); }

.dd-group-name {
  font-size: 13px; font-weight: 700; color: #fff;
  letter-spacing: 0.02em;
  text-decoration: none; display: block;
}
.dd-group-name:hover { color: var(--cyan); }

.dd-arrow {
  color: var(--gray); font-size: 11px;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0; margin-left: 8px;
}
.dd-group-header.active .dd-arrow { transform: rotate(180deg); color: var(--cyan); }

/* Accordion items list */
.dd-items {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 8px;
}
.dd-items.open { max-height: 400px; }

.dd-item {
  display: block; padding: 8px 10px;
  font-size: 13px; color: var(--gray);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dd-item:hover { background: rgba(255,255,255,0.04); color: #fff; }

/* Bottom divider arrow decoration */
.nav-dropdown::before {
  content: '';
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  background: rgba(14,14,14,0.98);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateX(-50%) rotate(45deg);
}

/* ─── HAMBURGER BUTTON ──────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.1); }
.hb-bar {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger-btn.open .hb-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open .hb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open .hb-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE DRAWER ──────────────────────────── */
.mob-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 490;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mob-overlay.visible { opacity: 1; pointer-events: auto; }

.mob-drawer {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 500;
  width: min(300px, 82vw);
  background: rgba(10,10,10,0.98);
  border-left: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.mob-drawer.open { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

.mob-drawer-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  padding: 80px 16px 24px;
  display: flex; flex-direction: column; gap: 2px;
}
.mob-nav-links { display: flex; flex-direction: column; gap: 2px; }

.mob-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px;
  font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none; border-radius: 10px;
  background: none; border: none; cursor: pointer;
  text-align: left; width: 100%;
  transition: color 0.2s, background 0.2s;
}
.mob-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.mob-nav-link.active { color: var(--primary); background: rgba(14,165,233,0.08); }

.mob-chevron { transition: transform 0.25s ease; color: var(--gray); flex-shrink: 0; }
.mob-nav-toggle.open .mob-chevron { transform: rotate(180deg); }

.mob-nav-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 8px;
}
.mob-nav-sub.open { max-height: 2000px; }

.mob-sub-group { margin-bottom: 2px; }

.mob-sub-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 4px;
}
.mob-sub-name {
  font-size: 10px; font-weight: 700;
  color: var(--cyan); letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  flex: 1;
}
.mob-sub-name:hover { color: #fff; }
.mob-sub-chevron-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--gray);
  display: flex; align-items: center;
  transition: color 0.2s;
}
.mob-sub-chevron-btn:hover { color: #fff; }
.mob-sub-chevron { transition: transform 0.25s ease; }
.mob-sub-chevron-btn.open .mob-sub-chevron { transform: rotate(180deg); }

.mob-sub-items {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.mob-sub-items.open { max-height: 600px; }

.mob-sub-item {
  display: block; padding: 7px 14px;
  font-size: 13px; color: var(--gray);
  text-decoration: none; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.mob-sub-item:hover { color: #fff; background: rgba(255,255,255,0.04); }

.mob-drawer-cta {
  padding: 16px 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 12px;
}

/* ─── MOBILE BOTTOM PILL ─────────────────────── */
.tl-mobile-pill { display: none; }

@media (max-width: 768px) {
  /* Desktop pill ausblenden */
  .tl-pill { display: none; }

  /* CTA-Buttons + Hamburger einblenden */
  .nav-cta { display: flex; gap: 8px; }
  .hamburger-btn { display: flex; }

  /* Nav kompakter */
  .nav-inner { height: 64px; padding: 0 16px; }
  .nav-logo img { height: 44px; }
  .hero { padding-top: 68px; }

  /* Buttons etwas kleiner */
  .nav-cta .btn.shiny-sm { padding: 8px 12px; font-size: 11.5px; }
  .nav-cta .btn.shiny-ghost.shiny-sm { padding: 8px 12px; font-size: 11.5px; }

  /* Drawer aktivieren */
  .mob-overlay { display: block; }
  .mob-drawer { display: flex; }

}

/* ─── HERO ───────────────────────────────────── */
.hero {
  padding-top: 156px; padding-bottom: 96px;
  position: relative; overflow: hidden; text-align: center;
}
@media (max-width: 768px) {
  .hero { padding-top: 78px; padding-bottom: 64px; }
  .hero-headline { margin-bottom: 14px !important; }
  .hero-sub { margin-bottom: 28px !important; }
  .hero-social-proof { margin-top: 32px !important; }
  .hero-carousel { margin-top: 48px !important; }
}
.hero-glow-1 {
  position: absolute; border-radius: 50%;
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.12) 0%, transparent 70%);
  top: -150px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.hero-glow-2 {
  position: absolute; border-radius: 50%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
  top: 200px; right: -200px; pointer-events: none;
}

/* ─── TICKER ─────────────────────────────────── */
.ticker-wrap {
  overflow: hidden; position: relative; padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 140px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before { left:0; background:linear-gradient(to right,var(--bg),transparent); }
.ticker-wrap::after  { right:0; background:linear-gradient(to left,var(--bg),transparent); }
.ticker-track { display: flex; gap: 0; animation: ticker 30s linear infinite; width: max-content; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: 10px; padding: 0 36px;
  color: rgba(255,255,255,0.3); font-size: 13px; font-weight: 600;
  white-space: nowrap; letter-spacing: 0.04em;
}
.ticker-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(14,165,233,0.5); flex-shrink: 0; }

/* ─── SERVICE CARDS ──────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  padding: 32px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--card-bdr);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(14,165,233,0.2); }
.service-card.featured {
  background: linear-gradient(135deg,rgba(6,182,212,0.07),rgba(59,130,246,0.07));
  border-color: rgba(14,165,233,0.2);
}
.icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,rgba(6,182,212,0.12),rgba(59,130,246,0.12));
  border: 1px solid rgba(14,165,233,0.15); margin-bottom: 20px; flex-shrink: 0;
}
.tag {
  display: inline-flex; align-items: center;
  background: rgba(6,182,212,0.07); border: 1px solid rgba(6,182,212,0.15);
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: var(--cyan); letter-spacing: 0.03em;
}

/* ─── STATS (legacy, kept for leistungen pages) ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2px; background: rgba(255,255,255,0.05);
  border-radius: 20px; overflow: hidden;
}
.stat-item { background: var(--bg); padding: 44px 32px; text-align: center; }
.stat-num {
  font-family:'Helvetica Neue',Arial,sans-serif;
  font-size: 52px; font-weight: 700; letter-spacing: -0.04em;
}

/* ─── STATS V2 (homepage) ────────────────────── */
.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card-v2 {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-bdr);
  border-radius: 20px;
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.stat-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(14,165,233,0.15);
}
.stat-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, oklch(0.78 0.14 180), oklch(0.72 0.18 295), transparent);
  border-radius: 20px 20px 0 0;
}
.stat-icon-v2 {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: 10px;
  color: #0ea5e9;
  margin-bottom: 20px;
}
.stat-num-v2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 52px; font-weight: 800; letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 20%, oklch(0.72 0.18 295) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.stat-label-v2 {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
}

/* ─── PROCESS V2 ─────────────────────────────── */
.step-num {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,rgba(6,182,212,0.12),rgba(59,130,246,0.12));
  border: 1px solid rgba(14,165,233,0.2);
  font-weight: 700; font-size: 16px; color: var(--primary); flex-shrink: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex;
  gap: 20px;
  padding-bottom: 8px;
}
.process-step--last { padding-bottom: 0; }
.process-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step-circle {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(14,165,233,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-circle--active {
  background: linear-gradient(135deg, rgba(14,165,233,0.25), rgba(6,182,212,0.2));
  border-color: rgba(14,165,233,0.5);
  box-shadow: 0 0 20px rgba(14,165,233,0.2);
}
.step-circle-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(14,165,233,0.2);
  animation: ring-spin 12s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.step-circle-num {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--primary);
}
.step-connector {
  width: 1px;
  flex: 1;
  margin: 6px 0;
  min-height: 32px;
  background: linear-gradient(to bottom, rgba(14,165,233,0.3), rgba(14,165,233,0.05));
}
.process-step-body {
  padding-top: 10px;
  padding-bottom: 32px;
}
.process-step--last .process-step-body { padding-bottom: 0; }
.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14,165,233,0.7);
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.step-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.step-desc {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.65;
}

/* ─── PRICING / GROUP CARDS ──────────────────── */
.price-card {
  background: var(--card-bg); border: 1px solid var(--card-bdr);
  border-radius: 20px; padding: 36px 32px; position: relative;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.popular {
  background: linear-gradient(135deg,rgba(6,182,212,0.07),rgba(59,130,246,0.07));
  border-color: rgba(14,165,233,0.3);
}
.price-card.popular:hover { box-shadow: var(--shadow-lg); }
.check { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }

/* ─── GROUP CARDS (Homepage) ─────────────────── */

/* Entrance animation */
@keyframes gc-fadein {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.group-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 40px 36px;
  position: relative; display: block;
  text-decoration: none; cursor: pointer;
  opacity: 0; /* hidden until JS triggers entrance */
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}

/* Top gradient line */
.group-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); border-radius: 20px 20px 0 0;
  opacity: 0; transition: opacity 0.3s ease;
}
.group-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,165,233,0.25); }
.group-card:hover::before { opacity: 1; }

/* Entrance: visible class added by IntersectionObserver */
.group-card.gc-visible {
  animation: gc-fadein 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
}
.group-card.gc-visible:nth-child(1) { animation-delay: 0s; }
.group-card.gc-visible:nth-child(2) { animation-delay: 0.12s; }
.group-card.gc-visible:nth-child(3) { animation-delay: 0.26s; }
.group-card.gc-visible:nth-child(4) { animation-delay: 0.40s; }

/* ── Popular card ── */
.group-card--popular {
  border: 2px solid var(--primary) !important;
  background: linear-gradient(160deg, rgba(6,182,212,0.07) 0%, rgba(59,130,246,0.07) 100%) !important;
  box-shadow: 0 0 0 1px rgba(14,165,233,0.1),
              0 20px 60px rgba(6,182,212,0.12),
              0 4px 16px rgba(0,0,0,0.5) !important;
  transform: translateY(-14px);
  z-index: 2;
}
.group-card--popular:hover {
  transform: translateY(-20px) !important;
  box-shadow: 0 0 0 1px rgba(14,165,233,0.2),
              0 28px 72px rgba(6,182,212,0.2),
              0 8px 24px rgba(0,0,0,0.6) !important;
}
.group-card--popular::before { opacity: 1 !important; }

/* Popular badge */
.gc-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(100deg, oklch(0.78 0.14 180), oklch(0.72 0.18 295));
  color: #fff;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  box-shadow: 0 4px 14px rgba(6,182,212,0.4);
}
.gc-popular-badge svg { width: 11px; height: 11px; fill: #fff; flex-shrink: 0; }

/* Count label */
.group-card-count {
  font-size: 11px; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 10px; display: block;
}

.group-card h3 { font-size: 24px; margin-bottom: 12px; color: #fff; }
.group-card p  { font-size: 14px; color: var(--gray); line-height: 1.65; margin-bottom: 24px; }

/* Service list with checkmark icons */
.group-card-services { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.group-card-service {
  font-size: 13px; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 9px;
}
.group-card-service::before {
  content: '';
  flex-shrink: 0;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.28);
  /* CSS checkmark via clip-path */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306B6D4' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─── TESTIMONIALS ───────────────────────────── */
.testi-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 28px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex-shrink: 0;
}
.stars { color: #FBBF24; font-size: 14px; letter-spacing: 1px; }

/* ─── TESTIMONIAL SLIDER ─────────────────────── */
.testi-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.testi-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.testi-slide.exit-left { opacity: 0; transform: translateX(-40px); position: absolute; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), width 0.3s;
  padding: 0;
}
.testi-dot.active { background: linear-gradient(135deg,#06B6D4,#3B82F6); width: 24px; border-radius: 4px; }
#testi-prev:hover, #testi-next:hover {
  background: rgba(6,182,212,0.12) !important;
  color: #06B6D4 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* ─── FAQ ────────────────────────────────────── */
details { border: 1px solid var(--card-bdr); border-radius: 12px; overflow: hidden; cursor: pointer; }
details[open] { border-color: rgba(14,165,233,0.2); }
summary {
  padding: 20px 24px; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; user-select: none; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
.faq-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform 0.2s; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--gray); font-size: 14px; line-height: 1.7; }

/* ─── FORM ───────────────────────────────────── */
.form-field {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 14px 16px;
  color: #fff; font-size: 15px; font-family: 'Inter', sans-serif;
  width: 100%; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field::placeholder { color: rgba(255,255,255,0.3); }
.form-field:focus { border-color: rgba(14,165,233,0.5); box-shadow: 0 0 0 3px rgba(14,165,233,0.08); }
textarea.form-field { resize: vertical; min-height: 120px; }

/* ─── FOOTER ─────────────────────────────────── */
footer { border-top: 1px solid var(--card-bdr); padding: 56px 0 32px; }

/* ─── SAVINGS CALCULATOR ─────────────────────── */
.calc-card {
  background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--card-bdr); border-radius: 24px;
  padding: 56px 64px; position: relative; overflow: hidden;
  max-width: 800px; margin: 0 auto;
}
.calc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.4), transparent);
}
.calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 2px; background: rgba(255,255,255,0.1); outline: none; cursor: pointer; }
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(100deg, oklch(0.78 0.14 180), oklch(0.72 0.18 295));
  cursor: pointer; box-shadow: 0 0 12px rgba(6,182,212,0.5);
  transition: transform 0.2s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: linear-gradient(100deg, oklch(0.78 0.14 180), oklch(0.72 0.18 295)); cursor: pointer;
}
.calc-result {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(52px, 7vw, 80px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  color: #fff;
  transition: all 0.3s ease;
}

/* ─── SUBPAGE HERO ───────────────────────────── */
.subpage-hero {
  padding-top: 140px; padding-bottom: 80px;
  position: relative; text-align: center;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gray); font-size: 14px;
  transition: color 0.2s; margin-bottom: 32px;
}
.back-link:hover { color: var(--cyan); }

/* ─── BENEFIT GRID ───────────────────────────── */
.benefit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.benefit-item {
  background: var(--card-bg); border: 1px solid var(--card-bdr);
  border-radius: 14px; padding: 24px;
  display: flex; align-items: flex-start; gap: 14px;
}
.benefit-check {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px; color: var(--cyan); margin-top: 2px;
}

/* ─── GRAIN TEXTURE ──────────────────────────── */
.grain::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; border-radius: inherit;
}

/* ─── BENEFIT ICON (alias for benefit-check) ─── */
.benefit-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px; color: var(--cyan); margin-top: 2px;
}

/* ─── SERVICE PAGE COMPONENTS ────────────────── */

/* Problem grid */
.sp-problem-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-bottom: 56px;
}
.sp-problem-card {
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.12);
  border-radius: 14px; padding: 24px;
}
.sp-problem-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(239,68,68,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #EF4444;
  margin-bottom: 14px; flex-shrink: 0;
}
.sp-problem-text {
  font-size: 14px; color: var(--gray); line-height: 1.7;
}

/* Solution callout */
.sp-solution-block {
  border-left: 3px solid var(--cyan);
  padding: 20px 28px;
  background: rgba(6,182,212,0.04);
  border-radius: 0 12px 12px 0;
  margin-bottom: 56px;
}

/* Price card */
.sp-price-card {
  background: linear-gradient(135deg, rgba(6,182,212,0.07), rgba(59,130,246,0.05));
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 24px; padding: 40px;
  margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.sp-price-glow {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(6,182,212,0.1) 0%, transparent 70%);
  top: -120px; right: -120px; pointer-events: none;
}
.sp-price-col {
  border: 1px solid rgba(14,165,233,0.1);
  border-radius: 14px; padding: 24px 28px;
  background: rgba(0,0,0,0.2);
}
.sp-price-label {
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 8px; font-weight: 600;
}
.sp-price-amount {
  font-size: 36px; font-weight: 700; line-height: 1.1;
}
.sp-price-includes {
  border-top: 1px solid var(--card-bdr);
  margin-top: 28px; padding-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.sp-price-include-item {
  display: flex; gap: 10px; font-size: 14px;
  color: var(--gray); align-items: center; line-height: 1.5;
}
.sp-price-include-icon {
  color: var(--cyan); font-weight: 700; flex-shrink: 0;
  font-size: 15px;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .service-grid     { grid-template-columns: 1fr 1fr; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .stats-grid-v2    { grid-template-columns: 1fr 1fr; }
  .two-col          { grid-template-columns: 1fr !important; gap: 48px !important; }
  .benefit-grid     { grid-template-columns: 1fr; }
  .calc-card        { padding: 40px 32px; }
  .sp-problem-grid  { grid-template-columns: 1fr; }
  .sp-price-card    { padding: 28px; }
}
@media (max-width: 640px) {
  .container    { padding: 0 20px; }
  .section      { padding: 56px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid-v2 { grid-template-columns: 1fr 1fr; }
  .nav-links    { display: none; }
  .nav-inner    { padding: 0 20px; }
  .price-grid   { grid-template-columns: 1fr !important; }
  .calc-card    { padding: 32px 20px; }
  .sp-price-col { padding: 18px 20px; }
  .sp-price-amount { font-size: 28px; }

  /* ── Footer grid: stack to 2 cols then 1 col ─ */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer-grid > *:first-child {
    grid-column: 1 / -1;   /* logo/description spans full width */
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* ── Screen Carousel: Vollständig auf Mobil ── */
  .mb-slides-wrap {
    aspect-ratio: unset !important;
    height: 400px;
  }
  .mb-slide {
    padding: 18px 16px !important;
  }

  /* ── Subpage: Hero 2-Spalter → 1-Spalter ─── */
  .sp-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* ── Subpage: Prozessschritte 4-Spalter → 2×2 */
  .sp-steps-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* ── Subpage: Stat-Zahlen kleiner ─────────── */
  .sp-hero-grid div[style*="font-size:32px"] {
    font-size: 22px !important;
    word-break: break-word;
  }

  /* ── Service-Pages: 2-Spalter → 1 Spalte ─── */
  /* Kollapst alle inline 1fr 1fr Grids auf Service-Pages,
     außer sp-stats-grid (Stat-Boxen) und sp-price-card (Preiszeile) */
  .section [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .section .sp-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .sp-price-card [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ─── SPOTLIGHT BORDER ───────────────────────── */
/* Cursor-following Glow an Karten-Borders (kein React, reines CSS/JS) */
.group-card,
.service-card,
.testi-card,
.benefit-item,
.sp-problem-card,
.price-card,
.stat-card-v2 {
  --sx: -9999px;
  --sy: -9999px;
}

.group-card::after,
.service-card::after,
.testi-card::after,
.benefit-item::after,
.sp-problem-card::after,
.price-card::after,
.stat-card-v2::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    200px circle at var(--sx) var(--sy),
    rgba(14, 165, 233, 0.85),
    rgba(6, 182, 212, 0.3) 45%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  /* Mask: nur der Border-Ring bleibt sichtbar */
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.group-card:hover::after,
.service-card:hover::after,
.testi-card:hover::after,
.benefit-item:hover::after,
.sp-problem-card:hover::after,
.price-card:hover::after,
.stat-card-v2:hover::after {
  opacity: 1;
}
