:root {
  --sky-1: #0b3d63;
  --sky-2: #1a6fa8;
  --sky-3: #4fa8d8;
  --accent: #ff7a1a;
  --accent-dark: #e2650a;
  --ink: #16232e;
  --ink-soft: #4a5a68;
  --paper: #ffffff;
  --paper-soft: #f4f7f9;
  --border: #e1e7ec;
  --ok: #1c8a52;
  --warn: #b3261e;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 61, 99, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: var(--sky-2); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

header.site-header {
  background: linear-gradient(135deg, var(--sky-1), var(--sky-2));
  color: #fff;
  padding-block: 16px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
  color: #fff;
  text-decoration: none;
}

.brand .heli-emoji { font-size: 1.4rem; }

.site-header nav a {
  color: #eaf4fb;
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 18px;
}

.site-header nav a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  background-size: cover;
  background-position: center 65%;
  color: #fff;
  padding-block: 72px 100px;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 26, 43, 0.72) 0%, rgba(6, 26, 43, 0.45) 45%, rgba(11, 61, 99, 0.35) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  max-width: 640px;
}

.hero p {
  max-width: 560px;
  color: #dcecf7;
  font-size: 1.05rem;
  margin: 0 0 24px;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.35);
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-accent:active { transform: translateY(1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Gallery ---------- */

section.gallery {
  padding-block: 48px 20px;
}

section.gallery h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

section.gallery .lead {
  color: var(--ink-soft);
  margin-top: 0;
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
  position: relative;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(11, 61, 99, 0.85), rgba(11, 61, 99, 0));
}

/* ---------- Flights section ---------- */

section.flights {
  padding-block: 48px 72px;
}

section.flights h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

section.flights .lead {
  color: var(--ink-soft);
  margin-top: 0;
  margin-bottom: 28px;
}

.flight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.flight-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flight-card .date-pill {
  align-self: flex-start;
  background: var(--sky-1);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.flight-card h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.flight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.flight-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.flight-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky-1);
}

.flight-price-unit {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.price-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff2e6;
  color: var(--accent-dark);
  border: 1px solid #ffd8b0;
}

.seats-row {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.seats-row strong { color: var(--ink); }

.seats-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-top: 2px;
}
.seats-bar > div {
  height: 100%;
  background: var(--ok);
}
.seats-bar.low > div { background: var(--accent); }
.seats-bar.soldout > div { background: var(--warn); }

.flight-card .btn { margin-top: auto; }

.flight-card .date-pill.waitlist { background: var(--accent-dark); }

.flight-card-cover {
  margin: -20px -20px 4px -20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.flight-card-cover img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

/* "Weitere Termine"-Aufklapper auf einer Flugkarte: fasst mehrere Flüge mit
   identischem Titel+Ort (z.B. über den Admin-"Kopieren"-Button angelegte
   Wiederholungstermine) zu einer Karte zusammen, damit die Übersicht nicht
   mit vielen fast identischen Karten überfüllt wird. */
.more-dates-toggle {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--sky-1);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
}
.more-dates-toggle:hover { color: var(--accent-dark); }

.more-dates-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Ohne diese Regel bleibt die Liste trotz gesetztem [hidden]-Attribut
   sichtbar, weil die Klassenregel oben "display: flex" direkt setzt und
   damit die UA-Regel [hidden]{display:none} überschreibt (dieselbe Falle wie
   bereits bei .theme-form-banner/.form-grid dokumentiert). */
.more-dates-list[hidden] { display: none; }

.more-dates-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  padding: 8px 10px;
  background: var(--paper-soft);
  border-radius: 8px;
}

.more-dates-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.interest-summary { display: flex; flex-direction: column; gap: 4px; }

.interest-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  padding: 6px 10px;
  background: var(--paper-soft);
  border-radius: 8px;
}

.empty-state, .loading-state {
  color: var(--ink-soft);
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

/* ---------- Themenflüge ---------- */

.section-subtitle {
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--sky-1);
}

.open-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0 32px;
}

.open-group-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.open-group-card h4 {
  margin: 0;
  font-size: 1.02rem;
}

.open-group-card .hint { margin: 0; }

.open-group-seats {
  font-size: 0.9rem;
}
.open-group-seats strong { color: var(--sky-1); }

.open-group-card .seats-bar { margin-top: 2px; }

