body {
  padding: 20px;
  background: #f5f7fa;
  font-family: system-ui, Arial, sans-serif;
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }
}

/* Ort-Modal im Vordergrund */
.modal-ort-wrapper {
  position: fixed;
  /* wichtig */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9000  !important;
  /* höher als Bootstrap modal */
}


.modal-ort-wrapper .modal-content {
  position: relative;
  z-index: 9010 !important;
}



.reisen-list {
  max-height: 80vh;
  overflow-y: auto;
}

.reisetage-nav {
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.card h6 {
  font-weight: 600;
}

.transport-badge {
  text-transform: uppercase;
  font-size: 0.75rem;
}

.modal-backdrop-vue {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
}




/* --------------------------------------------
HERO-HEADER MIT HINTERGRUNDBILD
--------------------------------------------- */
.hero-header {
  position: relative;
  height: 220px;
  /* Höhe anpassen */
  border-radius: 12px;
  overflow: hidden;
  background-image: url('assets/header.jpg');
  /* Pfad anpassen */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-admin-btn-wrapper {
  position: absolute;
  top: 20px;
  /* Abstand unten */
  right: 20px;
  /* Abstand rechts */
  z-index: 20;
  /* über dem Overlay */
}


.hero-overlay {
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.45);
  /* Abdunklung */
}

/* Titel */
.hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-top: -30px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

/* Untertitel */
.hero-sub {
  font-size: 17px;
  color: #eaeaea;
  margin-top: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-hero-admin {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.25);
  /* halbtransparenter Glaseffekt */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.2s ease;
}

.btn-hero-admin:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #000;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.button-row {
  display: flex;
  gap: 10px;
  /* Der heilige Gral: Abstand ohne Margin */
}

/*----------------------------------*/
/* Modalfenster entsprechend stylen */
/*----------------------------------*/




.modal-vue .modal-title {
  font-size: 1.2rem;
  /* Größerer Titel von .modal-ort */
  font-weight: 600;
  color: #fff;
  /* Sicherstellen, dass der Text weiß ist */
}

.modal-vue .btn-close {
  filter: invert(1);
}

.modal-vue .modal-body {
  background: #fafbfc;
  /* Hintergrund heller als f8f9fa */
  padding: 20px 24px 18px;
  /* Weniger Padding, wie bei .modal-ort */
}


/* Labels in Modals: größer, dunkler, klarer */
.modal-vue .form-label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

/* Eingabefelder mit leichtem Rahmen sichtbar machen */
.modal-vue .form-control,
.modal-vue .form-select,
.modal-vue .form-check-input {
  border-radius: 6px;
  border-color: #ccc;
}

/* Beim Fokus klarer Rahmen */
.modal-vue .form-control:focus,
.modal-vue .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

/* Abfrage-Modal */
/* Abfrage-Modal: flexible Platzierung & Abstand */
.modal-vue.modal-abfrage {
  align-items: flex-start;
  /* oben statt exakt mittig */
  justify-content: center;
  /* horizontal mittig */
  padding: 4vh 2vw;
  /* Abstand zum Fensterrand */
}

/* Dialog: vom Benutzer größenveränderbar */
.modal-abfrage .modal-dialog {
  position: relative;
  /* Referenz für resize */
  pointer-events: auto;
  /* Bootstrap überschreiben! */
  width: 900px;
  /* Startbreite */
  height: 500px;
  /* Starthöhe */
  max-width: 95vw;
  /* nicht größer als Viewport */
  max-height: 90vh;
  min-width: 400px;
  min-height: 300px;
  resize: both;
  /* Ecke unten rechts anfassbar */
  overflow: auto;
  /* Inhalt scrollt, wenn es eng wird */
}

/* Scrollbarer Bereich nur für die Abfrage-Tabelle */
.modal-abfrage .table-responsive {
  max-height: 60vh;
  overflow-y: auto;
}

/* Kopfzeile klebt oben, wenn gescrollt wird */
.modal-abfrage thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9fa;
}

/* Abfrage-Modal – Titel größer & fetter */
.modal-abfrage .modal-header .modal-title {
  font-size: 1.35rem;
  /* größere Schrift */
  font-weight: 700;
  /* Fett */
  letter-spacing: 0.3px;
  /* minimal edler */
  color: #ffffff;
  /* helle Text */
}


/* Inhalt: wir lassen max-height hier mal weg, damit der Dialog die Höhe steuert */
.modal-abfrage .modal-body {
  overflow: auto;
}

@media (max-width: 768px) {
  .modal-abfrage .modal-dialog {
    width: 95vw;
    /* fast volle Breite auf kleinen Screens */
    height: 70vh;
  }

  .modal-abfrage .table-responsive {
    max-height: 55vh;
  }
}


/* --- Styling für die Unter-Tabs (Aufenthalte, Strecken, ...) --- */
.nav-tabs .nav-link {
  font-weight: 600;
  color: #555;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
  margin-right: 4px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 8px 14px;
}

.nav-tabs .nav-link:hover {
  background-color: #e8e8e8;
  color: #222;
}

