/* ============================================================
   NEXUS · Seite Vermietungs-App
   Baut auf style.css auf. Rot kommt nur aus dem Produkt selbst
   (Screens und Lichtschein), die Seite bleibt Schwarz und Tiffany.
   ============================================================ */

.head-nav a.is-active { color: var(--tiffany-hi); }

.eyebrow .sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mist);
  opacity: 0.6;
}

/* ============ Hero mit drei schwebenden Handys ============ */

.app-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--head-h) + 6vh);
  padding-bottom: 6vh;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.app-title { font-size: clamp(2.5rem, 5.6vw, 4.8rem); }

.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.app-facts li { display: flex; align-items: center; gap: 9px; }
.app-facts .dot { width: 5px; height: 5px; }

.app-hero-stage {
  position: relative;
  height: clamp(480px, 52vw, 640px);
}

.app-glow {
  position: absolute;
  inset: 8% -12% -14%;
  background:
    radial-gradient(46% 46% at 32% 62%, rgba(10, 186, 181, 0.24), transparent 70%),
    radial-gradient(42% 42% at 72% 52%, rgba(198, 40, 61, 0.3), transparent 70%);
  filter: blur(12px);
}

.app-phone {
  position: absolute;
  width: var(--w);
  height: auto;
  filter: drop-shadow(0 44px 60px rgba(0, 0, 0, 0.65));
  will-change: transform, translate;
  animation: phoneFloat var(--dur) ease-in-out var(--delay, 0s) infinite;
}

.app-phone-c { --w: 300px; --dur: 7s; left: 50%; top: 0; margin-left: -150px; z-index: 3; }
.app-phone-l { --w: 232px; --dur: 8.6s; --delay: -2.2s; left: 0; top: 96px; z-index: 2; }
.app-phone-r { --w: 232px; --dur: 9.4s; --delay: -4.1s; right: 0; top: 56px; z-index: 1; }

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

/* ============ 3D-Showcase ============ */

.sec-sub {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--mist);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.sc {
  --sc-dur: 3600ms;
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(94, 230, 224, 0.05), rgba(9, 26, 25, 0.62) 55%);
  border: 1px solid var(--edge);
  overflow: hidden;
  isolation: isolate;
}

.sc::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -45%;
  width: 60%;
  height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(198, 40, 61, 0.3), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.sc-scene {
  perspective: 1800px;
  width: 330px;
  height: 714px;
  margin-inline: auto;
}

.sc-phone {
  position: relative;
  width: 330px;
  height: 714px;
  border-radius: 50px;
  background: #0c0d10;
  box-shadow:
    inset 0 0 0 2px #2a2d33,
    inset 0 0 0 6px #0a0b0d,
    inset 0 0 0 7px #3a3d44,
    0 60px 80px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(6deg);
  transition: transform 0.25s ease-out;
}

.sc-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sc-screen {
  position: absolute;
  inset: 11px;
  border-radius: 40px;
  overflow: hidden;
  background: #0f1115;
}

.sc-sb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 8px 30px;
  background: var(--sbbg, #0f1115);
  color: #fff;
  font: 600 14px/1 "Archivo", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.sc-sb svg { display: block; }

.sc-screen img {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  bottom: 0;
  width: 100%;
  height: calc(100% - 50px);
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.6s;
}

.sc-screen img.on { opacity: 1; }

.sc-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 28%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.sc-island {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100px;
  height: 28px;
  margin-left: -50px;
  border-radius: 16px;
  background: #000;
  z-index: 4;
}

.sc-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }

.sc-lead { color: var(--mist); max-width: 48ch; }

.sc-chapters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 26px;
}

.sc-chapter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: left;
  color: var(--mist);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.sc-chapter:hover { color: var(--ink); background: rgba(10, 186, 181, 0.05); }

.sc-chapter.on {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--edge);
}

.sc-num {
  width: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  transition: color 0.3s;
}

.sc-chapter.on .sc-num { color: var(--tiffany-hi); }

.sc-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(94, 230, 224, 0.12);
  overflow: hidden;
  opacity: 0;
}

.sc-chapter.on .sc-bar { opacity: 1; }

.sc-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tiffany);
  transform: scaleX(0);
  transform-origin: left;
}

.sc.is-running .sc-chapter.on .sc-bar::after { animation: scBar var(--sc-dur) linear forwards; }

@keyframes scBar {
  to { transform: scaleX(1); }
}

.sc-cap {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--tiffany);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  min-height: 48px;
}

.sc-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ============ Funktionen ============ */

.fx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fx-grid li {
  position: relative;
  padding: 26px 26px 26px 70px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--edge);
  transition: border-color 0.35s, transform 0.35s, background 0.35s;
}

