/* =========================================================
   MIRO LIVE – Elementor CSS Pack (konsolidiert, wiederverwendbar)
   Basis: styles.css + Tailwind Tokens aus dem Prototyp
   ========================================================= */


/* ---------- 2) Global helpers ---------- */
html {
  scroll-behavior: smooth;
}
::selection {
  background: rgba(var(--ml-accent-rgb), 0.2);
  color: #fff;
}

.ml-font {
  font-family: var(--ml-font-sans);
}

.ml-bg-base {
  background: var(--ml-base);
}
.ml-bg-ink {
  background: var(--ml-ink);
}
.ml-text {
  color: var(--ml-text);
}
.ml-muted {
  color: rgba(231, 238, 242, 0.65);
}
.ml-muted-2 {
  color: rgba(231, 238, 242, 0.5);
}

/* Full-bleed helper (wenn Elementor Container “boxed” ist) */
.ml-bleed {
  width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ---------- 3) Typography classes (Elementor Heading/Text Widgets) ---------- */
.ml-body,
.ml-body .elementor-widget-container {
  font-family: var(--ml-font-sans);
  font-size: var(--ml-fs-body);
  line-height: 1.55;
}

.ml-small,
.ml-small .elementor-widget-container {
  font-size: var(--ml-fs-small);
  line-height: 1.45;
}

.ml-h1,
.ml-h1 .elementor-heading-title {
  font-family: var(--ml-font-sans);
  font-size: var(--ml-fs-hero);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ml-h2,
.ml-h2 .elementor-heading-title {
  font-family: var(--ml-font-sans);
  font-size: var(--ml-fs-h2);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.ml-h3,
.ml-h3 .elementor-heading-title {
  font-family: var(--ml-font-sans);
  font-size: var(--ml-fs-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* Gradient text wie im Hero */
.ml-gradient-text {
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4) Surfaces / Cards ---------- */
.ml-card {
  background: var(--ml-card-bg);
  border: 1px solid var(--ml-card-bd);
  backdrop-filter: saturate(140%) blur(var(--ml-blur));
  border-radius: var(--ml-radius-xl);
}

.ml-card--hover:hover,
.ml-card--hover:focus-within {
  box-shadow: 0 0 0 3px rgba(var(--ml-accent-rgb), 0.25);
  border-color: rgba(var(--ml-accent-rgb), 0.35);
}

/* ---------- 5) Buttons (für Elementor Button Widget Wrapper) ---------- */
/* Elementor: Klasse am Button-Widget setzen -> CSS zielt auf .elementor-button */
.ml-btn a.elementor-button,
a.ml-btn,
button.ml-btn,
#submit-BTN {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;

  padding: 0.8rem 1rem;
  border-radius: var(--ml-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );

  color: var(--ml-text);
  text-decoration: none;

  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    filter 0.25s ease;
}

.ml-btn a.elementor-button:hover,
a.ml-btn:hover,
button.ml-btn:hover,
#submit-BTN {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(var(--ml-accent-rgb), 0.22),
    0 18px 50px rgba(0, 0, 0, 0.35);
  filter: saturate(1.05);
}

.ml-btn a.elementor-button:active,
a.ml-btn:active,
button.ml-btn:active,
#submit-BTN {
  transform: translateY(0);
  filter: none;
}

/* Primary */
.ml-btn--primary a.elementor-button,
a.ml-btn--primary,
button.ml-btn--primary,
#submit-BTN {
  background: linear-gradient(
    180deg,
    rgba(var(--ml-accent-rgb), 0.18),
    rgba(var(--ml-accent-rgb), 0.08)
  );
  border-color: rgba(var(--ml-accent-rgb), 0.45);
}

