:root {
  --bg: #f3f5f9;
  --text: #1f2937;
  --muted: #6b7280;
  --sidebar-min-width: 196px;
  --sidebar-max-width: 236px;
  --sidebar-bg: #0a1730;
  --sidebar-text: #d8deea;
  --accent: #ffbc1f;
  --card-bg: #fff;
  --border: #d8dde7;
  --hover: #fafafa;
  --row-hover: #eef3fb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
  --focus-ring: 0 0 0 3px rgba(255, 188, 31, 0.25);
  --prelogin-bg-a: #0f223c;
  --prelogin-bg-b: #1a3858;
  --prelogin-blue-glow: rgba(36, 74, 115, 0.42);
  --prelogin-accent-glow: rgba(255, 188, 31, 0.34);
  --prelogin-orb-a: #f0c475;
  --prelogin-orb-b: #244a73;
  --prelogin-shadow: rgba(10, 21, 36, 0.58);
  --prelogin-shadow-accent: rgba(214, 162, 74, 0.7);
  --wo-legend-status-ordered: #f5b2b2;
  --wo-legend-status-scan: #f4ec9a;
  --wo-legend-status-maker: #95b9f7;
  --wo-legend-status-muc: #a4e6bc;
  --wo-legend-slot-2015: #f4d97c;
  --wo-legend-slot-2300: #dbb3ea;
  --wo-legend-slot-1430: #9ed7a7;
  --wo-legend-slot-lastminute: #b7c9e3;
  --wo-legend-slot-series: #f2e995;
  --wo-legend-slot-nav: #a8dcb3;
  --wo-entry-green-soft: #74b58a;
  --wo-entry-green-strong: #5ca97a;
}

body.dark {
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --sidebar-bg: #08101f;
  --sidebar-text: #c9d2dd;
  --card-bg: #121a2a;
  --border: #1f2937;
  --hover: #1a2538;
  --row-hover: #243248;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.35);
  --focus-ring: 0 0 0 3px rgba(255, 188, 31, 0.3);
  --prelogin-bg-a: #08101f;
  --prelogin-bg-b: #16253a;
  --prelogin-blue-glow: rgba(36, 74, 115, 0.36);
  --prelogin-accent-glow: rgba(255, 188, 31, 0.28);
  --prelogin-orb-a: #cda559;
  --prelogin-orb-b: #1f3d61;
  --prelogin-shadow: rgba(0, 0, 0, 0.62);
  --prelogin-shadow-accent: rgba(255, 188, 31, 0.48);
  --wo-legend-status-ordered: #5a2f34;
  --wo-legend-status-scan: #4f4622;
  --wo-legend-status-maker: #243b63;
  --wo-legend-status-muc: #274b39;
  --wo-legend-slot-2015: #5c4c1f;
  --wo-legend-slot-2300: #4a3459;
  --wo-legend-slot-1430: #2b5134;
  --wo-legend-slot-lastminute: #2b3b54;
  --wo-legend-slot-series: #575024;
  --wo-legend-slot-nav: #2d4a35;
  --wo-entry-green-soft: #335b43;
  --wo-entry-green-strong: #2f6a4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: max-content;
  min-width: var(--sidebar-min-width);
  max-width: var(--sidebar-max-width);
  flex: 0 0 auto;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, #081427 100%);
  color: #fff;
  padding: 14px 10px 20px;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-md);
}

.sidebar-logo {
  display: block;
  margin-bottom: 20px;
}

.sidebar-logo img {
  width: 140px;
  max-width: 100%;
  height: auto;
  margin-bottom: 4px;
}

.leftnaviheadline {
  font-size: 12px;
  color: var(--accent);
  margin-top: 18px;
  margin-bottom: 3px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.leftnavi {
  padding: 0;
  margin: 0;
}

.leftnavi a {
  display: block;
  padding: 5px 6px;
  color: var(--sidebar-text);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.leftnavi a:hover {
  color: #fff;
  background: rgba(255, 188, 31, 0.14);
}

.content {
  flex: 1;
  padding: 24px 24px 24px 12px;
  min-width: 0;
}

.content-body {
  min-width: 0;
}

.prelogin-stage {
  position: relative;
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, var(--prelogin-blue-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, var(--prelogin-accent-glow) 0%, transparent 36%),
    linear-gradient(140deg, var(--prelogin-bg-a), var(--prelogin-bg-b));
  border: 1px solid var(--border);
}

.prelogin-stage::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: conic-gradient(
    from 120deg at 50% 50%,
    var(--prelogin-accent-glow),
    var(--prelogin-blue-glow),
    var(--prelogin-accent-glow),
    rgba(13, 31, 51, 0.12),
    var(--prelogin-accent-glow)
  );
  filter: blur(34px);
  animation: preloginSpinGlow 34s linear infinite;
  z-index: -2;
  pointer-events: none;
}

.prelogin-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.prelogin-orb.one {
  width: 320px;
  height: 320px;
  background: var(--prelogin-orb-a);
  top: 8%;
  left: 6%;
  animation: preloginDrift 16s ease-in-out infinite;
}

.prelogin-orb.two {
  width: 420px;
  height: 420px;
  background: var(--prelogin-orb-b);
  right: 4%;
  bottom: 6%;
  animation: preloginDrift 20s ease-in-out infinite reverse;
}

.prelogin-logo-wrap {
  width: min(96vw, 760px);
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
  transform-origin: center center;
  padding: clamp(12px, 3vw, 24px);
  position: relative;
  z-index: 2;
  animation: preloginFloat 8s ease-in-out infinite;
  transition: transform 240ms ease-out;
  transform-style: preserve-3d;
  touch-action: manipulation;
}

.prelogin-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--prelogin-accent-glow) 0%, rgba(31, 78, 114, 0.06) 62%, transparent 75%);
  filter: blur(20px);
  transform: translateZ(-30px) scale(0.9);
  z-index: -1;
  animation: preloginHaloPulse 3.8s ease-in-out infinite;
}

.prelogin-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 16% 10%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.12) 50%, transparent 80%);
  filter: blur(10px);
  opacity: 0.35;
  transform: translateX(-120%);
  animation: preloginSheen 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.prelogin-logo {
  width: min(92vw, 680px);
  max-width: 94%;
  max-height: min(74dvh, 700px);
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px var(--prelogin-shadow));
  animation: preloginWobble 5.8s ease-in-out infinite, preloginPulse 3.8s ease-in-out infinite;
}

@keyframes preloginFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}

@keyframes preloginWobble {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-1px) rotate(0.35deg) scale(1.003); }
  50% { transform: translateY(1px) rotate(-0.45deg) scale(1.006); }
  80% { transform: translateY(-1px) rotate(0.3deg) scale(1.003); }
}

@keyframes preloginPulse {
  0%, 100% { filter: drop-shadow(0 16px 34px var(--prelogin-shadow)); }
  50% { filter: drop-shadow(0 22px 46px var(--prelogin-shadow-accent)); }
}

@keyframes preloginHaloPulse {
  0%, 100% { opacity: 0.45; transform: translateZ(-30px) scale(0.92); }
  50% { opacity: 0.72; transform: translateZ(-30px) scale(1.03); }
}

@keyframes preloginDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -20px) scale(1.06); }
}

@keyframes preloginSpinGlow {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.04); }
}

@keyframes preloginSheen {
  0%, 65%, 100% { opacity: 0; transform: translateX(-120%); }
  72% { opacity: 0.32; }
  84% { opacity: 0.32; transform: translateX(120%); }
}

@media (max-width: 540px) {
  .prelogin-logo-wrap {
    width: min(98vw, 460px);
  }

  .prelogin-logo {
    width: min(96vw, 430px);
    max-height: min(66dvh, 520px);
    border-radius: 16px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .prelogin-stage::before {
    filter: blur(20px);
    animation-duration: 40s;
  }

  .prelogin-orb {
    filter: blur(22px);
    opacity: 0.38;
  }

  .prelogin-logo-wrap::before {
    animation-duration: 4.8s;
  }

  .prelogin-logo-wrap::after {
    animation-duration: 11s;
  }

  .prelogin-logo {
    animation-duration: 6s, 4.5s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prelogin-stage::before,
  .prelogin-orb,
  .prelogin-logo-wrap,
  .prelogin-logo-wrap::before,
  .prelogin-logo-wrap::after,
  .prelogin-logo {
    animation: none !important;
    transition: none !important;
  }
}

.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.program-preview {
  order: 2;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
  min-width: 0;
}

.program-preview-card {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  min-width: 0;
}

.program-preview-card.is-error {
  border-color: #d98e8e;
  background: #fff3f3;
}

body.dark .program-preview-card.is-error {
  background: rgba(175, 46, 46, 0.2);
  border-color: rgba(217, 142, 142, 0.5);
}

.program-preview-channel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--muted);
  line-height: 1.15;
}

