/* ============================================================
   TARGA TRAVELPLANNER — Light / Nüchtern Style
   Inspired by SparkMyTour design language
   ============================================================ */

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

:root {
  --bg:          #F5F2ED;
  --surface:     #EDEAE4;
  --surface2:    #E4E0D8;
  --border:      rgba(0,0,0,0.14);
  --border2:     rgba(0,0,0,0.22);
  --text:        #1c1c1e;
  --text-2:      #48484a;
  --text-3:      #8e8e93;
  --text-4:      #b0b0b8;
  --red:         #E3000F;
  --red-light:   #fff0f0;
  --red-border:  #fcc;
  --gold:        #b8932e;
  --gold-light:  #fdf8ec;
  --blue:        #0056cc;
  --blue-light:  #eef4ff;
  --green:       #218737;
  --green-light: #edf7ef;
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
  --transition: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-xs);
}
.topnav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 16px; height: 52px;
}
.topnav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--text);
  text-decoration: none; cursor: pointer; background: none; border: none;
}
.topnav-brand:hover { text-decoration: none; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.brand-vehicle {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  padding: 2px 8px; border: 1px solid var(--border); border-radius: 20px;
}
.topnav-spacer { flex: 1; }
.topnav-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-3);
  background: none; border: none; padding: 6px 10px;
  border-radius: var(--r-sm); transition: var(--transition);
}
.topnav-back:hover { background: var(--bg); color: var(--text); }
.topnav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  background: var(--red); color: white; border: none;
  transition: var(--transition);
}
.topnav-btn:hover { background: #c5000d; }
.topnav-btn-ghost {
  background: none; border: 1px solid var(--border);
  color: var(--text-2);
}
.topnav-btn-ghost:hover { background: var(--bg); border-color: var(--border2); }

/* ============================================================
   VIEWS
   ============================================================ */
.view { display: none; }
.view.active { display: block; }

/* ============================================================
   TRIP LIST — Hero
   ============================================================ */
.list-hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: #111;
}
.list-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
  filter: brightness(0.78);
}
.list-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.10) 50%,
    rgba(0,0,0,0.00) 100%
  );
  display: flex;
  align-items: flex-start;
  padding: 36px 48px;
}
.list-hero-content { color: #fff; }
.list-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.list-hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  margin-bottom: 10px;
}
.list-hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
}

/* ============================================================
   TRIP LIST — Landing Page
   ============================================================ */
.list-view-inner { max-width: 1160px; margin: 0 auto; padding: 32px 24px 64px; }

.list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.list-header-text h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.list-header-text p { font-size: 13px; color: var(--text-3); margin-top: 3px; }

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.trip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.trip-card:hover { box-shadow: var(--shadow-md); border-color: var(--border2); transform: translateY(-1px); }

.trip-card-cover {
  height: 200px; overflow: hidden; position: relative;
  background: var(--bg);
}
.trip-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.trip-card:hover .trip-card-cover img { transform: scale(1.04); }
.trip-card-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.trip-status-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.status-upcoming { background: rgba(255,255,255,0.92); color: var(--blue); }
.status-active   { background: var(--green); color: white; }
.status-past     { background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.8); }
.status-draft    { background: rgba(255,255,255,0.92); color: var(--text-3); }
.status-demo     { background: #E3000F; color: white; }

.trip-card-body { padding: 18px 20px 20px; }
.trip-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.trip-card-dates { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.trip-card-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.trip-stat-item { display: flex; flex-direction: column; gap: 1px; }
.trip-stat-val { font-size: 14px; font-weight: 700; color: var(--text); }
.trip-stat-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); }

.new-trip-card {
  background: var(--surface);
  border: 2px dashed var(--border2);
  border-radius: var(--r-lg);
  min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  cursor: pointer; color: var(--text-3);
  transition: var(--transition);
}
.new-trip-card:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.new-trip-icon { font-size: 32px; }
.new-trip-label { font-size: 13px; font-weight: 600; }

/* ============================================================
   TRIP DETAIL — Hero
   ============================================================ */
