/* Gemeinsame Seitentitel, Aktionen und Formulare. Fach-CSS darf diese Regeln nicht neu definieren. */
.app-view {
  color: var(--text);
  font-size: var(--font-size-md);
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-accent-soft) 100%);
}

.page-heading > div:first-child {
  min-width: 0;
}

.page-heading h1 {
  font-size: var(--font-size-xl);
  line-height: 1.12;
}

.page-heading .lead {
  max-width: 630px;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.55;
}

.eyebrow,
.section-kicker {
  color: var(--purple);
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.025em;
}

.page-heading .heading-actions {
  display: grid;
  width: min(470px, 100%);
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.page-heading > .compact-select {
  width: min(280px, 100%);
}

.compact-select {
  display: grid;
  min-width: min(260px, 100%);
  gap: 6px;
  color: var(--muted);
  font-size: var(--font-size-xs);
  font-weight: 750;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: var(--control-height);
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: var(--control-radius);
  font-size: var(--font-size-sm);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: var(--text-on-accent);
  box-shadow: 0 6px 16px rgba(115, 86, 237, 0.18);
}

.primary-button:hover {
  border-color: var(--purple-strong);
  background: var(--purple-strong);
}

.secondary-button {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
  color: var(--purple-strong);
}

.danger-button {
  display: inline-flex;
  border: 1px solid var(--danger-border);
  background: var(--danger-surface);
  color: var(--danger-text);
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.icon-button {
  width: var(--touch-target);
  height: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: var(--control-radius);
}

.action-hint {
  position: fixed;
  z-index: 5000;
  max-width: min(260px, calc(100vw - 16px));
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  opacity: 0;
  background: var(--text);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-soft);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.action-hint.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.field,
.check-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field span,
.check-field span,
.compact-select > span {
  color: var(--muted);
  font-size: var(--font-size-xs);
  font-weight: 750;
}

.field input,
.field select,
.compact-select select,
.member-controls select,
.field textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}

.compact-select select {
  height: var(--control-height);
  line-height: normal;
}

.field input:focus,
.field select:focus,
.compact-select select:focus,
.field textarea:focus {
  border-color: var(--purple);
  background: var(--surface);
}

.field textarea {
  min-height: 112px;
  line-height: 1.5;
  resize: vertical;
}

.check-field {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.back-button,
.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.back-button {
  min-height: 36px;
  margin: -6px 0 6px;
  font-size: var(--font-size-sm);
}

.text-button {
  color: var(--purple);
  font-size: 0.78rem;
}

.heading-actions,
.actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trip-context-denied {
  display: none !important;
}
