/* ==========================================================================
   Körner Schichtplan Tool – Frontend Styles
   --------------------------------------------------------------------------
   Kompakte Redesign-Fassung: öffentliche Seiten, Verwaltung, Schichtplan,
   Navigation und mobile Optimierung.
   ========================================================================== */


/* ==========================================================================
   1. Design-Tokens
   ========================================================================== */

:root {
  --kst-primary: #8a1538;
  --kst-primary-dark: #611028;
  --kst-primary-soft: #f7e8ee;

  --kst-accent: #c7922b;
  --kst-accent-soft: #fbf1dc;

  --kst-background: #faf4ea;
  --kst-surface: #ffffff;
  --kst-surface-soft: #fffaf3;

  --kst-text: #252525;
  --kst-muted: #6f6b67;
  --kst-border: #e8ddd0;

  --kst-success: #2e7d32;
  --kst-success-soft: #edf7ed;
  --kst-warning: #c7922b;
  --kst-warning-soft: #fff6df;
  --kst-danger: #b3261e;
  --kst-danger-soft: #fff1ef;

  --kst-radius-app: 22px;
  --kst-radius-card: 16px;
  --kst-radius-control: 12px;

  --kst-shadow-app: 0 14px 42px rgba(70, 45, 25, 0.08);
  --kst-shadow-card: 0 4px 18px rgba(70, 45, 25, 0.055);

  --kst-space-1: 0.25rem;
  --kst-space-2: 0.4rem;
  --kst-space-3: 0.6rem;
  --kst-space-4: 0.85rem;
  --kst-space-5: 1.1rem;
  --kst-space-6: 1.4rem;
}


/* ==========================================================================
   2. WordPress-Seitenlayout
   ========================================================================== */

body.page {
  background: var(--kst-background);
}

body.page .wp-site-blocks {
  min-height: 100vh;
}

body.page .entry-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page main,
body.page main .wp-block-group,
body.page .entry-content,
body.page .wp-block-post-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.entry-content.alignfull,
.wp-block-post-content.alignfull,
body.page .entry-content:has(.kst-app.kst-manage),
body.page .wp-block-post-content:has(.kst-app.kst-manage) {
  max-width: none !important;
  width: 100% !important;
}

.entry-content.alignfull .kst-app,
.wp-block-post-content.alignfull .kst-app {
  max-width: 1280px !important;
  width: min(100% - 2rem, 1280px) !important;
  margin: 1.25rem auto 3rem !important;
}

body.page .entry-content:has(.kst-app.kst-manage) > .kst-app.kst-manage,
body.page .wp-block-post-content:has(.kst-app.kst-manage) > .kst-app.kst-manage {
  max-width: 1280px !important;
  width: min(100%, 1280px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ==========================================================================
   3. App-Grundlayout
   ========================================================================== */

.kst-app,
.kst-app * {
  box-sizing: border-box;
}

.kst-app {
  color: var(--kst-text);
  background:
    radial-gradient(circle at top left, rgba(199, 146, 43, 0.10), transparent 34rem),
    var(--kst-background);
  border: 1px solid rgba(138, 21, 56, 0.08);
  border-radius: var(--kst-radius-app);
  padding: clamp(0.85rem, 2.2vw, 1.5rem);
  margin: 1rem 0;
  font-size: 15.5px;
  line-height: 1.42;
  box-shadow: var(--kst-shadow-app);
}

.kst-app h1,
.kst-app h2,
.kst-app h3,
.kst-app h4,
.kst-app h5 {
  letter-spacing: -0.025em;
}

.kst-app h2,
.kst-app h3,
.kst-app h4 {
  color: var(--kst-text);
}

.kst-app p {
  margin-top: 0.35rem;
  margin-bottom: 0.55rem;
}

.kst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.kst-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
}

.kst-wide {
  grid-column: 1 / -1;
}

.kst-muted {
  color: var(--kst-muted);
}


/* ==========================================================================
   4. Hero
   ========================================================================== */

.kst-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: 20px;
  margin-bottom: var(--kst-space-5);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.18), transparent 13rem),
    linear-gradient(135deg, var(--kst-primary), var(--kst-primary-dark));
}

.kst-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 999px;
  background: rgba(199, 146, 43, 0.20);
  pointer-events: none;
}

.kst-hero > * {
  position: relative;
  z-index: 1;
}

.kst-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.095em;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.9;
}

