/* Schriftart Rajdhani einbinden */
@font-face {
  font-family: 'Rajdhani';
  src: url('../webfonts/Rajdhani-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('../webfonts/Rajdhani-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Allgemeine Einstellungen */
body {
  background-color: #656565  !important;
  color: #fff;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 1.1rem;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 700;
}

/* Maximale Breite */
.container {
  max-width: 1200px;
}

/* Header */
.blog-header {
  	background-color: #2C2C2C;
  	color: #fff;
  	padding: 2rem 0;
  	border-bottom: 5px solid #ff0000;
}

.blog-header .container {
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.blog-header h1 {
	margin: 0;
}

.blog-header p {
	margin: 0;
	color: #ccc;
}

.blog-header h1 a {
	color: #fff;
	text-decoration: none;
}

.blog-header h1 a:hover {
	text-decoration: underline;
}

/* Navbar Toggler */
.navbar-toggler {
	background: none;
	border: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 24px;
	width: 30px;
	min-width: 35px; /* Mindestbreite */
	min-height: 35px; /* Mindesthöhe */
	padding: 5px;     /* Innenabstand */
	cursor: pointer;
}

.navbar-toggler span {
	display: block;
	height: 4px;
	width: 100%;
	background-color: white;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Off-Canvas Navbar */
.offcanvas {
	background-color: #444;
	color: #fff;
}

.offcanvas-title {
 	font-size: 2rem;
}

.offcanvas .nav-link {
 	color: #fff;
 	font-size: 1.2rem;
}

.offcanvas .nav-link:hover {
 	color: #FF0000;
}

.offcanvas .nav-link:focus,
.offcanvas .nav-link:active {
 	color: #FF0000;
}

.menu-divider {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #bbb;
  margin: 0.5rem 0;
}

.menu-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #555;
  margin: 0 0.5rem;
}


.main-content {
	background-color: #fff;
	color: #000;
}

a {
	color: #0D6EFD;
	text-decoration: none;
}

a:hover {
 	color: #000;
}

/* Blog Posts */
.blog-post a {
	color: #0D6EFD;
}

.blog-post a:hover {
 	color: #000;
}

.blog-post-title a {
  	color: #000;
}

.blog-post-title a:hover {
 	color: #0D6EFD;
}

.blog-post-date {
	line-height: 0.7rem;
	font-size: 0.8rem;
}

/* Sidebar */
aside {
  	margin-top: 1rem;
}

.bg-light {
  	background-color: #444 !important;
  	color: #fff;
}

.bg-light a {
  	color: #fff;
}

.bg-light a:hover {
  	color: #ccc;
}

/* Footer */
footer {
  	background-color: #2C2C2C;
  	color: #aaa;
}

footer a {
  	color: #fff;
}

footer a:hover {
  	color: #ccc;
}

.text-nowrap   { white-space: nowrap !important; }

.nachbestellen {
	background-color: #fff !important;
}

/* Labels */
label {
	font-weight: 700;
	margin-bottom: 0.5rem;
	display: block;
	color: #ßßß;
}

/* OWN */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: #2c2c2c;
    border-top: 5px solid #FF0000;
    color: #fff;
    text-align: left;
    z-index: 9999;
}

#cookie-banner a {color: #fff; }

#cookie-banner .message {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 20px;
}

#cookie-banner .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #fff;
    color: #000;
    border: none;
    cursor: pointer;
}

#cookie-banner .btn.decline {
    padding: 10px 15px;
    background-color: #fff;
    color: #000;
}

.custom-accordion {
  border: none; /* Rahmenfarbe und -breite für das gesamte Accordion */
  border-radius: 0; /* Abgerundete Ecken */
  overflow: hidden; /* Verhindert Überlappen */
}

.custom-accordion .accordion-item {
  border: none; /* Entfernt Standardrahmen der Items */
  border-radius: 0; /* Abgerundete Ecken */
  background-color: #2c2c2c; /* Hintergrundfarbe */
}

