/* ============================================================
   TICKER-CSS-V1-1-20260812
   SGUJ Dashboard — Udopium-Ticker
   Ablage: /dashboard/assets/ticker.css   (EIGENSTÄNDIGE DATEI)
   ============================================================

   WARUM EIGENE DATEI STATT ANHANG AN style.css:
   Der erste Versuch am 12.08.2026, diese Regeln an style.css
   anzuhängen, kam nicht auf dem Server an — die ausgelieferte Datei
   endete unverändert bei der prefers-reduced-motion-Regel. Dasselbe
   Muster wie am 26.07.2026 bei der Aufgaben-index.php: IONOS
   überschreibt bestehende Dateien nicht zuverlässig.
   Eine NEUE Datei wird dagegen zuverlässig angelegt. Zusätzlich bleibt
   style.css unangetastet, und künftige Ticker-Änderungen fassen die
   Hauptdatei nie wieder an.

   Eingebunden in inc/layout.php, nach style.css (Reihenfolge zählt:
   die Variablen aus :root müssen vorher geladen sein).
   Farben ausschließlich aus den vorhandenen Variablen — kein neues
   Farbschema.
   ============================================================ */

/* Zweispaltig ab 900 px: Seitenleiste/Ticker links, Kacheln rechts.
   Darunter untereinander — und zwar KACHELN ZUERST (order), weil man
   auf dem Handy meist in ein Modul springen will, nicht lesen. */
.start.mit-ticker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.start.mit-ticker .seitenleiste,
.start.mit-ticker > .ticker        { order: 2; }
.start.mit-ticker .start-kacheln { order: 1; }

@media (min-width: 900px) {
  .start.mit-ticker {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }
  .start.mit-ticker .seitenleiste,
  .start.mit-ticker > .ticker        { order: 1; position: sticky; top: 16px; }
  .start.mit-ticker .start-kacheln { order: 2; }
}

.seitenleiste {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticker {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}

.ticker-kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 14px;
  background: var(--petrol); color: #fff;
}
.ticker-titel { font-size: 14px; font-weight: bold; }
.ticker-neu {
  background: transparent; border: 0; color: #fff;
  font-size: 17px; line-height: 1; padding: 2px 6px; border-radius: 4px;
}
.ticker-neu:hover { background: rgba(255,255,255,.18); }

/* Neueste oben. Gescrollt wird nur die Liste, nicht die ganze Seite —
   ein Chat scrollt nach unten, weil man dort schreibt; hier schreibt
   niemand, also gehört das Neueste sofort ins Blickfeld. */
.ticker-liste { overflow-y: auto; padding: 6px; }

.ticker-laedt, .ticker-leer {
  padding: 18px 12px; text-align: center;
  color: #6b7680; font-size: 13px;
}

.tick {
  border-left: 3px solid var(--linie);
  background: #fff;
  padding: 8px 10px;
  margin: 4px 2px;
  border-radius: 0 5px 5px 0;
}
.tick:hover { background: var(--hell); }
.tick-aufgabe  { border-left-color: var(--petrol); }
.tick-anruf    { border-left-color: var(--gelb); }
.tick-dringend { border-left-color: var(--rot); background: #fdf6f5; }

.tick-oben {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 3px;
}
.tick-art {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: #6b7680; font-weight: bold;
}
.tick-zeit { font-size: 11px; color: #8a949c; white-space: nowrap; }

.tick-titel {
  font-size: 13.5px; font-weight: bold; color: var(--anthrazit);
  margin-bottom: 2px; word-break: break-word;
}

/* Auf drei Zeilen begrenzt: der Ticker soll überblicken lassen,
   nicht ersetzen. Vollständig steht alles in Udopium. */
.tick-text {
  font-size: 12.5px; color: #4a545c; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.tick-meta { font-size: 11.5px; color: #6b7680; margin-top: 4px; }

.ticker-fuss {
  display: block; padding: 9px 14px; text-align: center;
  font-size: 12.5px; text-decoration: none;
  border-top: 1px solid var(--linie); background: #fafbfb;
}
.ticker-fuss:hover { background: var(--hell); }
