/* Oranger Banner oben – Gegenstück zum Rangliste-Banner auf teilerzero.de: hier verweist er auf die App */
:root { --banner-h: 44px; }
.top-banner {
  position: sticky; top: 0; z-index: 60;
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 0 16px;
  background: linear-gradient(100deg, #EA8C00 0%, #F59E0B 28%, #FBBF24 50%, #F59E0B 72%, #EA8C00 100%);
  background-size: 220% 100%;
  animation: tbFlow 9s ease-in-out infinite;
  color: #2A1600; text-decoration: none;
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden;
  box-shadow: 0 3px 16px rgba(180,100,0,0.30);
}
@keyframes tbFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.top-banner::after { content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); animation: tbShine 6.5s ease-in-out infinite; pointer-events: none; }
@keyframes tbShine { 0% { left: -45%; } 55%, 100% { left: 135%; } }
.top-banner:hover { filter: brightness(1.04); }
.top-banner > * { position: relative; z-index: 1; }
.top-banner strong { font-weight: 900; letter-spacing: .2px; }
.top-banner-tag { flex: none; background: #2A1600; color: #FFD27A;
  padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase; }
.top-banner-txt { overflow: hidden; text-overflow: ellipsis; }
.top-banner-cta { flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: #2A1600; color: #FFE8B0; padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: 13px; transition: gap .2s; }
.top-banner:hover .top-banner-cta { gap: 9px; }
/* Startseite: die feste Navigation sitzt unter dem Banner */
.top-banner ~ .nav { top: var(--banner-h); }
/* In der App läuft der Banner mit nach oben weg (nicht dauerhaft festgeklebt) */
.top-banner.mitlaufen { position: relative; }
.top-banner-sub { display: none; }
@media (max-width: 760px) { .top-banner-long { display: none; } .top-banner { font-size: 13px; gap: 9px; } }
/* Öffentliche Seiten am Handy: zweite Zeile, die sagt, was die App kann (in der App bleibt der Banner einzeilig) */
@media (max-width: 760px) {
  :root { --banner-h: 58px; }
  .top-banner.mitlaufen { height: 44px; }
  .top-banner:not(.mitlaufen) { flex-wrap: wrap; align-content: center; row-gap: 3px; padding: 0 12px; }
  .top-banner:not(.mitlaufen) .top-banner-sub { display: block; flex-basis: 100%; text-align: center; font-size: 12px; font-weight: 600; color: #3d2400;
    overflow: hidden; text-overflow: ellipsis; }
  .top-banner:not(.mitlaufen) .top-banner-cta { display: none; }
}
@media (max-width: 440px) { .top-banner-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .top-banner, .top-banner::after { animation: none; } }
