/* ============================================
   REISEPLANER V2 – Modern Travel Design
   Design: Warm Gradient, Glassmorphism, Fluid
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warmes, einladendes Farbschema */
  --bg:          #FAF8F5;
  --bg-warm:     #F5F0EA;
  --surface:     #FFFFFF;
  --surface-2:   #F8F5F1;
  --surface-glass: rgba(255,255,255,0.65);
  --border:      rgba(0,0,0,0.06);
  --border-md:   rgba(0,0,0,0.10);
  --text:        #1A1A2E;
  --text-muted:  #7B7D8B;
  --text-light:  #B5B7C5;
  --accent:      #6366F1;
  --accent-2:    #8B5CF6;
  --accent-soft: rgba(99,102,241,0.08);
  --accent-mid:  rgba(99,102,241,0.16);
  --accent-glow: rgba(99,102,241,0.25);
  --ok:          #10B981;
  --ok-soft:     rgba(16,185,129,0.10);
  --warn:        #F59E0B;
  --warn-soft:   rgba(245,158,11,0.10);
  --danger:      #EF4444;
  --danger-soft: rgba(239,68,68,0.08);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --glass-bg:    rgba(255,255,255,0.72);
  --glass-border:rgba(255,255,255,0.55);
  --glass-blur:  blur(20px);
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 20px rgba(99,102,241,0.3);
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   22px;
  --radius-xl:   28px;
  --transition:  0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:       68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1rem; font-weight: 600; }

#app {
  max-width: 600px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  position: relative;
  background: var(--bg);
}

/* ── PAGES ──────────────────────────────────────────────────── */

.page {
  display: none; min-height: 100vh; min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + 1.5rem);
}
.page.active { display: block; animation: pageIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TOP BAR ────────────────────────────────────────────────── */

.top-bar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  color: var(--text); padding: 0.9rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  position: sticky; top: 0; z-index: 100;
}
.top-bar h1 { font-size: 1.1rem; color: var(--text); flex: 1; font-weight: 700; letter-spacing: -0.02em; }
.top-bar .subtitle { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

.back-btn {
  background: var(--surface); border: 1px solid var(--border-md); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.05rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.back-btn:hover { background: var(--surface-2); transform: scale(1.05); }
.back-btn:active { transform: scale(0.95); }

.top-btn {
  background: var(--surface); border: 1px solid var(--border-md); color: var(--text-muted);
  padding: 0.4rem 0.9rem; border-radius: 22px; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all var(--transition); white-space: nowrap; box-shadow: var(--shadow-xs);
}
.top-btn:hover { color: var(--text); background: var(--surface-2); }
.top-btn:active { transform: scale(0.96); }
.top-btn.accent { background: var(--accent); color: white; border-color: transparent; box-shadow: var(--shadow-accent); }
.top-btn.accent:hover { opacity: 0.92; }

/* ── BOTTOM NAV ─────────────────────────────────────────────── */

.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 600px; height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border); display: flex; z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border: none; background: none; cursor: pointer;
  color: var(--text-light); font-size: 0.62rem;
  font-family: 'Inter', sans-serif; font-weight: 500;
  transition: color var(--transition); padding: 0.5rem 0;
  position: relative;
}
.nav-item .nav-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-item .nav-icon svg { width: 20px; height: 20px; }
.nav-item.active { color: var(--accent); }
.nav-item.active .nav-icon { background: var(--accent-soft); transform: scale(1.08); }
.nav-item:active .nav-icon { transform: scale(0.88); }

.content { padding: 1.1rem 1.25rem; }

/* ── CARDS ──────────────────────────────────────────────────── */

.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card:active { transform: scale(0.985); }
.card-body { padding: 1.1rem; }

/* ── TRIP CARD ──────────────────────────────────────────────── */

