/*Generelle Einstellungen */
* {
    font-size: 12px;
    border: none;
    font-family: Arial;
}


a {
    color: #335a27
}

a:hover {
    color: #518f3e;
}

#externalMobileToggle i.fa-chevron-up {
    color: white;
}

.external-toggle {
    border: 1px solid gray !important;
}

.btn-primary {
    background-color: #335a27;
    border-color: #2b4b21;
}

.btn-primary:hover {
    background-color: #3c682e;
    border-color: #477e36;
}

.accordion-button:not(.collapsed) {
    background-color: #335a27;
    color: #fff;
}

.accordion-button:focus {
    border-color: #335a27;
}

.container-main {
    padding-bottom: 6em;
    padding-top: 2em
}

.dropdown-menu {

    background-color: #212529;
    border-radius: 1px;
}

.dropdown-item {
    color: #aeaeae;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #335a27 !important;
}

.btn.active {
    background-color: #00741d;
    border-color: #00741d;
    color: white;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border: 1px solid #3c682e;
}

/* Ändert die Farbe der ausgewählten Option in Grün */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #28a745;
    /* Textfarbe auf Grün setzen */
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #28a745 transparent transparent transparent;
    /* Pfeil auf Grün ändern */
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #28a745;
    /* Hintergrundfarbe der ausgewählten Option auf Grün setzen */
    color: white;
    /* Textfarbe auf Weiß setzen */
}

/* Ändert die Rahmenfarbe des Select2-Containers */
.select2-container--default .select2-selection--single {
    border: 1px solid #28a745;
    /* Rahmenfarbe auf Grün setzen */
}

/* Ändert die Rahmenfarbe beim Fokus auf das Select2-Feld */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
    border-color: #218838;
    /* Dunkleres Grün bei Fokus */
}

.profile-menu {
    left: -100px !important;
}

.navbar {

    height: 70px;
    position: fixed;
    width: 100vw;
    z-index: 10000;
}

#navbarNav {
    background-color: #212529;
    padding: 2em;
    margin-top: 0em;
}

.navbar a {

    font-size: 1.2em;
}
.navbar-toggler {
    height: 50px;
  width: 50px;
}
.navbar-brand {
    position: relative;
}

.navbar-brand img {
    height: auto;
    /* Größe des Logos */
    position: relative;
   
    /* Lässt das Logo über die Navbar hinaus ragen */
    margin-left: 30px;
    left: 0;
    /* Positioniert das Logo */
    z-index: 11;
    max-width: 10em;
}

.footer {
    background-color: #212529;
    bottom: 0;
    position: fixed;
    width: 100%;
    height: 3em;
    display: flex;
    align-items: center;
    /* Zentriert den Inhalt vertikal */
    z-index: 200 !important;
}

.col1 p {
    margin: 0;
    color: #fff;
}

.col1 {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Zentriert den Text vertikal */
}

.col1:last-child {
    justify-content: flex-end;
    /* Richtet den Text in der letzten Spalte nach rechts aus */
}

.footer-link {
    color: #fff;
}

.modal {
    z-index: 10000;
}

/* Sicherstellen, dass die Sidebar die volle Höhe einnimmt */
.sidebar {
    width: 240px;
    height: 100vh;
    top: 70px;
    left: 0;
    z-index: 5;
}

.sidebar-content {
    padding-top: 150px;

    top: 50px;
    position: absolute;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.section-content {
    margin-top: 90px;
    margin-bottom: 90px;
}

.nav-link_site.active {
    background-color: #00741d !important;
    color: white;
    width: 14em;
    border-radius: 0;
    margin-left: -13px;
    padding-left: 29px;
}

/* Optional: Hover-Effekt für bessere Benutzerfreundlichkeit */
.nav-link_site:hover {
    background-color: #495057;
    color: white;
    width: 15em;
    border-radius: 0;
    margin-left: -13px;
    padding-left: 29px;
}

.nav-link_site_collapse.active {
    background-color: #00741d !important;
    color: white;
    width: 6em;
    border-radius: 0;
    margin-left: -13px;
    padding-left: 29px;
}

/* Optional: Hover-Effekt für bessere Benutzerfreundlichkeit */
.nav-link_site_collapse:hover {
    background-color: #495057;
    color: white;
    width: 6em;
    border-radius: 0;
    margin-left: -13px;
    padding-left: 29px;
}

#map {
    height: 600px;
    width: 100%;
    z-index: 0;
}