.custom-accordion .accordion-button {
  color: #fff; /* Textfarbe */
  background-color: #2c2c2c; /* Hintergrundfarbe */
  padding: 1rem; /* Innenabstand */
  border-radius: 0; /* Keine abgerundeten Ecken für Buttons */
  transition: all 0.4s ease; /* Übergangseffekt */
  border: none; /* Entfernt den Rand */
  font-weight: 700;
}

.custom-accordion .accordion-button.collapsed {
  color: #fff; /* Textfarbe für inaktive Buttons */
  background-color: #2c2c2c; /* Hintergrundfarbe für inaktive Buttons */
  border: none; /* Keine Rand für inaktive Buttons */
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: #ffffff; /* Textfarbe für aktive Buttons */
  background-color: #2c2c2c; /* Hintergrundfarbe für aktive Buttons */
  border: none; /* Keine Rand für aktive Buttons */
}

.custom-accordion .accordion-button:focus {
  outline: none !important;  /* Entfernt den Standardfokusrahmen */
  box-shadow: none !important; /* Entfernt den Schatten beim Fokussieren */
  border: none; /* Keine Rand für den Fokus */
}

.custom-accordion .accordion-button:focus:not(:focus-visible) {
  outline: none !important;  /* Keine Umrandung bei Fokus, aber nicht sichtbar */
}
 
.custom-accordion .accordion-body {
  padding: 1rem; /* Innenabstand */
  background-color: #444; /* Hintergrundfarbe für den Inhalt */
  color: #000; /* Textfarbe für den Inhalt */
  border: none; /* Entfernt den Rand des Inhalts */
}

input[type=text],
input[type=url],
input[type=email],
input[type=number],
input[type=password],
input[type=date],
input[type=tel],
textarea,
select, .search {
	padding: 15px 20px !important;
	border: 1px solid #c0c0c0 !important;
	background-color: #f4f4f4 !important;
}

#reader {
  width: 100%;          /* oder eine feste Breite, z.B. 400px */
  max-width: 400px;     /* maximale Breite */
  height: 300px;        /* feste Höhe, passe diese bei Bedarf an */
  overflow: hidden;     /* Überschüssigen Inhalt verbergen */
  margin: 0 auto;       /* zentriert den Container (optional) */
  position: relative;
}

#scannerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}
#scannerOverlay .scanner-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: red;
    transform: translateY(-50%);
}

/* Wrapper: sorgt für einen eigenen Stacking-Kontext */
#scannerWrapper {
  position: relative;
  /* Optional: max-width, height, margin usw. einstellen */
}

/* Das Overlay soll den gesamten Wrapper abdecken */
.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;  /* Sehr hoher Wert, damit es über allem liegt */
  pointer-events: none; /* Damit es die Interaktion nicht blockiert */
}

/* Der rote Balken */
.scanner-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px; /* Balkenhöhe */
  background-color: red;
  transform: translateY(-50%);
  /* Optional: Animation hinzufügen */
  /* animation: scanAnimation 2s linear infinite; */
}

/* Beispiel einer Animation (optional) */
@keyframes scanAnimation {
  0% { top: 0; }
  100% { top: calc(100% - 2px); }
}

#productSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* Passt sich der Breite des Inputs an */
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: none;
}

#productSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: none;
}

/* Vorschlagsliste: Einträge */
#productSuggestions button {
    text-align: left;
    border: none;
    background: none;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease-in-out;
}

/* Hover: Fett + Hintergrund */
#productSuggestions button:hover {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Aktives Element bei Pfeiltasten-Navigation */
#productSuggestions button.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Entfernt die Pfeile in Chrome, Safari, Edge und Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pagination archive.php */
.page-link {
	background-color: #e7e7e7 !important;
	border: 0 !important;
	color: #000 !important;
}
.page-link:hover {
	background-color: #c0c0c0 !important;
	border: 0 !important;
	color: #000 !important;
}
.active .page-link  {
	background-color: #ff0000 !important;
	border: 0 !important;
	color: #ffffff !important;
	font-weight: bold;
}

