/* ============================================
   FoxiCloud 3.0 - Neue Oberflächenteile (assets/v3.css)
   Funktionen wählen, Ansicht wählen, Karte & Routen, Desktop-Ansicht,
   Fenster-Modus (embed) und FoxiCloud-Branding
   ============================================ */

/* ---------- Branding & Copyright ---------- */
.fc-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; font-size: .74rem; color: var(--text-muted); line-height: 1.5; }
.fc-copy a { color: inherit; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.fc-copy a:hover { color: var(--primary); }
.fc-copy .fc-dot { font-style: normal; opacity: .6; }
.fc-brand-ico { width: 13px; height: 13px; color: var(--primary); flex-shrink: 0; }
.fc-copy-sidebar { padding: 4px 12px 10px; font-size: .68rem; }
.fc-copy-footer { margin-top: 8px; color: rgba(255,255,255,.7); font-size: .68rem; gap: 0 5px; }
.fc-copy-footer .fc-brand-ico { width: 11px !important; height: 11px !important; }
.lp-auth .fc-copy-footer { max-width: 100%; opacity: .85; }
.lp-auth .fc-copy-footer:hover { opacity: 1; }
.fc-copy-footer a:hover { color: #fff; }
.fc-copy-footer .fc-brand-ico { color: #fff; }
.fc-copy-admin { padding: 10px 6px 0; justify-content: flex-start; }
.fc-copy-inline { justify-content: flex-start; }
.auth-footer .fc-copy-inline { justify-content: center; margin-top: 6px; }
.brand-preview { padding: 10px 12px; border: 1px dashed var(--border-color); border-radius: 10px; background: var(--hover-bg); }
.fc-about { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--hover-bg); border: 1px solid var(--border-color); }
.fc-about-logo { width: 54px; height: 54px; color: var(--primary); flex-shrink: 0; }
.fc-about-logo svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 16px rgba(var(--primary-rgb), .35)); }
.fc-about b { display: block; font-size: 1rem; }
.fc-about small { display: block; color: var(--text-muted); font-size: .78rem; }
.fc-about a { font-size: .8rem; font-weight: 700; }

/* ---------- Funktionen wählen ---------- */
.apps-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.app-pick { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--hover-bg); cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.app-pick input { position: absolute; opacity: 0; pointer-events: none; }
.app-pick.on { border-color: rgba(var(--primary-rgb), .45); background: var(--active-bg); }
.app-pick.locked { opacity: .55; cursor: not-allowed; }
.app-pick:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.ap-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--card-bg); color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-pick.on .ap-ic { color: var(--primary); }
.ap-tx { flex: 1; min-width: 0; }
.ap-tx b { display: block; font-size: .9rem; }
.ap-tx small { display: block; color: var(--text-muted); font-size: .74rem; line-height: 1.3; margin-top: 1px; }
.ap-sw { width: 36px; height: 21px; border-radius: 11px; background: var(--border-color); position: relative; flex-shrink: 0; transition: background .15s; }
.ap-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.app-pick.on .ap-sw { background: var(--primary); }
.app-pick.on .ap-sw::after { transform: translateX(15px); }