.trip-card {
  margin-bottom: 1rem; cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trip-card:active { transform: scale(0.98); }

.trip-cover {
  height: 160px;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.trip-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.trip-card:hover .trip-cover img { transform: scale(1.04); }
.trip-cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: 0.25;
}
.trip-cover::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  pointer-events: none;
}
.trip-status-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 0.3rem 0.7rem; border-radius: 22px;
  font-size: 0.7rem; font-weight: 600; backdrop-filter: blur(12px);
  z-index: 2;
}
.status-planned  { background: rgba(255,255,255,0.88); color: #334155; }
.status-active   { background: rgba(16,185,129,0.9);   color: white; }
.status-completed{ background: rgba(99,102,241,0.9);   color: white; }
.status-archived { background: rgba(0,0,0,0.5);        color: rgba(255,255,255,0.9); }

.trip-info  { padding: 1rem 1.15rem 1.15rem; }
.trip-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.15rem; }
.trip-meta  { color: var(--text-muted); font-size: 0.78rem; display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 0.35rem; }
.trip-meta span { display: flex; align-items: center; gap: 0.25rem; }
.trip-stats { display: flex; gap: 1rem; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.trip-stat  { font-size: 0.75rem; color: var(--text-muted); }
.trip-stat strong { color: var(--text); font-size: 0.95rem; display: block; font-weight: 700; }

/* ── EMPTY STATE ────────────────────────────────────────────── */

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-icon  { font-size: 3.5rem; margin-bottom: 1rem; display: block; opacity: 0.5; }
.empty-state h3 { color: var(--text); margin-bottom: 0.5rem; font-size: 1.05rem; }

/* ── FAB ────────────────────────────────────────────────────── */

.fab {
  position: fixed; bottom: calc(var(--nav-h) + 1.25rem);
  right: max(1.25rem, calc(50% - 300px + 1.25rem));
  width: 56px; height: 56px;
  background: var(--gradient-hero);
  color: white;
  border: none; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
  box-shadow: var(--shadow-accent); z-index: 150;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 6px 28px rgba(99,102,241,0.45); }
.fab:active { transform: scale(0.92); }

/* ── STATION NAV ────────────────────────────────────────────── */

.station-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.station-nav-btn {
  display: flex; align-items: center; gap: 0.35rem;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--radius); padding: 0.55rem 0.85rem;
  cursor: pointer; color: var(--text); font-size: 0.8rem;
  transition: all var(--transition); max-width: 40%;
}
.station-nav-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--accent-mid); }
.station-nav-btn:active:not(:disabled) { transform: scale(0.97); }
.station-nav-btn:disabled { opacity: 0; pointer-events: none; }
.station-nav-arrow { font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }
.station-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-nav-pos { font-size: 0.72rem; color: var(--text-light); flex-shrink: 0; }

/* ── FORMS ──────────────────────────────────────────────────── */

.form-group { margin-bottom: 1rem; }
label.form-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 0.45rem;
}
.form-control {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--surface-2); border: 1.5px solid var(--border-md);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: all var(--transition);
}
.form-control:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── BUTTONS ────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.25rem; border-radius: var(--radius-sm); border: none;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition); letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: white; box-shadow: var(--shadow-accent); }
.btn-primary:hover { opacity: 0.92; }
.btn-accent  { background: var(--accent); color: white; box-shadow: var(--shadow-accent); }
.btn-accent:hover { opacity: 0.92; }
.btn-outline {
  background: var(--surface); border: 1.5px solid var(--border-md); color: var(--text-muted);
}
.btn-outline:hover { color: var(--text); background: var(--surface-2); border-color: var(--accent-mid); }
.btn-danger  { background: transparent; border: 1.5px solid rgba(239,68,68,0.25); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm   { padding: 0.4rem 0.8rem; font-size: 0.78rem; }
.btn-full { width: 100%; }

/* ── MODAL ──────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 500; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { width: 40px; height: 5px; background: var(--border-md); border-radius: 3px; margin: 0.9rem auto 0.6rem; }
.modal-header {
  padding: 0.6rem 1.3rem 0.85rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: var(--surface-2); border: 1px solid var(--border); width: 30px; height: 30px;
  border-radius: 50%; font-size: 0.9rem; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border-md); }
.modal-body   { padding: 1.15rem 1.3rem; }
.modal-footer { padding: 0 1.3rem 0.75rem; display: flex; gap: 0.75rem; }

/* ── STATION CARD ───────────────────────────────────────────── */

.station-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 0.95rem 1.1rem; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.9rem;
  cursor: pointer; border: 1.5px solid var(--border);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.station-card:hover { border-color: var(--accent-mid); background: rgba(99,102,241,0.03); transform: translateX(4px); }
.station-card:active { transform: scale(0.98); }

.station-dot {
  width: 32px; height: 32px;
  background: var(--surface-2); border: 2px solid var(--border-md);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0; color: var(--text-muted);
  transition: all var(--transition);
}
.station-dot-active { background: var(--ok-soft) !important; border-color: var(--ok) !important; color: var(--ok) !important; }
.station-card-active {
  border-color: rgba(16,185,129,0.35);
  animation: stationGlow 3s ease-in-out infinite;
}
@keyframes stationGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(16,185,129,0.15); }
  50%      { box-shadow: 0 0 16px rgba(16,185,129,0.3), 0 0 4px rgba(16,185,129,0.1); }
}
.station-dot-past   { background: var(--surface-2) !important; color: var(--text-light) !important; }

