/* ═══════════════════════════════════════════
   Trips-Modul Styles
   ═══════════════════════════════════════════ */

/* Dashboard */
.trip-dashboard { padding: 1.5rem 2rem; }
.trip-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.trip-dashboard-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.trip-dashboard-actions { display: flex; gap: 6px; align-items: center; }

.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ── Trip Card ── */
.trip-card {
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

.trip-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.375rem;
}
.trip-card-status {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.trip-status-planning {
  background: rgba(59,130,246,0.10);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.15);
}
.trip-status-completed {
  background: rgba(13,148,136,0.10);
  color: var(--accent);
  border: 1px solid rgba(13,148,136,0.15);
}

.trip-card-body { padding: 0.875rem 1rem; }
.trip-card-title {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trip-card-dates {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.trip-card-dates i { color: var(--text-very-muted); }
.trip-card-countdown {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(13,148,136,0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

/* Stats-Zeile: Tage + Stops */
.trip-card-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 0.625rem;
}
.trip-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}
.trip-card-stat i { color: var(--text-very-muted); }

/* Kosten-Breakdown */
.trip-card-costs {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(60,66,80,0.06);
}
.trip-card-cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  padding: 1px 0;
}
.trip-card-cost-label { color: var(--text-muted); }
.trip-card-cost-val { color: var(--text-secondary); }
.trip-card-cost-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 3px;
  margin-top: 3px;
  border-top: 1px solid rgba(13,148,136,0.1);
}

/* ── Detail View ── */
.trip-detail { height: 100%; display: flex; flex-direction: column; }

/* ── Warning-Bar (Mobile Hints) ── */
.trip-hd-warn-bar {
  display: none; /* Nur auf Mobile sichtbar */
  background: rgba(217,119,6,0.06);
  padding: 7px 14px;
  font-size: 10px;
  color: #D97706;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.trip-hd-warn-bar .trip-hd-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}
.trip-hd-warn-bar .trip-hd-hint--clickable { cursor: pointer; }
.trip-hd-warn-bar .trip-hd-hint--clickable:hover { text-decoration: underline; }

/* ── Overflow-Menü (Mobile Aktionen) ── */
.trip-hd-overflow {
  display: none; /* Nur auf Mobile sichtbar */
  position: relative;
  flex-shrink: 0;
}
.trip-hd-overflow-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(60,66,80,0.05);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.trip-hd-overflow-btn::-webkit-details-marker { display: none; }
.trip-hd-overflow-btn::marker { display: none; content: ''; }
.trip-hd-overflow-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.10);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 20;
  min-width: 160px;
  overflow: hidden;
}
.trip-hd-overflow-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}
.trip-hd-overflow-item:hover { background: rgba(60,66,80,0.04); }
.trip-hd-overflow-item--danger { color: var(--danger); }

/* ── Compact Day Cards (Mobile) ── */
.trip-dc-compact {
  display: flex;
  align-items: center;
  cursor: pointer;
  min-height: 56px;
  transition: box-shadow 0.15s;
}
.trip-dc-compact:active { box-shadow: 0 0 0 2px rgba(13,148,136,0.2); }
.trip-dc-compact-body {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
}
.trip-dc-compact-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trip-dc-compact-sub {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}
.trip-dc-compact-warn {
  font-size: 10px;
  color: var(--warning);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}
.trip-dc-compact-chevron {
  flex-shrink: 0;
  padding: 0 10px;
  color: var(--text-very-muted);
  font-size: 16px;
}