/* ---------- Ansicht wählen ---------- */
.view-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.vc { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 16px; border: 2px solid var(--border-color); cursor: pointer; background: var(--hover-bg); transition: border-color .15s; }
.vc input { position: absolute; opacity: 0; pointer-events: none; }
.vc.sel, .vc:has(input:checked) { border-color: var(--primary); background: var(--active-bg); }
.vc.off { opacity: .5; cursor: not-allowed; }
.vc small { color: var(--text-muted); font-size: .76rem; line-height: 1.35; }
.vc-pic { height: 74px; border-radius: 10px; margin-bottom: 6px; position: relative; overflow: hidden; border: 1px solid var(--border-color); background: var(--card-bg); }
.vc-cloud i { position: absolute; left: 0; top: 0; bottom: 0; width: 26%; background: var(--sidebar-bg); border-right: 1px solid var(--border-color); }
.vc-cloud b { position: absolute; left: 32%; right: 8%; top: 14%; height: 18%; border-radius: 4px; background: rgba(var(--primary-rgb), .25); box-shadow: 0 22px 0 -2px var(--border-color), 0 40px 0 -2px var(--border-color); }
.vc-desk { background: linear-gradient(135deg, #312e81, #7c3aed 60%, #db2777); }
.vc-desk i { position: absolute; left: 12%; top: 12%; width: 52%; height: 52%; border-radius: 5px; background: var(--card-bg); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.vc-desk b { position: absolute; left: 38%; top: 30%; width: 50%; height: 44%; border-radius: 5px; background: var(--card-bg); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.vc-desk em { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: rgba(15,15,20,.75); }
@media (max-width: 600px) { .view-choice { grid-template-columns: 1fr; } }

/* Desktop-Umschalter nur auf großen Bildschirmen */
.desk-switch { display: none; }
@media (min-width: 1024px) and (min-height: 600px) and (hover: hover) and (pointer: fine) { .desk-switch { display: inline-flex; } }

/* ---------- Fenster-Modus (Cloud im Desktop-Fenster) ---------- */
.is-embed .sidebar, .is-embed .sb-backdrop, .is-embed .mobile-only, .is-embed .notif-btn, .is-embed .imp-bar { display: none !important; }
.is-embed .topbar { min-height: 50px; padding: 6px 12px; }
.is-embed .view-pad { padding: 16px 18px 90px; }
.is-embed .radio-bar { left: 12px; width: calc(100vw - 24px); bottom: 12px; }
.embed-files .sidebar { display: flex !important; width: 210px; }
.embed-files .sidebar .sb-head, .embed-files .sidebar .sb-me, .embed-files .sidebar .fc-copy, .embed-files .sb-maint { display: none; }
.embed-files .sidebar .sb-new { padding-top: 12px; }
.embed-files .nav-sep ~ .nav-item:not([data-nav="storage"]):not([data-nav="activity"]) { display: none; }
.embed-files .nav-item[data-nav="home"], .embed-files .nav-item[data-nav="photos"], .embed-files .nav-item[data-nav="activity"] { display: none; }
.embed-files .sb-quota { padding: 10px 14px; }
.embed-map .topbar, .embed-weather .topbar .search-box, .embed-radio .topbar .search-box { display: none; }
@media (max-width: 820px) {
    .embed-files .topbar .mobile-only { display: inline-flex !important; }
    .embed-files .app.sb-open .sb-backdrop { display: block !important; }
}

/* ---------- Gesperrte/ausgeschaltete Bereiche ---------- */
.addr-acts { margin-top: 6px; }

/* ============================================
   KARTE
   ============================================ */
.view.view-map { overflow: hidden; display: flex; }
.map-wrap { display: flex; flex: 1; min-height: 0; height: 100%; width: 100%; }
.map-panel { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-color); background: var(--card-bg); min-height: 0; z-index: 2; transition: height .25s ease; }
.mp-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.mp-head h1 { font-size: 1.25rem; font-weight: 900; letter-spacing: -.4px; display: flex; gap: 9px; align-items: center; flex: 1; }
.mp-head h1 i { color: var(--primary); }
.mp-collapse { display: none; }
.mp-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--border-color); }
.mp-tabs button { flex: 1; border: none; background: none; padding: 10px 4px; font-size: .8rem; font-weight: 700; color: var(--text-muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.mp-tabs button i { margin-right: 3px; }
.mp-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.mp-body { flex: 1; overflow-y: auto; padding: 14px 14px 40px; scrollbar-width: thin; }
.mp-prof { display: flex; width: 100%; margin-bottom: 12px; }
.mp-prof button { flex: 1; padding: 8px 6px; }
.wp-list { display: flex; flex-direction: column; gap: 6px; position: relative; }
.wp { display: flex; align-items: center; gap: 6px; }
.wp-dot { width: 26px; height: 26px; border-radius: 50%; background: #78716c; color: #fff; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wp-dot.start { background: #16a34a; }
.wp-dot.end { background: var(--primary); }
.wp-field { flex: 1; min-width: 0; position: relative; }
.wp-field .input { width: 100%; padding: 8px 10px; font-size: .88rem; }
.wp-sp { width: 28px; flex-shrink: 0; }
.wp .icon-btn.sm { width: 28px; height: 28px; flex-shrink: 0; }
.wp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ac-dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 16px 40px var(--shadow-color); padding: 4px; max-height: 320px; overflow-y: auto; }
.ac-it { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; padding: 8px 9px; border-radius: 9px; text-align: left; cursor: pointer; color: var(--text-primary); }
.ac-it:hover, .ac-it.active { background: var(--hover-bg); }
.ac-it > i { width: 18px; text-align: center; color: var(--text-muted); }
.ac-it span { min-width: 0; }
.ac-it b { display: block; font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-it small { display: block; font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-empty { padding: 10px; color: var(--text-muted); font-size: .84rem; }
.mp-loading { padding: 16px 4px; color: var(--text-muted); font-size: .88rem; }
.mp-hint { margin-top: 14px; font-size: .78rem; color: var(--text-muted); line-height: 1.45; }
.mp-hint i { color: #f59e0b; }
.mp-attr { margin-top: 12px; font-size: .7rem; color: var(--text-muted); }
.rt-alts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rt-alt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border-radius: 13px; border: 1.5px solid var(--border-color); background: var(--card-bg); cursor: pointer; text-align: left; color: var(--text-primary); }
.rt-alt b { font-size: 1.15rem; font-weight: 900; letter-spacing: -.3px; }
.rt-alt span { font-size: .82rem; color: var(--text-secondary); }
.rt-alt small { font-size: .74rem; color: var(--text-muted); }
.rt-alt.sel { border-color: var(--primary); background: var(--active-bg); }
.rt-alt.sel b { color: var(--primary); }
.rt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.rt-legs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--text-muted); margin-top: 6px; }
.rt-steps { list-style: none; display: flex; flex-direction: column; }
.rt-step { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 9px; cursor: pointer; font-size: .85rem; border-bottom: 1px solid var(--border-color); }
.rt-step:hover { background: var(--hover-bg); }
.rt-step > i { width: 20px; text-align: center; color: var(--primary); margin-top: 3px; }
.rt-step span { flex: 1; min-width: 0; }
.rt-step em { font-style: normal; font-size: .76rem; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }
.mp-search { position: relative; margin-bottom: 10px; }
.mp-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; }
.mp-search .input { width: 100%; padding-left: 34px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 12px; }
.mp-chips small { margin-right: 2px; }
.chip { border: 1px solid var(--border-color); background: var(--card-bg); border-radius: 20px; padding: 4px 10px; font-size: .76rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.mp-list { display: flex; flex-direction: column; gap: 2px; }
.mp-item { display: flex; align-items: center; gap: 4px; border-radius: 11px; }
.mp-item:hover { background: var(--hover-bg); }
button.mp-item, .mp-item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 8px; text-align: left; cursor: pointer; color: var(--text-primary); border-radius: 11px; width: 100%; }
.mp-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--hover-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; }
.mp-item b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-item small { display: block; font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-item span { min-width: 0; }
.mp-item .icon-btn.sm { width: 30px; height: 30px; flex-shrink: 0; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.icon-pick button { height: 38px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-secondary); cursor: pointer; }
.icon-pick button.sel { border-color: var(--primary); background: var(--active-bg); color: var(--primary); }

.map-main { flex: 1; min-width: 0; position: relative; }
.map-el { position: absolute; inset: 0; background: #e5e3df; }
[data-theme="dark"] .map-el { background: #1a1a1a; }
[data-theme="dark"] .map-el.map-std .leaflet-tile-pane { filter: brightness(.62) invert(1) contrast(2.6) hue-rotate(200deg) saturate(.3) brightness(.75); }
.map-tools { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; flex-direction: column; gap: 6px; }
.map-tool { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-secondary); box-shadow: 0 6px 18px var(--shadow-color); cursor: pointer; font-size: .95rem; }
.map-tool:hover { color: var(--primary); }
.leaflet-container { font-family: inherit; }
.leaflet-bar a, .leaflet-control-zoom a { background: var(--card-bg) !important; color: var(--text-primary) !important; border-color: var(--border-color) !important; }
.leaflet-control-zoom { border: 1px solid var(--border-color) !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 6px 18px var(--shadow-color) !important; }
.leaflet-control-attribution { font-size: .65rem; }
[data-theme="dark"] .leaflet-control-attribution, [data-theme="dark"] .leaflet-control-scale-line { background: rgba(28,25,23,.8) !important; color: #d6d3d1; }
[data-theme="dark"] .leaflet-control-attribution a { color: #fca5a5; }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--card-bg); color: var(--text-primary); box-shadow: 0 16px 40px var(--shadow-color); }
.leaflet-popup-tip { background: var(--card-bg); }
.leaflet-popup-content { margin: 12px 14px; }
.mp-pop b { display: block; font-size: .92rem; margin-bottom: 2px; }
.mp-pop small { display: block; font-size: .76rem; color: var(--text-muted); }
.mp-pop .mp-note { color: var(--text-secondary); margin-top: 4px; white-space: pre-wrap; }
.mp-pop-acts { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; border-top: 1px solid var(--border-color); padding-top: 6px; }
.mp-pop-acts button { display: flex; align-items: center; gap: 8px; border: none; background: none; padding: 6px 6px; border-radius: 8px; text-align: left; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--text-primary); }
.mp-pop-acts button:hover { background: var(--hover-bg); color: var(--primary); }
.mp-pop-acts i { width: 16px; text-align: center; color: var(--primary); }
.mk { position: relative; width: 30px; height: 40px; }
.mk::before { content: ''; position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #78716c; box-shadow: 0 4px 10px rgba(0,0,0,.35); border: 2px solid #fff; box-sizing: border-box; }
.mk > span, .mk > i { position: absolute; left: 0; right: 0; top: 6px; text-align: center; color: #fff; font-weight: 800; font-size: .78rem; z-index: 1; font-style: normal; }
.mk-wp.start::before { background: #16a34a; }
.mk-wp.end::before { background: var(--primary); }
.mk-place, .mk-search { width: 28px; height: 36px; }
.mk-place::before, .mk-search::before { width: 28px; height: 28px; margin-left: -14px; background: var(--c, #dc2626); }
.mk-search::before { background: #2563eb; }
.mk-place > i, .mk-search > i { top: 7px; font-size: .7rem; font-weight: 900; }
.mk-me { width: 20px; height: 20px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25), 0 3px 8px rgba(0,0,0,.35); }

@media (max-width: 820px) {
    .map-wrap { flex-direction: column-reverse; }
    .map-panel { width: 100%; height: 48%; border-right: none; border-top: 1px solid var(--border-color); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px var(--shadow-color); }
    .map-panel.collapsed { height: 118px; }
    .map-panel.collapsed .mp-body { overflow: hidden; }
    .mp-collapse { display: inline-flex; }
    .map-panel.collapsed .mp-collapse i { transform: rotate(180deg); }
    .mp-head { padding: 10px 14px 4px; }
    .mp-head h1 { font-size: 1.05rem; }
    .map-main { min-height: 0; }
    .map-tools { top: 10px; right: 10px; }
}

/* ============================================
   DESKTOP-ANSICHT
   ============================================ */
.desk-pending .app { visibility: hidden; }
.desk-on .app { display: none; }
.desk-on .radio-bar { display: none !important; }
.desk-on .toasts, .desk-on .uploads { bottom: 64px; }
.desk { position: fixed; inset: 0; z-index: 45; overflow: hidden; user-select: none; -webkit-user-select: none; font-size: .9rem; }
.desk-wall { position: absolute; inset: 0; background-size: cover; transition: background .4s; }
.desk.drop-on .desk-wall { box-shadow: inset 0 0 0 4px rgba(255,255,255,.7); filter: brightness(1.08); }
.desk-icons { position: absolute; left: 0; top: 0; right: 0; bottom: 52px; }
.dk-icon { position: absolute; width: 88px; padding: 8px 4px 6px; border: 1px solid transparent; border-radius: 12px; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: default; color: #fff; transition: background .12s; }
.dk-icon:hover { background: rgba(255,255,255,.12); }
.dk-icon.sel, .dk-icon:focus-visible { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); outline: none; }
.dk-icon.dragging { opacity: .8; z-index: 5; transition: none; }
.dk-ic { width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 8px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.3); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .dk-ic { background: var(--c); } }
.dk-lbl { font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 8px rgba(0,0,0,.4); max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.desk-wins { position: absolute; left: 0; top: 0; right: 0; bottom: 52px; pointer-events: none; z-index: 1; }
.dw { position: absolute; display: flex; flex-direction: column; background: var(--card-bg); border-radius: 12px; box-shadow: 0 22px 60px rgba(0,0,0,.42), 0 0 0 1px rgba(0,0,0,.12); overflow: hidden; pointer-events: auto; min-width: 380px; min-height: 260px; }
.dw.active { box-shadow: 0 28px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(var(--primary-rgb), .45); }
.dw.max { border-radius: 0; box-shadow: none; }
.dw.min { display: none; }
.dw.opening { animation: dwIn .2s ease; }
.dw.closing { animation: dwOut .16s ease forwards; }
@keyframes dwIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dwOut { to { opacity: 0; transform: scale(.95); } }
.dw-bar { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding: 0 4px 0 12px; background: var(--sidebar-bg); border-bottom: 1px solid var(--border-color); cursor: default; }
.dw:not(.active) .dw-bar { opacity: .82; }
.dw-ic { width: 22px; height: 22px; border-radius: 7px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; }
.dw-title { flex: 1; min-width: 0; font-weight: 700; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-btns { display: flex; }
.dw-btns button { width: 38px; height: 32px; border: none; background: none; color: var(--text-muted); border-radius: 8px; cursor: pointer; font-size: .8rem; }
.dw-btns button:hover { background: var(--hover-bg); color: var(--text-primary); }
.dw-btns .dw-x:hover { background: #ef4444; color: #fff; }
.dw-body { flex: 1; position: relative; min-height: 0; background: var(--app-bg); }
.dw-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .2s; }
.dw.loaded iframe { opacity: 1; }
.dw.loaded .dw-load { display: none; }
.dw-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.6rem; }
.dw-shield { position: absolute; inset: 0; display: none; }
.desk.dragging .dw-shield { display: block; }
.desk.dragging { cursor: grabbing; }
.dw-rs { position: absolute; z-index: 3; }
.dw.max .dw-rs { display: none; }
.rs-n, .rs-s { left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.rs-n { top: -3px; } .rs-s { bottom: -3px; }
.rs-e, .rs-w { top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.rs-e { right: -3px; } .rs-w { left: -3px; }
.rs-ne, .rs-nw, .rs-se, .rs-sw { width: 14px; height: 14px; }
.rs-ne { top: -4px; right: -4px; cursor: nesw-resize; } .rs-sw { bottom: -4px; left: -4px; cursor: nesw-resize; }
.rs-nw { top: -4px; left: -4px; cursor: nwse-resize; } .rs-se { bottom: -4px; right: -4px; cursor: nwse-resize; }
.desk-snap { position: absolute; z-index: 2; border-radius: 12px; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); pointer-events: none; opacity: 0; transition: all .15s ease; left: 50%; top: 50%; width: 0; height: 0; }
.desk-snap.show { opacity: 1; }
.desk-snap.snap-max { left: 6px; top: 6px; width: calc(100% - 12px); height: calc(100% - 64px); }
.desk-snap.snap-left { left: 6px; top: 6px; width: calc(50% - 9px); height: calc(100% - 64px); }
.desk-snap.snap-right { left: calc(50% + 3px); top: 6px; width: calc(50% - 9px); height: calc(100% - 64px); }

.tb { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 8px; background: rgba(250,250,249,.78); border-top: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
[data-theme="dark"] .tb { background: rgba(20,18,17,.78); border-top-color: rgba(255,255,255,.08); }
.tb-start { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; border: none; border-radius: 12px; background: none; color: var(--text-primary); font-weight: 800; font-size: .88rem; cursor: pointer; }
.tb-start svg { width: 28px; height: 28px; color: var(--primary); filter: drop-shadow(0 3px 8px rgba(var(--primary-rgb), .45)); }
.tb-start:hover, .tb-start.open { background: rgba(var(--primary-rgb), .12); }
.tb-apps { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tb-win { height: 40px; max-width: 210px; min-width: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: none; border-radius: 10px; background: none; color: var(--text-primary); font-size: .82rem; font-weight: 600; cursor: pointer; position: relative; flex-shrink: 0; }
.tb-win span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-win:hover { background: rgba(127,127,127,.15); }
.tb-win.active { background: rgba(127,127,127,.2); }
.tb-win::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 3px; margin-left: -3px; border-radius: 3px; background: var(--text-muted); transition: width .15s, margin .15s; }
.tb-win.active::after { width: 20px; margin-left: -10px; background: var(--primary); }
.tb-win.min { opacity: .7; }
.tb-tray { display: flex; align-items: center; gap: 2px; }
.tb-ico { width: 38px; height: 38px; border: none; border-radius: 10px; background: none; color: var(--text-secondary); cursor: pointer; position: relative; }
.tb-ico:hover { background: rgba(127,127,127,.15); color: var(--primary); }
#tbRadio { color: #7c3aed; animation: tbPulse 2s ease-in-out infinite; }
@keyframes tbPulse { 50% { opacity: .55; } }
.tb-badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tb-clock { padding: 0 10px; text-align: right; line-height: 1.15; cursor: default; }
.tb-clock b { display: block; font-size: .86rem; }
.tb-clock small { font-size: .7rem; color: var(--text-muted); }
.tb-peek { width: 8px; height: 40px; border: none; border-left: 1px solid var(--border-color); background: none; cursor: pointer; margin-left: 4px; }
.tb-peek:hover { background: rgba(127,127,127,.2); }

.startmenu { position: absolute; left: 8px; bottom: 60px; z-index: 4; width: 520px; max-width: calc(100vw - 16px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; background: rgba(250,250,249,.9); border: 1px solid rgba(255,255,255,.6); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6); animation: smIn .18s ease; overflow: hidden; }
[data-theme="dark"] .startmenu { background: rgba(28,25,23,.9); border-color: rgba(255,255,255,.08); }
@keyframes smIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sm-search { position: relative; margin: 16px 16px 6px; }
.sm-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.sm-search input { width: 100%; height: 42px; border-radius: 21px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-primary); padding: 0 16px 0 40px; font: inherit; outline: none; }
.sm-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .13); }
.sm-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); padding: 10px 22px 6px; }
.sm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 12px 12px; overflow-y: auto; }
.sm-app { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px 10px; border: none; border-radius: 12px; background: none; cursor: pointer; color: var(--text-primary); font-size: .76rem; font-weight: 600; text-align: center; }
.sm-app:hover { background: rgba(127,127,127,.14); }
.sm-app .dk-ic { width: 44px; height: 44px; border-radius: 13px; font-size: 1.15rem; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.sm-foot { display: flex; align-items: center; gap: 2px; padding: 10px 12px; border-top: 1px solid var(--border-color); background: rgba(127,127,127,.06); }
.sm-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 6px 8px; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text-primary); }
.sm-me:hover { background: rgba(127,127,127,.14); }
.sm-me b { display: block; font-size: .86rem; }
.sm-me small { display: block; font-size: .72rem; color: var(--text-muted); }
.sm-me span:last-child { min-width: 0; }
.sm-copy { padding: 0 16px 10px; font-size: .68rem; color: var(--text-muted); text-align: center; background: rgba(127,127,127,.06); }
.notif-panel.np-desk { z-index: 9200; }
.desk-on .ctxmenu { z-index: 9300; }

.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.wp-tile { height: 78px; border-radius: 12px; border: 3px solid transparent; cursor: pointer; position: relative; overflow: hidden; background-size: cover !important; background-position: center !important; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.wp-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: .72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); background: linear-gradient(transparent, rgba(0,0,0,.45)); text-align: left; }
.wp-tile.sel { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .3); }
.wp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; }
.wp-photo { height: 66px; }
.wp-color { width: 54px; height: 36px; border: 1px solid var(--border-color); border-radius: 8px; background: none; cursor: pointer; padding: 2px; }

/* ============================================
   3.1.0: Copyright-Fußzeile, Kartenhinweis, Wetter, Desktop-Widgets
   ============================================ */
.fc-copy-page { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--border-color); }
.fc-copy-page > a { font-weight: 600; }
.adm-foot { margin-top: 28px; padding: 14px 0 6px; border-top: 1px solid var(--border-color); }
.adm-foot .fc-copy-admin { justify-content: center; padding: 0; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.wx-adm-res { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.map-warn { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 600; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 90px)); padding: 12px 14px; border-radius: 14px; background: var(--card-bg); border: 1px solid rgba(245,158,11,.6); box-shadow: 0 14px 40px var(--shadow-color); }
.map-warn > i { color: #f59e0b; font-size: 1.3rem; }
.map-warn b { display: block; font-size: .88rem; }
.map-warn small { display: block; color: var(--text-muted); font-size: .76rem; line-height: 1.4; }
.map-warn .btn { flex-shrink: 0; }

/* ---------- Wetter ---------- */
.nav-wx { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.nav-wx i { width: auto !important; font-size: .7rem; }
.wx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--card-bg); font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--text-secondary); }
.wx-chip:hover { border-color: var(--primary); }
.wx-chip.active { background: var(--active-bg); border-color: var(--primary); color: var(--primary); }
.wx-chip button { border: none; background: none; color: inherit; opacity: .55; cursor: pointer; padding: 0; width: 20px; height: 20px; border-radius: 50%; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.wx-chip button:hover { opacity: 1; }
.wx-chip small { font-weight: 500; opacity: .7; }
.wx-clear, .wx-mini.wx-clear, .wx-hero.wx-clear { --wa: #0ea5e9; --wb: #f59e0b; }
.wx-cloudy { --wa: #38bdf8; --wb: #94a3b8; }
.wx-overcast { --wa: #64748b; --wb: #94a3b8; }
.wx-fog { --wa: #9ca3af; --wb: #cbd5e1; }
.wx-rain { --wa: #1e40af; --wb: #0ea5e9; }
.wx-snow { --wa: #60a5fa; --wb: #e0f2fe; }
.wx-storm { --wa: #312e81; --wb: #7c3aed; }
.wx-night { --wa: #0f172a !important; --wb: #312e81 !important; }
.wx-hero { border-radius: 22px; padding: 24px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--wa, #0ea5e9), var(--wb, #6366f1)); box-shadow: 0 20px 50px rgba(0,0,0,.18); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.wx-hero-main { display: flex; align-items: center; gap: 20px; }
.wx-hero-ic { font-size: 4.6rem; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.wx-place { font-weight: 700; font-size: .95rem; opacity: .95; }
.wx-place small { font-weight: 500; opacity: .8; }
.wx-temp { font-size: 4rem; font-weight: 900; letter-spacing: -2px; line-height: 1; margin: 4px 0; }
.wx-text { font-size: 1.15rem; font-weight: 700; }
.wx-hl { font-size: .85rem; opacity: .9; margin-top: 4px; }
.wx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wx-stat { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.wx-stat > i { grid-row: 1 / 3; align-self: center; text-align: center; opacity: .9; }
.wx-stat span { font-size: .72rem; opacity: .85; }
.wx-stat b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-arrow { font-size: .75rem; }
.wx-hours { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.wx-hour { flex: 0 0 66px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px; background: var(--hover-bg); }
.wx-hour small { font-size: .74rem; color: var(--text-muted); font-weight: 600; }
.wx-hour > i { font-size: 1.25rem; color: #0ea5e9; }
.wx-hour b { font-size: .95rem; }
.wx-pop { font-size: .7rem; color: var(--text-muted); white-space: nowrap; }
.wx-pop.hi { color: #2563eb; font-weight: 700; }
.wx-days { display: flex; flex-direction: column; }
.wx-day { display: grid; grid-template-columns: 110px 34px 64px 38px minmax(60px, 1fr) 38px; grid-template-areas: "dn ic pop min bar max" "dn ic tx tx tx tx"; align-items: center; column-gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border-color); }
.wx-day:last-child { border-bottom: none; }
.wx-dn { grid-area: dn; font-size: .92rem; }
.wx-day > i { grid-area: ic; font-size: 1.3rem; color: #0ea5e9; text-align: center; }
.wx-day .wx-pop { grid-area: pop; }
.wx-min { grid-area: min; text-align: right; color: var(--text-muted); font-weight: 600; }
.wx-max { grid-area: max; font-weight: 800; }
.wx-bar { grid-area: bar; height: 7px; border-radius: 7px; background: var(--border-color); position: relative; }
.wx-bar i { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #38bdf8, #f59e0b, #ef4444); }
.wx-dtext { grid-area: tx; font-size: .72rem; color: var(--text-muted); }
.wx-attr { margin-top: 12px; font-size: .74rem; color: var(--text-muted); }
.wx-sres { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.wx-sr { border: none; background: none; width: 100%; text-align: left; }
.wx-sr small { display: block; color: var(--text-muted); font-size: .76rem; }
.wx-mini { border-radius: 16px; padding: 14px; color: #fff; background: linear-gradient(135deg, var(--wa, #0ea5e9), var(--wb, #6366f1)); text-shadow: 0 1px 6px rgba(0,0,0,.2); cursor: pointer; }
.wx-mini-top { display: flex; align-items: center; gap: 12px; }
.wx-mini-ic { font-size: 2.4rem; }
.wx-mini-t b { display: block; font-size: 2rem; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.wx-mini-t span { font-size: .8rem; font-weight: 600; }
.wx-mini-place { margin-left: auto; text-align: right; min-width: 0; }
.wx-mini-place b { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-mini-place small { display: block; font-size: .72rem; opacity: .9; }
.wx-mini-hours { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); }
.wx-mini-hours span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .72rem; }
.wx-mini-hours b { font-size: .82rem; }
@media (max-width: 900px) {
    .wx-hero { grid-template-columns: 1fr; padding: 18px; }
    .wx-temp { font-size: 3.2rem; }
    .wx-hero-ic { font-size: 3.6rem; }
    .wx-day { grid-template-columns: 80px 28px 54px 34px minmax(40px, 1fr) 34px; column-gap: 6px; }
}

/* ---------- Desktop-Widgets ---------- */
.desk-widgets { position: absolute; top: 12px; right: 12px; bottom: 64px; width: 300px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; padding: 2px; }
.desk-widgets::-webkit-scrollbar { display: none; }
@media (max-width: 1250px) { .desk-widgets { width: 260px; } }
.wg { flex-shrink: 0; border-radius: 18px; background: rgba(250,250,249,.82); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 12px 34px rgba(0,0,0,.22); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); overflow: hidden; animation: popIn .25s ease; color: var(--text-primary); }
[data-theme="dark"] .wg { background: rgba(28,25,23,.8); border-color: rgba(255,255,255,.08); }
.wg header { display: flex; align-items: center; gap: 7px; padding: 9px 12px 4px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--text-muted); }
.wg header i { color: var(--primary); }
.wg-body { padding: 4px 10px 10px; font-size: .84rem; }
.wg-load { padding: 14px; text-align: center; color: var(--text-muted); }
.wg-empty { padding: 6px 4px 4px; color: var(--text-muted); font-size: .8rem; }
.wg-row { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; padding: 6px; border-radius: 10px; text-align: left; cursor: pointer; color: var(--text-primary); }
.wg-row:hover { background: rgba(127,127,127,.12); }
.wg-row > span:last-child { min-width: 0; flex: 1; }
.wg-row b { display: block; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-row small { display: block; font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-row .fic { width: 32px; height: 32px; flex-shrink: 0; }
.wg-date-chip { width: 36px; flex-shrink: 0; text-align: center; border-radius: 9px; padding: 3px 0; background: rgba(127,127,127,.12); border-top: 3px solid var(--c, var(--primary)); line-height: 1.05; }
.wg-date-chip small { font-size: .62rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.wg-date-chip b { font-size: 1rem; font-weight: 800; }
.wg-clock { display: flex; align-items: center; gap: 14px; padding: 2px 2px 4px; }
.wg-clock svg { width: 82px; height: 82px; flex-shrink: 0; }
.wg-clock svg > circle:first-child { fill: rgba(127,127,127,.08); stroke: var(--border-color); stroke-width: 2; }
.wg-clock .tk line { stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; }
.wg-clock .h { stroke: var(--text-primary); stroke-width: 4; stroke-linecap: round; }
.wg-clock .m { stroke: var(--text-primary); stroke-width: 2.6; stroke-linecap: round; }
.wg-clock .s { stroke: var(--primary); stroke-width: 1.3; stroke-linecap: round; }
.wg-clock .c { fill: var(--primary); }
.wg-time { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.wg-date { display: block; font-size: .8rem; font-weight: 600; margin-top: 4px; }
.wg-kw { display: block; font-size: .72rem; color: var(--text-muted); }
.wg-mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.wg-mhead b { font-size: .86rem; }
.wg-mhead button { border: none; background: none; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; color: var(--text-muted); }
.wg-mhead button:hover { background: rgba(127,127,127,.14); color: var(--primary); }
.wg-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.wg-mgrid small { font-size: .66rem; font-weight: 700; color: var(--text-muted); padding: 2px 0; }
.wg-mgrid button { border: none; background: none; height: 28px; border-radius: 8px; font-size: .78rem; cursor: pointer; color: var(--text-primary); position: relative; }
.wg-mgrid button:hover { background: rgba(127,127,127,.14); }
.wg-mgrid button.today { background: var(--primary); color: #fff; font-weight: 800; }
.wg-mgrid button.mark::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--primary); }
.wg-mgrid button.today.mark::after { background: #fff; }
.wg-task { cursor: default; }
.wg-task > span { cursor: pointer; }
.wg-task.done { opacity: .45; text-decoration: line-through; }
.wg-check { border: none; background: none; color: var(--text-muted); font-size: 1.05rem; cursor: pointer; padding: 0 2px; }
.wg-check:hover { color: var(--success); }
.wg-over { font-style: normal; color: var(--danger); font-weight: 700; }
.wg-add { display: flex; gap: 6px; margin-top: 6px; }
.wg-add input { flex: 1; min-width: 0; height: 32px; border-radius: 9px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-primary); padding: 0 10px; font: inherit; font-size: .8rem; outline: none; user-select: text; }
.wg-add input:focus { border-color: var(--primary); }
.wg-add button { width: 32px; border: none; border-radius: 9px; background: var(--primary); color: #fff; cursor: pointer; }
.wg-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wg-notes .note-mini { text-align: left; cursor: pointer; font: inherit; }
.wg-store { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 4px; }
.wg-store .ring { width: 66px; height: 66px; flex-shrink: 0; }
.wg-store b { display: block; font-size: 1.05rem; }
.wg-store small { display: block; font-size: .74rem; color: var(--text-muted); }
.wg-note { width: 100%; min-height: 110px; resize: vertical; border-radius: 10px; border: 1px solid var(--border-color); background: rgba(254,243,199,.65); color: #44403c; padding: 9px 10px; font: inherit; font-size: .84rem; line-height: 1.45; outline: none; user-select: text; -webkit-user-select: text; }
[data-theme="dark"] .wg-note { background: rgba(120,90,10,.25); color: #f5f5f4; }
.wg-note:focus { border-color: #f59e0b; }
.wg-edit { flex-shrink: 0; align-self: flex-end; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; border-radius: 20px; padding: 6px 12px; font-size: .74rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); opacity: .75; }
.wg-edit:hover { opacity: 1; }
.wgd-list { display: flex; flex-direction: column; gap: 4px; }
.wgd-row { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--hover-bg); }
.wgd-row .icon-btn.sm { width: 30px; height: 30px; }
.wg-store .ring::before { width: 50px; height: 50px; font-size: .78rem; }

/* ============================================
   4.0.0: Browser
   ============================================ */
.embed-browser .topbar { display: none; }
.view.view-browser { overflow: hidden; display: flex; }
.br-wrap { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; background: var(--card-bg); }
.br-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; background: var(--sidebar-bg); border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.br-tabs::-webkit-scrollbar { display: none; }
.br-tab { display: flex; align-items: center; gap: 7px; min-width: 120px; max-width: 220px; flex: 0 1 220px; height: 34px; padding: 0 6px 0 12px; border-radius: 10px 10px 0 0; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--text-secondary); border: 1px solid transparent; border-bottom: none; }
.br-tab:hover { background: var(--hover-bg); }
.br-tab.active { background: var(--card-bg); border-color: var(--border-color); color: var(--text-primary); margin-bottom: -1px; height: 35px; }
.br-tab span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-tab > i { color: var(--text-muted); font-size: .8rem; }
.br-tab button { border: none; background: none; width: 22px; height: 22px; border-radius: 6px; color: var(--text-muted); cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.br-tab button:hover { background: var(--border-color); color: var(--text-primary); }
.br-newtab { border: none; background: none; width: 32px; height: 32px; border-radius: 9px; color: var(--text-muted); cursor: pointer; margin-bottom: 2px; flex-shrink: 0; }
.br-newtab:hover { background: var(--hover-bg); color: var(--primary); }
.br-bar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.br-bar .icon-btn { width: 34px; height: 34px; }
.br-bar .icon-btn:disabled { opacity: .35; pointer-events: none; }
.br-bar .icon-btn.on { color: var(--primary); }
#brStar.on { color: #f59e0b; }
.br-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 6px; padding: 0 14px; border-radius: 18px; background: var(--hover-bg); border: 1px solid transparent; }
.br-addr:focus-within { background: var(--input-bg); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .13); }
.br-addr span { color: var(--text-muted); font-size: .8rem; }
.br-addr .fa-lock { color: #16a34a; }
.br-addr input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: .88rem; color: var(--text-primary); }
.br-marks { display: flex; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.br-mark { display: inline-flex; align-items: center; gap: 6px; max-width: 170px; padding: 4px 9px; border: none; border-radius: 8px; background: none; color: var(--text-secondary); font-size: .76rem; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.br-mark:hover { background: var(--hover-bg); color: var(--text-primary); }
.br-mark span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-fav { position: relative; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.br-fav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; background: var(--card-bg); border-radius: 3px; }
.br-fav i { color: var(--text-muted); font-size: .8rem; }
.br-fav.big { width: 32px; height: 32px; }
.br-fav.big i { font-size: 1.3rem; }
.br-pages { flex: 1; min-height: 0; position: relative; }
.br-page { position: absolute; inset: 0; display: flex; flex-direction: column; }
.br-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.br-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); }
.br-loading i { font-size: 1.8rem; color: var(--primary); }
.br-loading span { font-size: .84rem; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-msg { margin: auto; text-align: center; max-width: 520px; padding: 30px 20px; color: var(--text-secondary); }
.br-msg .big { font-size: 3rem; color: var(--border-color); margin-bottom: 10px; }
.br-msg h3 { color: var(--text-primary); margin-bottom: 6px; word-break: break-word; }
.br-msg p { margin-bottom: 8px; font-size: .9rem; }
.br-msg-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.br-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: rgba(var(--primary-rgb), .07); border-bottom: 1px solid var(--border-color); font-size: .8rem; flex-shrink: 0; }
.br-notice > i { color: var(--primary); }
.br-notice span { flex: 1; min-width: 200px; color: var(--text-secondary); }
.br-scroll { flex: 1; overflow-y: auto; }
.br-reader { max-width: 760px; margin: 0 auto; padding: 28px 26px 80px; font-size: 1.02rem; line-height: 1.7; color: var(--text-primary); word-wrap: break-word; }
.br-reader .br-site { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.br-reader h1 { font-size: 1.9rem; line-height: 1.2; font-weight: 900; letter-spacing: -.5px; margin: 8px 0 18px; }
.br-reader h2, .br-reader h3, .br-reader h4 { margin: 1.4em 0 .5em; line-height: 1.3; }
.br-reader p, .br-reader ul, .br-reader ol, .br-reader blockquote, .br-reader pre, .br-reader table, .br-reader figure, .br-reader dl { margin: 0 0 1em; }
.br-reader ul, .br-reader ol { padding-left: 1.4em; }
.br-reader img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 10px 0; }
.br-reader a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.br-reader blockquote { border-left: 4px solid var(--border-color); padding-left: 14px; color: var(--text-secondary); }
.br-reader pre { background: var(--code-bg); padding: 12px; border-radius: 10px; overflow-x: auto; font-size: .85rem; }
.br-reader table { border-collapse: collapse; width: 100%; font-size: .88rem; display: block; overflow-x: auto; }
.br-reader td, .br-reader th { border: 1px solid var(--border-color); padding: 6px 8px; }
.br-reader .br-aside { font-size: .85rem; color: var(--text-muted); border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); margin: 1em 0; padding: .4em 0; max-height: 260px; overflow-y: auto; }
.br-start { margin: auto; width: min(720px, 100%); padding: 30px 20px; text-align: center; }
.br-start-logo { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 22px; background: linear-gradient(135deg, #0284c7, #6366f1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 14px 34px rgba(2,132,199,.35); }
.br-start h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.4px; margin-bottom: 16px; }
.br-start-q { position: relative; margin: 0 auto 24px; max-width: 560px; }
.br-start-q i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.br-start-q input { width: 100%; height: 50px; border-radius: 25px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-primary); padding: 0 20px 0 48px; font: inherit; font-size: 1rem; outline: none; box-shadow: 0 8px 24px var(--shadow-color); }
.br-start-q input:focus { border-color: var(--primary); }
.br-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 20px; }
.br-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; border: 1px solid var(--border-color); border-radius: 16px; background: var(--card-bg); cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--text-primary); }
.br-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.br-tile span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-start-hint { font-size: .76rem; color: var(--text-muted); line-height: 1.5; max-width: 560px; margin: 0 auto; }
.br-start-foot { margin-top: 16px; font-size: .7rem; color: var(--text-muted); opacity: .7; }

/* ============================================
   4.1.0: Kalender teilen
   ============================================ */
.cal-list-sec { margin: 12px 0 4px; padding: 0 4px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); }
.cal-list-sec i { margin-right: 4px; }
.cal-owner { display: block; font-size: .68rem; color: var(--text-muted); font-weight: 500; line-height: 1.2; }
.csh-add { display: flex; gap: 8px; }
.csh-search { position: relative; flex: 1; }
.csh-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; }
.csh-search .input { width: 100%; padding-left: 34px; }
.csh-add > select { width: 170px; flex-shrink: 0; }
.csh-found { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; max-height: 210px; overflow-y: auto; }
.csh-hit { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--card-bg); cursor: pointer; text-align: left; color: var(--text-primary); }
.csh-hit:hover { border-color: var(--primary); background: var(--active-bg); }
.csh-hit span { flex: 1; min-width: 0; }
.csh-hit b, .csh-who b { display: block; font-size: .88rem; }
.csh-hit small, .csh-who small { display: block; font-size: .74rem; color: var(--text-muted); }
.csh-hit > i { color: var(--primary); }
.csh-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border-color); }
.csh-row:last-child { border-bottom: none; }
.csh-who { flex: 1; min-width: 0; }
.csh-row select { width: 160px; padding: 6px 10px; font-size: .84rem; }
@media (max-width: 600px) { .csh-add { flex-direction: column; } .csh-add > select { width: 100%; } .csh-row select { width: 130px; } }

/* ============================================
   4.1.0: Branding/Copyright – einheitliche Plakette
   ============================================ */
.fc-logo { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.fc-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: .72rem; line-height: 1.3; color: var(--text-muted); }
.fc-brand-pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--hover-bg); border: 1px solid var(--border-color); color: var(--text-secondary); text-decoration: none !important; font-weight: 500; white-space: nowrap; }
.fc-brand-pill span { overflow: hidden; text-overflow: ellipsis; }
.fc-brand-pill b { font-weight: 800; color: var(--text-primary); }
a.fc-brand-pill:hover { border-color: var(--primary); }
.fc-brand-copy { font-size: .68rem; opacity: .9; max-width: 100%; }
.fc-brand-about { font-size: .7rem; color: var(--text-muted); font-weight: 600; }
.fc-brand-about:hover { color: var(--primary); }
/* Anmeldeseite: am Seitenende, auf dem Hintergrund */
.lp-body .lp { min-height: calc(100vh - 74px); }
.fc-brand-login { position: relative; z-index: 1; padding: 6px 20px 26px; color: rgba(255,255,255,.78); }
.fc-brand-login .fc-brand-pill { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fc-brand-login .fc-brand-pill b { color: #fff; }
.fc-brand-login a.fc-brand-pill:hover { border-color: rgba(255,255,255,.5); background: rgba(0,0,0,.38); }
.fc-brand-login .fc-brand-copy { text-shadow: 0 1px 4px rgba(0,0,0,.35); }
@media (max-width: 1100px) { .lp-body .lp { min-height: 0; } .fc-brand-login { padding: 2px 16px 84px; } }
/* Freigaben, Übersicht, Backend, Startmenü */
.fc-brand-share { margin-top: 10px; }
.fc-brand-home { margin: 30px 0 4px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.fc-brand-admin { padding: 4px 0; }
.fc-brand-inline { align-items: flex-start; text-align: left; }
.sm-copy .fc-brand { gap: 3px; }
.sm-copy .fc-brand-pill { background: transparent; border-color: transparent; padding: 2px 8px; }
.tb-start .fc-logo { filter: drop-shadow(0 3px 8px rgba(220,38,38,.4)); }
.tb-cloud { font-size: 1.3rem; color: var(--primary); }
.fc-about-logo { display: flex; align-items: center; justify-content: center; }
.fc-about-logo > i { font-size: 2.4rem; color: var(--primary); }
.fc-about-logo svg, .fc-about-logo img { width: 54px !important; height: 54px !important; }
/* Pro-Bereich im Backend */
.pro-lock { position: relative; }
.pro-lock.locked .pro-fields { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.pro-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; background: linear-gradient(135deg, #f59e0b, #dc2626); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .4px; vertical-align: middle; }
.pro-cta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; border: 1px dashed rgba(245,158,11,.6); background: rgba(245,158,11,.08); }
.pro-cta > i { font-size: 1.3rem; color: #d97706; }
.pro-cta div { flex: 1; font-size: .84rem; }
.pro-cta b { display: block; }

/* ============================================
   4.1.0: Tabs im Dateimanager (Desktop)
   ============================================ */
.dw-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 4px 8px 0; background: var(--sidebar-bg); border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.dw-tabs::-webkit-scrollbar { display: none; }
.dw-tab { display: flex; align-items: center; gap: 7px; flex: 0 1 200px; min-width: 110px; height: 31px; padding: 0 5px 0 11px; border-radius: 9px 9px 0 0; border: 1px solid transparent; border-bottom: none; font-size: .78rem; font-weight: 600; color: var(--text-secondary); cursor: default; user-select: none; }
.dw-tab:hover { background: var(--hover-bg); }
.dw-tab.active { background: var(--app-bg); border-color: var(--border-color); color: var(--text-primary); margin-bottom: -1px; height: 32px; }
.dw-tab > i { color: #f59e0b; font-size: .78rem; }
.dw-tab span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-tab button { border: none; background: none; width: 20px; height: 20px; border-radius: 6px; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; flex-shrink: 0; }
.dw-tab button:hover { background: var(--border-color); color: var(--text-primary); }
.dw-tab-add { border: none; background: none; width: 28px; height: 28px; margin-bottom: 2px; border-radius: 8px; color: var(--text-muted); cursor: pointer; flex-shrink: 0; }
.dw-tab-add:hover { background: var(--hover-bg); color: var(--primary); }
.dw-body iframe { visibility: hidden; }
.dw-body iframe.on { visibility: visible; }
.br-notice-slim { padding: 5px 12px; font-size: .76rem; } .br-notice-slim .btn { padding: 3px 10px; font-size: .74rem; }

/* ============================================
   4.2: E-Mail
   ============================================ */
.embed-mail .topbar { display: none; }
.view.view-mail { overflow: hidden; display: flex; }
.ml-wrap { display: flex; flex: 1; min-width: 0; height: 100%; background: var(--card-bg); position: relative; }
.ml-wrap > .loading-big { flex: 1; }
.ml-side { width: 230px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 8px; background: var(--sidebar-bg); border-right: 1px solid var(--border-color); min-height: 0; }
.ml-compose { width: 100%; justify-content: center; }
.ml-acc-btn { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--card-bg); color: var(--text-primary); cursor: pointer; text-align: left; font: inherit; }
.ml-acc-btn:hover { border-color: var(--primary); }
.ml-acc-btn > .fa-chevron-down { color: var(--text-muted); font-size: .7rem; }
.ml-acc-btn .ml-warn { color: #f59e0b; }
.ml-acc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ml-acc-txt b, .ml-acc-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-acc-txt b { font-size: .84rem; }
.ml-acc-txt small { font-size: .72rem; color: var(--text-muted); }
.ml-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.ml-folders { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin: 0 -4px; padding: 0 4px; }
.ml-folders .loading-big { padding: 30px; font-size: 1.2rem; }
.ml-folder { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: none; border-radius: 10px; background: none; color: var(--text-secondary); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: left; }
.ml-folder i { width: 16px; text-align: center; color: var(--text-muted); font-size: .85rem; }
.ml-folder span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-folder em { font-style: normal; font-size: .7rem; font-weight: 800; background: var(--primary); color: #fff; border-radius: 10px; padding: 1px 7px; }
.ml-folder em.soft { background: var(--hover-bg); color: var(--text-muted); }
.ml-folder:hover { background: var(--hover-bg); color: var(--text-primary); }
.ml-folder.active { background: var(--active-bg); color: var(--primary); }
.ml-folder.active i { color: var(--primary); }
.ml-folder.nosel { opacity: .55; cursor: default; }
.ml-folder.drop { background: rgba(var(--primary-rgb), .15); outline: 2px dashed var(--primary); outline-offset: -2px; }
.ml-side-foot { display: flex; gap: 4px; justify-content: center; border-top: 1px solid var(--border-color); padding-top: 6px; }
.ml-list { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-color); min-height: 0; }
.ml-list-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; flex-wrap: wrap; }
.ml-menu-btn { display: none; }
.ml-title { flex: 1; min-width: 120px; display: flex; flex-direction: column; line-height: 1.2; }
.ml-title b { font-size: 1.05rem; }
.ml-title small { font-size: .74rem; color: var(--text-muted); }
.ml-search { display: flex; align-items: center; gap: 7px; flex: 1 1 100%; height: 34px; padding: 0 6px 0 12px; border-radius: 17px; background: var(--hover-bg); border: 1px solid transparent; }
.ml-search:focus-within { background: var(--input-bg); border-color: var(--primary); }
.ml-search > i { color: var(--text-muted); font-size: .8rem; }
.ml-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: .86rem; color: var(--text-primary); }
.ml-tools { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; border-bottom: 1px solid var(--border-color); min-height: 40px; }
.ml-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ml-bulk { display: flex; gap: 2px; }
.icon-btn.danger:hover { color: var(--danger); }
.ml-check { position: relative; display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.ml-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ml-check span { width: 18px; height: 18px; border: 2px solid var(--border-color); border-radius: 5px; background: var(--card-bg); transition: .15s; }
.ml-check input:checked + span { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--primary); }
.ml-check input:indeterminate + span { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 4px var(--primary), inset 0 0 0 9px #fff; }
.ml-rows { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.ml-row { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--border-color); cursor: pointer; user-select: none; }
.ml-row:hover { background: var(--hover-bg); }
.ml-row.current { background: var(--active-bg); }
.ml-row.sel { background: rgba(var(--primary-rgb), .1); }
.ml-row.unread::before { content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--primary); }
.ml-row .ml-check { margin-top: 8px; opacity: 0; }
.ml-row:hover .ml-check, .ml-row.sel .ml-check, .ml-wrap .ml-rows:has(.ml-row.sel) .ml-check { opacity: 1; }
.ml-av { --h: 220; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: hsl(var(--h), 62%, 52%); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .3px; }
.ml-row-main { flex: 1; min-width: 0; }
.ml-row-top, .ml-row-sub { display: flex; align-items: center; gap: 8px; }
.ml-from { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; font-weight: 600; }
.ml-row.unread .ml-from, .ml-row.unread .ml-subj { font-weight: 800; color: var(--text-primary); }
.ml-date { font-size: .72rem; color: var(--text-muted); flex-shrink: 0; }
.ml-row.unread .ml-date { color: var(--primary); font-weight: 700; }
.ml-subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; color: var(--text-secondary); }
.ml-tag { font-style: normal; font-size: .66rem; font-weight: 800; color: #dc2626; text-transform: uppercase; }
.ml-icons { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .72rem; flex-shrink: 0; }
.ml-star { border: none; background: none; padding: 2px; cursor: pointer; color: var(--text-muted); font-size: .82rem; opacity: 0; }
.ml-row:hover .ml-star, .ml-star.on { opacity: 1; }
.ml-star.on, .ml-flag-on { color: #f59e0b; }
.ml-more { padding: 14px; text-align: center; }
.ml-none, .ml-error { text-align: center; padding: 50px 24px; color: var(--text-muted); }
.ml-none > i, .ml-error > i { font-size: 2.4rem; color: var(--border-color); margin-bottom: 12px; display: block; }
.ml-error h3 { color: var(--text-primary); margin-bottom: 6px; }
.ml-error p { margin-bottom: 14px; font-size: .88rem; word-break: break-word; }
.ml-empty-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: .76rem; color: var(--text-secondary); background: var(--hover-bg); border-bottom: 1px solid var(--border-color); }
.ml-empty-bar span { flex: 1; }
.ml-drag { position: fixed; top: -100px; padding: 6px 12px; border-radius: 10px; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; }
.ml-read { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.ml-empty-read { margin: auto; text-align: center; color: var(--text-muted); }
.ml-empty-read i { font-size: 3.2rem; color: var(--border-color); margin-bottom: 10px; }
.ml-read-bar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; flex-wrap: wrap; }
.ml-read-bar .grow { flex: 1; }
.ml-back { display: none; }
.ml-read-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 40px; scrollbar-width: thin; }
.ml-subject { font-size: 1.3rem; line-height: 1.3; margin-bottom: 14px; word-break: break-word; }
.ml-meta { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ml-meta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ml-addr { border: none; background: none; padding: 0; font: inherit; color: var(--text-secondary); cursor: pointer; }
.ml-addr:hover { color: var(--primary); text-decoration: underline; }
.ml-addr.strong { font-weight: 700; color: var(--text-primary); font-size: .95rem; }
.ml-remote, .ml-unsub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 12px; margin-bottom: 12px; font-size: .8rem; color: var(--text-secondary); background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); }
.ml-remote > i { color: #d97706; }
.ml-remote span { flex: 1; min-width: 180px; }
.ml-unsub { background: var(--hover-bg); border-color: var(--border-color); }
.ml-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ml-att { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 7px 11px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--card-bg); color: var(--text-primary); font: inherit; font-size: .8rem; cursor: pointer; }
.ml-att:hover { border-color: var(--primary); background: var(--hover-bg); }
.ml-att i { color: var(--primary); }
.ml-att span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ml-att small { color: var(--text-muted); flex-shrink: 0; }
.ml-body { border-radius: 12px; overflow: hidden; }
.ml-frame { display: block; width: 100%; min-height: 80px; border: 0; background: #fff; border-radius: 12px; }
html[data-theme="dark"] .ml-frame { box-shadow: 0 0 0 1px var(--border-color); padding: 0 12px; box-sizing: border-box; }
.ml-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.6; color: var(--text-primary); }
.ml-text blockquote { margin: 4px 0 4px 4px; padding-left: 12px; border-left: 3px solid var(--border-color); color: var(--text-secondary); }
.ml-text a { color: var(--primary); }
.ml-source { max-height: 60vh; overflow: auto; font-size: .74rem; line-height: 1.45; white-space: pre-wrap; word-break: break-all; background: var(--hover-bg); padding: 12px; border-radius: 10px; }
.ml-preview { text-align: center; }
.ml-preview img { max-width: 100%; max-height: 70vh; border-radius: 10px; }
.ml-preview-pdf { width: 100%; height: 70vh; border: 0; border-radius: 10px; background: #fff; }
.ml-pick { max-height: 50vh; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 12px; padding: 4px; }
.ml-pick .ml-folder.active { background: var(--active-bg); color: var(--primary); }
.ml-pick .ml-folder:disabled { opacity: .45; cursor: default; }
.ml-scrim { display: none; }
/* Begrüßung ohne Konto */
.ml-wrap.ml-welcome { align-items: center; justify-content: center; }
.ml-hello { max-width: 520px; text-align: center; padding: 40px 24px; }
.ml-hello-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 14px 34px rgba(var(--primary-rgb), .35); }
.ml-hello h2 { margin-bottom: 10px; }
.ml-hello p { color: var(--text-secondary); margin-bottom: 18px; line-height: 1.6; }
.ml-hello .muted { margin-top: 18px; }
/* Schreiben */
.modal.ml-cmp-modal .modal-card { max-width: 900px; width: 100%; height: min(860px, calc(100vh - 40px)); display: flex; flex-direction: column; }
.modal.ml-cmp-modal .modal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 8px; }
.ml-cmp { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ml-cmp-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-color); min-height: 42px; padding: 3px 0; }
.ml-cmp-row > label { width: 62px; flex-shrink: 0; font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.ml-cmp-row select.ml-from { border: none; background: none; padding-left: 0; height: 34px; }
.ml-from-one { font-size: .88rem; color: var(--text-secondary); }
.ml-subj-in { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--text-primary); height: 34px; }
.ml-cmp-x { display: flex; gap: 8px; flex-shrink: 0; }
.link-btn { border: none; background: none; padding: 2px 4px; color: var(--primary); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.ml-rcpt { position: relative; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 3px 0; cursor: text; }
.ml-chips-in { display: contents; }
.ml-rcpt-in { flex: 1; min-width: 140px; border: none; background: none; outline: none; font: inherit; font-size: .9rem; color: var(--text-primary); height: 30px; }
.ml-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 280px; padding: 3px 4px 3px 10px; border-radius: 14px; background: var(--active-bg); color: var(--primary); font-size: .8rem; font-weight: 600; }
.ml-chip.bad { background: rgba(239, 68, 68, .12); color: var(--danger); }
.ml-chip button { border: none; background: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; color: inherit; font-size: 1rem; line-height: 1; }
.ml-chip button:hover { background: rgba(0, 0, 0, .1); }
.ml-sugg { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 280px; max-width: 100%; padding: 4px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 12px 30px var(--shadow-color); }
.ml-sugg button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 6px 10px; border: none; border-radius: 8px; background: none; color: var(--text-primary); font: inherit; cursor: pointer; text-align: left; }
.ml-sugg button small { color: var(--text-muted); font-size: .74rem; }
.ml-sugg button:hover, .ml-sugg button.on { background: var(--hover-bg); }
.ml-tb { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--border-color); }
.ml-tb .sep { width: 1px; height: 18px; background: var(--border-color); margin: 0 4px; }
.ml-editor { flex: 1; min-height: 180px; overflow-y: auto; padding: 14px 4px; outline: none; font-size: .95rem; line-height: 1.6; color: var(--text-primary); word-wrap: break-word; }
.ml-editor p { margin: 0 0 .6em; }
.ml-editor blockquote { margin: 6px 0 6px 2px; padding-left: 12px; border-left: 3px solid var(--primary); color: var(--text-secondary); }
.ml-editor img { max-width: 100%; height: auto; }
.ml-editor a { color: var(--primary); }
.ml-editor .ml-sig { color: var(--text-secondary); margin: .4em 0 1em; }
.ml-editor .ml-qh { color: var(--text-muted); font-size: .86rem; margin-top: 1.2em; }
.ml-cmp-atts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; }
.ml-cmp-atts:empty { display: none; }
.ml-catt { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; max-width: 260px; padding: 5px 6px 5px 10px; border: 1px solid var(--border-color); border-radius: 10px; font-size: .78rem; background: var(--card-bg); }
.ml-catt > i:first-child { color: var(--primary); }
.ml-catt span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ml-catt small { color: var(--text-muted); flex-shrink: 0; }
.ml-catt button { border: none; background: none; width: 20px; height: 20px; border-radius: 50%; color: var(--text-muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.ml-catt button:hover { background: var(--hover-bg); color: var(--danger); }
.ml-catt.busy { opacity: .75; }
.ml-prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--primary); transition: width .2s; }
.ml-att-warn { color: var(--danger); font-size: .76rem; font-weight: 700; }
.ml-cmp-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border-color); }
.ml-opt { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-secondary); cursor: pointer; margin-left: 6px; }
.ml-opt input { accent-color: var(--primary); }
.ml-drop { position: absolute; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; gap: 10px; border: 3px dashed var(--primary); border-radius: 14px; background: rgba(var(--primary-rgb), .08); color: var(--primary); font-weight: 800; pointer-events: none; }
.ml-drop.on { display: flex; }
.ml-cf-crumbs { font-size: .84rem; margin-bottom: 8px; color: var(--text-muted); }
.ml-cf-crumbs button { border: none; background: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 2px; }
.ml-cf { max-height: 46vh; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.ml-cf-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: none; border-radius: 9px; background: none; color: var(--text-primary); font: inherit; font-size: .86rem; cursor: pointer; text-align: left; }
.ml-cf-row:hover { background: var(--hover-bg); }
.ml-cf-row > i { color: var(--primary); width: 18px; text-align: center; }
.ml-cf-row .fa-folder { color: #f59e0b; }
.ml-cf-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-cf-row small { color: var(--text-muted); }
.ml-cf-row input { accent-color: var(--primary); width: 16px; height: 16px; }
/* Konto-Dialog */
.ml-accf .field { margin-bottom: 10px; }
.ml-hint { display: flex; gap: 10px; padding: 9px 12px; border-radius: 12px; margin-bottom: 12px; font-size: .8rem; line-height: 1.5; color: var(--text-secondary); background: rgba(var(--primary-rgb), .07); }
.ml-hint > i { color: var(--primary); margin-top: 3px; }
.ml-adv { border: 1px solid var(--border-color); border-radius: 12px; padding: 4px 12px; margin-bottom: 12px; }
.ml-adv summary { cursor: pointer; font-weight: 700; font-size: .86rem; padding: 6px 0; }
.ml-adv summary i { color: var(--primary); margin-right: 4px; }
.ml-adv .form-sec { margin-top: 10px; }
.ml-test { padding: 10px 12px; border-radius: 12px; font-size: .84rem; background: var(--hover-bg); margin-top: 6px; }
.ml-test p { margin: 3px 0; word-break: break-word; }
.ml-test.bad { background: rgba(239, 68, 68, .1); }
.ml-test.warn { background: rgba(245, 158, 11, .12); }
.ml-test.good { background: rgba(22, 163, 74, .1); }
.ml-test .fa-circle-xmark { color: var(--danger); }
.ml-test .fa-circle-check, .ml-test .ok { color: #16a34a; }
.ml-test .btn { margin-top: 6px; }
.ml-trusted { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ml-acc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ml-acc-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 12px; }
.ml-acc-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ml-acc-item small { color: var(--text-muted); font-size: .74rem; }
/* Schmalere Fenster */
@media (max-width: 1200px) { .ml-list { width: 340px; } .ml-side { width: 200px; } }
@media (max-width: 980px) {
    .ml-side { position: absolute; left: 0; top: 0; bottom: 0; z-index: 25; transform: translateX(-105%); transition: transform .2s; box-shadow: 0 0 30px var(--shadow-color); width: 250px; }
    .ml-wrap.side-open .ml-side { transform: none; }
    .ml-wrap.side-open .ml-scrim { display: block; position: absolute; inset: 0; z-index: 24; background: rgba(0, 0, 0, .3); }
    .ml-menu-btn { display: inline-flex; }
    .ml-list { width: auto; flex: 1; border-right: none; }
    .ml-read { display: none; }
    .ml-wrap.show-read .ml-list { display: none; }
    .ml-wrap.show-read .ml-read { display: flex; }
    .ml-back { display: inline-flex; }
    .ml-read-scroll { padding: 14px 14px 40px; }
    .ml-read-bar .btn span { display: none; }
    .ml-row .ml-check { display: none; }
    .ml-wrap .ml-rows:has(.ml-row.sel) .ml-check { display: inline-flex; }
    .modal.ml-cmp-modal .modal-card { height: calc(100vh - 20px); }
}
@media (max-width: 600px) {
    .ml-cmp-row > label { width: 48px; }
    .ml-opt { margin-left: 0; }
    .modal.ml-cmp-modal { padding: 0; }
    .modal.ml-cmp-modal .modal-card { height: 100%; max-height: none; border-radius: 0; }
}
/* Ankündigungen auf dem Desktop */
.desk-ann { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 0; width: min(560px, calc(100% - 640px)); min-width: 340px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.desk-ann-card { pointer-events: auto; display: flex; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: rgba(var(--card-rgb, 255, 255, 255), .92); background: color-mix(in srgb, var(--card-bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); border-left: 5px solid var(--ac, var(--primary)); animation: deskAnnIn .35s ease; }
.desk-ann-card.info { --ac: #2563eb; } .desk-ann-card.success { --ac: #16a34a; } .desk-ann-card.warning { --ac: #f59e0b; } .desk-ann-card.danger { --ac: #dc2626; }
.desk-ann-ic { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ac, var(--primary)); font-size: 1rem; }
.desk-ann-txt { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); max-height: 220px; overflow-y: auto; }
.desk-ann-txt b.t { display: block; color: var(--text-primary); font-size: .95rem; margin-bottom: 2px; }
.desk-ann-txt small { display: block; color: var(--text-muted); font-size: .72rem; margin-top: 4px; }
.desk-ann-txt a { color: var(--primary); }
.desk-ann-card > button { align-self: flex-start; border: none; background: none; width: 28px; height: 28px; border-radius: 8px; color: var(--text-muted); cursor: pointer; flex-shrink: 0; }
.desk-ann-card > button:hover { background: var(--hover-bg); color: var(--text-primary); }
.desk-ann-more { pointer-events: auto; align-self: center; border: none; border-radius: 14px; padding: 5px 12px; font-size: .76rem; font-weight: 700; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
@keyframes deskAnnIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1250px) { .desk-ann { width: min(520px, calc(100% - 480px)); } }
.tb-ico .tb-badge.ann { background: #f59e0b; }
.dk-badge { position: absolute; top: 2px; right: 18px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.sm-app { position: relative; }
.sm-badge { position: absolute; top: 6px; right: 12px; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .66rem; font-weight: 800; line-height: 18px; text-align: center; font-style: normal; }
.wg-mail-acc { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border-color); cursor: pointer; border-radius: 8px; }
.wg-mail-acc:last-child { border-bottom: none; }
.wg-mail-acc:hover { background: var(--hover-bg); }
.wg-mail-acc span:not(.ml-dot) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .84rem; font-weight: 600; }
.wg-mail-acc b { font-size: .8rem; color: var(--primary); }
.wg-mail-acc b.zero { color: var(--text-muted); font-weight: 600; }
.tb-ico.on { background: rgba(255, 255, 255, .18); }

/* ============================================
   4.3: Chat
   ============================================ */
.embed-chat .topbar { display: none; }
.view.view-chat { overflow: hidden; display: flex; }
.ch-wrap { display: flex; flex: 1; min-width: 0; height: 100%; background: var(--card-bg); position: relative; }
.ch-wrap > .loading-big { flex: 1; }
.ch-wrap.drop::after { content: 'Dateien hier ablegen'; position: absolute; inset: 10px; z-index: 40; display: flex; align-items: center; justify-content: center; border: 3px dashed var(--primary); border-radius: 16px; background: rgba(var(--primary-rgb), .08); color: var(--primary); font-weight: 800; font-size: 1.1rem; pointer-events: none; }
.ch-side { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-color); background: var(--sidebar-bg); min-height: 0; }
.ch-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.ch-side-head b { font-size: 1.25rem; }
.ch-search { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; height: 36px; padding: 0 12px; border-radius: 18px; background: var(--hover-bg); border: 1px solid transparent; }
.ch-search:focus-within { border-color: var(--primary); background: var(--input-bg); }
.ch-search i { color: var(--text-muted); font-size: .8rem; }
.ch-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: .87rem; color: var(--text-primary); }
.ch-rooms { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px; scrollbar-width: thin; }
.ch-room { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; cursor: pointer; text-decoration: none; color: var(--text-primary); }
.ch-room:hover { background: var(--hover-bg); }
.ch-room.active { background: var(--active-bg); }
.ch-room-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-room-top, .ch-room-sub { display: flex; align-items: center; gap: 6px; }
.ch-room-top b { flex: 1; min-width: 0; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-room-top small { font-size: .7rem; color: var(--text-muted); flex-shrink: 0; }
.ch-room-sub > span { flex: 1; min-width: 0; font-size: .79rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-room-sub > i { font-size: .68rem; color: var(--text-muted); }
.ch-room-sub em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center; }
.ch-room-sub em.soft { background: var(--text-muted); }
.ch-room.unread .ch-room-top b { font-weight: 800; }
.ch-room.unread .ch-room-sub > span { color: var(--text-primary); font-weight: 600; }
.ch-room.unread .ch-room-top small { color: var(--primary); font-weight: 700; }
.ch-hash { font-style: normal; color: var(--text-muted); margin-right: 2px; }
.ch-none { color: var(--text-muted); text-align: center; padding: 30px 10px; font-size: .86rem; }
.ch-side-foot { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--border-color); }
.ch-side-foot .btn { flex: 1; justify-content: center; }
.ch-av { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; color: #fff; font-weight: 800; letter-spacing: .3px; overflow: visible; }
.ch-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-av.ch-room-ic { border-radius: 30%; font-size: .95rem; }
.ch-on { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card-bg); }
.ch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; background: var(--bg-primary, var(--card-bg)); }
.ch-hello { margin: auto; text-align: center; padding: 30px 20px; max-width: 460px; }
.ch-hello-ic { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #7c3aed, var(--primary)); box-shadow: 0 14px 34px rgba(124, 58, 237, .3); }
.ch-hello p { color: var(--text-secondary); margin: 8px 0 18px; }
.ch-hello-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ch-head { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--border-color); background: var(--card-bg); flex-shrink: 0; }
.ch-head .grow { flex: 1; }
.ch-head-txt { display: flex; flex-direction: column; min-width: 0; border: none; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--text-primary); }
.ch-head-txt b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-head-txt small { font-size: .76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
.ch-online { color: #16a34a; font-weight: 700; }
.ch-back { display: none; }
.ch-findbar { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-bottom: 1px solid var(--border-color); background: var(--card-bg); }
.ch-findbar input { flex: 1; border: 1px solid var(--border-color); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: .85rem; background: var(--input-bg); color: var(--text-primary); }
.ch-findbar small { color: var(--text-muted); }
.ch-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 6px; scrollbar-width: thin; display: flex; flex-direction: column; }
.ch-msgs > :first-child { margin-top: auto; }
.ch-more, .ch-begin { text-align: center; padding: 6px 0 12px; font-size: .76rem; color: var(--text-muted); }
.ch-empty { text-align: center; color: var(--text-muted); padding: 30px 0; }
.ch-day { text-align: center; margin: 14px 0 8px; position: sticky; top: 0; z-index: 2; }
.ch-day span { display: inline-block; padding: 3px 12px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--border-color); font-size: .72rem; font-weight: 700; color: var(--text-secondary); box-shadow: 0 2px 8px var(--shadow-color); }
.ch-sys { text-align: center; margin: 6px 0; }
.ch-sys span { display: inline-block; font-size: .75rem; color: var(--text-muted); background: var(--hover-bg); padding: 3px 12px; border-radius: 10px; }
.ch-msg { position: relative; display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; max-width: 100%; }
.ch-msg.grp { margin-top: 2px; }
.ch-msg.mine { flex-direction: row-reverse; }
.ch-av-sp { width: 32px; flex-shrink: 0; }
.ch-bwrap { display: flex; flex-direction: column; max-width: min(72%, 640px); min-width: 0; }
.ch-msg.mine .ch-bwrap { align-items: flex-end; }
.ch-name { font-size: .74rem; margin: 0 0 2px 10px; }
.ch-bubble { position: relative; padding: 7px 11px 6px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-primary); font-size: .92rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; min-width: 60px; box-shadow: 0 1px 2px var(--shadow-color); }
.ch-msg:not(.grp):not(.mine) .ch-bubble { border-bottom-left-radius: 5px; }
.ch-msg.mine .ch-bubble { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 80%, #7c3aed)); color: #fff; border-color: transparent; }
.ch-msg.mine:not(.grp) .ch-bubble { border-bottom-right-radius: 5px; }
.ch-msg.mine .ch-bubble a, .ch-msg.mine .ch-mention { color: #fff; }
.ch-text a { color: var(--primary); text-decoration: underline; }
.ch-text code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84em; padding: 1px 5px; border-radius: 5px; background: rgba(127, 127, 127, .16); }
.ch-code { margin: 4px 0; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .08); font: .8rem/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-x: auto; }
.ch-msg.mine .ch-code { background: rgba(0, 0, 0, .18); }
.ch-mention { font-weight: 700; color: var(--primary); }
.ch-mention.me { background: rgba(245, 158, 11, .22); border-radius: 5px; padding: 0 3px; color: inherit; }
.ch-text.big { font-size: 2.2rem; line-height: 1.2; }
.ch-msg.emoji .ch-bubble { background: none; border: none; box-shadow: none; padding: 0 4px; }
.ch-msg.emoji .ch-meta { color: var(--text-muted); }
.ch-meta { float: right; margin: 6px 0 -2px 10px; font-size: .64rem; opacity: .7; white-space: nowrap; }
.ch-del { color: var(--text-muted); font-style: italic; font-size: .85rem; }
.ch-msg.mine .ch-del { color: rgba(255, 255, 255, .8); }
.ch-quote { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-bottom: 5px; padding: 5px 9px; border: none; border-left: 3px solid var(--primary); border-radius: 8px; background: rgba(127, 127, 127, .12); color: inherit; font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.ch-msg.mine .ch-quote { border-left-color: #fff; background: rgba(255, 255, 255, .16); }
.ch-quote span { opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-img { display: block; position: relative; width: min(320px, 60vw); padding: 0 0 var(--r, 75%); margin: 2px 0 4px; border: none; border-radius: 12px; overflow: hidden; background: rgba(127, 127, 127, .15); cursor: zoom-in; }
.ch-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-file { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 320px; margin: 2px 0 4px; padding: 9px 11px; border-radius: 12px; border: none; background: rgba(127, 127, 127, .12); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.ch-file > i:first-child { font-size: 1.5rem; }
.ch-file span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-file b { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-file small { font-size: .72rem; opacity: .75; }
.ch-msg.mine .ch-file { background: rgba(255, 255, 255, .16); }
.ch-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ch-react { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); font: inherit; font-size: .8rem; cursor: pointer; color: var(--text-primary); }
.ch-react b { font-size: .7rem; }
.ch-react.me { border-color: var(--primary); background: var(--active-bg); }
.ch-acts { position: absolute; top: -14px; display: none; gap: 2px; padding: 2px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 4px 14px var(--shadow-color); z-index: 3; }
.ch-msg:not(.mine) .ch-acts { left: 48px; }
.ch-msg.mine .ch-acts { right: 6px; }
.ch-msg:hover .ch-acts { display: flex; }
.ch-acts button { border: none; background: none; width: 28px; height: 26px; border-radius: 7px; color: var(--text-secondary); cursor: pointer; }
.ch-acts button:hover { background: var(--hover-bg); color: var(--primary); }
.ch-msg.flash .ch-bubble, .ch-msg.hit .ch-bubble { box-shadow: 0 0 0 3px #f59e0b; }
.ch-msg.dim { opacity: .35; }
.ch-typing { min-height: 20px; padding: 0 20px 2px; font-size: .74rem; color: var(--text-muted); }
.ch-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.ch-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: chDot 1.2s infinite; }
.ch-dots i:nth-child(2) { animation-delay: .2s; } .ch-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes chDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ch-newhint { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 5; border: none; border-radius: 18px; padding: 7px 14px; background: var(--primary); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.ch-compose { position: relative; padding: 8px 14px 12px; border-top: 1px solid var(--border-color); background: var(--card-bg); flex-shrink: 0; }
.ch-cbar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-bottom: 6px; border-radius: 10px; background: var(--hover-bg); border-left: 3px solid var(--primary); }
.ch-cbar > i { color: var(--primary); }
.ch-cbar span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .8rem; }
.ch-cbar small { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-ups:empty { display: none; }
.ch-ups { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.ch-up { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 9px; background: var(--hover-bg); font-size: .8rem; }
.ch-up span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); transition: width .2s; }
.ch-cmain { display: flex; align-items: flex-end; gap: 4px; padding: 4px 4px 4px 6px; border: 1px solid var(--border-color); border-radius: 22px; background: var(--input-bg); }
.ch-cmain:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.ch-cmain textarea { flex: 1; min-width: 0; border: none; background: none; outline: none; resize: none; font: inherit; font-size: .93rem; line-height: 1.4; padding: 7px 4px; max-height: 180px; color: var(--text-primary); }
.ch-send { width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; flex-shrink: 0; }
.ch-send:hover { filter: brightness(1.08); }
.ch-join { padding: 14px; text-align: center; border-top: 1px solid var(--border-color); background: var(--card-bg); }
.ch-join p { margin-bottom: 8px; color: var(--text-secondary); }
.ch-emoji { position: absolute; bottom: calc(100% - 4px); left: 14px; z-index: 30; width: 330px; max-width: calc(100vw - 30px); max-height: 250px; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 14px 34px var(--shadow-color); }
.ch-emoji button, .ch-rpick button { border: none; background: none; font-size: 1.35rem; padding: 4px; border-radius: 8px; cursor: pointer; line-height: 1.2; }
.ch-emoji button:hover, .ch-rpick button:hover { background: var(--hover-bg); transform: scale(1.15); }
.ch-rpick { position: fixed; z-index: 9999; display: flex; gap: 2px; padding: 4px 6px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 10px 28px var(--shadow-color); }
.ch-msugg { position: absolute; bottom: calc(100% - 4px); left: 60px; z-index: 30; min-width: 240px; padding: 4px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 12px 30px var(--shadow-color); }
.ch-msugg button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border: none; border-radius: 8px; background: none; color: var(--text-primary); font: inherit; font-size: .84rem; cursor: pointer; text-align: left; }
.ch-msugg button small { color: var(--text-muted); margin-left: auto; }
.ch-msugg button.on, .ch-msugg button:hover { background: var(--hover-bg); }
.ch-tabs { display: flex; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: var(--hover-bg); }
.ch-tabs button { flex: 1; border: none; background: none; padding: 7px 10px; border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.ch-tabs button.on { background: var(--card-bg); color: var(--primary); box-shadow: 0 2px 8px var(--shadow-color); }
.ch-tabs + div .ch-search { margin: 0 0 8px; }
.modal .ch-search { margin: 0 0 8px; }
.ch-users { max-height: 46vh; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 12px; padding: 4px; }
.ch-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border: none; border-radius: 10px; background: none; color: var(--text-primary); font: inherit; cursor: pointer; text-align: left; }
.ch-user span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-user small { color: var(--text-muted); font-size: .74rem; }
.ch-user:hover { background: var(--hover-bg); }
.ch-uchk { opacity: 0; color: var(--primary); }
.ch-user.on { background: var(--active-bg); }
.ch-user.on .ch-uchk { opacity: 1; }
.ch-picked { font-size: .8rem; color: var(--text-secondary); margin-top: 6px; }
.ch-chlist { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.ch-chrow, .ch-mrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 12px; }
.ch-chrow > span:nth-child(2), .ch-mrow > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-chrow small, .ch-mrow small { color: var(--text-muted); font-size: .74rem; }
.ch-mlist { display: flex; flex-direction: column; gap: 5px; max-height: 40vh; overflow-y: auto; }
.ch-mrow { padding: 6px 8px; }
.ch-info-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ch-info-head p { margin-top: 4px; color: var(--text-secondary); font-size: .86rem; }
.ch-info-head small { color: var(--text-muted); }
.ch-info-opts { margin: 12px 0 4px; }
@media (max-width: 900px) {
    .ch-side { width: auto; flex: 1; border-right: none; }
    .ch-main { display: none; }
    .ch-wrap.show-room .ch-side { display: none; }
    .ch-wrap.show-room .ch-main { display: flex; }
    .ch-back { display: inline-flex; }
    .ch-msgs { padding: 10px 10px 4px; }
    .ch-bwrap { max-width: 84%; }
    .ch-acts { display: none !important; }
    .ch-head [data-c="search"] { display: none; }
}

/* ============================================
   4.3: Mein Abo
   ============================================ */
.ab-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 22px 60px; }
.ab-head h1 { font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.ab-head h1 i { color: #f59e0b; }
.ab-head p { margin-top: 4px; }
.ab-current { --pc: #4f7cff; margin: 18px 0 22px; padding: 22px 24px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 10px 30px var(--shadow-color); border-top: 5px solid var(--pc); display: grid; grid-template-columns: 1fr 320px; gap: 14px 24px; }
.ab-cur-main { display: flex; gap: 16px; align-items: flex-start; }
.ab-cur-ic { width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; background: var(--pc); box-shadow: 0 8px 20px color-mix(in srgb, var(--pc) 40%, transparent); }
.ab-cur-main small { text-transform: uppercase; font-size: .7rem; letter-spacing: .8px; font-weight: 800; color: var(--text-muted); }
.ab-cur-main h2 { font-size: 1.5rem; margin: 2px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ab-cur-main p { color: var(--text-secondary); font-size: .9rem; }
.ab-quota { align-self: center; }
.ab-q-top { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: 6px; }
.ab-q-top span { color: var(--text-muted); font-weight: 700; }
.ab-bar { height: 10px; border-radius: 6px; background: var(--hover-bg); overflow: hidden; }
.ab-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #22c55e)); }
.ab-current > .ab-feat { grid-column: 1 / -1; columns: 2; }
.ab-cur-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.ab-pill { display: inline-block; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; background: var(--hover-bg); color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; vertical-align: middle; }
.ab-pill.green { background: rgba(22, 163, 74, .14); color: #16a34a; } .ab-pill.amber { background: rgba(245, 158, 11, .16); color: #b45309; }
.ab-pill.red { background: rgba(239, 68, 68, .14); color: #dc2626; } .ab-pill.blue { background: rgba(59, 130, 246, .14); color: #2563eb; }
.ab-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ab-current > .ab-feat { display: block; }
.ab-current > .ab-feat li { margin-bottom: 6px; break-inside: avoid; }
.ab-feat li { font-size: .86rem; color: var(--text-secondary); }
.ab-feat li i { width: 18px; color: var(--pc, var(--primary)); }
.ab-card { margin-bottom: 18px; }
.ab-card h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ab-card h3 i { color: var(--primary); }
.ab-pay { padding: 14px 16px; border-radius: 14px; background: rgba(245, 158, 11, .07); border: 1px solid rgba(245, 158, 11, .3); margin-bottom: 10px; }
.ab-pay-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ab-pay-head > i { font-size: 1.4rem; color: #d97706; }
.ab-pay-head div { display: flex; flex-direction: column; }
.ab-pay-head small { color: var(--text-muted); }
.ab-pay p { font-size: .86rem; color: var(--text-secondary); margin-bottom: 8px; }
.ab-bank { white-space: pre-wrap; font: .84rem/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.ab-pay-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ab-sec { font-size: 1.2rem; margin: 8px 0 12px; }
.ab-sec small { font-size: .76rem; color: var(--text-muted); font-weight: 500; margin-left: 6px; }
.ab-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 26px; }
.ab-plan { --pc: #4f7cff; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 6px 22px var(--shadow-color); border-top: 4px solid var(--pc); transition: transform .15s, box-shadow .15s; }
.ab-plan:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--shadow-color); }
.ab-plan.hi { border: 2px solid var(--pc); border-top-width: 4px; }
.ab-plan.cur { background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 7%, var(--card-bg)), var(--card-bg)); }
.ab-rec { position: absolute; top: -12px; right: 16px; padding: 3px 11px; border-radius: 12px; background: var(--pc); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.ab-plan h3 { font-size: 1.2rem; color: var(--pc); }
.ab-desc { font-size: .84rem; color: var(--text-secondary); margin-top: -4px; }
.ab-price b { font-size: 1.9rem; font-weight: 900; }
.ab-price small { display: block; color: var(--text-muted); font-size: .8rem; }
.ab-plan .ab-feat { flex: 1; }
.ab-plan .btn { width: 100%; justify-content: center; margin-top: 4px; }
.ab-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ab-inv { display: flex; flex-direction: column; gap: 4px; }
.ab-inv-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text-primary); }
.ab-inv-row:hover { background: var(--hover-bg); }
.ab-inv-row > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ab-inv-row small { color: var(--text-muted); font-size: .74rem; }
.ab-confirm { --pc: #4f7cff; }
.ab-confirm h3 { color: var(--pc); font-size: 1.3rem; }
.ab-confirm .ab-price { margin: 6px 0 12px; }
.ab-confirm .ab-feat { margin-bottom: 12px; }
.ab-note { display: flex; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--hover-bg); font-size: .84rem; color: var(--text-secondary); margin-bottom: 8px; }
.ab-note i { color: var(--primary); margin-top: 3px; }
@media (max-width: 800px) {
    .ab-current { grid-template-columns: 1fr; }
    .ab-current > .ab-feat { columns: 1; }
    .ab-grid2 { grid-template-columns: 1fr; }
    .ab-wrap { padding: 16px 12px 50px; }
}

/* ============================================
   4.4: Hilfe-Fenster (Live-Chat & Ticket)
   ============================================ */
.hdw { position: fixed; right: 22px; bottom: 22px; z-index: 9500; font-family: inherit; }
.hdw.hdw-login { bottom: 80px; }
.hdw.hdw-desk { bottom: 66px; }
.hdw.hdw-hide { display: none; }
.hdw-btn { position: relative; width: 56px; height: 56px; border: none; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1.35rem; background: linear-gradient(135deg, var(--primary, #4f7cff), #7c3aed); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); transition: transform .15s; }
.hdw-btn:hover { transform: scale(1.06); }
.hdw.on .hdw-btn i::before { content: '\f00d'; }
.hdw-badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; line-height: 22px; border: 2px solid #fff; }
.hdw-panel { position: absolute; right: 0; bottom: 70px; width: 370px; max-width: calc(100vw - 24px); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card-bg, #fff); color: var(--text-primary, #1f2633); border: 1px solid var(--border-color, #e5e7eb); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: hdwIn .2s ease; }
.hdw-panel[hidden] { display: none; }
@keyframes hdwIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.hdw-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, var(--primary, #4f7cff), #7c3aed); flex-shrink: 0; }
.hdw-logo { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); font-size: 1.05rem; }
.hdw-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hdw-ht b { font-size: 1rem; }
.hdw-ht small { font-size: .76rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; margin-right: 3px; vertical-align: 1px; }
.hdw-dot.on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
.hdw-dot.wait { background: #fbbf24; animation: hdwPulse 1.2s infinite; }
@keyframes hdwPulse { 50% { opacity: .4; } }
.hdw-ic { width: 34px; height: 34px; border: none; border-radius: 10px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; flex-shrink: 0; }
.hdw-ic:hover { background: rgba(255, 255, 255, .28); }
.hdw-ic.danger:hover { background: #ef4444; }
.hdw-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hdw-hello p { margin: 0 0 6px; line-height: 1.5; }
.hdw-muted { color: var(--text-muted, #6b7280); font-size: .82rem; margin: 0; }
.hdw-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--border-color, #e5e7eb); background: var(--card-bg, #fff); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: .15s; }
.hdw-card:hover { border-color: var(--primary, #4f7cff); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.hdw-card > i:first-child { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(79, 124, 255, .12); color: var(--primary, #4f7cff); flex-shrink: 0; }
.hdw-card span { flex: 1; display: flex; flex-direction: column; }
.hdw-card small { color: var(--text-muted, #6b7280); font-size: .78rem; }
.hdw-card > i:last-child { color: var(--text-muted, #9ca3af); font-size: .8rem; }
.hdw-note { padding: 11px 13px; border-radius: 12px; background: var(--hover-bg, #f3f4f6); font-size: .85rem; color: var(--text-secondary, #4b5563); line-height: 1.5; }
.hdw-form label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--text-secondary, #4b5563); }
.hdw-form label small { font-weight: 500; color: var(--text-muted, #9ca3af); }
.hdw-form input, .hdw-form select, .hdw-form textarea, .hdw-timeout input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border-color, #d6dbe6); background: var(--input-bg, #fff); color: var(--text-primary, #1f2633); font: inherit; font-size: .9rem; font-weight: 400; }
.hdw-form textarea { resize: vertical; }
.hdw-form input:focus, .hdw-form textarea:focus, .hdw-form select:focus { outline: none; border-color: var(--primary, #4f7cff); }
.hdw-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.hdw-primary, .hdw-sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; border: none; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.hdw-primary { background: var(--primary, #4f7cff); color: #fff; }
.hdw-sec { background: var(--hover-bg, #f1f5f9); color: var(--text-primary, #1f2633); }
.hdw-primary:disabled, .hdw-sec:disabled { opacity: .6; cursor: default; }
.hdw-err { color: #dc2626; font-size: .82rem; margin: 0; }
.hdw-done { text-align: center; padding: 10px 4px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hdw-done > i { font-size: 2.6rem; color: #16a34a; }
.hdw-done h3 { margin: 0; font-size: 1.05rem; }
.hdw-done p { margin: 0; font-size: .86rem; color: var(--text-secondary, #4b5563); }
.hdw-link { word-break: break-all; font-size: .78rem; padding: 8px 10px; border-radius: 10px; background: var(--hover-bg, #f3f4f6); color: var(--primary, #4f7cff); }
.hdw-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-secondary, var(--hover-bg, #f7f8fb)); }
.hdw-m { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.hdw-m.me { align-self: flex-end; align-items: flex-end; }
.hdw-m small { font-size: .7rem; color: var(--text-muted, #6b7280); margin: 0 0 2px 8px; }
.hdw-m > div { padding: 8px 12px 6px; border-radius: 15px; border-bottom-left-radius: 5px; background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e5e7eb); font-size: .9rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.hdw-m.me > div { background: var(--primary, #4f7cff); color: #fff; border-color: transparent; border-radius: 15px; border-bottom-right-radius: 5px; }
.hdw-m > div a { color: inherit; text-decoration: underline; }
.hdw-m i { display: block; text-align: right; font-style: normal; font-size: .62rem; opacity: .7; margin-top: 2px; }
.hdw-sys { align-self: center; text-align: center; font-size: .74rem; color: var(--text-muted, #6b7280); background: var(--card-bg, #fff); border-radius: 10px; padding: 3px 10px; }
.hdw-sys.wait { display: flex; align-items: center; gap: 8px; }
.hdw-spin { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hdwSpin .8s linear infinite; vertical-align: -2px; }
@keyframes hdwSpin { to { transform: rotate(360deg); } }
.hdw-timeout { padding: 10px 14px; border-top: 1px solid var(--border-color, #e5e7eb); display: flex; flex-direction: column; gap: 8px; background: rgba(245, 158, 11, .08); }
.hdw-timeout p { margin: 0; font-size: .82rem; }
.hdw-compose { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-top: 1px solid var(--border-color, #e5e7eb); background: var(--card-bg, #fff); flex-shrink: 0; }
.hdw-compose textarea { flex: 1; resize: none; max-height: 110px; padding: 9px 12px; border-radius: 18px; border: 1px solid var(--border-color, #d6dbe6); background: var(--input-bg, #fff); color: var(--text-primary, #1f2633); font: inherit; font-size: .9rem; }
.hdw-compose textarea:focus { outline: none; border-color: var(--primary, #4f7cff); }
.hdw-compose button { width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--primary, #4f7cff); color: #fff; cursor: pointer; flex-shrink: 0; }
.hdw-endbox { padding: 12px 14px; border-top: 1px solid var(--border-color, #e5e7eb); text-align: center; display: flex; flex-direction: column; gap: 8px; }
.hdw-endbox p { margin: 0; font-size: .86rem; }
.hdw-stars { display: flex; justify-content: center; gap: 4px; }
.hdw-stars button { border: none; background: none; font-size: 1.8rem; color: #d1d5db; cursor: pointer; line-height: 1; padding: 0 2px; }
.hdw-stars button:hover, .hdw-stars button:hover ~ button { color: #d1d5db; }
.hdw-stars:hover button { color: #f59e0b; }
.hdw-stars button:hover ~ button { color: #d1d5db; }
.hdw-row { display: flex; gap: 8px; }
@media (max-width: 520px) {
    .hdw { right: 12px; bottom: 12px; }
    .hdw.hdw-login { bottom: 76px; }
    .hdw.on .hdw-panel { position: fixed; inset: 0; width: auto; max-width: none; height: auto; border-radius: 0; bottom: 0; }
    .hdw.on .hdw-btn { display: none; }
}

/* ============================================
   4.4: Support (eigene Tickets)
   ============================================ */
.sp-wrap { max-width: 980px; margin: 0 auto; padding: 24px 22px 60px; }
.sp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-head h1 { font-size: 1.5rem; margin: 4px 0 2px; display: flex; align-items: center; gap: 10px; word-break: break-word; }
.sp-head h1 i { color: var(--primary); }
.sp-head-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-left: 2px; }
.sp-list h3 { font-size: .95rem; margin-bottom: 8px; color: var(--text-secondary); }
.sp-list { margin-bottom: 16px; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; text-decoration: none; color: var(--text-primary); }
.sp-row:hover { background: var(--hover-bg); }
.sp-row-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--active-bg); color: var(--primary); flex-shrink: 0; }
.sp-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-row-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-row-txt small { color: var(--text-muted); font-size: .76rem; }
.sp-row.unread b { color: var(--primary); }
.sp-row em { font-style: normal; font-size: .7rem; font-weight: 800; color: #fff; background: var(--primary); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.sp-pill { display: inline-block; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; background: var(--hover-bg); color: var(--text-muted); }
.sp-pill.open { background: rgba(59, 130, 246, .14); color: #2563eb; }
.sp-pill.progress { background: rgba(245, 158, 11, .16); color: #b45309; }
.sp-pill.answered { background: rgba(22, 163, 74, .14); color: #15803d; }
.sp-thread { display: flex; flex-direction: column; gap: 12px; }
.sp-msg { padding: 12px 14px; border-radius: 14px; background: var(--hover-bg); border: 1px solid var(--border-color); max-width: 92%; }
.sp-msg.agent { align-self: flex-start; background: rgba(var(--primary-rgb), .06); border-color: rgba(var(--primary-rgb), .25); }
.sp-msg:not(.agent) { align-self: flex-end; }
.sp-msg.internal { background: rgba(250, 204, 21, .14); border: 1px dashed #eab308; align-self: stretch; max-width: none; }
.sp-msg-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; font-size: .84rem; }
.sp-msg-h small { margin-left: auto; color: var(--text-muted); font-size: .74rem; }
.sp-msg-b { font-size: .92rem; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere; }
.sp-msg-b a { color: var(--primary); }
.sp-tag { font-size: .64rem; font-weight: 800; text-transform: uppercase; padding: 1px 7px; border-radius: 8px; background: var(--primary); color: #fff; letter-spacing: .3px; }
.sp-tag.note { background: #eab308; }
.sp-sys { align-self: center; font-size: .76rem; color: var(--text-muted); background: var(--hover-bg); padding: 3px 12px; border-radius: 12px; text-align: center; }
.sp-files, .sp-filelist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-filelist:empty { display: none; }
.sp-file { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--card-bg); font-size: .8rem; color: var(--text-primary); text-decoration: none; }
.sp-file:hover { border-color: var(--primary); }
.sp-file.busy { opacity: .6; }
.sp-file button { border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; padding: 0 2px; }
.sp-reply { margin-top: 14px; }
.sp-reply textarea { width: 100%; resize: vertical; }
.sp-reply-foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.sp-reply-foot .sp-filelist { flex: 1; margin: 0; }
.sp-rate { margin-top: 14px; text-align: center; }
.sp-starbtns button { border: none; background: none; font-size: 2rem; color: #d1d5db; cursor: pointer; padding: 0 3px; }
.sp-starbtns:hover button { color: #f59e0b; }
.sp-starbtns button:hover ~ button { color: #d1d5db; }
.sp-stars { color: #f59e0b; letter-spacing: 1px; }
.sp-stars span { color: #d1d5db; }

/* ============================================
   4.4: Helpdesk (Mitarbeiter)
   ============================================ */
.embed-helpdesk .topbar, .embed-support .topbar { display: none; }
.view.view-helpdesk { overflow: hidden; display: flex; }
.hd-wrap { display: flex; flex: 1; min-width: 0; height: 100%; background: var(--card-bg); }
.hd-side { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-color); background: var(--sidebar-bg); min-height: 0; }
.hd-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.hd-side-head b { font-size: 1.15rem; }
.hd-side-head b i { color: var(--primary); }
.hd-online { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.hd-online input { display: none; }
.hd-online span { position: relative; width: 38px; height: 22px; border-radius: 11px; background: #cbd5e1; transition: .2s; }
.hd-online span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.hd-online input:checked + span { background: #22c55e; }
.hd-online input:checked + span::after { left: 19px; }
.hd-tabs { display: flex; gap: 4px; margin: 0 12px 10px; padding: 4px; border-radius: 12px; background: var(--hover-bg); }
.hd-tabs button { flex: 1; border: none; background: none; padding: 8px; border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.hd-tabs button.on { background: var(--card-bg); color: var(--primary); box-shadow: 0 2px 8px var(--shadow-color); }
.hd-tabs em { font-style: normal; font-size: .68rem; background: var(--text-muted); color: #fff; border-radius: 9px; padding: 0 6px; margin-left: 3px; }
.hd-tabs em.hot { background: #ef4444; animation: hdwPulse 1.2s infinite; }
.hd-filters { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 12px 8px; }
.hd-filters .chip { font-size: .74rem; padding: 4px 10px; }
#hdTicketTools .ch-search { margin: 0 12px 8px; }
.hd-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; scrollbar-width: thin; }
.hd-sec { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 10px 6px 4px; }
.hd-sec small { background: var(--hover-bg); border-radius: 8px; padding: 0 6px; }
.hd-none { font-size: .8rem; color: var(--text-muted); padding: 4px 8px 8px; }
.hd-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; cursor: pointer; text-decoration: none; color: var(--text-primary); border: 1px solid transparent; background: none; font: inherit; text-align: left; }
.hd-item:hover { background: var(--hover-bg); }
.hd-item.active { background: var(--active-bg); border-color: rgba(var(--primary-rgb), .25); }
.hd-item.waiting { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .35); }
.hd-item.unread b { color: var(--primary); }
.hd-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hd-item-top { display: flex; gap: 6px; align-items: baseline; }
.hd-item-top b { flex: 1; min-width: 0; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-item-top small { font-size: .7rem; color: var(--text-muted); flex-shrink: 0; }
.hd-item-sub { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-item-meta { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.hd-item > em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center; }
.hd-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: #94a3b8; }
.hd-av.user { background: var(--primary); }
.hd-av.big { width: 44px; height: 44px; font-size: 1.1rem; }
.hd-prio { width: 6px; align-self: stretch; border-radius: 3px; background: #cbd5e1; flex-shrink: 0; }
.hd-prio.high { background: #f59e0b; } .hd-prio.urgent { background: #ef4444; } .hd-prio.low { background: #e2e8f0; } .hd-prio.normal { background: #60a5fa; }
.hd-histbtn { margin: 10px 8px; }
.hd-side-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--border-color); font-size: .74rem; color: var(--text-muted); flex-wrap: wrap; }
.hd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; vertical-align: 0; }
.hd-dot.on { background: #22c55e; }
.hd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.hd-main > .loading-big { margin: auto; }
.hd-empty { margin: auto; text-align: center; color: var(--text-muted); padding: 20px; }
.hd-empty i { font-size: 3rem; color: var(--border-color); margin-bottom: 10px; }
.hd-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; flex-shrink: 0; }
.hd-head .grow { flex: 1; }
.hd-head-txt { min-width: 0; display: flex; flex-direction: column; }
.hd-head-txt b { font-size: 1.02rem; word-break: break-word; }
.hd-head-txt small { font-size: .76rem; color: var(--text-muted); }
.hd-subj { cursor: pointer; }
.hd-subj i { font-size: .7rem; color: var(--text-muted); opacity: 0; }
.hd-subj:hover i { opacity: 1; }
.hd-back { display: none; }
.hd-banner { padding: 8px 16px; font-size: .82rem; background: var(--hover-bg); color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.hd-chatmsgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.hd-cm { max-width: 72%; align-self: flex-start; }
.hd-cm.me { align-self: flex-end; text-align: right; }
.hd-cm small { font-size: .7rem; color: var(--text-muted); }
.hd-cm > div { display: inline-block; text-align: left; padding: 8px 12px; border-radius: 14px; background: var(--hover-bg); border: 1px solid var(--border-color); font-size: .9rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.hd-cm.me > div { background: var(--primary); color: #fff; border-color: transparent; }
.hd-cm.me > div a { color: #fff; }
.hd-typing { min-height: 20px; padding: 0 16px; font-size: .76rem; color: var(--text-muted); }
.hd-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px; border-top: 1px solid var(--border-color); flex-wrap: wrap; }
.hd-compose textarea { flex: 1; min-width: 200px; resize: vertical; min-height: 44px; max-height: 200px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-primary); font: inherit; }
.hd-canned { max-width: 170px; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-primary); font: inherit; font-size: .8rem; }
.hd-tgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 260px; }
.hd-tmain { min-height: 0; display: flex; flex-direction: column; }
.hd-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hd-reply { border-top: 1px solid var(--border-color); padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.hd-reply.note { background: rgba(250, 204, 21, .08); }
.hd-reply textarea { width: 100%; resize: vertical; }
.hd-reply-tabs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.hd-reply-tabs label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; }
.hd-reply-tabs .hd-canned { margin-left: auto; }
.hd-reply-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hd-reply-foot .grow { flex: 1; }
.hd-after { width: auto; max-width: 240px; padding: 6px 8px; font-size: .8rem; }
.hd-tside { border-left: 1px solid var(--border-color); overflow-y: auto; padding: 12px; background: var(--sidebar-bg); }
.hd-box { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border-color); margin-bottom: 10px; font-size: .85rem; word-break: break-word; }
.hd-box label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-top: 6px; }
.hd-box label:first-child { margin-top: 0; }
.hd-box small { color: var(--text-muted); font-size: .76rem; }
.hd-box a { color: var(--primary); }
.hd-sel { padding: 6px 8px; font-size: .84rem; }
.hd-hist { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
@media (max-width: 1100px) { .hd-tgrid { grid-template-columns: 1fr; } .hd-tside { border-left: none; border-top: 1px solid var(--border-color); max-height: 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .hd-side { width: 300px; } }
@media (max-width: 860px) {
    .hd-side { width: auto; flex: 1; border-right: none; }
    .hd-main { display: none; }
    .hd-wrap.show-main .hd-side { display: none; }
    .hd-wrap.show-main .hd-main { display: flex; }
    .hd-back { display: inline-flex; }
    .hd-head .btn span { display: none; }
    .hd-tside { grid-template-columns: 1fr; max-height: none; }
    .hd-tgrid { overflow-y: auto; display: block; }
    .hd-thread { overflow: visible; }
}

/* ============================================
   4.6 – PDF-Betrachter (pdf.js)
   ============================================ */
.pdfv { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: #3a3d42; border-radius: 8px; overflow: hidden; color: #fff; }
.pdfv-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: rgba(0,0,0,.35); flex-shrink: 0; font-size: .85rem; }
.pdfv-bar button, .pdfv-bar a { background: rgba(255,255,255,.08); border: 0; color: #fff; min-width: 34px; height: 32px; padding: 0 9px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; text-decoration: none; }
.pdfv-bar button:hover, .pdfv-bar a:hover { background: rgba(255,255,255,.18); }
.pdfv-pg { opacity: .85; white-space: nowrap; padding: 0 4px; }
.pdfv-sp { flex: 1; }
.pdfv-scroll { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.pdfv-pages { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 6px 24px; min-width: min-content; }
.pdfv-page { position: relative; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.35); flex-shrink: 0; }
.pdfv-page canvas { display: block; }
.pdfv-msg { margin: auto; padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; }
.pdfv-msg > i { font-size: 2.4rem; opacity: .8; }
.pdfv-pw .input { max-width: 260px; }
.pdfv-frame { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
.vw-body .vw-pdf { width: 100%; height: 100%; min-height: 0; }
.ml-preview-pdf .pdfv { border-radius: 10px; }
.share-pdf { padding: 0; overflow: hidden; }
.share-pdf iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) {
    .vw-body:has(.vw-pdf) { padding: 0; }
    .vw-body .vw-pdf .pdfv { border-radius: 0; }
    .vw-pdf ~ .vw-nav { display: none; }
    .share-pdf { height: 70vh; }
}

/* ============================================
   4.7 – Baukasten der Anmeldeseite (.lpb)
   ============================================ */
.lpb-body { color: var(--text-primary); }
.lpb-body.lpb-noglow::before { display: none; }
.lpb-bgimg { position: fixed; inset: 0; background-size: cover; background-position: center; z-index: 0; pointer-events: none; }
.lpb-bgshade { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lpb { position: relative; z-index: 1; --lpb-w: 1320px; --lpb-r: 18px; padding: 0 0 20px; }
.lpb-r-s { --lpb-r: 8px; } .lpb-r-m { --lpb-r: 18px; } .lpb-r-l { --lpb-r: 28px; }
.lpb-font-system { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.lpb-font-serif { font-family: Georgia, "Times New Roman", serif; }
.lpb-font-serif .lpb-h { letter-spacing: -.5px; font-weight: 700; }
.lpb-font-rounded { font-family: Nunito, "Inter", system-ui, sans-serif; }
.lpb-font-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.lpb-font-mono .lpb-h { letter-spacing: -1px; }
.lpb-r-s .lp-card { border-radius: 10px; } .lpb-r-l .lp-card { border-radius: 32px; }

/* Textfarbe */
.lpb-text-light { color: #fff; }
.lpb-text-dark { color: #1c1917; }
.lpb-text-light .lpb-text a, .lpb-text-light .lp-section a { color: #fff; }
.lpb-text-dark .lpb-text a, .lpb-text-dark .lp-section a { color: var(--primary); }
.lpb-text-dark .lp-footer { color: rgba(28,25,23,.75); }
.lpb-text-dark .lp-footer a { color: #1c1917; }
.lpb-text-dark .lp-badge, .lpb-text-dark .lp-status, .lpb-text-dark .lp-stats, .lpb-text-dark .lp-feature, .lpb-text-dark .lp-faq, .lpb-text-dark .lp-contact a, .lpb-text-dark .lp-contact span, .lpb-text-dark .lpb-social a { background: rgba(28,25,23,.05); border-color: rgba(28,25,23,.12); color: #1c1917; }
.lpb-text-dark .lp-stats div + div { border-left-color: rgba(28,25,23,.12); }
.lpb-text-dark .lp-feature i, .lpb-text-dark .lp-brand .brand-logo { background: rgba(var(--primary-rgb), .12); color: var(--primary); border-color: rgba(var(--primary-rgb), .25); }

/* Bereiche */
.lpb-sec { position: relative; padding: 0 24px; background-size: cover; background-position: center; }
.lpb-sec-in { max-width: var(--lpb-w); margin: 0 auto; }
.lpb-w-narrow .lpb-sec-in { max-width: 720px; }
.lpb-w-normal .lpb-sec-in { max-width: 1080px; }
.lpb-w-full .lpb-sec-in { max-width: none; }
.lpb-pad-0 { padding-top: 0; padding-bottom: 0; }
.lpb-pad-s { padding-top: 16px; padding-bottom: 16px; }
.lpb-pad-m { padding-top: 36px; padding-bottom: 36px; }
.lpb-pad-l { padding-top: 56px; padding-bottom: 56px; }
.lpb-pad-xl { padding-top: 90px; padding-bottom: 90px; }
.lpb-minh-half { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
.lpb-minh-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.lpb-minh-half > .lpb-sec-in, .lpb-minh-screen > .lpb-sec-in { width: 100%; }
.lpb-bg-glass, .lpb-bg-card, .lpb-bg-dark, .lpb-bg-color, .lpb-bg-image { margin: 14px auto; max-width: calc(var(--lpb-w) + 48px); width: calc(100% - 28px); }
.lpb-bg-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lpb-text-dark .lpb-bg-glass, .lpb-bg-glass.lpb-text-dark { background: rgba(255,255,255,.55); border-color: rgba(28,25,23,.08); }
.lpb-bg-card { background: var(--card-bg); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.lpb-bg-dark { background: rgba(10,10,12,.55); color: #fff; }
.lpb-round { border-radius: calc(var(--lpb-r) + 8px); }
.lpb-w-full.lpb-round { border-radius: 0; }
.lpb-sec.lpb-w-full { margin-left: 0; margin-right: 0; width: 100%; max-width: none; }

/* Spalten */
.lpb-grid { display: grid; }
.lpb-gap-s { gap: 14px; } .lpb-gap-m { gap: 28px; } .lpb-gap-l { gap: 44px; } .lpb-gap-xl { gap: 64px; }
.lpb-va-start { align-items: start; } .lpb-va-center { align-items: center; } .lpb-va-end { align-items: end; } .lpb-va-stretch { align-items: stretch; }
.lpb-col { display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 12px; min-width: 0; }
.lpb-cva-start { align-self: start; } .lpb-cva-center { align-self: center; } .lpb-cva-end { align-self: end; }
.lpb-col:has(> .lpb-blk .lpb-sticky) { position: sticky; top: 28px; align-self: start; }
.lpb-col.lpb-box-glass, .lpb-col.lpb-box-card, .lpb-col.lpb-box-dark { padding: 26px; border-radius: var(--lpb-r); }

/* Ausrichtung */
.lpb-al-left { text-align: left; --lpb-jc: flex-start; }
.lpb-al-center { text-align: center; --lpb-jc: center; }
.lpb-al-right { text-align: right; --lpb-jc: flex-end; }
.lpb-sec.lpb-al-center .lpb-col, .lpb-sec.lpb-al-right .lpb-col { justify-content: var(--lpb-jc); }
.lpb .lp-brand, .lpb .lp-contact, .lpb .lp-footer, .lpb .lpb-social, .lpb .lpb-cd-row { justify-content: var(--lpb-jc, flex-start); }
.lpb .lp-brand { margin-bottom: 0; }
.lpb .lp-footer { margin-top: 0; }
.lpb-al-center .lpb-auth, .lpb-al-center .lpb-img img, .lpb-al-center .lpb-hr { margin-left: auto; margin-right: auto; }
.lpb-al-right .lpb-auth, .lpb-al-right .lpb-hr { margin-left: auto; }
.lpb-al-center .lpb-check { display: inline-block; text-align: left; }
.lpb-al-center .lpb-text p, .lpb-al-center .lpb-text { margin-left: auto; margin-right: auto; }

/* Bausteine */
.lpb-blk { flex: 0 0 100%; min-width: 0; position: relative; }
.lpb-bw-auto { flex: 0 0 auto; max-width: 100%; }
.lpb-bw-half { flex: 0 0 calc(50% - 6px); }
.lpb-bw-third { flex: 0 0 calc(33.333% - 8px); }
.lpb-mt-0 { margin-top: 0; } .lpb-mt-s { margin-top: 8px; } .lpb-mt-m { margin-top: 16px; } .lpb-mt-l { margin-top: 28px; } .lpb-mt-xl { margin-top: 48px; }
.lpb-blk.lpb-box-glass, .lpb-blk.lpb-box-card, .lpb-blk.lpb-box-accent, .lpb-blk.lpb-box-dark { border-radius: var(--lpb-r); }
.lpb-box-glass { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.17); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lpb-text-dark .lpb-box-glass { background: rgba(255,255,255,.6); border-color: rgba(28,25,23,.08); }
.lpb-box-card { background: var(--card-bg); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.lpb-box-accent { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.lpb-box-dark { background: rgba(10,10,12,.55); color: #fff; }
.lpb-p-0 { padding: 0; } .lpb-p-s { padding: 12px 14px; } .lpb-p-m { padding: 20px 22px; } .lpb-p-l { padding: 34px 32px; }
.lpb-blk > .lp-section { margin: 0; }
.lpb-blk > .lp-features { margin: 0; }

.lpb-brand-s { font-size: 1.05rem; } .lpb-brand-s .brand-logo { width: 38px; height: 38px; font-size: 1rem; border-radius: 11px; }
.lpb-brand-l { font-size: 1.6rem; } .lpb-brand-l .brand-logo { width: 64px; height: 64px; font-size: 1.7rem; border-radius: 18px; } .lpb-brand-l .lp-logo-img { max-height: 72px; }
.lpb-h { font-weight: 900; line-height: 1.1; margin: 0; }
.lpb-h-xl { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -1.5px; }
.lpb-h-l { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -1px; }
.lpb-h-m { font-size: 1.45rem; letter-spacing: -.5px; }
.lpb-h-s { font-size: 1.1rem; letter-spacing: -.2px; }
.lpb-grad { background: linear-gradient(100deg, currentColor 0%, var(--primary-light) 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lpb-text { line-height: 1.65; opacity: .92; max-width: 680px; }
.lpb-text p + p { margin-top: .7em; }
.lpb-ts-s { font-size: .9rem; } .lpb-ts-m { font-size: 1rem; } .lpb-ts-l { font-size: 1.12rem; }
.lpb-btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; text-decoration: none; font-weight: 800; border-radius: calc(var(--lpb-r) - 4px); transition: transform .15s, box-shadow .15s, background .15s; border: 2px solid transparent; cursor: pointer; }
.lpb-btn:hover { transform: translateY(-2px); }
.lpb-btn-s { padding: 8px 14px; font-size: .85rem; } .lpb-btn-m { padding: 12px 22px; font-size: .95rem; } .lpb-btn-l { padding: 16px 30px; font-size: 1.08rem; }
.lpb-btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary))); color: #fff; box-shadow: 0 10px 26px rgba(var(--primary-rgb), .38); }
.lpb-btn-light { background: #fff; color: #1c1917; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.lpb-btn-outline { border-color: currentColor; color: inherit; }
.lpb-btn-ghost { background: rgba(255,255,255,.12); color: inherit; }
.lpb-text-dark .lpb-btn-ghost { background: rgba(28,25,23,.06); }
.lpb-img img { display: block; max-width: 100%; height: auto; }
.lpb-shadow { box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.lpb-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.lpb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lpb-play { position: absolute; inset: 0; width: 100%; border: 0; background: radial-gradient(circle, rgba(255,255,255,.08), rgba(0,0,0,.65)); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font: inherit; }
.lpb-play i { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .2s; }
.lpb-play:hover i { transform: scale(1.08); }
.lpb-play span { font-weight: 800; } .lpb-play small { opacity: .7; font-size: .72rem; }
.lpb-auth { max-width: 100%; color: var(--text-primary); text-align: left; }
.lpb-auth-s { width: 380px; } .lpb-auth-m { width: 440px; } .lpb-auth-l { width: 520px; } .lpb-auth-full { width: 100%; }
.lpb-look-glass .lp-card { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff; }
.lpb-look-glass .lp-card .auth-text, .lpb-look-glass .lp-card label, .lpb-look-glass .lp-secure, .lpb-look-glass .lp-card .auth-switch { color: rgba(255,255,255,.85); }
.lpb-look-glass .lp-card .input-icon input { background: rgba(255,255,255,.92); }
.lpb-look-flat .lp-card { box-shadow: none; }
.lpb-notop .lp-card::before { display: none; }
.lpb-nosecure .lp-secure { display: none; }
.lpb-auth.lpb-sticky { position: relative; }
.lpb-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lpb-check li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.lpb-check i { color: var(--primary-light); margin-top: 3px; }
.lpb-text-dark .lpb-check i { color: var(--primary); }
.lpb-quote { margin: 0; position: relative; padding-left: 4px; }
.lpb-quote > i { font-size: 1.8rem; opacity: .35; }
.lpb-quote blockquote { margin: 8px 0 10px; font-size: 1.2rem; font-weight: 600; line-height: 1.5; font-style: italic; }
.lpb-quote figcaption b { display: block; } .lpb-quote figcaption span { opacity: .75; font-size: .88rem; }
.lpb-countdown .lpb-cd-title { font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem; opacity: .85; margin-bottom: 12px; }
.lpb-cd-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lpb-cd-row > div { min-width: 86px; padding: 14px 10px; border-radius: var(--lpb-r); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); text-align: center; backdrop-filter: blur(8px); }
.lpb-text-dark .lpb-cd-row > div { background: rgba(28,25,23,.05); border-color: rgba(28,25,23,.12); }
.lpb-cd-row b { display: block; font-size: 2.2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lpb-cd-row span { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; opacity: .75; font-weight: 700; }
.lpb-cd-done { font-size: 1.4rem; font-weight: 900; }
.lpb-social { display: flex; flex-wrap: wrap; gap: 10px; }
.lpb-social a { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: inherit; text-decoration: none; transition: transform .15s, background .15s; }
.lpb-social a:hover { transform: translateY(-2px); background: var(--primary); color: #fff; }
.lpb-social-s a { width: 34px; height: 34px; font-size: .9rem; } .lpb-social-m a { width: 44px; height: 44px; font-size: 1.1rem; } .lpb-social-l a { width: 56px; height: 56px; font-size: 1.4rem; }
.lpb-hr { border: 0; height: 2px; margin: 0; background: currentColor; opacity: .18; }
.lpb-hr-dashed { background: none; border-top: 2px dashed currentColor; height: 0; }
.lpb-hr-dotted { background: none; border-top: 3px dotted currentColor; height: 0; }
.lpb-hr-fade { background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: .35; }
.lpb-feat-plain .lp-feature { background: none; border-color: transparent; padding: 6px 0; }
.lpb-feat-center .lp-feature { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
.lpb-feat-center .lp-feature i { width: 56px; height: 56px; font-size: 1.35rem; border-radius: 16px; }
.lpb-fcols-1 { grid-template-columns: 1fr; } .lpb-fcols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpb-fcols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lpb-fcols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lpb-ph { padding: 22px; border: 2px dashed rgba(127,127,127,.45); border-radius: var(--lpb-r); text-align: center; opacity: .75; font-weight: 600; }

/* Einblenden */
.lpb-anim .lpb-a { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.lpb-anim .lpb-a-up { transform: translateY(26px); }
.lpb-anim .lpb-a-zoom { transform: scale(.94); }
.lpb-anim .lpb-a-left { transform: translateX(-34px); }
.lpb-anim .lpb-a-right { transform: translateX(34px); }
.lpb-anim .lpb-a.lpb-in { opacity: 1; transform: none; }
.lpb-anim .lpb-a.lpb-in:has(.lpb-sticky) { transform: none; }
@media (prefers-reduced-motion: reduce) { .lpb-anim .lpb-a { opacity: 1; transform: none; transition: none; } }

/* Handy & Tablet */
@media (max-width: 900px) {
    .lpb-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .lpb-gap-l, .lpb-gap-xl { gap: 34px; }
    .lpb-first { order: -1; }
    .lpb-hide-mobile { display: none !important; }
    .lpb-col:has(> .lpb-blk .lpb-sticky) { position: static; }
    .lpb-sec { padding-left: 16px; padding-right: 16px; }
    .lpb-pad-l { padding-top: 34px; padding-bottom: 34px; } .lpb-pad-xl { padding-top: 54px; padding-bottom: 54px; }
    .lpb-minh-screen { min-height: auto; }
    .lpb-auth { width: 100%; }
    .lpb-fcols-3, .lpb-fcols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lpb-bw-half, .lpb-bw-third { flex-basis: 100%; }
}
@media (max-width: 560px) { .lpb-fcols-2, .lpb-fcols-3, .lpb-fcols-4 { grid-template-columns: 1fr; } .lpb-cd-row > div { min-width: 0; flex: 1; } .lpb-cd-row b { font-size: 1.6rem; } }
@media (min-width: 901px) { .lpb-hide-desktop { display: none !important; } }

/* Editor-Vorschau (im Rahmen des Baukastens) */
.lpb-editing .lpb-a { opacity: 1 !important; transform: none !important; transition: none !important; }
.lpb-editing .lpb-hide-mobile, .lpb-editing .lpb-hide-desktop { display: block !important; opacity: .45; }
.lpb-editing [data-lpb-blk] { cursor: pointer; outline: 2px dashed transparent; outline-offset: 4px; border-radius: 4px; transition: outline-color .12s; }
.lpb-editing [data-lpb-blk]:hover { outline-color: rgba(59,130,246,.75); }
.lpb-editing [data-lpb-blk].lpb-sel { outline: 2px solid #3b82f6; }
.lpb-editing [data-lpb-sec].lpb-sel { box-shadow: inset 0 0 0 2px #f59e0b; }
.lpb-editing [data-lpb-col].lpb-sel { outline: 2px dashed #10b981; outline-offset: 6px; }
.lpb-editing .lpb-col { min-height: 60px; }
.lpb-empty { flex: 0 0 100%; padding: 26px 16px; border: 2px dashed rgba(127,127,127,.5); border-radius: 14px; text-align: center; font-weight: 700; opacity: .7; font-size: .9rem; }
.lpb-drop-line { position: absolute; height: 4px; background: #3b82f6; border-radius: 4px; pointer-events: none; z-index: 50; box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.lpb-tools { position: absolute; z-index: 60; display: flex; gap: 2px; background: #1e293b; border-radius: 8px; padding: 3px; box-shadow: 0 6px 20px rgba(0,0,0,.35); font: 600 12px/1 Inter, system-ui, sans-serif; color: #fff; }
.lpb-tools span { padding: 6px 8px 6px 6px; opacity: .85; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.lpb-tools button { width: 26px; height: 24px; border: 0; background: none; color: #fff; border-radius: 5px; cursor: pointer; font-size: 11px; }
.lpb-tools button:hover { background: rgba(255,255,255,.15); }
.lpb-tools .lpb-grip { cursor: grab; }
.lpb-tools .lpb-del:hover { background: #dc2626; }
