/* KXS Kundenportal - ergaenzt /assets/css/site.css */
.portal { background: var(--paper); }
.portal .hdr { position: sticky; top: 0; }
.portal .hdr__in { gap: 14px; }
.pt-badge { padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--y); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pt-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pt-nav a, .pt-nav .linkbtn { padding: 9px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.pt-nav a:hover, .pt-nav .linkbtn:hover { background: rgba(15,15,15,.06); color: var(--ink); }
.pt-main { width: min(100% - 2 * var(--gut), 1180px); margin: 30px auto 60px; min-height: 60vh; }
.pt-main--wide { width: min(100% - 2 * var(--gut), 1280px); }
.pt-auth { display: grid; place-items: center; min-height: 68vh; }
.pt-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.pt-card--auth { width: min(100%, 480px); }
.pt-card h1 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); margin-bottom: 10px; }
.pt-card h2 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: -.02em; }
.pt-h2 { margin-top: 26px; }
.pt-card form, form.pt-card { display: grid; gap: 16px; }
.pt-card--auth form { margin-top: 22px; }
.pt-card .btn { justify-self: start; }
.pt-links { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.pt-links a { text-decoration: underline; color: var(--ink); }
.pt-notice { padding: 12px 16px; border-radius: var(--r-s); background: rgba(237,219,24,.22); font-size: .93rem; margin: 10px 0; }
.pt-notice--ok { background: rgba(58,163,91,.14); }
.pt-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.pt-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.pt-hero .muted { margin-top: 8px; }
.pt-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.pt-kpis div { padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: #fff; min-width: 150px; }
.pt-kpis span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pt-kpis strong { font-size: 1.3rem; font-weight: 600; color: var(--y); letter-spacing: -.02em; }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pt-col2 { grid-column: span 2; }
.pt-col3 { grid-column: 1 / -1; }
.pt-steps { display: grid; gap: 0; }
.pt-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 10px 0; position: relative; }
.pt-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.pt-steps li.done::after { background: var(--y); }
.pt-steps .dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); font-weight: 600; font-size: .9rem; background: var(--paper); }
.pt-steps li.done .dot { background: var(--y); border-color: var(--y); }
.pt-steps li.now .dot { background: var(--ink); border-color: var(--ink); color: var(--y); box-shadow: 0 0 0 5px rgba(237,219,24,.35); }
.pt-steps li.stop .dot { background: #d8d6cf; border-color: #d8d6cf; }
.pt-steps strong { display: block; margin-top: 8px; }
.pt-steps p { color: var(--muted); font-size: .9rem; }
.pt-steps li:not(.done):not(.now) strong { color: var(--muted); }
.pt-docs li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.pt-docs a { text-decoration: underline; }
.pt-docs time, .pt-events time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.pt-events li { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.tk-newslist--portal { grid-template-columns: 1fr; }
.tk-newslist--portal a { padding: 14px; box-shadow: none; }
.calc--portal { gap: 14px; }
.calc--portal .calc__in { box-shadow: none; padding: 0; border: 0; }
.pt-dl div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.pt-dl dt { color: var(--muted); }
.pt-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.pt-filter input, .pt-filter select { height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: inherit; }
.pt-filter input { min-width: 280px; }
/* .btn ist für Pfeil-Icon asymmetrisch gepolstert (0 8px 0 22px); hier ohne Icon -> symmetrisch + Feldhöhe */
.pt-filter .btn { height: 44px; padding: 0 22px; justify-content: center; }
.pt-hint { font-size: .82rem; margin: -4px 0 4px; }
.pt-table td, .pt-table th { font-size: .88rem; padding: 12px 14px; }
.pt-table a { text-decoration: underline; }
.pt-foot { text-align: center; padding: 26px var(--gut) 34px; color: var(--muted); font-size: .82rem; }
.pt-foot a { text-decoration: underline; }
@media (max-width: 1000px) { .pt-grid { grid-template-columns: 1fr; } .pt-col2, .pt-col3 { grid-column: auto; } }
@media (max-width: 640px) {
  .pt-badge { display: none; }
  .pt-nav a, .pt-nav .linkbtn { padding: 8px 9px; font-size: .84rem; }
  .pt-kpis div { min-width: 0; flex: 1 1 45%; }
  .pt-filter input { min-width: 0; flex: 1 1 100%; }
  .pt-card .btn { justify-self: stretch; justify-content: space-between; }
  .pt-events li { grid-template-columns: 1fr; gap: 2px; }
}

/* Statistik */
.pt-range { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-range a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; background: #fff; }
.pt-range a.on { background: var(--ink); color: var(--y); border-color: var(--ink); }
.pt-range .sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 4px; }
.pt-kpis--stats { margin-bottom: 16px; }
.pt-kpis--stats div { flex: 1 1 170px; }
.pt-kpis small { display: block; margin-top: 2px; font-size: .78rem; color: rgba(255,255,255,.6); }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: rgba(15,15,15,.08); stroke-width: 1; }
.chart .ax { font-size: 11px; fill: var(--muted); font-family: inherit; }
.chart .m { fill: var(--ink); }
.chart .m.peak { fill: var(--gold); }
.chart .hit { fill: transparent; }
.chart .bar:hover .m, .chart .bar:focus .m { fill: var(--gold); }
.chart .bar:focus { outline: none; }
.tview { margin-top: 10px; font-size: .86rem; }
.tview summary { cursor: pointer; color: var(--muted); }
.tview table { margin-top: 10px; min-width: 0; }
.hbars { display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr auto; gap: 12px; align-items: center; font-size: .9rem; outline: none; }
.hbars .track { height: 12px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.hbars .fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--ink); }
.hbars li:hover .fill, .hbars li:focus .fill { background: var(--gold); }
.hbars .val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 64px; }
.hbars .val em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }
code { font-size: .85em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) { .hbars li { grid-template-columns: 1fr auto; } .hbars .track { grid-column: 1 / -1; order: 3; } }

.pt-new{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#EDDB18;color:#0F0F0F;font-size:11px;font-weight:600;vertical-align:middle}