.fx-grid li:hover {
  border-color: var(--edge-hi);
  background: var(--panel-hi);
  transform: translateY(-3px);
}

.fx-num {
  position: absolute;
  left: 26px;
  top: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--pop);
}

.fx-grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.fx-grid p { font-size: 14.5px; color: var(--mist); }

html.js .fx-grid[data-reveal] { opacity: 1; transform: none; }
html.js .fx-grid[data-reveal]:not(.revealed) li { opacity: 0; }
html.js .fx-grid[data-reveal].revealed li { animation: riseIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
html.js .fx-grid[data-reveal].revealed li:nth-child(2) { animation-delay: 0.06s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(3) { animation-delay: 0.12s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(4) { animation-delay: 0.18s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(5) { animation-delay: 0.24s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(6) { animation-delay: 0.3s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(7) { animation-delay: 0.36s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(8) { animation-delay: 0.42s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(9) { animation-delay: 0.48s; }
html.js .fx-grid[data-reveal].revealed li:nth-child(10) { animation-delay: 0.54s; }

/* ============ Ablauf in fünf Schritten ============ */

.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
html.js .steps-5[data-reveal].revealed .step:nth-child(5) { animation-delay: 0.4s; }

/* ============ Dokumente ============ */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.doc-card {
  padding: 26px 24px 28px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--edge);
  text-align: center;
  transition: border-color 0.35s;
}

.doc-card:hover { border-color: var(--edge-hi); }

.doc-visual {
  margin: 0 auto 22px;
  max-width: 300px;
  will-change: transform;
}

.doc-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.doc-card:hover .doc-visual img { transform: translateY(-8px); }

.doc-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.doc-card p { font-size: 14px; color: var(--mist); max-width: 32ch; margin-inline: auto; }

/* ============ Für wen und Technik ============ */

.who-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.who-list { display: flex; flex-direction: column; gap: 18px; }

.who-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--edge);
}

.who-list .diamond { margin-top: 8px; width: 8px; height: 8px; }

.who-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.who-list p { font-size: 14.5px; color: var(--mist); }

.who-grid .facts { position: static; }
.who-grid .fact-value { font-size: 1.02rem; line-height: 1.4; }

/* ============ So bekommst du die App ============ */

.sec-get { padding-bottom: clamp(110px, 13vw, 180px); }

.get-head { text-align: center; }

.get-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 16ch;
  margin-inline: auto;
}

.get-sub {
  margin-top: 22px;
  color: var(--mist);
  max-width: 56ch;
  margin-inline: auto;
}

.get-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 960px;
  margin-inline: auto;
}

.get-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(94, 230, 224, 0.06), rgba(9, 26, 25, 0.6) 55%);
  border: 1px solid var(--edge);
  transition: border-color 0.35s, transform 0.35s;
}

.get-card:hover { border-color: var(--edge-hi); transform: translateY(-4px); }

.get-card-hi { border-color: rgba(10, 186, 181, 0.45); box-shadow: 0 0 60px rgba(10, 186, 181, 0.08); }

.get-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pop);
}

.get-card h3 { font-size: 1.5rem; }
.get-card p { color: var(--mist); flex: 1; }
.get-card .btn { margin-top: 10px; }

.get-alt {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--mist);
}

/* ============ Responsive ============ */

@media (max-width: 1020px) {
  .app-hero-grid { grid-template-columns: 1fr; }
  .app-hero-stage { height: clamp(380px, 70vw, 520px); max-width: 560px; margin-inline: auto; width: 100%; }
  .app-phone-c { --w: 240px; margin-left: -120px; }
  .app-phone-l, .app-phone-r { --w: 180px; }
  .steps.steps-5 { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .who-grid { grid-template-columns: 1fr; }
  .get-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sc { grid-template-columns: 1fr; }
  .sc-scene { width: 250px; height: 541px; }
  .sc-phone { width: 250px; height: 541px; border-radius: 40px; }
  .sc-screen { inset: 9px; border-radius: 32px; }
  .sc-island { width: 80px; height: 24px; margin-left: -40px; top: 16px; }
  .sc-chapters { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sc-chapter { padding: 9px 12px 11px; font-size: 13.5px; gap: 9px; }
  .sc-num { width: auto; }
  .sc-bar { left: 10px; right: 10px; }
}

@media (max-width: 620px) {
  .app-hero { min-height: 0; }
  .app-hero-stage { height: 360px; }
  .app-phone-c { --w: 190px; margin-left: -95px; }
  .app-phone-l, .app-phone-r { --w: 140px; }
  .app-phone-l { top: 70px; }
  .app-phone-r { top: 40px; }
  .fx-grid { grid-template-columns: 1fr; }
  .steps.steps-5 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .app-phone { animation: none; }
  .sc-phone { transition: none; }
}
