/* ==========================================================================================================================
   Datei: /assets/css/kcc-push.css                                  NEU 18.10.2026 (Paket P4a)
   Zweck: Aussehen der Hinweise (App installieren, Mitteilungen aktivieren, Auswahl/Assistent) und der Fenster-Mitteilungen
          auf allen Seiten. Einheitliches Gold-Design (R37). Alle Klassen beginnen mit kcp- und stoeren keine Seite.
   Rundes, beim Darueberfahren rotes Schliessen-Symbol wie ueberall (R14): gleiche Masse wie inc/kcc-modal-close.php.
   ========================================================================================================================== */
.kcp-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-family: 'Sora', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.kcp-layer *, .kcp-layer *::before, .kcp-layer *::after { box-sizing: border-box; }
/* NEU 18.10.2026 (Paket P4a): Solange ein Fenster in der Mitte offen ist, verdeckt die Support-Blase der Seite (hoechster z-index) keine Knoepfe darin - wie beim bestehenden News-Popup der Plattform (config.php: #mblGlobalNewsOverlay).
   Zwei getrennte Regeln, damit auch aeltere Browser ohne :has() die erste verstehen. */
body.kcp-modal-open #mblSupportWidget { display: none !important; }
body:has(.kcp-layer.kcp-open) #mblSupportWidget { display: none !important; }
.kcp-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; pointer-events: auto; }
.kcp-layer.kcp-open .kcp-backdrop { opacity: 1; }