.open-group-price {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Abflug-Tafel (Flughafen-Stil: nächste Flüge mit freien Plätzen) ---------- */

.departure-board-wrap { margin: 0 0 32px; }

.departure-board {
  background: #0b1620;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 0;
  overflow: hidden;
}

.departure-row {
  display: grid;
  grid-template-columns: 16px 118px 1fr 80px 150px 190px 110px;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: #eef3f7;
  font-family: "Courier New", Consolas, monospace;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.departure-row:last-child { border-bottom: none; }

.departure-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  justify-self: center;
}

.departure-row.soon .departure-light {
  width: 12px;
  height: 12px;
  background: var(--accent);
  animation: departure-pulse 1.4s ease-in-out infinite;
}

/* Intensiveres Blinken (auf Wunsch verstärkt): grösserer Hell-/Dunkel-Kontrast
   (Opazität 0.35 -> 1 statt 0.55 -> 1), deutlich stärkerer Leuchtring (bis zu
   22px Streuung statt 10px) und ein leichtes Pulsieren der Grösse selbst
   (transform: scale), damit es im Augenwinkel klar auffällt. */
@keyframes departure-pulse {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(255, 122, 26, 0.65); opacity: 0.35; transform: scale(0.85); }
  50% { box-shadow: 0 0 22px 9px rgba(255, 122, 26, 1); opacity: 1; transform: scale(1.2); }
}

.departure-date {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.departure-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.departure-seats {
  text-align: right;
  color: #ffce8a;
  font-weight: 700;
  white-space: nowrap;
}

/* Dauer-Spalte (auf Wunsch ergänzt): dezente, kleinere Zusatz-Info neben dem
   Titel - kein Eyecatcher wie der Preis, bleibt daher bewusst leer statt
   einen Platzhalter zu zeigen, wenn keine Dauer bekannt ist (z.B. Flüge ohne
   ausgefülltes Dauer-Freitextfeld im Admin-Bereich). */
.departure-duration {
  color: #9fb3c2;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Preis als Eyecatcher/Aufforderung auf der Abflug-Tafel (auf Wunsch von
   Stefan): kräftige, gut lesbare Badge-Optik, die sich klar vom übrigen
   Konsolen-Look der Tafel abhebt und zum Klick auf den Aktions-Button
   "verführt". */
.departure-price {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 122, 26, 0.16);
  border: 1px solid rgba(255, 122, 26, 0.55);
  color: #ffb066;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  padding: 4px 10px;
  box-sizing: border-box;
}

/* Falls (in seltenen Fällen, z.B. private Themenflug-Gruppen ohne
   Pro-Person-Preis) kein Preis vorliegt: Badge-Optik ausblenden, aber die
   Spalte selbst leer stehen lassen, damit sich Desktop-Spalten bzw.
   Mobile-Grid-Areas der übrigen Zeilen nicht verschieben. */
.departure-price:empty {
  background: none;
  border-color: transparent;
  padding: 4px 0;
}

/* Statt einer reinen Info-Spalte (früher: Helikopter-Modell bzw. Ort als
   Text) hat jede Zeile jetzt einen direkten Handlungs-Button - "Mitfliegen"
   für offene Themenflug-Gruppen, "Platz reservieren" für Flüge mit
   Fixtermin - damit man direkt von der Abflug-Tafel aus einsteigen kann,
   ohne die Karte weiter unten erst suchen zu müssen. */
