/* =========================================================
   ROAD TO THUN — campagnebalk, menu-item en openingsanimatie
   (geladen via partials/header.html en op de homepage)
========================================================= */

/* ---------- Campagnebalk onder het menu ---------- */
.rtt-balk {
  position: relative; z-index: 1;
  background: linear-gradient(90deg, #e58d3b 0%, #eda24f 55%, #eed086 100%);
  color: #12302a;
  border-top: 1px solid rgba(255,255,255,.25);
}
.rtt-balk[hidden] { display: none !important; }
.rtt-balk-inner { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.rtt-balk-link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  color: #12302a !important; text-decoration: none !important; font-size: .92rem; line-height: 1.25;
  padding: 6px 0;
}
.rtt-balk-link img { width: 26px; height: auto; flex: 0 0 auto; background: #fffdf8; border-radius: 50%; padding: 2px; }
.rtt-balk-kicker {
  flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: #12302a; color: #eed086;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.rtt-balk-text { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rtt-balk-amount { font-weight: 800; white-space: nowrap; }
.rtt-balk-amount[hidden] { display: none; }
.rtt-balk-cta {
  margin-left: auto; flex: 0 0 auto; padding: 5px 14px; border-radius: 999px;
  background: #12302a; color: #fff; font-weight: 800; font-size: .85rem; white-space: nowrap;
  transition: transform .2s ease;
}
.rtt-balk-link:hover .rtt-balk-cta, .rtt-balk-link:focus-visible .rtt-balk-cta { transform: translateX(3px); }
.rtt-balk-close {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(18,48,42,.12); color: #12302a; font-size: 18px; line-height: 1;
}
.rtt-balk-close:hover { background: rgba(18,48,42,.22); }
.rtt-balk-link:focus-visible, .rtt-balk-close:focus-visible { outline: 3px solid #12302a; outline-offset: 2px; border-radius: 6px; }
.rtt-balk.is-absorbing { animation: rttBalkAbsorb 1s ease-out; }
@keyframes rttBalkAbsorb {
  0% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); filter: brightness(1); }
  35% { box-shadow: inset 0 0 0 999px rgba(255,255,255,.35); filter: brightness(1.12); }
  100% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); filter: brightness(1); }
}

@media (max-width: 760px) {
  .rtt-balk-kicker, .rtt-balk-amount { display: none !important; }
  .rtt-balk-link { font-size: .84rem; }
  .rtt-balk-cta { padding: 4px 10px; font-size: .78rem; }
}

/* ---------- Menu-item "Road to Thun" ---------- */
.bijeva-menu a.rtt-menu-link {
  border: 1.5px solid rgba(238,208,134,.75);
  color: #eed086 !important;
}
.bijeva-menu a.rtt-menu-link:hover,
.bijeva-menu a.rtt-menu-link:focus-visible { background: rgba(229,141,59,.18); }
.rtt-glow {
  animation: rttMenuGlow 1.8s ease-out;
}
@keyframes rttMenuGlow {
  0%   { box-shadow: 0 0 0 0 rgba(238,208,134,0); background: transparent; }
  30%  { box-shadow: 0 0 0 6px rgba(238,208,134,.35), 0 0 34px 10px rgba(229,141,59,.75); background: rgba(229,141,59,.55); color: #fff !important; }
  100% { box-shadow: 0 0 0 0 rgba(238,208,134,0); background: transparent; }
}

/* ---------- Openingsanimatie (alleen homepage) ---------- */
.rtt-intro { display: none; }
html.rtt-intro-on .rtt-intro {
  display: flex; position: fixed; inset: 0; z-index: 5000;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(12, 36, 30, .48);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  backdrop-filter: blur(9px) saturate(1.1);
  transition: background 1.5s ease, -webkit-backdrop-filter 1.5s ease, backdrop-filter 1.5s ease;
  cursor: pointer;
}
html.rtt-intro-on body { overflow: hidden; }
.rtt-intro-card {
  text-align: center; color: #fff; transform-origin: center center;
  animation: rttIntroIn .9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rttIntroIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.rtt-intro-logo {
  width: min(300px, 62vw); height: min(300px, 62vw); margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, #fffdf8 0%, #f6f0e2 72%);
  box-shadow: 0 30px 90px rgba(0,0,0,.45), 0 0 0 10px rgba(238,208,134,.28);
}
.rtt-intro-logo img { width: 74%; height: auto; }
.rtt-intro-title {
  margin: 0; font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.08;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.rtt-intro-title span { color: #eed086; display: block; }
.rtt-intro-sub {
  margin: 14px 0 0; font-size: clamp(.95rem, 2.2vw, 1.15rem); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; opacity: .9;
}
.rtt-intro-skip { margin-top: 18px; font-size: .8rem; opacity: .65; }

/* uitstappen: overlay vervaagt, kaart wordt in de balk gezogen */
html.rtt-intro-on .rtt-intro.is-leaving {
  background: rgba(12, 36, 30, 0);
  -webkit-backdrop-filter: blur(0) saturate(1);
  backdrop-filter: blur(0) saturate(1);
  pointer-events: none;
}
.rtt-intro.is-leaving .rtt-intro-card {
  animation: none;
  transition: transform 1.45s cubic-bezier(.6,.02,.85,.35), opacity 1.45s cubic-bezier(.7,0,.9,.4);
}
@media (prefers-reduced-motion: reduce) {
  .rtt-intro-card { animation: none; }
  .rtt-intro.is-leaving .rtt-intro-card { transition: opacity .6s ease; transform: none !important; }
  .rtt-glow, .rtt-balk.is-absorbing { animation: none; }
}

/* sluitknop: eigen vaste vorm, los van de algemene knopstijl van de site */
.rtt-balk .rtt-balk-close {
  display: grid; place-items: center; padding: 0; margin: 0;
  width: 28px; height: 28px; min-width: 28px; min-height: 28px; max-width: 28px; max-height: 28px;
  box-shadow: none; text-shadow: none; transform: none;
}
@media (max-width: 760px) {
  .rtt-balk-lang { display: none; }
}

/* Slanker, en wegschuiven tijdens het lezen (komt terug bij naar boven scrollen) */
.rtt-balk { max-height: 60px; overflow: hidden; transition: max-height .3s ease, opacity .25s ease; }
.rtt-balk.is-weg { max-height: 0; opacity: 0; border-top-width: 0; }
.rtt-balk-inner { min-height: 34px; gap: 8px; }
.rtt-balk-link { padding: 3px 0; font-size: .88rem; }
.rtt-balk-link img { width: 22px; }
.rtt-balk-kicker { padding: 2px 9px; font-size: .68rem; }
.rtt-balk-cta { padding: 4px 12px; font-size: .8rem; }
.rtt-balk .rtt-balk-close { width: 24px; height: 24px; min-width: 24px; min-height: 24px; max-width: 24px; max-height: 24px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .rtt-balk { transition: none; } }