.kst-hero h1 {
  max-width: 900px;
  color: #fff;
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.kst-hero h3 {
  color: rgba(255, 255, 255, 0.92);
  margin: 0.2rem 0 0.3rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.kst-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
}

.kst-hero p:last-child {
  font-size: 0.98rem;
  line-height: 1.45;
}


/* ==========================================================================
   5. Karten, Listen und Statistiken
   ========================================================================== */

.kst-card,
.kst-day-card,
.kst-task-card {
  background: var(--kst-surface);
  border: 1px solid var(--kst-border);
  border-radius: var(--kst-radius-card);
  padding: var(--kst-space-4);
  box-shadow: var(--kst-shadow-card);
  margin: 0 0 var(--kst-space-4);
}

.kst-day-card {
  background: rgba(255, 255, 255, 0.92);
}

.kst-day-card > h2,
.kst-day-card > h3 {
  margin-top: 0;
}

.kst-task-card > h3,
.kst-task-card > h4 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.kst-task-card > p {
  color: var(--kst-muted);
  font-size: 0.92rem;
}

.kst-list {
  display: grid;
  gap: 0.5rem;
}

.kst-list-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--kst-border);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem;
  cursor: pointer;
  color: var(--kst-text);
}

.kst-list-item span {
  display: block;
  color: var(--kst-muted);
  font-size: 0.9rem;
}

.kst-stat strong {
  display: block;
  color: var(--kst-primary);
  font-size: 2rem;
}

.kst-stat span {
  color: var(--kst-muted);
}


/* ==========================================================================
   6. Buttons und Aktionen
   ========================================================================== */

.kst-button,
.kst-app summary.kst-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  min-height: 2.25rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.85rem;

  border: 1px solid transparent !important;
  border-radius: 999px;
  background: var(--kst-primary) !important;
  color: #fff !important;

  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: none !important;
}

.kst-button:hover,
.kst-button:focus,
.kst-app summary.kst-button:hover,
.kst-app summary.kst-button:focus {
  background: var(--kst-primary-dark) !important;
  color: #fff !important;
}

.kst-button-secondary,
.kst-app summary.kst-button-secondary,
.kst-app summary.kst-button.kst-button-secondary {
  background: #fff !important;
  color: #3b3632 !important;
  border-color: rgba(80, 70, 60, 0.18) !important;
}

.kst-button-secondary:hover,
.kst-button-secondary:focus,
.kst-app summary.kst-button-secondary:hover,
.kst-app summary.kst-button-secondary:focus,
.kst-app summary.kst-button.kst-button-secondary:hover,
.kst-app summary.kst-button.kst-button-secondary:focus {
  background: #fffaf3 !important;
  color: var(--kst-primary-dark) !important;
  border-color: rgba(138, 21, 56, 0.32) !important;
}

.kst-button-danger,
.kst-app summary.kst-button-danger,
.kst-app summary.kst-button.kst-button-danger {
  background: var(--kst-danger) !important;
  color: #fff !important;
  border-color: var(--kst-danger) !important;
}

.kst-button-danger:hover,
.kst-button-danger:focus,
.kst-app summary.kst-button-danger:hover,
.kst-app summary.kst-button-danger:focus,
.kst-app summary.kst-button.kst-button-danger:hover,
.kst-app summary.kst-button.kst-button-danger:focus {
  background: #8f1f18 !important;
  color: #fff !important;
  border-color: #8f1f18 !important;
}

.kst-button[disabled],
.kst-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.kst-link-button {
  color: var(--kst-danger);
  background: transparent;
  border: 0;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.kst-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.kst-actions .kst-button,
.kst-actions summary.kst-button,
.kst-internal-participant-actions .kst-button,
.kst-internal-participant-actions summary.kst-button,
.kst-signup-action-row .kst-button {
  margin-top: 0;
}

/* Signup-Öffner auf öffentlichen Schichtkarten immer als Primäraktion */
.kst-app details[data-signup-details] > summary.kst-button,
.kst-app details[data-signup-details] > summary.kst-button-secondary,
.kst-app details[data-signup-details] > summary.kst-button.kst-button-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--kst-primary) !important;
  color: #fff !important;
  border: 1px solid var(--kst-primary) !important;
  box-shadow: none !important;
}

.kst-app details[data-signup-details] > summary.kst-button:hover,
.kst-app details[data-signup-details] > summary.kst-button:focus,
.kst-app details[data-signup-details] > summary.kst-button-secondary:hover,
.kst-app details[data-signup-details] > summary.kst-button-secondary:focus,
.kst-app details[data-signup-details] > summary.kst-button.kst-button-secondary:hover,
.kst-app details[data-signup-details] > summary.kst-button.kst-button-secondary:focus,
.kst-app details[data-signup-details][open] > summary.kst-button,
.kst-app details[data-signup-details][open] > summary.kst-button-secondary,
.kst-app details[data-signup-details][open] > summary.kst-button.kst-button-secondary {
  background: var(--kst-primary-dark) !important;
  color: #fff !important;
  border-color: var(--kst-primary-dark) !important;
}


/* ==========================================================================
   7. Formulare
   ========================================================================== */

.kst-app label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.kst-app label small {
  font-weight: 400;
  color: var(--kst-muted);
}

.kst-app input,
.kst-app textarea,
.kst-app select {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--kst-border);
  border-radius: var(--kst-radius-control);
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: var(--kst-text);
  font-size: 0.95rem;
}

.kst-app textarea {
  min-height: 92px;
}

.kst-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.5rem;
}

.kst-check input {
  width: auto;
  margin-top: 0.35rem;
}

