/* =========================================================
   Darum vegan — landing.css
   Split-Screen-Moduswahl: Kopf (links) / Herz (rechts).
   ========================================================= */

.landing {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
}
.split { display: flex; height: 100%; }

/* ---- Panels ---- */
.panel {
  position: relative;
  flex: 1 1 50%;
  border: none; margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) clamp(26px, 4vw, 70px) clamp(46px, 7vh, 88px);
  isolation: isolate;
}
.panel--head { color: #13201e; align-items: flex-start; }
.panel--heart { color: #f5ece5; align-items: flex-end; text-align: right; }

/* Hintergrundbild je Modus */
.panel-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: center;
  transition: transform 1.1s var(--ease-out), filter 0.7s var(--ease);
  animation: kenburns 2.6s var(--ease-out) both;
}
.panel--head .panel-media { background-image: url("../img/hero-head.webp"); background-position: 82% center; }
.panel--heart .panel-media { background-image: url("../img/hero-heart.webp"); background-position: 63% 42%; }

/* Verlauf für Text-Lesbarkeit */
.panel-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity 0.6s var(--ease);
}
.panel--head .panel-veil {
  background:
    linear-gradient(to top, rgba(238, 239, 233, 0.86) 0%, rgba(238, 239, 233, 0.2) 40%, rgba(238, 239, 233, 0) 66%),
    linear-gradient(to right, rgba(238, 239, 233, 0.4), transparent 55%);
}
.panel--heart .panel-veil {
  background:
    linear-gradient(to top, rgba(13, 9, 8, 0.9) 0%, rgba(13, 9, 8, 0.35) 42%, rgba(13, 9, 8, 0) 70%),
    linear-gradient(to left, rgba(13, 9, 8, 0.45), transparent 55%);
}

/* Hover: gewähltes Bild zoomt & leuchtet, anderes tritt zurück */
.split:hover .panel:not(:hover) .panel-media { filter: brightness(0.62) saturate(0.8); }
.split:hover .panel:not(:hover) .panel-content { opacity: 0.7; }
.panel:hover .panel-media { transform: scale(1.05); }
.panel:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }

/* ---- Panel-Inhalt ---- */
.panel-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 30ch;
  transition: opacity 0.6s var(--ease);
}
.panel-content--right { align-items: flex-end; }

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-bottom: 9px;
  border-bottom: 2px solid currentColor;
  color: #0f6258;
}
.panel-label--heart { color: #e9694b; }
.panel-icon { display: inline-flex; }

.panel-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 80, "SOFT" 20;
}
.panel-sub {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.5;
  opacity: 0.86;
  max-width: 34ch;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), gap 0.2s var(--ease);
}
.panel-cta--head { background: #0f6258; color: #fff; }
.panel-cta--heart { background: #e2553a; color: #fff; }
.panel:hover .panel-cta { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32); gap: 16px; }
.cta-arrow { transition: transform 0.2s var(--ease); }
.panel:hover .cta-arrow { transform: translateX(4px); }

/* ---- Zentrum: Overline + zweifarbige Headline + Hinweis ---- */
.split-center {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  z-index: 20;
  text-align: center;
  pointer-events: none;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 30px);
}

.landing-logo {
  width: auto;
  height: clamp(92px, 19vh, 164px);
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.34));
  animation: rise 1s var(--ease-out) 0.2s both;
}

.split-question {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
  background: rgba(12, 9, 8, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 13px 26px;
  text-align: center;
  font-variation-settings: "opsz" 80, "SOFT" 20;
  animation: rise 1s var(--ease-out) 0.34s both;
}

.landing-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  animation: rise 0.9s var(--ease-out) 0.9s both;
}
.landing-hint::before,
.landing-hint::after {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.6;
  animation: hintpulse 2.4s var(--ease) infinite;
}

/* Feiner Mitteltrenner */
.landing::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.18) 30%, rgba(255, 255, 255, 0.18) 70%, transparent);
  z-index: 10;
  pointer-events: none;
}

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hintpulse { 0%, 100% { opacity: 0.3; width: 18px; } 50% { opacity: 0.8; width: 30px; } }

.panel--head .panel-content { animation: rise 0.95s var(--ease-out) 0.55s both; }
.panel--heart .panel-content { animation: rise 0.95s var(--ease-out) 0.68s both; }

/* ---- Mobil: beide Seiten auf einem Screen, einfarbige Headline ---- */
@media (max-width: 860px) {
  .landing { height: 100svh; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
  .landing::after { display: none; }

  /* Kopfzeile: nur die Frage, so groß wie möglich (Logo/Marke steht im Header) */
  .split-center {
    order: 1; flex: none;
    position: static; transform: none;
    padding: calc(var(--header-h) + 12px) 18px 12px;
    background: var(--bg);
    gap: 0;
  }
  .landing-logo { display: none; }
  .split-question {
    background: none; border: none; padding: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    color: var(--ink);
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.55rem, 7.4vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.022em;
    max-width: 15ch;
  }
  .landing-hint { display: none; }

  /* Zwei Bänder teilen sich den Rest – beide sichtbar, inkl. Beschreibung */
  .split { order: 2; flex: 1 1 auto; flex-direction: column; min-height: 0; }
  .panel {
    flex: 1 1 0; min-height: 0;
    padding: 12px 22px 16px;
    justify-content: flex-end;
  }
  .panel--heart { align-items: flex-start; text-align: left; }
  .panel-content, .panel-content--right {
    align-items: flex-start; text-align: left;
    gap: 5px; max-width: none;
  }
  /* Beschreibung der beiden Pfade – immer sichtbar, auf 2 Zeilen begrenzt */
  .panel-sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.35;
    opacity: 0.85;
    max-width: 42ch;
  }
  .panel-lead { font-size: clamp(1rem, 3.8vw, 1.32rem); line-height: 1.12; }
  .panel-label { font-size: 0.68rem; letter-spacing: 0.24em; padding-bottom: 4px; }
  .panel-label svg { width: 17px; height: 17px; }
  .panel-cta { margin-top: 3px; padding: 9px 16px; font-size: 0.84rem; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
}

/* Sehr niedrige Screens: enger packen, damit Frage + beide Beschreibungen passen */
@media (max-width: 860px) and (max-height: 680px) {
  .split-question { font-size: clamp(1.3rem, 6.2vw, 1.8rem); }
  .panel { padding: 10px 20px 12px; }
  .panel-content, .panel-content--right { gap: 4px; }
  .panel-sub { -webkit-line-clamp: 2; font-size: 0.76rem; line-height: 1.3; }
  .panel-lead { font-size: clamp(0.95rem, 3.6vw, 1.2rem); }
}