.program-preview-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 1px;
  line-height: 1.15;
}

.program-preview-label {
  flex: 0 0 auto;
  font-size: 8px;
  color: var(--muted);
  width: 36px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.program-preview-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.15;
}

.program-preview-error {
  margin: 0;
  color: #b42323;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.header-user {
  order: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
  font-size: 12px;
}

.logout {
  color: var(--accent);
  font-weight: 700;
}

.header-actions {
  order: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: stretch;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.lang-toggle-btn {
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0 10px;
  min-width: 40px;
  height: 100%;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.lang-toggle-btn + .lang-toggle-btn {
  border-left: 1px solid var(--border);
}

.lang-toggle-btn:hover {
  background: rgba(255, 188, 31, 0.18);
}

.lang-toggle-btn.is-active {
  background: var(--accent);
  color: var(--sidebar-bg);
}

.header-search {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.header-search input[type="text"],
.header-search input[name="q"] {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  width: 110px;
  font-size: 11px;
  height: 28px;
}

.theme-toggle,
.header-search input[type="submit"] {
  background: var(--accent);
  color: var(--sidebar-bg);
  border: none;
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.1;
  height: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.theme-toggle:hover,
.header-search input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 880px) {
  .header-search input[name="q"] { width: 86px; }
  .theme-toggle,
  .header-search input[type="submit"] { padding: 4px 6px; font-size: 10px; }
  .lang-toggle-btn { min-width: 36px; padding: 0 8px; font-size: 10px; }
}

input,
textarea,
select,
button {
  font-size: 14px;
  color: var(--text);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  padding: 7px 10px;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.2;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

h4 {
  font-size: 14px;
}

.topheadline {
  font-size: 14px;
  color: var(--text);
}

table {
  width: 100%;
  background: var(--card-bg);
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

th {
  background: var(--accent);
  color: var(--sidebar-bg);
  text-align: left;
  padding: 10px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

body.show-admin_film_list .admin-film-list-table {
  width: 100% !important;
  table-layout: auto;
  font-size: 12px;
}

body.show-admin_film_list .admin-film-list-table th,
body.show-admin_film_list .admin-film-list-table td {
  padding: 7px 8px;
}

body.show-admin_film_list .admin-film-list-table th:nth-child(1),
body.show-admin_film_list .admin-film-list-table td:nth-child(1) {
  width: 1%;
  white-space: nowrap;
}

body.show-admin_film_list .admin-film-list-table th:nth-child(2),
body.show-admin_film_list .admin-film-list-table td:nth-child(2) {
  width: 1%;
  white-space: nowrap;
}

body.show-admin_film_list .admin-film-list-table th:nth-child(3),
body.show-admin_film_list .admin-film-list-table td:nth-child(3) {
  width: 24%;
}

body.show-admin_film_list .admin-film-list-table th:nth-child(4),
body.show-admin_film_list .admin-film-list-table td:nth-child(4) {
  width: 24%;
}

body.show-admin_film_list .admin-film-list-table th:nth-child(5),
body.show-admin_film_list .admin-film-list-table td:nth-child(5),
body.show-admin_film_list .admin-film-list-table th:nth-child(6),
body.show-admin_film_list .admin-film-list-table td:nth-child(6),
body.show-admin_film_list .admin-film-list-table th:nth-child(7),
body.show-admin_film_list .admin-film-list-table td:nth-child(7) {
  width: 11%;
}

body.show-admin_film_list .admin-film-list-table th:nth-child(8),
body.show-admin_film_list .admin-film-list-table td:nth-child(8) {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}

body.show-admin_film_list .admin-film-title,
body.show-admin_film_list .admin-film-dttitle {
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.show-admin_film_list .admin-filmnummer a {
  font-weight: 700;
}

body.show-admin_film_list .admin-film-options {
  text-align: center;
  white-space: nowrap;
}

body.show-admin_film_list .admin-film-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

body.show-admin_film_list .admin-film-actions a,
body.show-admin_film_list .admin-film-actions img {
  vertical-align: middle;
}

body.show-admin_film_list .admin-film-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.show-admin_film_list .admin-film-actions a img {
  display: block;
  max-width: 18px;
  max-height: 18px;
}

body.show-admin_film_list .admin-film-detail {
  font-size: 12px;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border);
}

table tbody tr:hover > td {
  background: var(--row-hover);
}

td.time {
  text-align: right;
  width: 64px;
  white-space: nowrap;
}

td.title {
  min-width: 220px;
}

.table,
.table-modern {
  width: 100%;
  background: var(--card-bg);
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

.table th,
.table td,
.table-modern th,
.table-modern td {
  padding: 10px;
}

.table a,
.table-modern a,
td a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.table a:hover,
.table-modern a:hover,
td a:hover {
  background: var(--accent);
  color: var(--sidebar-bg);
  border-color: var(--accent);
}

.table img,
.table-modern img,
td img {
  max-width: 160px;
  border-radius: 4px;
  height: auto;
}

.ticket-status {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ticket-status-open {
  color: #d61f1f;
  display: block;
  width: 56px;
  overflow: hidden;
  white-space: nowrap;
  animation: ticket-status-open-scroll 3.8s linear infinite;
}

@keyframes ticket-status-open-scroll {
  0% {
    text-indent: 56px;
  }
  100% {
    text-indent: -42px;
  }
}

.ticket-status-new {
  color: #d97706;
  animation: ticket-status-new-pulse 1.1s ease-in-out infinite;
}

@keyframes ticket-status-new-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket-status-open,
  .ticket-status-new {
    animation: none;
  }

  .ticket-status-open {
    text-indent: 0;
  }
}

.table a.ticket-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  text-decoration: none;
}

.table a.ticket-link:hover {
  background: transparent;
  color: var(--accent);
  border: 0;
  text-decoration: underline;
}

.TR1,
.TR2,
.TD1,
.TD2,
.TREDIT1,
.TREDIT2 {
  background-color: transparent;
  color: var(--text);
}

.CB8729 {
  background: transparent;
}

.seitanzaehler_rahmen {
  background: transparent;
}

.seitenzaehler,
.seitenzaehler_sel,
div.seitenzaehler:hover {
  font-size: 12px;
  color: var(--text);
  padding: 3px 8px;
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  border-radius: 6px;
  float: left;
  margin-right: 6px;
  box-shadow: var(--shadow-sm);
}

.seitenzaehler_sel {
  background-color: var(--accent);
  color: var(--sidebar-bg);
  border-color: var(--accent);
}

.table-pagination {
  margin: -10px 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  font-family: inherit;
}

.table-pagination .seitenzaehler,
.table-pagination .seitenzaehler_sel {
  float: none;
  margin-right: 0;
}

.table-pagination .seitenzaehler.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.table-pagination .pager-info {
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.table-pagination .pager-ellipsis {
  padding: 0 2px;
  color: var(--text-muted);
}

#ftp-table-container.is-loading {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.ftp-table {
  table-layout: fixed;
}

.ftp-table col.ftp-col-date {
  width: 11%;
}

.ftp-table col.ftp-col-message {
  width: 42%;
}

.ftp-table col.ftp-col-user {
  width: 7%;
}

.ftp-table col.ftp-col-source {
  width: 13%;
}

.ftp-table col.ftp-col-size {
  width: 6%;
}

.ftp-table col.ftp-col-first {
  width: 13%;
}

.ftp-table col.ftp-col-status {
  width: 8%;
}

.ftp-table td.ftp-col-user,
.ftp-table td.ftp-col-source,
.ftp-table td.ftp-col-size,
.ftp-table td.ftp-col-status {
  white-space: nowrap;
}

.dashboard-table th,
.dashboard-table td {
  font-size: 12px;
  padding: 7px 8px;
}

.ftp-table td.ftp-col-date,
.news-table .news-col-date,
.ticket-table .ticket-col-date {
  white-space: nowrap;
  font-size: 10px;
}

.ftp-table td.ftp-col-message {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-status {
  font-size: 12px;
  font-weight: 600;
}

.news-status-open {
  color: #c81414;
  font-weight: 700;
}

.news-status-close {
  color: var(--text-muted);
}

.news-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid #b27a00;
  color: #2b1d00;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
  vertical-align: middle;
  background: #ffbc1f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.news-help-icon:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

.news-help-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  width: 320px;
  max-width: min(90vw, 420px);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--card-bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  z-index: 20;
  pointer-events: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.news-help-icon:hover::after,
.news-help-icon:focus::after {
  opacity: 1;
  visibility: visible;
}

.runas,
.menu {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.runas li,
.menu li {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.25;
  transition: background-color 0.12s ease;
}

.runas-hour-anchor {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  height: 0;
  min-height: 0;
}

.runas li:nth-child(odd),
.menu li:nth-child(odd) {
  background-color: var(--hover);
}

.runas li:hover,
.menu li:hover {
  background: var(--hover);
}

.runas a {
  color: var(--text);
}

.runas a:hover {
  color: var(--accent);
}

.runas-result {
  margin-top: 10px;
}

.runas-result-meta {
  font-size: 11px;
  margin: 6px 0;
}

.runas-table {
  font-size: 11px;
}

.runas-table th,
.runas-table td {
  padding: 5px 7px !important;
  vertical-align: top;
}

.runas-table td:nth-child(1),
.runas-table td:nth-child(2) {
  white-space: nowrap;
}

.runas-table td:nth-child(3),
.runas-table td:nth-child(4),
.runas-table td:nth-child(5) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hid {
  display: none;
}

.container,
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-bar label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.filter-bar input[type="date"],
.filter-bar input[type="text"],
.filter-bar select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
}

.filter-bar button {
  background: var(--accent);
  color: var(--sidebar-bg);
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.runas-date-card {
  padding: 10px 12px;
}

.runas-date-form {
  margin-bottom: 0;
  align-items: center;
}

.runas-date-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.runas-date-field label {
  margin: 0;
  font-size: 12px;
}

.runas-date-field select {
  min-width: 190px;
  height: 34px;
  font-size: 12px;
}

.runas-date-field input[type="date"] {
  min-width: 190px;
  height: 34px;
  font-size: 12px;
  padding: 6px 8px;
}

.runas-channel-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.runas-channel-switch a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.runas-channel-switch a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--sidebar-bg);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}

.form-row input,
.form-row select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
}

.form-actions {
  margin-top: 12px;
}

.form-actions input[type="submit"] {
  background: var(--accent);
  color: var(--sidebar-bg);
  border: none;
  border-radius: 4px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 700;
}

.report-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.report-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-group label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.report-group input,
.report-group select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  min-width: 180px;
  height: 38px;
}

.report-row .form-row {
  margin: 0;
  gap: 8px;
}

.report-row .form-row input {
  height: 38px;
}

.report-row .form-actions input[type="submit"] {
  height: 38px;
}

/* Keep runas_report search UI compact like runas_hd date filter (visual only). */
body.show-runas_report .runas-report-card {
  padding: 10px 12px;
}

body.show-runas_report .runas-report-form .report-row {
  gap: 10px;
  align-items: center;
}

body.show-runas_report .runas-report-form .report-group {
  gap: 4px;
}

body.show-runas_report .runas-report-form .report-group label {
  font-size: 12px;
  margin: 0;
}

body.show-runas_report .runas-report-form .report-group input,
body.show-runas_report .runas-report-form .report-group select {
  min-width: 170px;
  height: 34px;
  font-size: 12px;
  padding: 6px 8px;
}

body.show-runas_report .runas-report-form .runas-sender-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 4px 0;
  overflow-x: auto;
  white-space: nowrap;
}

body.show-runas_report .runas-report-form .runas-sender-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  padding: 5px 10px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

body.show-runas_report .runas-report-form .runas-sender-option input[type="checkbox"] {
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
}

body.show-runas_report .runas-report-form .runas-sender-option:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

body.show-runas_report .runas-report-form .report-row .form-row {
  gap: 6px;
}

body.show-runas_report .runas-report-form .report-row .form-row input {
  height: 34px;
  font-size: 12px;
  padding: 6px 8px;
}

body.show-runas_report .runas-report-form .form-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

body.show-runas_report .runas-report-form .form-actions input[type="submit"] {
  background: var(--accent);
  color: var(--sidebar-bg);
  border: none;
  border-radius: 4px;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  padding: 6px 12px;
}

body.show-runas_report .runas-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #b27a00;
  color: #2b1d00;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
  vertical-align: middle;
  background: #ffbc1f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.show-runas_report .runas-help-icon:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

body.show-runas_report .runas-help-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  width: 380px;
  max-width: min(92vw, 500px);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--card-bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  z-index: 20;
  pointer-events: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

body.show-runas_report .runas-help-icon:hover::after,
body.show-runas_report .runas-help-icon:focus::after {
  opacity: 1;
  visibility: visible;
}

.runas-report-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.runas-report-head h1 {
  margin: 0;
}

.runas-report-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.runas-path-toggle-btn {
  height: 28px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.2;
}

.runas-report-export {
  margin: 0;
}

.runas-report-export input[type="submit"] {
  background: var(--accent);
  color: var(--sidebar-bg);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 5px 9px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  box-shadow: none;
}

.runas-report-export input[type="submit"]:hover {
  filter: brightness(0.95);
}

body.show-runas_report .content-body .table-modern {
  font-size: 10px;
  margin-bottom: 14px;
  table-layout: fixed;
}

body.show-runas_report .content-body .table-modern th,
body.show-runas_report .content-body .table-modern td {
  padding: 4px 6px;
  line-height: 1.15;
  vertical-align: top;
}

body.show-runas_report .content-body .table-modern th:nth-child(1),
body.show-runas_report .content-body .table-modern td:nth-child(1) {
  width: 140px;
  white-space: nowrap;
}

body.show-runas_report .content-body .table-modern th:nth-child(2),
body.show-runas_report .content-body .table-modern td:nth-child(2) {
  width: 72px;
  white-space: nowrap;
}

body.show-runas_report .content-body .table-modern th:nth-child(3),
body.show-runas_report .content-body .table-modern td:nth-child(3) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

img {
  max-width: 100%;
}

img.modern-icon,
input[type="image"].modern-icon {
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  image-rendering: -webkit-optimize-contrast;
}

table.caltab,
table.caltab1 {
  width: auto;
  border: 1px solid var(--border);
  background-color: var(--card-bg);
}

td.caltz,
td.calwt,
td.calht,
td.calhe,
td.calwe,
td.calat {
  color: var(--text);
  background-color: var(--card-bg);
}

td.calat a:link,
td.calat a:visited,
td.calht a:link,
td.calht a:visited,
td.calhe a:link,
td.calhe a:visited,
td.calwe a:link,
td.calwe a:visited {
  color: var(--text);
  background-color: transparent;
  text-decoration: none;
}

td.calat a:hover,
td.calht a:hover,
td.calhe a:hover,
td.calwe a:hover {
  color: var(--accent);
}

body.show-programm_planen_alt_sd .programmplan-alt-form,
body.show-programm_planen_alt_hd .programmplan-alt-form {
  display: block;
  width: calc(100% - 250px);
  max-width: calc(100% - 250px);
  margin-right: 250px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 6px;
}

body.show-programm_planen_alt_sd #over,
body.show-programm_planen_alt_hd #over {
  right: 8px;
  top: 140px !important;
  max-width: 220px;
  max-height: calc(100vh - 160px);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  z-index: 10;
}

body.show-programm_planen_alt_sd .programmplan-alt-table,
body.show-programm_planen_alt_hd .programmplan-alt-table {
  width: 90% !important;
  min-width: 980px;
  table-layout: fixed;
  font-size: 12px;
  border-collapse: separate;
  border-spacing: 0;
}

body.show-programm_planen_alt_sd .programmplan-alt-head th,
body.show-programm_planen_alt_hd .programmplan-alt-head th {
  background: var(--card-bg);
  color: var(--text);
}

body.show-programm_planen_alt_sd .programmplan-alt-title-row th,
body.show-programm_planen_alt_hd .programmplan-alt-title-row th {
  position: static;
  padding-top: 10px;
  padding-bottom: 10px;
}

body.show-programm_planen_alt_sd .programmplan-alt-table th,
body.show-programm_planen_alt_hd .programmplan-alt-table th,
body.show-programm_planen_alt_sd .programmplan-alt-table td,
body.show-programm_planen_alt_hd .programmplan-alt-table td {
  padding: 6px;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: normal;
}

body.show-programm_planen_alt_sd .programmplan-alt-colhead th,
body.show-programm_planen_alt_hd .programmplan-alt-colhead th {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: inset 0 -1px 0 var(--border);
}

body.show-programm_planen_alt_sd .programmplan-alt-table th,
body.show-programm_planen_alt_hd .programmplan-alt-table th {
  font-size: 12px;
  line-height: 1.2;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-id,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-id {
  width: 2%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-start,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-start {
  width: 8%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-dauer,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-dauer {
  width: 5%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-ende,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-ende {
  width: 5%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-flag,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-flag,
body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-art,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-art {
  width: 3%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-titel,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-titel {
  width: 12%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-kurz,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-kurz {
  width: 33%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-bild,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-bild {
  width: 13%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table .pp-col-optionen,
body.show-programm_planen_alt_hd .programmplan-alt-table .pp-col-optionen {
  width: 6%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table th:nth-child(-n+6),
body.show-programm_planen_alt_hd .programmplan-alt-table th:nth-child(-n+6),
body.show-programm_planen_alt_sd .programmplan-alt-table td:nth-child(-n+6),
body.show-programm_planen_alt_hd .programmplan-alt-table td:nth-child(-n+6) {
  white-space: nowrap;
}

body.show-programm_planen_alt_sd .programmplan-alt-table th:nth-child(7),
body.show-programm_planen_alt_hd .programmplan-alt-table th:nth-child(7),
body.show-programm_planen_alt_sd .programmplan-alt-table th:nth-child(8),
body.show-programm_planen_alt_hd .programmplan-alt-table th:nth-child(8),
body.show-programm_planen_alt_sd .programmplan-alt-table th:nth-child(9),
body.show-programm_planen_alt_hd .programmplan-alt-table th:nth-child(9) {
  white-space: normal;
}

body.show-programm_planen_alt_sd .programmplan-alt-table th:nth-child(10),
body.show-programm_planen_alt_hd .programmplan-alt-table th:nth-child(10),
body.show-programm_planen_alt_sd .programmplan-alt-table td:nth-child(10),
body.show-programm_planen_alt_hd .programmplan-alt-table td:nth-child(10) {
  padding-left: 4px;
  padding-right: 4px;
}

.pp-alt-title {
  font-weight: 700;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pp-alt-kurz .pp-alt-kurz-text {
  display: block;
  overflow: hidden;
  line-height: 1.3;
  max-height: calc(1.3em * 4);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pp-alt-kurz .pp-alt-kurz-text.is-expanded {
  max-height: none;
  overflow: visible;
}

.pp-alt-kurz .pp-alt-kurz-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.show-programm_planen_alt_sd .programmplan-alt-body tr:nth-child(odd),
body.show-programm_planen_alt_hd .programmplan-alt-body tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.015);
}

body.show-programm_planen_alt_sd .programmplan-alt-body tr:hover,
body.show-programm_planen_alt_hd .programmplan-alt-body tr:hover {
  background: rgba(0, 0, 0, 0.04);
}

.pp-alt-dauer {
  white-space: nowrap;
  line-height: 1.25;
}

.pp-alt-empty {
  text-align: center;
}

.pp-alt-image img {
  width: 120px !important;
  max-width: 100%;
  height: auto;
}

.pp-alt-image-hover {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  vertical-align: top;
  line-height: 0;
  cursor: zoom-in;
}

#pp-alt-floating-preview {
  display: none;
  position: fixed;
  z-index: 1200;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  overflow: hidden;
}

#pp-alt-floating-preview.is-visible {
  display: block;
}

#pp-alt-floating-preview img {
  width: 372px;
  max-width: 372px;
  height: 266px;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 4px;
  background: color-mix(in srgb, var(--card-bg) 82%, var(--border));
}

body.show-programm_planen_alt_sd .programmplan-alt-table td input[type="text"],
body.show-programm_planen_alt_hd .programmplan-alt-table td input[type="text"],
body.show-programm_planen_alt_sd .programmplan-alt-table td input[type="date"],
body.show-programm_planen_alt_hd .programmplan-alt-table td input[type="date"],
body.show-programm_planen_alt_sd .programmplan-alt-table td input[type="time"],
body.show-programm_planen_alt_hd .programmplan-alt-table td input[type="time"],
body.show-programm_planen_alt_sd .programmplan-alt-table td select,
body.show-programm_planen_alt_hd .programmplan-alt-table td select {
  width: 100%;
  max-width: 100%;
}

body.show-programm_planen_alt_sd .programmplan-alt-table td:nth-child(2) input[type="text"],
body.show-programm_planen_alt_hd .programmplan-alt-table td:nth-child(2) input[type="text"],
body.show-programm_planen_alt_sd .programmplan-alt-table td:nth-child(2) input[type="date"],
body.show-programm_planen_alt_hd .programmplan-alt-table td:nth-child(2) input[type="date"],
body.show-programm_planen_alt_sd .programmplan-alt-table td:nth-child(2) input[type="time"],
body.show-programm_planen_alt_hd .programmplan-alt-table td:nth-child(2) input[type="time"] {
  font-size: 12px;
  padding: 3px 5px;
  height: 24px;
}

.pp-alt-startzeit {
  white-space: normal !important;
}

.pp-alt-startzeit .pp-alt-start-date,
.pp-alt-startzeit .pp-alt-start-time {
  display: block;
  width: 100%;
  max-width: 122px;
  font-size: 11px;
  height: auto;
  line-height: 1.1;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.pp-alt-startzeit .pp-alt-start-time {
  margin-top: 4px;
}

.pp-alt-start-save {
  display: block;
  width: 100%;
  max-width: 122px;
  margin-top: 4px;
  padding: 3px 5px;
  cursor: pointer;
}

.pp-alt-filmnummer {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 3px 6px;
}

.pp-alt-filmnummer-label {
  display: block;
  flex: 1 1 100%;
}

.pp-alt-filmnummer button,
.pp-alt-filmnummer input[type="text"] {
  height: 20px;
  padding: 1px 5px;
  font-size: 11px;
  margin: 0;
}

.pp-alt-replace-input-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
}

.pp-alt-row-anchor {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pp-alt-image .pp-alt-filmnummer input[type="text"] {
  width: 78px !important;
  max-width: 78px;
}

.pp-alt-image .pp-alt-filmnummer .pp-alt-replace-input {
  width: 78px !important;
  max-width: 78px;
}

body.show-programm_planen_alt_sd .pp-alt-actions-cell,
body.show-programm_planen_alt_hd .pp-alt-actions-cell {
  text-align: center;
}

body.show-programm_planen_alt_sd .pp-alt-actions-grid,
body.show-programm_planen_alt_hd .pp-alt-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 22px);
  grid-auto-rows: 22px;
  gap: 4px;
  align-content: start;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  width: max-content;
  margin: 0 auto;
}

body.show-programm_planen_alt_sd .pp-alt-actions-grid br,
body.show-programm_planen_alt_hd .pp-alt-actions-grid br {
  display: none;
}

body.show-programm_planen_alt_sd .pp-alt-actions-grid a,
body.show-programm_planen_alt_hd .pp-alt-actions-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0 !important;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: none;
}

body.show-programm_planen_alt_sd .pp-alt-actions-grid a img,
body.show-programm_planen_alt_hd .pp-alt-actions-grid a img {
  display: block;
  max-width: 15px;
  max-height: 15px;
}

@media (max-width: 1700px) {
  body.show-programm_planen_alt_sd .programmplan-alt-table,
  body.show-programm_planen_alt_hd .programmplan-alt-table {
    min-width: 980px;
  }
}

@media (max-width: 1450px) {
  body.show-programm_planen_alt_sd .programmplan-alt-form,
  body.show-programm_planen_alt_hd .programmplan-alt-form {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  body.show-programm_planen_alt_sd .programmplan-alt-table,
  body.show-programm_planen_alt_hd .programmplan-alt-table {
    min-width: 920px;
    font-size: 12px;
  }

  body.show-programm_planen_alt_sd .programmplan-alt-table th,
  body.show-programm_planen_alt_hd .programmplan-alt-table th,
  body.show-programm_planen_alt_sd .programmplan-alt-table td,
  body.show-programm_planen_alt_hd .programmplan-alt-table td {
    padding: 6px;
  }

  .pp-alt-image img {
    width: 120px !important;
  }
}

.programmplan-alt-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.programmplan-alt-buttons input[type="button"] {
  background: var(--accent);
  border: none;
  color: var(--sidebar-bg);
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

body.show-wochenuebersicht_sd .weekly-overview-layout,
body.show-wochenuebersicht_hd .weekly-overview-layout {
  width: 100% !important;
  max-width: 1040px;
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0 !important;
  margin-left: 0;
  margin-right: auto;
}

body.show-wochenuebersicht_sd .weekly-overview-layout > tbody > tr > td,
body.show-wochenuebersicht_hd .weekly-overview-layout > tbody > tr > td {
  vertical-align: top;
}

body.show-wochenuebersicht_sd .weekly-overview-head,
body.show-wochenuebersicht_hd .weekly-overview-head {
  text-align: left !important;
  padding: 0 0 6px;
}

body.show-wochenuebersicht_sd .content-body > h1,
body.show-wochenuebersicht_hd .content-body > h1 {
  margin: 0 0 8px;
}

body.show-wochenuebersicht_sd .weekly-overview-title,
body.show-wochenuebersicht_hd .weekly-overview-title {
  margin: 0 0 1px;
  line-height: 1.2;
  font-size: 14px;
}

body.show-wochenuebersicht_sd .weekly-overview-controls,
body.show-wochenuebersicht_hd .weekly-overview-controls {
  font-size: 10px;
  line-height: 1.25;
}

body.show-wochenuebersicht_sd .weekly-overview-prefix,
body.show-wochenuebersicht_hd .weekly-overview-prefix {
  margin-right: 3px;
  color: var(--muted);
}

body.show-wochenuebersicht_sd .weekly-overview-layout > tbody > tr:first-child > td,
body.show-wochenuebersicht_hd .weekly-overview-layout > tbody > tr:first-child > td {
  padding-bottom: 4px;
}

body.show-wochenuebersicht_sd .weekly-overview-maincell,
body.show-wochenuebersicht_hd .weekly-overview-maincell {
  height: auto;
}

body.show-wochenuebersicht_sd .weekly-overview-legend,
body.show-wochenuebersicht_hd .weekly-overview-legend {
  width: 100% !important;
  border: 1px solid var(--border) !important;
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
}

body.show-wochenuebersicht_sd .weekly-overview-legend td,
body.show-wochenuebersicht_hd .weekly-overview-legend td {
  font-size: 11px;
  padding: 3px 5px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

body.show-wochenuebersicht_sd .weekly-overview-legend td:not(:last-child),
body.show-wochenuebersicht_hd .weekly-overview-legend td:not(:last-child) {
  border-right: 1px solid var(--border);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-status-ordered,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-status-ordered {
  background: var(--wo-legend-status-ordered);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-status-scan,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-status-scan {
  background: var(--wo-legend-status-scan);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-status-maker,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-status-maker {
  background: var(--wo-legend-status-maker);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-status-muc,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-status-muc {
  background: var(--wo-legend-status-muc);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-slot-2015,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-slot-2015 {
  background: var(--wo-legend-slot-2015);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-slot-2300,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-slot-2300 {
  background: var(--wo-legend-slot-2300);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-slot-1430,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-slot-1430 {
  background: var(--wo-legend-slot-1430);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-slot-lastminute,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-slot-lastminute {
  background: var(--wo-legend-slot-lastminute);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-slot-series,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-slot-series {
  background: var(--wo-legend-slot-series);
}

body.show-wochenuebersicht_sd .weekly-overview-legend .legend-slot-nav,
body.show-wochenuebersicht_hd .weekly-overview-legend .legend-slot-nav {
  background: var(--wo-legend-slot-nav);
}

body.show-film_suche .film-runs-toggle {
  display: inline-block;
  margin: 4px 0 6px;
  font-size: 12px;
  font-weight: 700;
}

body.show-film_suche .film-runs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  width: 100%;
  margin: 0 0 10px;
}

body.show-film_suche .film-run-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

body.show-film_suche .film-run-chip:hover {
  border-color: var(--accent);
  background: var(--row-hover);
}

body.show-film_suche .film-run-channel {
  flex: 0 0 auto;
  font-weight: 700;
  min-width: 22px;
}

body.show-film_suche .film-run-date {
  flex: 1 1 auto;
  min-width: 0;
}

body.show-wochenuebersicht_sd .weekly-timeline,
body.show-wochenuebersicht_hd .weekly-timeline {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
}

body.show-wochenuebersicht_sd .weekly-day-column,
body.show-wochenuebersicht_hd .weekly-day-column {
  min-width: 126px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: visible;
  background: var(--card-bg);
}

body.show-wochenuebersicht_sd .weekly-day-header,
body.show-wochenuebersicht_hd .weekly-day-header {
  background: var(--accent);
  color: var(--sidebar-bg);
  padding: 5px 6px !important;
  font-size: 11px;
  line-height: 1.2;
}

body.show-wochenuebersicht_sd .minutes,
body.show-wochenuebersicht_hd .minutes {
  border-color: var(--border);
  font-size: 9px;
  padding-left: 3px;
}

body.show-wochenuebersicht_sd .hours,
body.show-wochenuebersicht_hd .hours {
  border-color: var(--border);
  width: 34px;
  text-align: center;
  font-size: 10px;
}

body.show-wochenuebersicht_sd .div1,
body.show-wochenuebersicht_hd .div1,
body.show-wochenuebersicht_sd .puffer,
body.show-wochenuebersicht_hd .puffer {
  border-color: var(--border);
}

body.show-wochenuebersicht_sd .div1 a,
body.show-wochenuebersicht_hd .div1 a {
  display: block;
  padding: 1px 3px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  overflow: hidden;
  color: #111827;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.show-wochenuebersicht_sd .weekly-entry,
body.show-wochenuebersicht_hd .weekly-entry {
  position: relative;
  padding: 2px 3px;
  overflow: visible;
}

body.show-wochenuebersicht_sd .weekly-entry-title,
body.show-wochenuebersicht_hd .weekly-entry-title {
  min-width: 0;
}

body.show-wochenuebersicht_sd .div1[style*="background:#90EE90"],
body.show-wochenuebersicht_hd .div1[style*="background:#90EE90"],
body.show-wochenuebersicht_sd .puffer[style*="background:#90EE90"],
body.show-wochenuebersicht_hd .puffer[style*="background:#90EE90"] {
  background: var(--wo-entry-green-soft) !important;
}

body.show-wochenuebersicht_sd .div1[style*="background:#66FF99"],
body.show-wochenuebersicht_hd .div1[style*="background:#66FF99"],
body.show-wochenuebersicht_sd .puffer[style*="background:#66FF99"],
body.show-wochenuebersicht_hd .puffer[style*="background:#66FF99"] {
  background: var(--wo-entry-green-strong) !important;
}

body.dark.show-wochenuebersicht_sd .hours,
body.dark.show-wochenuebersicht_hd .hours,
body.dark.show-wochenuebersicht_sd .minutes,
body.dark.show-wochenuebersicht_hd .minutes {
  color: #0b1220 !important;
  font-weight: 700;
}

body.dark.show-wochenuebersicht_sd .div1 a,
body.dark.show-wochenuebersicht_hd .div1 a {
  color: #e5e7eb;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#FFD700"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#FFD700"] {
  background: #5f4f1a !important;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#EE82EE"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#EE82EE"] {
  background: #5b3d64 !important;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#228B22"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#228B22"] {
  background: #2f6134 !important;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#B0C4DE"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#B0C4DE"] {
  background: #33455e !important;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#FFFF00"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#FFFF00"] {
  background: #66611f !important;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#0066FF"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#0066FF"] {
  background: #294979 !important;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#FFFF99"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#FFFF99"] {
  background: #6a673d !important;
}

body.dark.show-wochenuebersicht_sd .div1[style*="background:#FF9999"],
body.dark.show-wochenuebersicht_hd .div1[style*="background:#FF9999"] {
  background: #6a4448 !important;
}

body.show-programm_planen_alt_sd .date-select-wrap,
body.show-programm_planen_alt_hd .date-select-wrap,
body.show-wochenuebersicht_sd .date-select-wrap,
body.show-wochenuebersicht_hd .date-select-wrap {
  display: inline-block;
  margin: 0 0 8px;
  text-align: left;
}

body.show-programm_planen_alt_sd .seitanzaehler_rahmen > tbody > tr > td,
body.show-programm_planen_alt_hd .seitanzaehler_rahmen > tbody > tr > td,
body.show-wochenuebersicht_sd .seitanzaehler_rahmen > tbody > tr > td,
body.show-wochenuebersicht_hd .seitanzaehler_rahmen > tbody > tr > td {
  padding: 6px 8px;
}

body.show-programm_planen_alt_sd .caltab-compact,
body.show-programm_planen_alt_hd .caltab-compact,
body.show-wochenuebersicht_sd .caltab-compact,
body.show-wochenuebersicht_hd .caltab-compact {
  width: auto;
  min-width: 235px;
  max-width: 250px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  font-size: 12px;
}

body.show-programm_planen_alt_sd .caltab-compact .caltab1,
body.show-programm_planen_alt_hd .caltab-compact .caltab1,
body.show-wochenuebersicht_sd .caltab-compact .caltab1,
body.show-wochenuebersicht_hd .caltab-compact .caltab1 {
  background: var(--card-bg);
}

body.show-programm_planen_alt_sd .caltab-compact td,
body.show-programm_planen_alt_hd .caltab-compact td,
body.show-wochenuebersicht_sd .caltab-compact td,
body.show-wochenuebersicht_hd .caltab-compact td {
  padding: 4px 6px;
  font-size: 11px;
  border-bottom: 0;
}

body.show-programm_planen_alt_sd .caltab-compact .caltz,
body.show-programm_planen_alt_hd .caltab-compact .caltz,
body.show-wochenuebersicht_sd .caltab-compact .caltz,
body.show-wochenuebersicht_hd .caltab-compact .caltz {
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}

body.show-programm_planen_alt_sd .caltab-compact .calwt,
body.show-programm_planen_alt_hd .caltab-compact .calwt,
body.show-wochenuebersicht_sd .caltab-compact .calwt,
body.show-wochenuebersicht_hd .caltab-compact .calwt {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text);
}

body.show-programm_planen_alt_sd .caltab-compact a,
body.show-programm_planen_alt_hd .caltab-compact a,
body.show-wochenuebersicht_sd .caltab-compact a,
body.show-wochenuebersicht_hd .caltab-compact a {
  display: inline-block;
  min-width: 20px;
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card-bg);
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

body.show-programm_planen_alt_sd .caltab-compact td.calht a,
body.show-programm_planen_alt_hd .caltab-compact td.calht a,
body.show-wochenuebersicht_sd .caltab-compact td.calht a,
body.show-wochenuebersicht_hd .caltab-compact td.calht a,
body.show-programm_planen_alt_sd .caltab-compact td.calhe a,
body.show-programm_planen_alt_hd .caltab-compact td.calhe a,
body.show-wochenuebersicht_sd .caltab-compact td.calhe a,
body.show-wochenuebersicht_hd .caltab-compact td.calhe a {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--sidebar-bg);
}

body.show-programm_planen_alt_sd .date-select-wrap > a,
body.show-programm_planen_alt_hd .date-select-wrap > a,
body.show-wochenuebersicht_sd .date-select-wrap > a,
body.show-wochenuebersicht_hd .date-select-wrap > a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 11px;
  font-weight: 700;
}

body.show-programm_planen_alt_sd .date-inline-card,
body.show-programm_planen_alt_hd .date-inline-card,
body.show-wochenuebersicht_sd .date-inline-card,
body.show-wochenuebersicht_hd .date-inline-card {
  display: inline-block;
  padding: 10px 12px;
  margin-bottom: 10px;
}

body.show-wochenuebersicht_sd .date-inline-card,
body.show-wochenuebersicht_hd .date-inline-card {
  margin-bottom: 0;
}

body.show-programm_planen_alt_sd .date-inline-form,
body.show-programm_planen_alt_hd .date-inline-form,
body.show-wochenuebersicht_sd .date-inline-form,
body.show-wochenuebersicht_hd .date-inline-form {
  margin-bottom: 0;
  gap: 8px;
  align-items: flex-end;
}

body.show-programm_planen_alt_sd .date-inline-form,
body.show-programm_planen_alt_hd .date-inline-form {
  flex-wrap: nowrap;
  align-items: center;
}

body.show-programm_planen_alt_sd .date-inline-form label,
body.show-programm_planen_alt_hd .date-inline-form label,
body.show-wochenuebersicht_sd .date-inline-form label,
body.show-wochenuebersicht_hd .date-inline-form label {
  font-size: 12px;
}

body.show-programm_planen_alt_sd .date-inline-field,
body.show-programm_planen_alt_hd .date-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.show-programm_planen_alt_sd .date-inline-field label,
body.show-programm_planen_alt_hd .date-inline-field label {
  margin: 0;
}

body.show-programm_planen_alt_sd .date-inline-nav,
body.show-programm_planen_alt_hd .date-inline-nav,
body.show-wochenuebersicht_sd .date-inline-nav,
body.show-wochenuebersicht_hd .date-inline-nav {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

body.show-programm_planen_alt_sd .date-inline-nav a,
body.show-programm_planen_alt_hd .date-inline-nav a,
body.show-wochenuebersicht_sd .date-inline-nav a,
body.show-wochenuebersicht_hd .date-inline-nav a {
  display: inline-block;
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

body.show-programm_planen_alt_sd .date-inline-form input[type="date"],
body.show-programm_planen_alt_hd .date-inline-form input[type="date"],
body.show-wochenuebersicht_sd .date-inline-form input[type="date"],
body.show-wochenuebersicht_hd .date-inline-form input[type="date"] {
  height: 34px;
  min-width: 160px;
  font-size: 12px;
  padding: 6px 8px;
}

body.show-programm_planen_alt_sd .date-inline-form button,
body.show-programm_planen_alt_hd .date-inline-form button,
body.show-wochenuebersicht_sd .date-inline-form button,
body.show-wochenuebersicht_hd .date-inline-form button {
  height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.date-switch-link {
  display: inline-block;
  height: 34px;
  line-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

body.show-presse .presse-table .presse-options-col {
  width: 140px;
}

body.show-presse .presse-table .presse-main {
  white-space: normal;
}

body.show-presse .presse-table .presse-meta {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

body.show-presse .presse-table .presse-title {
  font-weight: 700;
  margin-bottom: 6px;
}

body.show-presse .presse-table .presse-teaser {
  margin-bottom: 8px;
  line-height: 1.45;
}

body.show-presse .presse-table .presse-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  text-decoration: underline;
}

body.show-presse .presse-table .presse-toggle:hover {
  background: transparent;
  color: var(--accent);
  border: 0;
}

body.show-presse .presse-table .presse-content {
  margin-top: 8px;
}

body.show-presse .presse-table .presse-actions {
  white-space: nowrap;
}

body.show-presse .presse-table .presse-actions a,
body.show-presse .presse-table .presse-actions input[type="button"] {
  margin: 0 6px 6px 0;
}

body.show-presse .presse-info {
  font-weight: 700;
  color: var(--text);
}

body.show-presse .presse-edit-table {
  margin: 12px 0 6px;
}

body.show-presse .presse-edit-table th {
  width: 180px;
}

body.show-presse .presse-edit-table input[type="text"],
body.show-presse .presse-edit-table textarea {
  width: min(100%, 700px) !important;
}

body.show-presse .presse-edit-table textarea[name="teaser"] {
  min-height: 110px;
}

body.show-presse .presse-edit-table textarea[name="content"] {
  min-height: 230px;
}

body.show-presse .presse-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

body.show-admin_film_search .content-body table,
body.show-film_anlegen .content-body table,
body.show-film_suche .content-body table {
  font-size: 12px;
}

body.show-admin_film_search .seitanzaehler_rahmen {
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

body.show-admin_film_search .seitanzaehler_rahmen > tbody > tr:first-child > td {
  border-bottom: 0;
}

body.show-film_suche .film-pager {
  margin: 10px 0 14px;
  padding-top: 2px;
  font-size: 12px;
  line-height: 1.2;
}

body.show-film_suche .film-pager .seitenzaehler,
body.show-film_suche .film-pager .seitenzaehler_sel {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: none;
}

body.show-film_suche .film-pager .seitenzaehler a,
body.show-film_suche .film-pager .seitenzaehler_sel span {
  display: inline-block;
  line-height: 1.2;
  font-size: 12px;
}

body.show-film_suche .film-pager .seitenzaehler.is-disabled {
  opacity: 0.45;
}

body.show-film_suche .film-pager .pager-info {
  margin-left: 8px;
  font-size: 11px;
  line-height: 1.3;
}

body.show-admin_film_search .content-body th,
body.show-admin_film_search .content-body td,
body.show-film_anlegen .content-body th,
body.show-film_anlegen .content-body td,
body.show-film_suche .content-body th,
body.show-film_suche .content-body td {
  padding: 6px 7px;
  line-height: 1.2;
}

body.show-admin_film_search .content-body input[type="text"],
body.show-admin_film_search .content-body input[type="password"],
body.show-admin_film_search .content-body input[type="submit"],
body.show-admin_film_search .content-body input[type="reset"],
body.show-admin_film_search .content-body input[type="button"],
body.show-admin_film_search .content-body select,
body.show-admin_film_search .content-body textarea,
body.show-film_anlegen .content-body input[type="text"],
body.show-film_anlegen .content-body input[type="password"],
body.show-film_anlegen .content-body input[type="submit"],
body.show-film_anlegen .content-body input[type="reset"],
body.show-film_anlegen .content-body input[type="button"],
body.show-film_anlegen .content-body select,
body.show-film_anlegen .content-body textarea,
body.show-film_suche .content-body input[type="text"],
body.show-film_suche .content-body input[type="password"],
body.show-film_suche .content-body input[type="submit"],
body.show-film_suche .content-body input[type="reset"],
body.show-film_suche .content-body input[type="button"],
body.show-film_suche .content-body select,
body.show-film_suche .content-body textarea {
  font-size: 12px;
  padding: 4px 6px;
  line-height: 1.2;
}

body.show-admin_film_search .content-body textarea,
body.show-film_anlegen .content-body textarea,
body.show-film_suche .content-body textarea {
  min-height: 120px;
}

body.show-film_anlegen .content-body textarea[name="cast1"],
body.show-film_anlegen .content-body textarea[name="cast2"],
body.show-film_anlegen .content-body textarea[name="cast3"] {
  height: 28px !important;
  min-height: 28px !important;
  overflow-y: auto;
  resize: vertical;
}

body.show-admin_film_search .content-body textarea[name="cast1"],
body.show-admin_film_search .content-body textarea[name="cast2"],
body.show-admin_film_search .content-body textarea[name="cast3"] {
  height: 28px !important;
  min-height: 28px !important;
  overflow-y: auto;
  resize: vertical;
}

body[class*="show-key_"] .content-body .key-master-table,
body[class*="show-key_"] .content-body .key-inline-table {
  font-size: 12px;
}

body[class*="show-key_"] .content-body .key-master-table th,
body[class*="show-key_"] .content-body .key-master-table td,
body[class*="show-key_"] .content-body .key-inline-table th,
body[class*="show-key_"] .content-body .key-inline-table td {
  padding: 6px 7px;
  line-height: 1.2;
}

body[class*="show-key_"] .content-body .key-master-options {
  white-space: nowrap;
  text-align: center;
}

body[class*="show-key_"] .content-body .key-master-options a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[class*="show-key_"] .content-body .key-master-options a img {
  max-width: 16px;
  max-height: 16px;
}

body[class*="show-key_"] .content-body .key-master-table tr:first-child > th > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 1;
}

body[class*="show-key_"] .content-body .key-master-table tr:first-child > th > a:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[class*="show-key_"] .content-body .key-master-table tr:first-child > th > a img {
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[class*="show-key_"] .content-body input[type="text"],
body[class*="show-key_"] .content-body input[type="password"],
body[class*="show-key_"] .content-body input[type="submit"],
body[class*="show-key_"] .content-body input[type="reset"],
body[class*="show-key_"] .content-body input[type="button"],
body[class*="show-key_"] .content-body select,
body[class*="show-key_"] .content-body textarea {
  font-size: 12px;
  padding: 4px 6px;
  line-height: 1.2;
}

body.show-admin_user_list .content-body table,
body.show-film_felder_rechte .content-body table,
body.show-admin_group_list .content-body table,
body.show-admin_group_users .content-body table {
  font-size: 12px;
}

body.show-admin_user_list .content-body th,
body.show-admin_user_list .content-body td,
body.show-film_felder_rechte .content-body th,
body.show-film_felder_rechte .content-body td,
body.show-admin_group_list .content-body th,
body.show-admin_group_list .content-body td,
body.show-admin_group_users .content-body th,
body.show-admin_group_users .content-body td {
  padding: 6px 7px;
  line-height: 1.2;
}

body.show-admin_user_list .content-body table tr:first-child > th > a,
body.show-admin_group_list .content-body table tr:first-child > th > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.show-admin_user_list .content-body table tr:first-child > th > a:hover,
body.show-admin_group_list .content-body table tr:first-child > th > a:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.show-admin_user_list .content-body table tr:first-child > th > a img,
body.show-admin_group_list .content-body table tr:first-child > th > a img {
  display: block;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}

body.show-admin_user_list .content-body input[type="text"],
body.show-admin_user_list .content-body input[type="password"],
body.show-admin_user_list .content-body input[type="submit"],
body.show-admin_user_list .content-body input[type="reset"],
body.show-admin_user_list .content-body input[type="button"],
body.show-admin_user_list .content-body select,
body.show-admin_user_list .content-body textarea,
body.show-film_felder_rechte .content-body input[type="text"],
body.show-film_felder_rechte .content-body input[type="password"],
body.show-film_felder_rechte .content-body input[type="submit"],
body.show-film_felder_rechte .content-body input[type="reset"],
body.show-film_felder_rechte .content-body input[type="button"],
body.show-film_felder_rechte .content-body select,
body.show-film_felder_rechte .content-body textarea,
body.show-admin_group_list .content-body input[type="text"],
body.show-admin_group_list .content-body input[type="password"],
body.show-admin_group_list .content-body input[type="submit"],
body.show-admin_group_list .content-body input[type="reset"],
body.show-admin_group_list .content-body input[type="button"],
body.show-admin_group_list .content-body select,
body.show-admin_group_list .content-body textarea,
body.show-admin_group_users .content-body input[type="text"],
body.show-admin_group_users .content-body input[type="password"],
body.show-admin_group_users .content-body input[type="submit"],
body.show-admin_group_users .content-body input[type="reset"],
body.show-admin_group_users .content-body input[type="button"],
body.show-admin_group_users .content-body select,
body.show-admin_group_users .content-body textarea {
  font-size: 12px;
  padding: 4px 6px;
  line-height: 1.2;
}

body.show-news_user_list .content-body table,
body.show-profil_password .content-body table {
  font-size: 12px;
}

body.show-news_user_list .content-body th,
body.show-news_user_list .content-body td,
body.show-profil_password .content-body th,
body.show-profil_password .content-body td {
  padding: 6px 7px;
  line-height: 1.2;
}

body.show-news_user_list .content-body input[type="text"],
body.show-news_user_list .content-body input[type="password"],
body.show-news_user_list .content-body input[type="submit"],
body.show-news_user_list .content-body input[type="reset"],
body.show-news_user_list .content-body input[type="button"],
body.show-news_user_list .content-body select,
body.show-news_user_list .content-body textarea,
body.show-profil_password .content-body input[type="text"],
body.show-profil_password .content-body input[type="password"],
body.show-profil_password .content-body input[type="submit"],
body.show-profil_password .content-body input[type="reset"],
body.show-profil_password .content-body input[type="button"],
body.show-profil_password .content-body select,
body.show-profil_password .content-body textarea {
  font-size: 12px;
  padding: 4px 6px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    max-height: none;
  }

  .content {
    padding: 16px 12px 24px;
    overflow-x: auto;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions,
  .header-search {
    width: 100%;
  }

  .header-search input[type="text"],
  .header-search input[name="q"],
  .header-search input[type="submit"],
  .theme-toggle,
  .lang-toggle {
    width: 100%;
  }

  .lang-toggle-btn {
    flex: 1 1 50%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  body.show-programm_planen_alt_sd .date-inline-form,
  body.show-programm_planen_alt_hd .date-inline-form {
    flex-wrap: wrap;
  }

  .filter-bar > div {
    width: 100%;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-bar button,
  .report-group input,
  .report-group select,
  .report-row .form-actions {
    width: 100%;
  }

  body.show-programm_planen_alt_sd #over,
  body.show-programm_planen_alt_hd #over {
    display: none;
  }

  body.show-programm_planen_alt_sd .programmplan-alt-table,
  body.show-programm_planen_alt_hd .programmplan-alt-table,
  body.show-wochenuebersicht_sd .weekly-overview-layout,
  body.show-wochenuebersicht_hd .weekly-overview-layout {
    min-width: 980px;
  }

  table,
  .table,
  .table-modern {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    min-width: 720px;
  }
}

body.show-ivod .vod-browser {
  max-width: 100%;
}

body.show-ivod .vod-browser-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--panel), var(--surface));
  line-height: 1.35;
}

body.show-ivod .vod-filter-form {
  margin: 0 0 8px;
}

body.show-ivod .vod-filter-wrap {
  display: inline-block;
  background: linear-gradient(180deg, var(--panel), var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 10px 12px;
}

body.show-ivod .vod-filter-table td {
  padding: 4px 6px;
  vertical-align: middle;
}

body.show-ivod .vod-filter-table tr:first-child td,
body.show-ivod .vod-filter-table tr:nth-child(3) td {
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
}

body.show-ivod .vod-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin: 8px 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

body.show-ivod .vod-pagination-label {
  font-weight: 600;
  color: var(--muted);
  margin-right: 2px;
}

body.show-ivod .vod-pagination .seitenzaehler,
body.show-ivod .vod-pagination .seitenzaehler_sel {
  float: none;
  margin: 0;
  min-width: 28px;
  height: 28px;
  line-height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-align: center;
  box-sizing: border-box;
}

body.show-ivod .vod-pagination .seitenzaehler {
  background: var(--surface);
}

body.show-ivod .vod-pagination .seitenzaehler:hover {
  background: var(--panel);
}

body.show-ivod .vod-pagination .seitenzaehler_sel {
  font-weight: 700;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

body.show-ivod .vod-pagination .seitenzaehler a,
body.show-ivod .vod-pagination .seitenzaehler_sel a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0 9px;
}

body.show-ivod .vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  width: 100%;
}

body.show-ivod .vod-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 180px;
  max-width: 210px;
  min-height: 310px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

body.show-ivod .vod-card-image {
  display: block;
  width: 154px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

body.show-ivod .vod-card-title {
  margin: 10px 2px 0;
  line-height: 1.3;
  word-break: break-word;
}

body.show-film_suchen .film-suchen-card {
  padding: 14px;
}

body.show-film_suchen .film-suchen-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

body.show-film_suchen .film-suchen-sub {
  color: var(--text-muted);
  font-size: 12px;
}

body.show-film_suchen .film-suchen-form {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(110px, 1fr)) repeat(2, 90px) 130px auto auto;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

body.show-film_suchen .film-suchen-form input[type="text"],
body.show-film_suchen .film-suchen-form select {
  width: 100%;
}

body.show-film_suchen .film-suchen-form .film-suchen-reset {
  text-align: center;
  font-size: 12px;
}

body.show-film_suchen .film-suchen-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

body.show-film_suchen .film-suchen-table {
  margin: 0;
  min-width: 980px;
  box-shadow: none;
  border-radius: 0;
}

body.show-film_suchen .film-suchen-table th,
body.show-film_suchen .film-suchen-table td {
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.25;
}

body.show-film_suchen .film-suchen-table td:nth-child(7),
body.show-film_suchen .film-suchen-table td:nth-child(8) {
  text-align: center;
}

body.show-film_suchen .film-suchen-table .film-suchen-drive-size-head,
body.show-film_suchen .film-suchen-table .film-suchen-drive-size {
  text-align: right;
  white-space: nowrap;
  width: 96px;
}

body.show-film_suchen .film-suchen-table .film-suchen-drive-sort-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

body.show-film_suchen .film-suchen-table .film-suchen-drive-sort-link:hover {
  text-decoration: underline;
}

body.show-film_suchen .film-suchen-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 18px 8px;
}

body.show-film_suchen .film-suchen-pager {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

body.show-film_suchen .film-suchen-pager .seitenzaehler,
body.show-film_suchen .film-suchen-pager .seitenzaehler_sel {
  float: none;
  margin-right: 0;
}

body.show-film_suchen .film-suchen-pager .seitenzaehler {
  display: inline-block;
}

body.show-film_suchen .film-suchen-pager .seitenzaehler.is-disabled {
  opacity: 0.5;
}

body.show-film_suchen .film-suchen-pager .pager-info {
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 1200px) {
  body.show-film_suchen .film-suchen-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

body.show-matomo_analytics .matomo-filter-row {
  gap: 10px;
  align-items: flex-end;
}

body.show-matomo_analytics .matomo-period-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

body.show-matomo_analytics .matomo-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
}

body.show-matomo_analytics .matomo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

body.show-matomo_analytics .matomo-action-btn:hover {
  background: var(--accent);
  color: var(--sidebar-bg);
  border-color: var(--accent);
}

body.show-matomo_analytics .matomo-export-link-group {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

body.show-matomo_analytics .matomo-custom-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

body.show-matomo_analytics #matomo-from.is-disabled,
body.show-matomo_analytics #matomo-to.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.show-matomo_analytics .matomo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

body.show-matomo_analytics .matomo-visual-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

body.show-matomo_analytics .matomo-kpi-card {
  margin-bottom: 0;
  padding: 12px 14px;
}

body.show-matomo_analytics .matomo-kpi-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

body.show-matomo_analytics .matomo-kpi-value {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

body.show-matomo_analytics .matomo-table {
  font-size: 12px;
}

body.show-matomo_analytics .matomo-chart-card {
  margin-bottom: 0;
}

body.show-matomo_analytics .matomo-chart-card h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

body.show-matomo_analytics .matomo-linechart {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.01), rgba(15, 23, 42, 0.03));
  border: 1px solid var(--border);
  border-radius: 8px;
}

body.show-matomo_analytics .matomo-linechart-wrap {
  position: relative;
}

body.show-matomo_analytics .matomo-linechart .grid-axis {
  stroke: #8390a3;
  stroke-width: 1;
  opacity: 0.5;
}

body.show-matomo_analytics .matomo-linechart .grid-line {
  stroke: #8390a3;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.25;
}

body.show-matomo_analytics .matomo-linechart .x-label,
body.show-matomo_analytics .matomo-linechart .y-label {
  fill: var(--muted);
  font-size: 11px;
}

body.show-matomo_analytics .matomo-linechart .line-hotspot {
  fill: transparent;
  cursor: crosshair;
}

body.show-matomo_analytics .matomo-linechart .hover-line {
  stroke: #2f77c7;
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  opacity: 0.8;
}

body.show-matomo_analytics .matomo-linechart .hover-dot {
  fill: #2f77c7;
  stroke: #fff;
  stroke-width: 2;
}

body.show-matomo_analytics .matomo-linechart-tooltip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  padding: 5px 8px;
  white-space: nowrap;
  transform: translateY(-100%);
}

body.show-matomo_analytics .matomo-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid #b27a00;
  color: #2b1d00;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
  vertical-align: middle;
  background: #ffbc1f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.show-matomo_analytics .matomo-help-icon:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

body.show-matomo_analytics .matomo-help-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  width: 320px;
  max-width: min(90vw, 420px);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--card-bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  z-index: 20;
  pointer-events: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

body.show-matomo_analytics .matomo-help-icon:hover::after,
body.show-matomo_analytics .matomo-help-icon:focus::after {
  opacity: 1;
  visibility: visible;
}

body.show-matomo_analytics .matomo-url {
  max-width: 520px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.show-matomo_analytics .matomo-list-row {
  margin-bottom: 10px;
}

body.show-matomo_analytics .matomo-returning-card h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

body.show-matomo_analytics .matomo-returning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

body.show-matomo_analytics .matomo-returning-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(13, 31, 51, 0.02);
}

body.show-matomo_analytics .matomo-returning-label {
  color: var(--muted);
  font-size: 11px;
}

body.show-matomo_analytics .matomo-returning-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 4px 0;
}

body.show-matomo_analytics .matomo-returning-trend {
  color: var(--muted);
  font-size: 11px;
}

body.show-matomo_analytics .matomo-returning-stack {
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(13, 31, 51, 0.08);
  display: flex;
}

body.show-matomo_analytics .matomo-returning-new {
  background: linear-gradient(90deg, #7eb4ef, #4f8fd1);
}

body.show-matomo_analytics .matomo-returning-returning {
  background: linear-gradient(90deg, #6ac68a, #3ea86a);
}

body.show-matomo_analytics .matomo-returning-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

body.show-matomo_analytics .matomo-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}

body.show-matomo_analytics .matomo-empty {
  color: var(--muted);
  font-size: 12px;
}

body.show-matomo_analytics .matomo-pages-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

body.show-matomo_analytics .matomo-pages-pageinfo {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

body.show-matomo_analytics .matomo-pages-number {
  min-width: 34px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

body.show-matomo_analytics .matomo-pages-number.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--sidebar-bg);
  font-size: 12px;
  font-weight: 700;
}

body.show-matomo_analytics .matomo-pages-ellipsis {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0 2px;
}

body.show-matomo_analytics .matomo-table-block.is-loading,
body.show-matomo_analytics #matomo-block-device.is-loading {
  opacity: 0.55;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

body.show-matomo_analytics .matomo-bar {
  display: block;
  width: 100%;
  min-width: 120px;
  height: 8px;
  border-radius: 99px;
  background: rgba(13, 31, 51, 0.09);
  overflow: hidden;
}

body.show-matomo_analytics .matomo-bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5f95d7, #2f77c7);
}

body.show-matomo_analytics .matomo-error h2 {
  margin-top: 0;
}

body.show-matomo_analytics .matomo-help,
body.show-matomo_analytics .matomo-footnote {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 980px) {
  body.show-matomo_analytics .matomo-visual-grid {
    grid-template-columns: 1fr;
  }
  body.show-matomo_analytics .matomo-returning-grid {
    grid-template-columns: 1fr;
  }
}
