:root {
  --kp-ink: #0f172a;
  --kp-muted: #64748b;
  --kp-surface: #f8fafc;
  --kp-card: #ffffff;
  --kp-accent: #0f766e;
  --kp-accent-hover: #0d9488;
  --kp-accent-soft: rgba(15, 118, 110, 0.12);
  --kp-border: rgba(15, 23, 42, 0.08);
  --kp-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --kp-radius: 1rem;
  --kp-header-h: 3.35rem;
  --kp-font-display: "DM Sans", system-ui, sans-serif;
  --kp-font-body: "DM Sans", system-ui, sans-serif;
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: #0f766e;
  --bs-link-hover-color: #0d9488;
}

[data-pc-theme="dark"] {
  --kp-ink: #f1f5f9;
  --kp-muted: #94a3b8;
  --kp-surface: #0b1220;
  --kp-card: #111827;
  --kp-border: rgba(248, 250, 252, 0.08);
  --kp-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --kp-accent-soft: rgba(45, 212, 191, 0.14);
}

body {
  font-family: var(--kp-font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 118, 110, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(37, 99, 235, 0.06), transparent 50%),
    var(--kp-surface);
  color: var(--kp-ink);
  max-width: 100%;
  overflow-x: hidden;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

.pc-container .pc-content {
  animation: kp-enter 0.35s ease-out;
}

@keyframes kp-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.kp-brand-mark,
.kp-display {
  font-family: var(--kp-font-display);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.pc-sidebar {
  border-right: 1px solid var(--kp-border);
  background: var(--kp-card) !important;
}

/* Mobile Sidebar: sichtbar & über Content */
@media (max-width: 1024px) {
  .pc-sidebar {
    z-index: 1040 !important;
  }
  .pc-sidebar.mob-sidebar-active {
    left: 0 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  }
  .pc-sidebar.mob-sidebar-active .navbar-wrapper {
    z-index: 2;
    background: var(--kp-card) !important;
  }
  .pc-sidebar .pc-menu-overlay {
    z-index: 1;
  }
}

/* Header: kompakt, leicht transparent + Blur (stärker beim Scrollen) */
.pc-header {
  min-height: var(--kp-header-h) !important;
  height: auto !important;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.15) !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

body[data-pc-theme="dark"] .pc-header {
  background: rgba(17, 24, 39, 0.68) !important;
}

.pc-header.is-scrolled {
  border-bottom-color: var(--kp-border) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
}

body[data-pc-theme="dark"] .pc-header.is-scrolled {
  background: rgba(17, 24, 39, 0.82) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

body[data-pc-theme="light"] .pc-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86) !important;
}

.pc-header .header-wrapper {
  min-height: var(--kp-header-h) !important;
  padding: 0.3rem 1rem 0.3rem 0.65rem !important;
  align-items: center;
  gap: 0.25rem;
}

.pc-header .pc-h-item {
  min-height: var(--kp-header-h) !important;
}

.pc-header .pc-head-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.35rem !important;
  height: 2.35rem !important;
  min-width: 2.35rem !important;
  min-height: 2.35rem !important;
  margin: 0 0.1rem !important;
  border-radius: 0.65rem !important;
  color: var(--kp-muted) !important;
  background: transparent !important;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pc-header .pc-head-link:hover,
.pc-header .pc-head-link:focus,
.pc-header .pc-head-link.show,
.pc-header .pc-h-item.show .pc-head-link {
  background: var(--kp-accent-soft) !important;
  color: var(--kp-accent) !important;
  border-color: transparent;
}

.pc-header .pc-head-link::before {
  display: none !important; /* kein Scale-Kreis – wirkt sonst winzig/leer */
}

.pc-header .pc-head-link i {
  font-size: 1.35rem !important;
  line-height: 1;
}

.pc-header .header-user-profile .pc-head-link {
  width: auto !important;
  min-width: 2.35rem !important;
  padding: 0.1rem;
  border-radius: 999px !important;
}

.pc-header .header-user-profile .user-avtar {
  width: 2rem !important;
  height: 2rem !important;
  border: 2px solid var(--kp-border);
}

.pc-header .pc-header-breadcrumb-list {
  --bs-breadcrumb-divider-color: var(--kp-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.pc-header .pc-header-breadcrumb-list .breadcrumb-item,
.pc-header .pc-header-breadcrumb-list .breadcrumb-item a {
  color: var(--kp-muted) !important;
  opacity: 1;
  text-decoration: none;
}

.pc-header .pc-header-breadcrumb-list .breadcrumb-item a:hover {
  color: var(--kp-accent) !important;
}

.pc-header .pc-header-breadcrumb-list .breadcrumb-item.active {
  color: var(--kp-ink) !important;
  font-weight: 600;
}

.pc-header .pc-header-breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
  color: var(--kp-muted) !important;
  opacity: 0.55;
}

/* Content + Footer unter kompakterem Header */
.pc-sidebar ~ .pc-container,
.pc-container {
  top: var(--kp-header-h, 3.35rem) !important;
  margin-top: 0 !important;
}

.pc-container .pc-content {
  padding-bottom: 1.75rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .pc-container,
  .pc-sidebar ~ .pc-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .pc-container .pc-content {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .pc-header {
    max-width: 100%;
  }
  .pc-header .header-wrapper {
    max-width: 100%;
    box-sizing: border-box;
  }
}

.pc-footer {
  margin-top: 2.25rem !important;
  padding-top: 1.35rem !important;
  padding-bottom: 1.6rem !important;
  border-top: 1px solid var(--kp-border);
  background: transparent;
}

.pc-footer .footer-wrapper {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.pc-footer p,
.pc-footer .footer-link a {
  color: var(--kp-muted);
  font-size: 0.875rem;
}

.pc-footer a:hover {
  color: var(--kp-accent);
}

@media (max-width: 991.98px) {
  .pc-footer {
    margin-top: 1.75rem !important;
    /* Platz für Mobile-Bottom-Nav */
    padding-bottom: calc(1.35rem + 4.75rem) !important;
  }
}

.page-header.page-header-title-only {
  margin-bottom: 0.35rem;
}

.page-header.page-header-title-only h2 {
  font-family: var(--kp-font-display);
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kp-ink);
}

.pc-sidebar .pc-user-card,
.pc-sidebar .kp-sidebar-user {
  border: 1px solid var(--kp-border) !important;
  background: var(--kp-card) !important;
  margin: 0.75rem !important;
  border-radius: 0.95rem !important;
  box-shadow: none !important;
  border-top: 1px solid var(--kp-border) !important;
  overflow: visible !important;
}

.pc-sidebar .kp-sidebar-user .card-body {
  padding: 0.65rem !important;
}

.pc-sidebar .kp-sidebar-user-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  color: var(--kp-ink) !important;
  transition: background 0.15s ease;
}

.pc-sidebar .kp-sidebar-user-toggle:hover,
.pc-sidebar .kp-sidebar-user-toggle:focus,
.pc-sidebar .kp-sidebar-user-toggle[aria-expanded="true"] {
  background: var(--kp-accent-soft);
  outline: none;
}

.pc-sidebar .kp-sidebar-user-avatar {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(15, 118, 110, 0.25);
  background: var(--kp-surface);
}

.pc-sidebar .kp-sidebar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 1 1 auto;
  min-width: 0;
}

.pc-sidebar .kp-sidebar-user-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--kp-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-sidebar .kp-sidebar-user-mail {
  display: block;
  font-size: 0.72rem;
  color: var(--kp-muted);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-sidebar .kp-sidebar-user-caret {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--kp-muted);
  transition: transform 0.18s ease, color 0.15s ease;
}

.pc-sidebar .kp-sidebar-user-toggle[aria-expanded="true"] .kp-sidebar-user-caret {
  transform: rotate(180deg);
  color: var(--kp-accent);
}

/* Altes Able-Pro Widget-Grid killen */
.pc-sidebar .kp-sidebar-user .dropdown-menu,
.pc-sidebar .card.pc-user-card .dropdown-menu.kp-sidebar-user-menu {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  inset: auto auto 100% 0 !important;
  transform: none !important;
  border: 1px solid var(--kp-border) !important;
  border-radius: 0.9rem !important;
  background: var(--kp-card) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden !important;
  z-index: 1080 !important;
}

.pc-sidebar .kp-sidebar-user-menu-head {
  padding: 0.8rem 0.95rem 0.7rem;
  border-bottom: 1px solid var(--kp-border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 55%),
    var(--kp-card);
}

.pc-sidebar .kp-sidebar-user-menu-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--kp-ink);
  line-height: 1.2;
}

.pc-sidebar .kp-sidebar-user-menu-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  color: var(--kp-muted);
}

.pc-sidebar .kp-sidebar-user-menu-body,
.pc-sidebar .kp-sidebar-user-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem;
}

.pc-sidebar .kp-sidebar-user-menu-foot {
  border-top: 1px solid var(--kp-border);
  padding-top: 0.45rem;
}

.pc-sidebar .kp-sidebar-user-menu ul,
.pc-sidebar .card.pc-user-card .dropdown-menu ul {
  display: none !important;
}

.pc-sidebar .kp-sidebar-user-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0 !important;
  padding: 0.65rem 0.7rem !important;
  border-radius: 0.7rem !important;
  color: var(--kp-ink) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, color 0.15s ease;
}

.pc-sidebar .kp-sidebar-user-link::after,
.pc-sidebar .card.pc-user-card .pc-user-links::after {
  display: none !important;
  content: none !important;
}

.pc-sidebar .kp-sidebar-user-link i {
  font-size: 1.15rem !important;
  margin: 0 !important;
  color: var(--kp-accent);
  flex-shrink: 0;
}

.pc-sidebar .kp-sidebar-user-link:hover,
.pc-sidebar .kp-sidebar-user-link:focus {
  background: var(--kp-accent-soft) !important;
  color: var(--kp-accent) !important;
}

.pc-sidebar .kp-sidebar-user-link-danger {
  color: #dc3545 !important;
}

.pc-sidebar .kp-sidebar-user-link-danger i {
  color: #dc3545 !important;
}

.pc-sidebar .kp-sidebar-user-link-danger:hover,
.pc-sidebar .kp-sidebar-user-link-danger:focus {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #dc3545 !important;
}

[data-pc-theme="dark"] .pc-sidebar .kp-sidebar-user,
[data-pc-theme="dark"] .pc-sidebar .pc-user-card {
  background: var(--kp-card) !important;
}

[data-pc-theme="dark"] .pc-sidebar .kp-sidebar-user-menu,
[data-pc-theme="dark"] .pc-sidebar .card.pc-user-card .dropdown-menu.kp-sidebar-user-menu {
  background: var(--kp-card) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 1024px) {
  .pc-sidebar .kp-sidebar-user,
  .pc-sidebar .pc-user-card {
    margin: 0.65rem !important;
  }
  .pc-sidebar .kp-sidebar-user-menu,
  .pc-sidebar .card.pc-user-card .dropdown-menu.kp-sidebar-user-menu {
    width: calc(100% - 0px) !important;
    max-width: 100% !important;
  }
  .pc-sidebar .kp-sidebar-user-link {
    min-height: 2.6rem;
  }
}

@media (max-width: 575.98px) {
  .pc-sidebar .kp-sidebar-user-name {
    font-size: 0.86rem;
  }
  .pc-sidebar .kp-sidebar-user-mail {
    font-size: 0.7rem;
  }
}

.pc-sidebar .m-header {
  height: auto !important;
  min-height: 4.5rem;
  padding: 1.1rem 1.25rem 1rem !important;
  display: block !important;
  position: relative;
}

.pc-sidebar .kp-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-decoration: none !important;
  line-height: 1.2;
  width: 100%;
  position: relative;
  z-index: 1;
}

.pc-sidebar .kp-sidebar-brand-name {
  display: block;
  font-family: var(--kp-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--kp-ink) !important;
  white-space: nowrap;
}

