/* ============================================================
   Landingpage „Arena“ (Redesign Phase 2) – nur für neue Besucher
   ohne Anmeldung. Liegt als eigenes Overlay (#vbLanding) über der
   unveränderten App; Schließen = App wie bisher.
   Einzige dunkle Fläche der App (bewusste Ausnahme), daher auch im
   Nachtmodus gleich. Farben/Schrift aus css/tokens.css.
   ============================================================ */
#vbLanding {
  position: fixed; inset: 0; z-index: 10600;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background: var(--vb-navy); color: var(--vb-dark-ink);
  font-family: var(--vb-font-body); text-align: start;
}
#vbLanding[hidden] { display: none; }
html.vb-landing-open, html.vb-landing-open body { overflow: hidden; }
#vbLanding *, #vbLanding *::before, #vbLanding *::after { box-sizing: border-box; }
#vbLanding button { font-family: inherit; }
#vbLanding a { color: var(--vb-teal-text); }
#vbLanding a:hover { color: #fff; }
#vbLanding button:focus-visible, #vbLanding a:focus-visible { outline: 3px solid var(--vb-teal-light); outline-offset: 2px; }

.vbl-root { position: relative; min-height: 100%; overflow-x: clip; display: flex; flex-direction: column; }
.vbl-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 520px at 72% 26%, rgba(30,111,232,.5), transparent 62%),
              radial-gradient(600px 380px at 18% 60%, rgba(23,195,178,.16), transparent 60%); }

/* Kopfleiste */
.vbl-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 clamp(12px,4vw,40px); border-bottom: 1px solid rgba(255,255,255,.07); }
.vbl-logo { height: 48px; width: auto; display: block; }
.vbl-nav { display: flex; gap: 2px; }
.vbl-nav button, .vbl-tabs button { background: transparent; border: 0; cursor: pointer; }
.vbl-nav button { padding: 8px 12px; border-radius: 10px; color: var(--vb-dark-muted); font-weight: 600; font-size: 14px; }
.vbl-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.vbl-tools { display: flex; align-items: center; gap: 8px; }
.vbl-outline { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--vb-dark-ink);
  font-weight: 600; font-size: 13px; cursor: pointer; }
.vbl-outline:hover { background: rgba(255,255,255,.06); }
.vbl-outline svg { flex: none; }

/* Menüsprache */
.vbl-langs { position: absolute; inset-inline-end: clamp(12px,4vw,40px); top: 64px; z-index: 5;
  background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.4);
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; width: min(300px, 90vw); }
.vbl-langs[hidden] { display: none; }
.vbl-langs button { height: 44px; border-radius: 10px; border: 1px solid var(--vb-border); background: #fff;
  color: var(--vb-navy); font-weight: 600; font-size: 13px; cursor: pointer; }
.vbl-langs button.active { background: #E6F0FF; border-color: var(--vb-blue); }

/* Hero */
.vbl-main { position: relative; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px,4vw,40px) 24px; }
.vbl-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px,100%), 1fr)); gap: 24px; align-items: center; }
.vbl-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.vbl-eyebrow { padding: 5px 12px; border-radius: 999px; background: rgba(23,195,178,.12); border: 1px solid rgba(23,195,178,.4);
  color: var(--vb-teal-text); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.vbl-h1 { margin: 0; font-family: var(--vb-font-head); font-weight: 700; font-size: 58px; line-height: 1.04; color: #fff; text-wrap: balance; }
.vbl-sub { margin: 0; font-size: 18px; line-height: 1.5; color: var(--vb-dark-muted); max-width: 520px; text-wrap: pretty; }
.vbl-play { display: flex; align-items: center; gap: 18px; padding: 18px 40px 18px 18px; border: none; border-radius: 26px;
  background: linear-gradient(180deg, var(--vb-teal-light), var(--vb-teal)); color: var(--vb-on-teal); cursor: pointer;
  transition: transform .15s ease; animation: vblGlow 2.4s ease-in-out infinite; }
[dir="rtl"] .vbl-play { padding: 18px 18px 18px 40px; }
.vbl-play:hover { transform: translateY(-2px) scale(1.02); }
.vbl-play-ico { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--vb-navy); flex: none; }
.vbl-play-txt { font-family: var(--vb-font-head); font-weight: 700; font-size: 38px; letter-spacing: .01em; line-height: 1.1; }
.vbl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vbl-pair { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--vb-dark-ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.vbl-pair:hover { background: rgba(255,255,255,.06); }
.vbl-free { color: #8496BA; font-size: 14px; }
.vbl-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vbl-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 14px; color: #D5E0F5; }
[dir="rtl"] .vbl-steps li { padding: 6px 6px 6px 12px; }
.vbl-steps b { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--vb-blue); color: #fff; font-size: 13px; }

.vbl-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 500px; }
.vbl-art-glow { position: absolute; width: 480px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,234,214,.32), rgba(30,111,232,.16) 55%, transparent 70%); }
.vbl-card-l, .vbl-card-r { position: absolute; border-radius: 9px; box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.vbl-card-l { left: 2%; bottom: 8%; width: 112px; transform: rotate(-12deg); }
.vbl-card-r { right: 2%; top: 10%; width: 104px; transform: rotate(10deg); }
.vbl-ele { position: relative; width: 540px; max-width: 100%; height: auto; animation: vblFloat 4s ease-in-out infinite; filter: drop-shadow(0 26px 40px rgba(0,0,0,.5)); }

/* Bereiche + Belohnungen */
.vbl-areas { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr)); gap: 14px; }
.vbl-area { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 18px; text-align: start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--vb-dark-ink); cursor: pointer; }
.vbl-area:hover { border-color: rgba(127,231,220,.6); }
.vbl-area-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: #fff;
  font-family: var(--vb-font-head); font-weight: 700; font-size: 20px; }
