/* Luca Service – öffentliche Oberflächen (Landing, Status, Legal) */

:root {
  --pub-max: 1180px;
  --pub-header-h: 4.25rem;
  --pub-ink: #0f172a;
  --pub-muted: #475569;
  --pub-surface: #f8fafc;
  --pub-panel: #ffffff;
  --pub-line: rgba(15, 23, 42, 0.1);
  --pub-accent: #0f766e;
  --pub-accent-2: #0d9488;
  --pub-accent-soft: rgba(15, 118, 110, 0.1);
  --pub-hero-ink: #06261f;
  --pub-hero-mid: #0b3d36;
  --pub-btn-fg: #ffffff;
  --pub-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html[data-pc-theme="dark"],
body[data-pc-theme="dark"],
body.kp-public[data-pc-theme="dark"] {
  --pub-ink: #f1f5f9;
  --pub-muted: #94a3b8;
  --pub-surface: #0b1220;
  --pub-panel: #111827;
  --pub-line: rgba(248, 250, 252, 0.1);
  --pub-accent: #2dd4bf;
  --pub-accent-2: #5eead4;
  --pub-accent-soft: rgba(45, 212, 191, 0.14);
  --pub-hero-ink: #041512;
  --pub-hero-mid: #0a2f2a;
  --pub-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body.kp-public {
  margin: 0;
  color: var(--pub-ink);
  background: var(--pub-surface);
  font-family: var(--kp-font-body, "DM Sans", system-ui, sans-serif);
  overflow-x: hidden;
}

html:has(body.kp-public) {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pub-header-h, 4.25rem) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.kp-public) {
    scroll-behavior: auto;
  }
}

/* —— Header —— */
.kp-pub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--pub-surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--pub-line);
}