.pc-sidebar .kp-sidebar-brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--kp-muted) !important;
  letter-spacing: 0.02em;
}

.pc-sidebar .b-brand,
.pc-sidebar .m-header > p {
  display: none !important;
}

.pc-sidebar .theme-version {
  display: none;
}

.pc-sidebar .pc-link {
  border-radius: 0.75rem;
  margin: 0.15rem 0.65rem;
}

.pc-sidebar .pc-item > .pc-link:hover {
  background: var(--kp-accent-soft) !important;
  color: var(--kp-ink) !important;
}

.pc-sidebar .pc-item > .pc-link:hover .pc-mtext,
.pc-sidebar .pc-item > .pc-link:hover .pc-micon,
.pc-sidebar .pc-item > .pc-link:hover i {
  color: var(--kp-ink) !important;
}

/* Aktiver Menüpunkt: Markierung ja, Text trotzdem klar lesbar */
.pc-sidebar .pc-item.active > .pc-link,
.pc-sidebar .pc-item .pc-link.active {
  background: var(--kp-accent-soft) !important;
  color: var(--kp-ink) !important;
  font-weight: 600;
}

.pc-sidebar .pc-item.active > .pc-link .pc-mtext,
.pc-sidebar .pc-item .pc-link.active .pc-mtext {
  color: var(--kp-ink) !important;
  opacity: 1 !important;
}

.pc-sidebar .pc-item.active > .pc-link .pc-micon,
.pc-sidebar .pc-item.active > .pc-link i,
.pc-sidebar .pc-item .pc-link.active .pc-micon,
.pc-sidebar .pc-item .pc-link.active i {
  color: var(--kp-accent) !important;
  opacity: 1 !important;
}

[data-pc-theme="dark"] .pc-sidebar .pc-item.active > .pc-link,
[data-pc-theme="dark"] .pc-sidebar .pc-item .pc-link.active,
[data-pc-theme="dark"] .pc-sidebar .pc-item > .pc-link:hover {
  color: #f8fafc !important;
}

[data-pc-theme="dark"] .pc-sidebar .pc-item.active > .pc-link .pc-mtext,
[data-pc-theme="dark"] .pc-sidebar .pc-item .pc-link.active .pc-mtext,
[data-pc-theme="dark"] .pc-sidebar .pc-item > .pc-link:hover .pc-mtext,
[data-pc-theme="dark"] .pc-sidebar .pc-item > .pc-link:hover .pc-micon,
[data-pc-theme="dark"] .pc-sidebar .pc-item > .pc-link:hover i {
  color: #f8fafc !important;
}

[data-pc-theme="dark"] .pc-sidebar .pc-item.active > .pc-link .pc-micon,
[data-pc-theme="dark"] .pc-sidebar .pc-item.active > .pc-link i,
[data-pc-theme="dark"] .pc-sidebar .pc-item .pc-link.active .pc-micon,
[data-pc-theme="dark"] .pc-sidebar .pc-item .pc-link.active i {
  color: #5eead4 !important;
}

.btn-primary {
  background: var(--kp-accent) !important;
  border-color: var(--kp-accent) !important;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--kp-accent-hover) !important;
  border-color: var(--kp-accent-hover) !important;
}

.card,
.kp-surface-card {
  border: 1px solid var(--kp-border) !important;
  box-shadow: var(--kp-shadow) !important;
  border-radius: var(--kp-radius) !important;
  background: var(--kp-card);
}

/* Auth */
.kp-auth-page,
.kp-auth-page html,
.kp-auth-page body {
  overflow: auto !important;
  height: auto !important;
  min-height: 100%;
}

.kp-auth-page .auth-main.v1 {
  position: relative;
  min-height: 100vh;
  height: auto !important;
  max-height: none !important;
  width: 100%;
  display: flex;
  overflow: visible !important;
  justify-content: center;
  align-items: stretch;
}

.kp-auth-page .auth-main.v1 .auth-wrapper {
  min-height: 100vh;
  height: auto !important;
  max-height: none !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: visible !important;
}

.kp-auth-page .auth-main.v1 .auth-wrapper .auth-form {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(0.85rem, 3vw, 1.5rem);
  overflow: visible !important;
}

.kp-auth {
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.16), transparent 42%),
    linear-gradient(20deg, rgba(15, 23, 42, 0.04), transparent 40%),
    var(--kp-surface);
}

.kp-auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--kp-border) !important;
  box-shadow: var(--kp-shadow) !important;
  border-radius: 1.25rem !important;
  background: var(--kp-card) !important;
  overflow: hidden;
  position: relative;
  animation: kp-auth-in 0.45s ease-out both;
}

.kp-auth-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--kp-accent), rgba(45, 212, 191, 0.35));
}

.kp-auth-card-wide {
  max-width: 440px;
}

.kp-auth-card .card-body {
  padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.4rem, 4vw, 2rem) !important;
}

.kp-auth-brand {
  text-align: left;
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem !important;
  border-bottom: 1px solid var(--kp-border);
}

.kp-auth-brand .kp-brand-mark {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--kp-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.65rem !important;
}

.kp-auth-title {
  font-family: var(--kp-font-display);
  font-size: clamp(1.45rem, 4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--kp-ink);
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

.kp-auth-lead {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--kp-muted);
  max-width: 28rem;
}

.kp-auth-perks {
  display: none;
}

.kp-auth-field {
  margin-bottom: 1.25rem;
}

.kp-auth-field:last-of-type {
  margin-bottom: 0.25rem;
}

.kp-auth-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--kp-ink);
  margin-bottom: 0.5rem;
}

.kp-auth-actions {
  display: grid !important;
  width: 100% !important;
  margin-top: 1.85rem !important;
}

.kp-auth-switch {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1.25rem !important;
  line-height: 1.5;
}

/* Auth-Inputs: immer dunkel + helle Schrift (auch Chrome-Autofill) */
body.kp-auth-page input.form-control,
body.kp-auth-page input.kp-input,
.kp-auth-page .kp-auth-form input.form-control,
.kp-auth .kp-auth-form input.form-control {
  padding: 0.9rem 1.1rem !important;
  min-height: 52px !important;
  border-radius: 0.8rem !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: #0b1220 !important;
  background-color: #0b1220 !important;
  background-image: none !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.kp-auth-page input.form-control::placeholder,
.kp-auth-page .kp-auth-form input.form-control::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1 !important;
}

body.kp-auth-page input.form-control:hover,
.kp-auth-page .kp-auth-form input.form-control:hover {
  border-color: rgba(148, 163, 184, 0.45) !important;
}

body.kp-auth-page input.form-control:focus,
.kp-auth-page .kp-auth-form input.form-control:focus {
  border-color: rgba(45, 212, 191, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.3) !important;
  background: #070d18 !important;
  background-color: #070d18 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  outline: none !important;
}

body.kp-auth-page input.form-control.is-invalid,
.kp-auth-page .kp-auth-form input.form-control.is-invalid {
  border-color: rgba(248, 113, 113, 0.7) !important;
  background: #0b1220 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background-image: none !important;
}

body.kp-auth-page input.form-control:-webkit-autofill,
body.kp-auth-page input.form-control:-webkit-autofill:hover,
body.kp-auth-page input.form-control:-webkit-autofill:focus,
body.kp-auth-page input.form-control:-webkit-autofill:active,
.kp-auth-page input.form-control:-webkit-autofill,
.kp-auth-page input.form-control:-webkit-autofill:hover,
.kp-auth-page input.form-control:-webkit-autofill:focus,
.kp-auth-page input.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  -webkit-box-shadow: 0 0 0 1000px #0b1220 inset !important;
  box-shadow: 0 0 0 1000px #0b1220 inset !important;
  background-color: #0b1220 !important;
  background-image: none !important;
  transition: background-color 99999s ease-out 0s !important;
}

.kp-auth-page .form-text {
  color: var(--kp-muted);
  font-size: 0.78rem;
  margin-top: 0.4rem;
}

.kp-auth-actions .btn,
.kp-auth-page .kp-auth-actions .btn-primary {
  width: 100% !important;
  min-height: 52px !important;
  font-weight: 600 !important;
  border-radius: 0.8rem !important;
  letter-spacing: 0.01em;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.kp-auth-page .btn-primary:hover {
  filter: brightness(1.05);
}

@keyframes kp-auth-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 575.98px) {
  .kp-auth-page .form-control {
    font-size: 16px !important; /* kein iOS-Zoom */
  }
  .kp-auth-card,
  .kp-auth-card-wide {
    max-width: 100%;
    border-radius: 1rem !important;
  }
  .kp-auth-card .card-body {
    padding: 1.5rem 1.2rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kp-auth-card {
    animation: none;
  }
}

/* Dashboard hero */
.kp-hero {
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(37, 99, 235, 0.06)),
    var(--kp-card);
  border: 1px solid var(--kp-border);
  margin-bottom: 1.5rem;
}

.kp-hero h1 {
  font-family: var(--kp-font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.kp-hero p {
  color: var(--kp-muted);
  margin-bottom: 1rem;
  max-width: 36rem;
}

.kp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Shop */
.kp-product-card {
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kp-product-card:hover {
  transform: translateY(-3px);
}

/* Smart product media: adapts to any image size, keeps content readable */
.kp-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.04));
}

.kp-media-frame.is-portrait {
  aspect-ratio: 1 / 1;
}

.kp-media-frame.is-square {
  aspect-ratio: 1 / 1;
}

.kp-media-frame.is-wide {
  aspect-ratio: 16 / 9;
}

.kp-media-frame.is-ultra-wide {
  aspect-ratio: 21 / 9;
}

.kp-media-frame img,
.kp-product-card .kp-product-media {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}