.kst-field-hint {
  margin: 0;
  color: var(--kst-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.kst-form-grid,
.kst-editor,
.kst-inline-create {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.kst-inline-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.kst-inline-form select {
  min-width: 260px;
}


/* ==========================================================================
   8. Öffentliche Eventseite
   ========================================================================== */

.kst-day-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 0.75rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--kst-border);
  border-radius: 16px;
  box-shadow: 0 3px 14px rgba(70, 45, 25, 0.05);
}

.kst-day-tab {
  flex: 1 0 auto;
  min-width: 5.15rem;
  min-height: 2.25rem;
  padding: 0.42rem 0.55rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--kst-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

.kst-day-tab:hover {
  transform: none;
  color: var(--kst-primary-dark);
}

.kst-day-tab.is-active {
  background: var(--kst-primary);
  color: #fff;
}

.kst-shifts {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.kst-shift {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.35rem 0;
  padding: 0.65rem;
  border: 1px solid var(--kst-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.kst-shift-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.kst-shift-main strong,
.kst-shift > strong,
.kst-shifts details.kst-shift > summary strong {
  font-size: 1rem;
  color: var(--kst-primary-dark);
}

.kst-shift-main p,
.kst-shift > p,
.kst-shifts details.kst-shift > summary span {
  margin: 0;
  color: var(--kst-muted);
  font-size: 0.86rem;
}

.kst-shifts details.kst-shift {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.kst-shifts details.kst-shift > summary {
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  cursor: pointer;
  padding: 0.65rem;
  list-style: none;
}

.kst-shifts details.kst-shift > summary::-webkit-details-marker,
.kst-task-form-wrap > summary::-webkit-details-marker,
.kst-internal-participant-actions details > summary::-webkit-details-marker {
  display: none;
}

.kst-shift-form {
  margin: 0 0.65rem 0.65rem;
  padding-top: 0.2rem;
}

.kst-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0.08rem 0.12rem 0.08rem 0;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(80, 70, 60, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #3b3632;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  vertical-align: middle;
}

.kst-pill::before {
  content: "•";
  margin-right: 0.3rem;
  color: var(--kst-muted);
  font-size: 0.9em;
}


/* ==========================================================================
   9. Anmeldung / Signup-Formular
   ========================================================================== */

.kst-signup-form,
[data-edit-form] {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.6rem;
}

.kst-signup-form fieldset,
[data-edit-form] fieldset {
  border: 1px solid var(--kst-border);
  border-radius: 13px;
  padding: 0.65rem;
}

.kst-signup-form legend {
  font-weight: 700;
  color: var(--kst-primary-dark);
  padding: 0 0.25rem;
}

.kst-signup-section {
  border: 1px solid var(--kst-border);
  border-radius: 14px;
  padding: 0.7rem;
  background: var(--kst-surface-soft);
  display: grid;
  gap: 0.6rem;
}

.kst-signup-section h4 {
  margin: 0;
  color: var(--kst-primary-dark);
}

.kst-signup-section[hidden] {
  display: none !important;
}

.kst-signup-form fieldset[data-extra-participant] {
  background: #fff;
  display: grid;
  gap: 0.65rem;
}

.kst-people-preview {
  border: 1px dashed var(--kst-border);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--kst-muted);
}

.kst-people-preview strong {
  color: var(--kst-primary-dark);
}


/* ==========================================================================
   10. Hinweise, Toasts und Honeypot
   ========================================================================== */

.kst-notice {
  border: 1px solid var(--kst-border);
  border-radius: 13px;
  padding: 0.65rem 0.75rem;
  margin: 0.5rem 0;
  background: #fff;
  font-size: 0.92rem;
}

.kst-notice-success {
  border-color: rgba(46, 125, 50, 0.35);
  background: var(--kst-success-soft);
  color: var(--kst-success);
  font-weight: 700;
}

.kst-notice-error {
  border-color: rgba(179, 38, 30, 0.35);
  background: var(--kst-danger-soft);
  color: var(--kst-danger);
  font-weight: 700;
}

.kst-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: var(--kst-primary-dark);
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.kst-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}


/* ==========================================================================
   11. Navigation Shortcode [kst_nav]
   ========================================================================== */

.kst-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  max-width: 1280px !important;
  width: min(100% - 1rem, 1280px) !important;
  margin: 0.65rem auto 0.8rem !important;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--kst-border);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(70, 45, 25, 0.06);
  width: min(80% - 1rem, 1280px) !important;
}

.kst-nav__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.15rem;
  min-width: 0;
  padding: 0.45rem 0.75rem;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--kst-primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  vertical-align: middle;
}

.kst-nav__link:hover,
.kst-nav__link:focus {
  background: var(--kst-primary-dark);
  color: #fff !important;
}

.kst-nav__link--secondary {
  background: #2d2926;
  color: var(--kst-background) !important;
}

.kst-nav__link--secondary:hover,
.kst-nav__link--secondary:focus {
  background: var(--kst-primary);
  color: #fff !important;
}


/* ==========================================================================
   12. Verwaltung: Formulare, Vorschläge, interne Listen
   ========================================================================== */

.kst-task-form-wrap {
  margin: 0.75rem 0;
}

.kst-task-form-wrap > summary {
  margin-bottom: 0.75rem;
  list-style: none;
}

.kst-task-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  border: 1px dashed var(--kst-border);
  border-radius: 16px;
  padding: 0.85rem;
  background: var(--kst-surface-soft);
  margin-bottom: 1rem;
}