.trip-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trip-hero-img {
  height: 280px; overflow: hidden; position: relative;
  background: #1a1a1a;
}
.trip-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 75%;
}
.trip-hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.trip-hero-title-over {
  position: absolute; bottom: 20px; left: 24px; right: 24px;
}
.trip-hero-title-over h1 {
  font-size: clamp(18px, 3vw, 26px); font-weight: 700;
  color: white; line-height: 1.2; margin-bottom: 4px;
}
.trip-hero-title-over .hero-sub {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-cover-edit-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 8px 14px; border-radius: var(--r-lg);
  background: rgba(0,0,0,0.55); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 12px; font-weight: 600;
  opacity: 0; transition: var(--transition);
}
.trip-hero-img:hover .hero-cover-edit-btn,
.hero-cover-edit-btn:focus { opacity: 1; }
.hero-cover-edit-btn:hover { background: rgba(0,0,0,0.75); border-color: rgba(255,255,255,0.5); }
.hero-cover-edit-btn:disabled { opacity: 1; cursor: default; }

#trip-hero-img-dropzone.dragging {
  outline: 3px dashed var(--red); outline-offset: -6px;
}
#trip-hero-img-dropzone.dragging::after {
  content: '📷 Bild hier ablegen';
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 16px; font-weight: 700;
}

/* Beispiel-/Demo-Touren sind uneditierbar — kein Titelbild-Upload möglich */
body.readonly-trip .hero-cover-edit-btn { display: none; }

.cover-img-edit-preview-wrap {
  margin: 12px 0 4px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); height: 180px; background: #1a1a1a;
}
.cover-img-edit-preview-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: object-position 0.2s ease, transform 0.2s ease;
}

.trip-hero-stats {
  max-width: 1160px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; flex-wrap: wrap; gap: 0;
}
.hero-stat {
  display: flex; align-items: center; gap: 10px;
  padding-right: 24px; margin-right: 24px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-icon { font-size: 18px; }
.hero-stat-text { display: flex; flex-direction: column; }
.hero-stat-val { font-size: 15px; font-weight: 700; color: var(--text); }
.hero-stat-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); }

/* ============================================================
   TAB NAV
   ============================================================ */
.tab-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 52px; z-index: 150;
}
.tab-bar-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.tab-bar-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 12px 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-3);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--red); }

/* Day Pills */
.day-pills-bar {
  max-width: 1160px; margin: 16px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.day-pill {
  padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-3); cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.day-pill:hover { border-color: var(--red); color: var(--red); }
.day-pill.p-passrunde { border-color: var(--red-border); color: var(--red); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.detail-content {
  max-width: 1160px; margin: 0 auto;
  padding: 24px 24px 80px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   DAY CARDS
   ============================================================ */
.day-cards { display: flex; flex-direction: column; gap: 16px; }

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
/* Day-type border colours (overridden by inline stay-colour when in a hotel group) */
.day-card.t-passrunde { border-left-color: var(--red); }
.day-card.t-scenic    { border-left-color: var(--gold); }
.day-card.t-transfer  { border-left-color: var(--blue); }
.day-card.t-rest      { border-left-color: var(--green); }
/* Hotel-stay border applied via inline style — always wins */
.day-card[style*="border-left"] { border-left-width: 5px; }

/* Card scene image */
.card-scene { position: relative; height: 220px; overflow: hidden; background: var(--bg); cursor: pointer; }
.card-scene img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.day-card:hover .card-scene img { transform: scale(1.03); }
.card-scene-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, transparent 55%);
  pointer-events: none;
}
.card-scene-location {
  position: absolute; bottom: 12px; left: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); pointer-events: none;
}
.card-scene-zoom-hint {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 11px; color: rgba(255,255,255,0.6);
  opacity: 0; transition: opacity 0.2s;
}
.card-scene:hover .card-scene-zoom-hint { opacity: 1; }

/* Card body */
.card-body { padding: 20px 22px 22px; }

