﻿/* Kapellabs Under-Construction: ruhige Web-Labs-Szene ohne externe Assets. */
:root {
  --bg: #08111f;
  --panel: rgba(10, 20, 36, 0.74);
  --text: #f8fafc;
  --muted: #b8c7da;
  --cyan: #38e8ff;
  --mint: #8cffcf;
  --violet: #a78bfa;
  --pink: #f0abfc;
  --line: rgba(226, 232, 240, 0.14);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.44);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(56, 232, 255, 0.15), transparent 30rem),
    radial-gradient(circle at 84% 22%, rgba(167, 139, 250, 0.17), transparent 32rem),
    linear-gradient(180deg, #08111f 0%, #0b1020 58%, #070b15 100%);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.hero-card {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100vh - 116px));
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 3.8vw, 48px);
  background: linear-gradient(145deg, rgba(8, 17, 31, 0.9), rgba(16, 26, 46, 0.58));
  box-shadow: var(--shadow);
}

.background-grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
}

.ambient {
  position: absolute;
  z-index: -3;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.24;
  animation: drift 18s ease-in-out infinite;
}

.ambient-cyan { left: 8%; top: 18%; background: var(--cyan); }
.ambient-violet { right: 10%; bottom: 16%; background: var(--violet); animation-delay: -8s; }

.floating-particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(140, 255, 207, 0.72);
  box-shadow: 0 0 20px rgba(56, 232, 255, 0.65);
  animation: particleFloat 14s linear infinite;
  animation-delay: var(--delay);
}

.hero-content {
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lab-scene {
  position: relative;
  width: min(860px, 100%);
  height: clamp(280px, 31vw, 390px);
  margin: 4px auto 20px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 48%, rgba(140, 255, 207, 0.12), transparent 20rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(8, 17, 31, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 70px rgba(0, 0, 0, 0.22);
}

.lab-scene::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 255, 207, 0.68), transparent);
}

.glass {
  position: absolute;
  bottom: 64px;
  width: clamp(118px, 15vw, 164px);
  height: clamp(160px, 20vw, 214px);
  border: 2px solid rgba(226, 232, 240, 0.38);
  border-top: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: inset 18px 0 28px rgba(255, 255, 255, 0.05), inset -16px 0 28px rgba(56, 232, 255, 0.035), 0 24px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 16px auto 22px 18px;
  width: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 74%);
  opacity: 0.74;
}

.vessel-left {
  left: 17%;
  border-radius: 0 0 28px 28px;
  transform: rotate(-3deg);
  animation: floatLeft 8.5s ease-in-out infinite;
}

.vessel-right {
  right: 17%;
  width: clamp(128px, 16vw, 178px);
  border-radius: 44% 44% 30px 30px;
  transform: rotate(3deg);
  animation: floatRight 9s ease-in-out infinite;
}

.flask-neck {
  position: absolute;
  left: 50%;
  top: -62px;
  width: 44px;
  height: 74px;
  border: 2px solid rgba(226, 232, 240, 0.38);
  border-bottom: 0;
  border-radius: 16px 16px 4px 4px;
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
}

.glass-mouth {
  position: absolute;
  left: -10px;
  right: -10px;
  top: -8px;
  height: 16px;
  border: 2px solid rgba(226, 232, 240, 0.42);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.045);
}

.scale-lines {
  position: absolute;
  left: 18px;
  top: 36px;
  display: grid;
  gap: 24px;
  opacity: 0.5;
}

.scale-lines span {
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(248, 250, 252, 0.66);
}

.liquid {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 56%;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  opacity: 0.92;
  animation: liquidBreathe 7.8s ease-in-out infinite;
}

.liquid::before {
  content: "";
  position: absolute;
  inset: -34px -18px auto;
  height: 76px;
  border-radius: 44%;
  background: rgba(255, 255, 255, 0.28);
  animation: liquidWave 5.4s ease-in-out infinite;
}

.liquid-blue {
  background: linear-gradient(180deg, rgba(56, 232, 255, 0.88), rgba(34, 211, 238, 0.44));
  box-shadow: 0 0 44px rgba(56, 232, 255, 0.34);
}

.liquid-purple {
  background: linear-gradient(180deg, rgba(240, 171, 252, 0.84), rgba(167, 139, 250, 0.48));
  box-shadow: 0 0 48px rgba(167, 139, 250, 0.38);
}

.liquid-shine {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 64%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  animation: surfaceTilt 5.4s ease-in-out infinite;
}

.bubble,
.vapor {
  position: absolute;
  display: block;
}

.bubble {
  bottom: 24px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: bubbleRise 4.9s ease-in infinite;
}

.bubble-one { left: 28%; animation-delay: -0.8s; }
.bubble-two { left: 52%; width: 8px; height: 8px; animation-delay: -2.1s; }
.bubble-three { left: 70%; width: 15px; height: 15px; animation-delay: -3.4s; }

.vapor {
  top: -58px;
  width: 14px;
  height: 58px;
  border-left: 2px solid rgba(184, 199, 218, 0.42);
  border-radius: 50%;
  opacity: 0;
  animation: vaporCurl 6.6s ease-in-out infinite;
}

.vapor-one { left: 36%; animation-delay: -1s; }
.vapor-two { left: 58%; animation-delay: -3s; }