.ml-btn--primary a.elementor-button:hover,
a.ml-btn--primary:hover,
button.ml-btn--primary:hover,
#submit-BTN:hover {
  background: linear-gradient(
    180deg,
    rgba(var(--ml-accent-rgb), 0.28),
    rgba(var(--ml-accent-rgb), 0.12)
  );
  border-color: rgba(var(--ml-accent-rgb), 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .ml-btn a.elementor-button,
  a.ml-btn,
  button.ml-btn {
    transition: none;
  }

  .ml-btn a.elementor-button:hover,
  a.ml-btn:hover,
  button.ml-btn:hover {
    transform: none;
  }
}

/* ---------- 6) Badge pill ---------- */
.ml-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--ml-fs-badge);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0);
}

/* ---------- 7) Hero: grid + spotlight + overlay ---------- */
.ml-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ml-hero--grid::before {
  content: "";
  position: absolute;
  inset: -200%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.06),
      transparent 40%
    ),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size:
    50% 50%,
    60px 60px,
    60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.ml-hero-filter {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ml-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    700px 700px at var(--mx, 50%) var(--my, 50%),
    rgba(var(--ml-accent-rgb), 0.26),
    transparent 55%
  );
}

/* Diagonal pinstripe slice (Hero bottom) */
.ml-slice-hero {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  bottom: -10px;
  pointer-events: none;
  z-index: 5;
}
.ml-slice-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 15%, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(var(--ml-accent-rgb), 0.28) 0 2px,
      transparent 2px 10px
    ),
    linear-gradient(to bottom, rgba(11, 12, 14, 1), rgba(11, 12, 14, 0) 70%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* ---------- 8) Curtain (Hero Intro Overlay) ---------- */
.ml-curtain {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.ml-curtain__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54vw;
  z-index: 1;
  background-color: var(--ml-accent);
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42),
      rgba(0, 0, 0, 0) 44%,
      rgba(0, 0, 0, 0.44)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.16) 0px,
      rgba(0, 0, 0, 0) 26px,
      rgba(255, 255, 255, 0.06) 44px,
      rgba(0, 0, 0, 0.14) 78px,
      rgba(0, 0, 0, 0) 128px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(255, 255, 255, 0.05) 18px,
      rgba(0, 0, 0, 0.08) 52px,
      rgba(0, 0, 0, 0) 96px
    ),
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0) 52%,
      rgba(255, 255, 255, 0.09) 74%,
      rgba(0, 0, 0, 0)
    ),
    radial-gradient(
      140% 120% at 22% 12%,
      rgba(255, 255, 255, 0.1),
      rgba(0, 0, 0, 0) 58%
    );
  background-blend-mode: multiply, normal, soft-light, screen, normal;

  filter: saturate(1.03) contrast(1.06) brightness(0.98);
  box-shadow:
    inset 0 0 130px rgba(0, 0, 0, 0.28),
    0 28px 90px rgba(0, 0, 0, 0.34);

  backface-visibility: hidden;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ml-curtain__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.ml-curtain__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 112%, rgba(0, 0, 0, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, transparent 82%, rgba(0, 0, 0, 0.3));
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.ml-curtain__panel--left {
  left: 0;
  transform-origin: 100% 0%;
  box-shadow:
    inset -78px 0 110px rgba(0, 0, 0, 0.55),
    inset 0 0 130px rgba(0, 0, 0, 0.28),
    0 28px 90px rgba(0, 0, 0, 0.34);
}

.ml-curtain__panel--right {
  right: 0;
  transform-origin: 0% 0%;
  box-shadow:
    inset 78px 0 110px rgba(0, 0, 0, 0.55),
    inset 0 0 130px rgba(0, 0, 0, 0.28),
    0 28px 90px rgba(0, 0, 0, 0.34);
}

.ml-curtain__content {
  position: relative;
  z-index: 5;
  width: min(72rem, calc(100% - 2.5rem));
  padding-inline: 1.25rem;

  opacity: 1;
  transform: translateY(0);
  filter: blur(0);

  transition:
    opacity 0.55s ease 0.06s,
    transform 0.55s ease 0.06s,
    filter 0.55s ease 0.06s;
}

