/* =========================================================
   OitsU – Stylesheet
   Akzentfarbe: #FC6F5F
   Schlicht, warm, emotional. Keine externen Abhängigkeiten.
   ========================================================= */

:root {
  --accent: #FC6F5F;
  --accent-dark: #E85A4A;
  --ink: #1F1B1A;        /* warmes Schwarz */
  --ink-soft: #5A524F;   /* gedämpfter Fließtext */
  --paper: #FBF7F4;      /* warmes Off-White */
  --paper-2: #FFFFFF;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

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

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  animation: crossfade 12s infinite;
  animation-fill-mode: both;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 4s; }
.hero__slide:nth-child(3) { animation-delay: 8s; }

@keyframes crossfade {
  0%      { opacity: 0; z-index: 0; }
  1%      { opacity: 0; z-index: 1; }
  5.83%   { opacity: 1; z-index: 1; }
  33.33%  { opacity: 1; z-index: 1; }
  39.17%  { opacity: 0; z-index: 1; }
  40%     { opacity: 0; z-index: 0; }
  100%    { opacity: 0; z-index: 0; }
}

/* Dunkle Tönung, damit Text auf dem Video lesbar bleibt */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,27,26,.25) 0%, rgba(31,27,26,.55) 100%);
  z-index: -1;
}

.hero__content {
  padding: 0 24px;
  animation: rise 1s ease both;
}

.hero__title {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.hero__beta {
  font-size: .55em;
  font-weight: 300;
  font-style: italic;
  letter-spacing: .06em;
  opacity: .75;
  margin-left: .35em;
  vertical-align: middle;
}

.hero__slogan {
  margin-top: .3rem;
  font-size: clamp(2.4rem, 7.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .95;
}

.get-app {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.4rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.get-app:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  opacity: .8;
  animation: bob 1.8s ease-in-out infinite;
}

/* ---------- STORY-SEKTIONEN ---------- */
.story {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 24px;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.story--reverse { flex-direction: row-reverse; }

.story__text { flex: 1; }

.story__text h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
/* Akzent: kurzer Strich über jeder Überschrift */
.story__text h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin-bottom: 1.2rem;
}

.story__text p {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 42ch;
}
.story__text p + p {
  margin-top: .75rem;
}

.story__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone {
  width: clamp(160px, 48%, 240px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(31,27,26,.18));
  opacity: 0;
  transform: scale(0.85) translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.phone.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ---------- GET THE APP ---------- */
.get {
  background: var(--paper-2);
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 24px;
  border-top: 1px solid rgba(31,27,26,.06);
}
.get__title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.get__sub {
  margin-top: .75rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.get__stores {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.store img { height: 52px; width: auto; display: block; }
.store { transition: transform .2s ease; }
.store:hover { transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.footer__brand { font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.footer__nav { display: flex; gap: 1.5rem; }
.footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.footer__nav a:hover { color: var(--accent); }

/* ---------- RECHTSSEITEN (Impressum / Datenschutz) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 24px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.legal__back:hover { text-decoration: underline; }
.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .5rem;
}
.legal p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal a { color: var(--accent); }

/* ---------- ANIMATIONEN ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .story, .story--reverse { flex-direction: column; text-align: center; }
  .story__text h2::before { margin-left: auto; margin-right: auto; }
  .story__text p { margin-left: auto; margin-right: auto; }
  .footer { justify-content: center; text-align: center; }

  .hero__slide:nth-child(1) { object-position: 82% center; }
  .hero__slide:nth-child(2) { object-position: 18% center; }
  .hero__slide:nth-child(3) { object-position: 82% center; }

  .story__visual {
    width: 100%;
    flex: none;
  }

  .phone {
    width: 80%;
    height: auto;
    max-height: none;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .phone { opacity: 1; transform: none; }
}