/* ── Expanded Day Card Form (Mobile) ── */
.trip-dc-expand-form {
  padding: 10px;
  border-top: 1px solid rgba(60,66,80,0.06);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.trip-dc-compact.trip-dc-expanded .trip-dc-expand-form {
  max-height: 500px;
}
.trip-dc-compact.trip-dc-expanded {
  box-shadow: 0 2px 12px rgba(13,148,136,0.10);
  border-radius: 12px;
}
.trip-dc-compact.trip-dc-expanded .trip-dc-compact-chevron { color: var(--accent); }
.trip-dc-expand-section { margin-bottom: 14px; }
.trip-dc-expand-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.trip-dc-expand-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid rgba(60,66,80,0.12);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--content-bg);
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.trip-dc-expand-input:focus {
  outline: none;
  border-color: var(--accent);
}
.trip-dc-expand-input-row {
  display: flex;
  gap: 8px;
}
.trip-dc-expand-input-row .trip-dc-expand-input { flex: 1; }
.trip-dc-expand-eur {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
}
.trip-dc-expand-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(60,66,80,0.06);
}
.trip-dc-expand-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  border: none;
  background: rgba(60,66,80,0.05);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
}
.trip-dc-expand-btn:active { background: rgba(60,66,80,0.10); }
.trip-dc-expand-btn--danger {
  flex: 0 0 auto;
  background: rgba(229,83,75,0.06);
  color: var(--danger);
}

/* ── Map-Toggle (Mobile) ── */
.trip-map-toggle {
  display: none; /* Nur auf Mobile sichtbar */
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: rgba(13,148,136,0.04);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid rgba(60,66,80,0.08);
  text-align: center;
}
/* ═══════════════════════════════════════════
   Trip Detail Header — 3-Zonen-Layout
   ═══════════════════════════════════════════ */

.trip-detail-header {
  background: var(--card-bg);
  border-bottom: 1px solid rgba(60,66,80,0.07);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Zeile 1: Zurück + Titel + Status + Aktionen ── */
.trip-hd-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trip-hd-back {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius);
  display: flex;
  transition: color 120ms, background 120ms;
  flex-shrink: 0;
}
.trip-hd-back:hover { color: var(--text-primary); background: rgba(60,66,80,0.05); }
.trip-hd-back svg { width: 16px; height: 16px; }
.trip-hd-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  outline: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 150ms;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.trip-hd-name:focus { border-bottom-color: var(--accent); }
.trip-hd-status {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  margin-right: auto;
}

/* Aktions-Buttons — einheitliche Icon-Buttons */
.trip-hd-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.trip-hd-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 120ms, background 120ms;
}
.trip-hd-action svg { width: 15px; height: 15px; }
.trip-hd-action:hover {
  color: var(--text-primary);
  background: rgba(60,66,80,0.06);
}
.trip-hd-action--danger:hover {
  color: var(--danger);
  background: rgba(229,83,75,0.06);
}

/* ── Zeile 2: Meta-Infos + Hints ── */
.trip-hd-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 28px; /* bündig mit Titel (nach Zurück-Button) */
  flex-wrap: wrap;
}
.trip-hd-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.trip-hd-stat i { color: var(--text-very-muted); }
.trip-hd-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(60,66,80,0.2);
  flex-shrink: 0;
}
.trip-hd-stat--editable {
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 8px;
  margin: -2px -8px;
  transition: background 120ms;
}
.trip-hd-stat--editable:hover {
  background: rgba(60,66,80,0.06);
}
.trip-hd-date-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.trip-hd-stat--accent {
  color: var(--accent);
  font-weight: 600;
}
.trip-hd-stat--accent i { color: var(--accent); opacity: 0.6; }

/* Hints inline nach Stats */
.trip-hd-hints-sep {
  width: 1px;
  height: 14px;
  background: rgba(217,119,6,0.2);
  flex-shrink: 0;
}
.trip-hd-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--warning);
  white-space: nowrap;
}
.trip-hd-hint i { opacity: 0.7; }

.trip-detail-body { display: flex; flex: 1; overflow: hidden; }
.trip-detail-left { flex: 3; overflow-y: auto; padding: 1.25rem; }
.trip-detail-right {
  flex: 2;
  position: sticky;
  top: 0;
  border-left: 1px solid rgba(60,66,80,0.08);
  display: flex;
  flex-direction: column;
  background: rgba(240,242,245,0.5);
}

