/* ─── Homepage Redesign ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

/* Inhalte über dem globalen Body-Watermark */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.hero::before {
  top: -100px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: rgba(0, 102, 204, 0.16);
}

.hero::after {
  right: -120px;
  bottom: -40px;
  width: 300px;
  height: 300px;
  background: rgba(0, 240, 255, 0.12);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
  gap: var(--sp-12);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 102, 204, 0.28);
  background: rgba(0, 102, 204, 0.08);
  color: var(--color-brand-hover);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-5);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.22em;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: var(--sp-6);
}

.hero__title-line {
  display: flex;
  align-items: center;
  gap: 0.48em;
  white-space: nowrap;
}

/* Blitz-Marker in Energy-Cyan – ersetzt das früher hier skalierte Logo-PNG,
   das bei 0.78em nur noch als unlesbares Kästchen ankam. */
.hero__title-line--bullet::before {
  content: "";
  flex-shrink: 0;
  width: 0.44em;
  height: 0.82em;
  background: var(--be-energy-cyan);
  clip-path: polygon(58% 0, 0 54%, 40% 54%, 30% 100%, 100% 40%, 52% 40%);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.55));
}

.hero__title-accent {
  font-family: var(--font-brand);
  font-size: 1.18em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-pro-accent);
  text-shadow: none;
}

.hero__desc {
  max-width: 62ch;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
}

.hero__worlds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.hero-panel::before,
.world-card::before,
.configurator-teaser::before,
.production-card::before,
.how-step::before,
.final-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 45, 0.86), rgba(13, 19, 52, 0.78)),
    url('/img/circuit-structure.jpg') center/cover no-repeat;
  opacity: 0.14;
  filter: saturate(0.42) brightness(0.58) contrast(1.04);
  pointer-events: none;
  z-index: 0;
}

.hero-panel > *,
.world-card > *,
.configurator-teaser > *,
.production-card > *,
.how-step > *,
.final-cta__card > * {
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: relative;
  min-height: 680px;
}

.hero-stage__screen {
  position: relative;
  z-index: 2;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(22, 32, 74, 0.96), rgba(10, 15, 45, 0.96));
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.hero-stage__chrome {
  display: flex;
  gap: 8px;
  padding: 1rem 1rem 0;
}

.hero-stage__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.hero-stage__workspace {
  position: relative;
  height: 590px;
  margin: 1rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.03), transparent 45%),
    linear-gradient(180deg, rgba(10, 15, 45, 0.6), rgba(8, 12, 36, 0.98));
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 88%);
}

.hero-stage__model {
  position: absolute;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(0, 102, 204, 1), rgba(13, 19, 52, 0.95));
  box-shadow: 0 28px 40px rgba(0, 0, 0, 0.32);
}

.hero-stage__model--primary {
  width: 170px;
  height: 210px;
  left: 24%;
  bottom: 20%;
  transform: rotate(-18deg) skewY(-10deg);
}

.hero-stage__model--secondary {
  width: 110px;
  height: 150px;
  right: 18%;
  top: 24%;
  background: linear-gradient(160deg, rgba(0, 240, 255, 0.94), rgba(13, 19, 52, 0.95));
  transform: rotate(14deg) skewY(-6deg);
}

.hero-stage__measure {
  position: absolute;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(10, 15, 45, 0.86);
  border: 1px solid rgba(0, 102, 204, 0.26);
  color: #D6E8FF;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.hero-stage__measure--x {
  left: 18%;
  bottom: 12%;
}

.hero-stage__measure--y {
  right: 13%;
  top: 16%;
}

.hero-panel {
  position: relative;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 12, 36, 0.86);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
}

.hero-panel__eyebrow {
  color: var(--color-pro-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.hero-panel--casual .hero-panel__eyebrow {
  color: #FFE680;
}

.hero-panel__title {
  font-size: 1.1rem;
  color: var(--color-text-bright);
  margin-bottom: var(--sp-2);
}

.hero-panel__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.brand-ribbon {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  background: rgba(6, 9, 24, 0.8);
}

.brand-ribbon__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.brand-ribbon__inner span {
  padding: 0.62rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
}

.worlds-section,
.production-section,
.how-it-works,
.featured-stage,
.configurator-spotlight,
.final-cta {
  padding: var(--sp-16) 0;
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}

.world-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--color-bg-surface);
  box-shadow: var(--shadow-md);
}