.vbl-area-txt { display: flex; flex-direction: column; gap: 4px; }
.vbl-area-txt b { font-family: var(--vb-font-head); font-size: 20px; color: #fff; }
.vbl-area-txt span { font-size: 14px; line-height: 1.45; color: var(--vb-dark-muted); }
.vbl-rewards { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px 22px; border-radius: 18px;
  background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.3); }
.vbl-rewards-cards { display: flex; gap: 6px; flex: none; }
.vbl-rewards-cards img { width: 52px; height: auto; border-radius: 5px; }
.vbl-rewards-txt { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.vbl-rewards-txt b { font-family: var(--vb-font-head); font-size: 20px; color: #FFD18A; }
.vbl-rewards-txt span { color: var(--vb-dark-muted); font-size: 14px; line-height: 1.45; }

.vbl-foot { margin-top: 28px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 10px; color: #8496BA; font-size: 13px; }
.vbl-foot span { display: flex; flex-wrap: wrap; gap: 16px; }

/* Tab-Leiste unten (nur Handy) */
.vbl-tabs { display: none; position: sticky; bottom: 0; z-index: 4; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(8,20,44,.97); border-top: 1px solid rgba(255,255,255,.1); }
.vbl-tabs button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; color: #C7D4EE; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbl-tabs button i { font-style: normal; font-family: var(--vb-font-head); font-size: 17px; color: var(--vb-teal-text); }

@keyframes vblFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes vblGlow { 0%,100% { box-shadow: 0 10px 34px rgba(23,195,178,.45), 0 0 0 0 rgba(46,224,204,.45); }
  50% { box-shadow: 0 10px 44px rgba(23,195,178,.65), 0 0 0 14px rgba(46,224,204,0); } }
@media (prefers-reduced-motion: reduce) { .vbl-play, .vbl-ele { animation: none; } }

@media (max-width: 820px) {
  .vbl-nav, .vbl-login-text, .vbl-eyebrow, .vbl-free { display: none; }
  .vbl-tabs { display: flex; }
  .vbl-hero { gap: 6px; text-align: center; }
  .vbl-text { align-items: center; }
  .vbl-row, .vbl-steps { justify-content: center; }
  .vbl-h1 { font-size: 34px; }
  .vbl-sub { font-size: 16px; }
  .vbl-art { order: -1; min-height: 0; }
  .vbl-ele { width: 270px; }
  .vbl-card-l, .vbl-card-r { width: 68px; }
  .vbl-play { width: 100%; justify-content: center; }
  .vbl-play-txt { font-size: 30px; }
  .vbl-main { padding-top: 8px; }
}

/* Vor dem ersten Zeichnen (Inline-Skript im <head>): App unsichtbar, nur dunkler Grund,
   bis landing.js das Overlay zeigt oder die Klasse wieder entfernt (spätestens nach 5 s). */
html.vb-landing-pending { background: #0B1E3F; }
html.vb-landing-pending body { visibility: hidden; }
html.vb-landing-pending #vbLanding { visibility: visible; }
@media (max-width: 380px) { .vbl-tabs button { font-size: 10.5px; } }

/* 29.11.2026: größeres Logo, Menüsprachen als Liste von oben nach unten mit Flaggen */
.vbl-head { height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.vbl-logo { height: 92px; }
.vbl-langs { display: flex; flex-direction: column; gap: 2px; width: min(240px, 90vw); top: calc(100% + 4px); padding: 6px;
  max-height: calc(100dvh - 110px); overflow-y: auto; }
.vbl-head { overflow: visible; }

.vbl-langs button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; text-align: start;
  border: 0; border-radius: 10px; font-size: 15px; width: 100%; }
.vbl-langs button:hover { background: #F1F5FD; }
.vbl-langs button.active { background: #E6F0FF; border: 0; color: #0B1E3F; }
.vbl-lang-flag { font-size: 20px; line-height: 1; width: 24px; text-align: center; }
.vbl-lang-name { flex: 1; }
.vbl-lang-check { color: var(--vb-blue, #1E6FE8); font-weight: 900; }
@media (max-width: 860px) {
  .vbl-logo { height: 68px; }

}
/* 03.12.2026: Links zu /sprachen und /lehrkraefte */
.vbl-more { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 0; }
.vbl-more a { color: #7FE7DC; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(127,231,220,.4); padding-bottom: 2px; }
.vbl-more a:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
