/**
 * Startseite – Styling für das Home-Template (`home.php`).
 */

/* Bebas Neue – lokal (SIL Open Font License), keine Google-Fonts-Anfragen */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bebas-neue/bebas-neue-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue/bebas-neue-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --home-bg-dark: #0c1118;
  --home-bg-card: #ffffff;
  --home-text: #0c1118;
  --home-muted: #5c6570;
  --home-red: #c8102e;
  --home-red-hover: #a50d26;
  --home-accent: #b8860b;
  --home-header-offset: 4rem;
}

@keyframes home-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes home-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes home-scroll-dot {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes home-hero-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

.home-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  background: #fff;
}

.home-page > * {
  margin: 0;
}

.home-rollout-banner {
  background: linear-gradient(90deg, #c8102e 0%, #a50d26 100%);
  color: #fff;
  padding: 0.7rem 0;
}

.home-rollout-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.home-rollout-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-rollout-banner a:hover {
  text-decoration-thickness: 2px;
}

/* —— Hero —— */
.home-hero {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--home-bg-dark);
  overflow: hidden;
  padding-top: 0;
  min-height: calc(100vh - var(--home-header-offset));
  min-height: calc(100dvh - var(--home-header-offset));
}

.home-hero__media {
  position: absolute;
  inset: 0;
  top: 0;
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transform: scale(1.05);
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.home-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--home-bg-dark) 0%,
    transparent 50%,
    transparent 100%
  );
  z-index: 1;
}

/* Netflix-Streifen (vereinfacht) */
.home-streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.home-streaks__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  min-width: 60px;
  max-width: 120px;
  opacity: 0.4;
  filter: blur(40px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(180, 50, 40, 0.5) 30%,
    rgba(220, 80, 50, 0.6) 50%,
    rgba(180, 50, 40, 0.5) 70%,
    transparent 100%
  );
}

.home-streaks__bar--center {
  left: 50%;
  transform: translateX(-50%);
  width: 15%;
  min-width: 100px;
  max-width: 200px;
  opacity: 0.5;
  filter: blur(50px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(200, 60, 45, 0.6) 25%,
    rgba(230, 90, 55, 0.7) 50%,
    rgba(200, 60, 45, 0.6) 75%,
    transparent 100%
  );
}

.home-hero__body {
  position: relative;
  z-index: 10;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-content {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  min-width: 0;
  text-align: left;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .home-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.home-hero__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--home-accent);
  margin-bottom: 1rem;
  animation: home-hero-in 0.5s ease-out 0.15s both;
}

/* Gleiche Display-Typo wie „Konstruieren. / Simulieren. / Fahren.“ (.home-netflix__lines) */
.home-netflix__lines,
.home-hero__title {
  font-family: "Bebas Neue", var(--font-display, sans-serif);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-hero__title {
  font-size: clamp(2.75rem, 8vw, 6rem);
  margin: 0;
  animation: home-hero-in 0.6s ease-out 0.3s both;
}

.home-hero__title span {
  display: block;
}

.home-hero__title-line2 {
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__intro {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  animation: home-hero-in 0.5s ease-out 0.6s both;
}

.home-hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: home-hero-in 0.5s ease-out 0.8s both;
}

.home-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--home-red);
  color: #fff !important;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}

.home-btn-primary:hover {
  background: var(--home-red-hover);
  text-decoration: none;
}

.home-btn-primary svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.home-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #fff;
  color: #fff !important;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.2s;
}

.home-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Scroll to explore */
.home-scroll-hint {
  position: relative;
  z-index: 10;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.home-scroll-hint__mouse {
  display: inline-flex;
  justify-content: center;
  padding-top: 0.5rem;
  width: 1.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: home-scroll-bounce 1.5s ease-in-out infinite;
}

.home-scroll-hint__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  animation: home-scroll-dot 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .home-scroll-hint__mouse,
  .home-scroll-hint__dot {
    animation: none;
  }
}

/* Partner-Marquee */
.home-marquee-wrap {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  padding-top: 1.25rem;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.home-marquee {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding-right: 3rem;
  align-items: center;
  animation: home-marquee 100s linear infinite;
}

.home-marquee span {
  flex-shrink: 0;
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1rem;
  }
}

/* —— Horizontale Karten („Entdecken“) —— */
.home-strip {
  background: #f9fafb;
  overflow: hidden;
  padding: 2rem 0 3rem;
}

@media (min-width: 640px) {
  .home-strip {
    padding: 3rem 0;
  }
}