.station-info  { flex: 1; min-width: 0; }
.station-name  { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-dates { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── FEATURE TABS ───────────────────────────────────────────── */

.feature-tabs {
  display: flex; gap: 0.4rem; overflow-x: auto;
  padding: 0.9rem 1.25rem 0; scrollbar-width: none;
}
.feature-tabs::-webkit-scrollbar { display: none; }
.feature-tab {
  flex-shrink: 0; padding: 0.42rem 0.85rem;
  border: 1.5px solid var(--border-md); background: var(--surface);
  border-radius: 22px; font-size: 0.75rem; font-weight: 500;
  cursor: pointer; font-family: 'Inter', sans-serif;
  color: var(--text-muted); transition: all var(--transition); white-space: nowrap;
}
.feature-tab:active { transform: scale(0.95); }
.feature-tab.active { background: var(--accent); color: white; border-color: transparent; box-shadow: var(--shadow-accent); }
.feature-panel { display: none; }
.feature-panel.active { display: block; animation: pageIn 0.25s cubic-bezier(0.22, 1, 0.36, 1); }

/* ── PHOTOS ─────────────────────────────────────────────────── */

.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border-radius: var(--radius); overflow: hidden; }
.photo-thumb {
  aspect-ratio: 1; overflow: hidden; position: relative; cursor: pointer; background: var(--surface-2);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.photo-thumb:hover img { transform: scale(1.08); }
.photo-delete {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%;
  width: 24px; height: 24px; font-size: 0.7rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.photo-thumb:hover .photo-delete { display: flex; }

/* ── LIGHTBOX ───────────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 1000;
  display: none; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 84vh;
  object-fit: contain; border-radius: var(--radius-sm);
  user-select: none; -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 1.1rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: white; font-size: 2rem; line-height: 1;
  cursor: pointer; width: 48px; height: 64px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); padding: 0; backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.8rem; font-family: inherit;
  background: rgba(0,0,0,0.4); padding: 0.3rem 0.85rem; border-radius: 22px;
  pointer-events: none; backdrop-filter: blur(8px);
}

/* ── EXPENSES ───────────────────────────────────────────────── */

.expense-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.expense-item:last-child { border-bottom: none; }
.expense-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.expense-info    { flex: 1; min-width: 0; }
.expense-desc    { font-size: 0.875rem; font-weight: 600; }
.expense-meta    { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }
.expense-amount  { font-weight: 700; color: var(--text); white-space: nowrap; font-size: 0.9rem; }

.expense-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.summary-stat {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: center;
  transition: all var(--transition);
}
.summary-stat:hover { border-color: var(--accent-mid); }
.summary-stat .value { font-size: 1.4rem; font-weight: 800; color: var(--accent); display: block; letter-spacing: -0.03em; }
.summary-stat .label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

.balance-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.45rem;
}
.balance-name   { font-weight: 500; font-size: 0.875rem; }
.balance-amount { font-weight: 700; font-size: 0.9rem; }
.balance-pos    { color: var(--ok); }
.balance-neg    { color: var(--danger); }

/* ── DIARY ──────────────────────────────────────────────────── */

.diary-entry {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem; margin-bottom: 0.7rem;
  border-left: 4px solid var(--accent);
  transition: all var(--transition);
}
.diary-entry:hover { border-color: var(--accent-mid); }
.diary-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.45rem; }
.diary-date   { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.diary-mood   { font-size: 1.15rem; }
.diary-title  { font-weight: 700; margin-bottom: 0.35rem; font-size: 0.9rem; }
.diary-content{ font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; white-space: pre-wrap; }

/* ── DOCUMENTS ──────────────────────────────────────────────── */

.doc-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.9rem; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem;
  transition: all var(--transition);
}
.doc-item:hover { border-color: var(--accent-mid); }
.doc-icon { font-size: 1.4rem; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-label{ font-size: 0.72rem; color: var(--text-muted); }

/* ── (Summary entfernt) ─────────────────────────────────────── */

/* ── MAPS ───────────────────────────────────────────────────── */

.maps-area { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.maps-field { margin-bottom: 0.65rem; }
.maps-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.maps-value { font-size: 0.875rem; font-weight: 500; }
.maps-open-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: white; padding: 0.55rem 1.1rem;
  border-radius: 22px; text-decoration: none; font-size: 0.78rem; font-weight: 500;
  transition: all var(--transition); margin-top: 0.4rem; box-shadow: var(--shadow-accent);
}
.maps-open-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── CHIP ───────────────────────────────────────────────────── */

.chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.22rem 0.65rem; border-radius: 22px; font-size: 0.72rem; font-weight: 500; }
.chip-ocean  { background: var(--accent-soft); color: var(--accent); }
.chip-sunset { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

/* ── UPLOAD ZONE ────────────────────────────────────────────── */

.upload-zone {
  border: 2px dashed var(--border-md); border-radius: var(--radius);
  padding: 1.75rem; text-align: center; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text-muted); background: var(--surface-2);
}
.upload-zone:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.upload-zone:active { transform: scale(0.98); }
.upload-icon { font-size: 1.75rem; margin-bottom: 0.4rem; display: block; }

/* ── SECTION TITLE ──────────────────────────────────────────── */

.section-title {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 1.25rem 0 0.65rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.docs-collapse-toggle::after { display: none; }
.docs-collapse-toggle { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; justify-content: space-between; }

/* ── CATEGORY COLORS ────────────────────────────────────────── */

.cat-unterkunft  { background: #6366F1; }
.cat-transport   { background: #8B5CF6; }
.cat-essen       { background: #F59E0B; }
.cat-aktivitaeten{ background: #10B981; }
.cat-einkaufen   { background: #EC4899; }
.cat-sonstiges   { background: #9CA3AF; }

/* ── TOAST ──────────────────────────────────────────────────── */

.toast {
  position: fixed; bottom: calc(var(--nav-h) + 1rem); left: 50%;
  transform: translateX(-50%);
  background: var(--text); backdrop-filter: blur(16px);
  color: white; padding: 0.7rem 1.35rem; border-radius: 22px;
  font-size: 0.82rem; font-weight: 500; z-index: 9999;
  white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-4px); }

/* ── LOADING ────────────────────────────────────────────────── */

.loading { display: flex; align-items: center; justify-content: center; padding: 3rem; color: var(--text-muted); gap: 0.65rem; font-size: 0.875rem; }
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border-md); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TAB BADGE ──────────────────────────────────────────────── */

.tab-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: white; font-size: 0.6rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; margin-left: 3px; vertical-align: middle; line-height: 1; }
.feature-tab.active .tab-badge { background: rgba(255,255,255,0.3); }

/* ── COUNTDOWN ──────────────────────────────────────────────── */

.countdown-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 22px; margin-top: 0.35rem; }
.countdown-soon   { background: var(--warn-soft);   color: var(--warn); }
.countdown-future { background: var(--accent-soft); color: var(--accent); }
.countdown-active { background: var(--ok-soft);     color: var(--ok); }
.countdown-past   { background: var(--surface-2);   color: var(--text-muted); border: 1px solid var(--border); }

/* ── SCROLLBAR ──────────────────────────────────────────────── */

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 2px; }

/* ── ROUTE MAP ──────────────────────────────────────────────── */

#route-map-wrap { position: relative; z-index: 0; isolation: isolate; }
#route-map { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); background: var(--surface-2); }

/* ── STATION LOCATION CARD ──────────────────────────────────── */

.station-location-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.1rem;
  margin-bottom: 0;
}
.sl-name    { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.15rem; }
.sl-address { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 0.7rem; }
.sl-maps-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-soft); color: var(--accent);
  padding: 0.45rem 0.9rem; border-radius: 22px;
  text-decoration: none; font-size: 0.78rem; font-weight: 600;
  transition: all var(--transition);
}
.sl-maps-btn:hover { background: var(--accent-mid); }