#controls {
    margin-bottom: 10px;
}

.main-container {
    padding-top: 5em !important;
    padding-bottom: 3em !important
}

.land-image {
    max-height: 35em;
}

.desktop-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    width: 200px;
    background-color: #343a40;
    color: white;
    transition: width 0.3s ease;
    overflow-y: auto;
    /* Scrollen aktivieren */
    overflow-x: hidden;
    /* Horizontalen Scroll verhindern */
    z-index: 999;
}

#sidebarMenu {
    width: 200px !important;
}

.desktop-sidebar.collapsed {
    width: 90px;
    /* Eingeklappte Breite */
}

.desktop-sidebar .menu-text {
    display: inline;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.desktop-sidebar.collapsed .menu-text {
    opacity: 0;
    visibility: hidden;
}

.desktop-sidebar .nav-link_site {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    /* Angepasstes Padding für bessere Ausrichtung */
    color: white;
    text-decoration: none;
    transition: padding 0.3s ease;
}

/* Korrekte Positionierung des Toggle-Icons */
.desktop-sidebar .nav-link_site.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-sidebar .nav-link_site.text-center i {
    /* Optional: Anpassungen für das Toggle-Icon */
    width: 100%;
    text-align: center;
}

.desktop-sidebar.collapsed .nav-link_site {
    justify-content: center;
    padding: 10px 0;
    /* Reduziertes Padding */
}

.desktop-sidebar .nav-link_site i {
    margin-right: 10px;
    font-size: 18px;
    transition: margin 0.3s ease;
}

.desktop-sidebar.collapsed .nav-link_site i {
    margin-right: 0;
    text-align: center;
    width: 100%;
}

.desktop-sidebar .nav-item.mt-auto {
    margin-top: auto;
}

/* Anpassung des Hauptinhalts bei Sidebar-Kollaps */
.content {
    margin-left: 240px;
    /* Standardmargin */
    transition: margin-left 0.3s ease;
}

.desktop-sidebar.collapsed~.content {
    margin-left: 90px;
    /* Angepasster Margin beim Kollaps */
}

.mobile-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    width: 200px;
    background-color: #343a40;
    color: white;
    transition: width 0.3s ease;
    overflow-y: auto;
    /* Scrollen aktivieren */
    overflow-x: hidden;
    /* Horizontalen Scroll verhindern */
    z-index: 999;
}


.mobile-sidebar.hidden {
    transform: translateY(-100%);
}

.mobile-sidebar.visible {
    transform: translateY(0);
}

.mobile-sidebar .menu-text {
    display: inline;
    transition: opacity 0.3s ease;
}

.mobile-sidebar .nav-link_site {
    display: flex;
    align-items: center;
    padding: 10px;
    color: white;
    text-decoration: none;
}

.mobile-sidebar .nav-link_site i {
    margin-right: 10px;
    font-size: 18px;
}

.mobile-sidebar .nav-item.mt-auto {
    margin-top: auto;
}

/* Externer Toggle-Button für Mobile */
.external-toggle {
    position: fixed;
    top: 90px;
    /* 70px Kopfzeile + 10px Abstand */
    left: 10px;
    z-index: 1100;
    background-color: transparent;
    border: none;
    font-size: 24px;
    
}

.external-toggle i {
    color: #343a40;
    /* Dunkelgrau */
}

