@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 =================== */
.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; }
.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;
}

/* =================== LEGAL CONTENT =================== */
.legal-content {
  position: relative;
  z-index: 4;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 72px) clamp(24px, 5vw, 56px) clamp(48px, 8vh, 96px);
  color: var(--text);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.72;
  font-weight: 350;
  letter-spacing: -0.012em;
}

.legal-content h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.052em;
  color: var(--white);
}

.legal-subtitle {
  margin: 0 0 32px;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--muted);
  font-style: normal;
  letter-spacing: -0.018em;
}

.legal-note {
  margin: 0 0 40px;
  padding: 16px 20px;
  background: rgba(178, 154, 99, 0.06);
  border-left: 2px solid var(--gold-bright);
  color: var(--white-soft);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.65;
}

.legal-note:empty {
  display: none;
}

.legal-fassung {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: -0.01em;
}

.legal-product-note {
  margin: 0 0 28px;
  color: var(--white-soft);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: -0.012em;
}

.legal-entity-block {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(214, 164, 98, 0.42);
  color: var(--white);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
}

.legal-hint {
  color: var(--muted);
  font-size: clamp(12px, 1vw, 13px);
  font-style: italic;
  margin-top: 8px;
}

.legal-callout {
  margin: 12px 0 0;
  padding: 12px 16px;
  background: rgba(178, 154, 99, 0.05);
  border-left: 2px solid var(--gold);
  color: var(--white-soft);
}

.legal-callout strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.legal-table {
  width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  font-size: clamp(13px, 1.05vw, 15px);
  background: rgba(242, 238, 229, 0.018);
  border: 1px solid var(--line-soft);
}

.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-weight: 350;
  letter-spacing: -0.012em;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  color: var(--white-soft);
  font-weight: 500;
  width: 40%;
  background: rgba(178, 154, 99, 0.04);
}

.legal-list {
  margin: 8px 0 12px;
  padding-left: 22px;
  color: var(--text);
}

.legal-list li {
  margin: 4px 0;
  line-height: 1.65;
}

.legal-section h3 {
  margin: 18px 0 8px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 500;
  color: var(--white-soft);
  letter-spacing: -0.018em;
}

.legal-disclaimer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.legal-disclaimer h2 {
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-disclaimer p {
  color: var(--muted);
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.6;
}

.legal-section {
  margin: 0 0 32px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.024em;
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(178, 154, 99, 0.20);
}

.legal-section p {
  margin: 0 0 10px;
  color: var(--text);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a,
.legal-content a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px dotted rgba(214, 164, 98, 0.42);
  transition: border-color 200ms ease, color 200ms ease;
}

.legal-section a:hover,
.legal-content a:hover {
  border-bottom-color: var(--gold-bright);
  color: var(--white);
}

.legal-stand {
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: clamp(12px, 1vw, 13px);
  letter-spacing: -0.012em;
}

.legal-stand span:first-child {
  color: var(--white-soft);
  font-weight: 500;
  margin-right: 8px;
}

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

/* =================== Responsive =================== */
@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;
  }

  .legal-content {
    padding: 32px 22px 56px;
  }
}

@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; }

  .legal-content { padding: 24px 18px 48px; }
  .legal-content h1 { font-size: clamp(32px, 10vw, 44px); }
}

/* 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;
}
