/* «Was ist neu», Vorankündigungen und geführte Rundgänge – für alle Portale und die ERP Planung
   (dort per /js/neuigkeiten.js nachgeladen). Eigenständig: Farbe aus --marke, sonst Blau. */

/* ---------- Banner (Vorankündigungen) ---------- */
.wn-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  background: #fff4ce;
  color: #4d3800;
  border-bottom: 1px solid #f0d77a;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wn-banner-text { flex: 1; min-width: 0; }
.wn-banner-text strong { margin-right: 6px; }
.wn-banner button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.wn-banner .wn-weg { text-decoration: none; font-size: 18px; line-height: 1; padding: 0 4px; }

/* ---------- Fenster «Was ist neu» ---------- */
.wn-hg {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  background: rgba(15, 20, 30, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 12px 12px;
  overflow-y: auto;
}
.wn-fenster {
  width: 100%;
  max-width: 620px;
  background: #fff;
  color: #1d1d1f;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 20px 22px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wn-fenster > h2 { font-size: 1.25rem; margin: 0 0 4px; }
.wn-unter { color: #5f6368; font-size: 0.9rem; margin: 0 0 14px; }
.wn-karte {
  border: 1px solid #e3e5e8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.wn-karte h3 { font-size: 1rem; margin: 4px 0 6px; }
.wn-karte p { margin: 0 0 6px; white-space: pre-line; }
.wn-karte ul { margin: 4px 0 6px; padding-left: 1.2rem; }
.wn-art {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: #e6f4ea;
  color: #1e7e34;
}
.wn-art.ankuendigung { background: #fff4ce; color: #6b5300; }
.wn-art.gesehen { background: #f1f3f4; color: #5f6368; }
.wn-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.wn-knopf {
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid #c9ccd1;
  background: #fff;
  color: #1d1d1f;
  cursor: pointer;
}
.wn-knopf.primaer { background: var(--marke, #1f4e78); border-color: var(--marke, #1f4e78); color: #fff; }
.wn-fuss { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 14px; }

/* Übungsansicht (Beispieldaten) */
.uebung-hinweis {
  background: #e8f0fe;
  color: #174ea6;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---------- Geführter Rundgang ---------- */
.wn-tour-decke { position: fixed; background: rgba(15, 20, 30, 0.55); z-index: 2147483000; }
.wn-tour-rahmen {
  position: fixed;
  z-index: 2147483001;
  border: 3px solid #f5b400;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(245, 180, 0, 0.35);
  pointer-events: none;
  transition: left 0.2s, top 0.2s, width 0.2s, height 0.2s;
}
.wn-tour-rahmen.sperrt { pointer-events: auto; }
.wn-tour-rahmen[hidden], .wn-tour-decke[hidden] { display: none; }
.wn-tour-blase {
  position: fixed;
  z-index: 2147483002;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #fff;
  color: #1d1d1f;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  padding: 14px 16px;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wn-tour-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #5f6368; }
.wn-tour-blase h3 { font-size: 16px; margin: 6px 0; }
.wn-tour-blase p { margin: 0 0 8px; white-space: pre-line; }
.wn-tour-hinweis { font-size: 13px; color: #6b4a00; background: #fff4ce; padding: 6px 8px; border-radius: 6px; margin: 0 0 8px; }
.wn-tour-hinweis[hidden] { display: none; }
.wn-tour-knoepfe { display: flex; gap: 8px; justify-content: flex-end; }
.wn-tour-knoepfe button[hidden] { display: none; }
.wn-tour-zu { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #5f6368; padding: 0 2px; }
@media (prefers-reduced-motion: reduce) { .wn-tour-rahmen { transition: none; } }
