/* ==========================================================================
   EISMOND GROUP — Corporate Site
   Design-System (Tesla / Starlink inspiriert: dunkel, ruhig, duenne Typo)
   ========================================================================== */

:root {
  /* Farben */
  --noir: #050507;
  --onyx: #0b0b0f;
  --charcoal: #121217;
  --graphite: #1b1b22;
  --line: #25252e;
  --ivory: #f3f1ea;
  --silver: #a6a6b3;
  --slate: #6c6c7c;
  --gold: #d4a843;
  --gold-soft: #e6c878;
  --gold-dim: rgba(212, 168, 67, 0.12);

  /* Typografie */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--noir);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--noir); }

/* --------------------------------------------------------------------------
   Typografie-Skala
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; }

.display {
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 200;
}

.headline {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 250;
}

.lede {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--silver);
  font-weight: 400;
  max-width: 52ch;
}

.gold { color: var(--gold); }
.muted { color: var(--silver); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ivory); color: var(--noir); }
.btn-primary:hover { background: var(--gold); }

.btn-ghost { border-color: var(--line); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold { background: var(--gold); color: var(--noir); }
.btn-gold:hover { background: var(--gold-soft); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--ivory);
}
/* TODO(Logo): Wortmarke spaeter durch echtes Eismond-Logo (SVG) ersetzen */

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ivory); }
.nav-links a.active { color: var(--ivory); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 8px;
    padding: 24px var(--gutter) 32px;
    background: rgba(5, 5, 7, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links a:not(.btn) { padding: 10px 0; font-size: 17px; }
  .nav-links .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .nav.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* --------------------------------------------------------------------------
   Layout-Container & Sektionen
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }

.section-pad { padding: clamp(80px, 14vh, 160px) 0; }

.section-head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-3d::after {
  /* Vignette/Lesbarkeit ueber 3D */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 30%, transparent 0%, rgba(5, 5, 7, 0.35) 60%, var(--noir) 100%),
    linear-gradient(90deg, var(--noir) 0%, rgba(5, 5, 7, 0.4) 45%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero .display { margin-bottom: 24px; max-width: 16ch; }
.hero .lede { margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint .bar {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.3; }
}

/* --------------------------------------------------------------------------
   Spline / 3D Einbettung
   -------------------------------------------------------------------------- */
.spline-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
spline-viewer { width: 100%; height: 100%; display: block; }

/* Poster-Fallback (sichtbar bis Spline laedt oder wenn deaktiviert) */
.spline-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.spline-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 65% 40%, var(--gold-dim) 0%, transparent 60%),
    radial-gradient(50% 50% at 30% 70%, rgba(120, 100, 220, 0.10) 0%, transparent 60%),
    var(--onyx);
}

/* --------------------------------------------------------------------------
   "Was wir bauen" — Kacheln
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 34px 30px 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--charcoal), var(--onyx));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, var(--gold-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(212, 168, 67, 0.4); }
.card:hover::before { opacity: 1; }
.card .card-no { font-size: 13px; color: var(--slate); letter-spacing: 0.2em; }
.card h3 { font-size: 23px; margin: 16px 0 12px; font-weight: 400; }
.card p { font-size: 15px; color: var(--silver); }

/* --------------------------------------------------------------------------
   Teaser / Split-Sektionen
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
}
.split-copy h2 { margin-bottom: 18px; }
.split-copy .lede { margin-bottom: 26px; }

/* Vollbild-Story-Sektionen (Senso) */
.story {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story-3d { position: absolute; inset: 0; z-index: 0; }
.story-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--noir) 0%, transparent 30%, transparent 70%, var(--noir) 100%);
  pointer-events: none;
}
.story-copy { position: relative; z-index: 2; max-width: 46ch; }
.story-copy.center { margin: 0 auto; text-align: center; }
.story-copy.right { margin-left: auto; text-align: right; }
.story-copy h2 { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Stat-Reihe
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
@media (max-width: 680px) { .stats { grid-template-columns: 1fr; gap: 32px; text-align: center; } }
.stat .num { font-size: clamp(34px, 5vw, 52px); font-weight: 200; color: var(--ivory); }
.stat .lbl { font-size: 13px; color: var(--slate); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }

/* --------------------------------------------------------------------------
   CTA-Band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(90px, 16vh, 180px) 0;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, var(--gold-dim), transparent 60%);
  pointer-events: none;
}
.cta-band .headline { margin: 0 auto 28px; max-width: 18ch; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--charcoal), var(--onyx));
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.contact-card .name { font-size: 20px; font-weight: 500; }
.contact-card .meta { color: var(--silver); margin-top: 8px; }
.contact-card .email { display: inline-block; margin-top: 22px; font-size: clamp(20px, 3vw, 30px); color: var(--gold); font-weight: 300; }
.contact-card .email:hover { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .brand { font-size: 13px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--silver); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--gold); }
.footer .copy { width: 100%; font-size: 12px; color: var(--slate); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Visual Panels (eigene Medien / SVG)
   -------------------------------------------------------------------------- */
.visual-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--onyx);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-panel img,
.visual-panel object {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.visual-panel.full img { padding: 0; object-fit: cover; }

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.55;
  pointer-events: none;
}
.hero-visual img {
  width: min(70vw, 720px);
  height: auto;
  margin-right: -5%;
}

/* --------------------------------------------------------------------------
   SENSO Gate (Teaser auf Corporate-Seite, kein Parfum-Content)
   -------------------------------------------------------------------------- */
.senso-gate {
  position: relative;
  padding: clamp(100px, 18vh, 200px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.senso-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, var(--gold-dim), transparent 70%);
  pointer-events: none;
}
.senso-gate-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.senso-gate .wordmark {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 200;
  letter-spacing: 0.35em;
  color: var(--ivory);
  margin-bottom: 12px;
}
.senso-gate .hint {
  font-size: 15px;
  color: var(--slate);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Senso-Seite: Tagline & B2B
   -------------------------------------------------------------------------- */
.tagline {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 12px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: 28px 24px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.pillar h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.pillar p { font-size: 14px; color: var(--silver); }

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 48px;
}
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }

.benefit h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ivory);
}
.benefit p { font-size: 15px; color: var(--silver); line-height: 1.65; }

.vision-band {
  padding: clamp(64px, 12vh, 120px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--gold-dim), transparent);
}
.vision-band .headline { max-width: 22ch; margin: 0 auto 20px; }
.vision-band .lede { margin: 0 auto; text-align: center; max-width: 58ch; }

.nav-links .nav-senso {
  font-weight: 600;
  color: var(--gold) !important;
  letter-spacing: 0.14em;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
