@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;350;400;450;500;600&display=swap');

:root {
  --bg: #000000;
  --black: #000;
  --ink: #050505;

  --white: #f2eee5;
  --white-soft: #d8d2c5;
  --text: rgba(242, 238, 229, 0.78);
  --muted: rgba(242, 238, 229, 0.52);

  --line: rgba(242, 238, 229, 0.22);
  --line-soft: rgba(242, 238, 229, 0.08);

  --gold: #b29a63;
  --gold-bright: #d6a462;
  --gold-soft: rgba(178, 154, 99, 0.50);

  --shadow: rgba(0, 0, 0, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.stage {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
}

.frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  background: #000000;
}

.frame::before {
  content: none;
}

/* =================== LANGUAGE SWITCHER (dropdown with flags) =================== */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  margin-left: clamp(8px, 1vw, 16px);
}

.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid rgba(214, 164, 98, 0.40);
  color: var(--white);
  font-family: inherit;
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 240ms ease, background 240ms ease;
}

.lang-switcher__trigger:hover,
.lang-switcher__trigger:focus-visible {
  border-color: rgba(214, 164, 98, 0.95);
  background: rgba(178, 154, 99, 0.08);
  outline: none;
}

.lang-switcher__flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(242, 238, 229, 0.12);
}

.lang-switcher__label {
  letter-spacing: 0.06em;
}

.lang-switcher__chevron {
  transition: transform 240ms ease;
  color: rgba(242, 238, 229, 0.7);
}

.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(242, 238, 229, 0.14);
  min-width: 180px;
  z-index: 50;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.lang-switcher__menu[hidden] {
  display: none;
}

.lang-switcher__menu li {
  display: block;
}

.lang-switcher__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.lang-switcher__opt:hover,
.lang-switcher__opt:focus-visible {
  background: rgba(178, 154, 99, 0.10);
  color: var(--white);
  outline: none;
}

.lang-switcher__opt[aria-current="true"] {
  color: var(--gold-bright);
  background: rgba(178, 154, 99, 0.08);
}

.lang-switcher__menu .lang-switcher__flag {
  width: 22px;
  height: 16px;
}

/* =================== TOPBAR =================== */
.nav-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(28px, 4vw, 64px) 0 clamp(28px, 4vw, 64px);
  gap: 24px;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(23px, 2.7vw, 31px);
  font-weight: 350;
  letter-spacing: -0.062em;
  line-height: 1;
  white-space: nowrap;
}

.brand strong {
  color: var(--gold);
  font-weight: 350;
}

/* ImigraData wordmark: "Imigra" pure white, "Data" logo gold (canonical brand rule) */
.brand span {
  color: #ffffff;
}

.brand-inline span {
  color: #ffffff;
}

.brand-inline strong {
  color: var(--gold);
  font-weight: 400;
}


nav.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 24px);
  font-size: clamp(8px, 0.72vw, 10px);
  text-transform: uppercase;
  letter-spacing: -0.035em;
}

nav.nav-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.86;
  transition: color 240ms ease, opacity 240ms ease;
}

nav.nav-links a:hover,
nav.nav-links a:focus-visible {
  color: var(--gold-bright);
  opacity: 1;
  outline: none;
}

nav.nav-links a.pilot {
  padding: 9px 12px;
  border: 1px solid rgba(214, 164, 98, 0.54);
  color: var(--white);
  opacity: 1;
}

/* =================== CONTENT-GRID (Vorschlag C, mimetisiert: Foto sangra in den Card) =================== */
.content-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(480px, 48vw, 820px);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  min-height: calc(100vh - 60px);
  padding: clamp(20px, 3vh, 48px) 0 clamp(20px, 3vh, 48px) clamp(28px, 4vw, 64px);
}

.content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2vh, 24px);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6.8vw, 78px);
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: -0.066em;
  color: var(--white);
  max-width: 36rem;
}

.content-left p {
  margin: 0;
  width: min(34rem, 100%);
  color: var(--text);
  font-size: clamp(14px, 1.55vw, 19px);
  line-height: 1.72;
  font-weight: 350;
  letter-spacing: -0.038em;
}

.content-left p.highlight {
  color: var(--white);
  font-weight: 400;
  border-left: 1px solid var(--gold-bright);
  padding-left: clamp(16px, 1.5vw, 24px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(214, 164, 98, 0.54);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: -0.025em;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.24);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 164, 98, 0.95);
  background: rgba(178, 154, 99, 0.1);
}

/* =================== VISUAL SIDE (mimetisiert: kein Border, fade-mask links) =================== */
.visual-side {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}

.visual-side__frame {
  position: relative;
  width: 100%;
  align-self: stretch;
  border: 0;
  background: transparent;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 10%,
    #000 28%,
    #000 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 10%,
    #000 28%,
    #000 100%
  );
}

.visual-side__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.visual-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.18) 22%,
      transparent 45%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22) 0%,
      transparent 18%,
      transparent 82%,
      rgba(0, 0, 0, 0.28) 100%
    );
  pointer-events: none;
}

/* =================== Reduced motion =================== */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* =================== Responsive =================== */
@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) clamp(380px, 50vw, 640px);
    gap: clamp(20px, 3vw, 40px);
  }
}

@media (max-width: 860px) {
  .lang-switcher { margin-left: 0; }  .lang-switcher__trigger { padding: 7px 10px; font-size: 10px; }

  .nav-bar {
    flex-wrap: wrap;
    padding-top: 64px;
  }

  nav.nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 11px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 28px;
  }

  .visual-side {
    order: 2;
    justify-content: center;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .visual-side__frame {
    width: min(100%, 520px);
    max-height: none;
    aspect-ratio: 1.425 / 1;
    -webkit-mask-image: none;
            mask-image: none;
    border: 1px solid var(--line);
  }

  .visual-side::after { display: none; }

  .content-left { order: 1; }
}

@media (max-width: 560px) {  .lang-switcher__trigger { padding: 6px 9px; font-size: 9.5px; }
  .lang-switcher__menu { right: auto; left: 0; min-width: 160px; }

  .nav-bar { padding: 56px 16px 0; }
  .brand { font-size: 25px; }
  nav.nav-links a:not(.pilot) { display: none; }

  .content-grid { padding: 30px 18px; gap: 32px; }
  h1 { font-size: clamp(42px, 13vw, 70px); }
}

/* Brand names keep their canonical casing even when an ancestor applies text-transform: uppercase. */
a.brand-name {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