.kp-pub-header-inner {
  max-width: var(--pub-max);
  margin: 0 auto;
  min-height: var(--pub-header-h);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kp-pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.kp-pub-logo {
  width: auto;
  height: 48px;
  display: block;
  object-fit: contain;
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.kp-pub-logo-footer {
  height: 56px;
}

.kp-pub-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.kp-pub-brand-name {
  font-family: var(--kp-font-display, "DM Sans", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  color: var(--pub-ink);
}

.kp-pub-brand-sub {
  font-size: 0.72rem;
  color: var(--pub-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kp-pub-menu-btn {
  display: none;
  border: 1px solid var(--pub-line);
  background: var(--pub-panel);
  color: var(--pub-ink);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}

.kp-pub-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kp-pub-nav > a:not(.kp-pub-btn) {
  color: var(--pub-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  padding: 0.35rem 0.15rem;
}

.kp-pub-nav > a:not(.kp-pub-btn):hover,
.kp-pub-nav > a.is-active {
  color: var(--pub-accent);
}

.kp-pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.kp-pub-btn:active {
  transform: translateY(1px);
}

.kp-pub-btn-primary {
  background: var(--pub-accent) !important;
  color: #ffffff !important;
  border-color: var(--pub-accent) !important;
}

.kp-pub-btn-primary:hover {
  background: var(--pub-accent-2) !important;
  color: #ffffff !important;
}

.kp-pub-btn-ghost {
  background: transparent;
  color: var(--pub-ink);
  border-color: var(--pub-line);
}

.kp-pub-btn-ghost:hover {
  border-color: var(--pub-accent);
  color: var(--pub-accent);
}

.kp-pub-btn-light {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.kp-pub-btn-light:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.kp-pub-btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.kp-pub-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.kp-pub-theme {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--pub-line);
  background: var(--pub-panel);
  color: var(--pub-ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.15rem;
}

.kp-pub-theme-sun { display: none; }
html[data-pc-theme="dark"] .kp-pub-theme-moon,
body[data-pc-theme="dark"] .kp-pub-theme-moon { display: none; }
html[data-pc-theme="dark"] .kp-pub-theme-sun,
body[data-pc-theme="dark"] .kp-pub-theme-sun { display: inline; }

/* —— Shell —— */
.kp-pub-shell {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Hero —— */
.kp-lp-hero {
  position: relative;
  color: #f8fafc;
  background:
    linear-gradient(135deg, var(--pub-hero-ink) 0%, var(--pub-hero-mid) 55%, #0f766e 100%);
  overflow: hidden;
}

.kp-lp-hero-grid {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 2.75rem;
  align-items: center;
  min-height: calc(100svh - var(--pub-header-h));
}

.kp-lp-hero-copy .kp-lp-hero-logo {
  display: block;
  width: auto;
  height: clamp(88px, 16vw, 140px);
  margin: 0 0 1.15rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.kp-lp-hero-copy h1 {
  margin: 0 0 0.9rem;
  max-width: 18ch;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(248, 250, 252, 0.92);
}

.kp-lp-hero-lead {
  margin: 0 0 1.6rem;
  max-width: 40ch;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.05rem;
  line-height: 1.55;
}

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

.kp-lp-hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.kp-lp-mock-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.kp-lp-mock-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.kp-lp-mock-rows {
  display: grid;
  gap: 0.65rem;
}

.kp-lp-mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kp-lp-mock-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: rgba(45, 212, 191, 0.18);
  color: #5eead4;
  font-size: 1.15rem;
}

.kp-lp-mock-row strong {
  display: block;
  font-size: 0.92rem;
  color: #f8fafc;
}

.kp-lp-mock-row small {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.78rem;
}

.kp-lp-mock-pill {
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

/* —— Sections —— */
.kp-lp-section {
  padding: 4rem 0 0.5rem;
}

.kp-lp-section-head {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.kp-lp-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pub-accent);
}

.kp-lp-section-head h2,
.kp-lp-close h2 {
  margin: 0 0 0.55rem;
  font-family: var(--kp-font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pub-ink);
}

.kp-lp-section-head p,
.kp-lp-close p {
  margin: 0;
  color: var(--pub-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.kp-lp-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kp-lp-services-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kp-lp-service {
  background: var(--pub-panel);
  border: 1px solid var(--pub-line);
  border-radius: 1.1rem;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--pub-shadow);
  min-height: 100%;
}

.kp-lp-service-ico {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: var(--pub-accent-soft);
  color: var(--pub-accent);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.kp-lp-service h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pub-ink);
}

.kp-lp-service p {
  margin: 0;
  color: var(--pub-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.kp-lp-trust {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.kp-lp-trust-card {
  background: var(--pub-panel);
  border: 1px solid var(--pub-line);
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
}

.kp-lp-trust-card p {
  margin: 0 0 1rem;
  color: var(--pub-muted);
  line-height: 1.55;
}

.kp-lp-close {
  margin: 3.5rem 0 0;
  padding: 2rem 1.4rem;
  border-radius: 1.2rem;
  background: var(--pub-panel);
  border: 1px solid var(--pub-line);
}

.kp-lp-close .kp-lp-cta {
  margin-top: 1.25rem;
}

/* —— Footer —— */
.kp-pub-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--pub-line);
  background: color-mix(in srgb, var(--pub-panel) 70%, var(--pub-surface));
}

.kp-pub-footer-inner {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.4rem;
  display: grid;
  gap: 1.25rem;
}

.kp-pub-footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.kp-pub-footer-brand p {
  margin: 0;
  color: var(--pub-muted);
  font-size: 0.9rem;
}

.kp-pub-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.kp-pub-footer-nav a {
  color: var(--pub-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.kp-pub-copy {
  margin: 0;
  color: var(--pub-muted);
  font-size: 0.85rem;
}

/* —— Legal —— */
.kp-legal {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
}

.kp-legal h1 {
  font-family: var(--kp-font-display, "DM Sans", system-ui, sans-serif);
  font-weight: 720;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--pub-ink);
}

.kp-legal h2 {
  font-size: 1.1rem;
  font-weight: 680;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--pub-ink);
}

.kp-legal p,
.kp-legal li {
  color: var(--pub-muted);
  line-height: 1.6;
}

.kp-legal .kp-placeholder {
  background: var(--pub-accent-soft);
  border-left: 3px solid var(--pub-accent);
  padding: 0.7rem 0.95rem;
  border-radius: 0 0.55rem 0.55rem 0;
  margin: 0.5rem 0 1rem;
  color: var(--pub-ink);
  font-size: 0.95rem;
}

.kp-legal-back {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--pub-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.kp-legal-back:hover {
  color: var(--pub-accent);
}

/* —— Status public: gleiches Gesamtbild wie Landing/Katalog —— */
body.kp-public.kp-status-public {
  background: var(--pub-surface) !important;
  /* Portal-Status-Styles auf Public-Tokens mappen */
  --kp-ink: var(--pub-ink);
  --kp-muted: var(--pub-muted);
  --kp-surface: var(--pub-surface);
  --kp-card: var(--pub-panel);
  --kp-border: var(--pub-line);
  --kp-accent: var(--pub-accent);
  --kp-accent-soft: var(--pub-accent-soft);
  --kp-shadow: var(--pub-shadow);
}

body.kp-public .kp-status-wrap {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 1.25rem 0 1rem;
}

body.kp-public .kp-status-wrap.kp-pub-shell {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body.kp-public .kp-status-hero {
  border-radius: 1.15rem !important;
  border: 1px solid var(--pub-line) !important;
  background: var(--pub-panel) !important;
  box-shadow: var(--pub-shadow) !important;
  margin: 0 0 1.5rem !important;
  padding: 1.35rem 1.25rem !important;
}

body.kp-public .kp-status-hero.is-ok,
body.kp-public .kp-status-hero.is-warn,
body.kp-public .kp-status-hero.is-bad,
body.kp-public .kp-status-hero.is-maint {
  background: var(--pub-panel) !important;
}

body.kp-public .kp-status-hero-icon {
  width: 2.75rem !important;
  height: 2.75rem !important;
  border-radius: 0.8rem !important;
  background: var(--pub-accent-soft) !important;
  color: var(--pub-accent) !important;
  font-size: 1.35rem !important;
}

body.kp-public .kp-status-hero.is-ok .kp-status-hero-icon {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
}
body.kp-public .kp-status-hero.is-warn .kp-status-hero-icon {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
}
body.kp-public .kp-status-hero.is-bad .kp-status-hero-icon {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
}
body.kp-public .kp-status-hero.is-maint .kp-status-hero-icon {
  background: var(--pub-accent-soft) !important;
  color: var(--pub-accent) !important;
}

body.kp-public .kp-status-hero h1,
body.kp-public .kp-status-hero h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: var(--pub-ink) !important;
  margin: 0 0 0.25rem !important;
}

body.kp-public .kp-status-card {
  background: var(--pub-panel) !important;
  border: 1px solid var(--pub-line) !important;
  border-radius: 1.15rem !important;
  box-shadow: var(--pub-shadow) !important;
  overflow: hidden;
}

body.kp-public .kp-status-section {
  margin-bottom: 1.75rem;
}

body.kp-public .kp-status-section h2 {
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700 !important;
  color: var(--pub-muted) !important;
  margin: 0 0 0.75rem !important;
}

body.kp-public .kp-status-row {
  border-top-color: var(--pub-line) !important;
}

body.kp-public .kp-status-ico {
  background: var(--pub-accent-soft) !important;
  color: var(--pub-accent) !important;
  border-radius: 0.75rem !important;
}

body.kp-public .kp-status-pill {
  border-radius: 999px !important;
  font-weight: 650 !important;
}

body.kp-public .kp-status-pill.ok {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #6ee7b7 !important;
}
body.kp-public .kp-status-pill.warn {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
}
body.kp-public .kp-status-pill.bad {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #fca5a5 !important;
}
body.kp-public .kp-status-pill.maint {
  background: var(--pub-accent-soft) !important;
  color: var(--pub-accent) !important;
}

body.kp-public[data-pc-theme="light"] .kp-status-pill.ok { color: #047857 !important; }
body.kp-public[data-pc-theme="light"] .kp-status-pill.warn { color: #b45309 !important; }
body.kp-public[data-pc-theme="light"] .kp-status-pill.bad { color: #b91c1c !important; }

body.kp-public .kp-status-legend,
body.kp-public .kp-inc-time,
body.kp-public .kp-status-help p {
  color: var(--pub-muted) !important;
}

body.kp-public .kp-status-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

body.kp-public .kp-status-help .kp-status-card {
  padding: 1.25rem 1.2rem !important;
}

body.kp-public .kp-status-help h3 {
  color: var(--pub-ink) !important;
  font-weight: 700 !important;
}

@media (max-width: 760px) {
  body.kp-public .kp-status-help {
    grid-template-columns: 1fr;
  }
}

body.kp-public .btn.btn-primary,
body.kp-public .btn-primary {
  background: var(--pub-accent) !important;
  border-color: var(--pub-accent) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}

body.kp-public .btn.btn-outline-secondary,
body.kp-public .btn-outline-secondary {
  color: var(--pub-ink) !important;
  border-color: var(--pub-line) !important;
  background: transparent !important;
  border-radius: 999px !important;
}

body.kp-public .btn.btn-outline-secondary:hover {
  border-color: var(--pub-accent) !important;
  color: var(--pub-accent) !important;
}

/* Bootstrap primary on public pages */
body.kp-public .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

/* —— Einheitlicher Seitenkopf (Leistungen, Status, Legal) —— */
.kp-pub-pagehead {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--pub-line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pub-accent) 10%, transparent), transparent 72%);
}

.kp-pub-pagehead h1 {
  margin: 0 0 0.55rem;
  font-family: var(--kp-font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  color: var(--pub-ink);
}

.kp-pub-pagehead-lead,
.kp-cat-lead {
  margin: 0 0 1.25rem;
  max-width: 48ch;
  color: var(--pub-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.kp-pub-pagehead .kp-lp-cta {
  margin-top: 0.15rem;
}

/* Alias: altes Klassenname bleibt harmlos */
.kp-cat-hero {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--pub-line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pub-accent) 10%, transparent), transparent 72%);
}

.kp-cat-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--kp-font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  color: var(--pub-ink);
}

.kp-cat-main {
  padding-bottom: 1rem;
}

.kp-cat-section {
  padding: 3rem 0 0.5rem;
}

.kp-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.kp-cat-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--kp-font-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pub-ink);
}

.kp-cat-head p {
  margin: 0;
  max-width: 42ch;
  color: var(--pub-muted);
  line-height: 1.5;
}

.kp-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kp-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--pub-panel);
  border: 1px solid var(--pub-line);
  border-radius: 1.05rem;
  overflow: hidden;
  box-shadow: var(--pub-shadow);
  min-height: 100%;
}

.kp-cat-media {
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--pub-accent) 8%, var(--pub-surface));
  overflow: hidden;
}

.kp-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kp-cat-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--pub-accent);
}

.kp-cat-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
}

.kp-cat-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--pub-accent-soft);
  color: var(--pub-accent);
}

