/* Ekasit ToDo 0.2 – Kern: Lade-, Anmelde- und Sperrbildschirm, Einbettung, kleine Ergänzungen der Oberfläche */
#kern-schirm { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: var(--bg); color: var(--text); overflow: auto; }
#kern-schirm[hidden] { display: none; }
.kern-karte { width: 100%; max-width: 420px; padding: 28px 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.kern-logo { width: 56px; height: 56px; color: var(--text); }
.kern-titel { font-size: 20px; font-weight: 600; }
.kern-text { font-size: 14px; line-height: 1.5; }
.kern-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.kern-liste { display: grid; gap: 8px; width: 100%; }
.kern-liste .knopf { justify-content: flex-start; width: 100%; }
.kern-fehler { color: var(--err-text); background: var(--err-bg); border-radius: 8px; padding: 8px 12px; font-size: 13px; width: 100%; }
.kern-fehler[hidden] { display: none; }
.kern-punkte { display: flex; gap: 6px; }
.kern-punkte i { width: 8px; height: 8px; border-radius: 50%; background: var(--lila); opacity: .3; animation: kern-puls 1.2s infinite ease-in-out; }
.kern-punkte i:nth-child(2) { animation-delay: .2s; } .kern-punkte i:nth-child(3) { animation-delay: .4s; }
@keyframes kern-puls { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* Eingebettet in die Ekasit-Hülle (F1): eigene Hülle aus, nur das ToDo-Modul */
html.eingebettet .seitenleiste .leistenkopf, html.eingebettet .seitenleiste .rail, html.eingebettet #uhren, html.eingebettet #glocke, html.eingebettet #design-umschalter,
html.eingebettet #kopf-benutzer, html.eingebettet .kopfleiste .knopf[title="Journal"], html.eingebettet .serverbox { display: none !important; }

/* Avatare mit Bild aus dem Ekasit-Profil */
.avatar.bild { padding: 0; overflow: hidden; background: var(--input-bg); }
.avatar.bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Medien: Vorschaubilder, Abspielen, Aufnahme */
.medien .m img, .medien .m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.medien .m .spiel { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.medien .m.audio audio { width: 100%; height: 32px; }
.medien .m.audio { width: auto; min-width: 220px; height: auto; padding: 6px 8px; display: flex; align-items: center; gap: 6px; }
.anhang-gross { position: relative; min-height: 220px; max-height: 70vh; border-radius: 10px; overflow: hidden; background: var(--input-bg); display: grid; place-items: center; }
.anhang-gross img, .anhang-gross video { max-width: 100%; max-height: 70vh; display: block; }
.aufnahme-leiste { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--purple-bg); color: var(--purple-text); font-size: 13px; }
.aufnahme-leiste .rec { width: 10px; height: 10px; border-radius: 50%; background: var(--rot, #f66b4e); animation: kern-puls 1s infinite; }
.ohne-titel { color: var(--muted); font-style: italic; }
.zeile-vorschau { width: 44px; height: 34px; border-radius: 6px; overflow: hidden; flex: 0 0 44px; background: var(--input-bg); display: grid; place-items: center; }
.zeile-vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Testleiste (nur todo-dev) */
.testleiste { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 12px; }
.testleiste .pill { white-space: nowrap; }

/* Einstellungen: Teams und eigene Rechte */
.team-zeile { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-zeile:last-child { border-bottom: 0; }
.team-zeile .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rechte-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-bild { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 8px; }
.gast-link { word-break: break-all; }

/* App (Handy): Aufgaben ohne Titel, Medien, Abspieler */
.phone .zeile .titel .tx.mit-vorschau { display: flex; align-items: center; gap: 8px; }
.phone .zeile .zeile-vorschau { width: 40px; height: 30px; flex: 0 0 40px; }
.phone .medien .m { position: relative; overflow: hidden; }
.phone .medien .m.audio { width: 100%; min-width: 0; height: auto; }
.phone .body video, .phone .body img { border-radius: 8px; }
.team-zeile input { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--input-line); background: var(--input-bg); color: var(--text); font: inherit; min-width: 0; }
/* Schmale Fenster (H3): Suchfeld der Kopfleiste nicht über die Uhren schieben */
@media (max-width: 1100px) { .kopfleiste .uhren .uhr:not(.ekasit) { display: none; } }
@media (max-width: 1200px) and (min-width: 901px) { .kopfleiste .status { font-size: 0; gap: 0; padding: 0 12px; } .kopfleiste .suche { min-width: 240px; } }
