/* Der Hinweisbalken. Er sitzt ganz oben, über der Kopfleiste — was dort
   steht, gilt für die ganze Seite und nicht für einen Abschnitt.
   Keine Laufschrift: Die liest sich schlecht und lässt sich auf dem Handy
   kaum treffen. Bei mehreren Meldungen blendet er um. */

.tk{
  position:relative;z-index:70;
  background:var(--ink,#000);color:#fff;
  transform:translateY(-100%);
  transition:transform .38s cubic-bezier(.16,1,.3,1);
}
.tk.tk-da{transform:none}
.tk.tk-weg{transform:translateY(-100%)}

.tk[data-ton="warnung"]{background:var(--red,#D8063A)}
.tk[data-ton="gut"]{background:#5F7500}

.tk-in{
  max-width:var(--maxw,1440px);margin:0 auto;
  display:flex;align-items:center;gap:12px;
  padding:9px clamp(14px,3vw,28px);
  min-height:46px;
}

.tk-marke{flex:0 0 auto;display:grid;place-items:center;width:24px;height:24px;
  border-radius:50%;background:rgba(255,255,255,.16)}
.tk-marke svg{width:15px;height:15px;fill:none;stroke:currentColor;
  stroke-width:2.6;stroke-linecap:round}
.tk[data-ton="neutral"] .tk-marke{background:var(--lime,#9BBE00);color:#000}

.tk-buehne{flex:1 1 auto;min-width:0;
  transition:opacity .22s ease-out,transform .22s ease-out}
.tk-buehne.tk-raus{opacity:0;transform:translateY(-7px)}
.tk-buehne.tk-rein{animation:tkRein .32s cubic-bezier(.16,1,.3,1)}
@keyframes tkRein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.tk-text{margin:0;font-size:0.94rem;line-height:1.45}
.tk-text b{font-family:var(--sub);font-weight:800;letter-spacing:.02em}
.tk-text a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.tk-text a i{font-style:normal;display:inline-block;transition:transform .22s var(--ease-out,ease)}
.tk-text a:hover i{transform:translateX(4px)}

.tk-punkte{flex:0 0 auto;display:flex;gap:5px}
.tk-punkte i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.35);
  transition:background .25s,transform .25s}
.tk-punkte i.an{background:#fff;transform:scale(1.3)}

.tk-zu{
  flex:0 0 auto;width:32px;height:32px;border:0;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;cursor:pointer;
  display:grid;place-items:center;transition:background .2s,transform .2s;
}
.tk-zu:hover{background:rgba(255,255,255,.26);transform:rotate(90deg)}
.tk-zu:focus-visible{outline:3px solid var(--lime,#9BBE00);outline-offset:2px}
.tk-zu svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}

/* Die Kopfleiste klebt oben. Steht der Balken darüber, muss sie um genau
   seine Höhe nachrutschen — sonst überdeckt sie ihn beim ersten Scrollen. */
@media (min-width:761px){
  .hat-ticker .hd{top:var(--tk-h,46px)}
}
@media (max-width:760px){
  .tk-in{gap:9px;padding:8px 14px}
  .tk-text{font-size:0.88rem}
  .tk-punkte{display:none}
}
@media (prefers-reduced-motion:reduce){
  .tk,.tk-buehne,.tk-zu,.tk-punkte i{transition:none}
  .tk-buehne.tk-rein{animation:none}
}