.kp-product-card .kp-media-frame {
  border-radius: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.kp-product-card .kp-product-media-fallback {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  color: var(--kp-muted);
  font-size: 2.5rem;
}

.kp-media-frame--detail,
body[data-pc-theme="dark"] .kp-media-frame--detail,
body[data-pc-theme="light"] .kp-media-frame--detail {
  aspect-ratio: auto !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

.kp-media-frame--detail.is-portrait,
.kp-media-frame--detail.is-square,
.kp-media-frame--detail.is-wide,
.kp-media-frame--detail.is-ultra-wide {
  aspect-ratio: auto !important;
  max-height: none !important;
}

.kp-media-frame--detail img,
.kp-media-frame--detail .kp-product-media {
  width: 100% !important;
  height: auto !important;
  max-height: min(520px, 75vh) !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0.75rem;
  display: block !important;
  background: transparent !important;
}

/* Hosting-Detail: Bild bündig im Card-Header, kein Zusatzrahmen */
.kp-media-frame--detail.kp-media-frame--flush,
.kp-media-frame--detail.kp-media-frame--flush img,
.kp-media-frame--detail.kp-media-frame--flush .kp-product-media {
  border-radius: 0;
}
.card > .kp-media-frame--detail.kp-media-frame--flush:first-child img {
  border-radius: 0.75rem 0.75rem 0 0;
}

/* Detailbild – eingebettet in Product-Showcase */
.kp-product-showcase {
  background: var(--bs-body-bg, #fff);
  overflow: visible;
}

body[data-pc-theme="dark"] .kp-product-showcase {
  background: var(--bs-card-bg, #1e293b);
}

.kp-product-showcase-visual {
  padding: 1.25rem 1.25rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.kp-product-showcase-visual--empty {
  min-height: 220px;
  padding: 2rem 1.25rem;
  color: var(--kp-muted, #94a3b8);
}

.kp-product-showcase-body {
  padding: 1.15rem 1.25rem 1.35rem !important;
}

.kp-product-detail-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(360px, 55vh);
  object-fit: contain;
  object-position: center;
  border: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  background: transparent;
  border-radius: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, max-height 0.35s ease;
}

body[data-pc-theme="dark"] .kp-product-detail-img {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.kp-product-showcase-visual:hover .kp-product-detail-img {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

body[data-pc-theme="dark"] .kp-product-showcase-visual:hover .kp-product-detail-img {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Dynamisch nach Bildformat */
.kp-product-detail-img.is-portrait {
  width: auto;
  max-width: 100%;
  max-height: min(460px, 68vh);
  margin-inline: auto;
}

.kp-product-detail-img.is-square {
  width: min(100%, 420px);
  max-height: min(420px, 62vh);
  margin-inline: auto;
}

.kp-product-detail-img.is-wide {
  width: 100%;
  max-height: min(320px, 48vh);
}

.kp-product-detail-img.is-ultra-wide {
  width: 100%;
  max-height: min(260px, 40vh);
}

.kp-product-detail-img--flush {
  border-radius: 1.25rem 1.25rem 0 0;
  max-height: none;
}

/* Shop: Bildkarte neben Infokarte */
.kp-product-showcase .kp-product-showcase-visual:last-child {
  padding: 1.25rem;
  height: 100%;
  min-height: 280px;
}

.kp-product-showcase .kp-product-showcase-visual:last-child .kp-product-detail-img {
  max-height: min(420px, 60vh);
}

.kp-product-showcase .kp-product-showcase-visual:last-child .kp-product-detail-img.is-portrait {
  max-height: min(480px, 70vh);
}

@media (max-width: 767.98px) {
  .kp-product-detail-img {
    border-radius: 1rem;
    max-height: min(280px, 45vh);
  }
  .kp-product-detail-img.is-portrait {
    max-height: min(360px, 55vh);
  }
  .kp-product-detail-img.is-square {
    width: min(100%, 320px);
    max-height: min(320px, 50vh);
  }
}

.kp-media-frame.is-broken {
  min-height: 160px;
}
.kp-media-frame.is-broken::after {
  content: "Bild nicht ladbar";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--kp-muted, #94a3b8);
  background: inherit;
}
.kp-media-frame.is-broken img {
  opacity: 0;
}

.kp-media-fallback--detail {
  min-height: 220px;
  aspect-ratio: auto;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--kp-muted);
  box-shadow: none;
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

body[data-pc-theme="dark"] .kp-media-frame {
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.85));
}

body[data-pc-theme="dark"] .kp-product-card .kp-media-frame {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

body[data-pc-theme="dark"] .kp-media-frame--detail {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-pc-theme="dark"] .kp-media-fallback--detail {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.2);
}

.kp-cart-pulse {
  animation: kp-pulse 0.45s ease;
}

@keyframes kp-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Checkout steps */
.kp-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.kp-steps span {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--kp-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.kp-steps span.is-active {
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
}

.kp-steps span.is-done {
  background: rgba(15, 118, 110, 0.18);
  color: var(--kp-accent);
}

/* Order timeline */
.kp-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.kp-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--kp-border);
}

.kp-timeline li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.kp-timeline li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--kp-accent);
  box-shadow: 0 0 0 3px var(--kp-accent-soft);
}

.kp-timeline .kp-time {
  display: block;
  font-size: 0.75rem;
  color: var(--kp-muted);
}

/* Empty state */
.kp-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.kp-empty i {
  font-size: 2.75rem;
  color: var(--kp-muted);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.kp-empty h3 {
  font-family: var(--kp-font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.kp-empty p {
  color: var(--kp-muted);
  margin-bottom: 1.25rem;
}

/* Mobile bottom nav */
.kp-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: var(--kp-card);
  border-top: 1px solid var(--kp-border);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.kp-bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--kp-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.15rem;
  border-radius: 0.65rem;
}

.kp-bottom-nav a i {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.1rem;
}

.kp-bottom-nav a.is-active,
.kp-bottom-nav a:hover {
  color: var(--kp-accent);
  background: var(--kp-accent-soft);
}

@media (max-width: 991.98px) {
  .kp-bottom-nav {
    display: flex;
  }
  .pc-container {
    padding-bottom: 4.75rem !important;
  }
}

.notif-section-label {
  padding: 0.5rem 1rem 0.15rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kp-muted);
  font-weight: 700;
}

/* Dashboard metrics (statt nackter Stat-Boxen) */
.kp-dash-metric {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  text-decoration: none !important;
  color: var(--kp-ink) !important;
  box-shadow: var(--kp-shadow);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.kp-dash-metric:hover {
  background: var(--kp-accent-soft);
  border-color: rgba(15, 118, 110, 0.22);
  transform: translateY(-2px);
}

.kp-dash-metric-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.kp-dash-metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kp-muted);
  margin-bottom: 0.15rem;
}

.kp-dash-metric-value {
  font-family: var(--kp-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--kp-ink);
}

.kp-dash-metric-hint {
  font-size: 0.75rem;
  color: var(--kp-muted);
  margin-top: 0.2rem;
}

.kp-dash-metric-arrow {
  color: var(--kp-muted);
  font-size: 1.1rem;
}

.kp-next-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  box-shadow: var(--kp-shadow);
  text-decoration: none !important;
  color: var(--kp-ink) !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.kp-next-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.35);
}
.kp-next-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: var(--kp-accent-soft);
  color: var(--kp-accent, #0f766e);
}
.kp-next-pay .kp-next-icon { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.kp-next-renew .kp-next-icon { background: rgba(217, 119, 6, 0.14); color: #d97706; }
.kp-next-track .kp-next-icon { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.kp-next-ok .kp-next-icon { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.kp-next-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kp-next-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kp-muted);
  margin-bottom: 0.15rem;
}
.kp-next-title { font-weight: 700; font-size: 1.05rem; }
.kp-next-text { font-size: 0.9rem; color: var(--kp-muted); }
.kp-next-cta {
  flex-shrink: 0;
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
}

body[data-pc-theme="dark"] .kp-dash-metric {
  background: var(--kp-card);
  border-color: rgba(248, 250, 252, 0.08);
}

body[data-pc-theme="dark"] .kp-dash-metric:hover {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.22);
}

/* Dashboard activity panels (Listen statt Tabellen) */
.kp-dash-panel {
  border-radius: 1rem !important;
  overflow: hidden;
  background: var(--kp-card) !important;
  border: 1px solid var(--kp-border) !important;
}

.kp-dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.65rem !important;
  background: transparent !important;
}

.kp-dash-panel-head h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--kp-ink);
}

.kp-dash-panel-body {
  padding: 0.35rem 0.85rem 0.95rem !important;
}

.kp-dash-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kp-dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid var(--kp-border);
  background: rgba(15, 23, 42, 0.02);
  text-decoration: none !important;
  color: var(--kp-ink) !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.kp-dash-list-item:hover {
  background: var(--kp-accent-soft);
  border-color: rgba(15, 118, 110, 0.22);
  transform: translateX(3px);
}

.kp-dash-list-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.kp-dash-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--kp-muted);
}

body[data-pc-theme="dark"] .kp-dash-list-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(248, 250, 252, 0.08);
}

body[data-pc-theme="dark"] .kp-dash-list-item:hover {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.22);
}

/* Focus a11y */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--kp-accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Light Mode: Lesbarkeit überall (Dark Mode unverändert lassen)
   ------------------------------------------------------------------ */