.ml-curtain.open .ml-curtain__content {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  pointer-events: none;
}

.ml-curtain.hide-copy .ml-curtain__content {
  display: none;
}

/* Open/Close keyframes */
.ml-curtain.open:not(.closing) .ml-curtain__panel--left {
  animation: mlCurtainOpenLeft 2.6s cubic-bezier(0.14, 1, 0.22, 1) forwards;
}
.ml-curtain.open:not(.closing) .ml-curtain__panel--right {
  animation: mlCurtainOpenRight 2.6s cubic-bezier(0.14, 1, 0.22, 1) forwards;
}

.ml-curtain.open.closing .ml-curtain__panel--left {
  animation: mlCurtainCloseLeft 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ml-curtain.open.closing .ml-curtain__panel--right {
  animation: mlCurtainCloseRight 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mlCurtainOpenLeft {
  0% {
    transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0) skewY(0);
  }
  28% {
    transform: translate3d(-54%, 0, 18px) rotateY(12deg) rotateZ(-1.2deg)
      skewY(2.4deg);
  }
  58% {
    transform: translate3d(-102%, 0, 34px) rotateY(22deg) rotateZ(-0.8deg)
      skewY(1.6deg);
  }
  76% {
    transform: translate3d(-125%, 0, 42px) rotateY(18deg) rotateZ(-0.25deg)
      skewY(0.7deg);
  }
  88% {
    transform: translate3d(-108%, 0, 26px) rotateY(14deg) rotateZ(0.18deg)
      skewY(0.2deg);
  }
  100% {
    transform: translate3d(-112%, 0, 30px) rotateY(16deg) rotateZ(0) skewY(0);
  }
}
@keyframes mlCurtainOpenRight {
  0% {
    transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0) skewY(0);
  }
  28% {
    transform: translate3d(54%, 0, 18px) rotateY(-12deg) rotateZ(1.2deg)
      skewY(-2.4deg);
  }
  58% {
    transform: translate3d(102%, 0, 34px) rotateY(-22deg) rotateZ(0.8deg)
      skewY(-1.6deg);
  }
  76% {
    transform: translate3d(125%, 0, 42px) rotateY(-18deg) rotateZ(0.25deg)
      skewY(-0.7deg);
  }
  88% {
    transform: translate3d(108%, 0, 26px) rotateY(-14deg) rotateZ(-0.18deg)
      skewY(-0.2deg);
  }
  100% {
    transform: translate3d(112%, 0, 30px) rotateY(-16deg) rotateZ(0) skewY(0);
  }
}
@keyframes mlCurtainCloseLeft {
  0% {
    transform: translate3d(-112%, 0, 30px) rotateY(16deg) rotateZ(0) skewY(0);
  }
  70% {
    transform: translate3d(-10%, 0, -10px) rotateY(-3deg) rotateZ(0.9deg)
      skewY(1.4deg);
  }
  86% {
    transform: translate3d(3%, 0, -6px) rotateY(1.6deg) rotateZ(-0.25deg)
      skewY(0.4deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0) skewY(0);
  }
}
@keyframes mlCurtainCloseRight {
  0% {
    transform: translate3d(112%, 0, 30px) rotateY(-16deg) rotateZ(0) skewY(0);
  }
  70% {
    transform: translate3d(10%, 0, -10px) rotateY(3deg) rotateZ(-0.9deg)
      skewY(-1.4deg);
  }
  86% {
    transform: translate3d(-3%, 0, -6px) rotateY(-1.6deg) rotateZ(0.25deg)
      skewY(-0.4deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0) skewY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ml-curtain__panel {
    animation: none !important;
  }
}

/* ---------- 9) Services/Press/Contact “Ambient Backgrounds” ---------- */
.ml-services-bg {
  position: relative;
  overflow: hidden;
}
.ml-services-bg::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(
      120% 90% at 65% 0%,
      rgba(var(--ml-accent-rgb), 0.14),
      transparent 62%
    ),
    repeating-linear-gradient(
      155deg,
      rgba(var(--ml-accent-rgb), 0.1) 0 1px,
      rgba(0, 0, 0, 0) 1px 10px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.28)
    );
}
.ml-services-bg > * {
  position: relative;
  z-index: 1;
}

