@font-face {
  font-family: 'MaettmiEnergie';
  src: url('_Daten-raus/_Corporate_Fonts/Studio Feixen Maettmi Energie Semibold/2 Web/StudioFeixenMaettmiEnergie-Semibold.woff2') format('woff2'),
       url('_Daten-raus/_Corporate_Fonts/Studio Feixen Maettmi Energie Semibold/2 Web/StudioFeixenMaettmiEnergie-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FeixenSans';
  src: url('_Daten-raus/_Corporate_Fonts/Studio Feixen Sans Book/2 Web/StudioFeixenSans-Book.woff2') format('woff2'),
       url('_Daten-raus/_Corporate_Fonts/Studio Feixen Sans Book/2 Web/StudioFeixenSans-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FeixenSans';
  src: url('_Daten-raus/_Corporate_Fonts/Studio Feixen Sans Semibold/2 Web/StudioFeixenSans-Semibold.woff2') format('woff2'),
       url('_Daten-raus/_Corporate_Fonts/Studio Feixen Sans Semibold/2 Web/StudioFeixenSans-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d3054;
  --coral: #FF3951;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'FeixenSans', sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: linear-gradient(135deg, #5DC5C0 0%, #FF3951 100%);
  overflow: hidden; /* intentional: desktop is single-screen, no scroll needed */
}

/* ── Layout ──────────────────────────────── */

.page {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-areas:
    "header ."
    "content socials";
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr auto;
  /* ME-34: increased to match Figma layout grid (~100px horizontal at 1440px) */
  padding: 107px 107px 114px;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ── Header ──────────────────────────────── */

.header {
  grid-area: header;
  align-self: start;
}

.logo {
  display: block;
  width: 125px;
  height: auto;
  color: var(--coral);
}

/* ── Content ─────────────────────────────── */

.content {
  grid-area: content;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.eyebrow {
  font-family: 'FeixenSans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
}

h1 {
  font-family: 'MaettmiEnergie', serif;
  font-weight: 600;
  font-size: 80px;
  line-height: 0.9375;
  color: var(--navy);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lead {
  font-size: 20px;
  line-height: 1.4;
  max-width: 520px; /* ME-36: widened to match Figma column width */
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--coral);
  color: #fff;
  font-family: 'MaettmiEnergie', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-decoration: none;
  border-radius: 50px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(16deg, #87FCFD 0%, #FF3951 67%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn:hover::before {
  opacity: 1;
}


.btn span {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background-color: #fff;
  -webkit-mask: url('_Daten-raus/_Corporate_Icons/fi-bs-arrow-right.svg') center / contain no-repeat;
  mask: url('_Daten-raus/_Corporate_Icons/fi-bs-arrow-right.svg') center / contain no-repeat;
  transition: background-color 0.35s ease;
}

/* ── Socials ─────────────────────────────── */

.socials {
  grid-area: socials;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.socials-label {
  font-family: 'FeixenSans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.socials-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials-links a {
  display: flex;
  color: var(--navy);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.socials-links svg {
  width: 24px;
  height: 24px;
}

.socials-links a:hover {
  opacity: 1;
}

/* ── Mobile ──────────────────────────────── */

@media (max-width: 767px) {
  html {
    height: auto;
  }

  body {
    overflow: auto;
  }

  /* Rotate landscape video so gradient goes coral (top) → teal (bottom) */
  .bg-video {
    width: 100vh;
    height: 100vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
  }

  .page {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 32px 20px 36px;
  }

  .header {
    flex-shrink: 0;
  }

  /* ME-37: logo same size on mobile and desktop — no override needed */

  .content {
    flex: 1;
    max-width: 100%;
    justify-content: flex-end;
    gap: 20px;
    padding-bottom: 24px; /* reduced: socials now visible below content */
  }

  h1 {
    font-size: 44px;
    line-height: 1.0;
  }

  .lead {
    font-size: 20px; /* ME-40: Figma specifies 20px on mobile, was 16px */
    line-height: 1.5;
    max-width: 100%;
  }

  .btn {
    width: auto;
    justify-content: space-between;
    margin-top: 8px;
    margin-bottom: 36px;
  }

  .socials {
    flex-shrink: 0;
    align-self: stretch;
    align-items: flex-start;
    gap: 8px;
  }

  .socials-links {
    gap: 30px;
  }
}

/* ── Short screens (iPhone SE 2, ~667px) ─────────────────────────── */

@media (max-width: 767px) and (max-height: 770px) {
  .btn {
    margin-bottom: 5%;
  }
}

/* ── Mobile landscape: allow scrolling when content doesn't fit ───── */
/* max-height: 600px catches phones (incl. iPhone XR at 414px) but not tablets */

@media (orientation: landscape) and (max-height: 600px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
  }
}