body[data-pc-theme="light"] {
  color-scheme: light;
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .pc-container,
body[data-pc-theme="light"] .pc-content {
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .text-muted,
body[data-pc-theme="light"] .text-secondary {
  color: var(--kp-muted) !important;
}

body[data-pc-theme="light"] .card,
body[data-pc-theme="light"] .kp-surface-card {
  background: var(--kp-card) !important;
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .card-header,
body[data-pc-theme="light"] .card-footer {
  background: var(--kp-card) !important;
  color: var(--kp-ink) !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="light"] .card-header h5,
body[data-pc-theme="light"] .card-header h6,
body[data-pc-theme="light"] .card-title {
  color: var(--kp-ink) !important;
}

body[data-pc-theme="light"] .table {
  --bs-table-color: var(--kp-ink);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--kp-border);
  --bs-table-hover-bg: rgba(15, 23, 42, 0.03);
  --bs-table-striped-bg: rgba(15, 23, 42, 0.02);
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .table thead th {
  color: var(--kp-muted) !important;
  background: #f8fafc !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="light"] .table tbody td {
  color: var(--kp-ink) !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="light"] .list-group-item {
  background: var(--kp-card);
  color: var(--kp-ink);
  border-color: var(--kp-border);
}

body[data-pc-theme="light"] .dropdown-menu {
  background: var(--kp-card);
  color: var(--kp-ink);
  border-color: var(--kp-border);
  box-shadow: var(--kp-shadow);
}

body[data-pc-theme="light"] .dropdown-item {
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .dropdown-item:hover,
body[data-pc-theme="light"] .dropdown-item:focus {
  background: var(--kp-accent-soft);
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .btn-outline-secondary {
  color: #334155 !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  background: transparent !important;
}

body[data-pc-theme="light"] .btn-outline-secondary:hover {
  color: var(--kp-ink) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
}

body[data-pc-theme="light"] .btn-outline-primary {
  color: var(--kp-accent) !important;
  border-color: rgba(15, 118, 110, 0.35) !important;
}

body[data-pc-theme="light"] .btn-outline-primary:hover {
  color: #fff !important;
  background: var(--kp-accent) !important;
  border-color: var(--kp-accent) !important;
}

body[data-pc-theme="light"] .form-label {
  color: var(--kp-ink);
}

body[data-pc-theme="light"]:not(.kp-auth-page) .form-control,
body[data-pc-theme="light"]:not(.kp-auth-page) .form-select,
body[data-pc-theme="light"]:not(.kp-auth-page) textarea.form-control {
  background-color: #fff !important;
  color: var(--kp-ink) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

body[data-pc-theme="light"]:not(.kp-auth-page) .form-control::placeholder {
  color: #94a3b8 !important;
}

body[data-pc-theme="light"]:not(.kp-auth-page) .form-control:focus,
body[data-pc-theme="light"]:not(.kp-auth-page) .form-select:focus {
  border-color: rgba(15, 118, 110, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15) !important;
  background-color: #fff !important;
  color: var(--kp-ink) !important;
}

body[data-pc-theme="light"] .accordion-item {
  background: var(--kp-card);
  color: var(--kp-ink);
  border-color: var(--kp-border);
}

body[data-pc-theme="light"] .accordion-button {
  background: var(--kp-card);
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .accordion-button:not(.collapsed) {
  background: #f1f5f9;
  color: var(--kp-ink);
  box-shadow: none;
}

body[data-pc-theme="light"] .accordion-body {
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .modal-content {
  background: var(--kp-card);
  color: var(--kp-ink);
  border-color: var(--kp-border);
}

body[data-pc-theme="light"] .offcanvas {
  background: var(--kp-card);
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .breadcrumb {
  color: var(--kp-muted);
}

body[data-pc-theme="light"] .badge.bg-primary {
  background: rgba(15, 118, 110, 0.14) !important;
  color: #0f766e !important;
}

body[data-pc-theme="light"] .badge.bg-success {
  background: rgba(22, 163, 74, 0.14) !important;
  color: #15803d !important;
}

body[data-pc-theme="light"] .badge.bg-info {
  background: rgba(2, 132, 199, 0.14) !important;
  color: #0369a1 !important;
}

body[data-pc-theme="light"] .badge.bg-warning {
  background: rgba(217, 119, 6, 0.16) !important;
  color: #b45309 !important;
}

body[data-pc-theme="dark"] .badge.bg-warning,
body[data-pc-theme="dark"] .badge.text-bg-warning {
  background: #f5c542 !important;
  color: #111 !important;
}

body[data-pc-theme="light"] .badge.bg-secondary {
  background: rgba(100, 116, 139, 0.16) !important;
  color: #475569 !important;
}

body[data-pc-theme="light"] .kp-steps span {
  background: rgba(15, 23, 42, 0.05);
  color: var(--kp-muted);
}

body[data-pc-theme="light"] .kp-hero,
body[data-pc-theme="light"] .kp-hero h1 {
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .kp-hero p {
  color: var(--kp-muted);
}

/* Dashboard-Komponenten (Light) */
body[data-pc-theme="light"] .kp-dash-stat-card {
  background: var(--kp-card) !important;
  border: 1px solid var(--kp-border) !important;
}

body[data-pc-theme="light"] .kp-dash-stat-card .card-body {
  color: var(--kp-ink);
}

body[data-pc-theme="light"] .kp-dash-stat-card .text-muted {
  color: var(--kp-muted) !important;
}

body[data-pc-theme="light"] .kp-dash-quick-link {
  border: 1px solid var(--kp-border) !important;
  background: var(--kp-card) !important;
  color: var(--kp-ink) !important;
}

body[data-pc-theme="light"] .kp-dash-quick-link:hover {
  background: var(--kp-accent-soft) !important;
  border-color: rgba(15, 118, 110, 0.22) !important;
}

/* Schnellzugriff – gleiche Hover-Sprache wie Dashboard-Metrics */
.kp-dash-quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  min-height: 4.25rem;
  padding: 0.9rem 1rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 0.9rem;
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-width: 0;
  box-sizing: border-box;
}

.kp-dash-quick-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.kp-dash-quick-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.kp-dash-quick-title {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--kp-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kp-dash-quick-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--kp-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kp-dash-quick-arrow {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 1rem;
  color: var(--kp-muted);
  opacity: 0.7;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.kp-dash-quick-link:hover {
  background: var(--kp-accent-soft);
  border-color: rgba(15, 118, 110, 0.22);
  transform: translateY(-2px);
}

.kp-dash-quick-link:hover .kp-dash-quick-arrow {
  color: var(--kp-accent);
  opacity: 1;
}

.kp-dash-quick-link:active {
  transform: none;
}

@media (max-width: 767.98px) {
  .kp-dash-quick-card .card-body {
    padding: 0.85rem;
  }
  .kp-dash-quick-link {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.7rem;
    min-height: 7.1rem;
    padding: 0.95rem 0.9rem;
  }
  .kp-dash-quick-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    border-radius: 0.8rem;
  }
  .kp-dash-quick-text {
    width: 100%;
  }
  .kp-dash-quick-title {
    white-space: normal;
    font-size: 0.92rem;
    line-height: 1.3;
  }
  .kp-dash-quick-sub {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.74rem;
  }
  .kp-dash-quick-arrow {
    display: none;
  }
}

@media (max-width: 379.98px) {
  .kp-dash-quick-link {
    min-height: 6.4rem;
    padding: 0.8rem 0.75rem;
  }
  .kp-dash-quick-title {
    font-size: 0.86rem;
  }
}

body[data-pc-theme="light"] .kp-dash-table-card .card-header,
body[data-pc-theme="light"] .kp-dash-table-card .card-body {
  background: var(--kp-card) !important;
  color: var(--kp-ink) !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="light"] .kp-dash-table thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="light"] .kp-dash-table tbody td {
  color: var(--kp-ink) !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="light"] .kp-dash-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03) !important;
}

/* Dark Mode Dashboard-Feinschliff (bestehendes Look behalten) */
body[data-pc-theme="dark"] .kp-dash-stat-card {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}

body[data-pc-theme="dark"] .kp-dash-stat-card .card-body {
  color: #e2e8f0;
}

body[data-pc-theme="dark"] .kp-dash-stat-card .text-muted {
  color: #94a3b8 !important;
}

body[data-pc-theme="dark"] .kp-dash-quick-link {
  border: 1px solid #334155;
  background: transparent;
  color: var(--kp-ink);
}

body[data-pc-theme="dark"] .kp-dash-quick-link:hover {
  background: rgba(45, 212, 191, 0.1) !important;
  border-color: rgba(45, 212, 191, 0.22) !important;
}

body[data-pc-theme="dark"] .kp-dash-table-card .card-header {
  background: #19212a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

body[data-pc-theme="dark"] .kp-dash-table-card .card-body {
  background: #1e293b !important;
}

body[data-pc-theme="dark"] .kp-dash-table thead th {
  background: #19212a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

body[data-pc-theme="dark"] .kp-dash-table tbody td {
  color: #e2e8f0;
  border-color: #334155 !important;
}

body[data-pc-theme="dark"] .kp-dash-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

body[data-pc-theme="dark"] .kp-product-card .kp-product-media-fallback {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* ---- FAQ ---- */
.kp-faq {
  width: 100%;
  max-width: none;
  margin: 0;
}

.kp-faq-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 55%),
    var(--kp-card);
  box-shadow: var(--kp-shadow);
}

.kp-faq-hero-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1.15rem;
}

.kp-faq-hero-copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.kp-faq-title {
  font-family: var(--kp-font-display);
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  color: var(--kp-ink);
  line-height: 1.25;
}

.kp-faq-lead {
  margin: 0;
  color: var(--kp-muted);
  font-size: clamp(0.8rem, 0.4vw + 0.72rem, 0.9rem);
  line-height: 1.4;
  max-width: none;
}

.kp-faq-count {
  margin-left: auto;
  text-align: right;
  padding: 0.3rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--kp-border);
}

[data-pc-theme="dark"] .kp-faq-count {
  background: rgba(248, 250, 252, 0.05);
}

.kp-faq-count-num {
  display: block;
  font-family: var(--kp-font-display);
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--kp-accent);
}

.kp-faq-count-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kp-muted);
  font-weight: 600;
}

.kp-faq-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.kp-faq-search {
  position: relative;
  flex: 1 1 14rem;
  min-width: 0;
}

.kp-faq-search > i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kp-muted);
  pointer-events: none;
  font-size: 1rem;
}

.kp-faq-search .form-control {
  padding-left: 2.4rem;
  border-radius: 999px;
  border-color: var(--kp-border);
  background: var(--kp-card);
  min-height: 2.5rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.kp-faq-search .form-control:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.kp-faq-hint {
  font-size: 0.78rem;
  color: var(--kp-muted);
  white-space: nowrap;
}

.kp-faq-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0.95rem;
  --bs-accordion-inner-border-radius: 0.95rem;
  --bs-accordion-btn-padding-x: 1.15rem;
  --bs-accordion-btn-padding-y: 1.15rem;
  --bs-accordion-body-padding-x: 1.15rem;
  --bs-accordion-body-padding-y: 0.35rem;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--kp-ink);
  --bs-accordion-btn-color: var(--kp-ink);
  --bs-accordion-btn-focus-box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kp-faq-item {
  border: 1px solid var(--kp-border) !important;
  border-radius: 0.95rem !important;
  background: var(--kp-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kp-faq-item:hover {
  border-color: rgba(15, 118, 110, 0.28) !important;
}

.kp-faq-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(15, 118, 110, 0.35) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.kp-faq-btn {
  gap: 0.85rem;
  font-weight: 600;
  font-size: clamp(0.9rem, 0.35vw + 0.8rem, 1rem) !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
  align-items: center;
}

.kp-faq-btn:focus {
  box-shadow: none !important;
}

.kp-faq-btn:not(.collapsed) {
  padding-bottom: 0.85rem !important;
}

.kp-faq-btn::after {
  margin-left: 0.5rem;
  flex-shrink: 0;
  opacity: 0.55;
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
}

.kp-faq-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--kp-accent);
  background: var(--kp-accent-soft);
}

.kp-faq-q {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  line-height: 1.45;
  font-size: inherit;
  padding: 0.1rem 0;
}

.kp-faq-a {
  color: var(--kp-muted);
  line-height: 1.65;
  font-size: clamp(0.86rem, 0.3vw + 0.78rem, 0.95rem);
  /* Align with question text: side padding + number + gap */
  padding: 0.35rem 1.15rem 1.25rem calc(1.15rem + 2rem + 0.85rem) !important;
  border-top: 1px solid var(--kp-border);
  margin-top: 0;
}

.kp-faq-none {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed var(--kp-border);
  color: var(--kp-muted);
  text-align: center;
  font-size: 0.88rem;
}

.kp-faq-help {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--kp-shadow);
}

.kp-faq-help-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.kp-faq-help-copy strong {
  color: var(--kp-ink);
  font-size: 0.92rem;
}

.kp-faq-help-copy span {
  color: var(--kp-muted);
  font-size: 0.84rem;
}

.kp-faq-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kp-faq-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  box-shadow: var(--kp-shadow);
}

.kp-faq-empty > i {
  font-size: 2rem;
  color: var(--kp-muted);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.65rem;
}

.kp-faq-empty h2 {
  font-family: var(--kp-font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.kp-faq-empty p {
  color: var(--kp-muted);
  margin: 0 auto 1.1rem;
  max-width: 28rem;
  font-size: 0.9rem;
}

.pc-content:has(.kp-faq) .page-header h2,
.pc-content:has(.kp-faq) .page-header .h2 {
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.3rem) !important;
}

@media (max-width: 575.98px) {
  .kp-faq-a {
    padding: 0.5rem 1.15rem 1.15rem 1.15rem !important;
  }
  .kp-faq-btn {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .kp-faq-count {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }
  .kp-faq-count-num {
    display: inline;
  }
  .kp-faq-hero {
    padding: 0.85rem 1rem;
  }
}

[data-pc-theme="dark"] .kp-faq-item:has(.accordion-button:not(.collapsed)) {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

body[data-pc-theme="light"] .kp-faq-item,
body[data-pc-theme="light"] .kp-faq-hero,
body[data-pc-theme="light"] .kp-faq-help,
body[data-pc-theme="light"] .kp-faq-empty {
  background: #fff;
}

/* ---- Profil ---- */
.kp-profile {
  width: 100%;
  max-width: min(72rem, 100%);
  margin-inline: auto;
  padding-bottom: 0.5rem;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.kp-profile *,
.kp-profile *::before,
.kp-profile *::after {
  box-sizing: border-box;
}

.kp-profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 55%),
    var(--kp-card);
  box-shadow: var(--kp-shadow);
  max-width: 100%;
  min-width: 0;
}

.kp-profile-hero-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 16rem;
  max-width: 100%;
}

.kp-profile-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  object-fit: cover;
  border: 2px solid rgba(15, 118, 110, 0.25);
  flex-shrink: 0;
  background: var(--kp-surface);
}

