@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --bg: #f3f1ea;
  --bg-soft: #ece8dc;
  --bg-panel: rgba(252, 250, 245, 0.82);
  --bg-strong: #fffdf7;
  --ink: #18261f;
  --ink-soft: #5f6c66;
  --line: rgba(24, 38, 31, 0.1);
  --line-strong: rgba(24, 38, 31, 0.16);
  --accent: #0d7a5f;
  --accent-dark: #085744;
  --accent-soft: rgba(13, 122, 95, 0.12);
  --warn: #c96f1b;
  --warn-soft: rgba(201, 111, 27, 0.14);
  --danger: #b3412f;
  --danger-dark: #8a2c1e;
  --danger-soft: rgba(179, 65, 47, 0.14);
  --shadow-lg: 0 24px 60px rgba(38, 39, 32, 0.12);
  --shadow-sm: 0 12px 26px rgba(38, 39, 32, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle at top left, rgba(13, 122, 95, 0.1), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(201, 111, 27, 0.12), transparent 22%),
    linear-gradient(180deg, #f8f5ed 0%, var(--bg) 45%, #ebe7dc 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(24, 38, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 38, 31, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 75%);
  pointer-events: none;
}

h1,
h2,
h3,
th {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.03em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page-shell {
  position: relative;
  width: min(1500px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.panel {
  position: relative;
  background: var(--bg-panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xl);
  padding: 18px;
  overflow: hidden;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  pointer-events: none;
}

.panel-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 168px;
  margin-bottom: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.panel-hero::before {
  content: '';
  position: absolute;
  inset: auto -5% -40% auto;
  width: 380px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 122, 95, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 800;
}

.muted {
  color: var(--ink-soft);
  line-height: 1.45;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip,
.summary-chip,
.type-pill,
.time-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 38, 31, 0.08);
}

.meta-chip.accent,
.summary-chip,
.time-pill {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: rgba(13, 122, 95, 0.18);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: flex-start;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.summary-card strong {
  font-size: 1.5rem;
  line-height: 1;
}

.summary-label,
.summary-foot,
.section-subtitle,
.table-hint,
.counter,
.small {
  font-size: 0.82rem;
}

.summary-label,
.section-subtitle,
.summary-foot,
.counter,
.table-hint {
  color: var(--ink-soft);
}

.alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(13, 122, 95, 0.12);
  border-color: rgba(13, 122, 95, 0.18);
}

.alert-error {
  background: rgba(179, 65, 47, 0.12);
  border-color: rgba(179, 65, 47, 0.18);
}

.floating-parameter-menu {
  position: fixed;
  right: 24px;
  top: 96px;
  z-index: 40;
}

.parameter-drawer {
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

#parameterContent[hidden] {
  display: none;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.panel-primary {
  min-height: 100%;
}

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

.side-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 20px;
}

@media (max-height: 900px) and (min-width: 1181px) {
  .side-rail {
    position: static;
  }
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head-tight {
  margin-bottom: 12px;
}

.panel-head h2 {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 4px;
}

.panel-head h3 {
  font-size: 1.25rem;
  line-height: 1.05;
  margin-bottom: 4px;
}

.compact {
  max-width: 360px;
  text-align: right;
}

.stack-gap {
  display: grid;
  gap: 10px;
}

.inline-form,
.compact-controls,
.button-row,
.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.row-actions-compact {
  justify-content: flex-end;
}

.compact-form {
  display: grid;
  gap: 10px;
}

.inline-edit-panel {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(13, 122, 95, 0.16);
  border-radius: 18px;
  background: rgba(13, 122, 95, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.inline-edit-panel[hidden] {
  display: none;
}

.inline-edit-actions {
  justify-content: flex-end;
}

.compact-form-guests,
.compact-form-program {
  grid-template-columns: minmax(180px, 2fr) minmax(90px, 0.7fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) auto;
  align-items: center;
  margin-bottom: 12px;
}

.compact-form-program {
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.1fr) minmax(220px, 1.4fr) auto;
}

.compact-form-checklist {
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, 1fr) auto;
  margin-bottom: 10px;
}

label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

input,
select,
button,
.button-link {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font: inherit;
  touch-action: manipulation;
}

input,
select {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus,
button:focus-visible,
.button-link:focus-visible,
.sort-btn:focus-visible {
  outline: 2px solid rgba(13, 122, 95, 0.24);
  outline-offset: 2px;
}

button,
.button-link {
  justify-content: center;
  align-items: center;
  display: inline-flex;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  color: #202124;
  background: #e6e6e6;
  border-color: #c9c9c9;
  box-shadow: 0 6px 14px rgba(32, 33, 36, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  background: #dbdbdb;
  box-shadow: 0 9px 18px rgba(32, 33, 36, 0.16);
}

button.ghost,
.button-link.ghost,
.icon-button.ghost {
  color: var(--ink);
  background: #ececec;
  border-color: #d2d2d2;
  box-shadow: none;
}

button.ghost:hover,
.button-link.ghost:hover,
.icon-button.ghost:hover {
  background: #e1e1e1;
}

.hamburger-toggle {
  min-width: 110px;
}

.danger {
  color: #202124;
  background: #e6e6e6;
  border-color: #c9c9c9;
  box-shadow: 0 6px 14px rgba(32, 33, 36, 0.12);
}

.danger:hover {
  background: #dbdbdb;
  box-shadow: 0 9px 18px rgba(32, 33, 36, 0.16);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.toolbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.toolbar-sticky {
  padding: 6px 0 2px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(252, 250, 245, 0.96) 75%, rgba(252, 250, 245, 0));
  z-index: 3;
}

.segmented-controls {
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.segmented-controls button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #2a2b2d;
  background: #e6e6e6;
  border-color: #d0d0d0;
  box-shadow: none;
}

.button-row [data-filter].is-active {
  color: #202124;
  background: #d7d7d7;
  border-color: #bdbdbd;
}

.guest-search-field {
  min-width: min(100%, 240px);
}

.guest-search-field input {
  min-height: 42px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.table-shell-compact {
  max-height: 360px;
}

.data-table {
  min-width: 100%;
  font-size: 0.86rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 7px 9px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(24, 38, 31, 0.08);
  line-height: 1.2;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.74rem;
  color: var(--ink-soft);
  background: rgba(247, 244, 237, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover {
  background: rgba(13, 122, 95, 0.04);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.sort-btn {
  all: unset;
  cursor: pointer;
  color: inherit;
}

.cell-main {
  font-weight: 700;
  line-height: 1.15;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-zugesagt {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: rgba(13, 122, 95, 0.14);
}

.status-offen {
  color: #8a5513;
  background: var(--warn-soft);
  border-color: rgba(201, 111, 27, 0.16);
}

.status-abgesagt {
  color: var(--danger-dark);
  background: var(--danger-soft);
  border-color: rgba(179, 65, 47, 0.15);
}

.type-pill {
  font-size: 0.68rem;
  min-height: 22px;
  padding: 0 8px;
  color: var(--ink-soft);
}

.finance-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
}

.finance-card {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.finance-card span {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-card strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.checklist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.checklist li.is-done {
  opacity: 0.72;
}

.checklist-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.checklist-label span {
  display: grid;
  gap: 1px;
}

.checklist-label strong {
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.1;
}

.checklist-label small {
  font-size: 0.71rem;
  color: var(--ink-soft);
  line-height: 1.15;
}

.check-toggle {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.table-shell .small,
.checklist .small,
.inline-edit-panel .small {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.7rem;
  line-height: 1;
}

.table-shell .row-actions,
.checklist .row-actions {
  gap: 6px;
}

.table-shell form,
.checklist form {
  margin: 0;
}

.data-table td[data-label='Aktion'] {
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 24px;
  background: rgba(24, 38, 31, 0.34);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(460px, 100%);
  margin: 8vh auto 0;
  padding: 18px;
  background: var(--bg-strong);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: riseIn 0.18s ease-out;
}

.modal-actions {
  justify-content: flex-end;
}

.icon-button {
  min-height: 38px;
  padding: 8px 12px;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-shell {
  width: min(460px, 100%);
}

.login-panel {
  padding: 28px;
  animation: riseIn 0.24s ease-out;
}

.login-panel h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 10px;
}

.login-note {
  margin-top: 14px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100vw - 16px, 1500px);
    padding-top: 10px;
  }

  .panel-hero {
    flex-direction: column;
    padding: 18px;
    position: static;
    top: auto;
  }

  .hero-actions,
  .compact {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .summary-strip,
  .side-rail {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    gap: 10px;
  }

  .workspace-grid {
    gap: 12px;
  }

  .panel-hero {
    gap: 16px;
  }

  .compact-form-guests,
  .compact-form-program,
  .compact-form-checklist {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .toolbar-main,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-card strong {
    font-size: 1.35rem;
  }

  .floating-parameter-menu {
    position: static;
    margin-bottom: 12px;
  }

  .parameter-drawer {
    width: 100%;
    max-width: none;
  }

  .table-shell {
    border-radius: 16px;
  }

  th,
  td {
    padding: 6px 8px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100vw - 10px);
    padding-bottom: 20px;
  }

  .panel {
    padding: 14px;
  }

  .panel,
  .summary-card,
  .modal-card,
  .login-panel {
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .meta-row,
  .hero-actions,
  .row-actions,
  .button-row {
    width: 100%;
  }

  .summary-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .segmented-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 18px;
  }

  .segmented-controls button {
    width: 100%;
  }

  .guest-search-field {
    width: 100%;
    min-width: 0;
  }

  .hero-actions .button-link,
  .hero-actions button,
  .row-actions form,
  .row-actions button,
  .row-actions .ghost,
  .inline-edit-actions button {
    flex: 1 1 auto;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .table-shell {
    padding: 0;
  }

  input,
  select,
  button,
  .button-link {
    min-height: 50px;
  }

  th,
  td {
    padding: 8px;
  }

  .modal {
    padding: 12px;
  }

  .table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .floating-parameter-menu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .parameter-drawer {
    width: 100%;
    max-height: none;
    overflow: visible;
    border-radius: 22px;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 8px;
  }

  .data-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
  }

  .data-table td {
    display: grid;
    gap: 3px;
    padding: 0;
    border-bottom: 0;
    width: 100%;
    max-width: none;
    white-space: normal;
    align-content: start;
  }

  .data-table td > * {
    min-width: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-soft);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
  }

  .data-table td:empty {
    display: none;
  }

  .data-table td[data-label='#'] {
    display: none;
  }

  .data-table td[data-label='#']::before {
    display: none;
  }

  .data-table td[data-label='Aktion'] {
    grid-column: 1 / -1;
    margin-top: 2px;
    display: block;
  }

  .data-table td[data-label='Aktion']::before {
    margin-bottom: 4px;
  }

  .data-table td[data-label='Aktion'] .row-actions,
  .data-table td[data-label='Aktion'] .row-actions-compact {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .data-table td[data-label='Aktion'] .row-actions form,
  .data-table td[data-label='Aktion'] .row-actions-compact form,
  .data-table td[data-label='Aktion'] .row-actions button,
  .data-table td[data-label='Aktion'] .row-actions-compact button {
    width: auto;
    flex: 1 1 0;
  }

  .data-table-guests tr {
    grid-template-areas:
      'name status'
      'type age'
      'action action';
  }

  .data-table-guests td[data-label='Name'] {
    grid-area: name;
  }

  .data-table-guests td[data-label='Name']::before,
  .data-table-guests td[data-label='Status']::before {
    display: none;
  }

  .data-table-guests td[data-label='Name'] .cell-main {
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .data-table-guests td[data-label='Status'] {
    grid-area: status;
    justify-items: end;
    text-align: right;
  }

  .data-table-guests td[data-label='Typ'] {
    grid-area: type;
  }

  .data-table-guests td[data-label='Alter'] {
    grid-area: age;
  }

  .data-table-guests td[data-label='Typ'],
  .data-table-guests td[data-label='Alter'] {
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(24, 38, 31, 0.04);
  }

  .section-budget .compact-form-budget {
    gap: 8px;
    margin-bottom: 8px;
  }

  .section-budget .finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
  }

  .section-budget .finance-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: center;
    padding: 9px 10px;
  }

  .section-budget .finance-card strong {
    justify-self: end;
    font-size: 0.9rem;
  }

  .section-budget .table-shell-compact {
    max-height: none;
  }

  .data-table-finances tr {
    grid-template-areas:
      'category amount'
      'description description'
      'action action';
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 9px 10px;
  }

  .data-table-finances td[data-label='Beschreibung'] {
    grid-area: description;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .data-table-finances td[data-label='Beschreibung']::before,
  .data-table-finances td[data-label='Betrag']::before,
  .data-table-finances td[data-label='Kategorie']::before {
    display: none;
  }

  .data-table-finances td[data-label='Betrag'] {
    grid-area: amount;
    justify-items: end;
    align-self: center;
    text-align: right;
    font-weight: 800;
    color: var(--accent-dark);
  }

  .data-table-finances td[data-label='Kategorie'] {
    grid-area: category;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(24, 38, 31, 0.05);
    color: var(--ink-soft);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .data-table-program tr {
    grid-template-areas:
      'start activity'
      'details details'
      'action action';
    grid-template-columns: auto minmax(0, 1fr);
  }

  .data-table-program td[data-label='Start'] {
    grid-area: start;
  }

  .data-table-program td[data-label='Aktivität'] {
    grid-area: activity;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .data-table-program td[data-label='Details'] {
    grid-area: details;
    color: var(--ink-soft);
  }

  .data-table-program td[data-label='Start']::before,
  .data-table-program td[data-label='Aktivität']::before {
    display: none;
  }

  .status-pill,
  .type-pill,
  .time-pill {
    min-height: 24px;
    padding: 0 10px;
  }

  .checklist li,
  .checklist-label,
  .inline-edit-actions {
    width: 100%;
  }

  .checklist {
    gap: 10px;
  }

  .checklist li.checklist-item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .checklist-label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .checklist .checklist-label .checklist-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .checklist-label strong {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .checklist-label small {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .check-toggle {
    width: 20px;
    height: 20px;
    margin-top: 2px;
  }

  .checklist .checklist-item-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .checklist .checklist-item-actions form,
  .checklist .checklist-item-actions button {
    flex: 1 1 0;
  }

  .checklist .checklist-item-actions form button {
    width: 100%;
  }

  .table-shell .small,
  .checklist .small {
    min-height: 28px;
    font-size: 0.66rem;
  }

  .table-shell .row-actions button,
  .table-shell .row-actions-compact button {
    min-height: 28px;
    padding: 4px 8px;
  }

  .counter.compact,
  .table-hint {
    width: 100%;
  }

  .inline-edit-panel {
    padding: 10px;
  }
}