.weather-header { margin-bottom: 0.5rem; }
.weather-city   { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.weather-grid   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.weather-slot {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0.5rem 0.2rem; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.weather-slot:hover { border-color: var(--accent-mid); }
.weather-time { font-size: 0.6rem; color: var(--text-muted); margin-bottom: 0.1rem; }
.weather-temp { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.weather-desc { font-size: 0.58rem; color: var(--text-muted); margin-top: 0.1rem; line-height: 1.2; }
.weather-rain { font-size: 0.58rem; color: var(--accent); margin-top: 0.1rem; }
.weather-no-key { font-size: 0.78rem; color: var(--text-muted); }

/* ── COMPLETED TRIPS ────────────────────────────────────────── */

.trip-card-completed { opacity: 0.72; }
.trip-card-completed .trip-cover img,
.trip-card-completed .trip-cover-placeholder { filter: grayscale(20%) brightness(0.95); }

/* ── ARCHIVE BUTTON ─────────────────────────────────────────── */

.btn-archive-now {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.65rem;
  background: none; border: 1.5px solid var(--border-md);
  color: var(--text-muted); font-size: 0.75rem; font-family: inherit;
  padding: 0.32rem 0.8rem; border-radius: 22px;
  cursor: pointer; transition: all var(--transition);
}
.btn-archive-now:hover { background: var(--surface-2); color: var(--text); }

/* ── ARCHIVE TOGGLE ─────────────────────────────────────────── */

.archive-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem; margin: 0.5rem 0;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.85rem;
  color: var(--text-muted); cursor: pointer; user-select: none;
  transition: all var(--transition);
}
.archive-toggle:hover { background: var(--surface-2); color: var(--text); }

/* ── TRIPS FOOTER ───────────────────────────────────────────── */

.trips-footer {
  display: flex; gap: 0.5rem; margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.trips-footer-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0.7rem 0.75rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text-muted);
  font-size: 0.8rem; font-weight: 500; font-family: 'Inter', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.trips-footer-btn:hover {
  border-color: var(--accent-mid); color: var(--text);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.trips-footer-btn:active { transform: scale(0.97); }
.footer-btn-count { color: var(--text-light); font-weight: 400; }

/* ── MEMORIES LINK ──────────────────────────────────────────── */

.memories-link {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8rem 1rem; margin: 1rem 0 0.5rem;
  background: var(--surface);
  color: var(--text-muted); border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-xs);
}
.memories-link:hover {
  border-color: var(--accent-mid); color: var(--accent);
  box-shadow: var(--shadow-sm); transform: translateY(-1px);
}

/* ── STATUS CHIPS ───────────────────────────────────────────── */

.status-chip-planned  { background: var(--accent-soft);  color: var(--accent); font-size: 0.75rem; padding: 0.22rem 0.65rem; border-radius: 22px; font-weight: 600; }
.status-chip-active   { background: var(--ok-soft);      color: var(--ok); font-size: 0.75rem; padding: 0.22rem 0.65rem; border-radius: 22px; font-weight: 600; }
.status-chip-completed{ background: rgba(107,114,128,0.1); color: #6B7280; font-size: 0.75rem; padding: 0.22rem 0.65rem; border-radius: 22px; font-weight: 600; }
.status-chip-archived { background: rgba(107,114,128,0.08);color: #9CA3AF; font-size: 0.75rem; padding: 0.22rem 0.65rem; border-radius: 22px; font-weight: 600; }
.chip-muted { background: var(--surface-2); color: var(--text-muted); font-size: 0.75rem; padding: 0.22rem 0.65rem; border-radius: 22px; }

/* ── PERSON CHIPS ───────────────────────────────────────────── */

.person-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-soft); border: 1.5px solid var(--accent-mid);
  border-radius: 22px; padding: 0.28rem 0.55rem 0.28rem 0.7rem;
  font-size: 0.82rem; margin: 0.2rem 0.2rem 0.2rem 0;
}
.person-chip-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.75rem; padding: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.person-chip-remove:hover { background: var(--accent-mid); color: var(--accent); }

/* ── SHARE ──────────────────────────────────────────────────── */

.share-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  z-index: 500; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.share-overlay.open { display: flex; }
.share-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 1.35rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.share-box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.share-box-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.share-url-wrap { display: flex; gap: 0.5rem; align-items: center; }
.share-url-wrap input { flex: 1; font-size: 0.78rem; color: var(--text-muted); cursor: text; }

.share-section-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; margin-top: 0.25rem; }
.share-perms-list { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.share-perm-row { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0.8rem; background: var(--surface); border-bottom: 1px solid var(--border); cursor: pointer; gap: 0.75rem; transition: all var(--transition); }
.share-perm-row:last-child { border-bottom: none; }
.share-perm-row:hover { background: var(--surface-2); }
.share-perm-info { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.share-perm-label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.share-perm-desc { font-size: 0.75rem; color: var(--text-muted); }
.share-perm-cb { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

/* ── TRIP ACTIONS BAR ───────────────────────────────────────── */

#trip-actions-bar .btn { font-size: 0.8rem; padding: 0.38rem 0.8rem; }

/* ── TRIP DOCS ──────────────────────────────────────────────── */

#trip-docs-area { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; background: var(--surface); margin-bottom: 1rem; }
#trip-docs-area:empty { display: none; }

/* ── ROUTE MAP ELEMENTS ─────────────────────────────────────── */

#route-map-hint { font-size: 0.75rem; color: var(--text-muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.45rem 0.65rem; margin-bottom: 0.5rem; }

.map-placeholder-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; height: 120px;
  background: var(--surface-2); border: 2px dashed var(--border-md);
  border-radius: var(--radius); color: var(--text-muted); font-size: 0.88rem;
  text-align: center; padding: 1rem;
}

/* ── KI IMPORT BUTTON ───────────────────────────────────────── */

.ai-import-btn {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.08) 100%);
  border: 1.5px dashed var(--accent-mid);
  border-radius: var(--radius); cursor: pointer;
  color: var(--accent); font-size: 0.85rem; font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-import-btn:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.14) 0%, rgba(139,92,246,0.14) 100%);
  border-style: solid; transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.ai-import-btn:active { transform: scale(0.98); }