/* ── Etappen ── */
/* ── Druck-Optionen-Dialog ── */
.trip-print-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trip-print-modal {
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.12);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.trip-print-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(60,66,80,0.08);
}
.trip-print-modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.trip-print-modal-body {
  padding: 16px;
}
.trip-print-preview-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.trip-print-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trip-print-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 120ms;
}
.trip-print-opt:hover {
  background: rgba(60,66,80,0.03);
}
.trip-print-opt input {
  flex-shrink: 0;
  accent-color: var(--accent);
}
.trip-print-opt span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-primary);
}
.trip-print-opt span i {
  color: var(--text-muted);
}
.trip-print-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(60,66,80,0.08);
}

/* ── Reise-Notiz Panel ── */
.notes-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  background: rgba(13,148,136,0.02);
  border: 1px solid rgba(13,148,136,0.12);
  border-radius: 5px;
}
.notes-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(13,148,136,0.06);
  border-bottom: 1px solid rgba(13,148,136,0.10);
  border-radius: 4px 4px 0 0;
  flex-shrink: 0;
}
.notes-panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notes-panel-title {
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}
.notes-panel-editor {
  flex: 1;
  overflow-y: auto;
}
.notes-panel-editor .ql-editor {
  font-size: 13px;
  padding: 14px 16px;
  min-height: 300px;
}
.notes-panel-editor .ql-toolbar {
  border: none;
  border-bottom: 1px solid rgba(13,148,136,0.08);
  padding: 6px 12px;
}
.notes-panel-editor .ql-container {
  border: none;
}

/* ── Karte Expanded ── */
.trip-detail-map-expanded .trip-detail-left {
  display: none;
}
.trip-detail-map-expanded .trip-detail-right {
  flex: 1;
  min-height: 500px;
}

/* ── Durchschnitts-KPIs ── */
.trip-kpi-avg .trip-kpi-val {
  font-size: 13px;
  color: var(--text-secondary);
}
.trip-kpi-avg .trip-kpi-icon {
  color: var(--text-very-muted);
}

/* Vollständigkeits-Hinweise (im Header, Zeile 3) */
.trip-dh-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 16px 10px 44px; /* links eingerückt wie Titleblock (back 28px + gap 16px ≈ 44px) */
}
.trip-dh-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--warning);
  background: rgba(217,119,6,0.06);
  white-space: nowrap;
  transition: background 120ms;
}
.trip-dh-hint:hover {
  background: rgba(217,119,6,0.12);
}

.trip-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
}
.trip-table-header h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trip-etappen {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Day Card ── */
.trip-day-card {
  display: flex;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.07);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.trip-day-card:hover {
  border-color: rgba(13,148,136,0.20);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* Visuelle Gruppierung: Fahrtage teal, Ruhetage grau */
.trip-dc-drive { border-left: 3px solid var(--accent); }
.trip-dc-rest { border-left: 3px solid #d1d5db; opacity: 0.75; }
.trip-dc-rest:hover { opacity: 1; }

/* Ruhetag: gleiche Struktur, kompakter */
.trip-dc-rest .trip-dc-main { min-height: 36px; }
.trip-dc-loc-rest { max-width: none; }

/* Datum */
.trip-dc-date {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  background: rgba(13,148,136,0.04);
  border-right: 1px solid rgba(60,66,80,0.05);
  position: relative;
  cursor: pointer;
  transition: background 0.12s;
}
.trip-dc-date:hover { background: rgba(13,148,136,0.08); }
.trip-dc-weekday { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); line-height: 1; }
.trip-dc-daynum { font-size: 18px; font-weight: 800; line-height: 1.15; color: var(--text-primary); }
.trip-dc-month { font-size: 9px; color: var(--text-muted); text-transform: uppercase; line-height: 1; }
.trip-dc-date-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Duplikat-Markierung */
.trip-dc-duplicate { border-left: 3px solid var(--warning); }
.trip-dc-duplicate .trip-dc-date { position: relative; }
.trip-dc-dup-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--warning);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Warning-Badge an Etappen-Cards */
.trip-dc-warn { border-left-color: var(--warning) !important; }
.trip-dc-warn-badge {
  display: flex;
  align-items: center;
  color: var(--warning);
  flex-shrink: 0;
}
.trip-dc-warn-badge svg { width: 14px; height: 14px; }

/* Flash-Animation beim Klick auf Header-Hint */
.trip-dc-flash {
  animation: trip-card-flash 1.5s ease;
}
@keyframes trip-card-flash {
  0%, 100% { box-shadow: none; }
  15%, 50% { box-shadow: 0 0 0 2px var(--warning), 0 4px 12px rgba(217,119,6,0.15); }
}

/* Klickbare Hints */
.trip-hd-hint--clickable {
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
  transition: background 120ms;
}
.trip-hd-hint--clickable:hover { background: rgba(217,119,6,0.08); }

/* no_hotel: "Keine Übernachtung" Label */
.trip-dc-no-hotel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.trip-dc-no-hotel-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.trip-dc-no-hotel-undo {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-very-muted);
  display: flex;
  padding: 2px;
  transition: color 120ms;
}
.trip-dc-no-hotel-undo:hover { color: var(--accent); }
.trip-dc-no-hotel-undo svg { width: 12px; height: 12px; }