.departure-action-btn {
  justify-self: start;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.departure-action-btn:hover { background: var(--accent); color: #0b1620; }

@media (max-width: 720px) {
  .departure-row {
    grid-template-columns: 16px 1fr;
    grid-template-areas:
      "light date"
      "light title"
      "light duration"
      "light price"
      "light action"
      "light seats";
    row-gap: 6px;
  }
  .departure-light { grid-area: light; align-self: start; margin-top: 4px; }
  .departure-date { grid-area: date; }
  .departure-title { grid-area: title; white-space: normal; }
  .departure-duration { grid-area: duration; }
  .departure-price { grid-area: price; justify-self: start; }
  .departure-action-btn { grid-area: action; }
  .departure-seats { grid-area: seats; text-align: left; }
}

.theme-form-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff2e6;
  border: 1px solid #ffd8b0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--accent-dark);
}
.theme-form-banner[hidden] { display: none; }

.card-like {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.radio-option.disabled { color: var(--ink-soft); cursor: not-allowed; }

.theme-price-preview {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 4px 0 18px;
  font-size: 0.95rem;
}
.theme-price-preview strong { color: var(--sky-1); font-size: 1.15rem; }

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 { margin-top: 0; }
.modal.modal-wide { max-width: 720px; }
/* Terminabfrage-Raster (Doodle-Stil) kann viele Termin-Spalten haben - braucht
   mehr Platz als die übrigen "wide"-Modals; #poll-detail-table scrollt
   zusätzlich horizontal innerhalb von .table-wrap, falls trotzdem zu schmal. */
#poll-detail-modal-backdrop .modal.modal-wide { max-width: 960px; }

.modal .flight-summary {
  background: var(--paper-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--sky-3);
  outline-offset: 1px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.form-msg { font-size: 0.9rem; margin-top: 10px; }
.form-msg.error { color: var(--warn); }
.form-msg.success { color: var(--ok); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--sky-1);
  color: #cfe3f0;
  padding-block: 28px;
  font-size: 0.9rem;
}
footer.site-footer a { color: #fff; }
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Admin ---------- */

body.admin-body { background: var(--paper-soft); }

.admin-header {
  background: var(--sky-1);
  color: #fff;
  padding: 16px 0;
}
.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.login-card {
  max-width: 380px;
  margin: 80px auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.login-card h1 { font-size: 1.3rem; margin-top: 0; }

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: var(--sky-1);
  border-bottom-color: var(--accent);
}

.panel { display: none; }
.panel.active { display: block; }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.form-grid[hidden] { display: none; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data-table th { color: var(--ink-soft); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }
.table-wrap { overflow-x: auto; }

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.pill.active { background: #e6f6ec; color: var(--ok); }
.pill.cancelled { background: #fdeceb; color: var(--warn); }
.pill.pending { background: #fff2e6; color: var(--accent-dark); }
.pill.confirmed { background: #e6f6ec; color: var(--ok); }

.btn-small {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  margin-right: 4px;
}
.btn-small:hover { background: var(--paper-soft); }
.btn-small.danger { color: var(--warn); border-color: #f4c7c3; }
.btn-small.primary { color: var(--sky-1); border-color: #bfe0f2; }

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

.hint {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Auffälliger Hinweiskasten für wichtige, leicht zu übersehende Admin-Hinweise
   (z.B. den Terminabfrage-Hinweis bei den Wartelisten-Einträgen) - bewusst
   deutlicher als das übliche, unauffällige .hint. */
.callout {
  background: #fff4e8;
  border: 1px solid #ffd9ad;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 10px 0;
}

.rule-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

code {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.85em;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

table.data-table tr.overbooked-row {
  background: #fdeceb;
}
table.data-table tr.overbooked-row td {
  color: var(--warn);
  font-weight: 600;
}

.model-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.theme-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--paper-soft);
}
.route-point-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--paper-soft);
  align-items: center;
}
.route-point-row[hidden] { display: none; }
.theme-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.flight-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.flight-photo-grid .gallery-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-soft);
}
.flight-photo-grid .gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.flight-photo-grid .gallery-item-body {
  padding: 8px 10px;
}

.planung-section-title {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sky-3);
  color: var(--sky-1);
  font-size: 1.1rem;
}
.planung-section-title:first-child { margin-top: 0; }

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.calendar-month-label {
  font-weight: 600;
  color: var(--ink);
}

.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.booking-calendar .cal-weekday {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  padding-bottom: 4px;
}
.booking-calendar .cal-day {
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.booking-calendar .cal-day.cal-empty { background: transparent; border-color: transparent; }
.booking-calendar .cal-day.cal-today { border-color: var(--sky-2); box-shadow: 0 0 0 1px var(--sky-2) inset; }
.booking-calendar .cal-daynum { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.booking-calendar .cal-flight {
  font-size: 0.7rem;
  line-height: 1.25;
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--paper-soft);
  border-left: 3px solid var(--sky-2);
  cursor: pointer;
}
.booking-calendar .cal-flight:hover { background: #e8f1f7; }
.booking-calendar .cal-flight.low { border-left-color: var(--accent); }
.booking-calendar .cal-flight.soldout { border-left-color: var(--warn); }
.booking-calendar .cal-flight.cancelled {
  border-left-color: var(--border);
  color: var(--ink-soft);
  text-decoration: line-through;
}

@media (max-width: 700px) {
  .booking-calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .booking-calendar .cal-day { min-height: 56px; padding: 3px; }
  .booking-calendar .cal-flight { font-size: 0.62rem; padding: 2px 3px; }
  .booking-calendar .cal-weekday { font-size: 0.6rem; }
}

.gallery-admin-grid .gallery-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-soft);
}

.gallery-admin-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.gallery-admin-grid .gallery-item-body {
  padding: 8px 10px;
}

.gallery-admin-grid input[type="text"] {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

#bulk-import-errors .import-error-row {
  font-size: 0.85rem;
  color: var(--warn);
  margin: 2px 0;
}

@media (max-width: 640px) {
  .rule-row { grid-template-columns: 1fr 1fr; }
  .admin-header .container { flex-direction: column; align-items: flex-start; gap: 8px; }
}
