/* goFuchsi Kundenportal – tickets-plus (Kontingent-Hinweise, Fristen, Vorsortierung, Hilfe, Bewertung).
   Ergänzt portal.css; nutzt dieselben Variablen. Keine Inline-Styles (CSP). */

/* Status „Wartet auf dich“ */
.pt-badge--wartet { background: #FFF1EC; color: var(--warn); }
.pt-board__col--wartet { border-top: 4px solid var(--warn); }

/* Priorität „niedrig“, Typ „Frage“ */
.pt-prio--niedrig { color: var(--c-text-2); }
.pt-type--frage { color: var(--c-text); }

/* Fristen */
.pt-tag--overdue { background: var(--pt-err-bg); color: var(--pt-err-fg); font-weight: 700; }
.pt-tag--soon { background: #FFF4D6; color: #7A4B00; font-weight: 700; }
.pt-tag--slaok { background: var(--surface-2); color: var(--c-text); }

/* Kontingent-Warnung */
.pt-meter--warn .pt-meter__fill { fill: var(--warn); }
.pt-tp-warn { margin: 1rem 0 0; padding: 0.85rem 1rem; border: 1px solid #FFC9B4; border-left: 4px solid var(--warn); border-radius: var(--radius-sm); background: #FFF1EC; color: var(--c-text); }
.pt-tp-warn p { margin: 0 0 0.5rem; }
.pt-tp-warn p:last-child { margin-bottom: 0; }
.pt-card--quiet .pt-tp-warn { margin-top: 0; }

/* Upgrade-Hinweis, Rückfrage */
.pt-tp-upgrade { border-left: 4px solid var(--fox); }
.pt-tp-waiting { border-left: 4px solid var(--warn); background: #FFF8F4; }

/* Vorsortierung von Claude */
.pt-tp-triage { border-left: 4px solid var(--violet); }
.pt-tp-triage .pt-status-actions { margin: 0.75rem 0 0.5rem; }
.pt-tp-draft { margin: 0.75rem 0 0; }
.pt-tp-draft summary { cursor: pointer; font-weight: 600; }
.pt-tp-draft .pt-prose { margin-top: 0.5rem; padding: 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm); }

/* Bewertung */
.pt-tp-stars { border: 0; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.35rem; }
.pt-tp-stars legend { font-weight: 600; margin-bottom: 0.35rem; padding: 0; }

/* Hilfe-Vorschläge beim neuen Ticket */
.pt-tp-suggest { margin-top: 0.6rem; padding: 0.75rem 0.9rem; border: 1px dashed var(--hair); border-radius: var(--radius-sm); background: var(--surface-2); }
.pt-tp-suggest__head { margin: 0 0 0.4rem; font-weight: 700; font-size: var(--t-sm); }
.pt-tp-suggest__list { margin: 0 0 0.4rem; padding-left: 1.1rem; }
.pt-tp-suggest__list li { margin: 0.2rem 0; overflow-wrap: anywhere; }

/* Hilfe-Artikel */
.pt-tp-article h2, .pt-tp-article h3 { margin: 1.4rem 0 0.5rem; line-height: 1.3; }
.pt-tp-article h2:first-child { margin-top: 0; }
.pt-tp-article ul, .pt-tp-article ol { padding-left: 1.3rem; }
.pt-tp-article li { margin: 0.25rem 0; }
.pt-tp-article code { background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.92em; }
.pt-field--grow { flex: 1 1 16rem; }
.pt-table tr.is-current td { background: var(--tint); }

/* Viele Menüpunkte (Admin): Desktop-Menü kompakter, damit nichts überläuft */
@media (max-width: 1360px) { .pt-nav a { padding: 0.55rem 0.5rem; font-size: 0.875rem; } }

/* Frist-Etiketten dürfen umbrechen (schmale Board-Spalten) */
.pt-tag[data-sla] { white-space: normal; max-width: 100%; overflow-wrap: anywhere; border-radius: var(--radius-sm); }
.pt-tcard { min-width: 0; }

/* Domains & Hosting (domains.php, admin/hosting.php) */
.pt-subcard { border-top: 1px solid var(--hair); padding-top: 1rem; margin-top: 1rem; }
.pt-subcard:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.pt-steps-list { margin: .5rem 0 1rem 1.2rem; }
.pt-steps-list li { margin: .25rem 0; }

/* ---------- Partnerbereich (partner.php, admin/partner.php) ---------- */
.pt-partner-code { display: grid; grid-template-columns: minmax(10rem, auto) 1fr; gap: 1rem 2rem; align-items: start; margin: 1rem 0 0.5rem; padding: 1rem; border: 1px dashed var(--fox, #ff6b2c); border-radius: var(--radius-sm, 10px); background: rgba(255, 107, 44, 0.08); }
.pt-partner-code .pt-bignum { margin: 0.1rem 0 0.4rem; }
.pt-partner-link { display: inline-block; overflow-wrap: anywhere; word-break: break-all; font-size: 0.95rem; margin: 0.25rem 0 0.4rem; }
.pt-partner-ref { border-top: 1px solid var(--hair, #e5e7eb); padding: 0.9rem 0 0.4rem; }
.pt-partner-ref:first-of-type { border-top: 0; padding-top: 0; }
.pt-partner-ref .pt-cardhead { margin-bottom: 0.25rem; }
.pt-partner-ref .pt-h4 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; color: inherit; }
.pt-partner-ref .pt-status-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.pt-partner-ref details.pt-stack { display: block; }
.pt-partner-ref details[open] { flex-basis: 100%; }
@media (max-width: 40rem) { .pt-partner-code { grid-template-columns: 1fr; } }
.pt-form--grid .pt-field--wide { grid-column: 1 / -1; }

/* ---------- Automatische Dienste (dienste.php, dienst.php, admin/dienste.php, d.php) ---------- */
.pt-dienste { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.pt-dienste .pt-card { margin: 0; display: flex; flex-direction: column; }
.pt-dienst p { margin: 0 0 .75rem; }
.pt-dienst__price { margin-top: auto !important; }
.pt-dienst details[open] summary { margin-bottom: .5rem; }
.pt-code { white-space: pre-wrap; word-break: break-all; font-size: .85rem; padding: .8rem 1rem; border-radius: var(--radius-sm, 10px); background: rgba(255, 255, 255, .06); border: 1px solid var(--hair, #e5e7eb); }
.pt-hours { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.pt-hours__row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pt-hours__day { min-width: 6.5rem; font-weight: 600; }
.pt-hours input[type=time] { width: 7.2rem; }
.pt-druck-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--hair, #e5e7eb); }
.pt-druck-row span { flex: 1 1 18rem; }
.pt-druck-row input[type=number] { width: 5rem; }
.pt-voucher { text-align: center; }
.pt-voucher__code { font-size: 1.4rem; letter-spacing: .12em; margin: 1rem 0; }
.pt-qr { width: 10rem; margin: 0 auto 1rem; background: #fff; padding: .4rem; border-radius: 8px; }
.pt-qr svg { width: 100%; height: auto; display: block; }
.gfr { border: 1px solid var(--hair, #e5e7eb); border-radius: var(--radius, 14px); padding: 1.25rem 1.5rem; }
.gfr h1 { font-size: 1.5rem; margin: .2rem 0 .5rem; overflow-wrap: anywhere; }
.gfr h2 { font-size: 1rem; margin: 1.5rem 0 .5rem; overflow-wrap: anywhere; }
.gfr-kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; opacity: .75; margin: 0; }
.gfr-ampel { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.gfr-ampel--gruen { background: #1f7a3a; color: #fff; } .gfr-ampel--gelb { background: #e3b008; color: #111; } .gfr-ampel--rot { background: #c62828; color: #fff; }
.gfr-kv { display: grid; grid-template-columns: minmax(12rem, auto) 1fr; gap: .4rem 1.5rem; margin: 1rem 0; }
.gfr-kv dt { opacity: .75; } .gfr-kv dd { margin: 0; }
.gfr-list { padding-left: 1.1rem; } .gfr-list li { margin: .35rem 0; overflow-wrap: anywhere; }
.gfr-small { font-size: .85rem; opacity: .8; }
.gfr-note { font-size: .85rem; opacity: .8; border-top: 1px solid var(--hair, #e5e7eb); padding-top: .75rem; margin-top: 1.25rem; }
@media print { .pt-head, .pt-foot, .pt-invbar, .pt-pagehead, .pt-alert, [data-print] { display: none !important; } .gfr { border: 0; } }
#hcat { margin-top: 2rem; }
/* Rechnung bezahlen (rechnung.php) */
.pt-paybox__methods { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0; }
.pt-paybox__bank { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; align-items: start; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hair, #e5e7eb); }
.pt-paybox__bank .pt-qr { width: 11rem; margin: 0; }
@media (max-width: 40rem) { .pt-paybox__bank { grid-template-columns: 1fr; } }
@media print { .pt-paybox { display: none !important; } }
.pt-paybox { max-width: 52rem; margin-left: auto; margin-right: auto; }

/* Sellix (27.11.2026) */
.pt-brand--sellix img { display: block; height: 40px; width: auto; }
.sx-geld { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) !important; white-space: nowrap; }
.sx-ueber { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; align-items: stretch; }
.sx-ueber .pt-card { margin: 0; }
.sx-ueber a { color: inherit; text-decoration: none; }
.sx-ueber a:hover .pt-bignum, .sx-ueber a:focus-visible .pt-bignum { color: var(--c-accent, #FF6A2A); }
@media (max-width: 720px) {
  .pt-table.sx-plain, .pt-table.sx-plain tbody { display: table; width: 100%; }
  .pt-table.sx-plain tr { display: table-row; border: 0; padding: 0; margin: 0; background: none; }
  .pt-table.sx-plain td, .pt-table.sx-plain th { display: table-cell; width: auto; padding: .5rem .4rem; border-bottom: 1px solid var(--hair); }
  .pt-table.sx-plain td::before { content: none; }
  .pt-table.sx-plain td.pt-num { text-align: right; }
}

/* ---------- Sellix-Zentrale, Kaltmails, Preise (v1.16) ---------- */
.pt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sx-voll { grid-column: 1 / -1; }
.sx-schmal { width: 5em; }
.sx-inline { display: inline; margin: 0; }
.sx-reiter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.sx-reiter a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--hair); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .9375rem; background: var(--surface, #fff); }
.sx-reiter a:hover { border-color: var(--c-accent, #FF6A2A); }
.sx-reiter a[aria-current="page"] { background: var(--c-accent, #FF6A2A); border-color: var(--c-accent, #FF6A2A); color: #10172A; }
.sx-reiter a:focus-visible { outline: 3px solid var(--c-accent, #FF6A2A); outline-offset: 2px; }
.pt-badge--warn { background: #FFF1EC; color: #B23A00; }
.sx-fokus { background: rgba(255, 106, 42, .08) !important; box-shadow: inset 4px 0 0 var(--c-accent, #FF6A2A); }
.sx-lang summary { cursor: pointer; list-style: none; }
.sx-lang summary::-webkit-details-marker { display: none; }
.sx-lang summary::after { content: " mehr"; color: var(--c-link); font-weight: 600; }
.sx-lang[open] summary { display: none; }
.sx-tabelle td, .sx-tabelle th { vertical-align: top; }
.sx-tabelle input:not([type=checkbox]), .sx-tabelle select, .sx-tabelle textarea { min-width: 7rem; max-width: 18rem; font: inherit; padding: .35rem .5rem; border: 1px solid var(--hair); border-radius: 8px; background: #fff; }
.sx-tabelle textarea { min-width: 14rem; }
.sx-tabelle .sx-gruppe th { background: var(--surface-2); font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.sx-entscheid { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: .75rem 1rem; align-items: end; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--hair); }
.sx-entscheid .pt-actions { grid-column: 1 / -1; }
@media (max-width: 640px) { .sx-entscheid { grid-template-columns: 1fr; } }
.sx-raster td { font-size: .875rem; }
.sx-balken { width: 100%; height: auto; margin: .5rem 0 1rem; display: block; color: var(--c-text); }
.sx-balken__bar { fill: var(--c-accent, #FF6A2A); }
.sx-balken g:hover .sx-balken__bar { opacity: .8; }
.sx-balken__wert { font-size: 13px; font-weight: 700; fill: currentColor; }
.sx-balken__lab { font-size: 12px; fill: currentColor; opacity: .7; }
.sx-balken__achse { stroke: currentColor; opacity: .3; stroke-width: 1; }
.sx-matrix td, .sx-matrix th { white-space: nowrap; }
.sx-summe th, .sx-summe td { border-top: 2px solid var(--c-accent, #FF6A2A); font-weight: 700; }
.sx-vorschau { border: 2px solid var(--c-accent, #FF6A2A); }
.sx-klebend { position: sticky; bottom: 0; background: var(--surface, #fff); padding: .75rem 0; border-top: 1px solid var(--hair); z-index: 2; }

/* ---------- Sellix To-dos & Einrichtung (v1.16) ---------- */
.sx-reiter--klein { margin: 0 0 0 auto; }
.sx-reiter--klein a { padding: .25rem .7rem; font-size: .8125rem; }
.sx-pruef__zeichen { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-weight: 800; font-size: .8125rem; margin-right: .25rem; }
.sx-pruef--ok .sx-pruef__zeichen { background: #1F9D55; color: #fff; }
.sx-pruef--nein .sx-pruef__zeichen { background: #D64545; color: #fff; }
.sx-pruef--frage .sx-pruef__zeichen { background: transparent; border: 2px solid currentColor; opacity: .7; }
.sx-todo .pt-row__main { display: flex; gap: .75rem; align-items: flex-start; }
.sx-todo__text { flex: 1 1 auto; min-width: 0; }
.sx-todo__text p { margin: 0 0 .2rem; }
.sx-haken { width: 1.75rem; height: 1.75rem; border-radius: 8px; border: 2px solid var(--c-accent, #FF6A2A); background: transparent; color: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.sx-haken:hover { background: rgba(255, 106, 42, .15); }
.sx-haken:focus-visible { outline: 3px solid var(--c-accent, #FF6A2A); outline-offset: 2px; }
.sx-todo--fertig .sx-haken { background: #1F9D55; border-color: #1F9D55; }
.sx-todo--fertig .sx-todo__text strong { text-decoration: line-through; opacity: .65; }
.sx-todo--ueber { box-shadow: inset 4px 0 0 var(--c-accent, #FF6A2A); }
.sx-todo-neu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
@media (max-width: 640px) { .sx-todo-neu { grid-template-columns: 1fr; } }

/* ---------- Sellix-CRM (v1.17) ---------- */
.sx-auf { margin: .75rem 0; }
.sx-auf > summary { cursor: pointer; font-weight: 700; color: var(--c-link, #FF6A2A); padding: .35rem 0; }
.sx-auf > summary:focus-visible { outline: 3px solid var(--c-accent, #FF6A2A); outline-offset: 2px; }
.sx-kontakt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; margin-top: .5rem; }
@media (max-width: 640px) { .sx-kontakt-form { grid-template-columns: 1fr; } }
.sx-termin { border: 1px solid var(--c-accent, #FF6A2A); border-radius: 10px; padding: .6rem .8rem; margin: 0 0 .6rem; }
.sx-termin p { margin: 0 0 .35rem; }
.sx-termin--vorbei { border-style: dashed; }
.sx-gefahr { border-color: #D64545 !important; color: #FF8A8A !important; }
.sx-code { white-space: pre-wrap; font-size: .8125rem; line-height: 1.5; padding: .75rem; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--hair); overflow-x: auto; }
.sx-schluessel { display: inline-block; word-break: break-all; padding: .2rem .4rem; border-radius: 6px; background: rgba(255, 255, 255, .08); user-select: all; }
/* v1.17 – Partner-Vereinbarung */
.sx-vereinbarung { border: 1px solid var(--c-line, rgba(255,255,255,.12)); border-radius: 12px; padding: 1rem; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.sx-vereinbarung legend { padding: 0 .4rem; }
.sx-vereinbarung > p, .sx-vereinbarung > .pt-check, .sx-hakenliste { grid-column: 1 / -1; }
.sx-hakenliste { display: grid; gap: .3rem 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* v1.19 Sellix – Anruf-Ticket */
.pt-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
.pt-grid2 > .pt-card { margin: 0; }
.pt-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: var(--t-sm); }
.pt-form fieldset.pt-field { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.pt-form fieldset.pt-field legend { font-weight: 600; margin-bottom: .4rem; }

/* ===== v1.20: Mega-Menü (Admin Panel / Sellix) ===== */
.pt--mega .pt-head__inner { gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.pt--mega .pt-brand { margin-right: 0.5rem; }
.pt-nav--mega { flex: 1 1 auto; min-width: 0; }
.mm { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.mm__item { position: static; }
.mm__top { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9375rem;
  color: var(--c-text); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; user-select: none; }
.mm__top::-webkit-details-marker { display: none; }
.pt-nav .mm__top:hover, .mm__grp[open] > .mm__top { background: rgba(255, 255, 255, 0.07); color: var(--c-text); }
.mm__top.is-active, .mm__grp.is-active > .mm__top { color: var(--fox-light); box-shadow: inset 0 -2px 0 var(--fox); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.pt-nav a.mm__top[aria-current="page"] { background: transparent; color: var(--fox-light); }
.mm__chev { transition: transform var(--dur-2, 0.2s) ease; opacity: 0.7; }
.mm__grp[open] .mm__chev { transform: rotate(180deg); }
.mm--desk .mm__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--ink-2, #111B2F);
  border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  animation: mm-in 0.16s ease-out; }
@keyframes mm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mm__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 2.5rem; padding-top: 1.75rem; padding-bottom: 2rem; }
.mm__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.mm__h { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark, #AEB8CB); }
.pt-nav .mm__link, .mm__link { display: grid; gap: 0.15rem; padding: 0.7rem 0.85rem; border-radius: var(--radius); text-decoration: none; color: var(--c-text); background: none; }
.pt-nav .mm__link:hover, .mm__link:hover { background: rgba(255, 255, 255, 0.06); color: var(--c-text); }
.pt-nav .mm__link[aria-current="page"], .mm__link[aria-current="page"] { background: rgba(255, 106, 42, 0.12); color: var(--c-text); }
.mm__t { font-weight: 650; font-size: 0.975rem; }
.mm__d { font-size: 0.825rem; font-weight: 400; color: var(--muted-dark, #AEB8CB); }
.mm__aside { padding: 1.1rem 1.25rem; border-radius: var(--radius-lg, 14px); background: linear-gradient(140deg, rgba(255, 106, 42, 0.14), rgba(117, 101, 245, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08); align-self: start; }
.mm__aside p { margin: 0 0 0.85rem; font-size: 0.875rem; color: var(--navy-text, #C9D1DF); }
.mm__aside .mm__h { color: var(--fox-light); }
/* Bereichswechsel */
.mm-switch { display: inline-flex; flex-direction: column; line-height: 1.15; padding: 0.35rem 0.85rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: 0.875rem; color: var(--c-text); border: 1px solid rgba(255, 255, 255, 0.16); }
.mm-switch:hover { border-color: var(--fox); color: var(--c-text); }
.mm-switch__k { font-size: 0.6875rem; font-weight: 500; color: var(--muted-dark, #AEB8CB); }
.mm-switch--sellix { border-color: rgba(255, 106, 42, 0.5); }
/* Mobil: gestapelt im Menü-Panel */
.pt-menu__panel .mm--mob { flex-direction: column; align-items: stretch; gap: 0; }
.pt-menu__panel .mm--mob .mm__top { width: 100%; justify-content: space-between; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--hair); border-radius: 0; box-shadow: none; }
.pt-menu__panel .mm--mob .mm__inner { display: block; padding: 0.25rem 0 0.5rem 0.5rem; }
.pt-menu__panel .mm--mob .mm__h { margin: 0.6rem 0 0.25rem; }
.pt-menu__panel .mm--mob .mm__link { padding: 0.55rem 0.5rem; border-bottom: 0; }
.pt-menu__panel .mm--mob .mm__d { display: none; }
.pt-menu__panel .mm-switch { margin: 0.5rem 0 0.75rem; flex-direction: row; gap: 0.4rem; justify-content: center; }
.pt--mega .pt-menu__panel { width: min(22rem, calc(100vw - 2rem)); max-height: calc(100vh - 90px); overflow-y: auto; }
@media (max-width: 1180px) {
  .pt--mega .pt-nav--desk, .pt--mega .pt-head__inner > .mm-switch, .pt--mega .pt-logout { display: none; }
  .pt--mega .pt-menu { display: block; margin-left: auto; }
}
@media (min-width: 1181px) { .pt--mega .pt-menu { display: none; } .pt--mega .pt-nav--desk { display: flex; } .pt--mega .pt-logout { display: block; } }

/* ===== v1.20: Admin Panel (Übersicht, Kennzahlen) ===== */
.ap-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2rem; align-items: end; margin: 0.5rem 0 1.75rem; }
.ap-sellix { display: grid; gap: 0.3rem; min-width: 19rem; padding: 1.1rem 1.35rem; border-radius: var(--radius-lg, 14px); text-decoration: none; color: var(--c-text);
  background: linear-gradient(135deg, rgba(255, 106, 42, 0.18), rgba(117, 101, 245, 0.14)); border: 1px solid rgba(255, 106, 42, 0.35); transition: transform 0.15s ease, border-color 0.15s ease; }
.ap-sellix:hover { transform: translateY(-2px); border-color: var(--fox); color: var(--c-text); }
.ap-sellix__k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fox-light); }
.ap-sellix__row { font-size: 0.9rem; color: var(--navy-text, #C9D1DF); }
.ap-sellix__row b { color: var(--c-text); font-size: 1.05rem; }
.ap-sellix__go { margin-top: 0.3rem; font-weight: 700; }
.ap-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ap-kpi { display: grid; gap: 0.2rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg, 14px); background: var(--ink-2, #111B2F); border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none; color: var(--c-text); position: relative; overflow: hidden; }
a.ap-kpi:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--c-text); }
.ap-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--violet, #7565F5); opacity: 0.8; }
.ap-kpi--warn::before { background: var(--fox); }
.ap-kpi--ok::before { background: #3BB27A; }
.ap-kpi__k { font-size: 0.8125rem; color: var(--muted-dark, #AEB8CB); font-weight: 600; }
.ap-kpi__v { font-family: var(--f-display, inherit); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.1; }
.ap-kpi__s { font-size: 0.8125rem; color: var(--muted-dark, #AEB8CB); }
.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ap-span2 { grid-column: span 2; }
.ap-grid > .pt-card { margin: 0; }
.ap-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.ap-cardhead .pt-h2 { margin: 0; }
.ap-list { list-style: none; margin: 0; padding: 0; }
.ap-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; padding: 0.8rem 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06); text-decoration: none; color: var(--c-text); }
.ap-list li:first-child a { border-top: 0; }
.ap-list a:hover { background: rgba(255, 255, 255, 0.04); color: var(--c-text); }
.ap-list__t { font-weight: 650; }
.ap-list__m { grid-column: 1; font-size: 0.8125rem; color: var(--muted-dark, #AEB8CB); }
.ap-list a > .pt-tag, .ap-list a > span:last-child:not(.ap-list__m) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ap-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ap-quick a { display: grid; gap: 0.1rem; padding: 0.65rem 0.75rem; border-radius: var(--radius); text-decoration: none; color: var(--c-text); background: rgba(255, 255, 255, 0.03); }
.ap-quick a:hover { background: rgba(255, 255, 255, 0.07); color: var(--c-text); }
.ap-quick span { font-size: 0.8125rem; color: var(--muted-dark, #AEB8CB); }
.ap-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ap-area { padding: 1rem 1.2rem; border-radius: var(--radius-lg, 14px); border: 1px dashed rgba(255, 255, 255, 0.14); }
.ap-area p { margin: 0; font-size: 0.875rem; color: var(--navy-text, #C9D1DF); }
.ap-area__k { font-weight: 700; color: var(--c-text) !important; margin-bottom: 0.35rem !important; }
.ap-area--sx { border-color: rgba(255, 106, 42, 0.4); }
.ap-area--zoho { border-color: rgba(59, 178, 122, 0.4); }
.ap-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.ap-tabs a { padding: 0.4rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.875rem; color: var(--c-text); border: 1px solid rgba(255, 255, 255, 0.12); }
.ap-tabs a[aria-current="page"] { background: var(--fox); border-color: var(--fox); color: var(--ink-1, #0B1322); }
@media (max-width: 1000px) { .ap-grid, .ap-areas { grid-template-columns: 1fr; } .ap-span2 { grid-column: auto; } .ap-hero { grid-template-columns: 1fr; } .ap-sellix { min-width: 0; } }
/* v1.20 Feinschliff */
.mm--desk .mm__inner { grid-template-columns: minmax(14rem, 1.1fr) repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; }
.mm__intro { padding: 0.25rem 1.5rem 0.25rem 0; border-right: 1px solid rgba(255, 255, 255, 0.08); min-height: 100%; }
.mm__ititle { margin: 0 0 0.5rem; font-family: var(--f-display, inherit); font-size: 1.5rem; font-weight: 700; color: var(--c-text); }
.mm__intro p:not(.mm__ititle) { margin: 0; font-size: 0.9rem; color: var(--navy-text, #C9D1DF); line-height: 1.5; }
.mm--desk .mm__h { padding-left: 0.85rem; }
.mm-switch { flex-direction: column; }
.mm-switch__l { white-space: nowrap; }
.ap-stack { display: grid; gap: 1.25rem; }
.ap-stack > .pt-card { margin: 0; }
.ap-areas--in { margin-top: 0; }
.pt-menu__panel .mm--mob a.mm__top[aria-current="page"]::before { display: none; }

/* ===== v1.21: Kundenportal – Dashboard mit Projekt im Mittelpunkt ===== */
.cd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin: 0.5rem 0 1.5rem; }
.cd-head .pt-h1 { margin-bottom: 0.35rem; }
.cd-project { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: 22px; margin-bottom: 1.25rem;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 106, 42, 0.22), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(117, 101, 245, 0.16), transparent 60%), var(--ink-2, #111B2F);
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.7); }
.cd-eyebrow { margin: 0 0 0.4rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fox-light); }
.cd-project__title { margin: 0 0 0.35rem; font-family: var(--f-display, inherit); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.01em; }
.cd-project__sub { margin: 0 0 1rem; color: var(--navy-text, #C9D1DF); font-size: 1.05rem; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cd-chip { display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--c-text); text-decoration: none; }
.cd-chip--fox { background: rgba(255, 106, 42, 0.16); border-color: rgba(255, 106, 42, 0.45); color: var(--fox-light); }
a.cd-chip--link:hover { border-color: var(--fox); color: var(--c-text); }
.cd-update { margin-top: 1.1rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--fox); max-width: 46rem; }
.cd-update p { margin: 0; color: var(--navy-text, #C9D1DF); }
.cd-update .cd-update__k { margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text); }
.cd-ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; align-self: center; }
.cd-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cd-ring circle { fill: none; stroke-width: 10; }
.cd-ring__bg { stroke: rgba(255, 255, 255, 0.08); }
.cd-ring__fg { stroke: var(--fox); stroke-linecap: round; }
.cd-ring__v { font-family: var(--f-display, inherit); font-size: 2.4rem; font-weight: 700; line-height: 1; margin-top: -0.6rem; }
.cd-ring__v small { font-size: 1rem; margin-left: 0.1rem; color: var(--muted-dark, #AEB8CB); }
.cd-ring__k { position: absolute; bottom: 42px; font-size: 0.75rem; color: var(--muted-dark, #AEB8CB); text-transform: uppercase; letter-spacing: 0.08em; }
.cd-steps { grid-column: 1 / -1; list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; counter-reset: s; }
.cd-steps li { position: relative; display: grid; justify-items: center; gap: 0.45rem; text-align: center; }
.cd-steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: rgba(255, 255, 255, 0.12); }
.cd-steps li:first-child::before { display: none; }
.cd-steps li.is-done::before, .cd-steps li.is-current::before { background: var(--fox); }
.cd-steps__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.14); color: var(--muted-dark, #AEB8CB); }
.cd-steps li.is-done .cd-steps__dot { background: var(--fox); border-color: var(--fox); color: var(--ink-1, #0B1322); }
.cd-steps li.is-current .cd-steps__dot { border-color: var(--fox); color: var(--c-text); box-shadow: 0 0 0 6px rgba(255, 106, 42, 0.18); }
.cd-steps__t { font-size: 0.8rem; font-weight: 600; color: var(--muted-dark, #AEB8CB); }
.cd-steps li.is-current .cd-steps__t { color: var(--c-text); }
.cd-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.cd-action { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.85rem; align-items: center; padding: 1rem 1.1rem; border-radius: 16px; text-decoration: none;
  background: var(--ink-2, #111B2F); border: 1px solid rgba(255, 255, 255, 0.07); color: var(--c-text); transition: transform 0.15s ease, border-color 0.15s ease; }
.cd-action:hover { transform: translateY(-2px); border-color: rgba(255, 106, 42, 0.5); color: var(--c-text); }
.cd-action__i { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; background: rgba(255, 106, 42, 0.14); color: var(--fox-light); }
.cd-action__i--red { background: rgba(226, 75, 60, 0.16); color: #FF8A7A; }
.cd-action b { font-size: 0.975rem; }
.cd-action span:last-child { font-size: 0.8125rem; color: var(--muted-dark, #AEB8CB); }
.cd-grid { display: grid; grid-template-columns: 1.35fr 1fr 0.9fr; gap: 1.25rem; align-items: start; margin-bottom: 1.25rem; }
.cd-grid > .pt-card { margin: 0; height: 100%; }
.cd-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.cd-card__head .pt-h3 { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.cd-more { font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.cd-tickets { list-style: none; margin: 0; padding: 0; }
.cd-tickets li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cd-tickets li:first-child { border-top: 0; }
.cd-tickets a { display: grid; gap: 0.15rem; text-decoration: none; color: var(--c-text); min-width: 0; }
.cd-tickets a:hover .cd-tickets__t { color: var(--fox-light); }
.cd-tickets__t { font-weight: 650; }
.cd-tickets__m { font-size: 0.8125rem; color: var(--muted-dark, #AEB8CB); }
.cd-plan { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.25rem; font-weight: 650; }
.cd-plan__badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--fox); color: var(--ink-1, #0B1322); }
.cd-quota { margin: 1rem 0 0.5rem; }
.cd-quota b { font-family: var(--f-display, inherit); font-size: 2rem; }
.cd-quota span { color: var(--muted-dark, #AEB8CB); font-size: 0.875rem; }
.cd-fine { margin-top: 0.75rem; }
.cd-fine summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--muted-dark, #AEB8CB); }
.cd-card--help { background: linear-gradient(160deg, rgba(117, 101, 245, 0.12), transparent 60%), var(--ink-2, #111B2F); }
.cd-phone a { font-size: 1.15rem; font-weight: 700; text-decoration: none; }
/* Kunden-Menü: klare aktive Markierung */
.pt--cust .pt-nav a[aria-current="page"], body:not(.pt--mega) .pt-nav--desk a[aria-current="page"] { background: rgba(255, 106, 42, 0.14); color: var(--fox-light); }
@media (max-width: 1100px) { .cd-grid { grid-template-columns: 1fr 1fr; } .cd-card--help { grid-column: 1 / -1; } .cd-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .cd-project { grid-template-columns: 1fr; } .cd-ring { width: 120px; height: 120px; justify-self: start; } .cd-ring__k { bottom: 30px; } .cd-ring__v { font-size: 2rem; }
  .cd-steps { grid-template-columns: 1fr; gap: 0.6rem; } .cd-steps li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 0.75rem; }
  .cd-steps li::before { display: none; }
  .cd-grid, .cd-actions { grid-template-columns: 1fr; }
}
.pt-meter__track { fill: rgba(255, 255, 255, 0.1); }  /* v1.21: dezente Spur im dunklen Design */

/* ===== 30.11.2026: Gruppen & Rechte ===== */
.gr-team { display: grid; gap: 0.75rem; }
.gr-row { display: grid; grid-template-columns: minmax(14rem, 1.3fr) 12rem minmax(14rem, 2fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.gr-row__who { display: grid; gap: 0.2rem; }
.gr-row__art { margin: 0; }
.gr-row__gr, .gr-rechte { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.gr-row__gr legend, .gr-rechte legend { font-size: 0.8125rem; font-weight: 600; color: var(--muted-dark, #AEB8CB); margin-bottom: 0.35rem; padding: 0; }
.gr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1.25rem; margin: 1.25rem 0; }
.gr-grid > .pt-card { margin: 0; }
.gr-rechte { display: grid; gap: 0.35rem; margin: 0.75rem 0 1rem; }
.gr-recht { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; padding: 0.5rem 0.6rem; border-radius: 10px; cursor: pointer; }
.gr-recht:hover { background: rgba(255, 255, 255, 0.04); }
.gr-recht input { margin-top: 0.25rem; accent-color: var(--fox); }
.gr-recht span { display: grid; gap: 0.1rem; }
.gr-recht small { font-size: 0.8rem; color: var(--muted-dark, #AEB8CB); }
.gr-del { display: flex; gap: 0.75rem; align-items: center; justify-content: flex-end; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.gr-card--neu { border-style: dashed; }
.gr-neu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 1rem; align-items: end; }
.gr-neu .gr-row__gr, .gr-neu .pt-actions { grid-column: 1 / -1; }
@media (max-width: 1000px) { .gr-row, .gr-neu { grid-template-columns: 1fr; } }
.gr-row__who .pt-tag { justify-self: start; }
.pt-alert--urgent { background: rgba(226, 75, 60, 0.14) !important; border-color: rgba(226, 75, 60, 0.55) !important; color: #FFD9D3 !important; }
.pt-alert--urgent strong, .pt-alert--urgent a { color: #FFE6E1 !important; }   /* 30.11.2026: im dunklen Design lesbar */

/* ===== 01.12.2026: Kurse & Dollar-Preise ===== */
.wk-kpi--gruen::before { background: #3BB27A; }
.wk-kpi--gelb::before { background: #E9B949; }
.wk-kpi--rot::before { background: var(--fox); }
.wk-kpi--rot .ap-kpi__v { color: var(--fox-light); }
.wk-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }
.wk-actions form { display: grid; gap: 0.5rem; align-content: start; }
