/* =========================================================================
   Lusides — gemeinsames Designsystem (Header, Footer, Tokens, Effekte).
   Wird auf jeder Seite NACH dem seiteneigenen <style> geladen und
   überschreibt dort die Basis-Tokens, damit alle Seiten einheitlich sind.
   ========================================================================= */
:root{
  --night: #050B18;
  --night-2: #0A1630;
  --blue: #2F6BFF;
  --ice: #8EC5FF;
  --paper: #F4F7FB;
  --paper-dim: #E8EFF8;
  --ink: #0A1428;
  --slate: #56677F;
  --slate-light: #8E9EB5;
  --line: #DCE5F0;
  --accent: #2F6BFF;
  --accent-dim: #DCEBFF;
  --accent-ink: #1E4FBF;
  --radius: 14px;
  --ease: cubic-bezier(.16,1,.3,1);
  --f-sans: 'Instrument Sans', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Typografie über alle Seiten ---------- */
body{ font-family: var(--f-sans) !important; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .display, .brand{ font-family: var(--f-sans) !important; letter-spacing: -0.035em; }
h1, h2{ font-weight: 600 !important; }
.mono, .eyebrow, .section-label{ font-family: var(--f-mono) !important; }
h1 em, h2 em, h3 em{ font-family: var(--f-serif) !important; font-style: italic; font-weight: 400 !important; letter-spacing: -0.015em; }
.serif-i{ font-family: var(--f-serif) !important; font-style: italic; font-weight: 400 !important; letter-spacing: -0.01em; }
::selection{ background: var(--blue); color: #fff; }
.grain{ display: none !important; }
html.lenis, html.lenis body{ height: auto; }
.lenis.lenis-smooth{ scroll-behavior: auto !important; }

/* Bestehende Bausteine der Unterseiten moderner abrunden */
.btn-primary{ border-radius: 999px !important; padding: 16px 26px !important; font-weight: 600; }
.btn-primary:hover{ background: var(--blue) !important; }
.service, .problem-item, .step, .team-card, .card{ border-radius: 22px !important; }
.qualify-form .field input, .qualify-form .field textarea, .qualify-form .field select{ border-radius: 12px !important; }
.qualify-form .submit-btn{ border-radius: 999px !important; }
.faq-item{ border-radius: 0; }

/* ---------- Header ---------- */
.ls-header{
  position: sticky; top: 0; z-index: 60;
  background: rgba(5,11,24,0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform .5s var(--ease), background .3s ease;
}
.ls-header.is-hidden{ transform: translateY(-100%); }
.ls-header .ls-bar{ max-width: 1280px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ls-logo{ display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; font-family: var(--f-sans); }
.ls-links{ display: flex; gap: 30px; font-size: 14px; }
.ls-links a{ color: rgba(255,255,255,0.7) !important; text-decoration: none !important; position: relative; padding: 4px 0; transition: color .25s ease; }
.ls-links a::after{ content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ice); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.ls-links a:hover, .ls-links a.is-current{ color: #fff !important; }
.ls-links a:hover::after, .ls-links a.is-current::after{ transform: scaleX(1); transform-origin: left; }
.ls-right{ display: flex; align-items: center; gap: 16px; }
.ls-lang{ display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; font-family: var(--f-mono); font-size: 12px; }
.ls-lang .lang-btn{ background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; padding: 6px 10px; border-radius: 999px; font: inherit; letter-spacing: .04em; transition: background .2s ease, color .2s ease; }
.ls-lang .lang-btn:hover{ color: #fff; }
.ls-lang .lang-btn.active{ color: var(--night); background: #fff; }
.ls-cta{ display: inline-flex; align-items: center; gap: 12px; background: var(--blue); color: #fff !important; text-decoration: none !important; padding: 10px 10px 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .3s ease, box-shadow .3s ease; box-shadow: 0 10px 30px -10px rgba(47,107,255,0.8); }
.ls-cta:hover{ background: #4A80FF; }
.ls-cta small{ font-family: var(--f-mono); font-size: 11px; font-weight: 500; background: rgba(255,255,255,0.18); padding: 5px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.ls-burger{ display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: none; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.ls-burger span{ display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.ls-burger span::before, .ls-burger span::after{ content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.ls-burger span::before{ top: -5px; } .ls-burger span::after{ top: 5px; }
.ls-header.menu-open .ls-burger span{ background: transparent; }
.ls-header.menu-open .ls-burger span::before{ transform: translateY(5px) rotate(45deg); }
.ls-header.menu-open .ls-burger span::after{ transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 980px){
  .ls-header .ls-bar{ padding: 12px 20px; }
  .ls-burger{ display: inline-flex; }
  .ls-links{ position: fixed; inset: 0 0 auto 0; top: 68px; height: calc(100dvh - 68px); background: var(--night); flex-direction: column; gap: 0; padding: 24px 20px; font-size: 30px; letter-spacing: -0.03em; opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .35s ease, transform .5s var(--ease); }
  .ls-links a{ padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: #fff !important; }
  .ls-links a::after{ display: none; }
  .ls-header.menu-open .ls-links{ opacity: 1; pointer-events: auto; transform: none; }
  .ls-right{ gap: 10px; }
}
@media (max-width: 460px){
  .ls-cta{ padding: 9px 12px; font-size: 13px; }
  .ls-cta small{ display: none; }
  /* Handy: nur die jeweils andere Sprache als runder Knopf */
  .ls-lang{ padding: 0; border: none; }
  .ls-lang .lang-btn{ width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,0.28); color: #fff; font-size: 12px; }
  .ls-lang .lang-btn.active{ display: none; }
  .ls-right{ gap: 8px; }
}

/* ---------- Footer ---------- */
.ls-footer{ background: var(--night); color: rgba(255,255,255,0.6); padding: 110px 40px 36px; position: relative; overflow: hidden; font-family: var(--f-sans); }
.ls-footer a{ color: rgba(255,255,255,0.75) !important; text-decoration: none !important; transition: color .2s ease; }
.ls-footer a:hover{ color: #fff !important; }
.ls-footer .ls-f-inner{ max-width: 1200px; margin: 0 auto; position: relative; }
.ls-footer .ls-f-cta{ display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.ls-footer .ls-f-cta h2{ margin: 0; color: #fff; font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -0.045em; }
.ls-footer .ls-f-cta h2 em{ font-family: var(--f-serif); font-weight: 400; color: var(--ice); }
.ls-wordmark{ font-size: clamp(88px, 21vw, 330px); line-height: .78; letter-spacing: -0.065em; font-weight: 600; color: #fff; margin-top: 90px; user-select: none; white-space: nowrap; }
.ls-wordmark span{ color: var(--blue); }
.ls-f-grid{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; margin-top: 56px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; line-height: 1.85; }
.ls-f-grid b{ display: block; color: #fff; font-weight: 600; margin-bottom: 10px; }
.ls-f-bottom{ display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; font-size: 13px; color: rgba(255,255,255,0.4); }
.ls-f-bottom nav{ display: flex; flex-wrap: wrap; gap: 4px 22px; }
@media (max-width: 860px){ .ls-f-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } .ls-footer{ padding: 72px 20px 28px; } }
@media (max-width: 480px){ .ls-f-grid{ grid-template-columns: 1fr; } }
/* Touch: Fußzeilen-Links mit ausreichend großer Tippfläche */
@media (pointer: coarse){
  .ls-f-grid a{ display: inline-block; padding: 6px 0; line-height: 1.5; }
  .ls-f-bottom nav a{ display: inline-block; padding: 10px 0; }
}

/* ---------- Gemeinsame Effekte ---------- */
.ls-reveal{ opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.ls-reveal.is-in{ opacity: 1; transform: none; }
.ls-reveal[data-delay="1"]{ transition-delay: .08s; } .ls-reveal[data-delay="2"]{ transition-delay: .16s; } .ls-reveal[data-delay="3"]{ transition-delay: .24s; }
.ls-magnetic{ transition: transform .5s var(--ease); will-change: transform; }
.ls-progress{ position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--ice)); z-index: 80; pointer-events: none; }
@media (prefers-reduced-motion: reduce){
  .ls-reveal{ opacity: 1; transform: none; transition: none; }
  .ls-magnetic{ transition: none; }
}

/* ---------- Unterseiten: dunkler Hero wie auf der Startseite ---------- */
body:not(.home) .hero{ background: var(--night) !important; color: #fff; position: relative; overflow: hidden; padding-top: 120px !important; padding-bottom: 110px !important; }
body:not(.home) .hero::before{ content: ''; position: absolute; width: min(60vw, 760px); aspect-ratio: 1; right: -14vw; top: -30vh; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,255,.55), rgba(47,107,255,.12) 45%, transparent 68%); pointer-events: none; }
body:not(.home) .hero::after{ content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 88px 88px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 75% 20%, #000 10%, transparent 75%); pointer-events: none; }
body:not(.home) .hero > *{ position: relative; z-index: 1; }
body:not(.home) .hero .aurora{ display: none; }
body:not(.home) .hero h1{ color: #fff !important; font-size: clamp(44px, 6.4vw, 96px) !important; line-height: .98 !important; letter-spacing: -0.045em !important; max-width: 16ch; }
body:not(.home) .hero .hero-sub, body:not(.home) .hero p{ color: rgba(255,255,255,.66) !important; }
body:not(.home) .hero .eyebrow{ color: var(--ice) !important; }
body:not(.home) .hero .eyebrow::before{ background: var(--ice) !important; }
body:not(.home) .hero .breadcrumb a, body:not(.home) .hero .breadcrumb .sep{ color: rgba(255,255,255,.5) !important; }
body:not(.home) .hero .breadcrumb .current{ color: #fff !important; }
body:not(.home) .hero .btn-primary{ background: #fff !important; color: var(--night) !important; }
body:not(.home) .hero .btn-primary:hover{ background: var(--ice) !important; }
body:not(.home) .hero .link-secondary{ color: #fff !important; border-color: rgba(255,255,255,.35) !important; }
body:not(.home) .hero + .hr{ display: none; }
body:not(.home) .hero + section{ margin-top: 64px; }

/* ---------- Logo ---------- */
.ls-mark{ width: 30px; height: 30px; flex-shrink: 0; display: block; }

/* ---------- Intro: großes Logo-L, das sich entlang seines schrägen Schnitts öffnet ---------- */
.ls-intro{ --xt: 30%; --xb: 70%; position: fixed; inset: 0; z-index: 1000; perspective: 1600px; pointer-events: auto; animation: liSafety .01s 5s forwards; }
@keyframes liSafety{ to{ visibility: hidden; opacity: 0; pointer-events: none; } }
.intro-skip .ls-intro{ display: none; }
.intro-on, .intro-on body{ overflow: hidden; }
.li-half{ position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, #0E2456 0%, #050B18 64%); will-change: transform, opacity; transition: transform 1.3s cubic-bezier(.76,0,.18,1), opacity 1s cubic-bezier(.5,0,.75,0) .2s; }
.li-l{ clip-path: polygon(0 0, calc(var(--xt) + .5px) 0, calc(var(--xb) + .5px) 100%, 0 100%); transform-origin: 0% 50%; }
.li-r{ clip-path: polygon(calc(var(--xt) - .5px) 0, 100% 0, 100% 100%, calc(var(--xb) - .5px) 100%); transform-origin: 100% 50%; }
.li-content{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 3vh, 34px); }
.li-mark{ width: min(58vh, 76vw); aspect-ratio: 1; }
.li-mark svg{ width: 100%; height: 100%; display: block; opacity: 0; transform: scale(.82); transition: opacity .8s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
.li-mark .li-foot{ transform: translate(14px, 21px); opacity: 0; transition: transform .9s cubic-bezier(.16,1,.3,1) .35s, opacity .6s ease .35s; }
.li-word{ display: flex; overflow: hidden; color: #fff; font-family: var(--f-sans); font-weight: 700; font-size: min(10vh, 13vw); line-height: .9; letter-spacing: -0.06em; padding: 0 .04em .08em; white-space: nowrap; }
.li-word span{ display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.16,1,.3,1); }
.li-word span:nth-child(1){ transition-delay: .35s; } .li-word span:nth-child(2){ transition-delay: .39s; } .li-word span:nth-child(3){ transition-delay: .43s; } .li-word span:nth-child(4){ transition-delay: .47s; }
.li-word span:nth-child(5){ transition-delay: .51s; } .li-word span:nth-child(6){ transition-delay: .55s; } .li-word span:nth-child(7){ transition-delay: .59s; }
/* Schnittlinie: von links oben nach rechts unten, exakt durch den Schnitt im L */
.li-line{ position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #fff, var(--ice) 45%, var(--blue));
  clip-path: polygon(calc(var(--xt) - 1.5px) 0, calc(var(--xt) + 1.5px) 0, calc(var(--xt) + 1.5px) 0, calc(var(--xt) - 1.5px) 0);
  transition: clip-path .7s cubic-bezier(.65,0,.35,1), opacity .35s ease; }
.li-glow{ position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(142,197,255,.35), transparent); clip-path: polygon(calc(var(--xt) - 26px) 0, calc(var(--xt) + 26px) 0, calc(var(--xb) + 26px) 100%, calc(var(--xb) - 26px) 100%); filter: blur(10px); transition: opacity .5s ease; }
/* Phase 1: Logo + Schriftzug */
.ls-intro.go .li-mark svg{ opacity: 1; transform: none; }
.ls-intro.go .li-mark .li-foot{ transform: none; opacity: 1; }
.ls-intro.go .li-word span{ transform: none; }
/* Phase 2: Schnitt zieht durch */
.ls-intro.cut .li-line{ clip-path: polygon(calc(var(--xt) - 1.5px) 0, calc(var(--xt) + 1.5px) 0, calc(var(--xb) + 1.5px) 100%, calc(var(--xb) - 1.5px) 100%); }
.ls-intro.cut .li-glow{ opacity: 1; }
/* Phase 3: links und rechts klappen weg */
.ls-intro.open .li-l{ transform: translateX(-62%) rotateY(34deg) scale(1.15); opacity: 0; }
.ls-intro.open .li-r{ transform: translateX(62%) rotateY(-34deg) scale(1.15); opacity: 0; }
.ls-intro.open .li-line, .ls-intro.open .li-glow{ opacity: 0; }
.ls-intro.open{ pointer-events: none; }
/* Seite dahinter kommt einem entgegen */
.intro-on body > main, .intro-on body > .hero{ transform: scale(1.08); transform-origin: 50% 40%; }
.intro-on:not(.intro-open) .fade-up{ animation-play-state: paused; }
.intro-open body > main, .intro-open body > .hero{ transform: none !important; transition: transform 1.4s cubic-bezier(.16,1,.3,1); }

/* Sehr schmale Handys (≤ 400 px): Kopfzeile kompakter */
@media (max-width: 400px){
  .ls-header .ls-bar{ padding: 10px 14px; gap: 10px; }
  .ls-right{ gap: 8px; }
  .ls-logo{ font-size: 18px; gap: 8px; }
  .ls-mark{ width: 26px; height: 26px; }
  .ls-cta{ padding: 9px 12px; font-size: 12.5px; }
  .ls-burger{ width: 40px; height: 40px; }
}
body:not(.home) .hero p a{ color: var(--ice) !important; text-decoration-color: rgba(142,197,255,.5); }

.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Sehr schmale Handys (< 375 px): nur das L-Logo, damit Sprache, Termin und Menü Platz haben */
@media (max-width: 374px){
  .ls-logo{ font-size: 0 !important; gap: 0 !important; }
  .ls-mark{ width: 30px !important; height: 30px !important; }
}

/* Kompakter Seitenkopf (z. B. Projektdatenblatt): Formular sofort sichtbar */
body.compact-hero .hero{ padding-top: 104px !important; padding-bottom: 36px !important; }
body.compact-hero .hero h1{ font-size: clamp(30px, 3.6vw, 48px) !important; line-height: 1.05 !important; max-width: 24ch; }
body.compact-hero .hero .hero-sub{ margin-top: 12px; font-size: 1rem; }
@media (max-width: 640px){ body.compact-hero .hero{ padding-top: 88px !important; padding-bottom: 24px !important; } }
