:root { 
--primary: #2563eb; 
--bg: #f8fafc;
 }
body { font-family: sans-serif; 
background: var(--bg); 
display: flex; flex-direction: column; 
align-items: center; 
padding: 20px;

 }
 @keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.header {
  animation: fadeIn 2s ease-in-out;
}

.close-btn {
	background-color: #FF4500;
}


.search-container {
  animation: fadeIn 3s ease-in-out;
}

.viewer-header {
  animation: fadeIn 0s ease-in-out;
}

 h1 { 
 font-size: 1.5rem;
 color: #1D2259;
 }
 
input[type=submit]:hover {
    background: #9ec4ea;
    color: black;
	border-radius: 4px;
	}		

button[type=submit]:hover {
    background: #9ec4ea;
    color: black;
	border-radius: 4px;
}		
 
 
 .button[type=submit] {
	width: 300px;
	background: #093c71;
	color: white;
	text-align: center;
	padding: 4px;
	border: 1px solid #093c71;
	border-radius: 4px;
	margin: auto;
	font-size: 14px;
	}
 
 
 .header {
	text-transform: uppercase;
	padding: 20px;
	text-align: center;
	#background: #001c35;
	background: linear-gradient(135deg, #3498db, #1D2259);
	color: white;
	font-size: 18px;
	margin-top: 15px;
	margin-bottom: 15px;
	width: 100%; 
	max-width: 500px;
   }

.footer {
	
	width: 300px;
	margin: auto;
   padding: 5px;
   text-align: center;
   color: black;
   font-size: 12px;
   margin-top: 10px;
   }
.impressum {
   width: 90%;
   margin: auto;
   text-align: left;
   font-size: 12px;
 
   }

 
 
.search-container { 
	background: white; 
	padding: 2rem; border-radius: 12px; 
	/*box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/ 
	box-shadow: 10px 10px 5px #1D2259;
	/*box-shadow: 10px 10px 5px linear-gradient(135deg, #3498db, #1D2259);;*/
	width: 100%; 
	max-width: 600px;
	}
 
input { 
	width: 100%;
	padding: 12px; border: 2px solid #e2e8f0; 
	border-radius: 8px; 
	box-sizing: border-box;
	font-size: 15px;
  }
 
input::placeholder {
  color: #1D2259; /* Kräftige Farbe (z.B. Orange-Rot) */
  opacity: 1;    /* Verhindert Blässe in Firefox */
  font-style: italic; /* Kursiv für bessere Erkennbarkeit */
  font-weight: bold;  /* Fettgedruckt */
  font-size: 1em;   /* Leicht vergrößert */
}

/* Optional: Placeholder beim Fokussieren ausblenden */
input:focus::placeholder {
  color: transparent;
}
 
/* Ergebnisliste */
.results-list {
    margin-top: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 8px;
    text-align: left;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s, padding-left 0.2s;
    background: var(--bg-card);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: #f8fafc;
    padding-left: 24px;
    color: var(--primary);
}

.1result-item span:first-child {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    margin-right: 12px;
}

#pdfViewerContainer 
{ 
position: fixed; 
top: 0; left: 0; 
width: 100%; 
height: 100%; 
background: rgba(0,0,0,0.9); 
display: flex; 
flex-direction: column; }
.viewer-header { 
background: #1e293b; 
color: white; padding: 15px; 
display: flex; 
justify-content: space-between;
 }
iframe { 
flex-grow: 1; 
border: none;
background: linear-gradient(135deg, #3498db, #1D2259);
 }
.hidden { 
display: none !important;
 }
.result-item
 {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #334155;
}

.result-item:hover {
    background: #f0f7ff;
    color: #2563eb;
    padding-left: 20px; /* Kleiner Animationseffekt beim Hover */
}

.result-item svg {
    color: #008B00; /* PDF-Icon in Grün */
}

.header {
	text-transform: uppercase;
   padding: 20px;
   text-align: center;
   background: linear-gradient(135deg, #3498db, #1D2259);
   color: white;
   font-size: 18px;
   margin-top: 15px;
   margin-bottom: 15px;
   width: 100%; 
   max-width: 1920px;
   }
   
/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  }

/* Tooltip text */
.tooltiptext {
  visibility: hidden; /* Hidden by default */
  width: 160px;
  background-color: #3498db;
  color: #ffffff;
  text-align: center;
  padding: 3px 0;
  border-radius: 6px;
  position: absolute;
  /*box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);*/
  box-shadow: 6px 6px 4px #1D2259;
  z-index: 1; /* Ensure tooltip is displayed above content */
  font-size: 13px;
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
}


#customContextMenu {
    display: none;
    position: absolute; /* Wichtig für korrekte Position */
    z-index: 10000;
    background: white;
    border: 1px solid #aaa;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
    min-width: 180px;
}
#emailLink {
    padding: 10px 15px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
}
#emailLink:hover {
    background-color: #f0f0f0;
}


/* Responsivitäts-Anpassungen */
@media (max-width: 640px) {
    body {
        padding: 10px;
    }
    
    .search-container {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .viewer-header {
        padding: 0.75rem;
    }

    #currentFileName {
        max-width: 150px;
    }
}

/* Scrollbar Styling für die Ergebnisliste */
.results-list::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.results-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}   