.ai-import-icon { font-size: 1.2rem; }
.ai-import-text { flex: 1; text-align: left; }
.ai-import-text small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ── AI PROGRESS ────────────────────────────────────────────── */

.ai-progress {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(139,92,246,0.05) 100%);
  border: 1.5px solid var(--accent-mid); border-radius: var(--radius);
  text-align: center;
}
.ai-progress-spinner {
  width: 28px; height: 28px; margin: 0 auto 0.5rem;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.ai-progress-text { font-size: 0.82rem; color: var(--accent); font-weight: 500; }
.ai-progress-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Lade-Tipps Karussell */
.ai-loading-header {
  text-align: center; padding: 1.25rem 1rem 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(139,92,246,0.05) 100%);
  border: 1.5px solid var(--accent-mid); border-radius: var(--radius);
  margin-bottom: 1rem;
}
.ai-loading-tips { animation: fadeIn 0.5s ease; }
.ai-loading-tips-label {
  font-size: 0.68rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.ai-loading-tip-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  min-height: 80px;
  animation: tipFade 0.4s ease;
}
@keyframes tipFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.ai-loading-tip-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.ai-loading-tip-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.2rem; }
.ai-loading-tip-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.ai-loading-tip-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 0.75rem;
}
.ai-loading-tip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-md); transition: all 0.25s;
}
.ai-loading-tip-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── DOKUMENTE ──────────────────────────────────────────────── */