.kp-profile-name {
  font-family: var(--kp-font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.2rem;
  color: var(--kp-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kp-profile-meta {
  color: var(--kp-muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kp-profile-dot {
  margin: 0 0.25rem;
  opacity: 0.5;
}

.kp-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.kp-profile-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
}

.kp-profile-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.kp-profile-stat {
  flex: 1 0 5.75rem;
  min-width: 5.75rem;
  max-width: 8rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid var(--kp-border);
  background: rgba(15, 23, 42, 0.03);
  text-align: center;
  overflow: hidden;
}

[data-pc-theme="dark"] .kp-profile-stat {
  background: rgba(248, 250, 252, 0.04);
}

.kp-profile-stat-val {
  display: block;
  font-family: var(--kp-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--kp-ink);
}

.kp-profile-stat-lbl {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--kp-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.kp-profile-hero-actions {
  margin-left: auto;
  max-width: 100%;
}

.kp-profile-hero-actions .btn {
  white-space: nowrap;
  max-width: 100%;
}

.kp-profile-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.kp-profile-nav {
  position: sticky;
  top: calc(var(--kp-header-h, 3.35rem) + 0.75rem);
  padding: 0.55rem;
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  box-shadow: var(--kp-shadow);
  z-index: 2;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.kp-profile-nav .nav {
  gap: 0.25rem;
  max-width: 100%;
  min-width: 0;
}

.kp-profile-nav-link {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: 0 !important;
  border-radius: 0.7rem !important;
  padding: 0.65rem 0.75rem !important;
  color: var(--kp-muted) !important;
  background: transparent !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.kp-profile-nav-link i {
  font-size: 1.15rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.kp-profile-nav-link:hover {
  color: var(--kp-ink) !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

[data-pc-theme="dark"] .kp-profile-nav-link:hover {
  background: rgba(248, 250, 252, 0.05) !important;
}

.kp-profile-nav-link.active {
  color: var(--kp-accent) !important;
  background: var(--kp-accent-soft) !important;
}

.kp-profile-panels {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.kp-profile-panel {
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  box-shadow: var(--kp-shadow);
  padding: 1.25rem 1.35rem 1.4rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.kp-profile-panel-head {
  margin-bottom: 1.15rem;
}

.kp-profile-panel-head h2 {
  font-family: var(--kp-font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  color: var(--kp-ink);
}

.kp-profile-panel-head p {
  margin: 0;
  color: var(--kp-muted);
  font-size: 0.9rem;
}

.kp-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
}

.kp-profile-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid var(--kp-border);
  background: rgba(15, 23, 42, 0.02);
  min-width: 0;
  max-width: 100%;
}

[data-pc-theme="dark"] .kp-profile-fact {
  background: rgba(248, 250, 252, 0.03);
}

.kp-profile-fact-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1.05rem;
}

.kp-profile-fact-lbl {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kp-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.kp-profile-fact-val {
  display: block;
  color: var(--kp-ink);
  font-weight: 600;
  font-size: 0.92rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.kp-profile-activity,
.kp-profile-bio {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--kp-border);
}

.kp-profile-activity h3,
.kp-profile-bio h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kp-muted);
  font-weight: 700;
  margin: 0 0 0.55rem;
}

.kp-profile-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kp-profile-activity-list li {
  color: var(--kp-ink);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kp-profile-activity-list i {
  color: var(--kp-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.kp-profile-bio p {
  margin: 0;
  color: var(--kp-ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.kp-profile-form {
  max-width: 100%;
  min-width: 0;
}

.kp-profile-form .row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.kp-profile-form .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.kp-profile-form .row.g-3 {
  row-gap: 0.85rem;
  column-gap: 0;
}

.kp-profile-form .row.g-3 > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .kp-profile-form .row.g-3 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    column-gap: 0;
  }
  .kp-profile-form .row.g-3 > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .kp-profile-form .row.g-3 > .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.kp-profile-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kp-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kp-profile-form .kp-input,
.kp-profile-form .form-control {
  border-radius: 0.75rem;
  border-color: var(--kp-border);
  background: var(--kp-surface);
  color: var(--kp-ink);
  min-height: 2.6rem;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}

.kp-profile-form textarea.kp-input,
.kp-profile-form textarea.form-control {
  min-height: 7rem;
}

.kp-profile-form .kp-input:focus,
.kp-profile-form .form-control:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
  background: var(--kp-card);
}

.kp-profile-form-narrow {
  max-width: min(26rem, 100%);
  width: 100%;
}

.kp-profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--kp-border);
  max-width: 100%;
}

.kp-profile-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
}

.kp-profile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid var(--kp-border);
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  font-weight: 600;
  color: var(--kp-ink);
  min-width: 0;
  max-width: 100%;
}

.kp-profile-toggle > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

[data-pc-theme="dark"] .kp-profile-toggle {
  background: rgba(248, 250, 252, 0.03);
}

.kp-profile-toggle .form-check-input {
  width: 2.4rem;
  height: 1.25rem;
  margin: 0;
  cursor: pointer;
  float: none;
  flex-shrink: 0;
}

.kp-profile-info-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--kp-border);
  background: var(--kp-accent-soft);
  margin-bottom: 0.25rem;
  max-width: 100%;
  min-width: 0;
}

.kp-profile-info-box > i {
  font-size: 1.4rem;
  color: var(--kp-accent);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.kp-profile-info-box strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--kp-ink);
}

.kp-profile-info-box p {
  color: var(--kp-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.kp-profile-session {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  width: 100%;
  max-width: 100%;
}

.kp-profile-session-item {
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--kp-border);
  background: rgba(15, 23, 42, 0.02);
  min-width: 0;
  max-width: 100%;
}

[data-pc-theme="dark"] .kp-profile-session-item {
  background: rgba(248, 250, 252, 0.03);
}

.kp-profile-devices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
}

.kp-profile-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--kp-border);
  background: rgba(15, 23, 42, 0.02);
  min-width: 0;
  max-width: 100%;
}

[data-pc-theme="dark"] .kp-profile-device {
  background: rgba(248, 250, 252, 0.03);
}

.kp-profile-device-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.25rem;
  color: var(--kp-ink);
}

.kp-profile-device-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.2rem;
  font-size: 0.82rem;
  color: var(--kp-muted);
  overflow-wrap: anywhere;
}

.kp-profile-device-action {
  flex-shrink: 0;
}

.kp-profile-danger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(220, 53, 69, 0.25);
  background: rgba(220, 53, 69, 0.06);
  max-width: 100%;
}

.kp-profile-danger strong {
  display: block;
  color: var(--kp-ink);
  margin-bottom: 0.15rem;
}

.kp-profile-danger p {
  color: var(--kp-muted);
  font-size: 0.88rem;
}

/* ---- Große Desktops / Festbildschirme ---- */
@media (min-width: 1400px) {
  .kp-profile {
    max-width: 78rem;
  }
  .kp-profile-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.35rem;
  }
  .kp-profile-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kp-profile-toggles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Laptops ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .kp-profile-layout {
    grid-template-columns: 12.25rem minmax(0, 1fr);
    gap: 1rem;
  }
  .kp-profile-nav-link {
    font-size: 0.84rem;
    padding: 0.58rem 0.65rem !important;
    gap: 0.5rem;
  }
  .kp-profile-panel {
    padding: 1.1rem 1.15rem 1.25rem;
  }
}

/* ---- Tablets & Handys: Tabs scrollen INNERHALB der Seite ---- */
@media (max-width: 991.98px) {
  .kp-profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }
  .kp-profile-nav {
    position: sticky;
    top: calc(var(--kp-header-h, 3.35rem) + 0.25rem);
    padding: 0.35rem;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .kp-profile-nav .nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.3rem;
    padding: 0.1rem 0.15rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .kp-profile-nav .nav::-webkit-scrollbar {
    display: none;
  }
  .kp-profile-nav-link {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none;
    white-space: nowrap;
    padding: 0.5rem 0.75rem !important;
  }
  .kp-profile-hero {
    padding: 1rem;
    gap: 0.85rem;
  }
  .kp-profile-hero-actions {
    margin-left: 0;
    width: 100%;
  }
  .kp-profile-hero-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
  .kp-profile-stats {
    flex: 1 1 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .kp-profile-stat {
    flex: none;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0.5rem 0.35rem;
  }
}

/* ---- Kleine Tablets / große Phones ---- */
@media (max-width: 767.98px) {
  .kp-profile-hero {
    padding: 0.9rem;
    margin-bottom: 0.85rem;
  }
  .kp-profile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.9rem;
  }
  .kp-profile-facts,
  .kp-profile-toggles {
    grid-template-columns: minmax(0, 1fr);
  }
  .kp-profile-session {
    grid-template-columns: minmax(0, 1fr);
  }
  .kp-profile-panel {
    padding: 0.95rem 0.95rem 1.05rem;
    border-radius: 0.9rem;
  }
  .kp-profile-form-actions {
    justify-content: stretch;
  }
  .kp-profile-form-actions .btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }
  .kp-profile-device {
    flex-direction: column;
    align-items: stretch;
  }
  .kp-profile-device-action,
  .kp-profile-device-action form,
  .kp-profile-device-action .btn {
    width: 100%;
  }
  .kp-profile-device-action .btn {
    justify-content: center;
  }
  .kp-profile-danger {
    flex-direction: column;
    align-items: stretch;
  }
  .kp-profile-danger .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Handys ---- */
@media (max-width: 575.98px) {
  .pc-container .pc-content:has(.kp-profile) {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .kp-profile {
    padding-bottom: 5rem;
  }
  .kp-profile-hero-main {
    flex: 1 1 100%;
    width: 100%;
  }
  .kp-profile-name {
    font-size: 1.15rem;
  }
  .kp-profile-meta {
    font-size: 0.84rem;
  }
  .kp-profile-stat-val {
    font-size: 1.05rem;
  }
  .kp-profile-stat-lbl {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }
  .kp-profile-nav-link {
    padding: 0.48rem 0.65rem !important;
    font-size: 0.82rem;
    gap: 0.4rem;
  }
  .kp-profile-nav-link i {
    font-size: 1.05rem;
  }
  .kp-profile-fact {
    padding: 0.7rem 0.75rem;
    gap: 0.6rem;
  }
  .kp-profile-fact-icon {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.95rem;
  }
  .kp-profile-form-narrow {
    max-width: 100%;
  }
  .kp-profile-info-box {
    padding: 0.85rem 0.9rem;
  }
}

/* ---- Sehr kleine Displays ---- */
@media (max-width: 379.98px) {
  .kp-profile-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .kp-profile-nav-link span {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .kp-profile-avatar {
    width: 3.1rem;
    height: 3.1rem;
  }
}

body[data-pc-theme="light"] .kp-profile-hero,
body[data-pc-theme="light"] .kp-profile-nav,
body[data-pc-theme="light"] .kp-profile-panel {
  background: #fff;
}

/* ---- Header Dropdowns (Theme / Glocke / Profil) ---- */
.pc-header .kp-dd.dropdown-menu,
.pc-header .dropdown-menu.kp-dd {
  padding: 0 !important;
  margin-top: 0.45rem !important;
  min-width: 16.5rem;
  max-width: min(22rem, calc(100vw - 1.25rem));
  border: 1px solid var(--kp-border) !important;
  border-radius: 0.95rem !important;
  background: var(--kp-card) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden;
  color: var(--kp-ink);
}

.pc-header .kp-dd-notif {
  min-width: min(22.5rem, calc(100vw - 1.25rem));
  max-width: min(24rem, calc(100vw - 1.25rem));
}

.pc-header .kp-dd-user {
  min-width: 17rem;
}

.pc-header .kp-dd-head {
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid var(--kp-border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 60%),
    var(--kp-card);
}

.pc-header .kp-dd-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pc-header .kp-dd-title {
  display: block;
  font-family: var(--kp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kp-ink);
  line-height: 1.25;
}

.pc-header .kp-dd-sub {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
  color: var(--kp-muted);
}

.pc-header .kp-dd-body {
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pc-header .kp-dd-foot {
  padding: 0.65rem 0.75rem 0.75rem;
  border-top: 1px solid var(--kp-border);
  background: rgba(15, 23, 42, 0.02);
}

[data-pc-theme="dark"] .pc-header .kp-dd-foot {
  background: rgba(248, 250, 252, 0.03);
}

.pc-header .kp-dd-scroll {
  max-height: min(22rem, calc(100vh - 14rem));
  overflow-y: auto;
}

.pc-header .kp-dd-choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--kp-ink);
  transition: background 0.15s ease;
}

.pc-header .kp-dd-choice:hover,
.pc-header .kp-dd-choice:focus {
  background: var(--kp-accent-soft);
  outline: none;
}

.pc-header .kp-dd-choice-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1.1rem;
}

.pc-header .kp-dd-choice-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.pc-header .kp-dd-choice-text strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.pc-header .kp-dd-choice-text small {
  font-size: 0.74rem;
  color: var(--kp-muted);
  line-height: 1.25;
}

.pc-header .kp-dd-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--kp-border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 55%),
    var(--kp-card);
}

.pc-header .kp-dd-user-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 2px solid rgba(15, 118, 110, 0.28);
  flex-shrink: 0;
  background: var(--kp-surface);
}