/* "Kein Hotel" Button */
.trip-dc-no-hotel-btn {
  background: none;
  border: 1px dashed rgba(60,66,80,0.15);
  border-radius: 3px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 1px 6px;
  transition: color 120ms, border-color 120ms;
  white-space: nowrap;
}
.trip-dc-no-hotel-btn:hover { color: var(--accent); border-color: rgba(13,148,136,0.3); }
.trip-dc-hotel-row2 { display: flex; align-items: center; gap: 4px; }

/* Body */
.trip-dc-body {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Hauptzeile: Route links + Hotel rechts */
.trip-dc-main {
  display: flex;
  align-items: stretch;
  min-height: 44px;
  padding: 0 8px;
}

/* Route-Bereich (links, flexibel) */
.trip-dc-route {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.trip-dc-loc-input {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 5px;
  border-radius: 4px;
  min-width: 0;
  flex: 1;
  transition: all 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trip-dc-loc-input:hover { background: rgba(60,66,80,0.03); }
.trip-dc-loc-input:focus { border-color: var(--accent); background: var(--card-bg); outline: none; }
.trip-dc-loc-end { text-align: right; }

.trip-dc-arrow {
  display: flex;
  align-items: center;
  padding: 0 2px;
  flex-shrink: 0;
  min-width: 50px;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.12s;
}
.trip-dc-arrow:hover { background: rgba(13,148,136,0.04); }
.trip-dc-line {
  flex: 1;
  height: 2px;
  min-width: 6px;
  background: rgba(13,148,136,0.20);
  border-radius: 1px;
}
.trip-dc-arrow-open .trip-dc-line { background: var(--accent); opacity: 0.4; }

/* Route-Pill */
.trip-dc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  white-space: nowrap;
  background: rgba(13,148,136,0.06);
  border-radius: 12px;
  font-size: 11px;
}
.trip-dc-pill-clickable { cursor: pointer; }
.trip-dc-pill-clickable:hover { background: rgba(13,148,136,0.12); }
.trip-dc-pill-stops { color: #d97706; font-weight: 700; }
.trip-dc-pill-km { color: var(--accent); font-weight: 700; }
.trip-dc-pill-time { color: var(--text-secondary); }

/* Hotel-Block (rechts, feste Breite) */
.trip-dc-hotel-col {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
  margin-left: 8px;
  border-left: 1px solid rgba(60,66,80,0.08);
}
.trip-dc-hotel-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.trip-dc-hotel-name,
.trip-dc-hotel-portal,
.trip-dc-hotel-price {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 1px 3px;
  border-radius: 3px;
  min-width: 0;
  transition: all 0.12s;
}
.trip-dc-hotel-name::placeholder,
.trip-dc-hotel-portal::placeholder,
.trip-dc-hotel-price::placeholder { color: var(--text-very-muted); }
.trip-dc-hotel-name:hover,
.trip-dc-hotel-portal:hover,
.trip-dc-hotel-price:hover { background: rgba(60,66,80,0.03); }
.trip-dc-hotel-name:focus,
.trip-dc-hotel-portal:focus,
.trip-dc-hotel-price:focus { border-color: var(--accent); background: var(--card-bg); outline: none; color: var(--text-primary); }
.trip-dc-hotel-name { flex: 1; font-weight: 500; }
.trip-dc-hotel-price { width: 58px; flex-shrink: 0; text-align: right; font-weight: 600; color: var(--text-primary); margin-left: auto; }
.trip-dc-eur { font-size: 10px; color: var(--text-muted); flex-shrink: 0; margin-left: 1px; }
.trip-dc-hotel-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--accent);
  margin-left: 4px;
  opacity: 0.6;
  transition: opacity 0.12s;
}
.trip-dc-hotel-search:hover { opacity: 1; }
.trip-dc-hotel-search svg { width: 12px; height: 12px; }
.trip-dc-hotel-portal { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* Detail-Panel (Waypoints + Notiz) */
.trip-dc-detail-panel {
  border-top: 1px solid rgba(60,66,80,0.06);
  padding: 10px 12px;
  background: rgba(240,242,245,0.4);
  animation: trip-panel-slide 0.15s ease;
}
@keyframes trip-panel-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Etappen-Darstellung (Farbe + Icon) ── */
.trip-dc-style-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.06);
  border-radius: 6px;
}
.trip-dc-style-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.trip-dc-color-dots { display: flex; gap: 5px; margin-right: 6px; }
.trip-dc-color-dot {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all 120ms ease;
  box-sizing: border-box;
}
.trip-dc-color-dot:hover { transform: scale(1.2); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.trip-dc-color-dot--active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--text-secondary), 0 2px 6px rgba(0,0,0,0.15);
  transform: scale(1.1);
}
.trip-dc-icon-dots {
  display: flex; gap: 3px; flex-wrap: wrap; margin-right: 12px;
}
.trip-dc-icon-dot {
  width: 24px; height: 24px; border-radius: 5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(60,66,80,0.08); background: var(--card-bg);
  color: var(--text-muted); font-size: 9px; font-weight: 600;
  transition: all 120ms; box-sizing: border-box;
}
.trip-dc-icon-dot svg { stroke: var(--text-muted); }
.trip-dc-icon-dot:hover {
  border-color: rgba(13,148,136,0.3); background: rgba(13,148,136,0.04);
  transform: scale(1.1);
}
.trip-dc-icon-dot:hover svg { stroke: var(--accent); }
.trip-dc-icon-dot--active {
  border-color: var(--accent); background: rgba(13,148,136,0.08);
  color: var(--accent); box-shadow: 0 0 0 1px rgba(13,148,136,0.2);
}
.trip-dc-icon-dot--active svg { stroke: var(--accent); }