.docs-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.docs-cat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.docs-cat-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.docs-cat-card:active { transform: scale(0.97); }

.docs-cat-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.docs-cat-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }

.docs-cat-icon--rechnungen    { background: rgba(239,68,68,0.1);  color: #EF4444; }
.docs-cat-icon--reisedokumente{ background: rgba(99,102,241,0.1); color: #6366F1; }
.docs-cat-icon--flug          { background: rgba(16,185,129,0.1); color: #10B981; }
.docs-cat-icon--mietwagen     { background: rgba(245,158,11,0.1); color: #F59E0B; }
.docs-cat-icon--sonstiges     { background: rgba(107,114,128,0.1);color: #6B7280; }

.docs-cat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.docs-cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Dokument-Zeile */
.docs-file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.55rem;
  transition: all var(--transition);
}
.docs-file-item:hover { border-color: var(--accent-mid); }

.docs-file-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.docs-file-icon svg { width: 18px; height: 18px; }

.docs-file-info { flex: 1; min-width: 0; }
.docs-file-name {
  font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.docs-file-meta {
  font-size: 0.7rem; color: var(--text-muted); margin-top: 2px;
  display: flex; gap: 0.6rem;
}

.docs-file-actions {
  display: flex; gap: 0.25rem; flex-shrink: 0;
}
.docs-file-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: var(--surface-2);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.docs-file-btn:hover { background: var(--border-md); color: var(--text); }
.docs-file-btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.docs-file-btn svg { width: 15px; height: 15px; }

/* ── GALERIE ────────────────────────────────────────────────── */

.gallery-station {
  margin-bottom: 1.25rem;
}
.gallery-station-header {
  font-size: 0.78rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.5rem;
}
.gallery-station-loc {
  font-size: 0.68rem; color: var(--text-muted); font-weight: 400;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  position: relative;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-thumb:hover img { transform: scale(1.06); }

/* Galerie-Lightbox (Vollbild, Swipe+Zoom) */
.gallery-lb {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.97);
  display: none; align-items: center; justify-content: center;
}
.gallery-lb.open { display: flex; }
.gallery-lb-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none; user-select: none;
}
.gallery-lb-img {
  max-width: 95vw; max-height: 90vh;
  object-fit: contain; pointer-events: none;
  transform-origin: center center;
}
.gallery-lb-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.gallery-lb-close:hover { background: rgba(255,255,255,0.2); }
.gallery-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; width: 44px; height: 60px; border-radius: var(--radius-sm);
  font-size: 1.6rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.gallery-lb-nav:hover { background: rgba(255,255,255,0.18); }
.gallery-lb-prev { left: 0.5rem; }
.gallery-lb-next { right: 0.5rem; }
.gallery-lb-counter {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.78rem;
  background: rgba(0,0,0,0.5); padding: 0.3rem 0.85rem; border-radius: 22px;
  z-index: 10; backdrop-filter: blur(8px);
}
.gallery-lb-caption {
  position: absolute; bottom: 2.8rem; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.82rem; font-style: italic;
  background: rgba(0,0,0,0.45); padding: 0.3rem 1rem; border-radius: 22px;
  z-index: 10; max-width: 80vw; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(8px);
}
.gallery-lb-caption:empty { display: none; }
@media (max-width: 700px) {
  .gallery-lb-nav { width: 36px; height: 48px; font-size: 1.2rem; }
  .gallery-lb-prev { left: 0.25rem; }
  .gallery-lb-next { right: 0.25rem; }
}

/* ── KI-VORSCHLÄGE ──────────────────────────────────────────── */

.ai-sug-chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.ai-sug-chip {
  display: flex; align-items: center; cursor: pointer;
}
.ai-sug-chip input { display: none; }
.ai-sug-chip span {
  padding: 0.4rem 0.85rem; border-radius: 22px;
  font-size: 0.8rem; font-weight: 500;
  background: var(--surface-2); border: 1.5px solid var(--border-md);
  color: var(--text-muted); transition: all var(--transition);
  user-select: none;
}
.ai-sug-chip input:checked + span {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent); font-weight: 600;
}
.ai-sug-chip:active span { transform: scale(0.95); }

.ai-sug-range {
  width: 100%; height: 6px; border-radius: 3px;
  -webkit-appearance: none; appearance: none;
  background: var(--border-md); outline: none;
}
.ai-sug-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent);
  box-shadow: var(--shadow-accent); cursor: pointer;
}

/* Vorschlag-Karte */
.ai-sug-day { margin-bottom: 1.25rem; }
.ai-sug-day-header {
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.5rem; padding-bottom: 0.35rem;
  border-bottom: 1.5px solid var(--accent-soft);
}
.ai-sug-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  transition: all var(--transition);
}
.ai-sug-card:hover { border-color: var(--accent-mid); }
.ai-sug-card-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.2rem; }
.ai-sug-card-loc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.3rem; }
.ai-sug-card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.6rem; }
.ai-sug-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.ai-sug-tag {
  font-size: 0.68rem; padding: 0.18rem 0.5rem; border-radius: 12px;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.ai-sug-card-footer { display: flex; gap: 0.5rem; }
.ai-sug-adopt-btn {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.8rem; border-radius: 22px;
  background: var(--accent-soft); border: 1.5px solid var(--accent-mid);
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}
.ai-sug-adopt-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.ai-sug-adopt-btn:active { transform: scale(0.96); }
.ai-sug-date-picker {
  margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  animation: tipFade 0.25s ease;
}
.ai-sug-adopt-btn.adopted {
  background: var(--ok-soft); border-color: var(--ok); color: var(--ok);
  pointer-events: none;
}

/* KI-Glow Button */
.btn-ai-glow {
  animation: aiGlow 3s ease-in-out infinite;
}
@keyframes aiGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(139,92,246,0.2); }
  50%      { box-shadow: 0 0 14px rgba(139,92,246,0.35), 0 0 4px rgba(99,102,241,0.15); }
}

