/* Hintergrund-Design der TV-Seiten (Allgemein im Dashboard): hell = Creme (Standard), rot, dunkel. Karten bleiben Papier; Texte direkt auf dem Hintergrund werden hell. */
html[data-bg="rot"], html[data-bg="rot"] body, html[data-bg="rot"] body.tv { background: #e3102a; }
html[data-bg="dunkel"], html[data-bg="dunkel"] body, html[data-bg="dunkel"] body.tv { background: #161412; }
[data-bg="rot"] .tv-qr, [data-bg="dunkel"] .tv-qr, [data-bg="rot"] .loading, [data-bg="dunkel"] .loading { color: #fff; }
[data-bg="rot"] .chevrons path, [data-bg="rot"] .ar path { fill: #fff; }
[data-bg="rot"] .w-banner { background: var(--ink); }
[data-bg="rot"] .w-banner h1 b, [data-bg="rot"] .tv-title h1 b { color: var(--red); }
[data-bg="rot"] .w-date, [data-bg="rot"] .w-extra, [data-bg="dunkel"] .w-date, [data-bg="dunkel"] .w-extra { color: #fff; }
[data-bg="rot"] .w-place, [data-bg="dunkel"] .w-place { color: rgba(255,255,255,.88); }
[data-bg="rot"] .ar:nth-child(2) path { fill: rgba(255,255,255,.5); }
/* Mitteilung: Karte bleibt Papier */
[data-bg="rot"] .m-card, [data-bg="dunkel"] .m-card { box-shadow: .4em .4em 0 var(--ink); }
[data-bg="dunkel"] .m-card { box-shadow: .4em .4em 0 var(--red); }
/* Zeitplan: Zeilen stehen direkt auf dem Hintergrund */
[data-bg="rot"] .zt-day h2, [data-bg="dunkel"] .zt-day h2, [data-bg="rot"] .zt-what, [data-bg="dunkel"] .zt-what, [data-bg="rot"] .zt-clock { color: #fff; }
[data-bg="rot"] .zt-day h2 .r { color: var(--ink); }
[data-bg="rot"] .zt-time, [data-bg="rot"] .zt-clock { color: #fff; }
[data-bg="rot"] .zt-day .zt-motto, [data-bg="dunkel"] .zt-day .zt-motto, [data-bg="rot"] .zt-time small, [data-bg="dunkel"] .zt-time small,
[data-bg="rot"] .zt-what small, [data-bg="dunkel"] .zt-what small, [data-bg="rot"] .zt-empty, [data-bg="dunkel"] .zt-empty { color: rgba(255,255,255,.8); }
[data-bg="rot"] .zt-day { border-bottom-color: #fff; }
[data-bg="rot"] .zt-row, [data-bg="dunkel"] .zt-row { border-bottom-color: rgba(255,255,255,.3); }
[data-bg="rot"] .zt-row.now { background: linear-gradient(90deg, rgba(255,255,255,.25), rgba(255,255,255,0) 90%); box-shadow: inset .3em 0 0 #fff; }
[data-bg="dunkel"] .zt-row.now { background: linear-gradient(90deg, rgba(227,16,42,.4), rgba(227,16,42,0) 90%); }
[data-bg="rot"] .zt-row.next, [data-bg="dunkel"] .zt-row.next { box-shadow: inset .3em 0 0 var(--cream); }

/* ---- Eigene Texte (Mitteilung, Folien): Erscheinen mit Bewegung, Hintergrund mit kleiner Animation (abschaltbar: html[data-anim="aus"]) ---- */
.m-card.rise { animation: kartePop .8s cubic-bezier(.2, 1.25, .35, 1) both; transform-origin: 50% 65%; }
@keyframes kartePop {
  0% { opacity: 0; transform: translateY(1.4em) scale(.84) rotate(-1.8deg); }
  55% { opacity: 1; transform: translateY(-.18em) scale(1.025) rotate(.6deg); }
  100% { opacity: 1; transform: none; }
}
.m-card.rise .w { display: inline-block; opacity: 0; animation: wortPop .55s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(.35s + var(--i, 0) * 75ms); }
.m-card.rise .m-title .w { animation-name: titelPop; animation-delay: calc(.3s + var(--i, 0) * 110ms); }
@keyframes wortPop { from { opacity: 0; transform: translateY(.6em) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes titelPop { from { opacity: 0; transform: translateY(-.7em) scale(1.35) rotate(-2deg); } to { opacity: 1; transform: none; } }
.folie-tv .f-bild.zeigen { animation: bildEin 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bildEin { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
/* Hintergrund: sehr dezente, wandernde Pfeile hinter den Texten; Tempo --bgd (Dashboard: Allgemein → Pfeile → „Tempo der Hintergrund-Pfeile“) */
@keyframes bgDrift { to { background-position: 180px 0; } }
html[data-anim="an"] body.msg-tv { background-size: 180px 180px; animation: bgDrift var(--bgd, 15s) linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath d='M30 40h22l22 22-22 22H30l22-22z' fill='%23b9aa9b' fill-opacity='.22'/%3E%3Cpath d='M120 120h22l22 22-22 22h-22l22-22z' fill='%23e3102a' fill-opacity='.10'/%3E%3C/svg%3E"); }
html[data-anim="an"][data-bg="rot"] body.msg-tv, html[data-anim="an"][data-bg="dunkel"] body.msg-tv {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath d='M30 40h22l22 22-22 22H30l22-22z' fill='%23ffffff' fill-opacity='.12'/%3E%3Cpath d='M120 120h22l22 22-22 22h-22l22-22z' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) {
  .m-card.rise, .m-card.rise .w, .folie-tv .f-bild.zeigen { animation: none; opacity: 1; }
  html[data-anim="an"] body.msg-tv { animation: none; }
}
