body {
    padding-bottom: 40px;
}

.zf-green {
    color: #68b604;
}

.btn-success {
  background-color: #57a900;
  background-image: -moz-linear-gradient(top, #70d900, #57a900);
  background-image: -ms-linear-gradient(top, #70d900, #57a900);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#70d900), to(#57a900));
  background-image: -webkit-linear-gradient(top, #70d900, #57a900);
  background-image: -o-linear-gradient(top, #70d900, #57a900);
  background-image: linear-gradient(top, #70d900, #57a900);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#70d900', endColorstr='#57a900', GradientType=0);
}

.btn-success:hover,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
  background-color: #57a900;
}

.btn-success:active, .btn-success.active {
  background-color: #57a900;
}

div.container a.navbar-brand > img {
    display: inline;
    margin-right: 4px;
}

div.app-caption {
    padding: 25px 0px;    
    font-size:3.0em;
    font-weight: bold;
    color:#6aacaf
}

form ul {
  list-style-type: none;
  padding: 0px;
  margin: 0px 5px;
}

form ul li {    
  color: red;        
}

.alert ul {
  list-style-type: none;
  padding: 0px;
  margin: 0px 5px;
}



.navbar {
           display:none;
        }
		
		.trenner {
		   padding:0px;
		   margin:0px;
		   height:0px;
		   
		}
		
@media (max-width: 768px) {
	   .navbar {
           display:inline;
        }
		#sitebar {
		    display:none;
		}
		.nodisplaymobile {
		display:none;
		}
		
		.trenner {
		  border-top:1px solid grey !important;
		  height: 20px;
		   
		}
}
	  
	  .list-group.panel > .list-group-item {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  background: #efefef;
  color: black;
}
.list-group-submenu {
  margin-left:20px;
}
.strong {
 font-weight: bold; 

}

/* Header menue */
.header_menue_wrapper {
   width:100%; 
   border:0px solid white; 
   height:20px;
}





.header_menue_inner_left {
   float:left;
   width:19%;
   padding-top:5px;
   padding-left:1%;
}

.header_menue_inner_right {
   float:right;
  
   padding-top:5px;
}


.header_menue_inner_right ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
	overflow: hidden;
}

.header_menue_inner_right ul li {
    float: left;
	padding-right:20px;
	
}

/*
.header_menue_inner a {
    display: block;
    padding: 8px;
   
}
*/
/* Mobile Navigation */

.mobile_navigation_button {
   position: absolute;  
   background: #dfdfdf;   
   left:5px; 
   top:-25px; 
   border:0px; 
   shadow: 0px;
}

.mobile_navigation_nav {
  
   background:transparent; 
   border:0px;
}

/* content */
.ci_container1 {
   border:1px solid grey;
   background: #efefef;
   padding:20px;
   
   -webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;

}

.clear {
   clear:both;
}

h1 {
   font-size:20px;
}
h2 {
   font-size:20px;
   padding-top:0px;
   margin-top:0px;
}

/* Quicksearch */
.quicksearch {
   margin-bottom: 55px;
    padding-top:3px;
}
.form-group-quicksearch {
   float:left; 
   
   margin-right:2%;
}
.titelholder {
  
  height:25px; 
  margin-bottom:10px;
}

.titelholder h1{
  margin:0px;
   padding:0px;
}

/* Liste */

.aktionsbar_left {
  width:40%; 
  float:left; 
  margin-left:5px;
}

.aktionsbar_right {
  width:55%; 
  float:left; 
  text-align: right;
}

.wrapper_top_suche {
   width: 250px;
    float: right;
}

.footer_bar {
   background: #efefef;
   height: 35px;
  
  padding-top: 7px;
  padding-bottom: 10px;
  padding-left:5px;
  
  -webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}

@media (max-width: 500px) {
	.aktionsbar_left {
       width:100%; 
       clear:both;
    }

    .aktionsbar_right {
       width:100%; 
	   clear:both;
	   text-align: left;
	  
	   float:left;
	}
	.wrapper_top_suche {
	   float:left;
	   padding-bottom:8px;
	}
	
	.footer_bar {
	   height: 55px;
	}
	
	.aktionsbar_right_abstand {
	   padding-top:5px;
	}
}

/* */

.zaeler_button {
float:left; 
width:20px; 
}

.zaeler_auswahl {
float:left; 
}

.zaeler_eintraege {
float:left; 
width:200px;
text-align:right;
font-weight: bold;
}

.listarrow {
   font-size: 10px;
  
}

#sortable { list-style-type: none; margin: 0; padding: 0; width: 100%; }

#sortable li { margin: 0 3px 3px 3px;  padding-left: 1.5em;  height: 28px; cursor: pointer; }

#sortable li span { position: absolute; margin-left: -1.3em; }





 .mytable {
  border-spacing: 2px; 
  border-collapse: separate;
 }
 
 .mytable tr {
 background: #d0d7e9;
 }
 
 .mytable td {
	padding:3px;
 }
 
 
  .mytable2,.mytableGruppe,.mytableRechnung,.mytableHaendler,.mytableSonstige {
  border-spacing: 2px; 
  border-collapse: separate;
 }
 
 
 
 .mytable2 tr {
 background: #ffffff;
 }
 .mytableGruppe tr {
 background: #fbffda;
 }
 .mytableRechnung tr {
 background: #ffeaf1;
 }
 
.mytableHaendler tr {
 background: #dddfff;
 }
.mytableSonstige tr {
 background: #d5acff;
 }
 
 .mytable2,.mytableGruppe,.mytableRechnung,.mytableHaendler td {
	padding:3px;
 }
 
 
   .mytable3 {
  border-spacing: 2px; 
  border-collapse: separate;
  border:1px solid black;
  width:100%;
 }
 
 .mytable3 tr {
 background: #ffffff;
 }
 
 .mytable3 td {
	padding:3px;
	font-size:13px;
 }
 
 
 
   .mytable4 {
  border-spacing: 2px; 
  border-collapse: separate;
 }
 
 .mytable4 tr {
 background: #ffffff;
 }
 
 .mytable4 td {
	padding:3px;
	font-size:11px;
 }
 
 
 
/* =========================
   KI HELP MODAL
========================= */


#kiHelpModal {
    display: none;
    position: fixed;
    z-index: 9999;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

 
	min-height: 800px;
    max-height: 85vh;

    overflow-y: auto;

    background: white;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);

    padding: 20px;
}

