/* R28 (Redesign 2026, Runde 28): IBAN-Zweitbestätigung, Neuigkeiten je Minor-Version, Dashboard-Zustände, Mitarbeitende-Wizard, Modulseiten-Skeleton.
   Copyright © Fabian Stamminger @ The Platform Group */

/* R28-01 Hinweiskarte IBAN neu, bitte bestätigen */
.ds-iban-confirm { margin-top: 12px; padding: 16px; border: 1px solid var(--orlop-line, #D8DCE4); border-left: 4px solid #0E1115; border-radius: 12px; background: #fff; display: grid; gap: 8px; }
.ds-iban-confirm strong { font-weight: 900; letter-spacing: -0.01em; }
.ds-iban-confirm p { margin: 0; color: var(--orlop-text-2, #4B5563); }
.ds-iban-confirm .btn-primary { justify-self: start; min-height: 44px; }
.ds-iban-confirm .ds-iban-wait { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0E1115; }
@media (max-width: 767px) { .ds-iban-confirm .btn-primary { justify-self: stretch; } }

/* R28-02 Neuigkeiten: Chips unterscheidbar */
#newsList .news-badge { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 700; }
#newsList .news-badge--new { background: #0E1115; color: #FFFFFF; border-color: #0E1115; }
#newsList .news-badge--better { background: #FFFFFF; color: #333840; border-color: #D8DCE4; }
#newsList .news-badge--fixed { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.app-footer a.has-news::after { background: #0E1115; color: #FFFFFF; }
/* Sicherheitszeile in Normalgröße, einmal je Karte */
#newsList .news-entry-body li.news-li-plain, #newsList .news-entry-body li.news-li-security { font-size: 1rem; color: var(--orlop-ink, #0E1115); }
#newsList .news-entry-body li.news-li-plain .news-item-text { font-size: 1rem; }
/* Karte: Meta-Zeile mit gefalteten Versionen und Hilfelink */
#newsList .news-entry-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; }
#newsList .news-entry-folded { color: var(--text-muted, #565C67); font-size: .875rem; }
#newsList .news-entry-help { margin: 0 0 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid #D8DCE4; border-radius: 999px; background: #fff; text-decoration: none; font-size: .875rem; font-weight: 700; }
#newsList .news-entry-help:hover { background: #F5F6F8; }
#newsList .news-entry--lead { border: 1px solid #D8DCE4; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(14, 17, 21, .06); padding: 24px; }
#newsList .news-entry--lead .news-entry-title { font-size: 1.5rem; }
/* Akkordeon "Weitere Änderungen am 30.10. (n)" */
#newsList .news-day-more--day { margin: 0 0 16px; border: 1px solid #D8DCE4; border-radius: 12px; background: #fff; }
#newsList .news-day-more--day > .news-more-toggle { width: 100%; min-height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; color: #0E1115; text-align: left; }
#newsList .news-day-more--day > .news-more-toggle:focus-visible { outline: 2px solid #0E1115; outline-offset: 2px; border-radius: 12px; }
#newsList .news-day-more--day .news-more-count { color: var(--text-muted, #565C67); font-weight: 600; }
#newsList .news-day-more--day .news-more-chev { margin-left: auto; transition: transform .15s ease; }
#newsList .news-day-more--day > .news-more-toggle[aria-expanded="true"] .news-more-chev { transform: rotate(180deg); }
#newsList .news-day-more--day .news-more-list { padding: 0 16px 8px; display: grid; gap: 0; }
#newsList .news-day-more--day .news-more-list[hidden] { display: none; }
#newsList .news-entry--compact { border-bottom: 1px solid #E7EAF0; padding: 16px 0; max-width: none; }
#newsList .news-entry--compact:last-child { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { #newsList .news-day-more--day .news-more-chev { transition: none; } }
/* 1920: breite Leitkarte über beide Spalten, Karten gleich hoch, Versionsliste rechts */
@media (min-width: 1600px) {
  #newsList > .news-entry--lead, #newsList > .news-day-more { grid-column: 1 / span 2; }
  #newsList > .news-entry--lead .news-entry-body ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  #newsList > .news-entry--lead .news-entry-body li, #newsList > .news-entry--lead .news-entry-body li.news-li-plain { max-width: none; }
  #newsList > .news-entry:not(.news-entry--lead) { height: 100%; box-sizing: border-box; }
}
/* Handy-Fußzeile: Version mit Uhrzeit, Links 44 px */
.app-footer .app-footer-when-short { display: none; color: var(--orlop-muted-text, #565C67); font-size: .875rem; white-space: nowrap; }
@media (max-width: 767px) {
  .app-footer .app-footer-when-short { display: inline-flex; align-items: center; min-height: 44px; }
  .app-footer .app-footer-left { gap: 0 8px !important; }
  .app-footer a { min-height: 44px !important; }
}

/* R28-03 Dashboard: Handy-Knopf "Lieferant wählen" sichtbar, Karten linksbündig */
@media (max-width: 767px) {
  .dash-waiting-item { padding-left: 0; padding-right: 0; box-sizing: border-box; text-align: left; }
  .dash-waiting-head { margin-bottom: 16px; }
  .dash-waiting-item .dash-waiting-vendor-go { position: static !important; display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: auto !important; min-height: 44px !important; grid-column: 1 / -1; margin: 12px 0 0 !important; padding: 0 16px !important; clip: auto !important; overflow: visible !important; border: 1px solid #0E1115 !important; background: #fff !important; color: #0E1115 !important; box-sizing: border-box; }
  .dash-waiting-item .dash-recent-flag { font-size: .75rem; min-height: 0; padding: 0 8px; }
  #dashWaitingAll, #dashWaitingAssign { width: 100%; min-height: 48px; box-sizing: border-box; }
}
#dashWaitingAssign { min-height: 44px; margin-left: 8px; }
@media (max-width: 767px) { #dashWaitingAssign { margin: 8px 0 0; } }
@media (min-width: 1600px) {
  #newsList > .news-entry--lead .news-entry-body li:nth-child(2) { border-top: 0; padding-top: 12px; }
}

/* R28-05 Modulseiten: Seitenkopf sofort, Skeleton in Zielhöhe */
.mod-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; margin: 0 0 16px; }
.mod-head-title { margin: 0; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.mod-head-sub { flex: 1 0 100%; margin: 4px 0 0; color: var(--orlop-text-2, #4B5563); }
.mod-skel { display: grid; gap: 12px; min-height: 420px; }
.mod-skel-bar { display: block; border-radius: 10px; background: linear-gradient(90deg, #EEF0F3 25%, #F7F8FA 50%, #EEF0F3 75%); background-size: 200% 100%; animation: modSkel 1.2s linear infinite; }
.mod-skel-title { height: 28px; width: 40%; }
.mod-skel-filter { height: 44px; width: 100%; }
.mod-skel-row { height: 56px; }
@keyframes modSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .mod-skel-bar { animation: none; } }
@media (max-width: 767px) { .mod-head-title { font-size: 1.5rem; } .mod-skel-title { width: 70%; } }

#newsList .news-day-more--day > .news-more-toggle .news-more-label, #newsList .news-day-more--day > .news-more-toggle .news-more-count { flex: 0 0 auto; margin: 0; }

/* R28 Nacharbeit (D-1392): Handy-Leerzustand, Kopfknopf ist ausgeblendet, der Kartenknopf wird der eine Hauptknopf (voll breit, 48 px) */
@media (max-width: 767px) {
  .dash-first-card .dash-first-cta #dashFirstUpload { width: 100% !important; min-height: 48px; justify-content: center; background: #0E1115 !important; color: #fff !important; border: 1px solid #0E1115 !important; }
}