/* Mobile Ansicht Styles */
@media (max-width: 767.98px) {

    /* Verstecke Desktop Sidebar */
    .desktop-sidebar {
        display: none;
    }
    #navbarNav {
        background-color: #212529;
        padding: 2em;
        padding-top: 3em; 
        margin-top: 0m;
    }
    
    .navbar {
        height: 85px;
    }

    /* Mobile Sidebar */
    .mobile-sidebar {
        height: calc(100vh - 70px);
    }

    /* Externer Toggle-Button anzeigen */
    .external-toggle {
        display: block;
        height: 40px;
  width: 40px;
    }

    /* Hauptinhalt Anpassung */
    .content {
        margin-left: 0;
        margin-top: 70px;
        /* Höhe der Kopfzeile */
    }
}

/* Desktop Ansicht Styles */
@media (min-width: 768px) {

    /* Verstecke Mobile Sidebar und externen Toggle-Button */
    .mobile-sidebar {
        display: none;
    }

    .external-toggle {
        display: none;
    }

    /* Hauptinhalt Anpassung */
    .content {
        margin-top: 0;
    }

    .fa-chevron-up {
        color: white
    }
}


.btn.btn-primary {
    margin-right: 15px;
    border-radius: 3px;
}

.zwischenüberschrift {
    margin: 1.5em 0;
}

.container-content {
    max-width: 90%;
}

#prevArrow,
#nextArrow {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    text-decoration: none;
    background-color: rgba(60, 50, 50, 0.4);
    color: white !important;
    /* Farbe der Pfeile */
}

.image_modal {
    background-color: rgba(50, 50, 50, 0.9) !important;
}

.btn-close-white {
    filter: invert(1);
    /* Weißes X */
}

#previewImage {
    max-width: 100%;
    /* Bild passt sich der Breite des Modals an */
    max-height: 80vh;
    /* Bild nutzt maximal 80% der Höhe des Bildschirms */
    object-fit: contain;
    /* Bild bleibt innerhalb der Containergrenzen ohne Verzerrung */
}

@media (min-width: 1200px) {

    .modal-lg,
    .modal-xl {
        --bs-modal-width: 1000px;
    }
}

/* CSS für das Drag-Feld */
#checklistItems .fa-bars {
    cursor: grab;
}

/* Stil für den Entfernen-Button (rotes X) */
#checklistItems .btn-danger {
    padding: 0.2rem 0.5rem;
}

.checklist-overview {
    padding-left: 1.5rem;
    font-size: 1.1rem;
}

.checklist-overview .bullet {
    color: #007bff;
    /* Blau für das Bullet-Icon, kann nach Belieben angepasst werden */
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.drag-drop-area {
    border: 2px dashed #007bff;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.drag-drop-area.drag-over {
    background-color: #e9f7ff;
}

.file-list {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
}

.file-item {
    margin: 5px 0;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.col-date {
    width: 15%;
    /* Schmaler für Datum */
}

.col-author {
    width: 20%;
    /* Schmaler für den Autor */
}

.col-actions {
    width: 10%;
    /* Schmal für Aktionen */
}

.swal2-container {
    z-index: 11000 !important;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Abstand zwischen den Kacheln */
    justify-content: flex-start;
    /* Kacheln linksbündig ausrichten */
}

/* Allgemeines Kachel-Design */
.card_start {
    width: 350px;
    height: 350px;
    background-color: #212529;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.card a {
    color: #fff;
}

/* Überschrift oben, ohne zusätzlichen Rand */
.card-header-start {
    text-align: center;
    padding: 10px 0;
    background-color: #212529;
}

.card-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #f8f9fa;
}

/* Inhaltsbereich der Kachel, flexibler Mittelteil */
.card-content {
    flex: 1;
    /* Füllt den verbleibenden Platz zwischen Header und Footer */
    margin: 0 auto;
    /* Zentriert den Inhalt horizontal */
    overflow-y: auto;
    /* Nur vertikales Scrollen */
    max-height: 100%;
}

/* Tabellen-Styling */
.card-table {
    width: 100%;
    border-collapse: collapse;
}

.card-table th {
    background-color: #006400;
    color: #f8f9fa;
    padding: 5px;
    text-align: left;
}

.card-table td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid #555;
}