/* Card header row */
.card-hdr {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.card-hdr-left { display: flex; flex-direction: column; gap: 2px; }
.card-day-date { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.card-route { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.2; }
.card-route .arr { color: var(--red); margin: 0 5px; }

/* Type badge */
.type-badge {
  flex-shrink: 0; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.tb-passrunde { background: var(--red-light); color: var(--red); border: 1px solid var(--red-border); }
.tb-scenic    { background: var(--gold-light); color: var(--gold); border: 1px solid #e8d08a; }
.tb-transfer  { background: var(--blue-light); color: var(--blue); border: 1px solid #b8d0f0; }
.tb-rest      { background: var(--green-light); color: var(--green); border: 1px solid #aadcb8; }

/* Stats strip */
.card-stats {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); margin-bottom: 14px;
}
.cs-item { display: flex; align-items: center; gap: 7px; }
.cs-icon { font-size: 14px; }
.cs-val { font-size: 13px; font-weight: 700; color: var(--text); }
.cs-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); }

/* Description */
.card-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 12px; }

/* Tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag {
  padding: 3px 9px; border-radius: 5px;
  font-size: 11px; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-3);
}
.tag.pass { background: var(--red-light); border-color: var(--red-border); color: var(--red); }

/* Section label */
.sec-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 10px;
}
.sec-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ---- HOTEL BLOCK ---- */
.hotel-block {
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface);
}
.hotel-img-full {
  width: 100%; height: 234px; overflow: hidden; position: relative;
  background: var(--bg); cursor: pointer;
}
.hotel-img-full img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.hotel-img-full:hover img { transform: scale(1.04); }
.hotel-img-full .zoom-hint {
  position: absolute; bottom: 8px; right: 10px;
  font-size: 11px; color: rgba(255,255,255,0.7);
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.hotel-img-full:hover .zoom-hint { opacity: 1; }

/* ── Hotel-Bild-Upload im Edit-Modal ─────────────────────── */
.hotel-img-edit-row {
  display: flex; gap: 8px; align-items: center;
}
.hotel-img-edit-row input[type="url"] {
  flex: 1; min-width: 0;
}
.upload-file-label {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-2);
  font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.upload-file-label:hover { background: var(--bg-3); }
.btn-ghost-sm {
  padding: 7px 10px; font-size: 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--text-2); cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.btn-ghost-sm:hover { background: var(--bg-3); }

.hotel-img-preview-wrap {
  margin-top: 10px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border);
}
.hotel-img-preview-wrap img {
  width: 100%; height: 160px; object-fit: cover; display: block;
  transition: object-position 0.3s ease;
}
.hotel-img-pos-label {
  font-size: 11px; color: var(--text-3); padding: 6px 10px 4px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}

/* 3×3 position picker */
.img-pos-picker {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; padding: 0 8px 8px;
}
.img-pos-picker button {
  padding: 8px; font-size: 14px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg-2);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.img-pos-picker button:hover { background: var(--bg-3); }
.img-pos-picker button.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.hotel-body { padding: 14px 16px; }
.hotel-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.hotel-name { font-size: 14px; font-weight: 700; color: var(--text); }
.hotel-name a { color: var(--text); }
.hotel-name a:hover { color: var(--blue); }
.hotel-stars { font-size: 11px; color: #d4a017; letter-spacing: 1px; }
.hotel-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.hotel-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-3);
}
.hotel-note { margin-top: 8px; font-size: 11px; color: var(--text-3); font-style: italic; }

/* Booking badge */
.booked-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--green-light); color: var(--green); border: 1px solid #aadcb8;
  cursor: pointer;
}
.not-booked-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 600; color: var(--text-4);
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.not-booked-badge:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* Booking details panel */
.booking-details {
  margin-top: 10px; padding: 12px 14px;
  background: var(--green-light); border: 1px solid #aadcb8; border-radius: var(--r-sm);
  font-size: 12px; color: var(--text-2);
}
.booking-details .bd-row { display: flex; gap: 8px; margin-bottom: 4px; align-items: flex-start; }
.booking-details .bd-label { font-weight: 600; color: var(--text-3); min-width: 130px; flex-shrink: 0; }
.booking-details .bd-val { color: var(--text); }

/* ---- WEATHER BLOCK ---- */
.weather-block { margin-top: 4px; }
.weather-loading { font-size: 12px; color: var(--text-4); padding: 6px 0; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:.4}50%{opacity:1} }

