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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  background: linear-gradient(180deg, rgba(20, 25, 30, 0.55) 0%, rgba(20, 25, 30, 0) 100%);
  position: sticky; /* Punkt 2: bleibt beim Scrollen an dieser Stelle */
  top: 0;
  z-index: 10;
}

.wordmark {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap; /* Punkt 3: verhindert Umbruch innerhalb "Tru X | Transformations" */
  flex-shrink: 0;
}

.lang-switch {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lang-switch a {
  color: #ffffff;
  text-decoration: none;
}

.lang-switch a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch a.inactive {
  opacity: 0.5;
}

.lang-switch .sep {
  color: #ffffff;
  opacity: 0.5;
  margin: 0 6px;
}

.lang-switch a:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- main block ---------- */

main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 40px 27px;
  background:
    radial-gradient(ellipse 85% 75% at 0% 100%, rgba(13, 16, 24, 0.85) 0%, rgba(13, 16, 24, 0.5) 45%, rgba(13, 16, 24, 0) 75%),
    linear-gradient(180deg, rgba(13, 16, 24, 0) 0%, rgba(23, 29, 41, 0.5) 70%, rgba(13, 16, 24, 0.75) 100%);
}

.content {
  max-width: 760px;
}

.eyebrow {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #96b2d6;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: #fbf8f2;
  line-height: 1.25;
  margin-bottom: 20px;
}

.lede {
  font-size: 16px;
  line-height: 1.6;
  color: #ede4d4;
  max-width: 640px;
  margin-bottom: 36px;
}

/* ---------- contact row ---------- */

.contact-row {
  display: flex;
  gap: 58px;
  flex-wrap: nowrap;
}

.contact-item .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9db3cc;
  margin-bottom: 4px;
}

.contact-item .value {
  font-size: 14px;
  color: #f3eee3;
  line-height: 1.5;
}

.contact-item .value a {
  color: inherit;
  text-decoration: none;
}

.contact-item .value a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- footer strip ---------- */

.bottom-bar {
  margin-top: 32px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0 0 24px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  font-size: 12px;
  color: #a7b2bd;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a {
  font-size: 12px;
  color: #a7b2bd;
  text-decoration: none;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- legal pages ---------- */

.legal-page {
  position: relative;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: none;
}

.legal-photo-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
}

.legal-photo-scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to right,
    #141a22 0%,
    #141a22 40%,
    rgba(20, 26, 34, 0.7) 55%,
    rgba(20, 26, 34, 0.35) 75%,
    rgba(20, 26, 34, 0) 100%
  );
}

.legal-page .page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  display: block;
  max-width: 760px;
  padding: 26px 40px 60px;
  flex: 1 0 auto; /* Fix: Inhalt füllt den Restplatz, Footer bleibt dadurch immer unten */
  background: none;
}

.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #eef1f4;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.legal-meta {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.legal-section h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #eef1f4;
  margin: 16px 0 2px;
}

.legal-section p,
.legal-section address {
  font-size: 0.98rem;
  line-height: 1.6;
  font-style: normal;
  color: #eef1f4;
  margin-bottom: 8px;
}

.legal-section ul {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #eef1f4;
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-section a {
  color: #eef1f4;
  text-decoration: underline;
  text-decoration-color: rgba(238, 241, 244, 0.4);
}

.legal-section a:hover {
  text-decoration-color: #eef1f4;
}

.legal-divider {
  border: none;
  border-top: 1px solid rgba(238, 241, 244, 0.2);
  margin: 48px 0;
}

.legal-page .divider {
  border-top: 1px solid rgba(238, 241, 244, 0.2);
}

.legal-page .copyright {
  color: rgba(238, 241, 244, 0.65);
}

.legal-page .legal-links a {
  color: rgba(238, 241, 244, 0.65);
}

.legal-page .legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .bottom-bar {
  margin: 0 40px 24px;
}

.mobile-br {
  display: none;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  main {
    min-height: auto;
  }

  .desktop-br {
    display: none;
  }

  .mobile-br {
    display: block;
  }

  .site-header {
    padding: 20px 20px;
  }

  main {
    padding: 100px 20px 24px;
  }

  .legal-main {
    padding: 26px 20px 40px;
  }

  .legal-title {
    font-size: 1.8rem;
  }

  .legal-page .bottom-bar {
    margin: 0 20px 20px;
  }

  .contact-row {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .contact-item .value {
    font-size: 13px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Punkt 3: zusätzliche Sicherheitsmarge für sehr schmale Screens, damit
   "Tru X | Transformations" (deutlich länger als "Tru X | Tax") neben dem
   Sprachumschalter garantiert in einer Zeile bleibt */
@media (max-width: 400px) {
  .wordmark {
    font-size: 15px;
  }
}