.pc-header .kp-dd-user-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--kp-ink);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-header .kp-dd-user-mail {
  display: block;
  font-size: 0.75rem;
  color: var(--kp-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-header .kp-dd-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--kp-ink) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.pc-header .kp-dd-link i {
  font-size: 1.15rem;
  color: var(--kp-accent);
  opacity: 0.95;
}

.pc-header .kp-dd-link:hover,
.pc-header .kp-dd-link:focus {
  background: var(--kp-accent-soft);
  color: var(--kp-accent) !important;
}

.pc-header .kp-dd-link-danger {
  color: #dc3545 !important;
}

.pc-header .kp-dd-link-danger i {
  color: #dc3545;
}

.pc-header .kp-dd-link-danger:hover,
.pc-header .kp-dd-link-danger:focus {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545 !important;
}

/* Notification items im KP-Look */
.pc-header .kp-dd-notif .dropdown-header,
.pc-header .kp-dd-notif .dropdown-footer,
.pc-header .dropdown-user-profile .dropdown-header,
.pc-header .dropdown-user-profile .dropdown-body,
.pc-header .dropdown-user-profile .list-group-item {
  border-color: var(--kp-border) !important;
  background: transparent;
}

.pc-header #notification-list .notif-chat-item {
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--kp-border);
  border-radius: 0;
}

.pc-header #notification-list .notif-chat-item:hover,
.pc-header #notification-list .notif-chat-item:focus {
  background: var(--kp-accent-soft);
}

.pc-header #notification-list .notif-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1rem;
}

.pc-header #notification-list .notif-name {
  font-size: 0.88rem;
  color: var(--kp-ink);
}

.pc-header #notification-list .notif-preview {
  font-size: 0.78rem;
  color: var(--kp-muted);
}

.pc-header #notification-list .notif-empty {
  padding: 1.35rem 1rem;
  gap: 0.75rem;
}

.pc-header #notification-list .notif-empty-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
}

.pc-header #notification-list .notif-empty-title {
  color: var(--kp-ink);
  font-size: 0.9rem;
}

.pc-header #notification-list .notif-empty-desc {
  color: var(--kp-muted);
  font-size: 0.8rem;
}

.pc-header .pc-h-item #notification-bell .pc-h-badge {
  top: 0.15rem;
  right: 0.1rem;
  font-size: 0.62rem;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--kp-card);
  padding: 0 0.28rem;
}

@media (max-width: 767.98px) {
  .pc-header .header-wrapper {
    position: relative;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Dropdowns am Header ausrichten, nicht am Icon – bleibt im Viewport */
  .pc-header .ms-auto .dropdown.pc-h-item {
    position: static;
  }

  .pc-header .kp-dd.dropdown-menu,
  .pc-header .dropdown-menu.kp-dd,
  .pc-header .pc-h-dropdown.dropdown-menu,
  .pc-header .dropdown-notification,
  .pc-header .dropdown-user-profile {
    position: absolute !important;
    top: calc(100% + 0.4rem) !important;
    right: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1080 !important;
  }

  .pc-header .kp-dd-notif,
  .pc-header .kp-dd-user,
  .pc-header .kp-dd-theme {
    min-width: 0 !important;
    max-width: none !important;
  }

  .pc-header .kp-dd-scroll,
  .pc-header .header-notification-scroll,
  .pc-header .dropdown-notification .dropdown-body {
    max-height: min(52dvh, calc(100dvh - 11rem)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .pc-header .pc-head-link {
    width: 40px;
    height: 40px;
    margin: 0 2px;
  }

  .pc-header .header-user-profile .user-avtar {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 575.98px) {
  .pc-header .kp-dd.dropdown-menu,
  .pc-header .dropdown-menu.kp-dd,
  .pc-header .pc-h-dropdown.dropdown-menu {
    left: 8px !important;
    right: 8px !important;
    top: calc(100% + 0.35rem) !important;
    border-radius: 0.85rem !important;
  }

  .pc-header .kp-dd-scroll,
  .pc-header .header-notification-scroll,
  .pc-header .dropdown-notification .dropdown-body {
    max-height: min(48dvh, calc(100dvh - 12rem)) !important;
  }

  /* Gear-Offcanvas-Trigger etwas weniger Platz auf sehr kleinen Displays */
  .pc-header .pct-c-btn {
    display: none;
  }
}

body[data-pc-theme="light"] .pc-header .kp-dd.dropdown-menu {
  background: #fff !important;
}

/* ---- Benachrichtigungs-Seite ---- */
.kp-notif {
  width: 100%;
  max-width: none;
  margin: 0;
}

.kp-notif-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 55%),
    var(--kp-card);
  box-shadow: var(--kp-shadow);
}

.kp-notif-hero-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1.15rem;
}

.kp-notif-hero-copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.kp-notif-title {
  font-family: var(--kp-font-display);
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  color: var(--kp-ink);
  line-height: 1.25;
}

.kp-notif-lead {
  margin: 0;
  color: var(--kp-muted);
  font-size: clamp(0.8rem, 0.4vw + 0.72rem, 0.9rem);
  line-height: 1.4;
}

.kp-notif-count {
  text-align: right;
  padding: 0.3rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--kp-border);
}

[data-pc-theme="dark"] .kp-notif-count {
  background: rgba(248, 250, 252, 0.05);
}

.kp-notif-count-num {
  display: block;
  font-family: var(--kp-font-display);
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--kp-accent);
}

.kp-notif-count-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kp-muted);
  font-weight: 600;
}

.kp-notif-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.kp-notif-panel {
  border-radius: var(--kp-radius);
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  box-shadow: var(--kp-shadow);
  overflow: hidden;
}

.kp-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--kp-border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), transparent 60%),
    transparent;
}

.kp-notif-panel-head h2 {
  font-family: var(--kp-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
  color: var(--kp-ink);
}

.kp-notif-panel-head p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--kp-muted);
}

.kp-notif-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.kp-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kp-notif-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  text-decoration: none !important;
  color: inherit;
  border-bottom: 1px solid var(--kp-border);
  transition: background 0.15s ease;
  min-width: 0;
}

.kp-notif-list li:last-child .kp-notif-item {
  border-bottom: 0;
}

.kp-notif-item:hover,
.kp-notif-item:focus {
  background: var(--kp-accent-soft);
  color: inherit;
}

.kp-notif-item-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1.1rem;
}

.kp-notif-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kp-notif-item-title {
  font-size: clamp(0.88rem, 0.3vw + 0.78rem, 0.98rem);
  font-weight: 600;
  color: var(--kp-ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kp-notif-item-meta {
  font-size: 0.78rem;
  color: var(--kp-muted);
  line-height: 1.35;
}

.kp-notif-dot {
  margin: 0 0.3rem;
  opacity: 0.55;
}

.kp-notif-item-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.kp-notif-item-caret {
  flex-shrink: 0;
  color: var(--kp-muted);
  opacity: 0.55;
  font-size: 1rem;
}

.kp-notif-empty {
  text-align: center;
  padding: 2.75rem 1.25rem;
}

.kp-notif-empty > i {
  display: block;
  font-size: 2rem;
  color: var(--kp-accent);
  opacity: 0.75;
  margin-bottom: 0.65rem;
}

.kp-notif-empty h3 {
  font-family: var(--kp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--kp-ink);
}

.kp-notif-empty p {
  margin: 0 auto 1.15rem;
  max-width: 26rem;
  color: var(--kp-muted);
  font-size: 0.9rem;
}

.kp-notif-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pc-content:has(.kp-notif) .page-header h2,
.pc-content:has(.kp-notif) .page-header .h2 {
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.3rem) !important;
}

@media (max-width: 575.98px) {
  .kp-notif-hero-actions {
    margin-left: 0;
    width: 100%;
  }
  .kp-notif-count {
    margin-left: auto;
  }
  .kp-notif-item-pill {
    display: none;
  }
}

body[data-pc-theme="light"] .kp-notif-hero,
body[data-pc-theme="light"] .kp-notif-panel {
  background: #fff;
}

/* ── Hosting Service Detail ── */
.kp-hs-hero {
  background: var(--kp-card);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--kp-shadow);
}

.kp-hs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  margin-bottom: 0.65rem;
}

.kp-hs-back:hover {
  color: var(--kp-ink);
}

.kp-hs-title {
  font-size: clamp(1.45rem, 1.2vw + 1rem, 1.9rem);
  font-weight: 700;
  color: var(--kp-ink);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.kp-hs-sub {
  color: var(--kp-muted);
  font-size: 0.95rem;
}

.kp-hs-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
}

.kp-hs-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.kp-hs-step-dot {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--kp-border);
  color: var(--kp-muted);
}

.kp-hs-step.is-done .kp-hs-step-dot {
  background: var(--kp-accent);
  color: #fff;
}

.kp-hs-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kp-muted);
}

.kp-hs-step.is-done .kp-hs-step-label {
  color: var(--kp-ink);
}

.kp-hs-step-line {
  width: 1.5rem;
  height: 2px;
  background: var(--kp-border);
  margin: 0 0.15rem;
}

.kp-hs-step-line.is-done {
  background: var(--kp-accent);
}

.kp-hs-stat {
  background: var(--kp-card);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius);
  padding: 1rem 1.1rem;
  height: 100%;
  box-shadow: var(--kp-shadow);
  color: var(--kp-ink);
}

.kp-hs-stat-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--kp-accent);
}

.kp-hs-stat-icon.text-primary {
  color: var(--kp-accent) !important;
}

.kp-hs-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kp-muted);
}

.kp-hs-stat-value {
  font-family: var(--kp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kp-ink);
  margin-top: 0.1rem;
  letter-spacing: -0.02em;
}

.kp-hs-card .card-header h5,
.kp-hs-card .card-header h6 {
  color: var(--kp-ink);
  font-size: 1rem;
}

.kp-hs-activity-card .card-header h5 {
  font-size: 0.98rem;
  font-weight: 650;
}

.kp-hs-activity-card .card-header .text-muted {
  font-size: 0.78rem;
  color: var(--kp-muted) !important;
}

.kp-hs-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.25);
  overflow: hidden;
}

.kp-hs-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kp-accent), var(--kp-accent-hover));
  min-width: 0;
}

.kp-hs-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--kp-border);
  border-radius: 0;
  color: var(--kp-ink);
}

.kp-hs-connect-addr {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--kp-ink) !important;
  background: transparent !important;
  padding: 0 !important;
}

.kp-hs-btn-copy {
  background: transparent !important;
  color: var(--kp-ink) !important;
  border: 1px solid var(--kp-border) !important;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem !important;
}

.kp-hs-btn-copy:hover {
  background: var(--kp-accent-soft) !important;
  border-color: rgba(15, 118, 110, 0.35) !important;
  color: var(--kp-accent) !important;
}

.kp-hs-btn-start {
  background: #15803d !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
}

.kp-hs-btn-start:hover {
  background: #166534 !important;
  color: #fff !important;
}

.kp-hs-btn-stop {
  background: #334155 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
}

.kp-hs-btn-stop:hover {
  background: #1e293b !important;
  color: #fff !important;
}

/* Neustart: hoher Kontrast (kein helles Gelb auf hell) */
.kp-hs-btn-restart {
  background: #c2410c !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  text-shadow: none;
}

.kp-hs-btn-restart:hover,
.kp-hs-btn-restart:focus {
  background: #9a3412 !important;
  color: #fff !important;
}

.kp-hs-pay-card {
  background: var(--kp-card);
  border: 1px solid rgba(15, 118, 110, 0.28) !important;
}

.kp-hs-pay-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--kp-accent);
  color: #fff;
  font-size: 1.15rem;
}