.trip-dc-detail-cols {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.trip-dc-detail-left {
  flex: 1;
  min-width: 0;
  padding: 8px 12px 8px 10px;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.06);
  border-radius: 6px 0 0 6px;
  border-right: none;
}
.trip-dc-detail-right {
  flex: 1;
  min-width: 0;
  padding: 8px 10px 8px 12px;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.06);
  border-radius: 0 6px 6px 0;
  border-left: 1px solid rgba(60,66,80,0.06);
  display: flex;
  flex-direction: column;
}
.trip-dc-detail-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(60,66,80,0.05);
}

/* Waypoints */
.trip-wp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 5px;
  transition: background 0.12s;
  font-size: 12px;
}
.trip-wp-row:hover { background: rgba(60,66,80,0.04); }
.trip-wp-row + .trip-wp-row { border-top: 1px solid rgba(60,66,80,0.04); }
.trip-wp-drag { cursor: grab; color: var(--text-very-muted); font-size: 10px; flex-shrink: 0; user-select: none; opacity: 0; transition: opacity 0.12s; }
.trip-wp-row:hover .trip-wp-drag { opacity: 0.6; }
.trip-wp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d97706; flex-shrink: 0;
}
.trip-wp-name { flex: 1; color: var(--text-primary); font-weight: 500; }
.trip-wp-km { color: var(--accent); font-weight: 600; font-size: 11px; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.trip-wp-time { color: var(--text-muted); font-size: 11px; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.trip-wp-remove { padding: 2px; flex-shrink: 0; opacity: 0; transition: opacity 0.12s; }
.trip-wp-row:hover .trip-wp-remove { opacity: 0.6; }
.trip-wp-input {
  font-size: 11px;
  padding: 5px 8px;
  margin-top: 6px;
  width: 100%;
  border-radius: 5px;
  border: 1px dashed rgba(60,66,80,0.12);
  background: rgba(240,242,245,0.5);
  color: var(--text-secondary);
  transition: all 150ms;
}
.trip-wp-input::placeholder { color: var(--text-very-muted); }
.trip-wp-input:focus { border-style: solid; border-color: var(--accent); background: var(--card-bg); outline: none; box-shadow: 0 0 0 2px rgba(13,148,136,0.08); }


/* Aktionen */
.trip-dc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 6px 2px 0;
  flex-shrink: 0;
}
.trip-dc-act-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  color: var(--text-very-muted);
  transition: all 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trip-dc-act-btn svg { width: 13px; height: 13px; }
.trip-dc-act-btn:hover { color: var(--text-secondary); background: rgba(60,66,80,0.05); }
.trip-dc-act-del { opacity: 0; transition: opacity 0.12s; }
.trip-dc-act-del:hover { color: var(--danger); }
.trip-day-card:hover .trip-dc-act-del { opacity: 1; }

/* "+ Etappe" Button unter den Cards */
.trip-add-day-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 0;
  margin-top: 6px;
  border: 1px dashed rgba(60,66,80,0.12);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.trip-add-day-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(13,148,136,0.03); }