.kst-task-form .kst-wide {
  grid-column: 1 / -1;
}

.kst-task-form p.kst-wide {
  margin: 0;
}

.kst-proposal-editor {
  border: 1px solid var(--kst-border);
  border-radius: 16px;
  background: var(--kst-surface-soft);
  padding: 0.85rem;
  margin: 0.75rem 0 1rem;
}

.kst-proposal-editor h5 {
  margin: 0 0 0.35rem;
  color: var(--kst-primary-dark);
}

.kst-proposal-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.kst-proposal-row {
  display: grid;
  grid-template-columns: auto repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  align-items: end;
  border: 1px dashed var(--kst-border);
  border-radius: 14px;
  padding: 0.75rem;
  background: #fff;
}

.kst-proposal-row > strong {
  padding-bottom: 0.7rem;
  color: var(--kst-primary);
}

.kst-workspace-head {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.kst-workspace-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.kst-internal-signup {
  margin: 0.75rem 0;
}

.kst-app.kst-manage {
  max-width: 1280px;
}

.kst-app.kst-manage .kst-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: 100%;
  max-width: 100%;
}

.kst-app.kst-manage .kst-layout > aside.kst-card,
.kst-app.kst-manage .kst-layout > .kst-workspace {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0;
}

.kst-app.kst-manage [data-kst-events-list] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.kst-app.kst-manage [data-kst-events-list] .kst-list-item {
  width: 100%;
}

.kst-internal-person {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-top: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(80, 60, 40, 0.1);
}

.kst-internal-person + .kst-internal-person {
  margin-top: 0.4rem;
}

.kst-internal-person p {
  margin: 0.2rem 0;
}

.kst-internal-person .kst-actions {
  margin-top: 0.5rem;
}

.kst-internal-signup-head {
  margin-bottom: 0.75rem;
}

.kst-internal-signup-head p {
  margin: 0.25rem 0 0;
}

.kst-internal-participant-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}

.kst-internal-participant-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(80, 60, 40, 0.08);
}

.kst-internal-participant-row span {
  display: block;
  color: var(--kst-muted);
  font-size: 0.84rem;
  margin-top: 0.15rem;
}

.kst-internal-participant-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kst-internal-participant-actions details {
  position: relative;
}

.kst-internal-participant-actions details > summary {
  list-style: none;
  margin: 0;
}

.kst-internal-participant-actions .kst-participant-edit-form {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(92vw, 520px);
  box-shadow: 0 18px 50px rgba(30, 20, 15, 0.18);
}

.kst-participant-edit-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.kst-participant-edit-form {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(80, 60, 40, 0.1);
}

.kst-internal-signup-actions {
  width: 100%;
  max-width: none;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(80, 60, 40, 0.12);
}