.kp-upgrade-dialog {
  max-width: 34rem;
}
.kp-upgrade-modal {
  border: 1px solid var(--kp-border) !important;
  border-radius: 1.15rem !important;
  background: var(--kp-card) !important;
  color: var(--kp-ink);
  box-shadow: var(--kp-shadow);
  overflow: hidden;
}
.kp-upgrade-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.25rem 1rem;
  background:
    radial-gradient(520px 180px at 0% 0%, var(--kp-accent-soft), transparent 70%),
    var(--kp-card);
  border-bottom: 1px solid var(--kp-border);
}
.kp-upgrade-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--kp-accent);
  color: #fff;
  font-size: 1.25rem;
}
.kp-upgrade-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--kp-accent);
  margin-bottom: 0.15rem;
}
.kp-upgrade-title {
  font-family: var(--kp-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  color: var(--kp-ink);
}
.kp-upgrade-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--kp-muted);
}
.kp-upgrade-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  line-height: 0;
}
[data-pc-theme="dark"] .kp-upgrade-close {
  background: rgba(248, 250, 252, 0.1);
  border-color: rgba(248, 250, 252, 0.28);
  color: #f8fafc;
}
.kp-upgrade-close svg {
  display: block;
  flex-shrink: 0;
}
.kp-upgrade-close:hover {
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  border-color: var(--kp-accent);
}
[data-pc-theme="dark"] .kp-upgrade-close:hover {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.55);
}
.kp-upgrade-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 1rem 1.25rem 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--kp-border);
  background: var(--kp-surface);
}
.kp-upgrade-current-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kp-muted);
  width: 100%;
}
.kp-upgrade-current strong {
  font-size: 0.95rem;
}
.kp-upgrade-specs,
.kp-upgrade-plan-meta {
  font-size: 0.8rem;
  color: var(--kp-muted);
}
.kp-upgrade-current-price {
  margin-left: auto;
  font-weight: 700;
  font-family: var(--kp-font-display);
}
.kp-upgrade-current-price small,
.kp-upgrade-plan-month small {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--kp-muted);
  margin-left: 0.15rem;
}
.kp-upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem 1.25rem;
}
.kp-upgrade-plan {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--kp-border);
  background: var(--kp-card);
  color: var(--kp-ink);
  box-shadow: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.kp-upgrade-plan:hover,
.kp-upgrade-plan:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.4);
  background: var(--kp-accent-soft);
  color: var(--kp-ink);
}
.kp-upgrade-plan:disabled {
  opacity: 0.65;
  transform: none;
}
.kp-upgrade-plan.is-busy {
  border-color: var(--kp-accent);
  background: var(--kp-accent-soft);
}
.kp-upgrade-plan-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1.2rem;
}
.kp-upgrade-plan-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.kp-upgrade-plan-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.kp-upgrade-plan-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}
.kp-upgrade-plan-month {
  font-family: var(--kp-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--kp-accent);
}
.kp-upgrade-plan-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--kp-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .kp-upgrade-plan {
    flex-wrap: wrap;
  }
  .kp-upgrade-plan-aside {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 3.25rem;
  }
}

.kp-hs-dl {
  display: grid;
  gap: 0.65rem;
}

.kp-hs-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.kp-hs-dl dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.kp-hs-dl dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--kp-ink);
  font-size: 0.9rem;
}

.kp-badge-pending,
.kp-badge-warn {
  background: rgba(217, 119, 6, 0.16) !important;
  color: #b45309 !important;
  font-weight: 700;
}

.kp-badge-amber {
  background: #c2410c !important;
  color: #fff !important;
  font-weight: 700;
}

.kp-badge-accent {
  background: var(--kp-accent-soft) !important;
  color: var(--kp-accent) !important;
  font-weight: 700;
}

.kp-badge-ok {
  background: rgba(15, 118, 110, 0.14) !important;
  color: #0f766e !important;
  font-weight: 700;
}

.kp-badge-info {
  background: rgba(14, 165, 233, 0.14) !important;
  color: #0369a1 !important;
  font-weight: 700;
}

.kp-badge-danger {
  background: rgba(220, 38, 38, 0.14) !important;
  color: #b91c1c !important;
  font-weight: 700;
}

.kp-badge-muted {
  background: rgba(100, 116, 139, 0.16) !important;
  color: #475569 !important;
  font-weight: 700;
}

/* Globale Kontrast-Fixes für Warning-Buttons im Portal */
.btn-warning {
  background-color: #c2410c !important;
  border-color: #c2410c !important;
  color: #fff !important;
  font-weight: 700;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #9a3412 !important;
  border-color: #9a3412 !important;
  color: #fff !important;
}

.bg-warning.text-dark,
.badge.bg-warning {
  background-color: #c2410c !important;
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .kp-hs-hero {
    padding: 1.15rem;
  }
  .kp-hs-step-line {
    display: none;
  }
  .kp-hs-connect {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Hosting Verlauf / Activity Feed */
.kp-hs-activity-card .card-header {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.kp-hs-activity-count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.kp-hs-activity-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--kp-muted);
  font-size: 0.9rem;
}

.kp-hs-activity-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--kp-accent-soft);
  color: var(--kp-accent);
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.kp-hs-activity {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.85rem 1rem;
}

.kp-hs-activity-item {
  display: grid;
  grid-template-columns: 2.15rem 1fr;
  gap: 0.7rem;
  position: relative;
  padding: 0.65rem 0.55rem;
  border-radius: 0.75rem;
  transition: background 0.15s ease;
}

.kp-hs-activity-item:hover {
  background: rgba(15, 23, 42, 0.03);
}

.kp-hs-activity-item.is-latest {
  background: var(--kp-accent-soft);
}

.kp-hs-activity-item:not(:last-child) .kp-hs-activity-rail::after {
  content: "";
  position: absolute;
  left: 0.98rem;
  top: 2.25rem;
  bottom: -0.65rem;
  width: 2px;
  background: var(--kp-border);
}

.kp-hs-activity-rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 0.1rem;
}

.kp-hs-activity-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 1;
  border: 1px solid transparent;
}

.kp-hs-activity-dot.tone-success {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.22);
}

.kp-hs-activity-dot.tone-info {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}

.kp-hs-activity-dot.tone-amber {
  background: rgba(194, 65, 12, 0.14);
  color: #c2410c;
  border-color: rgba(194, 65, 12, 0.22);
}

.kp-hs-activity-dot.tone-neutral {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.22);
}

.kp-hs-activity-body {
  min-width: 0;
}

.kp-hs-activity-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.2rem;
}

.kp-hs-activity-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kp-hs-activity-tag.tone-success {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.kp-hs-activity-tag.tone-info {
  background: rgba(37, 99, 235, 0.12);
  color: #1e40af;
}

.kp-hs-activity-tag.tone-amber {
  background: rgba(194, 65, 12, 0.14);
  color: #9a3412;
}

.kp-hs-activity-tag.tone-neutral {
  background: rgba(100, 116, 139, 0.14);
  color: #334155;
}

.kp-hs-activity-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--kp-muted);
  white-space: nowrap;
}

.kp-hs-activity-title {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--kp-ink);
  line-height: 1.35;
  word-break: break-word;
}

.kp-hs-activity-meta {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--kp-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Dark Mode: Hosting Service */
body[data-pc-theme="dark"] .kp-hs-hero {
  background: var(--kp-card);
  border-color: var(--kp-border);
}

body[data-pc-theme="dark"] .kp-hs-stat {
  background: var(--kp-card) !important;
  border: 1px solid var(--kp-border) !important;
  box-shadow: var(--kp-shadow);
  color: var(--kp-ink);
}

body[data-pc-theme="dark"] .kp-hs-stat-label {
  color: var(--kp-muted) !important;
}

body[data-pc-theme="dark"] .kp-hs-stat-value {
  color: var(--kp-ink) !important;
}

body[data-pc-theme="dark"] .kp-hs-stat-icon,
body[data-pc-theme="dark"] .kp-hs-stat-icon.text-primary {
  color: #5eead4 !important;
}

body[data-pc-theme="dark"] .kp-hs-connect {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--kp-border) !important;
  color: var(--kp-ink);
}

body[data-pc-theme="dark"] .kp-hs-connect .text-muted,
body[data-pc-theme="dark"] .kp-hs-connect .small {
  color: var(--kp-muted) !important;
}

body[data-pc-theme="dark"] .kp-hs-connect-addr {
  color: var(--kp-ink) !important;
  font-size: 0.8125rem !important;
}

body[data-pc-theme="dark"] .kp-hs-btn-copy {
  background: transparent !important;
  color: var(--kp-ink) !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="dark"] .kp-hs-btn-copy:hover {
  background: var(--kp-accent-soft) !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
  color: #5eead4 !important;
}

body[data-pc-theme="dark"] .kp-hs-card {
  background: var(--kp-card) !important;
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="dark"] .kp-hs-card .card-header {
  border-color: var(--kp-border) !important;
}

body[data-pc-theme="dark"] .kp-hs-card .card-body,
body[data-pc-theme="dark"] .kp-hs-card .card-body .fw-semibold,
body[data-pc-theme="dark"] .kp-hs-card .card-body div:not(.text-muted):not(.small) {
  color: var(--kp-ink);
}

body[data-pc-theme="dark"] .kp-hs-card .text-muted,
body[data-pc-theme="dark"] .kp-hs-card .small.text-muted {
  color: var(--kp-muted) !important;
}

body[data-pc-theme="dark"] .kp-hs-bar {
  background: rgba(148, 163, 184, 0.22);
}

body[data-pc-theme="dark"] .kp-hs-dl dt {
  color: var(--kp-muted);
}

body[data-pc-theme="dark"] .kp-hs-dl dd {
  color: var(--kp-ink) !important;
}

body[data-pc-theme="dark"] .kp-hs-title,
body[data-pc-theme="dark"] .kp-hs-activity-title,
body[data-pc-theme="dark"] .kp-hs-card .card-header h5,
body[data-pc-theme="dark"] .kp-hs-card .card-header h6,
body[data-pc-theme="dark"] .kp-hs-activity-card .card-header h5 {
  color: #f1f5f9 !important;
}

body[data-pc-theme="dark"] .kp-hs-activity-card .card-header .text-muted,
body[data-pc-theme="dark"] .kp-hs-activity-meta,
body[data-pc-theme="dark"] .kp-hs-activity-time {
  color: #94a3b8 !important;
}

body[data-pc-theme="dark"] .kp-hs-step.is-done .kp-hs-step-dot {
  background: var(--kp-accent);
  color: #fff;
}

body[data-pc-theme="dark"] .kp-hs-step-line.is-done {
  background: var(--kp-accent);
}

body[data-pc-theme="dark"] .kp-hs-pay-card {
  background: var(--kp-card) !important;
  border-color: rgba(45, 212, 191, 0.28) !important;
  color: var(--kp-ink);
}

body[data-pc-theme="dark"] .kp-hs-pay-card .text-muted,
body[data-pc-theme="dark"] .kp-hs-pay-card .small {
  color: #94a3b8 !important;
}

body[data-pc-theme="dark"] .kp-hs-pay-card .fw-bold,
body[data-pc-theme="dark"] .kp-hs-pay-card h5,
body[data-pc-theme="dark"] .kp-hs-pay-card .fs-5 {
  color: #f1f5f9 !important;
}

body[data-pc-theme="dark"] .kp-hs-pay-icon {
  background: var(--kp-accent);
  color: #fff;
}

body[data-pc-theme="dark"] .kp-badge-accent {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #5eead4 !important;
}

body[data-pc-theme="dark"] .kp-badge-ok {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #5eead4 !important;
}

body[data-pc-theme="dark"] .kp-badge-warn,
body[data-pc-theme="dark"] .kp-badge-pending {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
}

body[data-pc-theme="dark"] .kp-badge-info {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #7dd3fc !important;
}

body[data-pc-theme="dark"] .kp-badge-danger {
  background: rgba(248, 113, 113, 0.16) !important;
  color: #fca5a5 !important;
}

body[data-pc-theme="dark"] .kp-badge-muted {
  background: rgba(148, 163, 184, 0.16) !important;
  color: #cbd5e1 !important;
}