.btn-ai-glow-orange {
  animation: aiGlowOrange 3s ease-in-out infinite;
}
@keyframes aiGlowOrange {
  0%, 100% { box-shadow: 0 0 6px rgba(245,158,11,0.2); }
  50%      { box-shadow: 0 0 14px rgba(245,158,11,0.4), 0 0 4px rgba(245,158,11,0.15); }
}

/* Favoriten-Button */
.ai-sug-fav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border-md); background: var(--surface);
  color: var(--text-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.ai-sug-fav-btn:hover { color: #EF4444; }
.ai-sug-fav-btn:active { transform: scale(0.85); }
.ai-sug-fav-btn.favorited { color: #EF4444; }

.ai-sug-favs-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: #EF4444; color: white;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 360px) {
  .form-row { grid-template-columns: 1fr; }
  .expense-summary-grid { grid-template-columns: 1fr; }
}

/* ── DESKTOP ≥900px ─────────────────────────────────────────── */

@media (min-width: 900px) {
  body {
    background: #0c0f1a;
    background: linear-gradient(150deg, #0c0f1a 0%, #151933 60%, #1a1040 100%);
    min-height: 100vh; display: flex; align-items: stretch;
  }
  #app { max-width: 680px; width: 100%; margin: 0 auto; min-height: 100vh; background: var(--bg); box-shadow: var(--shadow-lg); position: relative; }
  .content { padding: 1.1rem 1.5rem; }
  .top-bar  { padding: 0.9rem 1.5rem; }

  .bottom-nav {
    position: fixed; left: 0; top: 0; bottom: 0; width: 210px;
    flex-direction: column; justify-content: flex-start; padding: 1.5rem 0 1rem;
    background: rgba(12,15,26,0.96); backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-top: none; box-shadow: none; gap: 0;
    height: 100vh; z-index: 200; transform: none;
  }
  .bottom-nav::before {
    content: 'Reiseplaner'; display: block;
    font-size: 0.92rem; font-weight: 700;
    color: rgba(255,255,255,0.85); padding: 0 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.6rem; font-family: 'Inter', sans-serif;
  }
  .nav-item {
    flex-direction: row; justify-content: flex-start;
    gap: 0.7rem; padding: 0.72rem 1.2rem;
    width: 100%; border-radius: 0;
    border-left: 3px solid transparent;
    font-size: 0.82rem; min-width: 0;
    color: rgba(255,255,255,0.32);
  }
  .nav-item.active { background: rgba(99,102,241,0.12); border-left-color: var(--accent); color: rgba(255,255,255,0.88); }
  .nav-item:hover:not(.active) { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.55); }
  .nav-icon { font-size: 0.95rem; }
  #app { margin-left: 210px; margin-right: auto; }
  .fab { position: fixed; right: calc(50% - 340px + 1.25rem); bottom: 1.5rem; }

  .modal-overlay { align-items: center; justify-content: center; }
  .modal { max-width: 540px; border-radius: var(--radius-xl); max-height: 88vh; transform: translateY(0) scale(0.95); opacity: 0; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s; }
  .modal-overlay.open .modal { transform: scale(1); opacity: 1; }
  .modal-handle { display: none; }
  .toast { bottom: 1.75rem; }
}

@media (min-width: 1200px) {
  .bottom-nav { width: 230px; }
  #app { margin-left: 230px; max-width: 720px; }
  .fab { right: calc(50% - 360px + 1.25rem); }
}