.kcp-panel { --kcp-gold: #EBCB72; position: absolute; pointer-events: auto; color: #F3ECDD; background: linear-gradient(180deg, #1c170f, #0d0b08) /* NEU 18.10.2026 (Paket P4a): deckend - ALT: rgba(28, 23, 15, .98) bis rgba(13, 11, 8, .99); durchscheinende Schrift der Seite stoerte den Titel */; border: 1px solid rgba(233, 197, 106, .38); border-radius: 20px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .25s ease, transform .25s ease; line-height: 1.55; max-width: 100%; }
.kcp-panel.kcp-in { opacity: 1; transform: none; }
.kcp-panel--modal { left: 50%; top: 50%; width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; margin: 0; transform: translate(-50%, -46%) scale(.985); padding: 28px 28px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.kcp-panel--modal.kcp-in { transform: translate(-50%, -50%); }
.kcp-panel--card { right: 20px; bottom: 20px; width: min(430px, calc(100vw - 32px)); padding: 20px 20px 18px; }
/* NEU 18.10.2026 (Paket P4a, Platzsuche): Die Karte wird nie hoeher als der Bildschirm (sonst scrollt sie in sich) und erscheint dort, wo kein anderes schwebendes Element liegt:
   PC: rechts unten (Standard), rechts oben, links unten, links oben - Handy: unten (Standard) oder oben. Die Klassen kcp-at-* setzt kcc-push.js. */
.kcp-panel--card { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.kcp-panel--card.kcp-at-tr { top: var(--kcp-top, 88px); bottom: auto; max-height: calc(100vh - var(--kcp-top, 88px) - 20px); max-height: calc(100dvh - var(--kcp-top, 88px) - 20px); }
.kcp-panel--card.kcp-at-bl { right: auto; left: var(--kcp-left, 20px); }
.kcp-panel--card.kcp-at-tl { right: auto; left: var(--kcp-left, 20px); top: var(--kcp-top, 88px); bottom: auto; max-height: calc(100vh - var(--kcp-top, 88px) - 20px); max-height: calc(100dvh - var(--kcp-top, 88px) - 20px); }
.kcp-panel--banner { left: 0; right: 0; top: 0; width: 100%; border-radius: 0 0 20px 20px; border-top: 0; padding: 14px 64px 14px 20px; transform: translateY(-100%); }
.kcp-panel--banner.kcp-in { transform: none; }

.kcp-x { -webkit-appearance: none; appearance: none; margin: 0; position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 45px; height: 45px; min-width: 45px; min-height: 45px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #B6A98E; font-family: inherit; font-weight: 400; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease, rotate .3s ease, box-shadow .3s ease; -webkit-tap-highlight-color: transparent; }
.kcp-x:hover, .kcp-x:focus-visible { background: #ff6b6b; border-color: #ff6b6b; color: #fff; rotate: 90deg; box-shadow: 0 0 0 4px rgba(255, 107, 107, .2); outline: none; }
.kcp-panel--card .kcp-x { top: 10px; right: 10px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 1.1rem; }
.kcp-panel--banner .kcp-x { top: 50%; margin-top: -18px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 1.1rem; }

.kcp-head { display: flex; align-items: center; gap: 14px; padding-right: 48px; margin-bottom: 10px; }
.kcp-ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: rgba(10, 8, 6, .9); border: 1px solid rgba(233, 197, 106, .35); display: grid; place-items: center; overflow: hidden; }
.kcp-ico img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kcp-panel--card .kcp-ico, .kcp-panel--banner .kcp-ico { width: 46px; height: 46px; border-radius: 12px; }
.kcp-title { margin: 0; color: var(--kcp-gold); font-weight: 900; font-size: 1.2rem; line-height: 1.25; letter-spacing: .1px; overflow-wrap: anywhere; }
.kcp-panel--card .kcp-title { font-size: 1.02rem; }
.kcp-text { margin: 0 0 14px; color: #D9CFB8; font-size: .97rem; font-weight: 500; overflow-wrap: anywhere; }
.kcp-panel--card .kcp-text { font-size: .9rem; margin-bottom: 12px; }
.kcp-text p { margin: 0 0 10px; } .kcp-text p:last-child { margin-bottom: 0; }
.kcp-text a { color: var(--kcp-gold); text-decoration: underline; }
.kcp-text img { max-width: 100%; height: auto; border-radius: 10px; }
.kcp-text ul, .kcp-text ol { margin: 0 0 10px; padding-left: 22px; }
.kcp-text h2, .kcp-text h3, .kcp-text h4 { color: var(--kcp-gold); margin: 12px 0 6px; line-height: 1.3; }
.kcp-text blockquote { margin: 0 0 10px; padding: 8px 14px; border-left: 3px solid rgba(233, 197, 106, .5); background: rgba(233, 197, 106, .06); border-radius: 0 10px 10px 0; }
.kcp-text table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.kcp-text td, .kcp-text th { border: 1px solid rgba(233, 197, 106, .25); padding: 6px 10px; }
.kcp-pre { white-space: pre-wrap; }

.kcp-media { margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid rgba(233, 197, 106, .2); }
.kcp-media img { display: block; width: 100%; max-height: 46vh; object-fit: contain; background: #000; }
.kcp-media video { display: block; width: 100%; max-height: 46vh; background: #000; }
.kcp-media .kcp-embed { position: relative; width: 100%; padding-top: 56.25%; }
.kcp-media .kcp-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.kcp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kcp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-weight: 900; font-size: .88rem; line-height: 1.15; margin: 0; -webkit-appearance: none; appearance: none; box-shadow: none; text-transform: uppercase; letter-spacing: .3px; text-decoration: none; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; transition: filter .2s ease, transform .15s ease, background .2s ease; }
.kcp-btn--gold { background: linear-gradient(135deg, #F9E596 0%, #EBCB72 40%, #B07F2A 100%); color: #120d05; }
.kcp-btn--gold:hover, .kcp-btn--gold:focus-visible { filter: brightness(1.08); transform: translateY(-1px); outline: none; }
.kcp-btn--ghost { background: transparent; border-color: var(--kcp-gold); color: var(--kcp-gold); }
.kcp-btn--ghost:hover, .kcp-btn--ghost:focus-visible { background: rgba(233, 197, 106, .12); outline: none; }
.kcp-btn[disabled] { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.kcp-link { display: inline-block; margin-top: 12px; padding: 4px 2px; background: none; border: 0; color: #B6A98E; font-family: inherit; font-weight: 700; font-size: .8rem; line-height: 1.2; margin-bottom: 0; margin-left: 0; margin-right: 0; -webkit-appearance: none; appearance: none; text-decoration: underline; cursor: pointer; }
.kcp-link:hover, .kcp-link:focus-visible { color: var(--kcp-gold); outline: none; }
/* NEU 18.10.2026 (Paket P4a): Auf Touch-Geraeten und kleinen Bildschirmen ist der Text-Link mindestens 44 px hoch (gut zu treffen). */
@media (pointer: coarse), (max-width: 640px) { .kcp-link { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 6px; } }
.kcp-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.kcp-steps { margin: 4px 0 14px; padding: 0; counter-reset: kcp; display: grid; gap: 10px; }
.kcp-step { counter-increment: kcp; position: relative; padding: 12px 14px 12px 52px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(233, 197, 106, .15); border-radius: 12px; color: #F3ECDD; font-size: .95rem; font-weight: 600; }
.kcp-step::before { content: counter(kcp); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F9E596, #EBCB72 45%, #B07F2A); color: #120d05; font-weight: 900; font-size: .85rem; }

.kcp-opts { display: grid; gap: 12px; margin: 4px 0 6px; }
.kcp-opt { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(233, 197, 106, .2); border-radius: 14px; }
.kcp-opt .kcp-ico { width: 52px; height: 52px; grid-row: 1 / span 3; }
.kcp-opt-t { margin: 0; color: #F3ECDD; font-size: 1rem; font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; }
.kcp-opt-d { margin: 0 0 8px; color: #B6A98E; font-size: .86rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.kcp-opt .kcp-btn { grid-column: 2; min-height: 40px; padding: 9px 16px; font-size: .8rem; justify-self: start; }
.kcp-opt.kcp-opt--done { border-color: rgba(0, 224, 138, .4); }

.kcp-step-label { display: block; margin: 0 0 10px; color: #B6A98E; font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; }
.kcp-dots { display: flex; gap: 6px; margin: 0 0 14px; }
.kcp-dots i { display: block; width: 28px; height: 4px; border-radius: 4px; background: rgba(233, 197, 106, .22); }
.kcp-dots i.kcp-on { background: var(--kcp-gold); }

.kcp-note { margin: 12px 0 0; padding: 8px 12px; border: 1px dashed rgba(233, 197, 106, .45); border-radius: 10px; color: #B6A98E; font-size: .74rem; font-weight: 700; }
.kcp-badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(233, 197, 106, .14); border: 1px solid rgba(233, 197, 106, .4); color: var(--kcp-gold); font-family: inherit; font-weight: 900; font-size: .68rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .6px; }
.kcp-file { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 9px 14px; border-radius: 10px; border: 1px dashed rgba(233, 197, 106, .5); color: var(--kcp-gold); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }

/* Banner: Text und Knoepfe nebeneinander */
.kcp-panel--banner .kcp-banner-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; max-width: 1180px; margin: 0 auto; }
.kcp-panel--banner .kcp-head { margin: 0; padding: 0; flex: 1 1 320px; min-width: 0; }
.kcp-panel--banner .kcp-bodywrap { flex: 1 1 320px; min-width: 0; }
.kcp-panel--banner .kcp-text { margin: 0; }
.kcp-panel--banner .kcp-actions { flex: 0 0 auto; }
.kcp-panel--banner .kcp-note, .kcp-panel--banner .kcp-link { display: none; }

/* kleine Rueckmeldung (z. B. "Mitteilungen sind aktiv") */
.kcp-toast { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); max-width: min(520px, calc(100vw - 32px)); padding: 13px 20px; border-radius: 14px; background: rgba(13, 11, 8, .98); border: 1px solid rgba(233, 197, 106, .55); color: #F3ECDD; font-weight: 800; font-size: .92rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; text-align: center; }
.kcp-toast.kcp-in { opacity: 1; transform: translate(-50%, 0); }

/* Handy */
@media (max-width: 640px) {
    .kcp-panel--modal { padding: 22px 18px 18px; border-radius: 18px; }
    .kcp-panel--card { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .kcp-panel--card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
    .kcp-panel--card.kcp-at-t { top: var(--kcp-top, 72px); bottom: auto; max-height: calc(100vh - var(--kcp-top, 72px) - 12px); max-height: calc(100dvh - var(--kcp-top, 72px) - 12px); }
    .kcp-panel--banner { padding: 12px 56px 12px 14px; }
    .kcp-title { font-size: 1.08rem; }
    .kcp-actions .kcp-btn { flex: 1 1 100%; }
    .kcp-panel--banner .kcp-actions .kcp-btn { flex: 1 1 auto; }
    .kcp-head { gap: 12px; }
    .kcp-ico { width: 48px; height: 48px; }
}
@media (max-width: 480px) { .kcp-x { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 1.25rem; } .kcp-panel--card .kcp-x, .kcp-panel--banner .kcp-x { width: 34px; height: 34px; min-width: 34px; min-height: 34px; font-size: 1rem; } }
@media (max-height: 520px) and (orientation: landscape) {
    .kcp-panel--modal { padding: 16px 18px 14px; }
    .kcp-media img, .kcp-media video { max-height: 32vh; }
    .kcp-panel--card { max-height: calc(100vh - 24px); overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .kcp-panel, .kcp-backdrop, .kcp-toast, .kcp-x, .kcp-btn { transition: none !important; }
    .kcp-x:hover, .kcp-x:focus-visible { rotate: none; }
}

@media print { .kcp-layer { display: none !important; } }

/* Bereichs-Bausteine auf den Seiten "Mitteilungen & App" (user/team/public/admin) */
.kcp-st { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: .78rem; line-height: 1.3; background: rgba(233, 197, 106, .1); border: 1px solid rgba(233, 197, 106, .35); color: #EBCB72; }
.kcp-st i { width: 9px; height: 9px; border-radius: 50%; background: #EBCB72; display: inline-block; }
.kcp-st.kcp-ok { border-color: rgba(0, 224, 138, .45); color: #00e08a; background: rgba(0, 224, 138, .08); } .kcp-st.kcp-ok i { background: #00e08a; }
.kcp-st.kcp-bad { border-color: rgba(255, 107, 107, .5); color: #ff8a8a; background: rgba(255, 107, 107, .08); } .kcp-st.kcp-bad i { background: #ff6b6b; }
.kcp-st.kcp-off { border-color: rgba(182, 169, 142, .4); color: #B6A98E; background: rgba(182, 169, 142, .08); } .kcp-st.kcp-off i { background: #B6A98E; }