/* Dark: Bootstrap-Badges an Portal-Teal anbinden */
body[data-pc-theme="dark"] .badge.bg-primary {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #5eead4 !important;
}

body[data-pc-theme="dark"] .badge.bg-success {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #5eead4 !important;
}

body[data-pc-theme="dark"] .badge.bg-info {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #7dd3fc !important;
}

body[data-pc-theme="dark"] .kp-hs-back {
  color: #94a3b8;
}

body[data-pc-theme="dark"] .kp-hs-back:hover {
  color: #f1f5f9;
}

body[data-pc-theme="dark"] .kp-hs-step-label {
  color: #94a3b8;
}

body[data-pc-theme="dark"] .kp-hs-step.is-done .kp-hs-step-label {
  color: #f1f5f9;
}

body[data-pc-theme="dark"] .kp-hs-step-dot {
  background: #334155;
  color: #94a3b8;
}

body[data-pc-theme="dark"] .kp-hs-step-line {
  background: #334155;
}

body[data-pc-theme="dark"] .kp-hs-connect-empty {
  background: transparent !important;
  border-color: var(--kp-border) !important;
  color: var(--kp-muted) !important;
}

.kp-hs-connect-empty {
  background: transparent;
  border-color: var(--kp-border);
  color: var(--kp-muted);
}

body[data-pc-theme="dark"] .kp-hs-activity-item:hover {
  background: rgba(248, 250, 252, 0.04);
}

body[data-pc-theme="dark"] .kp-hs-activity-item.is-latest {
  background: var(--kp-accent-soft);
}

body[data-pc-theme="dark"] .kp-hs-activity-dot.tone-success {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.25);
}

body[data-pc-theme="dark"] .kp-hs-activity-dot.tone-info {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.25);
}

body[data-pc-theme="dark"] .kp-hs-activity-dot.tone-amber {
  background: rgba(251, 146, 60, 0.16);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.28);
}

body[data-pc-theme="dark"] .kp-hs-activity-dot.tone-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.25);
}

body[data-pc-theme="dark"] .kp-hs-activity-tag.tone-success {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}

body[data-pc-theme="dark"] .kp-hs-activity-tag.tone-info {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

body[data-pc-theme="dark"] .kp-hs-activity-tag.tone-amber {
  background: rgba(251, 146, 60, 0.16);
  color: #fdba74;
}

body[data-pc-theme="dark"] .kp-hs-activity-tag.tone-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

body[data-pc-theme="dark"] .btn-warning,
body[data-pc-theme="dark"] .kp-hs-btn-restart {
  background-color: #ea580c !important;
  border-color: #ea580c !important;
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .kp-hs-activity-item {
    grid-template-columns: 2.1rem 1fr;
    gap: 0.65rem;
    padding: 0.75rem 0.35rem;
  }
  .kp-hs-activity-dot {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }
  .kp-hs-activity-item:not(:last-child) .kp-hs-activity-rail::after {
    left: 0.95rem;
  }
}

/* Globale Suche */
.pc-header-search {
  position: relative;
  max-width: 420px;
  min-width: 0;
}
.pc-header-search input {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.kp-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1080;
  background: var(--bs-body-bg, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  max-height: 70vh;
  overflow: auto;
  padding: 0.4rem 0;
}
.kp-search-group {
  font-size: 0.7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.45rem 0.9rem 0.2rem;
}
.kp-search-hit {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.9rem;
  color: inherit;
  text-decoration: none;
}
.kp-search-hit:hover { background: rgba(13, 148, 136, 0.08); }
.kp-search-hit span { font-size: 0.75rem; color: #64748b; }
.kp-search-empty { padding: 0.75rem 1rem; color: #64748b; font-size: 0.85rem; }
.kp-status-banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  width: 100%;
  flex: 0 0 auto;
  line-height: 1.35;
}
.kp-status-banner a { color: inherit; text-decoration: none; }
[data-pc-theme="dark"] .kp-status-banner {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}
.pc-header:has(.kp-status-banner) ~ .pc-container,
body:has(.kp-status-banner) .pc-container {
  top: calc(var(--kp-header-h, 3.35rem) + 2.1rem) !important;
}

body.kp-status-public {
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(37, 99, 235, 0.07), transparent 48%),
    var(--kp-surface);
}
body.kp-status-public .pc-container,
body.kp-status-public .pc-content {
  margin-left: 0 !important;
  padding-left: 0;
  padding-right: 0;
}
.kp-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
}
.kp-status-brand {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
  font-size: 1.05rem;
}
.kp-status-brand span { display: block; font-size: .72rem; font-weight: 500; color: var(--kp-muted); letter-spacing: 0; }
.kp-status-wrap { max-width: 920px; margin: 0 auto; padding: 0 1.25rem 3.5rem; }
.kp-status-hero {
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.45rem;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  border: 1px solid var(--kp-border);
  box-shadow: var(--kp-shadow);
}
.kp-status-hero.is-ok {
  background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(15, 118, 110, .08) 45%, var(--kp-card));
}
.kp-status-hero.is-warn {
  background: linear-gradient(135deg, rgba(245, 158, 11, .2), rgba(251, 191, 36, .08) 50%, var(--kp-card));
}
.kp-status-hero.is-bad {
  background: linear-gradient(135deg, rgba(239, 68, 68, .18), rgba(248, 113, 113, .07) 50%, var(--kp-card));
}
.kp-status-hero.is-maint {
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(14, 165, 233, .08) 50%, var(--kp-card));
}
.kp-status-hero-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; flex-shrink: 0;
}
.kp-status-hero.is-ok .kp-status-hero-icon { background: rgba(16, 185, 129, .2); color: #059669; }
.kp-status-hero.is-warn .kp-status-hero-icon { background: rgba(245, 158, 11, .22); color: #d97706; }
.kp-status-hero.is-bad .kp-status-hero-icon { background: rgba(239, 68, 68, .2); color: #dc2626; }
.kp-status-hero.is-maint .kp-status-hero-icon { background: rgba(59, 130, 246, .2); color: #2563eb; }
.kp-status-hero h1 { font-size: 1.45rem; margin: 0 0 .25rem; letter-spacing: -.03em; }
.kp-status-hero p { margin: 0; color: var(--kp-muted); font-size: .92rem; }
.kp-status-meta { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin-top: .7rem; font-size: .78rem; color: var(--kp-muted); }
.kp-status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.kp-status-dot.ok { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.kp-status-dot.warn { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.kp-status-dot.bad { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.18); }
.kp-status-dot.maint { background: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,.18); }
.kp-status-section { margin-bottom: 1.6rem; }
.kp-status-section h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kp-muted); margin: 0 0 .7rem; font-weight: 700; }
.kp-status-card {
  background: var(--kp-card);
  border: 1px solid var(--kp-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .04);
}
.kp-status-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: start;
  padding: .95rem 1.1rem;
  border-top: 1px solid var(--kp-border);
}
.kp-status-row:first-child { border-top: 0; }
.kp-status-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--kp-accent-soft); color: var(--kp-accent); font-size: 1.2rem;
}
.kp-status-row h3 { margin: 0; font-size: .98rem; font-weight: 650; }
.kp-status-row .desc { margin: .12rem 0 0; font-size: .8rem; color: var(--kp-muted); }
.kp-status-pill {
  font-size: .75rem; font-weight: 650; border-radius: 999px; padding: .28rem .7rem; white-space: nowrap;
}
.kp-status-pill.ok { background: rgba(16,185,129,.14); color: #047857; }
.kp-status-pill.warn { background: rgba(245,158,11,.16); color: #b45309; }
.kp-status-pill.bad { background: rgba(239,68,68,.14); color: #b91c1c; }
.kp-status-pill.maint { background: rgba(59,130,246,.14); color: #1d4ed8; }
.kp-status-bars { display: flex; gap: 2px; height: 28px; margin-top: .55rem; }
.kp-status-bars span {
  flex: 1; min-width: 0; border-radius: 2px; background: #d1fae5;
}
.kp-status-bars span.warn { background: #fbbf24; }
.kp-status-bars span.bad { background: #f87171; }
.kp-status-bars span.maint { background: #93c5fd; }
.kp-status-bars span.empty { background: rgba(148,163,184,.28); }
.kp-status-uptime { font-size: .72rem; color: var(--kp-muted); margin-top: .35rem; }
.kp-inc {
  padding: 1.05rem 1.15rem;
  border-top: 1px solid var(--kp-border);
}
.kp-inc:first-child { border-top: 0; }
.kp-inc-head { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; margin-bottom: .35rem; }
.kp-inc-head strong { font-size: .95rem; }
.kp-inc p { margin: 0; font-size: .86rem; color: var(--kp-muted); }
.kp-inc-time { font-size: .75rem; color: var(--kp-muted); }
.kp-inc-updates { margin: .7rem 0 0; padding: 0; list-style: none; }
.kp-inc-updates li {
  position: relative;
  padding: .35rem 0 .35rem 1rem;
  font-size: .82rem;
  border-left: 2px solid var(--kp-border);
  margin-left: .35rem;
  color: var(--kp-ink);
}
.kp-inc-updates li span { display: block; font-size: .72rem; color: var(--kp-muted); }
.kp-status-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.kp-status-help .kp-status-card { padding: 1.1rem 1.15rem; }
.kp-status-help h3 { font-size: .95rem; margin: 0 0 .35rem; }
.kp-status-help p { margin: 0; font-size: .84rem; color: var(--kp-muted); }
.kp-status-legend { display: flex; flex-wrap: wrap; gap: .65rem 1rem; font-size: .75rem; color: var(--kp-muted); margin-top: .65rem; }
.kp-status-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.kp-hb { display: flex; gap: 1px; height: 22px; }
.kp-hb i { flex: 1; min-width: 2px; border-radius: 1px; background: #10b981; }
.kp-hb i.down { background: #ef4444; }
.kp-hb i.pend { background: #f59e0b; }
.kp-hb i.maint { background: #3b82f6; }
.kp-kuma-meta { font-size: .75rem; color: var(--kp-muted); text-align: right; }
@media (max-width: 767.98px) {
  .kp-status-row { grid-template-columns: 40px 1fr; }
  .kp-status-row .kp-status-pill { grid-column: 2; justify-self: start; }
  .kp-status-help { grid-template-columns: 1fr; }
  .kp-status-hero { padding: 1.2rem 1.05rem; }
}

[data-pc-theme="dark"] .kp-status-pill.ok { color: #6ee7b7; }
[data-pc-theme="dark"] .kp-status-pill.warn { color: #fcd34d; }
[data-pc-theme="dark"] .kp-status-pill.bad { color: #fca5a5; }
[data-pc-theme="dark"] .kp-status-pill.maint { color: #93c5fd; }
[data-pc-theme="dark"] .kp-status-bars span { background: rgba(16,185,129,.35); }
[data-pc-theme="dark"] .kp-status-hero.is-ok .kp-status-hero-icon { color: #6ee7b7; }

@media (max-width: 767.98px) {
  .pc-header-search {
    max-width: none;
    flex: 1 1 auto;
  }
  .kp-ticket-composer,
  #reply-form.ticket-composer,
  .kp-ticket-composer,
  #reply-form {
    position: sticky;
    bottom: calc(var(--kp-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    background: var(--bs-body-bg, #fff);
    padding-bottom: 0.5rem;
  }
  #reply-form textarea,
  .kp-ticket-composer textarea {
    min-height: 72px;
  }
  #reply-form button[type="submit"],
  .kp-ticket-composer button[type="submit"] {
    min-height: 44px;
    width: 100%;
  }
  .kp-hs-card .kp-hs-btn-start,
  .kp-hs-card .kp-hs-btn-stop,
  .kp-hs-card .kp-hs-btn-restart {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .kp-hs-card form.d-inline {
    display: block !important;
    width: 100%;
  }
}