.card-table tr:hover {
    background-color: #343a40;
}

/* Fixierter Footer am unteren Rand */
.card-footer {
    position: absolute;
    background-color: #343a40;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: sticky;
    bottom: 0;
}

/* Footer-Bereich */
.card-footer {
    width: 350px;
    background-color: #343a40;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Effekt für Hintergrundfarbe und Skalierung */
    margin-top: -10px;
    /* Leicht überlappend mit der Kachel */
}

/* Hover-Effekt für die gesamte Footer-Fläche */
.card-footer:hover {
    background-color: #495057;

}

/* Icon innerhalb des Footers */
.card-footer a {
    font-size: 1.5em;
    color: #f8f9fa;
    text-decoration: none;
}

.card-footer a:hover {
    color: #d3d3d3;
    /* Hellerer Farbton für das Icon beim Hover */
}

.contentBlock {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 1em;
}

.calendar {
    max-height: 42em !important;
}

/* CSS für FullCalendar-Spaltenüberschriften und Datum in Dunkelgrün */

/* Überschriften in der Kopfzeile (z.B. Montag, Dienstag, etc.) */
.fc-col-header-cell {
    color: #006400;
    /* Dunkelgrün */
}

/* Datum in den einzelnen Tagen des Kalenders */
.fc-daygrid-day-number {
    color: #006400;
    /* Dunkelgrün */
}

/* Optional: Überschriften der Toolbar (z.B. Monatsname) */
.fc-toolbar-title {
    color: #006400;
    /* Dunkelgrün */
}

/* Spaltenüberschriften für Wochentage in Dunkelgrün */
.fc-col-header-cell-cushion {
    color: #006400 !important;
    /* Dunkelgrün */
}

/* Datum in den einzelnen Tagen des Kalenders */
.fc-daygrid-day-number {
    color: #006400 !important;
    /* Dunkelgrün */
}

/* Optional: Überschriften der Toolbar (z.B. Monatsname) */
.fc-toolbar-title {
    color: #006400 !important;
    /* Dunkelgrün */
}


/*Details Boxen */
.tab-border {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

/* Spinner-Design */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #007bff;
    /* Farbe anpassen, falls nötig */
}

.select2-container {
    width: 100% !important;
    /* Setzt die Breite des Containers auf 100% */
}

#uploadResponse {
    max-width: 100%;
    /* Maximale Breite von 100% des übergeordneten Containers */
    word-wrap: break-word;
    /* Lässt lange Wörter umbrechen */
    white-space: pre-wrap;
    /* Beibehaltung von Leerzeichen und Zeilenumbrüchen */
    overflow-wrap: break-word;
    /* Für zusätzliche Kompatibilität mit langen Wörtern */
    border: 1px solid #ddd;
    /* Optional: Rahmen für bessere Lesbarkeit */
    padding: 10px;
    /* Optional: Abstand zum Text */
    background-color: #f9f9f9;
    /* Optional: Hintergrundfarbe */
    font-family: monospace;
    /* Optional: Monospace-Schrift für OCR-Daten */
    font-size: 14px;
    /* Optional: Lesbare Schriftgröße */
}

.section-divider {
    position: relative;
    width: 100%;
    height: 16px;
    background-color: #00741d;
    overflow: hidden;
    margin: 20px 0;
  }
  
  .section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    height: 100%;
    width: 40%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    animation: shine 4.8s infinite;
  }
  
  .section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: repeating-linear-gradient(
      -20deg,
      rgba(33, 37, 41, 0.05),
      rgba(33, 37, 41, 0.05) 10px,
      transparent 10px,
      transparent 20px
    );
    z-index: 1;
  }
  
  @keyframes shine {
    0% {
      left: -40%;
    }
    100% {
      left: 120%;
    }
  }