/* ==================================================
   ECHELONX – XELIA STARTSEITENBEREICH
================================================== */

.xelia-section,
.xelia-section * {
  box-sizing: border-box;
}

.xelia-section {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  overflow: hidden;

  padding:
    clamp(90px, 9vw, 140px)
    5.8vw
    clamp(95px, 9vw, 140px);

  border-top: 1px solid rgba(198, 161, 102, 0.18);

  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(255, 255, 255, 0.98),
      transparent 38%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(198, 161, 102, 0.1),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #f8f5ef 0%,
      #fffefa 50%,
      #f2ece3 100%
    );
}

/* ==================================================
   HAUPTANORDNUNG
================================================== */

.xelia-shell {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns:
    minmax(0, 1.16fr)
    minmax(390px, 0.84fr);
  align-items: center;

  gap: clamp(42px, 6vw, 95px);

  width: 100%;
  max-width: 1400px;
  min-height: 0;
  margin: 0 auto;
}

/* ==================================================
   VIDEO
================================================== */

.xelia-media {
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 0;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  border: 1px solid rgba(198, 161, 102, 0.3);
  border-radius: 18px;

  background: #11100f;

  box-shadow:
    0 30px 90px rgba(40, 31, 22, 0.18);
}

.xelia-video {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 0;

  object-fit: contain;
  object-position: center;

  background: #11100f;

  filter:
    saturate(0.94)
    contrast(1.02)
    brightness(1);

  transform: none;
}

.xelia-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.03) 0%,
      transparent 58%,
      rgba(0, 0, 0, 0.2) 100%
    );

  pointer-events: none;
}

/* dezenter Lichtreflex */

.xelia-media::after {
  content: "";

  position: absolute;
  z-index: 3;

  top: -45%;
  left: -65%;

  width: 30%;
  height: 190%;

  opacity: 0;

  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 24%,
      rgba(255, 255, 255, 0.26) 49%,
      rgba(255, 238, 207, 0.11) 60%,
      transparent 82%
    );

  filter: blur(5px);
  mix-blend-mode: screen;

  transform: skewX(-18deg);

  animation: xeliaVideoShine 11s ease-in-out infinite;

  pointer-events: none;
}

/* ==================================================
   ONLINE-STATUS
================================================== */

.xelia-status {
  position: absolute;
  z-index: 5;

  top: 24px;
  left: 24px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  min-height: 40px;
  padding: 0 16px;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;

  background: rgba(16, 15, 14, 0.65);
  color: #ffffff;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xelia-status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #86c98a;

  box-shadow:
    0 0 0 5px rgba(134, 201, 138, 0.12),
    0 0 16px rgba(134, 201, 138, 0.65);

  animation: xeliaStatusPulse 2.4s ease-in-out infinite;
}

/* ==================================================
   TON-BUTTON
================================================== */

.xelia-sound-toggle {
  position: absolute;
  z-index: 6;

  right: 24px;
  bottom: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 46px;
  padding: 0 18px;

  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;

  background: rgba(16, 15, 14, 0.74);
  color: #ffffff;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.xelia-sound-toggle:hover {
  border-color: rgba(220, 197, 159, 0.8);
  background: rgba(18, 18, 18, 0.94);

  transform: translateY(-2px);
}

.xelia-sound-icon {
  font-size: 16px;
  line-height: 1;
}

/* ==================================================
   TEXTBEREICH
================================================== */

.xelia-content {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
  padding: 20px 0;
}

.xelia-content::before {
  content: "X";

  position: absolute;
  z-index: 0;

  right: -18px;
  bottom: -72px;

  color: rgba(198, 161, 102, 0.075);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 270px;
  font-weight: 700;
  line-height: 1;

  pointer-events: none;
}

.xelia-content > * {
  position: relative;
  z-index: 2;
}

.xelia-kicker {
  margin: 0 0 22px;

  color: #c6a166;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.xelia-content h2 {
  max-width: 630px;
  margin: 0 0 26px;

  color: #121212;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.xelia-intro {
  max-width: 590px;
  margin: 0 0 34px;

  color: #625d55;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.75;
}

/* ==================================================
   FUNKTIONEN
================================================== */

.xelia-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 13px;

  margin: 0 0 38px;
}

.xelia-feature {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 54px;
  padding: 11px 13px;

  border: 1px solid rgba(198, 161, 102, 0.25);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.58);

  color: #302d29;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.xelia-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 29px;
  height: 29px;
  flex: 0 0 29px;

  border: 1px solid rgba(198, 161, 102, 0.4);
  border-radius: 50%;

  color: #c6a166;

  font-size: 13px;
}

/* ==================================================
   BUTTONS
================================================== */

.xelia-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 16px;
}

.xelia-primary,
.xelia-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  min-height: 58px;
  padding: 0 25px;

  border-radius: 3px;

  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.xelia-primary {
  border: 1px solid #121212;

  background: #121212;
  color: #dcc59f;
}

.xelia-primary:hover {
  background: #2a241d;
  transform: translateY(-2px);
}

.xelia-secondary {
  border: 1px solid #c6a166;

  background: rgba(255, 255, 255, 0.5);
  color: #121212;
}

.xelia-secondary:hover {
  background: rgba(198, 161, 102, 0.11);
  transform: translateY(-2px);
}

.xelia-primary span,
.xelia-secondary span {
  color: #c6a166;
  font-size: 18px;
}

/* ==================================================
   ANIMATIONEN
================================================== */

@keyframes xeliaVideoShine {
  0%,
  58% {
    left: -65%;
    opacity: 0;
  }

  65% {
    opacity: 0.44;
  }

  78% {
    left: 132%;
    opacity: 0.12;
  }

  84%,
  100% {
    left: 132%;
    opacity: 0;
  }
}

@keyframes xeliaStatusPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1120px) {
  .xelia-shell {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .xelia-media {
    max-width: 960px;
    margin: 0 auto;
  }

  .xelia-content {
    max-width: 820px;
    margin: 0 auto;
  }

  .xelia-content::before {
    font-size: 220px;
  }
}

/* ==================================================
   SMARTPHONE
================================================== */

@media (max-width: 680px) {
  .xelia-section {
    padding:
      72px
      22px
      78px;
  }

  .xelia-shell {
    gap: 42px;
  }

  .xelia-media {
    border-radius: 12px;
  }

  .xelia-status {
    top: 14px;
    left: 14px;

    min-height: 34px;
    padding: 0 12px;

    font-size: 8px;
  }

  .xelia-sound-toggle {
    right: 14px;
    bottom: 14px;

    min-height: 40px;
    padding: 0 13px;

    font-size: 8px;
  }

  .xelia-content {
    padding: 0;
  }

  .xelia-content h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .xelia-intro {
    font-size: 16px;
  }

  .xelia-features {
    grid-template-columns: 1fr;
  }

  .xelia-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .xelia-primary,
  .xelia-secondary {
    width: 100%;
  }

  .xelia-content::before {
    right: -25px;
    bottom: -40px;

    font-size: 165px;
  }
}

/* ==================================================
   REDUZIERTE BEWEGUNG
================================================== */

@media (prefers-reduced-motion: reduce) {
  .xelia-media::after,
  .xelia-status-dot {
    animation: none;
  }

  .xelia-sound-toggle,
  .xelia-primary,
  .xelia-secondary {
    transition: none;
  }
}