.nav-tabs .nav-link.active {
  /*	background-color: #0d6efd !important; */
  color: #fff !important;
  font-weight: 700 !important;
  border-color: #0d6efd #0d6efd #fff;
}

.nav-tabs {
  border-bottom: 2px solid #0d6efd;
}




/* ============================================================
TABS MIT MODAL-FARBEN ABSTIMMEN
============================================================ */

/* --- 1. Aufenthalte-Tab (grün/teal) --- */
.nav-tabs .nav-link.aufenthalte-tab.active {
  background-color: #07825d !important;
  color: #fff !important;
  border-color: #07825d #07825d #fff !important;
}

/* --- 2. Strecken-Tab (blau) --- */
.nav-tabs .nav-link.strecken-tab.active {
  background-color: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd #0d6efd #fff !important;
}

/* --- 3. Besichtigungen-Tab (goldgelb) --- */
.nav-tabs .nav-link.besichtigungen-tab.active {
  background-color: #cc9a04 !important;
  color: #000 !important;
  border-color: #cc9a04 #cc9a04 #fff !important;
}

/* --- 4. Kosten-Tab (orange) --- */
.nav-tabs .nav-link.kosten-tab.active {
  background-color: #fd7e14 !important;
  color: #fff !important;
  border-color: #fd7e14 #fd7e14 #fff !important;
}

/* --- 4. Karten-Tab (orange) --- */
.nav-tabs .nav-link.karte-tab.active {
  background-color: #fd145a !important;
  color: #fff !important;
  border-color: #fd145a #fd145a #fff !important;
}

/* --- 5. Abfragen-Tab (grüne) --- */
.nav-tabs .nav-link.abfragen-tab.active {
  background-color: hsl(289, 54%, 55%) !important;
  color: #fff !important;
  border-color: hsl(289, 54%, 55%) hsl(289, 54%, 55%) #fff !important;
}



/* Hauptueberschrift Reiseverwaltung Variante B  */
.page-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #333;
  border-left: 6px solid #07825d;
  padding-left: 14px;
  margin-left: 4px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 14px;
  /* Abstand zwischen Globus und Text */
}

.page-icon {
  font-size: 2.3rem;
  /* exakt gleiche Höhe wie Text */
  line-height: 1;
}

/* Textfarbe der zweiten Zeile im aktiven Reise-Eintrag korrigieren */
.list-group-item.active .small,
.list-group-item.active .text-muted {
  color: #fff !important;
}

/* --- Modals immer über ALLEM anzeigen --- */
.modal-backdrop-vue {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2500 !important;
}

.modal-vue {
  position: absolute !important;
  cursor: default;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2600 !important;
}

.modal-vue .modal-header {
  background: linear-gradient(135deg, #343a40, #212529);
  /* Dunkler Farbverlauf von .modal-ort */
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 24px;
  /* Mehr Padding von .modal-ort */
  /* Zusätzliche Flexbox-Regeln in modal-vue beibehalten: */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  /* Header als „Griff“ */
}

.modal-vue .modal-dialog {
  z-index: 2100 !important;
}

.modal-vue .modal-content {
  background: #fafbfc;
  /* Heller Hintergrund von .modal-ort */
  border-radius: 18px;
  /* Größerer Radius von .modal-ort */
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  /* Stärkerer Schatten von .modal-ort */
  border: none;
  /* Entfernen des Rahmens von .modal-ort */
  z-index: 2200 !important;
}

.modal-vue .modal-footer {
  padding: 12px 24px 16px;
  /* Padding von .modal-ort */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #f5f6f8;
  /* Heller Hintergrund von .modal-ort */
  /* Zusätzliche Flexbox-Regeln in modal-vue beibehalten: */
  display: flex;
  gap: 10px;
}

.modal-share .modal-title {
  color: #fff !important;
}

.modal-share .modal-header {
  background-color: #89bac9 !important;
  /* hellgrau */
}

/* Rahmen & Grundlook des Ort-Modals */
.modal-ort {
  border-radius: 18px;
  overflow: hidden;
  /* Header/Body schön zusammen */
  z-index: 3170 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: none;
  background: #fafbfc;
}

/* Header: dunkler Balken, etwas größerer Titel */
.modal-ort .modal-header {
  background: linear-gradient(135deg, #343a40, #212529);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 24px;
}

.modal-ort .modal-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Body mit ordentlichem Innenabstand */
.modal-ort .modal-body {
  padding: 20px 24px 18px;
}

/* Footer leicht abgesetzt */
.modal-ort .modal-footer {
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #f5f6f8;
}

/* Labels etwas eleganter */
.modal-ort .form-label {
  font-weight: 500;
  margin-bottom: 4px;
}

/* Inputs: weiche Kanten, zarte Umrandung */
.modal-ort .form-control {
  border-radius: 10px;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
}

/* Fokuszustand: blaue, aber nicht schreiende Outline */
.modal-ort .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.16rem rgba(13, 110, 253, 0.18);
}

/* Buttons im Footer etwas weicher */
.modal-ort .btn {
  border-radius: 999px;
  padding-inline: 18px;
}

/* Primary-Button leicht hervorgehoben */
.modal-ort .btn-primary {
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.35);
}