.world-card--pro {
  background:
    radial-gradient(circle at top right, rgba(0, 240, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--color-pro-surface);
}

.world-card--casual {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--color-casual-surface);
}

.world-card__label {
  color: var(--color-text-bright);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  opacity: 0.78;
}

.world-card__title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: var(--sp-3);
}

.world-card__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
}

.world-card__list {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.world-card__list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.world-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-hover);
}

.world-card__actions,
.featured-stage__actions,
.configurator-spotlight__actions,
.final-cta__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.featured-stage {
  background: linear-gradient(180deg, rgba(13, 19, 52, 0.84), rgba(6, 9, 24, 0));
}

.featured-stage__grid {
  margin-top: var(--sp-8);
}

.featured-stage__actions {
  justify-content: center;
  margin-top: var(--sp-8);
}

.configurator-spotlight__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  gap: var(--sp-10);
  align-items: center;
}

.feature-list {
  display: grid;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 var(--sp-8);
}

.feature-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #A9F5CE;
  font-weight: 700;
}

.configurator-teaser {
  position: relative;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--color-bg-surface);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  isolation: isolate;
}

.configurator-teaser__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.configurator-teaser__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.configurator-teaser__title {
  margin-left: auto;
  color: rgba(255,255,255,0.72);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.configurator-teaser__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}

.configurator-teaser__sidebar {
  padding: 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 12, 36, 0.78);
}

.configurator-teaser__chip {
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.12);
  color: #B8FBFF;
  font-size: var(--text-xs);
  margin-bottom: 1rem;
}

.configurator-teaser__line {
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  margin-bottom: 0.7rem;
}

.configurator-teaser__line--wide {
  width: 90%;
}

.configurator-teaser__slider {
  margin-top: 2.2rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}

.configurator-teaser__slider strong,
.configurator-teaser__price {
  font-family: var(--font-mono);
  color: var(--color-text-bright);
}

.configurator-teaser__viewer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.02), transparent 50%),
    linear-gradient(180deg, rgba(10, 15, 45, 0.2), rgba(10, 15, 45, 0.9));
  overflow: hidden;
}

.configurator-teaser__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.configurator-teaser__shape {
  position: absolute;
  width: 180px;
  height: 220px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-16deg) skewY(-8deg);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(0, 102, 204, 1), rgba(0, 240, 255, 0.65));
  box-shadow: 0 32px 48px rgba(0, 0, 0, 0.32);
}

.configurator-teaser__price {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(10, 15, 45, 0.88);
  border: 1px solid rgba(0, 102, 204, 0.24);
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

.production-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--sp-6);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--color-bg-surface);
}

.production-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 102, 204, 0.12);
  border: 1px solid rgba(0, 102, 204, 0.22);
  margin-bottom: var(--sp-4);
  font-size: 1.35rem;
}

.production-card__title {
  margin-bottom: var(--sp-2);
  font-size: 1.2rem;
}

.production-card__desc {
  color: var(--color-text-muted);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

.how-step {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--sp-6);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--color-bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
}

.how-step__number {
  display: inline-flex;
  margin-bottom: var(--sp-4);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 204, 0.1);
  color: #D6E8FF;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.how-step__title {
  margin-bottom: var(--sp-2);
}

.how-step__desc,
.final-cta__desc {
  color: var(--color-text-muted);
}

.final-cta__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(0, 102, 204, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    var(--color-bg-surface);
  box-shadow: var(--shadow-panel);
  text-align: center;
}

.final-cta__title {
  max-width: 22ch;
  margin: 0 auto var(--sp-4);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.final-cta__title-accent {
  font-family: var(--font-brand);
  letter-spacing: 0.04em;
  text-transform: none;
}

.final-cta__desc {
  max-width: 58ch;
  margin: 0 auto var(--sp-6);
  font-size: var(--text-sm);
}

.final-cta__actions {
  justify-content: center;
}

@media (max-width: 1200px) {
  .hero__inner,
  .configurator-spotlight__layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
    margin-top: var(--sp-8);
  }

  .hero__title-line {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .worlds-grid,
  .production-grid,
  .how-steps,
  .hero__worlds {
    grid-template-columns: 1fr;
  }

  .configurator-teaser__body {
    grid-template-columns: 1fr;
  }

  .configurator-teaser__sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero__ctas,
  .world-card__actions,
  .configurator-spotlight__actions,
  .final-cta__actions {
    flex-direction: column;
  }

  .hero-stage__workspace {
    height: 420px;
  }
}