.weather-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.w-icon { font-size: 28px; }
.w-temps { display: flex; flex-direction: column; gap: 1px; }
.w-tmax { font-size: 20px; font-weight: 700; color: #d45500; }
.w-tmin { font-size: 12px; color: #3366aa; }
.w-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.w-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-3);
}
.w-chip.rain  { border-color: #b0cce8; color: #2255aa; background: #eef4ff; }
.w-chip.wind  { border-color: #b0d0b0; color: #276027; background: #eef7ee; }
.w-warn {
  margin-top: 8px; padding: 7px 12px; font-size: 12px; font-weight: 600;
  background: #fff3cd; border: 1px solid #ffe08a; border-radius: var(--r-sm);
  color: #8a5700;
}
.w-no-data { font-size: 12px; color: var(--text-4); font-style: italic; padding: 4px 0; }

/* Maps btn */
.maps-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 8px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  color: var(--text-3); transition: var(--transition);
}
.maps-btn:hover { border-color: #4285f4; color: #4285f4; background: #eef4ff; text-decoration: none; }

/* Add stage */
.add-stage-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; padding: 14px 18px;
  border: 2px dashed var(--border2); border-radius: var(--r-lg);
  background: none; color: var(--text-4);
  font-size: 13px; font-weight: 600;
  transition: var(--transition); margin-top: 8px;
}
.add-stage-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.add-stage-btn-main { font-size: 13px; font-weight: 600; }
.add-stage-btn-hint {
  font-size: 11px; font-weight: 400; color: var(--text-4);
  opacity: 0.8;
}
.add-stage-btn:hover .add-stage-btn-hint { color: inherit; }

/* ============================================================
   OVERVIEW PANEL
   ============================================================ */
.overview-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ov-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.ov-card h3 { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); margin-bottom: 12px; }
.ov-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.ov-row strong { color: var(--text); }

.route-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.route-table th {
  text-align: left; padding: 8px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-4); border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.route-table td {
  padding: 9px 10px; border-bottom: 1px solid var(--border);
  color: var(--text-2); vertical-align: middle;
}
.route-table tr:last-child td { border-bottom: none; }
.route-table tr:hover td { background: var(--surface2); }
.route-table tfoot td { font-weight: 700; color: var(--text); border-top: 2px solid var(--border2); }

/* ============================================================
   CHECKLIST PANEL
   ============================================================ */
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:680px){ .cl-grid { grid-template-columns: 1fr; } }
.cl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm);
}
.cl-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.cl-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
  line-height: 1.5;
}
.cl-item.checked { color: var(--text-4); text-decoration: line-through; }
.cl-item input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
  z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; width: 90%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.modal-close-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 20px; color: var(--text-3);
  cursor: pointer; line-height: 1;
}
.modal-close-x:hover { color: var(--text); }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 5px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red); background: white;
}
.form-group textarea { resize: vertical; min-height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.btn-primary { padding: 9px 22px; background: var(--red); border: none; border-radius: var(--r-sm); color: white; font-size: 13px; font-weight: 700; transition: var(--transition); }
.btn-primary:hover { background: #c5000d; }
.btn-ghost { padding: 9px 18px; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-3); font-size: 13px; font-weight: 600; transition: var(--transition); }
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }

/* ============================================================
   BOOKING UPLOAD AREA
   ============================================================ */
.booking-upload-area {
  margin-top: 12px; padding: 18px 14px;
  border: 2px dashed var(--border2); border-radius: var(--r-sm);
  background: var(--surface2); text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: default;
}
.bua-drop-icon { font-size: 28px; margin-bottom: 6px; opacity: 0.5; }
.booking-upload-area.bua-dragging {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface2));
}
.booking-upload-area.bua-dragging .bua-drop-icon { opacity: 1; }
.booking-upload-area.bua-processing { opacity: 0.7; pointer-events: none; }
.booking-upload-area .bua-hint { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.upload-trigger-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 12px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: var(--transition);
}
.upload-trigger-btn:hover { border-color: var(--blue); color: var(--blue); }

/* Upload modal */
.upload-drop-zone {
  border: 2px dashed var(--border2); border-radius: var(--r-md);
  padding: 32px 20px; text-align: center; color: var(--text-3);
  background: var(--surface2); cursor: pointer; transition: var(--transition);
}
.upload-drop-zone.dragging { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.upload-drop-zone .dz-icon { font-size: 28px; margin-bottom: 8px; }
.upload-drop-zone p { font-size: 12px; line-height: 1.5; }
.upload-parse-result {
  margin-top: 14px; padding: 12px 14px;
  background: var(--blue-light); border: 1px solid #b8d0f0;
  border-radius: var(--r-sm); font-size: 12px; color: var(--text-2);
}
.upload-parse-result h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.parse-row { display: flex; gap: 8px; margin-bottom: 4px; }
.parse-label { font-weight: 600; color: var(--text-3); min-width: 120px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox-caption { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.6); text-align: center; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; border-radius: 6px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.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.1); border: 1px solid rgba(255,255,255,0.2);
  color: white; border-radius: 6px; padding: 10px 14px;
  font-size: 18px; cursor: pointer; transition: var(--transition);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   NEW TRIP MODAL
   ============================================================ */
.modal-box-relative { position: relative; }

/* ── Date-Offset-Leiste ───────────────────────────────── */
.date-offset-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.dob-btn {
  padding: 4px 12px; border: 1px solid var(--border);
  border-radius: 20px; background: var(--bg);
  font-size: 11px; font-weight: 500; color: var(--text-4);
  transition: var(--transition); opacity: 0.7;
}
.dob-btn:hover { background: var(--surface2); border-color: var(--border2); color: var(--text-2); opacity: 1; }
.dob-badge {
  min-width: 110px; text-align: center;
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--text-3);
  background: var(--surface2); border: 1px solid var(--border);
}
.dob-badge.dob-active {
  background: var(--gold-light); border-color: var(--gold);
  color: var(--gold);
}
.dob-reset {
  padding: 4px 10px; border: 1px solid var(--red-border);
  border-radius: 20px; background: var(--red-light);
  font-size: 11px; font-weight: 600; color: var(--red);
  transition: var(--transition);
}
.dob-reset:hover { background: var(--red); color: white; }