.trip-add-day-btn svg { width: 14px; height: 14px; }

/* Expand-All Button */
.trip-expand-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-very-muted);
  padding: 3px;
  border-radius: 4px;
  display: flex;
  transition: all 0.12s;
}
.trip-expand-btn svg { width: 14px; height: 14px; }
.trip-expand-btn:hover { color: var(--accent); background: rgba(13,148,136,0.06); }

/* Note Editor (im Detail-Panel) */
.trip-dc-note-editor { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.trip-dc-note-editor .ql-toolbar { border: none; border-bottom: 1px solid rgba(60,66,80,0.06); padding: 2px 0; flex-shrink: 0; }
.trip-dc-note-editor .ql-container { border: none; font-size: 12px; flex: 1; overflow-y: auto; }
.trip-dc-note-editor .ql-editor { padding: 4px 0; min-height: 40px; }
.trip-dc-note-editor .ql-editor.ql-blank::before { font-style: normal; color: var(--text-very-muted); font-size: 12px; }
.trip-note-btn { color: var(--text-very-muted); }
.trip-note-btn:hover { color: var(--text-secondary); }
.trip-note-active { color: var(--accent) !important; }

/* ── Extras Panel ── */
.trip-extras-panel { margin-top: 1.25rem; }
.trip-ex-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
}
.trip-ex-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.trip-ex-title svg { width: 12px; height: 12px; }
.trip-ex-add {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(60,66,80,0.10);
  border-radius: var(--radius);
  padding: 3px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: all 0.12s;
}
.trip-ex-add:hover { color: var(--accent); border-color: rgba(13,148,136,0.3); }
.trip-ex-add svg { width: 13px; height: 13px; }

/* Extras-Liste */
.trip-ex-list { display: flex; flex-direction: column; gap: 6px; }
.trip-ex-empty {
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 12px 0;
  text-align: center;
}

/* Einzelne Extra-Card — gleicher Stil wie Day-Cards */
.trip-ex-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.07);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.trip-ex-card:hover {
  border-color: rgba(13,148,136,0.20);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trip-ex-icon { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; opacity: 0.6; }
.trip-ex-select {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 85px;
  flex-shrink: 0;
  padding: 2px 2px;
}
.trip-ex-select:hover { background: rgba(60,66,80,0.03); }
.trip-ex-select:focus { outline: none; border-color: var(--accent); color: var(--text-primary); }
.trip-ex-label {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  min-width: 0;
  color: var(--text-primary);
}
.trip-ex-label:hover { background: rgba(60,66,80,0.03); }
.trip-ex-label:focus { border-color: var(--accent); background: var(--card-bg); outline: none; }
.trip-ex-price-wrap { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.trip-ex-price {
  width: 68px;
  text-align: right;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}
.trip-ex-price:hover { background: rgba(60,66,80,0.03); }
.trip-ex-price:focus { border-color: var(--accent); background: var(--card-bg); outline: none; }
.trip-ex-eur { font-size: 10px; color: var(--text-muted); }
.trip-ex-del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-very-muted);
  opacity: 0;
  transition: opacity 0.1s, color 0.1s;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
}
.trip-ex-del svg { width: 13px; height: 13px; }
.trip-ex-card:hover .trip-ex-del { opacity: 1; }
.trip-ex-del:hover { color: var(--danger); }

