/* GEIST-CI: Royalblau #2B61A1 / Navy #2B61A1 / Grau #8A8F98 — NICHT grün */
:root {
  --blau: #2B61A1;
  --blau-d: #2B61A1;
  --blau-l: #eef3fd;
  --blau-soft: #3b76f0;
  --ink: #1a2230;
  --muted: #8A8F98;
  --line: #e2e7f0;
  --bg: #f4f6fb;
  --warn-bg: #fff7e6;
  --warn: #b8860b;
  --info-bg: #eaf2fb;
  --info: #0b6aa2;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: Menlo, Consolas, monospace;
  font-size: .88em;
  background: #f0f2f7;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: var(--blau-d);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e2e7f0;
}
.brand { display: flex; align-items: center; gap: 16px; }
.logo { height: 48px; width: auto; display: block; }
.masterlink { display: flex; align-items: center; }
.brandtxt { color: var(--blau-d); font-weight: 700; font-size: 25px; letter-spacing: .5px; }
.brandtxt .g { color: var(--blau-d); font-weight: 700; }
.brandtxt .sep { color: #8A8F98; margin: 0 5px; font-weight: 400; }
.topnav { display: flex; align-items: center; gap: 10px; }
.who { color: #55607a; font-size: 13px; }
.topnav-version { color: var(--muted); font-size: 11px; opacity: .75; letter-spacing: .3px; }
.footer-version { color: var(--muted); opacity: .8; }
.topbar .btn-ghost { color: var(--blau-d); border-color: #d4ddee; }
.topbar .btn-ghost:hover { background: var(--blau-l); color: var(--blau-d); border-color: var(--blau); }

/* Layout */
.wrap { max-width: 900px; margin: 0 auto; padding: 18px 16px 60px; }
.foot {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 24px;
  font-size: 12px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}
.btn:hover { background: #f0f3fa; text-decoration: none; }
.btn-primary { background: var(--blau); border-color: var(--blau); color: #fff; }
.btn-primary:hover { background: var(--blau-d); }
/* btn-ghost: Inhaltsbereich-Styling kommt aus der zentralen buttons.css.
   Topbar (weisser Hintergrund) hat bereits .topbar .btn-ghost { color:var(--blau-d) }.
   Globales color:#fff entfernt 2026-07-05 — war auf hellem Hintergrund unsichtbar. */

/* Banners */
.banner { padding: 10px 16px; font-size: 13.5px; line-height: 1.5; }
.banner-warn { background: var(--warn-bg); border-left: 5px solid var(--warn); }
.banner-info { background: var(--info-bg); border-left: 5px solid var(--info); }

/* Login */
.loginbox {
  max-width: 400px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: 0 4px 20px rgba(37,99,235,.08);
}
.login-brand { text-align: center; margin-bottom: 20px; }
.login-logo { height: 52px; margin: 0 auto; display: block; }
.login-wordmark { font-size: 28px; font-weight: 700; color: var(--blau-d); }
.loginbox h1 { font-size: 20px; color: var(--blau-d); text-align: center; margin: 0 0 4px; }
.loginbox .sub { color: var(--muted); font-size: 13px; text-align: center; margin: 0 0 20px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--blau-d); }
.form input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.form input:focus { border-color: var(--blau); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* Suchfeld Hero */
.search-hero {
  max-width: 680px;
  margin: 48px auto 0;
  text-align: center;
}
.search-tagline {
  font-size: 28px;
  font-weight: 700;
  color: var(--blau-d);
  margin-bottom: 22px;
  letter-spacing: -.3px;
}
.search-box-wrap {
  position: relative;
  width: 100%;
}
.search-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 32px;
  padding: 0 18px;
  box-shadow: 0 2px 10px rgba(37,99,235,.07);
  transition: border-color .15s, box-shadow .15s;
}
.search-input-row:focus-within {
  border-color: var(--blau);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12), 0 2px 10px rgba(37,99,235,.07);
}
.search-icon { display: flex; align-items: center; margin-right: 10px; flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  padding: 14px 0;
  background: transparent;
  color: var(--ink);
}
.search-input::placeholder { color: var(--muted); }
/* Webkit clear-button entfernen (macht UX sauberer) */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button { display: none; }
.search-spinner { display: flex; align-items: center; margin-left: 10px; }

/* Spinner-Animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

.search-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(37,99,235,.13);
  z-index: 200;
  max-height: 520px;
  overflow-y: auto;
  text-align: left;
}
.dd-gruppe {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}
.dd-gruppe:last-child { border-bottom: none; }
.dd-gruppe-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 700;
  padding: 0 18px 5px;
}
.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .08s;
  outline: none;
}
.dd-item:hover, .dd-item.focus { background: var(--blau-l); }
.dd-item-main { flex: 1; min-width: 0; }

/* Sekundaer-Action-Buttons rechts in der Such-Treffer-Karte (PDF + Detail-Link
   in Ziel-App). Klein, Royalblau-Tint bei Hover; Card-Klick bleibt primaer.
   Verankerung: Memory uebergabe-pflicht-echter-ui-beweis (keine toten Karten). */
.dd-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
  margin-left: 8px;
}
.dd-action-btn {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--blau-d);
  background: #fff;
  border: 1px solid var(--blau-l);
  white-space: nowrap;
  transition: background .08s, color .08s, border-color .08s;
}
.dd-action-btn:hover, .dd-action-btn:focus {
  background: var(--blau, #2B61A1);
  color: #fff;
  border-color: var(--blau, #2B61A1);
  text-decoration: none;
}
.dd-action-btn.dd-action-pdf {
  /* PDF leicht abgesetzt — neutraler Stil, hebt sich von App-Links ab */
  color: #4b4f58;
  border-color: #e1e3eb;
}
.dd-action-btn.dd-action-pdf:hover {
  background: #4b4f58;
  border-color: #4b4f58;
  color: #fff;
}
.dd-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--blau-l);
  color: var(--blau-d);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 3px;
}
.dd-badge-mandant {
  background: #f0f2f7;
  color: var(--muted);
  font-size: 10px;
  margin-left: 4px;
}
/* Quelle-Kennzeichen je Beleg-Treffer ("GEIST-Beleg" / "LabelWin-Beleg",
   Tom 04.09.2026). Bewusst DEZENT (Outline statt Fuellfarbe): es ist eine
   Herkunfts-Angabe, keine Warnung — der Mandanten-Badge daneben soll weiter
   die auffaelligere Marke bleiben. Variante von .dd-badge, deshalb wird die
   Klasse zusaetzlich gesetzt (class="dd-badge dd-badge-quelle"). */
.dd-badge-quelle {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  margin-left: 4px;
}
.dd-no-result {
  padding: 20px 18px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}
.dd-latenz {
  padding: 6px 18px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: right;
}
.dd-fehler {
  padding: 14px 18px;
  color: #b13434;
  font-size: 13.5px;
}
.dd-warn {
  padding: 8px 18px;
  background: var(--warn-bg);
  font-size: 12px;
  color: var(--warn);
  border-bottom: 1px solid #f0e0b0;
}
/* R130 (Tom 10.09.2026): Kopfzeile "Durchsucht: GI (...) · LabelWin (...)" */
.dd-quellen {
  padding: 6px 18px;
  font-size: 11.5px;
  color: #8A8F98;
  border-bottom: 1px solid #eef1f5;
}

/* Direktantwort-Karte */
.direkt-karte {
  margin: 0 14px 8px;
  background: var(--blau-l);
  border: 1px solid #c8d9f8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
}
.direkt-karte .dk-name { font-size: 16px; font-weight: 700; color: var(--blau-d); margin-bottom: 4px; }
.direkt-karte .dk-zeile { color: var(--ink); margin: 2px 0; }
.direkt-karte .dk-label { color: var(--muted); font-size: 11.5px; }

/* Vollseiten-Ergebnisse */
.ergebnis-bereich { margin-top: 36px; }
.erg-gruppe { margin-bottom: 22px; }
.erg-gruppe-titel {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--blau-d);
  border-bottom: 2px solid var(--blau);
  padding-bottom: 5px;
  margin-bottom: 8px;
}
table.erg-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}
.erg-table th {
  background: var(--blau);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
  padding: 7px 10px;
  text-align: left;
}
.erg-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.erg-table tbody tr:last-child td { border-bottom: none; }
.erg-table tbody tr:hover { background: var(--blau-l); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge-m {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
  background: #dde9fc;
  color: var(--blau-d);
}
.latenz-zeile {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  margin-top: 10px;
}

/* Detail-Karte (Klick auf einen Treffer) */
#ergebnis-vollseite{max-width:760px;margin:18px auto 40px;}
.detail-karte{background:#fff;border:1px solid #e2e7f0;border-radius:14px;
  box-shadow:0 4px 18px rgba(37,99,235,.10);padding:18px 22px;text-align:left;}
.detail-kopf{display:flex;align-items:center;gap:10px;margin:0 0 12px;
  padding-bottom:10px;border-bottom:1px solid #eef1f6;}
.detail-typ{font-size:16px;font-weight:700;color:#2B61A1;}
.detail-body{display:flex;flex-direction:column;gap:7px;}
.detail-zeile{font-size:15px;color:#1a2230;}
.detail-label{display:inline-block;min-width:130px;color:#8A8F98;font-weight:600;}
.detail-hinweis{margin-top:14px;font-size:12.5px;color:#8A8F98;font-style:italic;}

/* Tageszitat-Block (zwischen Search-Hero und Launcher-Kacheln) */
.tageszitat-wrap {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 14px 22px;
  border-left: 3px solid var(--blau-d);
  background: rgba(43,79,142,.05);
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tageszitat-zitat {
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}
.tageszitat-meta {
  font-size: 12px;
  color: var(--muted);
}
.tageszitat-quelle a {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}
.tageszitat-quelle a:hover {
  text-decoration: underline;
  color: var(--blau-d);
}
/* ^ .tageszitat-* ab hier ungenutzt (Zitat lebt jetzt im Info-Band, siehe unten).
   Bewusst NICHT geloescht: so stellt ein Rollback von index.html allein den
   alten Zustand vollstaendig wieder her. Entfernen erst, wenn das Band steht. */

/* =========================================================
   Launcher-Info-Band (#247)
   Dezenter Informations-Streifen zwischen Such-Hero/Willkommen
   und den App-Kacheln. Nur auf der Launcher-Masterseite.
   Slots: [Neuigkeit] [Geburtstag (gesperrt)] [Zitat]
   GEIST-CI: Royalblau-Akzente, kein Gruen.
   ========================================================= */
.launcher-infoband {
  /* Breite = Kachel-Grid (.launcher-section), damit die Kante buendig sitzt */
  max-width: 900px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(37, 99, 235, .06);
}
.infoband-item {
  display: flex;
  /* flex-start statt baseline: beim Umbruch ab 700px haengt .infoband-meta
     sonst optisch versetzt unter dem Text. */
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  /* Gleichmaessige Aufteilung; einzelner Slot nimmt die volle Breite */
  flex: 1 1 0;
  min-width: 0;              /* damit Text-Ellipsis im Flex-Kind greift */
  border-right: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.infoband-item:last-child { border-right: none; }
.infoband-icon {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--blau-d);
  opacity: .75;
}
.infoband-text {
  flex: 1 1 auto;
  min-width: 0;
  /* Auf breiten Schirmen einzeilig + dezent gekuerzt; Volltext via title-Tooltip.
     Ab 700px (siehe unten) bricht der Text vollstaendig um. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Neuigkeit: leichter Royalblau-Akzent links — wichtigster Slot */
.infoband-neuigkeit { border-left: 3px solid var(--blau); }
/* Zitat: kursiv, zurueckhaltend */
.infoband-zitat-text { font-style: italic; }
.infoband-meta {
  flex: 0 0 auto;            /* Autor/Quelle nie abschneiden */
  /* Deckel: ohne den quetscht ein langer Autorenname auf 700-900px den
     Zitat-Text auf 2-3 Woerter zusammen. */
  max-width: 40%;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.infoband-quelle a {
  color: var(--muted);
  text-decoration: none;
}
.infoband-quelle a:hover {
  text-decoration: underline;
  color: var(--blau-d);
}
/* Geburtstag: vorbereitet, heute deaktiviert (DSGVO-Gate).
   Warmer Gelbton aus dem bestehenden Token-Satz — kein Gruen. */
.infoband-geburtstag { border-left: 3px solid var(--warn); }

/* ---- Mobil: Slots untereinander, Text bricht um ---- */
@media (max-width: 700px) {
  .launcher-infoband {
    flex-direction: column;
    margin-top: 14px;
  }
  .infoband-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .infoband-item:last-child { border-bottom: none; }
  .infoband-text { white-space: normal; overflow: visible; }
  .infoband-meta { white-space: normal; }
}
@media (max-width: 420px) {
  .infoband-item { padding: 8px 12px; font-size: 12.5px; }
}

/* App-Launcher-Kacheln (unterhalb Suchheld) */
.launcher-section {
  max-width: 900px;
  margin: 36px auto 0;
}
.launcher-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 2px;
}
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.launcher-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 1px 2px rgba(20,40,80,.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.launcher-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(37,99,235,.14);
  border-color: var(--blau);
  text-decoration: none;
}
.launcher-ic { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.launcher-ttl { font-size: 15px; font-weight: 700; color: var(--blau-d); margin: 0 0 4px; }
.launcher-desc { font-size: 12.5px; color: #55607a; margin: 0; flex: 1; }
.launcher-go { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--blau); }

/* Admin-UI (Phase B) */
.btn-sm { padding: 4px 9px; font-size: 12px; }
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 18px 0 60px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}
.admin-title { font-size: 20px; font-weight: 700; color: var(--blau-d); margin: 0; }
.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.admin-meta strong, .admin-meta .mono { color: var(--ink); }
.admin-hint { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.admin-table { margin-top: 4px; }
.admin-form { margin-top: 4px; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 16px; }
.form-section-title { font-size: 14px; font-weight: 700; color: var(--blau-d);
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.form-label { display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--blau-d); flex: 1; min-width: 200px; }
.form-label-check { flex-direction: row; align-items: center; gap: 8px;
  font-weight: 400; color: var(--ink); cursor: pointer; margin-top: 22px; }
.form-input { border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px;
  font-size: 14px; outline: none; transition: border-color .15s; width: 100%; }
.form-input:focus { border-color: var(--blau); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
select.form-input { cursor: pointer; }
.form-hint { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.form-hint-block { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.modul-matrix { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.modul-check { display: flex; align-items: center; gap: 7px; font-size: 13px;
  cursor: pointer; padding: 7px 12px; background: var(--blau-l); border-radius: 7px;
  border: 1px solid #c8d9f8; user-select: none; }
.modul-check input[type=checkbox] { accent-color: var(--blau); width: 15px; height: 15px; }
.modul-check:hover { background: #dce9fc; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; margin-left: 6px; }
.badge-aktiv { background: #e3f5e9; color: #1a6630; }
.badge-inaktiv { background: #fdecea; color: #b13434; }
.badge-super { background: var(--blau-l); color: var(--blau-d); }
/* Warnung: kein Passwort gesetzt — rot, deutlich sichtbar */
.badge-warn-pw { background: #fdecea; color: #b13434; border: 1px solid #f5a0a0; margin-left: 4px; }
/* Button: Passwort setzen — rot umrandet, neutral Hintergrund */
.btn-warn-pw { background: #fff; color: #b13434; border-color: #f5a0a0; margin-left: 4px; }
.btn-warn-pw:hover { background: #fdecea; color: #8b2020; border-color: #b13434; }
.mono { font-family: Menlo, Consolas, monospace; font-size: .9em; }

/* Admin-Hub Tab-Navigation */
.admin-tabnav {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
}
.admin-tab {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  text-decoration: none;
  background: transparent;
  transition: background .1s, color .1s;
  margin-bottom: -2px;
}
.admin-tab:hover { color: var(--blau-d); background: var(--blau-l); text-decoration: none; }
.admin-tab-aktiv {
  color: var(--blau-d);
  background: #fff;
  border-color: var(--line);
  border-bottom-color: #fff;
}

/* Cron-/Job-Registry-Seite */
.cron-hinweis {
  background: var(--info-bg);
  border-left: 4px solid var(--info);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 20px;
}
.cron-gruppe { margin-bottom: 28px; }
.cron-gruppe-titel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cron-host-badge {
  display: inline-block;
  background: var(--blau);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9px;
  letter-spacing: .3px;
  text-transform: none;
}
.cron-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(37,99,235,.05);
}
.cron-card-inaktiv { opacity: .6; }
.cron-card-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cron-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blau-d);
  font-family: Menlo, Consolas, monospace;
}
.cron-card-zeitplan {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cron-card-zweck {
  font-size: 13px;
  color: #55607a;
  margin-bottom: 12px;
  line-height: 1.5;
}
.cron-edit-form { border-top: 1px solid var(--line); padding-top: 12px; }
.cron-edit-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.cron-edit-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--blau-d);
}
.cron-edit-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.cron-edit-input:focus {
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
/* #510: Ein Feld, dessen Eingabe nichts bewirkt, sieht auch nicht mehr
   beschreibbar aus. Bewusst NUR gedaempft (kein Rot): es ist kein Fehler,
   sondern eine Zustaendigkeit — der Wert wird weiter angezeigt und beim
   Speichern unveraendert mitgeschickt (readonly, nicht disabled). */
.cron-edit-input--gesperrt {
  background: var(--bg-soft, #f4f5f7);
  color: var(--grau, #8A8F98);
  cursor: not-allowed;
}
.cron-edit-input--gesperrt:focus {
  border-color: var(--line);
  box-shadow: none;
}
.cron-wirkt-nicht {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--grau, #8A8F98);
}
.cron-edit-textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
.cron-edit-textarea:focus {
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.cron-edit-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cron-geaendert {
  font-size: 11.5px;
  color: var(--muted);
}

/* Admin-Kachel (Superadmin-only, abgegrenzt von App-Kacheln) */
.launcher-card-admin {
  border-color: #d4ddee;
  background: #f8faff;
  order: 999;  /* Tom 22.06.: Admin immer als letzte Kachel — neue Apps schieben sich davor */
}
.launcher-card-admin:hover {
  border-color: var(--blau);
  background: var(--blau-l);
}

/* Cron-Toggle-Button */
.btn-deaktivieren {
  background: #b13434;
  border-color: #b13434;
  color: #fff;
}
.btn-deaktivieren:hover { background: #8c2222; border-color: #8c2222; }
.btn-aktivieren {
  background: var(--blau);
  border-color: var(--blau);
  color: #fff;
}
.btn-aktivieren:hover { background: var(--blau-d); border-color: var(--blau-d); }

/* Deaktiviert-Banner über der Karte */
.cron-card-deaktiviert-banner {
  background: #fdecea;
  color: #b13434;
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
  padding: 3px 10px;
  margin-bottom: 8px;
  display: inline-block;
}

/* Kategorie-Gruppe Überschrift */
.cron-kat-titel {
  font-size: 13px;
  font-weight: 700;
  color: var(--blau-d);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blau);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cron-kat-anzahl {
  font-size: 11px;
  font-weight: 600;
  background: var(--blau-l);
  color: var(--blau-d);
  border-radius: 10px;
  padding: 1px 9px;
}
.cron-kat-sektion {
  margin-bottom: 32px;
}

/* Badge Bericht / Hintergrund je Karte */
.badge-bericht {
  background: #eaf2fb;
  color: #0b6aa2;
  border: 1px solid #b8d8f5;
}
.badge-hintergrund {
  background: #f0f2f7;
  color: #55607a;
  border: 1px solid #d4ddee;
}

/* Host-Sub-Label (dezent, kleiner) */
.cron-host-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: Menlo, Consolas, monospace;
  background: #f0f2f7;
  border-radius: 4px;
  padding: 1px 7px;
}

/* Toggle-Zeile in der Karte (rechts bündig) */
.cron-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cron-toggle-hinweis {
  font-size: 12px;
  color: var(--warn);
  background: var(--warn-bg);
  border-left: 3px solid var(--warn);
  padding: 5px 10px;
  border-radius: 4px;
  margin-top: 8px;
  display: none;
}

/* geist-ui Toast + Confirm — CSS-Basis (identisch zu zahlungsabgleich) */
#geist-toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
  max-width: 520px;
  pointer-events: none;
}
.geist-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(37,99,235,.16), 0 1px 4px rgba(0,0,0,.08);
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .22s, transform .22s;
  pointer-events: all;
  white-space: pre-line;
}
.geist-toast-visible { opacity: 1; transform: translateY(0); }
.geist-toast-out { opacity: 0; transform: translateY(-10px); }
.geist-toast-info  { border-left: 4px solid var(--info); }
.geist-toast-success { border-left: 4px solid var(--blau); }
.geist-toast-warn  { border-left: 4px solid var(--warn); }
.geist-toast-error { border-left: 4px solid #b13434; }
.geist-toast-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.geist-toast-msg  { flex: 1; }
.geist-toast-close {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 13px; padding: 0 0 0 6px; line-height: 1; flex-shrink: 0;
}
.geist-confirm-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(26,34,48,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.geist-confirm-visible { opacity: 1; }
.geist-confirm-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 40px rgba(37,99,235,.18), 0 2px 8px rgba(0,0,0,.10);
  padding: 26px 28px 20px; max-width: 400px; width: 90%; text-align: center;
}
.geist-confirm-msg {
  font-size: 15px; color: var(--ink); margin-bottom: 20px;
  line-height: 1.5; white-space: pre-line;
}
.geist-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.geist-confirm-btn {
  padding: 8px 22px; border-radius: 7px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background .12s;
}
.geist-confirm-btn:hover { background: #f0f3fa; }
.geist-confirm-ok { background: var(--blau); border-color: var(--blau); color: #fff; }
.geist-confirm-ok:hover { background: var(--blau-d); }
.geist-confirm-ok-gefahr { background: #b13434; border-color: #b13434; }
.geist-confirm-ok-gefahr:hover { background: #8c2222; }
.geist-confirm-cancel { }

/* PDF-Vorschau */
.pdf-vorschau-bereich{margin-top:18px;border-top:1px solid #eef1f6;padding-top:14px;}
.pdf-lade-hinweis{color:#8A8F98;font-size:13px;padding:8px 0;}
.pdf-nicht-erreichbar{
  background:#fff7e6;border-left:4px solid #b8860b;
  padding:10px 14px;border-radius:6px;
  font-size:13.5px;color:#7a5800;
}
.pdf-vorschau-wrap{display:flex;flex-direction:column;gap:10px;}
.pdf-toolbar{display:flex;gap:10px;align-items:center;}
.pdf-object{
  width:100%;
  height:520px;
  border:1px solid #e2e7f0;
  border-radius:8px;
  display:block;
}
.pdf-fallback{
  padding:18px;
  text-align:center;
  font-size:13.5px;
  color:#8A8F98;
}

/* Artikelbilder (#32) — Thumbnail im Dropdown + Detail-Karte */
.dd-item-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--blau-l);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: center;
}
.dd-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.dd-item-thumb-placeholder {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}
.detail-bild-bereich {
  margin-top: 16px;
  border-top: 1px solid #eef1f6;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-bild-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.detail-bild-thumb {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--blau-l);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-bild-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 7px;
}
.detail-bild-link {
  font-size: 12.5px;
  color: var(--blau);
}
.detail-bild-fehlt {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================ Cron-Filter (Admin) */
.cron-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.cron-filter-input {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.cron-filter-input:focus { outline: 2px solid #2B61A1; outline-offset: -2px; border-color: #2B61A1; }
.cron-filter-chips {
  display: inline-flex;
  gap: 4px;
}
.cron-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: background .12s, color .12s, border-color .12s;
}
.cron-chip:hover { background: #f1f5f9; }
.cron-chip.is-active { background: #2B61A1; color: #fff; border-color: #2B61A1; }
.cron-chip-clear { border-style: dashed; color: #64748b; }
.cron-filter-trefferzahl {
  font-size: 13px;
  color: #2B61A1;
  font-weight: 500;
  margin-left: auto;
}

/* ===========================================================================
 * Master-Portal Edit-Modus (Kachel-Anordnung pro User)
 * Aktiv wenn body.edit-mode gesetzt ist. Drag&Drop via HTML5 + Augen-Toggle.
 * =========================================================================== */
.launcher-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}
.launcher-actions { display: flex; gap: 8px; align-items: center; }
.ko-reset-btn { color: #b91c1c; }
.ko-reset-btn:hover { background: #fef2f2; color: #991b1b; }

/* Edit-Mode global */
body.edit-mode .launcher-card {
  cursor: grab;
  outline: 2px dashed #2B61A1;
  outline-offset: 2px;
  position: relative;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.edit-mode .launcher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .18);
}
body.edit-mode .launcher-card:active { cursor: grabbing; }
body.edit-mode .launcher-card[data-fixed] {
  cursor: default;
  outline-color: #cbd5e1;
  opacity: .6;
}

/* Drag-States */
.launcher-card.dragging {
  opacity: .45;
  transform: rotate(-1deg);
}
.launcher-card.drop-target {
  border: 3px solid #2B61A1;
  border-radius: 12px;
  background: #eff6ff;
}

/* Drag-Handle (oben links, ⠿) */
.kachel-drag-handle {
  position: absolute;
  top: 6px;
  left: 8px;
  color: #2B61A1;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: grab;
  user-select: none;
}

/* Eye-Toggle (oben rechts, 👁/🚫) */
.kachel-eye-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  color: #2B61A1;
  transition: background .12s, border-color .12s;
}
.kachel-eye-toggle:hover { background: #eff6ff; border-color: #bfdbfe; }

/* Versteckte Kachel (im Edit-Mode ausgegraut sichtbar) */
.kachel-versteckt {
  opacity: .4;
  background-color: #f5f5f5;
  outline-color: #94a3b8 !important;
}
.kachel-versteckt .launcher-ttl,
.kachel-versteckt .launcher-desc {
  text-decoration: line-through;
  color: #64748b;
}

/* ---- Mobile: max-width 480px (QA-Fix: H-Scroll, Topbar-Überlauf, Kacheln 1-spaltig) ---- */
@media (max-width: 480px) {
  .topbar {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 6px;
  }
  .topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
  }
  .topnav .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .launcher-grid {
    grid-template-columns: 1fr;
  }
  .launcher-actions {
    flex-wrap: wrap;
  }
  .launcher-toolbar {
    flex-wrap: wrap;
  }
  .search-hero {
    margin-top: 20px;
  }
  .search-input {
    font-size: 14px;
  }
  .wrap {
    padding: 14px 12px 60px;
  }
}


/* --- #432: Tageszitat im Kopf, neben dem Logo (nur Startseite) -------------
   Tom 02.09.2026: "es kommen immer dieselben zitate und sind auch
   abgeschnitten. Platziere die zitate ganz oben neben dem logo im header
   (nur auf der startseite)".
   Bewusst KEIN text-overflow/ellipsis: das Abschneiden war der zweite Teil
   der Beschwerde. Der Text darf umbrechen; auf schmalen Schirmen wird er
   ausgeblendet, statt den Kopf zu sprengen. */
.topbar-zitat {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 18px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--blau-d);
  opacity: .85;
}
.topbar-zitat-text { font-style: italic; }
.topbar-zitat-autor { white-space: nowrap; opacity: .7; margin-left: 6px; }
@media (max-width: 1100px) { .topbar-zitat { display: none; } }
