/* Tab-Leiste „Glas-Pille“ (Startseite v2, Owner 16.11.2026) — nur Handy unter 768 px.
   Farben aus dem v2-System: Glut #1E110B, Sand #C9AE98, Leinen #F4ECE2, Acid #9BF23C.
   Animation nur: Einfahren 1× pro Sitzung, Tipp-Feedback, atmender Ring, kompakt beim Runterscrollen. */
.wy-tb { display: none; }

@media (max-width: 767.98px) {
  .wy-tb {
    position: fixed; z-index: 1040; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    height: 72px; padding: 0 6px; border-radius: 30px; box-sizing: border-box;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    background: rgba(12, 13, 12, .74);
    -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(244, 236, 226, .12);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(244, 236, 226, .06);
    font-family: 'Jost', 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif; color: #C9AE98;
    transition: height .45s cubic-bezier(.2, .9, .3, 1), transform .45s cubic-bezier(.2, .9, .3, 1);
    animation: wyTbIn .9s cubic-bezier(.2, 1.25, .35, 1) .3s both;
  }
  .wy-tb.ohne-einfahrt { animation: none; }
  @keyframes wyTbIn { from { transform: translateY(130%); opacity: 0; } to { transform: none; opacity: 1; } }

  /* Glas-Pille hinter dem aktiven Tab, Acid-Punkt darunter */
  .wy-tb-pill {
    position: absolute; left: 0; top: 7px; bottom: 7px; width: 0; border-radius: 23px; pointer-events: none;
    background: linear-gradient(180deg, rgba(244, 236, 226, .13), rgba(244, 236, 226, .05));
    border: 1px solid rgba(244, 236, 226, .14);
    transition: transform .6s cubic-bezier(.34, 1.45, .5, 1), width .6s, top .45s, bottom .45s;
  }
  .wy-tb-pill::after {
    content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%; background: #9BF23C; box-shadow: 0 0 8px rgba(155, 242, 60, .7);
  }

  .wy-tb-i, .wy-tb-mid {
    -webkit-tap-highlight-color: transparent; text-decoration: none !important; background: none; border: 0;
    font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1; letter-spacing: .02em; cursor: pointer;
  }
  .wy-tb-i {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 0 12px; color: #C9AE98 !important; transition: color .3s, padding .45s;
  }
  .wy-tb-i svg {
    width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.34, 1.6, .5, 1);
  }
  .wy-tb-i.on { color: #F4ECE2 !important; }
  .wy-tb-i.on svg { transform: translateY(-2px) scale(1.08); }
  .wy-tb-i:active svg { transform: scale(.82); }
  .wy-tb .lb { transition: opacity .3s; white-space: nowrap; }

  /* Mittel-Knopf: Acid-Kreis mit atmendem Ring */
  .wy-tb-mid {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin-top: -30px; padding: 0; color: #F4ECE2 !important; transition: margin-top .45s;
  }
  .wy-tb-mid .c {
    position: relative; width: 62px; height: 62px; border-radius: 50%; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    background: #9BF23C; color: #1E110B; border: 5px solid rgba(12, 13, 12, .92);
    font: 500 17px/1 'Jost', sans-serif; white-space: nowrap; transition: transform .15s;
  }
  .wy-tb-mid .c svg {
    width: 24px; height: 24px; stroke: #1E110B; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  .wy-tb-mid .c::before {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 1.5px solid rgba(155, 242, 60, .55); animation: wyTbAtem 3.2s ease-out infinite;
  }
  @keyframes wyTbAtem { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.32); opacity: 0; } 100% { opacity: 0; } }
  .wy-tb-mid:active .c { transform: scale(.88); }

  /* kompakt beim Runterscrollen */
  .wy-tb.kompakt { height: 58px; }
  .wy-tb.kompakt .lb { opacity: 0; }
  .wy-tb.kompakt .wy-tb-i { padding: 0; }
  .wy-tb.kompakt .wy-tb-pill { top: 6px; bottom: 6px; }
  .wy-tb.kompakt .wy-tb-mid { margin-top: -22px; }
  .wy-tb.kompakt .wy-tb-mid .c { transform: scale(.88); }

  /* Platz für die Leiste am Seitenende; ersetzte Elemente aus */
  body.hat-tb { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.hat-tb .whatsAppBtn,
  body.hat-tb .hv2-sticky-bar,
  body.hat-tb #chip-qr,
  body.hat-tb #wy-top { display: none !important; }
  /* offenes Check-in-Blatt oder Kursplan liegen über der Leiste */
  body.sheet-open .wy-tb,
  body.planActive .wy-tb { transform: translateY(calc(100% + 60px)); }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .wy-tb { animation: none; }
  .wy-tb-mid .c::before { animation: none; opacity: 0; }
  .wy-tb, .wy-tb-pill, .wy-tb-i, .wy-tb-i svg, .wy-tb-mid { transition: none; }
}

/* ---------- Check-in-Kreis (Owner 16.11.2026, includes/checkin-kreis): der grüne Mittel-Knopf wächst nach
   oben zum abgerundeten Quadrat mit QR, Text kommt von unten. Grüner Hintergrund (Owner-Wahl). ---------- */
.wy-ck-dunkel {
  position: fixed; inset: 0; z-index: 1190; background: rgba(5, 7, 6, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s;
}
.wy-ck-dunkel.an { opacity: 1; }
.wy-ck {
  position: fixed; z-index: 1200; overflow: hidden; background: #9BF23C; color: #1E110B;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: left .5s cubic-bezier(.2, .8, .2, 1), top .5s cubic-bezier(.2, .8, .2, 1), width .5s cubic-bezier(.2, .8, .2, 1),
    height .5s cubic-bezier(.2, .8, .2, 1), border-radius .5s cubic-bezier(.2, .8, .2, 1);
  font-family: 'Jost', 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif;
}
.wy-ck[hidden], .wy-ck-dunkel[hidden] { display: none; }
.wy-ck-in {
  position: relative; padding: 18px 20px 16px; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(22px); transition: opacity .3s .12s, transform .45s .1s cubic-bezier(.2, .8, .2, 1);
}
.wy-ck.voll .wy-ck-in { opacity: 1; transform: none; }
.wy-ck-zu {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(30, 17, 11, .25); background: transparent; display: grid; place-items: center; cursor: pointer;
}
.wy-ck-zu svg { width: 16px; height: 16px; fill: none; stroke: #1E110B; stroke-width: 2; stroke-linecap: round; }
.wy-ck-kick { margin: 4px 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; font-weight: 500; }
.wy-ck h2 { margin: 0; padding: 0 30px; text-align: center; font-weight: 400; font-size: 26px; line-height: 1.1; color: #1E110B; letter-spacing: 0; text-transform: none; }
.wy-ck h2 span { display: block; font-size: 15px; opacity: .6; margin-top: 4px; }
.wy-ck-qr { width: 184px; height: 184px; margin: 14px 0 12px; border-radius: 24px; background: #fff; padding: 10px; box-sizing: border-box; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.wy-ck-qr svg { display: block; width: 100%; height: 100%; }
.wy-ck-fakten { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; text-align: center; border-top: 1px solid rgba(30, 17, 11, .15); padding-top: 10px; }
.wy-ck-fakten small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.wy-ck-fakten b { font-size: 19px; font-weight: 500; }
.wy-ck-tipp { margin: 10px 0 0; font-size: 13px; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .wy-ck, .wy-ck-in, .wy-ck-dunkel { transition: none; } }