.ml-press-bg {
  position: relative;
  overflow: hidden;
}
.ml-press-bg::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background:
    radial-gradient(
      120% 90% at 70% 0%,
      rgba(0, 180, 190, 0.12),
      transparent 62%
    ),
    radial-gradient(
      90% 70% at 18% 115%,
      rgba(0, 180, 190, 0.07),
      transparent 58%
    ),
    radial-gradient(
      60% 60% at 18% 20%,
      rgba(0, 180, 190, 0.06),
      transparent 55%
    ),
    repeating-linear-gradient(
      150deg,
      rgba(0, 180, 190, 0.075) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      transparent 45%,
      rgba(0, 0, 0, 0.22)
    );
  -webkit-mask-image: radial-gradient(
    120% 85% at 50% 35%,
    rgba(0, 0, 0, 0) 0 40%,
    rgba(0, 0, 0, 1) 72%
  );
  mask-image: radial-gradient(
    120% 85% at 50% 35%,
    rgba(0, 0, 0, 0) 0 40%,
    rgba(0, 0, 0, 1) 72%
  );
}
.ml-press-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 170px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
}
.ml-press-bg > * {
  position: relative;
  z-index: 1;
}

.ml-contact-bg {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.ml-contact-bg::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  background:
    radial-gradient(
      90% 80% at 50% 46%,
      rgba(0, 180, 190, 0.14),
      transparent 62%
    ),
    radial-gradient(
      120% 90% at 50% 120%,
      rgba(0, 180, 190, 0.07),
      transparent 60%
    ),
    repeating-linear-gradient(
      165deg,
      rgba(0, 180, 190, 0.045) 0 1px,
      transparent 1px 16px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      transparent 40%,
      rgba(0, 0, 0, 0.3)
    );
  -webkit-mask-image: radial-gradient(
    120% 100% at 50% 45%,
    rgba(0, 0, 0, 0) 0 45%,
    rgba(0, 0, 0, 1) 78%
  );
  mask-image: radial-gradient(
    120% 100% at 50% 45%,
    rgba(0, 0, 0, 0) 0 45%,
    rgba(0, 0, 0, 1) 78%
  );
}
.ml-contact-bg > * {
  position: relative;
  z-index: 1;
}

/* ---------- 10) Forms (Elementor Form Widget) ---------- */
.ml-form .elementor-field,
.ml-form input[type="text"],
.ml-form input[type="email"],
.ml-form input[type="tel"],
.ml-form textarea {
  background: transparent;
  color: var(--ml-text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--ml-radius-md);
  padding: 0.85rem 0.9rem;
  backdrop-filter: saturate(140%) blur(var(--ml-blur));
}

.ml-form .elementor-field:focus,
.ml-form textarea:focus {
  outline: none;
  border-color: rgba(var(--ml-accent-rgb), 0.35);
  box-shadow: 0 0 0 3px rgba(var(--ml-accent-rgb), 0.18);
}
.ml-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ml-hero__content {
  position: relative;
  z-index: 10;
}

/* Button row */
.ml-btnrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.opacity-0 {
  opacity: 0;
}
.transition-opacity {
  transition: opacity 0.7s ease;
}
.duration-700 {
  transition-duration: 0.7s;
}
:root{
  --ml-text: #e7eef2;
  --ml-accent-rgb: 3, 176, 195;
}
/* Wenn Curtain offen ist (dein State), darf er keine Pointer-Events mehr fangen */
.ml-curtain.open {
  pointer-events: none;
}

/* Optional: wenn du während "closing" wieder blocken willst */
.ml-curtain.open.closing {
  pointer-events: auto;
}