/* Footer: Summe */
.trip-ex-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-top: 4px;
  border-top: 1px solid rgba(60,66,80,0.06);
}
.trip-ex-footer-label {
  font-size: 11px;
  color: var(--text-muted);
}
.trip-ex-footer-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ── KPI Summary ── */
.trip-cost-summary {
  display: flex;
  gap: 0;
  margin-top: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.trip-kpi {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-right: 1px solid rgba(60,66,80,0.06);
}
.trip-kpi:last-child { border-right: none; }
.trip-kpi-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.trip-kpi-data { display: flex; flex-direction: column; gap: 0; }
.trip-kpi-val { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.trip-kpi-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.trip-kpi-total { background: rgba(13,148,136,0.04); }
.trip-kpi-total .trip-kpi-icon { color: var(--accent); }
.trip-kpi-total .trip-kpi-val { color: var(--accent); }

/* Map styles → trips-map.css */

/* ── Buttons ── */
.trip-btn {
  padding: 0.4375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.12);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.15s;
}
.trip-btn:hover { background: var(--card-hover); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.trip-btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(13,148,136,0.25);
}
.trip-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 3px 8px rgba(13,148,136,0.30);
  transform: translateY(-1px);
}
.trip-btn-accent {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: background 0.15s;
}
.trip-btn-accent:hover { background: var(--accent-hover, #0B7C72); }

.trip-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 3rem;
}
.trip-empty-icon { margin-bottom: 1rem; color: var(--text-muted); opacity: 0.4; }
.trip-empty-icon svg { width: 48px; height: 48px; }
.trip-empty-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.trip-empty-text { font-size: 0.875rem; color: var(--text-muted); max-width: 320px; line-height: 1.5; margin-bottom: 1.5rem; }

.trip-btn-icon {
  padding: 0.375rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.15s;
}
.trip-btn-icon:hover { background: rgba(60,66,80,0.06); color: var(--text-primary); }

/* ── Dialog ── */
.trip-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,36,53,0.40);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: trip-fade-in 0.15s ease;
}
@keyframes trip-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes trip-slide-up {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.trip-dialog-content {
  background: var(--card-bg);
  border: 1px solid rgba(60,66,80,0.08);
  border-radius: 14px;
  padding: 1.75rem;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.06);
  color: var(--text-primary);
  animation: trip-slide-up 0.2s ease;
}
.trip-dialog-content h3 {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.trip-form-group { margin-bottom: 1rem; }
.trip-form-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trip-form-row { display: flex; gap: 0.875rem; }
.trip-form-row .trip-form-group { flex: 1; }
.trip-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(60,66,80,0.06);
}

.trip-input {
  width: 100%;
  padding: 0.5625rem 0.875rem;
  background: var(--content-bg);
  border: 1px solid rgba(60,66,80,0.12);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.trip-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.08);
}
.trip-input::placeholder { color: var(--text-very-muted); }

/* ─── Responsive: Tablet (≤1024px) ─── */
@media (max-width: 1024px) {
  .trip-detail-body { flex-direction: column; }
  .trip-detail-left { flex: none; }
  .trip-detail-right {
    flex: none;
    height: 350px;
    border-left: none;
    border-top: 1px solid rgba(60,66,80,0.08);
  }
  .trip-dc-hotel-col { min-width: 160px; }
}

/* Mobile styles → trips-mobile.css */


/* Route Sketcher + Etappen-Generator → trips-map.css */

/* POI styles → trips-poi.css */
