/* ===== Variables ===== */
:root {
  --sidebar-bg: #0f172a;
  --sidebar-width: 240px;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #f1f5f9;
  --sidebar-active-bg: rgba(59,130,246,.18);
  --sidebar-active-border: #3b82f6;
  --topbar-h: 56px;
  --content-bg: #f1f5f9;
  --card-bg: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 24px -8px rgba(0,0,0,.16), 0 4px 8px -2px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body.its-app { overflow-x: hidden; max-width: 100%; }
body.its-app {
  margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--content-bg); color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
}

/* ===== Sidebar ===== */
.its-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 100; transition: transform .25s ease;
  overflow-y: auto;
  padding-top: env(safe-area-inset-top);
}
.its-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.its-brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; flex-shrink: 0;
}
.its-brand-text { color: #f1f5f9; font-weight: 700; font-size: 15px; }

.its-sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.its-nav-section { color: #475569; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 16px 8px 4px; }
.its-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px; color: var(--sidebar-text);
  text-decoration: none; font-size: 13.5px; transition: all .15s;
  position: relative;
}
.its-nav-item:hover { background: rgba(255,255,255,.06); color: var(--sidebar-text-active); }
.its-nav-item.active {
  background: var(--sidebar-active-bg); color: var(--sidebar-text-active);
  border-left: 3px solid var(--sidebar-active-border);
  padding-left: 9px;
}
.its-nav-item i { font-size: 16px; flex-shrink: 0; width: 18px; text-align: center; }
.its-nav-badge {
  margin-left: auto; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
}

.its-sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.06);
}
.its-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.its-user-info { flex: 1; min-width: 0; }
.its-user-name { color: #f1f5f9; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.its-user-role { color: #475569; font-size: 11px; }
.its-logout-btn { color: #475569; font-size: 16px; text-decoration: none; flex-shrink: 0; padding: 4px; transition: color .15s; }
.its-logout-btn:hover { color: #ef4444; }

/* ===== Main ===== */
.its-main { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }

.its-topbar {
  height: calc(var(--topbar-h) + env(safe-area-inset-top)); background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: env(safe-area-inset-top) 24px 0; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.its-menu-toggle { display: none; border: none; background: none; font-size: 22px; color: var(--text-muted); cursor: pointer; padding: 4px 8px; }
.its-page-title { margin: 0; font-size: 16px; font-weight: 700; flex: 1; color: var(--text-main); }
.its-topbar-right { display: flex; align-items: center; gap: 8px; }
.its-notif-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 18px; padding: 6px 8px;
  border-radius: var(--radius); display: flex; align-items: center;
  transition: background 0.15s, color 0.15s;
}
.its-notif-btn:hover { background: var(--hover-bg,#f1f5f9); color: var(--text-main); }
.its-notif-btn.its-notif-shake { animation: its-notif-shake .6s ease; }
@keyframes its-notif-shake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-16deg); }
  30% { transform: rotate(13deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(7deg); }
  75% { transform: rotate(-4deg); }
  90% { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .its-notif-btn.its-notif-shake { animation: none; }
}
.its-notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  align-items: center; justify-content: center; padding: 0 3px; line-height: 1;
}
.its-notif-wrap { position: relative; }
.its-notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 420px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 100; display: flex; flex-direction: column; overflow: hidden;
}
.its-notif-panel-header { padding: 12px 16px 8px; font-weight: 700; font-size: 13px; color: var(--text-main); }
.its-notif-filters { display: flex; gap: 6px; padding: 0 16px 10px; border-bottom: 1px solid var(--border); }
.its-notif-filter {
  border: 1px solid var(--border); background: none; color: var(--text-muted);
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.its-notif-filter:hover { background: var(--hover-bg,#f1f5f9); color: var(--text-main); }
.its-notif-filter.is-active { background: var(--accent,#2563eb); border-color: var(--accent,#2563eb); color: #fff; }
.its-notif-list { overflow-y: auto; max-height: 340px; }
.its-notif-item {
  display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; align-items: flex-start;
}
.its-notif-item:last-child { border-bottom: none; }
.its-notif-item:hover { background: var(--hover-bg,#f1f5f9); }
.its-notif-item-icon {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; flex-shrink: 0; margin-top: 1px;
}
.its-notif-item-icon--new_ticket      { background: #dbeafe; color: #2563eb; }
.its-notif-item-icon--mention         { background: #f3e8ff; color: #7c3aed; }
.its-notif-item-icon--customer_reply  { background: #d1fae5; color: #059669; }
.its-notif-item-icon--staff_note      { background: #fef3c7; color: #d97706; }
.its-notif-item-icon--ticket_assigned { background: #fee2e2; color: #dc2626; }
.its-notif-item-body { flex: 1; min-width: 0; }
.its-notif-item-title { font-size: 12.5px; font-weight: 600; color: var(--text-main); }
.its-notif-item-sub {
  font-size: 12px; color: var(--text-muted); display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.its-notif-item-time { font-size: 11px; color: var(--text-muted); }
.its-notif-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* @-Erwähnungs-Autocomplete (interne Notiz) */
.its-mention-dropdown {
  position: absolute; z-index: 2000; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; display: none;
}
.its-mention-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; font-size: 12.5px; color: var(--text-main); }
.its-mention-item.is-active, .its-mention-item:hover { background: var(--hover-bg,#f1f5f9); }
.its-mention-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary,#2563eb); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.its-mention-username { color: var(--text-muted); font-size: 11px; }
.its-mention-chips { display: none; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.its-mention-chip {
  display: inline-flex; align-items: center; gap: 4px; background: #eff6ff; color: #2563eb;
  border: 1px solid #bfdbfe; border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 12px; font-weight: 600;
}
.its-content { padding: 24px; flex: 1; }

/* ===== Cards ===== */
.its-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.its-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.its-card-title { font-size: 15px; font-weight: 700; margin: 0; }
.its-card-body { padding: 20px; }

/* ===== Stats Grid ===== */
.its-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.its-stat-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; position: relative; overflow: visible;
}
.its-stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.its-stat-card--open .its-stat-icon    { background: #fef3c7; color: #d97706; }
.its-stat-card--progress .its-stat-icon{ background: #dbeafe; color: #2563eb; }
.its-stat-card--closed .its-stat-icon  { background: #d1fae5; color: #059669; }
.its-stat-card--unassigned .its-stat-icon{ background: #f3e8ff; color: #7c3aed; }
.its-stat-card--waiting .its-stat-icon { background: #fce7f3; color: #9d174d; }
.its-stat-value { font-size: 26px; font-weight: 800; line-height: 1; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.its-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* "In Bearbeitung" Alle/Eigene-Split — bleibt einreihig wie die anderen Kacheln,
   damit alle 4 Stat-Kacheln exakt auf gleicher Höhe bleiben. */
.its-stat-split { display: flex; align-items: center; flex: 1; gap: 0; }
.its-stat-split-half { flex: 1; text-align: center; border-radius: 8px; padding: 2px 4px; transition: background .15s; }
.its-stat-split-half:hover { background: rgba(37,99,235,.06); }
.its-stat-split-half.active { background: rgba(37,99,235,.1); }
.its-stat-split-half .its-stat-value { justify-content: center; }
.its-stat-split-divider { width: 1px; align-self: stretch; background: var(--border); margin: 0 6px; }

/* Warnhinweis: mind. ein offenes Ticket seit über 2 Werktagen unbeantwortet (Sa/So zählen nicht) */
.its-stat-card--overdue { border-color: #ef4444; box-shadow: 0 0 0 1px rgba(239,68,68,.25), var(--shadow); }
.its-overdue-flag {
  color: #ef4444; font-size: 16px;
  animation: its-overdue-pulse 1.8s ease-in-out infinite;
}
@keyframes its-overdue-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .its-overdue-flag { animation: none; }
}
.its-overdue-mascot {
  position: absolute; top: -14px; right: -10px; width: 46px; height: 46px;
  border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.25); border: 2px solid #fff;
  animation: its-overdue-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .its-overdue-mascot { animation: none; }
}
.its-stat-card[data-filter-status] { cursor: pointer; transition: box-shadow .15s, transform .12s, border-color .15s; user-select: none; }
.its-stat-card[data-filter-status]:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.its-stat-card[data-filter-status].active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,.18); }

/* ===== Toolbar ===== */
.its-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.its-toolbar-left { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.its-toolbar-right { display: flex; gap: 8px; }
.its-search { border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; font-size: 13px; min-width: 200px; flex: 1; outline: none; transition: border-color .15s; }
.its-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.its-select { border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; font-size: 13px; background: var(--card-bg); outline: none; cursor: pointer; }
.its-select:focus { border-color: var(--primary); }

/* ===== Table ===== */
.its-table-wrap { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.its-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.its-table thead th { background: #f8fafc; padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.its-table tbody td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.its-table tbody tr:last-child td { border-bottom: none; }
.its-table tbody tr:hover td { background: #f8fafc; }
.its-ticket-person strong { display: block; font-size: 13.5px; color: var(--text-main); }
.its-ticket-person span { font-size: 12px; color: var(--text-muted); }
.its-ticket-subject a { color: var(--text-main); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; word-break: break-word; }
.its-ticket-subject a:hover { color: var(--primary); }
.its-date-cell { font-size: 12px; color: var(--text-muted); }
.its-date-cell small { display: block; font-size: 11px; }

/* ===== Badges ===== */
.its-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-open     { background: #fef3c7; color: #92400e; }
.badge-progress { background: #dbeafe; color: #1e40af; }
.badge-waiting  { background: #fce7f3; color: #9d174d; }
.badge-closed   { background: #d1fae5; color: #065f46; }
.badge-low      { background: #f1f5f9; color: #475569; }
.badge-normal   { background: #dbeafe; color: #1e40af; }
.badge-high     { background: #fee2e2; color: #991b1b; }
.badge-urgent   { background: #fef3c7; color: #92400e; }
.badge-attachments { background: #f3e8ff; color: #6b21a8; gap: 3px; }

/* ===== Assignee ===== */
.its-assignee { display: flex; align-items: center; gap: 8px; }
.its-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.its-avatar--empty { background: #e2e8f0; color: #94a3b8; }
.its-assignee-name { font-size: 12.5px; color: var(--text-muted); }

/* ===== Row Actions ===== */
.its-row-actions { display: flex; gap: 6px; }
.its-action-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; background: #f1f5f9; color: var(--text-main); border: 1px solid var(--border); transition: all .15s; white-space: nowrap; }
.its-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.its-action-btn--danger:hover { background: #ef4444; border-color: #ef4444; color: #fff; }

/* ===== Board ===== */
.its-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.its-board-col { background: #f8fafc; border-radius: var(--radius); padding: 12px; min-height: 300px; border: 1px solid var(--border); }
.its-board-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.its-board-col-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.its-board-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.col-open .its-board-dot    { background: #f59e0b; }
.col-progress .its-board-dot{ background: #3b82f6; }
.col-waiting-customer .its-board-dot { background: #db2777; }
.col-closed .its-board-dot  { background: #10b981; }
.its-count-pill { background: var(--border); color: var(--text-muted); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.its-ticket-card { background: var(--card-bg); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); border: 1px solid var(--border); cursor: pointer; transition: box-shadow .15s; }
.its-ticket-card:hover { box-shadow: var(--shadow-md); }
.its-ticket-card h4 { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--text-main); }
.its-ticket-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* ===== Ticket Detail ===== */
.its-ticket-header { background: var(--card-bg); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.its-ticket-header h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; overflow-wrap: anywhere; word-break: break-word; }
.its-ticket-meta-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); }
.its-ticket-meta-row span { display: flex; align-items: center; gap: 5px; }

.its-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.its-conversation { display: flex; flex-direction: column; gap: 12px; }
.its-message-bubble {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.its-message-bubble.customer { border-left: 3px solid #10b981; }
.its-message-bubble.staff-public { border-left: 3px solid #3b82f6; }
.its-message-bubble.staff-private { border-left: 3px solid #8b5cf6; background: #faf5ff; }
.its-msg-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.its-msg-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.its-msg-avatar.customer  { background: #10b981; }
.its-msg-avatar.staff     { background: #3b82f6; }
.its-msg-avatar.private   { background: #8b5cf6; }
.its-msg-author { font-weight: 600; font-size: 13px; }
.its-msg-time { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.its-msg-label { font-size: 10px; color: #6b21a8; background: #ede9fe; padding: 1px 7px; border-radius: 10px; font-weight: 700; }
.its-msg-body { padding: 14px 16px; font-size: 13.5px; line-height: 1.6; }
.its-msg-body iframe { width: 100%; border: none; border-top: 1px solid var(--border); }
.its-email-frame { width: 100%; min-height: 150px; border: none; margin-top: 8px; background: #fff; }

.its-reply-box { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.its-reply-tabs { display: flex; border-bottom: 1px solid var(--border); }
.its-reply-tab { padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.its-reply-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.its-reply-body { padding: 16px; }
.its-reply-textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 13.5px; min-height: 100px; resize: vertical; outline: none; font-family: inherit; transition: border-color .15s; }
.its-reply-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.its-sidebar-info { display: flex; flex-direction: column; gap: 14px; }
.its-info-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.its-info-card-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.its-info-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-bottom: 1px solid #f8fafc; }
.its-info-row:last-child { border-bottom: none; }
.its-info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.its-info-value { font-size: 13px; color: var(--text-main); font-weight: 500; }

/* ===== Forms ===== */
.its-form-group { margin-bottom: 18px; }
.its-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.its-input, .its-textarea, .its-select-input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 13px; font-size: 14px; background: var(--card-bg);
  color: var(--text-main); outline: none; transition: border-color .15s;
  font-family: inherit;
}
.its-input:focus, .its-textarea:focus, .its-select-input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.its-textarea { min-height: 120px; resize: vertical; }

/* ===== Buttons ===== */
.btn-its-primary { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn-its-primary:hover { background: var(--primary-hover); }
.btn-its-secondary { background: #f1f5f9; color: var(--text-main); border: 1px solid var(--border); border-radius: 8px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-its-secondary:hover { background: var(--border); }
.btn-its-danger { background: #ef4444; color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn-its-danger:hover { background: #dc2626; }

/* ===== Login Page ===== */
.its-login-page { min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); display: flex; align-items: center; justify-content: center; }
.its-login-card { background: var(--card-bg); border-radius: 16px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.its-login-logo { text-align: center; margin-bottom: 28px; }
.its-login-logo .logo-icon { width: 56px; height: 56px; background: var(--primary); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; margin-bottom: 12px; }
.its-login-logo h1 { font-size: 20px; font-weight: 800; margin: 0; color: var(--text-main); }
.its-login-logo p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }

/* ===== Sortable column headers ===== */
.its-sort-link { color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.its-sort-link:hover { color: var(--primary); }
.its-sort-link.active { color: var(--primary); font-weight: 700; }

/* ===== Empty State ===== */
.its-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.its-empty i { font-size: 48px; display: block; margin-bottom: 12px; opacity: .4; }
.its-empty p { margin: 0; font-size: 14px; }

/* ===== View toggle ===== */
.its-view-toggle { display: flex; gap: 4px; }
.its-view-btn { border: 1px solid var(--border); background: var(--card-bg); color: var(--text-muted); border-radius: 7px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 5px; }
.its-view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Templates dropdown ===== */
.its-template-btn { border: 1px solid var(--border); background: #f8fafc; color: var(--text-main); border-radius: 7px; padding: 7px 12px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.its-template-btn:hover { background: var(--border); }

/* ===== Reporting ===== */
.its-report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== Mobile Ticket-Karten (ersetzen die Tabelle unter 900px in Dashboard/Meine Tickets/Papierkorb) ===== */
.its-mcards { display: none; flex-direction: column; gap: 10px; }
.its-mcard {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
}
.its-mcard.its-pinned-mcard { border-left: 3px solid #f59e0b; }
.its-mcard-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.its-mcard-id { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.its-mcard-subject { font-size: 14.5px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.its-mcard-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.its-mcard-tags .its-tag-chip, .its-mcard-tags .its-badge { margin-left: 0; }
.its-mcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.its-mcard-person strong { display: block; font-size: 13px; color: var(--text-main); }
.its-mcard-person span { font-size: 11.5px; color: var(--text-muted); }
.its-mcard-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }
.its-mcard-footer .its-date-cell { font-size: 12px; }

.its-bottom-nav { display: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .its-sidebar { transform: translateX(-100%); }
  .its-sidebar.open { transform: translateX(0); }
  .its-main { margin-left: 0; }
  .its-menu-toggle { display: flex; }
  .its-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .its-detail-grid { grid-template-columns: 1fr; }
  .its-board { grid-template-columns: 1fr; }
  /* Ticketlisten: Tabelle ist fuer schmale Hochformat-Screens ungeeignet (zu viele Spalten) -> Karten statt wischbarer Tabelle */
  .its-table-wrap--tickets { background: transparent; border: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .its-table-wrap--tickets > table { display: none; }
  .its-mcards { display: flex; }
  /* Sonstige Tabellen (Benutzer, Gruppen, Sicherheit, ...) bleiben Tabellen, aber wischbar statt unsichtbar abgeschnitten */
  .its-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .its-table { min-width: 560px; }
  /* Sticky Bottom-Nav ersetzt auf dem Handy die staendig sichtbare Sidebar fuer die wichtigsten 3 Wege */
  .its-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--card-bg); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  }
  .its-bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 0 6px; color: var(--text-muted); text-decoration: none; font-size: 10.5px;
  }
  .its-bn-item i { font-size: 19px; }
  .its-bn-item.active { color: var(--primary); }
  .its-content { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  /* Reporting: Chart-/Stat-Reihen haben inline grid-template-columns -- nur per !important ueberschreibbar */
  .its-rep-grid { grid-template-columns: 1fr !important; }
  /* Generische Tabelle->Karten-Stapel fuer Verwaltungsseiten (Benutzer, Protokoll, Sicherheit) ohne eigenes Karten-Markup */
  .its-table-stack thead { display: none; }
  .its-table-stack, .its-table-stack tbody, .its-table-stack tr, .its-table-stack td { display: block; width: 100%; }
  .its-table-stack { min-width: 0; }
  .its-table-stack tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 10px 12px; box-shadow: var(--shadow); background: var(--card-bg); }
  .its-table-stack tbody tr:hover td { background: transparent; }
  .its-table-stack td { border: none !important; padding: 5px 0; overflow-wrap: anywhere; word-break: break-word; }
  .its-table-stack td[data-label]:before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 2px; }
  .its-table-stack td:empty { display: none; }
  /* Bekannte Kunden: 8-spaltige Intel-Tabelle ist fuers Handy zu komplex fuer eine Karten-Umwandlung --
     auf die 3 wichtigsten Spalten reduzieren, Rest gibt's im Detail-Panel beim Antippen der Zeile */
  .intel-table .td-vol, .intel-table .td-spark, .intel-table .td-last, .intel-table .td-next, .intel-table .td-trend { display: none; }
  .intel-table { min-width: 0; }
  .intel-table .td-name { min-width: 0; }
}
@media (max-width: 600px) {
  .its-content { padding: 16px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  /* Verhindert, dass iOS Safari beim Fokussieren von Feldern <16px reinzoomt */
  .its-input, .its-textarea, .its-select-input { font-size: 16px; }
  /* Status-Kacheln sind nur ein Filter -- gibt's auf dem Handy schon als Dropdown neben der Suche.
     Liste/Board-Umschalter weg -- auf dem Handy gibt's nur noch die Karten-Liste. Beides spart Platz fuer die Tickets selbst. */
  .its-stats-grid { display: none; }
  .its-view-toggle { display: none; }
  /* Suche + Status-Filter nebeneinander statt untereinander */
  .its-toolbar-left { flex-wrap: nowrap; }
  .its-search { min-width: 0; flex: 1 1 auto; }
  .its-select { flex-shrink: 0; max-width: 40%; }
}

/* ===== Pagination ===== */
.its-pagination { display: flex; align-items: center; gap: 4px; padding: 14px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.its-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-main); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .15s; }
.its-page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.its-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.its-page-ellipsis { color: var(--text-muted); font-size: 13px; padding: 0 4px; }
.its-page-info { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* ===== SLA Indicator ===== */
.its-sla { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; margin-left: 5px; white-space: nowrap; vertical-align: middle; }
.its-sla--warn { background: #fef9c3; color: #a16207; }
.its-sla--late { background: #ffedd5; color: #c2410c; }
.its-sla--crit { background: #fee2e2; color: #b91c1c; animation: its-sla-pulse 2s ease-in-out infinite; }
@keyframes its-sla-pulse { 0%,100%{ opacity:1; } 50%{ opacity:.65; } }

/* ===== Tag Chips ===== */
.its-tag-chip { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 600; background: #e0e7ff; color: #3730a3; white-space: nowrap; }
.its-tag-chip--warn { background: #fef3c7; color: #92400e; }

/* ===== Bulk Action Bar ===== */
.its-bulk-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: #1e293b; color: #fff; border-radius: 12px;
  padding: 10px 16px; box-shadow: 0 8px 32px rgba(0,0,0,.35);
  z-index: 999; animation: its-bulk-in .2s ease;
}
@keyframes its-bulk-in { from { opacity:0; transform: translateX(-50%) translateY(12px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.its-bulk-count { font-size: 13px; font-weight: 700; white-space: nowrap; margin-right: 4px; }
.its-bulk-actions { display: flex; gap: 6px; }
.its-bulk-btn { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: background .15s; }
.its-bulk-btn:hover { background: rgba(255,255,255,.25); }
.its-bulk-btn--danger { border-color: rgba(239,68,68,.4); }
.its-bulk-btn--danger:hover { background: rgba(239,68,68,.7); }
.its-bulk-close { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 16px; padding: 4px; margin-left: 4px; transition: color .15s; }
.its-bulk-close:hover { color: #fff; }

/* ===== Wiedervorlage (Reminders) ===== */
.its-reminder-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 30px 8px 10px; border-radius: 7px; border: 1px solid #fed7aa; background: #fff7ed; margin-bottom: 6px; font-size: 13px; }
.its-reminder-item.its-reminder-due { border-color: #fca5a5; background: #fef2f2; }
.its-reminder-del { position: absolute; top: 6px; right: 6px; background: none; border: none; color: #d1d5db; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.its-reminder-del:hover { color: #ef4444; }

/* Pinned rows (Wiedervorlage) in dashboard table */
tr.its-pinned > td:first-child { box-shadow: inset 3px 0 0 #f97316; }
tr.its-pinned { background: #fffbf5 !important; }
tr.its-pinned:hover { background: #fff7ed !important; }
.its-reminder-pin { display: inline-flex; align-items: center; gap: 3px; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 500; margin-left: 5px; vertical-align: middle; white-space: nowrap; }
.its-pinned-card { border-left: 3px solid #f97316 !important; background: #fffbf5 !important; }

/* ===== Reply hint ===== */
.its-reply-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

/* =========================================================================
   Motion-Layer — motion.dev-gestützte Interaktionen (assets/js/motion-ui.js)
   Transform (Hover-Lift, Press, Badge-Pop) läuft über Motion/WAAPI, nicht CSS —
   hier stehen nur Eigenschaften, die WAAPI nicht sinnvoll animiert
   (box-shadow, border-color, backdrop-filter).
   ========================================================================= */

/* Ticket-Cards: Shadow-Stufe + Border-Akzent per CSS-Transition, das eigentliche
   Anheben (translateY) übernimmt motion-ui.js per hover(), damit es sich per
   Spring statt linear anfühlt. */
.its-ticket-card, .its-mcard {
  transition: box-shadow .18s ease, border-color .18s ease;
  will-change: auto;
}
.its-ticket-card:hover, .its-mcard:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Aktionsicons: Farbe/Background per CSS, Scale (Hover+Press) per Motion */
.its-action-btn, .its-bulk-btn, .its-view-btn, .its-page-btn, .its-notif-btn, .its-tool-btn {
  transform-origin: center;
}

/* Status-Badge Change-Effekt: kurzer Farb-Glow zusätzlich zur Scale-Bewegung aus JS */
@keyframes its-badge-flash-glow {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.its-badge-flash { animation: its-badge-flash-glow .7s ease-out; }

/* ===== Toast-System (motion-ui.js steuert Enter/Exit) ===== */
.its-toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.its-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 380px;
  background: #1e293b; color: #f1f5f9;
  border-radius: 10px; padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 500;
  border-left: 3px solid var(--primary);
}
.its-toast--success { border-left-color: #22c55e; }
.its-toast--danger   { border-left-color: #ef4444; }
.its-toast i { font-size: 15px; flex-shrink: 0; }
.its-toast--success i { color: #4ade80; }
.its-toast--danger i { color: #f87171; }
.its-toast-msg { flex: 1; line-height: 1.35; }
.its-toast-close { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 14px; padding: 2px; line-height: 1; flex-shrink: 0; }
.its-toast-close:hover { color: #fff; }

/* ===== Overlays (Merge, Quick-View) — Backdrop-Blur, Panel per Motion ===== */
.its-overlay-backdrop {
  position: fixed; inset: 0; z-index: 2100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(0px);
  transition: backdrop-filter .25s ease;
}
.its-overlay-backdrop.is-open { backdrop-filter: blur(6px); }

/* ===== Quick-View Modal ===== */
.its-quickview-panel {
  background: var(--card-bg); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.its-quickview-header {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.its-quickview-header h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text-main); }
.its-quickview-close { margin-left: auto; background: none; border: none; font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer; flex-shrink: 0; }
.its-quickview-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.its-quickview-body { padding: 16px 20px; }
.its-quickview-row { margin-bottom: 14px; }
.its-quickview-row:last-child { margin-bottom: 0; }
.its-quickview-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); margin-bottom: 4px; }
.its-quickview-snippet { font-size: 13px; color: var(--text-main); line-height: 1.5; background: var(--content-bg); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }
.its-quickview-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.its-quickview-loading { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Action-Icon in Karten/Zeilen für Quick-View, erscheint dezent auf Hover */
.its-qv-trigger {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--text-muted);
  opacity: 0; transition: opacity .15s ease, background .15s ease, color .15s ease;
  font-size: 12px; cursor: pointer;
}
.its-ticket-card, .its-mcard { position: relative; }
.its-ticket-card:hover .its-qv-trigger, .its-mcard:hover .its-qv-trigger,
.its-qv-trigger:focus-visible { opacity: 1; }
.its-qv-trigger:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Dashboard-Zähler: verhindert Layout-Sprung durch tabular-nums beim Hochzählen */
.its-counter { font-variant-numeric: tabular-nums; }

/* Bootstrap-Modals (Ankündigung) — eigenes Motion-Timing statt
   Bootstraps CSS-Fade, sonst überlagern sich zwei Transitions auf demselben Element. */
#its-announce-modal.modal,
#its-announce-modal .modal-dialog {
  transition: none !important;
}
#its-announce-modal.modal.show { backdrop-filter: blur(6px); }

/* ===== Werbe-Easter-Egg: "Anzeige" vor dem Ticket (inc/werbung.php + app.js) ===== */
body.its-werbung-open { overflow: hidden; }
.its-werbung { position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.82); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: its-werbung-in .3s ease-out; }
.its-werbung.is-closing { opacity: 0; transition: opacity .3s ease; }
@keyframes its-werbung-in { from { opacity: 0; } to { opacity: 1; } }
.its-werbung-box { width: min(560px, 100%); background: #fff; color: #0f172a; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; font-family: inherit; }
.its-werbung-loading { padding: 48px 24px; text-align: center; color: #64748b; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.its-werbung-spinner { width: 18px; height: 18px; border: 2px solid #cbd5e1; border-top-color: #475569; border-radius: 50%; animation: its-werbung-spin .8s linear infinite; }
@keyframes its-werbung-spin { to { transform: rotate(360deg); } }
.its-werbung-tag { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.its-werbung-tag b { font-weight: 800; color: #475569; }
.its-werbung-note { text-transform: none; letter-spacing: 0; color: #64748b; font-size: 11px; margin-left: 6px; }
.its-werbung-tag > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; }
.its-werbung-why { border: 0; background: none; color: #94a3b8; font-size: 11px; text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: underline dotted; }
.its-werbung-why:disabled { cursor: default; text-decoration: none; color: #64748b; }
.its-werbung-muted { text-transform: none; letter-spacing: 0; }

/* Banner */
.its-werbung-banner { padding: 32px 28px 22px; text-align: center; background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--ad-color) 18%, #fff), #fff 70%); }
.its-werbung-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ad-color); margin-bottom: 14px; }
.its-werbung-brand i { font-size: 22px; }
.its-werbung-title { font-size: 26px; font-weight: 900; line-height: 1.15; margin: 0 0 10px; color: #0f172a; }
.its-werbung-text { font-size: 15px; color: #475569; margin: 0 0 20px; }
.its-werbung-cta { border: 0; border-radius: 999px; padding: 12px 26px; font-size: 15px; font-weight: 800; color: #fff; background: var(--ad-color); box-shadow: 0 10px 24px color-mix(in srgb, var(--ad-color) 45%, transparent); cursor: pointer; animation: its-werbung-pulse 1.6s ease-in-out infinite; }
@keyframes its-werbung-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.its-werbung-foot { margin-top: 14px; font-size: 10.5px; color: #94a3b8; }

/* "Video" */
.its-werbung-player { background: #000; }
.its-werbung-screen { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(80% 80% at 50% 50%, color-mix(in srgb, var(--ad-color) 35%, #000), #000); }
.its-werbung-frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px 36px; color: #fff; font-size: 24px; font-weight: 800; line-height: 1.25; text-shadow: 0 4px 20px rgba(0,0,0,.6); opacity: 0; transform: scale(1.06); transition: opacity .5s ease, transform 3s linear; }
.its-werbung-frame.is-on { opacity: 1; transform: scale(1); }
.its-werbung-controls { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #e2e8f0; font-size: 12px; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.5)); }
.its-werbung-progress { flex: 1; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.its-werbung-progress-fill { height: 100%; width: 0; background: #facc15; }

.its-werbung-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f8fafc; border-top: 1px solid #e2e8f0; font-size: 12px; color: #64748b; }
.its-werbung-bar .its-werbung-skip { margin-left: auto; }
.its-werbung-skip { border: 1px solid #cbd5e1; background: #fff; color: #94a3b8; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: not-allowed; }
.its-werbung-skip:not(:disabled) { color: #0f172a; border-color: #0f172a; cursor: pointer; }
.its-werbung-skip:not(:disabled):hover { background: #0f172a; color: #fff; }
@media (prefers-reduced-motion: reduce) { .its-werbung-cta { animation: none; } .its-werbung-frame { transition: opacity .3s ease; transform: none; } }
/* echter YouTube-Spot */
.its-werbung-player--yt .its-werbung-screen { background: #000; }
.its-werbung-player--yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.its-werbung-sound { border: 0; background: none; color: #64748b; font-size: 11px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.its-werbung-sound:hover { color: #0f172a; }
.its-werbung-sound:disabled { cursor: default; color: #16a34a; }
.its-werbung-sponsor .bi-youtube { color: #ff0000; }