#kiHelpModal::-webkit-scrollbar {
    width: 10px;
}

#kiHelpModal::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}


#kiHelpTextarea {
    width: 100%;
    min-height: 100px;
    margin-top: 10px;
}

.ki-view {
    display: none;
}


/* =========================
   MODAL CLOSE BUTTON
========================= */

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background: #e53935;
    color: white;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s;
}

.modal-close:hover {
    background: #c62828;
    transform: scale(1.08);
}


/* ===== MODAL SIZE VARIANTS ===== */

.modal--small {
    width: 500px !important;
}

.modal--medium {
    width: 900px !important;
}

.modal--large {
    width: 1200px !important;
}

.ki-help-trigger {
    cursor: pointer;
    transition: 0.2s;
}

.ki-help-trigger:hover {
    transform: scale(1.05);
}


   /* Modernes, klares Layout auf voller Breite */
    .mediathek-container {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    /* Filterleiste - kompakter gehalten */
    .filter-bar {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .search-box, .select-box {
        display: flex;
        align-items: center;
        background: #fff;
        border: 1px solid #ced4da;
        border-radius: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
        padding-left: 12px;
        padding-right: 12px;
        flex: 1;
    }

    .search-box input, .select-box select {
        border: none;
        outline: none;
        width: 100%;
        font-size: 14px;
        margin-left: 8px;
        background: transparent;
    }

    .select-box select {
        cursor: pointer;
    }

    /* Bilder-Grid: Boxen auf min 160px verkleinert für maximale Übersicht pro Zeile */
    .image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    /* Einzelne Bild-Box - kompakter Rahmen */
    .image-card {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.02);
        transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
        display: flex;
        flex-direction: column;
    }

    .image-card:hover {
        transform: translateY(-2px);
        border-color: #007bff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

    /* Bild-Wrapper für saubere Skalierung */
    .image-wrapper {
        position: relative;
        width: 100%;
        padding-top: 66.66%; /* 3:2 Seitenverhältnis fix */
        background: #f1f5f9;
        cursor: pointer;
    }

    .image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Textbereich der Box - Schriften leicht verkleinert für die Kompaktheit */
    .image-info {
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 10px;
        padding-right: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }

    .image-title {
        font-size: 11px;
        color: #1e293b;
        font-weight: 500;
        line-height: 1.3;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 2.6em; /* Hält das Grid auch bei kurzen Titeln bündig */
    }

    .image-meta {
        margin-top: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Kategorie-Badge */
    .category-badge {
        font-size: 9px;
        text-transform: uppercase;
        font-weight: 600;
        background: #e2e8f0;
        color: #475569;
        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 5px;
        padding-right: 5px;
        border-radius: 4px;
        letter-spacing: 0.5px;
    }
	
	
	
	
	
	
.loader {
    border: 6px solid #f3f3f3; 
    border-top: 6px solid #4a90e2; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 20px auto 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

    .upload-container {
        font-family: Arial, sans-serif;
        background: white;
        padding: 25px;
        border-radius: 15px;
        width: 380px;
        //margin: 30px auto;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .custom-file-label {
        padding: 10px 18px;
        background: #4a90e2;
        color: white;
        border-radius: 8px;
        cursor: pointer;
        display: inline-block;
    }

    input[type="file"] {
        //display: none;
    }

    #crop-area {
        margin-top: 20px;
        max-height: 300px;
        overflow: hidden;
        border-radius: 10px;
    }

    .btn-row {
        margin-top: 20px;
        display: flex;
        gap: 10px;
    }

    .btn-row button {
        flex: 1;
        padding: 10px;
        border: none;
        background: #28a745;
        color: white;
        border-radius: 8px;
        cursor: pointer;
    }
	
	
/* CSS für den Rahmen */
.cropper-face {
    border: 2px solid red !important; /* Grüner Rahmen */
}



/* Schatten hinter dem Rahmen */
.cropper-crop-box {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Schwarzer Schatten */
}



/* Cropper-Ecken sichtbar machen */
.cropper-point {
    width: 12px;
    height: 12px;
    background-color: #e74c3c; /* Rote Farbe */
    border-radius: 50%; /* Runde Ecken */
    border: 5px solid white;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
} 


.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.image-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 150px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card img {
    width: 100%;
    display: block;
}

.image-card .buttons {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.image-card button {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.image-card button.select {
    background: #4a90e2;
    color: white;
}

.image-card button.select:hover {
    background: #357ABD;
}

.image-card button.delete {
    background: #e74c3c;
    color: white;
}

.image-card button.delete:hover {
    background: #c0392b;
}

.video-preview-box {

    padding:15px;
    background:#f5f5f5;
    border-radius:10px;
    margin-top:10px;

}



/* Download-Liste */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #ababab;
  border-radius: 8px;
}

.download-item .fa {
  font-size: 1.5rem;
  color: #e10816;
  flex-shrink: 0;
}

.download-item > div:nth-child(2) {
  flex: 1;
}


/* ------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------ */
.mybtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.mybtn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.mybtn:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: #e10816;
  border-color: #e10816;
}

.btn--outline:hover {
  background: #e10816;
  color: #ffffff;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}


/* ==========================================
   IMAGE LIGHTBOX
========================================== */

#imageLightbox {
    display: none;

    position: fixed;
    z-index: 10000;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    max-width: 95vw;
    max-height: 95vh;

    padding: 10px;

    border-radius: 12px;

    background: white;

    box-shadow: 0 0 40px rgba(0,0,0,.4);
}

#imageLightbox img {
    display: block;

    max-width: 90vw;
    max-height: 85vh;

    border-radius: 8px;
}

/* klickbare Vorschaubilder */

.lightbox-image {
    cursor: zoom-in;

    transition: .25s ease;
}

.lightbox-image:hover {
    transform: scale(1.03);
    opacity: .9;
}