.btn-copy-next {
  width: 100%; padding: 8px 14px;
  border: 1px dashed var(--border2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text-3);
  font-size: 12px; font-weight: 500; text-align: center;
  cursor: pointer; transition: var(--transition);
}
.btn-copy-next:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }

.lang-toggle-wrap {
  display: flex; justify-content: flex-end;
  padding: 6px 20px 0;
  background: var(--surface);
}
.lang-toggle-btn {
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--bg); color: var(--text-3);
  font-size: 11px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.lang-toggle-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* ── Rundkurs-Block ───────────────────────────────────── */
.loop-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.loop-header {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.loop-title { font-size: 13px; font-weight: 700; color: var(--text); }
.loop-stats  { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.loop-waypoints {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  font-size: 12px;
}
.loop-wp {
  padding: 3px 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
  font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.loop-wp-anchor {
  background: var(--blue-light); border-color: var(--blue);
  color: var(--blue); font-weight: 700;
}
.loop-arrow { color: var(--text-4); font-size: 14px; line-height: 1; padding: 0 1px; }
.loop-passes { display: flex; flex-wrap: wrap; gap: 6px; }
.loop-highlights {
  margin: 0; padding: 0 0 0 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.loop-highlights li { font-size: 12px; color: var(--text-2); }
.loop-note {
  font-size: 12px; color: var(--text-3); font-style: italic;
  border-left: 3px solid var(--border2); padding-left: 10px; margin: 0;
}
.loop-maps-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--blue);
  text-decoration: none; transition: var(--transition); align-self: flex-start;
}
.loop-maps-btn:hover { background: var(--blue-light); border-color: var(--blue); text-decoration: none; }

/* ── Edit-Day Button ──────────────────────────────────── */
.edit-day-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 14px; color: var(--text-3);
  transition: var(--transition); flex-shrink: 0;
}
.edit-day-btn:hover {
  background: var(--bg); border-color: var(--border2); color: var(--text);
}

/* ── Edit-Day Modal extras ────────────────────────────── */
.edit-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--text-3);
  margin: 18px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 5px;
}
.edit-section-label:first-child { margin-top: 0; }
.btn-danger-ghost { color: var(--red) !important; border-color: var(--red-border) !important; margin-right: auto; }
.btn-danger-ghost:hover { background: var(--red-light) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:760px){
  .trip-hero-img { height: 200px; }
  .trip-hero-stats { flex-wrap: wrap; gap: 12px; }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 0; }
  .card-scene { height: 170px; }
  .hotel-img-full { height: 182px; }
  .trips-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .detail-content { padding: 16px 16px 60px; }
  .cl-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESTAURANT CARDS
   ============================================================ */
.restaurant-cards { display: flex; flex-direction: column; gap: 10px; }

.restaurant-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
}
.rest-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.rest-name { font-size: 13px; font-weight: 700; color: var(--text); }
.rest-stars { font-size: 12px; font-weight: 700; color: #d4a017; white-space: nowrap; }
.rest-type { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); margin-bottom: 7px; }
.rest-why { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 9px; }
.rest-footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rest-phone { font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }
.rest-phone:hover { text-decoration: underline; }
.rest-note { font-size: 11px; color: var(--text-3); font-style: italic; }
.rest-disclaimer { font-size: 10px; color: var(--text-4); font-style: italic; margin-top: 4px; }
.rest-toggle-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.rest-toggle-header:hover { opacity: 0.75; }
.rest-toggle-arrow {
  font-size: 22px; color: var(--text-3); transition: opacity 0.15s;
  padding-left: 8px; flex-shrink: 0; line-height: 1;
}