#userModal .modal-header {
  background-color: #0d5ba0;
  color: #fff;
}

#userModal .btn-close {
  filter: invert(1);
}


/* --------------------------------------------
    FARBCODES SPEZIFISCH FÜR JEDE MODALART
    -------------------------------------------- */

/* Aufenthalt */
.modal-vue.modal-aufenthalt .modal-header {
  background: #07825d !important;
  /* teal */
}

/* Strecke */
.modal-vue.modal-strecke .modal-header {
  background: #0d6efd !important;
  /* blau */
}

/* Besichtigung */
.modal-vue.modal-besichtigung .modal-header {
  background: #cc9a04 !important;
  /* goldgelb */
}

.modal-vue.modal-besichtigung .btn-close {
  filter: none !important;
}

/* Kosten */
.modal-vue.modal-kosten .modal-header {
  background: #fd7e14 !important;
  /* orange */
}

/* Reisetag */
.modal-vue.modal-reisetag .modal-header {
  background: #6c757d !important;
  /* grau */
}


.modal-abfrage .form-control:focus,
.modal-abfrage .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(32, 201, 151, 0.35);
  /* z.B. grün für „Reports“ */
}

/* Farbiger Fokus für Eingaben je Modal */
.modal-aufenthalt .form-control:focus,
.modal-aufenthalt .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(32, 201, 151, 0.35);
}

.modal-strecke .form-control:focus,
.modal-strecke .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.35);
}

.modal-besichtigung .form-control:focus,
.modal-besichtigung .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 193, 7, 0.35);
}

.modal-kosten .form-control:focus,
.modal-kosten .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(253, 126, 20, 0.35);
}

.modal-reisetag .form-control:focus,
.modal-reisetag .form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(108, 117, 125, 0.35);
}

.modal-ort .form-control:focus {
  box-shadow: 0 0 0 0.15rem rgba(52, 58, 64, 0.35);
}

.modal-reise .modal-header {
  background-color: #0d6efd;
  /* oder eine eigene Farbe */
  color: #fff;
}


/* Auf sehr kleinen Viewports etwas mehr Luft */
@media (max-width: 576px) {
  .modal-ort .modal-body {
    padding: 16px 16px 14px;
  }

  .modal-ort .modal-footer,
  .modal-ort .modal-header {
    padding-inline: 16px;
  }
}





/* ================================
   LOGIN-SEITE
   ================================ */

.login-wrapper {
  min-height: 100vh;
  /* volle Höhe – wirkt wie eigene Seite */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(32, 201, 151, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.18), transparent 55%),
    #0b1724;
  background-attachment: fixed;
}

.login-card {
  width: 100%;
  max-width: 430px;
  border-radius: 18px;
  padding: 26px 26px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #0d6efd, #20c997);
  color: #fff;
}

.login-title {
  font-size: clamp(1.7rem, 2.2vw + 1rem, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #1f2933;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.login-hint {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.6rem;
}

/* Inputs im Login etwas "dicker" */
.login-card .form-control-lg {
  font-size: 0.98rem;
  border-radius: 10px;
}

/* Fokus klar, aber nicht schrill */
.login-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.14rem rgba(13, 110, 253, 0.25);
}

/* Button minimal weicher */
.login-card .btn-primary {
  border-radius: 999px;
}

/* Auf sehr schmalen Geräten ein wenig zusammenrücken */
@media (max-width: 480px) {
  .login-card {
    padding: 20px 18px 16px;
  }
}

@media (max-width: 768px) {
  .hero-header {
    height: 170px;
    border-radius: 10px;
  }

  .hero-overlay {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2rem);
    margin-top: -10px;
  }

  .hero-sub {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .reisen-list {
    max-height: 40vh;
    /* Liste nimmt auf Handy nicht den ganzen Screen weg */
  }

  .reisetage-nav {
    padding-bottom: 4px;
  }

  .reisetage-nav .nav-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {

  /* Kacheln etwas größer und mit weniger Textkleinschrumpfung */
  .bilder-tile {
    width: 45%;
  }
}

/* ============================
   Galerie 2.0 – Bild-Viewer
   ============================ */

.image-viewer-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.image-viewer-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Navigationspfeile */
.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  padding: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.image-nav-btn-left {
  left: 10px;
}

.image-nav-btn-right {
  right: 10px;
}

.image-nav-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* Auf Handy etwas kleiner */
@media (max-width: 768px) {
  .image-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

/* Trefferliste im Ort-Modal: wie ein Dropdown */
.ort-search-dropdown {
  max-height: 220px;
  overflow-y: auto;
  border-radius: 10px;
}

/* Optional: Text nicht umbrechen */
.ort-search-dropdown .list-group-item .text-truncate {
  max-width: 360px;
}



/* ============================
   Kartenansicht – Leaflet Map
   ============================ */
.route-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  overflow: hidden;
}

/* Auf kleineren Geräten etwas höher */
@media (max-width: 768px) {
  .route-map {
    height: 320px;
  }
}