/* KCC Zahlungsdaten (Paket ZD, 19.10.2026): Pop-up + Seiten. Einheitliches Gold (R37), responsiv, rundes Schliessen-Symbol aus inc/kcc-modal-close.php (R14). */
html.kzd-lock { overflow: hidden; }
/* NEU 19.10.2026 (Test-Fund): Das Pop-up lag mit z-index 99990 UNTER der Seitenleiste und UNTER deinem Webinar-Hinweisfenster (2147483000) und wurde von ihnen teilweise verdeckt. Jetzt liegt es darueber; nur der Support-Chat (2147483647) und die Platform-Meldungen bleiben wie bisher ganz oben. */
html.kzd-lock #kccWebPopup { display: none !important; }   /* Webinar-Hinweis ist waehrend des Zahlungsdaten-Pop-ups ausgeblendet und kommt danach unveraendert zurueck */
.kzd-overlay { position: fixed; inset: 0; z-index: 2147483600; background: rgba(6, 4, 2, .82); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: 'Sora', system-ui, sans-serif; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.kzd-panel { position: relative; width: min(94vw, 660px); max-height: 92vh; overflow-y: auto; background: #120e0a; color: #f3ecdd; border: 1px solid #ebcb72; border-radius: 18px; padding: 26px 24px 20px; box-shadow: 0 24px 80px rgba(0, 0, 0, .65); box-sizing: border-box; }
.kzd-panel * { box-sizing: border-box; }
.kzd-x { position: absolute !important; top: 12px; right: 12px; }
.kzd-head { display: flex; align-items: center; gap: 14px; padding-right: 46px; margin-bottom: 8px; }
.kzd-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #ebcb72, #b8913a); color: #17120d; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.kzd-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; color: #ebcb72; font-weight: 800; }
.kzd-count { font-size: .8rem; color: #b9ad96; margin-top: 2px; }
.kzd-intro { margin: 8px 0 4px; color: #d9cfba; font-size: .95rem; line-height: 1.55; }
.kzd-body { margin: 6px 0 12px; overflow-wrap: anywhere; word-break: break-word; }
.kzd-body table { max-width: 100%; }
.kzd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.kzd-btn { appearance: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .9rem; padding: 11px 16px; min-height: 44px; border-radius: 10px; border: 1px solid #ebcb72; background: transparent; color: #ebcb72; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, color .15s; }
.kzd-btn:hover, .kzd-btn:focus-visible { background: rgba(235, 203, 114, .14); outline: none; }
.kzd-primary { background: #ebcb72; color: #17120d; flex: 1 1 220px; }
.kzd-primary:hover, .kzd-primary:focus-visible { background: #f4dc93; color: #17120d; }
.kzd-primary[disabled] { opacity: .6; cursor: wait; }
.kzd-ghost { border-color: rgba(235, 203, 114, .35); color: #d9cfba; }
.kzd-foot { margin-top: 12px; font-size: .78rem; color: #9a8f79; line-height: 1.5; }
.kzd-foot a { color: #ebcb72; }
@media (max-width: 600px) {
  .kzd-overlay { align-items: flex-end; padding: 0; }
  .kzd-panel { width: 100vw; max-height: 94vh; border-radius: 18px 18px 0 0; padding: 22px 16px 16px; border-left: 0; border-right: 0; border-bottom: 0; }
  .kzd-actions .kzd-btn { flex: 1 1 100%; }
  .kzd-head h2 { font-size: 1.1rem; }
}

/* Seiten (Mitglied, Team, Oeffentlich, Admin-Vorschau) */
.kzd-page { max-width: 1100px; margin: 0 auto; font-family: 'Sora', system-ui, sans-serif; color: #f3ecdd; }
.kzd-page * { box-sizing: border-box; }
.kzd-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.kzd-hero h1 { margin: 0; font-size: 1.6rem; color: #ebcb72; font-weight: 800; line-height: 1.2; }
.kzd-hero p { margin: 4px 0 0; color: #d9cfba; font-size: .95rem; line-height: 1.55; }
.kzd-sec { margin: 26px 0 10px; font-size: 1.05rem; font-weight: 800; color: #ebcb72; display: flex; align-items: center; gap: 10px; }
.kzd-card { background: rgba(23, 18, 13, .92); border: 1px solid rgba(235, 203, 114, .45); border-radius: 16px; padding: 18px; margin: 12px 0; overflow-wrap: anywhere; }
.kzd-card.kzd-done { border-color: rgba(74, 222, 128, .45); }
.kzd-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 8px; }
.kzd-card-h b { color: #f3ecdd; font-size: 1rem; }
.kzd-state { font-size: .82rem; color: #ebcb72; }
.kzd-done .kzd-state { color: #4ade80; }
.kzd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(235, 203, 114, .4); color: #ebcb72; font-size: .78rem; }
.kzd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kzd-mcard { background: rgba(23, 18, 13, .92); border: 1px solid rgba(235, 203, 114, .3); border-radius: 14px; padding: 16px; }
.kzd-mcard h3 { margin: 0 0 6px; font-size: 1rem; color: #f3ecdd; display: flex; align-items: center; gap: 10px; }
.kzd-mcard h3 i { color: #ebcb72; }
.kzd-mcard p { margin: 0; color: #cfc4ad; font-size: .88rem; line-height: 1.5; }
.kzd-mcard details { margin-top: 10px; }
.kzd-mcard summary { cursor: pointer; color: #ebcb72; font-weight: 700; font-size: .88rem; min-height: 32px; }
.kzd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(235, 203, 114, .25); border-radius: 12px; }
.kzd-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.kzd-table th, .kzd-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(235, 203, 114, .15); vertical-align: top; }
.kzd-table th { color: #ebcb72; font-weight: 700; background: rgba(235, 203, 114, .07); white-space: nowrap; }
.kzd-empty { padding: 18px; border: 1px dashed rgba(235, 203, 114, .35); border-radius: 14px; color: #cfc4ad; }
.kzd-steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; padding: 0; list-style: none; }
.kzd-steps li { counter-increment: s; position: relative; background: rgba(23, 18, 13, .92); border: 1px solid rgba(235, 203, 114, .3); border-radius: 14px; padding: 18px 16px 16px 58px; color: #d9cfba; font-size: .92rem; line-height: 1.5; }
.kzd-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: #ebcb72; color: #17120d; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.kzd-note { padding: 12px 14px; border-radius: 12px; background: rgba(235, 203, 114, .08); border: 1px solid rgba(235, 203, 114, .3); color: #d9cfba; font-size: .88rem; line-height: 1.55; margin: 12px 0; }
@media (max-width: 600px) { .kzd-hero h1 { font-size: 1.3rem; } .kzd-grid { grid-template-columns: 1fr; } .kzd-btn { flex: 1 1 100%; } }

/* Admin-Zentrale */
.zda-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.zda-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(235, 203, 114, .3); color: #d9cfba; text-decoration: none; font-weight: 700; font-size: .88rem; }
.zda-tabs a:hover, .zda-tabs a:focus-visible { border-color: #ebcb72; color: #ebcb72; outline: none; }
.zda-tabs a.on { background: #ebcb72; border-color: #ebcb72; color: #17120d; }
.zda-in { width: 100%; background: #0e0a07; color: #f3ecdd; border: 1px solid rgba(235, 203, 114, .4); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .9rem; min-height: 42px; }
.zda-in:focus { outline: none; border-color: #ebcb72; box-shadow: 0 0 0 2px rgba(235, 203, 114, .25); }
textarea.zda-in { resize: vertical; }
.zda-lb { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; font-size: .84rem; color: #b9ad96; margin: 8px 0; font-weight: 700; flex: 1 1 220px; }   /* NEU 19.10.2026 (Bildlauf 6): justify-content - Felder mit zweizeiliger Beschriftung stehen unten auf einer Linie (ALT: ohne justify-content) */
.zda-cbs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.zda-cb { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #d9cfba; white-space: nowrap; }
.zda-pv { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: rgba(235, 203, 114, .12); border: 1px solid rgba(235, 203, 114, .4); color: #ebcb72; align-items: center; justify-content: center; margin-right: 6px; vertical-align: middle; }
.zda-sw { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; }
.zda-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zda-sw-b { flex: 0 0 auto; width: 44px; height: 24px; border-radius: 999px; background: #3a3022; border: 1px solid rgba(235, 203, 114, .4); position: relative; transition: background .15s; margin-top: 1px; }
.zda-sw-b::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #d9cfba; transition: transform .15s, background .15s; }
.zda-sw input:checked + .zda-sw-b { background: #ebcb72; }
.zda-sw input:checked + .zda-sw-b::after { transform: translateX(20px); background: #17120d; }
.zda-sw input:focus-visible + .zda-sw-b { box-shadow: 0 0 0 3px rgba(235, 203, 114, .35); }
.zda-sw-t { color: #f3ecdd; font-size: .92rem; font-weight: 700; line-height: 1.4; }
.zda-sw-t small { display: block; color: #9a8f79; font-weight: 400; font-size: .8rem; margin-top: 2px; }
/* ALT bis 19.10.2026 (Bildlauf 6): @media (max-width: 600px) { .zda-tabs a span { display: none; } .zda-tabs a { padding: 10px 12px; } .zda-tabs a.on span { display: inline; } }   - am Handy nur Symbole, nicht selbsterklaerend */
/* NEU 19.10.2026 (Bildlauf 6): am Handy stehen alle Reiter MIT Namen in zwei Spalten */
@media (max-width: 600px) { .zda-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .zda-tabs a { padding: 8px 10px; font-size: .8rem; line-height: 1.2; min-width: 0; } .zda-tabs a span { display: inline; overflow-wrap: anywhere; } }

/* NEU 19.10.2026 (Erweiterung N200): Reiter Bestellungen (Liste, Senden-Knoepfe), auf dem Handy als Karten */
.zda-c { width: 44px; text-align: center !important; }
.zda-c input { width: 20px; height: 20px; accent-color: #ebcb72; cursor: pointer; }
.zda-ord td small { color: #9a8f79; }
.zda-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.zda-rowbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.zda-mini { min-height: 36px; padding: 6px 10px; font-size: .8rem; flex: 0 0 auto; }
.zda-mini[disabled] { opacity: .35; cursor: not-allowed; }
.zda-ordbar { align-items: center; margin: 12px 0; }
.zda-filter .zda-lb { margin: 0; }
/* NEU 19.10.2026: Bestell-Liste mit 9 Spalten und engeren Abstaenden, damit sie am PC ohne seitliches Scrollen in die Seite passt (Bereich steht unter der Bestellnummer, Alter unter dem Datum); darunter (bis 1365 Pixel Breite) als Karten */
.zda-ord th, .zda-ord td { padding: 9px 7px; }
.zda-ord th:first-child, .zda-ord td:first-child { padding-left: 10px; }
.zda-two small { display: block; margin-top: 2px; }
.zda-ord td small.zda-old { color: #ebcb72; font-weight: 700; }
@media (max-width: 1365px) {
  .zda-two small { display: inline; margin: 0 0 0 8px; }
}
@media (max-width: 860px) {
  .zda-ordbar .kzd-btn { flex: 1 1 100%; }
}
@media (max-width: 1365px) {
  .zda-ord { min-width: 0 !important; display: block; }
  .zda-ord thead { display: none; }
  .zda-ord tbody { display: block; }
  .zda-ord tr { display: block; padding: 10px 12px; border-bottom: 1px solid rgba(235, 203, 114, .3); }
  .zda-ord td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border: 0 !important; padding: 5px 0 !important; text-align: right !important; }
  .zda-ord td::before { content: attr(data-l); color: #b9ad96; font-weight: 700; text-align: left; flex: 0 0 auto; }
  .zda-ord td.zda-c { width: auto; justify-content: flex-start; }
  .zda-ord td.zda-c::before { content: 'Auswählen'; }
  .zda-ord .zda-rowbtns { justify-content: flex-end; }
}

/* NEU 19.10.2026 (N209): Zahlungstexte aus dem HTML-Editor (Zahlungsarten-Seite): Tabellen, Kaesten und lange Woerter duerfen auf dem Handy nicht ueberlaufen; Knoepfe bleiben bei langen Texten sichtbar */
.kzd-body, .kzd-mcard details > div, .kzd-card { min-width: 0; max-width: 100%; }
.kzd-body *, .kzd-mcard details > div * { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; word-break: break-word; }
.kzd-body table, .kzd-mcard details table { width: 100% !important; table-layout: auto; border-collapse: collapse; }
.kzd-body td, .kzd-body th, .kzd-mcard details td, .kzd-mcard details th { min-width: 0; vertical-align: top; }
.kzd-body img, .kzd-mcard details img { max-width: 100%; height: auto; }
.kzd-body ul, .kzd-body ol, .kzd-mcard details ul, .kzd-mcard details ol { padding-left: 1.3em; }
.kzd-body h1, .kzd-body h2, .kzd-body h3, .kzd-body h4 { line-height: 1.3; }
.kzd-panel .kzd-actions2 { position: sticky; bottom: -20px; z-index: 3; margin-left: -6px; margin-right: -6px; padding: 10px 6px 8px; background: linear-gradient(to bottom, rgba(18, 14, 10, 0), #120e0a 22%); }
@media (max-width: 600px) { .kzd-panel .kzd-actions2 { bottom: -16px; } }
/* NEU (N209): Links in den Zahlungstexten gold und unterstrichen (auch bei abgeschaltetem Gold-Design); eigene Farben aus dem Text haben Vorrang */
.kzd-body a, .kzd-mcard details a { color: #ebcb72; text-decoration: underline; }

/* NEU 19.10.2026 (Test-Fund Handy): Tabellen der Mitglieder-/Team-Seite werden auf schmalen Bildschirmen zu gestapelten Karten (vorher rechts abgeschnitten). Auch die Tabellen der Admin-Reiter werden am Handy zu Karten (Klasse kzd-stack); ALT bis 19.10.2026: Admin-Tabellen blieben seitlich verschiebbar (am Handy waren Spalten wie Einbau oder Vorlage nicht sichtbar). */
@media (max-width: 640px) {
  .kzd-table.kzd-stack { min-width: 0 !important; }
  .kzd-table.kzd-stack thead { display: none; }
  .kzd-table.kzd-stack, .kzd-table.kzd-stack tbody, .kzd-table.kzd-stack tr, .kzd-table.kzd-stack td { display: block; width: 100%; }
  .kzd-table.kzd-stack tr { padding: 8px 0; border-bottom: 1px solid rgba(235, 203, 114, .2); }
  .kzd-table.kzd-stack tr:last-child { border-bottom: 0; }
  .kzd-table.kzd-stack td { border: 0; padding: 3px 12px; overflow-wrap: anywhere; }
  .kzd-table.kzd-stack td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ebcb72; opacity: .85; }
}
/* NEU 19.10.2026 (Test-Fund Handy): Die Support-Chat-Blase der Plattform (rechts/links unten, ganz oben) ueberdeckte auf schmalen Bildschirmen die Unterkante des Pop-ups. Sie ist nur solange ausgeblendet, wie das Pop-up offen ist. */
@media (max-width: 860px) {
  html.kzd-lock #mblSupportWidget { display: none !important; }
}

/* NEU 19.10.2026 (Test-Fund Handy): Textfelder der Reiter Pop-up & Seiten sind am Handy hoeher, damit der Text nicht abgeschnitten aussieht; Symbol-Auswahl ist breit genug */
@media (max-width: 640px) {
  textarea.zda-in[rows="4"] { min-height: 170px; }
  textarea.zda-in[rows="1"] { min-height: 70px; }
  .kzd-table.kzd-stack td select.zda-in { min-width: 0 !important; width: calc(100% - 46px); }
}

/* Paket ZD (19.10.2026): Filter-Leisten in "Bestaetigungen" und "Verlauf" - die aktive Taste ist genauso breit wie die anderen (vorher zog sie sich ueber die ganze Zeile); am Handy 2 x 2 */
.kzd-actions.kzd-filter .kzd-btn, .kzd-actions.kzd-filter .kzd-primary { flex: 0 0 auto; }
@media (max-width: 600px) { .kzd-actions.kzd-filter .kzd-btn, .kzd-actions.kzd-filter .kzd-primary { flex: 1 1 calc(50% - 5px); min-width: 0; justify-content: center; text-align: center; } }
/* Paket ZD (19.10.2026): Datum/Uhrzeit, Betraege, Bestellnummern und Referenzen mit Bindestrich bleiben je als Block zusammen (<span class="zda-nw"> aus inc/kcc-zd-admin.php) - ein Umbruch ist hoechstens zwischen Datum und Uhrzeit moeglich, nie "13:28 / Uhr" oder "99,00 / EUR".
   ALT bis 19.10.2026 13:55: die ganze Zelle war nowrap - dann hielt das Tabellen-Skript assets/js/kcc-gold.js (PC ab 1100 px) die Tabelle fuer zu breit und liess die Datumsspalte mit "!important" umbrechen. */
.zda-nw, .zda-two b { white-space: nowrap; }
/* Paket ZD (19.10.2026): im "Verlauf" bleibt die Zeit in einer Zeile (die Tabelle hat nur 5 Spalten und passt); in "Bestaetigungen" (9 Spalten) darf das Datum zwischen Datum und Uhrzeit umbrechen */
.kzd-table.kzd-stack td[data-label="Zeit"] { white-space: nowrap; }
/* Paket ZD (19.10.2026): auf schmaleren PC-Bildschirmen (1100 bis 1400 px) etwas weniger Innenabstand in den Admin-Listen, damit die Spalten ohne seitliches Wischen in den Kasten passen */
@media (min-width: 1100px) and (max-width: 1400px) { .kzd-table.kzd-stack th, .kzd-table.kzd-stack td { padding-left: 8px; padding-right: 8px; } }
/* NEU 19.10.2026 (N241): Art der Bestellung (Auswander-Paket, SaaS-Paket, ...) als kleine Marke unter der Bestellnummer */
.zda-kind { margin-top: 4px; padding: 2px 8px; font-size: .7rem; line-height: 1.25; white-space: normal; max-width: 100%; box-sizing: border-box; }
.zda-two .zda-kind + .zda-kind { margin-left: 4px; }
@media (max-width: 1365px) { .zda-two .zda-kind { margin: 0 0 0 8px; } }