/* ============================================================
   BOOKING STATUS OVERVIEW
   ============================================================ */
.ov-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 14px;
}
.booking-status-alert {
  padding: 10px 14px; margin-bottom: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: #c05000;
}
.booking-status-ok {
  padding: 10px 14px; margin-bottom: 12px;
  background: var(--green-light); border: 1px solid #aadcb8; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--green);
}
.not-booked-badge-ov {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: #fff7ed; color: #c05000; border: 1px solid #fed7aa;
  cursor: pointer; transition: var(--transition);
}
.not-booked-badge-ov:hover { background: #c05000; color: white; border-color: #c05000; }

/* Make "not booked" in day cards more visible */
.not-booked-badge {
  background: #fff7ed !important; border-color: #fed7aa !important;
  color: #c05000 !important; font-weight: 700 !important;
}
.not-booked-badge:hover { background: #c05000 !important; color: white !important; }

/* ============================================================
   HOTEL MISSING BLOCK
   ============================================================ */
.hotel-missing-block {
  display: flex; align-items: center; gap: 14px;
  background: #fff7ed; border: 2px dashed #fed7aa;
  border-radius: var(--r-md); padding: 14px 16px;
  margin: 0 4px;
  transition: border-color 0.15s, background 0.15s;
  cursor: default;
}
.hotel-missing-block.hmb-dragging {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, #fff7ed);
}
.hotel-missing-block.hmb-processing { opacity: 0.7; pointer-events: none; }
.hmb-sub { font-size: 12px; }
.hotel-missing-icon {
  font-size: 22px; flex-shrink: 0;
}
.hotel-missing-text {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.hotel-missing-text strong {
  font-size: 13px; font-weight: 700; color: #c05000;
}
.hotel-missing-text span {
  font-size: 12px; color: #92400e;
}
.hotel-missing-btn {
  flex-shrink: 0;
  background: #c05000; color: white;
  border: none; border-radius: var(--r-sm);
  padding: 7px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.hotel-missing-btn:hover { background: #a04000; }

/* ============================================================
   CHECKOUT BANNER (day card top — leaving a hotel this morning)
   ============================================================ */
.checkout-banner {
  display: flex; align-items: center; gap: 10px;
  background: #f0f7ff; border-bottom: 2px solid #b8d4f8;
  padding: 10px 16px; font-size: 13px; color: #1a4a8a;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin: -1px -1px 16px -1px; /* bleed to card edges, gap to content below */
}
.checkout-banner strong { font-weight: 700; }

/* Date-check badge — shown on hotel block next to "Gebucht" */
.date-check-badge {
  display: inline-flex; align-items: center;
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.date-check-ok {
  background: #f0faf3; border: 1px solid #a7dbb6; color: #1a6e36;
}
.date-check-warn {
  background: #fff4e5; border: 1px solid #f5c07a; color: #7a4700;
  animation: pulse-warn 2s ease-in-out infinite;
}
@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,160,60,0); }
  50%       { box-shadow: 0 0 0 4px rgba(245,160,60,0.25); }
}

/* Inline check/warn icons inside booking detail rows */
.bd-check {
  margin-left: 6px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.bd-check-ok   { color: #1a6e36; }
.bd-check-warn {
  color: #b45000; background: #fff4e5; border: 1px solid #f5c07a;
  border-radius: 4px; padding: 1px 6px;
}

/* Night badge — "Nacht X / Y" next to booked badge */
.night-badge {
  display: inline-flex; align-items: center;
  background: #f0f4ff; border: 1px solid #c5d3f5;
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: #3455a4;
  white-space: nowrap;
}

/* Departure warning banner — shown on the last night at a hotel */
.departure-banner {
  display: flex; align-items: center; gap: 10px;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-top: 2px solid #fb923c;
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 11px 16px; margin-top: 4px;
  font-size: 13px; font-weight: 600; color: #92400e;
}

/* ============================================================
   TOTAL COST BOX (overview tab)
   ============================================================ */
.cost-total-box {
  background: var(--gold-light); border: 1.5px solid #d4b96a;
  border-radius: var(--r-md); padding: 16px 20px;
  margin-bottom: 28px;
}
.cost-total-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gold); margin-bottom: 8px;
}
.cost-total-amounts {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.cost-amount {
  font-size: 26px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cost-plus {
  font-size: 18px; color: var(--text-3); font-weight: 400;
}
.cost-missing {
  font-size: 12px; color: var(--text-3); margin-top: 6px;
}
.cost-note {
  font-size: 11px; color: var(--text-4); margin-top: 4px;
}

/* ============================================================
   BOOKED RESTAURANT CARD
   ============================================================ */
.booked-restaurant-card {
  background: var(--green-light); border: 1.5px solid #a8d5b2;
  border-radius: var(--r-md); padding: 14px 16px;
  margin: 0 4px; position: relative;
}
.brc-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.brc-badge {
  display: inline-flex; align-items: center;
  background: var(--green); color: white;
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 700;
}
.brc-time {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.brc-name {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.brc-address {
  font-size: 12.5px; color: var(--text-2); margin-bottom: 6px;
  line-height: 1.4;
}
.brc-note {
  font-size: 12.5px; color: var(--text-2);
  background: #f9f7f0; border-left: 3px solid #d4b483;
  border-radius: 0 4px 4px 0;
  padding: 6px 10px; margin-bottom: 10px; line-height: 1.5;
}
.brc-translation-badge {
  margin-top: 5px; font-size: 10.5px; color: var(--text-3);
  display: flex; align-items: center; gap: 4px;
}
.brc-translating {
  opacity: 0.6; font-style: italic;
}
.brc-edit-btn {
  background: none; border: 1px solid #a8d5b2;
  border-radius: var(--r-sm); padding: 4px 12px;
  font-size: 11px; font-weight: 600; color: var(--green);
  cursor: pointer; transition: var(--transition);
}
.brc-edit-btn:hover { background: var(--green); color: white; border-color: var(--green); }

/* Edit modal: hotel-clear checkbox label */
.hotel-clear-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  margin-bottom: 12px; cursor: pointer;
}
.hotel-clear-label input[type="checkbox"] {
  width: 15px; height: 15px; cursor: pointer; accent-color: var(--red);
}

/* Day card infobox */
.day-infobox {
  background: var(--gold-light); border: 1px solid #e8d5a0;
  border-radius: var(--r-md); padding: 12px 16px;
  margin: 0 4px;
}
.day-infobox-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gold); margin-bottom: 6px;
}
.day-infobox-text {
  font-size: 13px; color: var(--text-2); line-height: 1.55;
}
.day-infobox-text a, .brc-note a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
  word-break: break-all;
}
.day-infobox-text a:hover, .brc-note a:hover { opacity: 0.75; }

/* ── Note-Editor (contenteditable) ─────────────────────── */
.note-editor {
  width: 100%; min-height: 72px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--bg); line-height: 1.55; outline: none;
  white-space: pre-wrap; word-break: break-word; cursor: text;
  box-sizing: border-box;
}
.note-editor-tall { min-height: 96px; }
.note-editor:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent); }
.note-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-4, #aaa); pointer-events: none;
}
.note-editor a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .topnav, .tab-bar, .day-pills-bar, .add-stage-btn,
  .maps-btn, .modal-overlay, .lightbox { display: none !important; }
  body { background: white; font-size: 11px; }
  .view { display: block !important; }
  #view-list { display: none !important; }
  .day-card { break-inside: avoid; margin-bottom: 14px; box-shadow: none; border: 1px solid #ccc; }
  .card-scene { height: 120px; }
  .hotel-img-full { height: 130px; }
  .trip-hero-img { height: 160px; }
}

/* Elements hidden briefly while auth is being confirmed (avoids a flash of edit buttons) */
body.locked #btn-new-trip-nav,
body.locked .new-trip-card,
body.locked .edit-day-btn,
body.locked .hotel-missing-btn,
body.locked .booking-upload-area,
body.locked .dob-btn,
body.locked .dob-reset,
body.locked .brc-edit-btn,
body.locked .bd-edit-actions { display: none !important; }

/* Beispiel-/Demo-Tour: dauerhaft uneditierbar, unabhängig vom Login-Status */
body.readonly-trip .edit-day-btn,
body.readonly-trip .hotel-missing-btn,
body.readonly-trip .booking-upload-area,
body.readonly-trip .dob-btn,
body.readonly-trip .dob-reset,
body.readonly-trip .brc-edit-btn,
body.readonly-trip .bd-edit-actions { display: none !important; }