.home-strip__head {
  max-width: 80rem;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .home-strip__head {
    padding: 0 1.5rem;
  }
}

.home-strip__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--home-muted);
  margin: 0 0 0.5rem;
}

.home-strip__title {
  font-family: "Bebas Neue", var(--font-display, sans-serif);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  color: var(--home-text);
  margin: 0;
}

.home-strip__scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-strip__scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .home-strip__scroll {
    gap: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.home-strip__card-wrap {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 85vw;
  max-width: 480px;
}

@media (min-width: 640px) {
  .home-strip__card-wrap {
    width: 400px;
  }
}

@media (min-width: 1024px) {
  .home-strip__card-wrap {
    width: 480px;
  }
}

.home-card {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.home-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.home-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.home-card:hover .home-card__media img {
  transform: scale(1.05);
}

.home-card__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

.home-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.home-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem;
}

.home-card__h {
  font-family: "Bebas Neue", var(--font-display, sans-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.home-card__cta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.home-card:hover .home-card__cta span {
  transform: translateX(4px);
}

.home-card__cta span {
  transition: transform 0.2s;
}

/* —— Netflix-ähnliche Vollbild-Sektionen —— */
.home-netflix-stack {
  display: flex;
  flex-direction: column;
  background: var(--home-bg-dark);
  overflow: hidden;
}

.home-netflix-stack > * {
  margin: 0;
  padding: 0;
  display: block;
}

.home-netflix {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--home-header-offset));
  min-height: calc(100dvh - var(--home-header-offset));
  background: var(--home-bg-dark);
  overflow: hidden;
}

.home-netflix__inner {
  position: relative;
  min-height: calc(100vh - var(--home-header-offset));
  min-height: calc(100dvh - var(--home-header-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-netflix__bg {
  position: absolute;
  inset: 0;
  background: var(--home-bg-dark);
}

.home-netflix__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-netflix__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 24, 0.55);
  pointer-events: none;
}

.home-netflix__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1rem 1rem 2rem;
  text-align: center;
  min-width: 0;
}

@media (min-width: 640px) {
  .home-netflix__content {
    padding: 1rem 1.5rem 2rem;
  }
}

.home-netflix__lines {
  font-size: clamp(1.875rem, 5vw, 4.5rem);
}

.home-netflix__lines > span.block {
  display: block;
}

.home-netflix__line-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

.home-netflix__inline-img {
  display: inline-block;
  width: min(340px, 85vw);
  height: clamp(44px, 12vw, 96px);
  border-radius: 0.75rem;
  overflow: hidden;
  vertical-align: middle;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.home-netflix__inline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-netflix__sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .home-netflix__sub {
    margin-top: 2rem;
  }
}

.home-netflix__cta {
  margin-top: 2.5rem;
}

.home-netflix__cta .home-btn-primary {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

/* —— Über uns / Mitglied werden (hell) —— */
.home-light {
  padding: 3rem 0;
  scroll-margin-top: 5rem;
  background: #fff;
}

@media (min-width: 640px) {
  .home-light {
    padding: 5rem 0;
  }
}

.home-light--narrow .home-content {
  max-width: 42rem;
}

.home-light__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--home-muted);
  margin: 0 0 0.5rem;
}

.home-light__h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.home-light__prose {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--home-muted);
}

.home-light__prose p {
  margin: 0 0 1rem;
}

.home-light__links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-light__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}

.home-light__links a:first-child {
  color: var(--home-text);
}

.home-light__links a:first-child:hover {
  color: var(--home-red);
}

.home-light__links a:last-child {
  color: var(--home-red);
}

.home-light__links a:last-child:hover {
  text-decoration: underline;
}

.home-mitmachen-intro {
  margin-bottom: 2rem;
  color: var(--home-muted);
  white-space: pre-line;
  line-height: 1.6;
}

.home-mitmachen-panel {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1.5rem;
}

.home-mitmachen-panel p {
  margin: 0 0 1rem;
  color: var(--home-muted);
  font-size: 0.95rem;
}

.home-mitmachen-panel__lead {
  margin: 0;
}

.home-mitmachen-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.home-mitmachen-form .lr-form-wrap {
  max-width: none;
}

.home-blocks {
  padding: 0 0 6rem;
  background: #fff;
}

/* Hero soll direkt unter dem Header beginnen */

.home-blocks .lr-blocks {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .home-blocks .lr-blocks {
    padding: 0 1.5rem;
  }
}
