/* FDL Ausbildung: News (news.js). Baut auf fdl.css und ki.css (.ki-text) auf. */

/* ------------------------------------------------------------ Knopf oben */
.newsbtn { position: relative; }
.newsbtn .ic { font-size: 16px; color: var(--accent); }
.newsbtn .nav-badge { position: static; margin-left: 2px; min-width: 17px; height: 17px; font-size: 10.5px; box-shadow: none; }
@media (max-width: 520px) { .newsbtn > span { display: none; } }

/* ------------------------------------------------------------ Seite */
#p-news .head .actions:has(> [hidden]:only-child) { display: none; }
.nw-list { display: grid; gap: 14px; }
.nw-entry { display: grid; gap: 12px; }
.nw-entry.is-new { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .18), 0 18px 40px -24px rgba(var(--accent-rgb), .55); }
.nw-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.nw-title { min-width: 0; }
.nw-title h3 { margin: 1px 0 2px; font: 600 17px/1.3 var(--display); overflow-wrap: anywhere; }
.nw-meta { color: var(--faint); font-size: 12.5px; }
.nw-tools { display: flex; gap: 2px; margin: -4px -6px 0 0; }
.nw-new { margin-right: 8px; padding: 1px 8px; font-size: 11px; vertical-align: 2px; }
.nw-count { margin-left: 8px; padding: 1px 8px; font-size: 11px; vertical-align: 2px; }

.nw-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 18px; background: rgba(255, 255, 255, .06); color: var(--dim); }
.nw-ic.nw-unterlage { background: rgba(94, 200, 255, .14); color: var(--ice); }
.nw-ic.nw-decks { background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.nw-ic.nw-schulaufgaben { background: rgba(180, 156, 255, .15); color: var(--violet); }
.nw-ic.nw-lernpfad { background: rgba(108, 203, 95, .14); color: var(--ok); }
.nw-ic.nw-simulator { background: rgba(255, 200, 61, .14); color: var(--gold); }
.nw-ic.nw-admin { background: rgba(var(--accent-rgb), .16); color: var(--accent); }

.nw-text { color: var(--dim); }
.nw-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nw-points li { display: block; }
.nw-points li > b, .nw-points li > .t, .nw-link > b, .nw-link > .t { display: block; }
.nw-points li > :is(b, .t), .nw-link { padding: 0; }
.nw-points li:not(:has(.nw-link)) { padding: 9px 12px; border-radius: var(--r-inner); background: rgba(255, 255, 255, .035); }
.nw-points .t { color: var(--faint); font-size: 12.5px; margin-top: 1px; }
.nw-points b { font-weight: 600; overflow-wrap: anywhere; }
.nw-link { position: relative; display: block; padding: 9px 40px 9px 12px; border-radius: var(--r-inner); background: rgba(255, 255, 255, .035); color: inherit; text-decoration: none; transition: background .2s; }
.nw-link .ic { position: absolute; right: 12px; top: 50%; margin-top: -8px; font-size: 16px; color: var(--faint); transform: rotate(180deg); }
.nw-link:focus-visible { background: rgba(var(--accent-rgb), .1); }
@media (hover: hover) { .nw-link:hover { background: rgba(255, 255, 255, .07); } }
.nw-more { color: var(--faint); font-size: 12.5px; padding: 2px 12px; }

.nw-ai { padding: 12px 14px; border-radius: var(--r-inner); background: rgba(94, 200, 255, .06); border: 1px solid rgba(94, 200, 255, .16); }
.nw-ai-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--ice); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nw-ai-head .ic { font-size: 15px; }
.nw-ai .ki-text { color: var(--text); }
.nw-ai.clamp .ki-text { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

.nw-empty { display: grid; justify-items: start; gap: 6px; }
.nw-morebtn { justify-content: center; margin-top: 14px; }
.nw-form textarea { min-height: 120px; }

/* ------------------------------------------------------------ Fenster nach dem Anmelden */
.nw-popup { display: grid; gap: 12px; }
.nw-popup .nw-entry { padding: 14px; gap: 10px; }
.nw-popup .nw-entry.is-new { box-shadow: none; }
.nw-popup > .note { margin: 0; }
.nw-entry.compact .nw-title h3 { font-size: 15.5px; }

/* ------------------------------------------------------------ Startseite */
.nw-startlist { margin-top: 6px; }
.nw-startlist .ic-box.nw-ic { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.nw-startlist .rowtext { display: grid; gap: 1px; min-width: 0; }
.nw-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.nw-startlist .nw-new { margin: 0; }

@media (max-width: 640px) {
  .nw-head { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .nw-ic { width: 34px; height: 34px; font-size: 16px; }
  .nw-title h3 { font-size: 16px; }
}
