/* ===================================================
   EXTRAFEIN INFO - OnePager Stylesheet
   =================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --bg-dark: #0d0d0f;
  --gold: #c9a96e;
  --gold-light: #e0c992;
  --gold-dark: #a8884f;
  --text-primary: #e8e4dc;
  --text-muted: #8a8478;
  --card-border: rgba(201, 169, 110, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --page-max: 1520px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

/* ===================================================
   HERO (Fullscreen OnePager)
   =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(320px, 620px);
  grid-template-areas:
    "video content"
    "video buttons";
  justify-content: center;
  align-content: center;
  column-gap: clamp(32px, 5vw, 88px);
  row-gap: clamp(20px, 2vw, 28px);
  padding:
    clamp(32px, 4vw, 72px)
    max(20px, calc((100vw - var(--page-max)) / 2 + 32px))
    clamp(24px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.8) 26%, rgba(13, 13, 15, 0.38) 58%, rgba(13, 13, 15, 0.62) 100%),
    linear-gradient(180deg, rgba(13, 13, 15, 0.18) 0%, rgba(13, 13, 15, 0.88) 100%);
}

.hero__video-panels {
  grid-area: video;
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  width: min(100%, 540px);
  justify-self: start;
  align-self: center;
}

.hero__video-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition:
    opacity var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.hero__video-frame.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(201, 169, 110, 0.18);
}

.hero__video-frame:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(201, 169, 110, 0.22);
}

.hero__video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__video-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero__video-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.hero__video-controls {
  display: flex;
  gap: 8px;
}

.hero__video-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero__video-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}

.hero__content {
  grid-area: content;
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  justify-self: start;
  align-self: end;
  text-align: left;
}

.hero__buttons {
  grid-area: buttons;
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  justify-self: start;
  align-self: start;
}

.eyebrow {
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  font-weight: 400;
  letter-spacing: clamp(0.16em, 0.4vw, 0.28em);
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 700;
  line-height: 0.98;
  margin-bottom: 20px;
  color: #ffffff;
}

.subline {
  max-width: 32ch;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: #ffffff;
  line-height: 1.7;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-block;
  min-width: 220px;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d0d0f;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0d0d0f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.25);
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero__copyright {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===================================================
   VIDEO POPUP
   =================================================== */
.video-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-popup.is-open {
  display: flex;
}

.video-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.video-popup__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
}

.video-popup__video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  display: block;
}

.video-popup__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.video-popup__close:hover {
  color: var(--gold);
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* Grosser Monitor: 1536px+ */
@media (min-width: 1536px) {
  .hero {
    padding-inline: max(40px, calc((100vw - var(--page-max)) / 2 + 40px));
  }

  .hero__video-panels {
    width: 560px;
  }

  .subline {
    max-width: 34ch;
  }
}

/* Desktop: 1280px-1535px */
@media (max-width: 1279px) {
  .hero {
    grid-template-columns: minmax(280px, 430px) minmax(320px, 560px);
    column-gap: clamp(24px, 4vw, 56px);
  }

  .hero__video-panels {
    width: min(100%, 430px);
  }
}

/* Laptop / kleines Desktop: 1024px-1279px */
@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "buttons"
      "video";
    justify-items: center;
    align-content: start;
    row-gap: 24px;
    padding:
      clamp(32px, 6vw, 52px)
      clamp(20px, 4vw, 36px)
      28px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(13, 13, 15, 0.84) 0%, rgba(13, 13, 15, 0.6) 34%, rgba(13, 13, 15, 0.9) 100%);
  }

  .hero__content,
  .hero__buttons {
    width: min(100%, 760px);
    justify-self: center;
    text-align: center;
  }

  .subline {
    max-width: 38ch;
    margin-inline: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero__video-panels {
    width: min(100%, 920px);
    justify-self: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__copyright {
    position: relative;
    bottom: auto;
    margin-top: 4px;
  }
}

/* Tablet: 768px-1023px */
@media (max-width: 767px) {
  .hero {
    row-gap: 20px;
    padding:
      28px
      16px
      22px;
  }

  .hero__content,
  .hero__buttons {
    width: 100%;
  }

  .hero__content h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    margin-bottom: 14px;
  }

  .eyebrow {
    font-size: 0.74rem;
    margin-bottom: 12px;
  }

  .subline {
    max-width: 30ch;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero__video-panels {
    width: min(100%, 520px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero__video-bar {
    padding: 10px 12px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Handy: 320px-479px */
@media (max-width: 479px) {
  .hero {
    padding-inline: 14px;
    padding-bottom: 18px;
  }

  .hero__content h1 {
    font-size: clamp(1.9rem, 12vw, 2.5rem);
  }

  .subline {
    max-width: none;
    font-size: 0.95rem;
  }

  .hero__video-frame {
    aspect-ratio: 4 / 3;
  }

  .hero__video-label {
    font-size: 0.75rem;
  }

  .hero__video-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .video-popup__close {
    top: -40px;
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn,
  .hero__slide,
  .hero__video-frame,
  .hero__video-btn,
  .video-popup__close {
    transition: none;
  }
}