.reaction-line {
  position: absolute;
  left: 27%;
  right: 27%;
  top: 47%;
  height: 96px;
}

.reaction-stream {
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 232, 255, 0), rgba(56, 232, 255, 0.9), rgba(140, 255, 207, 0.95), rgba(167, 139, 250, 0.9), rgba(167, 139, 250, 0));
  box-shadow: 0 0 24px rgba(56, 232, 255, 0.45);
}

.pulse {
  position: absolute;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 20px rgba(140, 255, 207, 0.9);
  animation: pulseTravel 4.8s ease-in-out infinite;
}

.pulse-one { animation-delay: 0s; }
.pulse-two { animation-delay: -1.6s; }
.pulse-three { animation-delay: -3.2s; }

.reaction-core {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.core-ring,
.core-dot {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.core-ring {
  inset: 10px;
  border: 1px solid rgba(140, 255, 207, 0.34);
  box-shadow: 0 0 32px rgba(56, 232, 255, 0.22), inset 0 0 28px rgba(167, 139, 250, 0.12);
  animation: reactionRing 5.2s ease-in-out infinite;
}

.core-ring-small {
  inset: 24px;
  border-color: rgba(167, 139, 250, 0.42);
  animation-delay: -2.6s;
}

.core-dot {
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--mint);
  box-shadow: 0 0 26px rgba(140, 255, 207, 0.9);
  transform: translate(-50%, -50%);
  animation: coreGlow 2.8s ease-in-out infinite;
}

.code-chip {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  gap: 7px;
  width: 176px;
  padding: 14px;
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.code-chip span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 232, 255, 0.82), rgba(140, 255, 207, 0.22));
  animation: codeScan 3.8s ease-in-out infinite;
}

.code-chip span:nth-child(2) { width: 72%; animation-delay: -1.1s; }
.code-chip span:nth-child(3) { width: 86%; animation-delay: -2.2s; }

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.subtitle {
  max-width: 700px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.status-card {
  width: min(800px, 100%);
  margin: 24px auto 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.status-header,
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.status-header { align-items: flex-start; }
.status-header h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(140, 255, 207, 0.26);
  border-radius: 999px;
  color: #d7ffef;
  background: rgba(140, 255, 207, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkmark { color: var(--mint); font-weight: 900; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(56, 232, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

.progress-meta {
  margin-bottom: 10px;
  color: var(--muted);
}

.progress-meta strong { color: var(--text); }

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint), var(--violet));
  box-shadow: 0 0 28px rgba(56, 232, 255, 0.32);
  transition: width 120ms linear;
}

.footer {
  padding: 24px 16px 34px;
  color: rgba(184, 199, 218, 0.78);
  text-align: center;
  font-size: 0.92rem;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

@keyframes particleFloat {
  0% { transform: translate3d(0, 22px, 0); opacity: 0; }
  20%, 70% { opacity: 0.9; }
  100% { transform: translate3d(22px, -48px, 0); opacity: 0; }
}

@keyframes floatLeft {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}

@keyframes floatRight {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-9px); }
}

@keyframes liquidBreathe {
  0%, 100% { height: 55%; }
  50% { height: 63%; }
}

@keyframes liquidWave {
  0%, 100% { transform: translateX(-5%) rotate(1deg); }
  50% { transform: translateX(5%) rotate(-1deg); }
}

@keyframes surfaceTilt {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(0.62); opacity: 0; }
  22%, 66% { opacity: 0.9; }
  100% { transform: translateY(-136px) translateX(10px) scale(1.08); opacity: 0; }
}

@keyframes vaporCurl {
  0%, 100% { transform: translateY(16px) translateX(0) rotate(0); opacity: 0; }
  35% { opacity: 0.6; }
  70% { transform: translateY(-28px) translateX(16px) rotate(10deg); opacity: 0; }
}

@keyframes pulseTravel {
  0% { left: 0; opacity: 0; transform: scale(0.7); }
  18%, 78% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; transform: scale(1.2); }
}

@keyframes reactionRing {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.42; }
  50% { transform: scale(1.08) rotate(18deg); opacity: 0.9; }
}

@keyframes coreGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(0.86); opacity: 0.62; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

@keyframes codeScan {
  0%, 100% { opacity: 0.34; transform: scaleX(0.72); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 24px, 860px); padding-top: 18px; }
  .hero-card { min-height: auto; padding: 26px 18px; border-radius: 22px; }
  .lab-scene { height: 390px; }
  .vessel-left { left: 10%; }
  .vessel-right { right: 10%; }
  .reaction-line { left: 22%; right: 22%; }
}

@media (max-width: 640px) {
  .lab-scene { height: 340px; margin-bottom: 26px; }
  .glass { bottom: 78px; width: 112px; height: 164px; }
  .vessel-left { left: 8%; }
  .vessel-right { right: 8%; width: 118px; }
  .flask-neck { width: 38px; height: 62px; top: -54px; }
  .reaction-core { width: 86px; height: 86px; }
  .reaction-line { left: 24%; right: 24%; top: 48%; }
  .code-chip { width: 148px; bottom: 22px; }
  .status-header,
  .progress-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .lab-scene { height: 310px; }
  .glass { width: 96px; height: 146px; }
  .vessel-left { left: 5%; }
  .vessel-right { right: 5%; width: 100px; }
  .reaction-line,
  .reaction-core { display: none; }
}

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