.tab-content {
	border-left: 1px solid #e7e7e7;
	border-right: 1px solid #e7e7e7;
	border-bottom: 1px solid #e7e7e7;
}

.list-group:hover .list-group-item:hover  {
	background-color: #0D6EFD !important;
	color: #fff !important;
}
.list-group .list-group-item:hover, .list-group .list-group-item .btn:hover  {
	color: #fff !important;
}

/* Standard Light Mode */
body {
    background-color: #ffffff;
    color: #212529;
}

/* Dark Mode (wird automatisch angewendet, wenn das Gerät auf Dark Mode steht) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212 !important;
        color: #f8f9fa;
    }
    
    .main-content {
		background-color: #2c2c2c;
		color: #fff;
	}
	
	a {
		color: #00bbff;
	}
	a:hover {
		color: #fff;
	}
	
	table, tr, td {
		border: 1px solid #777 !important;
	}
    
    th {
    	background-color: #555 !important;
    	color: #fff !important;
    }
    
    tr.nachbestellen, td.nachbestellen {
    	background-color: #fff !important;
    }
    
    tr, td {
    	background-color: #444 !important;
    	color: #fff !important;
    }
    
    .modal-content {
    	background-color: #444 !important;
    	color: #fff !important;
    }

	.text-muted {
		color: #999 !important;
	}
	
	ul li button .nav-link .active {
		background-color: #888 !important;
		border: 1px solid #777 !important;
	}
	
	.nav-tabs {
		border-bottom: 1px solid #555 !important;
	}
	.tab-content {
		border-left: 1px solid #555 !important;
		border-right: 1px solid #555 !important;
		border-bottom: 1px solid #555 !important;
	}
	
	/* Pagination archive.php */
	.page-link {
		background-color: #444 !important;
		border: 0 !important;
		color: #fff !important;
	}
	.page-link:hover {
		background-color: #555 !important;
		border: 0 !important;
		color: #fff !important;
	}
	.active .page-link  {
		background-color: #ff0000 !important;
		border: 0 !important;
		color: #ffffff !important;
		font-weight: bold;
	}
	
	.nav-link {
		background-color: #444 !important;
		border: 0 !important;
		color: #fff !important;
	}
	
	.nav-link:hover {
		background-color: #444 !important;
		border: 0 !important;
		color: #c0c0c0 !important;
	}
	
	.nav-link.active {
		background-color: #777 !important;
		border: 0 !important;
		color: #fff !important;
	}
	
	.alert-info {
		background-color: #031633 !important;
		color: #6EA8FE !important;
		border: 1px solid #084298 !important;
	}
	.alert-primary {
		background-color: #031633 !important;
		color: #6EA8FE !important;
		border: 1px solid #084298 !important;
	}
	.alert-secondary {
		background-color: #051B11 !important;
		color: #c0c0c0 !important;
		border: 1px solid #c0c0c0 !important;
	}
	.alert-danger {
		background-color: #630008 !important;
		color: #fca1a9 !important;
		border: 1px solid #842029 !important;
	}
	.alert-warning {
		background-color: #332701 !important;
		color: #FFDA6A !important;
		border: 1px solid #997404 !important;
	}
	.alert-success {
		background-color: #051B11 !important;
		color: #00f281 !important;
		border: 1px solid #0F5132 !important;
	}
	
	.dropdown .dropdown-menu {
		background-color: #555 !important;
		color: #fff !important;
	}
	
	.list-group .list-group-item {
		background-color: #555 !important;
		color: #fff !important;
	}
	
	.list-group .list-group-item .btn {
		background-color: transparent !important;
		color: #fff !important;
	}
	
	.input-group-text {
		background-color: #444 !important;
		border: 1px solid #777 !important;
		color: #fff !important;
	}
	
	/* Standard Input-Felder im Dark Mode */
	input[type=text],
	input[type=url],
	input[type=email],
	input[type=number],
	input[type=password],
	input[type="datetime-local"],
	input[type="date"],
	input[type=tel],
	textarea,
	select, .search {
	    background-color: #444 !important;
	    border: 1px solid #777 !important;
	    color: #fff !important;
	}
	
	/* Hover-Effekt */
	input[type=text]:hover,
	input[type=url]:hover,
	input[type=email]:hover,
	input[type=number]:hover,
	input[type=password]:hover,
	input[type="datetime-local"]:hover,
	input[type="date"]:hover,
	input[type=tel]:hover,
	textarea:hover,
	select:hover , .search:hover{
	    background-color: #555 !important;
	}
	
	/* Fokus (wenn das Feld aktiv ist) */
	input[type=text]:focus,
	input[type=url]:focus,
	input[type=email]:focus,
	input[type=number]:focus,
	input[type=password]:focus,
	input[type="datetime-local"]:focus,
	input[type="date"]:focus,
	input[type=tel]:focus,
	textarea:focus,
	select:focus, .search:focus {
	    background-color: #555 !important;
	    outline: none !important;
	    color: #fff !important;
	}
	
	/* Placeholder-Farbe ändern */
	input::placeholder,
	textarea::placeholder {
	    color: #fff !important; /* Helleres Grau für den Platzhalter */
	    opacity: 0.8 !important; /* Weniger auffällig */
	}
	
	/* Webkit (Chrome, Safari, Edge) */
	input::-webkit-input-placeholder,
	textarea::-webkit-input-placeholder {
	    color: #fff; !important
	}
	
	/* Mozilla (Firefox) */
	input::-moz-placeholder,
	textarea::-moz-placeholder {
	    color: #fff !important;
	}
	
	/* Microsoft Edge */
	input:-ms-input-placeholder,
	textarea:-ms-input-placeholder {
	    color: #fff !important;
	}
	
	/* älteres Edge/IE */
	input::-ms-input-placeholder,
	textarea::-ms-input-placeholder {
	    color: #fff !important;
	}
	
	.accordion-item {
	    background-color: #444 !important; /* Heller Hintergrund */
	    border: 1px solid #555 !important; /* Dünner Rand */
	    border-radius: 5px; /* Abgerundete Ecken */
	    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
	}
	
	.accordion-button {
	    background-color: #333 !important; /* Blaue Farbe */
	    color: white; /* Weiße Schrift */
	    font-weight: bold;
	}
	
	.accordion-button:not(.collapsed) {
	    color: red !important; /* Dunklerer Blauton, wenn aktiv */
	}
	
	.accordion-body {
	    background-color: #444 !important;
	    color: #fff !important;
	    padding: 15px;
	    font-size: 1rem;
	}
	
	.accordion-button::after {
	    content: "\f078"; /* Pfeil nach unten (Font Awesome) */
	    font-family: "Font Awesome 5 Free"; /* Falls du Font Awesome nutzt */
	    font-weight: 900;
	    transition: transform 0.3s ease;
	}
	
	.accordion-button:not(.collapsed)::after {
	    transform: rotate(180deg); /* Pfeil zeigt nach oben, wenn ausgeklappt */
	}
	
   #productSuggestions {
        background: #222;
        border: 1px solid #555;
    }

    #productSuggestions button {
        color: #ddd;
    }

    #productSuggestions button:hover {
        background-color: #333;
        font-weight: bold;
    }

    #productSuggestions button.active {
        background-color: #0056b3;
        color: white;
        font-weight: bold;
    }
    
    /* --- Card Dark Mode Support --- */
    .card {
        background-color: #2c2c2c !important; /* Dunkler Hintergrund für die Karte */
        border: 1px solid #555 !important;    /* Dezenter grauer Rand */
        color: #fff !important;
    }

    .card-header {
        background-color: #3a3a3a !important; /* Etwas heller zur Abgrenzung */
        border-bottom: 1px solid #555 !important;
    }

    .card-footer {
        background-color: #3a3a3a !important;
        border-top: 1px solid #555 !important;
    }

    .card-body {
        color: #fff !important;
    }
    
    /* Falls List-Groups in Cards genutzt werden (z.B. Menüs) */
    .card .list-group-item {
        background-color: #2c2c2c !important;
        border-color: #555 !important;
        color: #fff !important;
    }
}
