/* Werko Office – gemeinsame Gestaltung (hell, ruhig, wie man es von Office kennt) */
:root {
  --wo-blau: #2563eb; --wo-gruen: #217346; --wo-rot: #c2410c; --wo-gelb: #b45309; --wo-lila: #7c3aed;
  --wo-text: #1f2937; --wo-text2: #6b7280; --wo-rand: #e5e7eb; --wo-flaeche: #ffffff; --wo-grund: #f3f4f6; --wo-hover: #f1f5f9;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Aptos, Calibri, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--wo-grund); color: var(--wo-text); font-size: 14px; }
button { font: inherit; }
.wo-knopf { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--wo-rand); background: var(--wo-flaeche); color: var(--wo-text); cursor: pointer; }
.wo-knopf:hover { background: var(--wo-hover); }
.wo-knopf.haupt { background: var(--wo-blau); border-color: var(--wo-blau); color: #fff; }
.wo-knopf svg { width: 16px; height: 16px; }
.wo-meldung { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #111827; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 1000; }
.wo-meldung[hidden] { display: none; }

/* ───────── Konto, Einwilligung, Werbeleiste (konto-ui.js) ───────── */
.wo-modal-huelle { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.wo-modal { background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); width: 100%; max-width: 480px; padding: 24px 24px 18px; max-height: calc(100vh - 32px); overflow: auto; }
.wo-modal.breit { max-width: 640px; }
.wo-modal h2 { margin: 0 0 12px; font-size: 19px; }
.wo-modal p { margin: 0 0 12px; line-height: 1.5; color: #374151; }
.wo-modal .wo-klein { font-size: 12.5px; color: var(--wo-text2); }
.wo-modal a { color: var(--wo-blau); }
.wo-modal-knoepfe { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.wo-k { height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--wo-rand); background: #fff; color: var(--wo-text); font: 600 13.5px inherit; cursor: pointer; }
.wo-k:hover { background: var(--wo-hover); }
.wo-k.haupt { background: var(--wo-blau); border-color: var(--wo-blau); color: #fff; }
.wo-k.haupt:hover { filter: brightness(1.08); }
.wo-ew-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--wo-rand); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.wo-ew-zeile input { margin-top: 3px; width: 16px; height: 16px; } .wo-ew-zeile.fest { cursor: default; background: #f9fafb; }
.wo-ew-zeile b { display: block; font-size: 14px; } .wo-ew-zeile small { color: var(--wo-text2); font-size: 12.5px; line-height: 1.4; }
.wo-code { font: 700 28px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; text-align: center; background: #eff6ff; color: #1e40af; border-radius: 10px; padding: 16px; margin: 6px 0 12px; }
.wo-stufe { display: inline-block; padding: 3px 10px; border-radius: 20px; background: #ecfdf5; color: #065f46; font-size: 12.5px; font-weight: 600; }
.wo-stufe.kostenlos { background: #fef3c7; color: #92400e; }
.wo-konto-feld { display: flex; align-items: center; gap: 10px; width: 100%; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 10px; padding: 9px 10px; cursor: pointer; text-align: left; }
.wo-konto-feld:hover { background: rgba(255,255,255,.18); }
.wo-konto-feld b { display: block; font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-konto-feld small { display: block; font-size: 11px; opacity: .75; }
.wo-avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1f2937; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.wo-avatar-leer { background: rgba(255,255,255,.25); color: #fff; }
.wo-werbung { position: fixed; left: 0; right: 0; bottom: 0; background: #f8fafc; border-top: 1px solid var(--wo-rand); display: flex; align-items: stretch; z-index: 900; }
.wo-werbung-platz { flex: 1; min-width: 0; }
.wo-werbung-inhalt { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; color: #1f2937; text-decoration: none; font-size: 14px; padding: 0 16px; min-width: 0; }
.wo-werbung-inhalt img { max-height: calc(100% - 10px); max-width: 40%; object-fit: contain; }
.wo-werbung-inhalt:hover span { text-decoration: underline; }
.wo-werbung-rand { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 2px; padding: 0 12px; font-size: 11px; color: #9ca3af; border-left: 1px solid var(--wo-rand); }
.wo-werbung-rand a { color: var(--wo-blau); text-decoration: none; font-weight: 600; }
.wo-modal h2 { display: block; text-transform: none; letter-spacing: 0; color: var(--wo-text); font-weight: 700; }
.wo-ew-zeile input { flex: 0 0 16px; }
.wo-avatar { flex: 0 0 30px; width: 30px !important; height: 30px !important; font-size: 14px; }
.seite .wo-konto-feld { padding: 9px 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; }
.seite .wo-konto-feld span:last-child { min-width: 0; }
[hidden] { display: none !important; }

.wo-modal .wo-feld { display: block; width: 100%; box-sizing: border-box; font: inherit; padding: 9px 11px; margin: 8px 0; border: 1px solid #d1d5db; border-radius: 8px; }
.wo-modal .wo-haken { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; cursor: pointer; }
.wo-modal textarea.ocr-text { min-height: 260px; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
/* KI-Assistent (alle Programme) */
.wo-ki-knopf .ki-glanz, .v-ki { background: linear-gradient(120deg, #a78bfa, #f472b6, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.wo-ki-knopf { font-weight: 600; }
.ki-dialog { border: 0; border-radius: 16px; padding: 0; width: min(94vw, 560px); box-shadow: 0 30px 80px rgba(17,24,58,.35); color: #1f2937; font: 14px/1.5 -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.ki-dialog.breit { width: min(96vw, 760px); } .ki-dialog::backdrop { background: rgba(15,18,40,.45); }
.ki-kopf { display: flex; align-items: center; gap: 10px; padding: 16px 20px 6px; } .ki-kopf h3 { margin: 0; font-size: 17px; }
.ki-stern { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, #8b5cf6, #ec4899 60%, #f97316); }
.ki-inhalt { padding: 6px 20px 4px; max-height: 70vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.ki-fuss { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 16px; flex-wrap: wrap; }
.ki-k { font: 600 13px inherit; padding: 8px 14px; border-radius: 9px; border: 1px solid #d1d5db; background: #fff; color: #1f2937; cursor: pointer; }
.ki-k.haupt { border: 0; color: #fff; background: linear-gradient(120deg, #7c3aed, #db2777); } .ki-k:disabled { opacity: .6; cursor: wait; }
.ki-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ki-karte { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 11px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.ki-karte span { font-size: 18px; } .ki-karte b { font-size: 13px; } .ki-karte:hover { border-color: #c4b5fd; } .ki-karte.an { border-color: #8b5cf6; background: #f5f3ff; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.ki-details { display: flex; flex-direction: column; gap: 6px; } .ki-details label { font-size: 12.5px; font-weight: 600; color: #4b5563; }
.ki-dialog textarea, .ki-dialog input[type=text], .ki-dialog input[type=password], .ki-dialog select { font: inherit; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 9px; width: 100%; box-sizing: border-box; }
.ki-ergebnis { min-height: 160px; background: #fafaff; border-color: #ddd6fe !important; }
.ki-aktionen { display: flex; gap: 8px; flex-wrap: wrap; } .ki-status { margin: 0; font-size: 13px; color: #6d28d9; min-height: 1em; } .ki-klein { margin: 0; font-size: 12.5px; color: #6b7280; }
.ki-anbieter { display: flex; flex-direction: column; gap: 6px; } .ki-anbieter label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ki-felder { display: flex; flex-direction: column; gap: 6px; } .ki-felder label { font-size: 12.5px; font-weight: 600; color: #4b5563; }
.ki-pliste { display: flex; flex-direction: column; gap: 6px; } .ki-pzeile { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 10px; }
.ki-psym { font-size: 18px; text-align: center; } .ki-pzeile small { display: block; color: #6b7280; font-size: 12px; }

/* Anmeldung (Pflicht): Vollbild über dem ganzen Fenster */
html.wo-gesperrt body > *:not(.wo-pflicht):not(.wo-modal-huelle) { visibility: hidden; }
.wo-pflicht { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto;
  background: radial-gradient(1200px 600px at 15% 0%, #e0e7ff 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #fce7f3 0%, transparent 55%), #f8fafc; }
.wo-pflicht-box { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 34px 30px 24px; box-shadow: 0 30px 80px -30px rgba(30,40,110,.35), 0 0 0 1px rgba(15,23,42,.05); text-align: center; }
.wo-pflicht-logo { display: grid; grid-template-columns: repeat(5, 14px); gap: 5px; justify-content: center; margin-bottom: 18px; }
.wo-pflicht-logo i { width: 14px; height: 14px; border-radius: 4px; } .wo-pflicht-logo i:nth-child(1) { background: #4f8cff; } .wo-pflicht-logo i:nth-child(2) { background: #2fd18b; }
.wo-pflicht-logo i:nth-child(3) { background: #8b5cf6; } .wo-pflicht-logo i:nth-child(4) { background: #ff5a5f; } .wo-pflicht-logo i:nth-child(5) { background: #ffb347; }
.wo-pflicht h1 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.01em; }
.wo-pflicht-text { color: var(--wo-text2); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
.wo-pflicht-wahl { display: flex; flex-direction: column; gap: 10px; }
.wo-pflicht-wahl[hidden], .wo-pflicht-warten[hidden] { display: none; }
.wo-pflicht-k { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 12px; border: 1px solid var(--wo-rand); background: #fff; font: 600 14.5px inherit; color: var(--wo-text); cursor: pointer; transition: background .15s, box-shadow .15s; }
.wo-pflicht-k:hover { background: #f8fafc; box-shadow: 0 6px 16px -10px rgba(30,40,110,.4); }
.wo-pflicht-k.google { border-color: #dadce0; }
.wo-pflicht-k.haupt { background: #111827; border-color: #111827; color: #fff; } .wo-pflicht-k.haupt:hover { background: #1f2937; }
.wo-pflicht-oder { display: flex; align-items: center; gap: 10px; color: var(--wo-text2); font-size: 12.5px; margin: 6px 0 0; }
.wo-pflicht-oder::before, .wo-pflicht-oder::after { content: ''; flex: 1; border-top: 1px solid var(--wo-rand); }
.wo-pflicht-status { min-height: 18px; margin: 12px 0 0; color: #b91c1c; font-size: 13px; }
.wo-pflicht-warten p { color: var(--wo-text2); font-size: 14px; }
.wo-pflicht-zeile { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wo-pflicht-spinner { width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid #e0e7ff; border-top-color: #4f46e5; animation: wo-drehen .9s linear infinite; }
@keyframes wo-drehen { to { transform: rotate(360deg); } }
.wo-pflicht-fuss { margin: 18px 0 0; color: var(--wo-text2); } .wo-pflicht-fuss a { color: inherit; }