.kp-cat-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pub-ink);
  line-height: 1.25;
}

.kp-cat-body > p {
  margin: 0;
  color: var(--pub-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}

.kp-cat-specs {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: var(--pub-muted);
}

.kp-cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--pub-line);
}

.kp-cat-meta strong {
  font-size: 1.05rem;
  color: var(--pub-accent);
  letter-spacing: -0.02em;
}

.kp-cat-period {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pub-muted);
  margin-left: 0.15rem;
}

.kp-cat-meta .kp-pub-btn {
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.kp-cat-empty {
  padding: 1.25rem 1.15rem;
  border-radius: 1rem;
  border: 1px dashed var(--pub-line);
  color: var(--pub-muted);
  background: var(--pub-panel);
}

@media (max-width: 960px) {
  .kp-lp-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }
  .kp-lp-services,
  .kp-lp-services-4 {
    grid-template-columns: 1fr;
  }
  .kp-lp-trust {
    grid-template-columns: 1fr;
  }
  .kp-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .kp-pub-menu-btn {
    display: inline-flex;
  }
  .kp-pub-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--pub-header-h) + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    background: var(--pub-panel);
    border: 1px solid var(--pub-line);
    border-radius: 1rem;
    box-shadow: var(--pub-shadow);
  }
  .kp-pub-nav.is-open {
    display: flex;
  }
  .kp-pub-header {
    position: sticky;
  }
  .kp-pub-header-inner {
    position: relative;
  }
  .kp-pub-nav > a:not(.kp-pub-btn) {
    padding: 0.65rem 0.5rem;
  }
  .kp-pub-theme {
    align-self: flex-start;
  }
  .kp-cat-grid {
    grid-template-columns: 1fr;
  }
  .kp-cat-head .kp-pub-btn {
    width: 100%;
  }
}