.kst-internal-signup-actions > p {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.kst-signup-action-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.kst-signup-action-row .kst-inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.kst-signup-action-row select {
  width: 100%;
  min-width: 0;
}

.kst-csv-export {
  margin-bottom: 1.25rem;
}


/* ==========================================================================
   13. Footer
   ========================================================================== */

footer,
.wp-block-template-part:has(footer) {
  margin-top: 2rem !important;
}

footer {
  color: var(--kst-muted);
}

footer h1,
footer h2,
footer h3,
footer .wp-block-site-title {
  font-size: 1.5rem !important;
  line-height: 1.15 !important;
}

footer a,
footer p {
  font-size: 0.9rem;
}


/* ========================================================================== 
   14. Responsive
   ========================================================================== */

@media (min-width: 900px) {
  .kst-app {
    max-width: 1120px;
    margin: 2rem auto;
  }

  .kst-card,
  .kst-day-card,
  .kst-task-card {
    padding: 1.25rem;
  }
}

@media (max-width: 800px) {
  .kst-layout,
  .kst-workspace-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kst-shift {
    display: grid;
  }

  .kst-proposal-row {
    grid-template-columns: 1fr;
  }

  .kst-proposal-row > strong {
    padding-bottom: 0;
  }
}

@media (max-width: 720px) {
  .entry-content.alignfull .kst-app,
  .wp-block-post-content.alignfull .kst-app,
  .kst-app {
    width: min(100% - 0.75rem, 1280px) !important;
    margin-top: 0.55rem !important;
    border-radius: 18px;
    padding: 0.75rem;
  }

  .kst-hero {
    padding: 1rem !important;
    border-radius: 17px !important;
    margin-bottom: 0.75rem !important;
  }

  .kst-hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.05 !important;
    letter-spacing: -0.04em;
  }

  .kst-hero p:last-child {
    font-size: 0.9rem;
  }

  .kst-card,
  .kst-day-card,
  .kst-task-card {
    padding: 0.72rem;
    border-radius: 14px;
    margin-bottom: 0.65rem;
  }

  .kst-day-card > h2,
  .kst-day-card > h3 {
    font-size: 1.12rem;
  }

  .kst-task-card > h3,
  .kst-task-card > h4 {
    font-size: 1.02rem;
  }

  .kst-nav {
    width: min(80% - 0.75rem, 1280px) !important;
    margin: 0.35rem auto 0.55rem !important;
    padding: 0.25rem !important;
    border-radius: 999px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
  }

  .kst-nav__link {
    width: auto !important;
    flex: 0 0 auto;
    min-height: 2rem !important;
    min-width: 0 !important;
    padding: 0.42rem 0.65rem !important;
    font-size: 0.84rem !important;
    border-radius: 999px !important;
  }

  .kst-day-tabs {
    gap: 0.22rem;
    margin-bottom: 0.65rem;
    padding: 0.22rem;
    border-radius: 14px;
  }

  .kst-day-tab {
    min-width: 4.65rem;
    min-height: 2.05rem;
    padding: 0.36rem 0.42rem;
    font-size: 0.76rem;
    border-radius: 10px;
  }

  .kst-shift {
    padding: 0.58rem;
    gap: 0.45rem;
  }

  .kst-shifts details.kst-shift > summary {
    padding: 0.58rem;
  }

  .kst-button,
  .kst-app summary.kst-button {
    width: auto;
    min-height: 2.15rem;
    padding: 0.48rem 0.75rem;
    font-size: 0.88rem;
  }

  .kst-actions {
    gap: 0.35rem;
  }

  .kst-app input,
  .kst-app textarea,
  .kst-app select {
    min-height: 2.25rem;
    padding: 0.5rem 0.6rem;
  }

  .kst-signup-section,
  .kst-signup-form fieldset,
  [data-edit-form] fieldset {
    padding: 0.6rem;
  }

  .kst-pill {
    font-size: 0.74rem;
    padding: 0.16rem 0.42rem;
  }

  .kst-inline-form,
  .kst-signup-action-row,
  .kst-signup-action-row .kst-inline-form {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .kst-inline-form select {
    min-width: 0;
  }

  .kst-internal-participant-row {
    grid-template-columns: 1fr;
  }

  .kst-internal-participant-actions {
    justify-content: flex-start;
  }

  .kst-internal-participant-actions .kst-participant-edit-form {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
  }
}
/* ==========================================================================
   Verwaltung – mehr Abstand und ruhigere Karten
   ========================================================================== */

.kst-app.kst-manage {
  display: grid;
  gap: 1.15rem;
}

/* Hauptbereiche in der Verwaltung deutlicher trennen */
.kst-app.kst-manage .kst-card,
.kst-app.kst-manage .kst-day-card,
.kst-app.kst-manage .kst-task-card {
  margin-bottom: 1.15rem;
}

/* Formularbereiche wie "Event speichern" und "Tag hinzufügen" brauchen mehr Luft */
.kst-app.kst-manage .kst-editor,
.kst-app.kst-manage .kst-inline-create,
.kst-app.kst-manage .kst-form-grid {
  gap: 0.9rem;
}

/* Tageskarte innen luftiger */
.kst-app.kst-manage .kst-day-card {
  padding: 1.25rem;
}

/* Aufgaben innerhalb eines Tages klarer voneinander absetzen */
.kst-app.kst-manage .kst-task-card {
  padding: 1.05rem;
  margin-top: 0.9rem;
}

/* Schichten im internen Plan nicht zu eng stapeln */
.kst-app.kst-manage .kst-shifts {
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.kst-app.kst-manage .kst-shift {
  margin: 0.55rem 0;
  padding: 0.85rem;
}

/* Personen-/Anmeldekarten im internen Plan wieder etwas größer */
.kst-app.kst-manage .kst-internal-person {
  margin-top: 0.7rem;
  padding: 0.85rem 0.95rem;
}

.kst-app.kst-manage .kst-internal-person + .kst-internal-person {
  margin-top: 0.65rem;
}

.kst-app.kst-manage .kst-internal-participant-list {
  gap: 0.65rem;
  margin: 0.9rem 0;
}

.kst-app.kst-manage .kst-internal-participant-row {
  padding: 0.7rem 0.8rem;
}

/* Tagesnavigation in der Verwaltung mit etwas Abstand zur folgenden Karte */
.kst-app.kst-manage .kst-day-tabs {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

/* Bearbeiten-Link oben rechts nicht so nah an der Kante */
.kst-app.kst-manage .kst-day-card > details,
.kst-app.kst-manage .kst-day-card > .kst-actions {
  margin-bottom: 0.75rem;
}

@media (max-width: 720px) {
  .kst-app.kst-manage {
    gap: 0.85rem;
  }

  .kst-app.kst-manage .kst-day-card {
    padding: 0.9rem;
  }

  .kst-app.kst-manage .kst-task-card {
    padding: 0.8rem;
    margin-top: 0.75rem;
  }

  .kst-app.kst-manage .kst-shift {
    padding: 0.7rem;
  }
}

/* ==========================================================================
   Verwaltung – gezielt mehr Luft und bessere Formularstruktur
   ========================================================================== */

.kst-app.kst-manage {
  gap: 1.15rem;
}

/* Karten im internen Bereich etwas großzügiger als öffentlich */
.kst-app.kst-manage .kst-card,
.kst-app.kst-manage .kst-day-card,
.kst-app.kst-manage .kst-task-card {
  margin-bottom: 1.15rem;
}

/* Der obere Event-Editor darf dichter sein, aber nicht kleben */
.kst-app.kst-manage .kst-editor,
.kst-app.kst-manage .kst-form-grid {
  gap: 0.9rem;
  align-items: end;
}

/* Formular "Tag hinzufügen" als klarer eigener Bereich */
.kst-app.kst-manage .kst-inline-create {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) repeat(3, minmax(130px, 1fr)) minmax(180px, auto);
  gap: 0.85rem;
  align-items: center;

  padding: 1rem;
  margin: 0.85rem 0 1.15rem;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--kst-border);
  border-radius: 18px;
}

/* Überschrift im Inline-Create-Bereich kleiner halten */
.kst-app.kst-manage .kst-inline-create h2,
.kst-app.kst-manage .kst-inline-create h3,
.kst-app.kst-manage .kst-inline-create strong {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Inputs in der Verwaltung nicht so riesig wirken lassen */
.kst-app.kst-manage input,
.kst-app.kst-manage select,
.kst-app.kst-manage textarea {
  min-height: 2.3rem;
}

/* Hauptbuttons im Verwaltungsformular weniger wuchtig */
.kst-app.kst-manage .kst-editor > .kst-button,
.kst-app.kst-manage .kst-form-grid > .kst-button,
.kst-app.kst-manage .kst-inline-create > .kst-button {
  min-height: 2.45rem;
  padding-inline: 1.15rem;
  margin-top: 0;
}

/* Tagesnavigation in der Verwaltung mit Abstand zur Tageskarte */
.kst-app.kst-manage .kst-day-tabs {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

/* Tageskarte selbst luftiger */
.kst-app.kst-manage .kst-day-card {
  padding: 1.25rem;
}

/* Überschrift im Tagesbereich */
.kst-app.kst-manage .kst-day-card > h2,
.kst-app.kst-manage .kst-day-card > h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}

/* Tag bearbeiten rechts oben etwas eleganter */
.kst-app.kst-manage .kst-day-card > details {
  margin-bottom: 0.9rem;
}

.kst-app.kst-manage .kst-day-card > details > summary {
  cursor: pointer;
}

/* Aufgaben in Tageskarten deutlicher trennen */
.kst-app.kst-manage .kst-task-card {
  padding: 1.05rem;
  margin-top: 0.95rem;
}

/* Schichten intern etwas weniger gedrängt */
.kst-app.kst-manage .kst-shifts {
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.kst-app.kst-manage .kst-shift {
  margin: 0;
  padding: 0.85rem;
}

/* Personen-/Anmeldekarten intern wieder lesbarer */
.kst-app.kst-manage .kst-internal-person {
  margin-top: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
}

.kst-app.kst-manage .kst-internal-person + .kst-internal-person {
  margin-top: 0.65rem;
}

.kst-app.kst-manage .kst-internal-signup-head {
  margin-bottom: 0.65rem;
}

.kst-app.kst-manage .kst-internal-participant-list {
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.kst-app.kst-manage .kst-internal-participant-row {
  padding: 0.7rem 0.8rem;
}

/* Aktionsbuttons intern kompakter */
.kst-app.kst-manage .kst-internal-participant-actions .kst-button,
.kst-app.kst-manage .kst-signup-action-row .kst-button,
.kst-app.kst-manage .kst-actions .kst-button {
  min-height: 2.05rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}

/* Mobile Verwaltung */
@media (max-width: 900px) {
  .kst-app.kst-manage .kst-inline-create {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kst-app.kst-manage .kst-inline-create > :first-child,
  .kst-app.kst-manage .kst-inline-create > .kst-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .kst-app.kst-manage {
    gap: 0.85rem;
  }

  .kst-app.kst-manage .kst-inline-create {
    grid-template-columns: 1fr;
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .kst-app.kst-manage .kst-day-card {
    padding: 0.9rem;
  }

  .kst-app.kst-manage .kst-task-card {
    padding: 0.8rem;
    margin-top: 0.75rem;
  }

  .kst-app.kst-manage .kst-shift {
    padding: 0.7rem;
  }
}

/* ==========================================================================
   Verwaltung – Aktionsleiste: button und a optisch vereinheitlichen
   ========================================================================== */

.kst-app.kst-manage .kst-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Buttons und Links in Aktionsleisten exakt gleich behandeln */
.kst-app.kst-manage .kst-actions > .kst-button,
.kst-app.kst-manage .kst-actions > a.kst-button,
.kst-app.kst-manage .kst-actions > button.kst-button {
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 2.25rem;
  margin: 0 !important;
  padding: 0.5rem 0.85rem;

  border-radius: 999px;
  box-sizing: border-box;

  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;

  cursor: pointer;
}

.kst-app.kst-manage .kst-actions > button.kst-button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Sekundäre Aktionsbuttons in der Verwaltung einheitlich */
.kst-app.kst-manage .kst-actions > .kst-button-secondary,
.kst-app.kst-manage .kst-actions > a.kst-button-secondary,
.kst-app.kst-manage .kst-actions > button.kst-button-secondary {
  background: #fff !important;
  color: #3b3632 !important;
  border: 1px solid rgba(80, 70, 60, 0.18) !important;
  box-shadow: none !important;
}

.kst-app.kst-manage .kst-actions > .kst-button-secondary:hover,
.kst-app.kst-manage .kst-actions > .kst-button-secondary:focus,
.kst-app.kst-manage .kst-actions > a.kst-button-secondary:hover,
.kst-app.kst-manage .kst-actions > a.kst-button-secondary:focus,
.kst-app.kst-manage .kst-actions > button.kst-button-secondary:hover,
.kst-app.kst-manage .kst-actions > button.kst-button-secondary:focus {
  background: #fffaf3 !important;
  color: var(--kst-primary-dark) !important;
  border-color: rgba(138, 21, 56, 0.32) !important;
}

/* ==========================================================================
   Interner Schichtplan – tabellenartige Schichtübersicht
   ========================================================================== */

.kst-app.kst-manage .kst-internal-shift-table {
  display: grid;
  margin-top: 0.85rem;
  border: 1px solid var(--kst-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.kst-app.kst-manage .kst-internal-shift-table-head,
.kst-app.kst-manage .kst-internal-shift-summary {
  display: grid;
  grid-template-columns: 8.5rem 7.5rem minmax(0, 1fr) 6.5rem 5.5rem;
  gap: 0.75rem;
  align-items: center;
}

.kst-app.kst-manage .kst-internal-shift-table-head {
  padding: 0.55rem 0.9rem;
  background: rgba(250, 244, 234, 0.78);
  border-bottom: 1px solid var(--kst-border);
  color: var(--kst-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.kst-app.kst-manage .kst-internal-shift-row {
  border-bottom: 1px solid var(--kst-border);
  background: #fff;
}

.kst-app.kst-manage .kst-internal-shift-row:last-child {
  border-bottom: 0;
}

.kst-app.kst-manage .kst-internal-shift-summary {
  padding: 0.72rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.kst-app.kst-manage .kst-internal-shift-summary::-webkit-details-marker {
  display: none;
}

.kst-app.kst-manage .kst-internal-shift-row[open] > .kst-internal-shift-summary {
  background: #fffaf3;
  border-bottom: 1px solid var(--kst-border);
}

.kst-app.kst-manage .kst-internal-shift-time {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.kst-app.kst-manage .kst-internal-shift-time strong {
  color: var(--kst-primary-dark);
  font-size: 0.98rem;
  line-height: 1.15;
}

.kst-app.kst-manage .kst-internal-shift-time small {
  color: var(--kst-muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.kst-app.kst-manage .kst-internal-shift-occupancy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
  min-width: 0;
}

.kst-app.kst-manage .kst-internal-shift-occupancy strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.kst-app.kst-manage .kst-internal-shift-occupancy small {
  color: var(--kst-muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.kst-app.kst-manage .kst-internal-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.3rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.kst-app.kst-manage .kst-internal-status-badge.is-needed {
  background: var(--kst-warning-soft);
  color: #7a4c00;
}

.kst-app.kst-manage .kst-internal-status-badge.is-ok {
  background: var(--kst-success-soft);
  color: var(--kst-success);
}

.kst-app.kst-manage .kst-internal-status-badge.is-full {
  background: var(--kst-primary-soft);
  color: var(--kst-primary-dark);
}

.kst-app.kst-manage .kst-internal-shift-helpers {
  min-width: 0;
}

.kst-app.kst-manage .kst-internal-name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  min-width: 0;
}

.kst-app.kst-manage .kst-internal-name-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(80, 70, 60, 0.13);
  border-radius: 999px;
  background: #fff;
  color: #34302d;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.kst-app.kst-manage .kst-internal-name-chip-more {
  color: var(--kst-muted);
  background: rgba(250, 244, 234, 0.75);
}

.kst-app.kst-manage .kst-internal-shift-waitlist {
  color: var(--kst-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.kst-app.kst-manage .kst-internal-shift-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(80, 70, 60, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #3b3632;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.kst-app.kst-manage .kst-internal-shift-row[open] .kst-internal-shift-action {
  background: var(--kst-primary);
  border-color: var(--kst-primary);
  color: #fff;
}

.kst-app.kst-manage .kst-internal-shift-details {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 1rem;
  background: #fffaf3;
}

.kst-app.kst-manage .kst-internal-detail-section {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(80, 70, 60, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.kst-app.kst-manage .kst-internal-detail-section h5 {
  margin: 0;
  color: var(--kst-primary-dark);
  font-size: 0.95rem;
  line-height: 1.2;
}

.kst-app.kst-manage .kst-internal-detail-section .kst-internal-person {
  margin-top: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 13px;
  background: #fff;
}

.kst-app.kst-manage .kst-internal-detail-section .kst-internal-person + .kst-internal-person {
  margin-top: 0;
}

.kst-app.kst-manage .kst-internal-detail-section .kst-internal-signup-head {
  margin-bottom: 0.55rem;
}

.kst-app.kst-manage .kst-internal-detail-section .kst-internal-participant-list {
  margin: 0.65rem 0;
  gap: 0.45rem;
}

.kst-app.kst-manage .kst-internal-detail-section .kst-internal-participant-row {
  padding: 0.55rem 0.65rem;
  background: rgba(250, 244, 234, 0.45);
}

.kst-app.kst-manage .kst-internal-detail-section .kst-internal-signup-actions {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
}

.kst-app.kst-manage .kst-internal-shift-edit > summary {
  width: fit-content;
  margin-top: 0;
}

.kst-app.kst-manage .kst-internal-shift-edit > summary::-webkit-details-marker {
  display: none;
}

.kst-app.kst-manage .kst-internal-shift-edit .kst-shift-form {
  margin: 0.65rem 0 0;
}

@media (max-width: 900px) {
  .kst-app.kst-manage .kst-internal-shift-table-head {
    display: none;
  }

  .kst-app.kst-manage .kst-internal-shift-summary {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time action"
      "occupancy occupancy"
      "helpers helpers"
      "waitlist waitlist";
    gap: 0.45rem 0.75rem;
  }

  .kst-app.kst-manage .kst-internal-shift-time {
    grid-area: time;
  }

  .kst-app.kst-manage .kst-internal-shift-occupancy {
    grid-area: occupancy;
  }

  .kst-app.kst-manage .kst-internal-shift-helpers {
    grid-area: helpers;
  }

  .kst-app.kst-manage .kst-internal-shift-waitlist {
    grid-area: waitlist;
  }

  .kst-app.kst-manage .kst-internal-shift-waitlist::before {
    content: "Warteliste: ";
    color: var(--kst-muted);
    font-weight: 700;
  }

  .kst-app.kst-manage .kst-internal-shift-action {
    grid-area: action;
  }
}

@media (max-width: 720px) {
  .kst-app.kst-manage .kst-internal-shift-table {
    border-radius: 14px;
  }

  .kst-app.kst-manage .kst-internal-shift-summary {
    padding: 0.65rem 0.72rem;
  }

  .kst-app.kst-manage .kst-internal-shift-details {
    padding: 0.7rem;
  }

  .kst-app.kst-manage .kst-internal-detail-section {
    padding: 0.65rem;
  }
}


/* ==========================================================================
   Öffentlicher Bereich – Außenfläche + Hero
   ========================================================================== */

.kst-app.kst-public {
  background: #faf4ea;
  border: 1px solid rgba(199, 146, 43, 0.12);
  border-radius: 32px;
  padding: 2rem;
}

/* Hero wieder klar farbig */
.kst-public .kst-hero {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,0.14) 0, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 100% 100%, rgba(199,146,43,0.26) 0, rgba(199,146,43,0.26) 16%, rgba(199,146,43,0) 16.5%),
    linear-gradient(135deg, #8a1538 0%, #9a123f 55%, #7f1235 100%);

  color: #fff;
  border-radius: 26px;
  padding: 2.1rem 2.2rem;
  box-shadow: none;
}

.kst-public .kst-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.kst-public .kst-hero .kst-eyebrow,
.kst-public .kst-hero h1,
.kst-public .kst-hero h2,
.kst-public .kst-hero h3,
.kst-public .kst-hero p {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

.kst-public .kst-hero .kst-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.kst-public .kst-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.kst-public .kst-hero h2,
.kst-public .kst-hero h3 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.1;
  font-weight: 750;
  opacity: 0.98;
}

.kst-public .kst-hero p {
  margin: 0.9rem 0 0;
  max-width: 54rem;
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0.98;
}


@media (max-width: 720px) {
  .kst-app.kst-public {
    padding: 1rem;
    border-radius: 24px;
  }

  .kst-public .kst-hero {
    padding: 1.35rem 1.2rem;
    border-radius: 22px;
  }

  .kst-public .kst-hero p {
    font-size: 0.96rem;
    line-height: 1.42;
  }
}
