/* Globale Stile */
body {
    font-family: Arial;
    margin: 0 5px;
    line-height: 1.6;
    background-color: #020202;
    color: #fff;
}

h1,
h2 {
    font-weight: bold;
}

html {
    scroll-behavior: smooth;
}

*[id] {
  scroll-margin-top: 30px;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Infoleiste */
.infoleiste-container {
    position: fixed;
	box-sizing: border-box;
    top: 0;
    left: 50%; /* Positioniert die Leiste mittig */
    transform: translateX(-50%); /* Korrigiert die Positionierung um die Hälfte der Breite */
    max-width: 1200px; /* Maximale Breite, entspricht der Breite des Wrappers */
    width: 100%; /* Nimmt maximal die Breite des Wrappers ein, aber nicht mehr */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px;
	padding-right: 10px; /* Fügt Padding rechts hinzu */
    z-index: 100;
    text-align: right;
    box-sizing: border-box;
	top: 0;
}

#warenkorb-infoleiste a {
    color: #90EE90;
    font-weight: bold;
    text-decoration: none;
	cursor: pointer; /* Wichtig, da es kein <a> ist */
    transition: color 1s ease
}

#warenkorb-infoleiste a:hover {
    color: #6CB36C;
}

/* Header */
header {
    background-color: #020202;
    padding: 0px 0;
    margin: 0 auto;
}

.header-content {
    position: relative; /* Wichtig für die absolute Positionierung des Textes */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 260px; /* Höhe des Headers festlegen (entspricht der Bildhöhe) */
    background-image: url("img/neonreef.jpg?v=<?php echo $version; ?>"); /* Hintergrundbild */
    background-size: cover; /* Bild füllt den Container aus */
    background-position: center; /* Bild zentriert */
}

#logo-text {
    position: absolute;
    top: 60px;
    left: 0px;
    color: white;
    font-size: 1em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0px 10px;
    border-radius: 5px;
    text-shadow: 1px 1px 2px black;
    white-space: normal;
}

/* Filter */
.filter-bereich {
    position: absolute;
    bottom: 5px;
    left: 10;
    right: 10;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 20px;
    border-radius: 5px;
    text-shadow: 1px 1px 2px black;
    white-space: normal; /* Erlaubt Zeilenumbrüche, falls nötig */
    display: flex; /* Aktiviert Flexbox für den gesamten Filterbereich */
    justify-content: center; /* Zentriert den Inhalt horizontal */
    align-items: center; /* Zentriert den Inhalt vertikal */
}

#filter-form {
    display: block;
    width: 100%;
    box-sizing: border-box;
	font-size: 0.8em;
}

.filter-typen {
    display: flex;
    flex-wrap: wrap; /* Wichtig für den Zeilenumbruch */
    justify-content: center; /* Zentriert die Labels innerhalb des Containers */
    gap: 0px; /* Abstand zwischen den Labels */
    width: 100%;
    box-sizing: border-box;
}

.filter-label {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 0px;
}

@media (max-width: 700px) {
    .filter-typen {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0px 5px;
        justify-items: stretch;
    }
	
    .filter-label {
        margin-right: 0;
        margin-bottom: 0;
    }

    #logo-text {
        font-size: 0.8em;
    }
		
    .header-content {
        height: 200px; /* Höhe des Headers festlegen (entspricht der Bildhöhe) */
    }
}

/* Produkte */
.produkte-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.produkt {
    background-color: #212121;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Mindesthöhe für konsistentes Layout */
}

.produkt-inhalt {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1; /* Nimmt verfügbaren Platz ein */
}

.produkt-bild {
    flex: 0 0 40%;
}

.produkt-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.produkt-text p {
    flex: 1; /* Beschreibung nimmt verfügbaren Platz ein */
    margin-bottom: 15px;
}

.preis-warenkorb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: auto; /* Sorgt dafür, dass es nach unten gedrückt wird */
    padding-top: 15px;
    border-top: 1px solid #444; /* Optische Trennung */
}

.preis-status {
    text-align: left;
}

form {
    text-align: right;
    margin: 0;
}

.produkt-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 15px;
}

.produkt-info {
    text-align: right;
    padding-right: 5px;
    margin-top: 0px;
}

.produkt:hover {
    border-color: #999;
}

.nicht-verfuegbar {
    opacity: 0.6;
    filter: grayscale(50%);
}

.produkt h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.produkt-bilder {
    display: flex;
    gap: 10px;
}

.image-wrapper {
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bereits-im-warenkorb {
    color: yellow; /* Farbe für "Bereits im Warenkorb" */
}

.produkt .status-wert { /* Neuer Selektor für den Statuswert */
    color: red; /* Standardfarbe rot */
}

.produkt .status-wert.verfuegbar { /* Spezifischer Selektor für "verfügbar" */
    color: #90EE90;
}

button[name="in_warenkorb"] { /* Selektor für den Button */
    background-color: #4CAF50; /* Grüne Hintergrundfarbe */
    border: none; /* Kein Rahmen */
    color: white; /* Weiße Schriftfarbe */
    padding: 10px 20px; /* Innenabstand (oben/unten, links/rechts) */
    text-align: center; /* Text zentrieren */
    text-decoration: none; /* Keine Unterstreichung */
    display: inline-block; /* Als Inline-Block anzeigen */
    font-size: 16px; /* Schriftgröße */
    margin: 4px 2px; /* Außenabstand */
    cursor: pointer; /* Mauszeiger als Hand */
    border-radius: 5px; /* Abgerundete Ecken */
    transition: background-color 0.3s ease; /* Sanfter Übergang für die Hintergrundfarbe */
}

button[name="in_warenkorb"]:hover { /* Stil beim Überfahren mit der Maus */
    background-color: #45a049; /* Dunkleres Grün beim Hover */
}

/* Kleindisplay - Mobile Ansicht */
@media (max-width: 768px) {
    .produkt-inhalt {
        flex-direction: column;
    }
    
    .produkt-bild {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .produkt-text {
        width: 100%;
    }
    
    .produkt {
        min-height: auto; /* Auf Mobile keine feste Höhe */
    }
}


#image-viewer img {
    object-fit: contain; /*Stellt sicher, dass das Bild vollständig sichtbar ist und nicht abgeschnitten wird*/
}

/* Warenkorb */
#haupt-warenkorb {
    background-color: #424242;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 20px;
	padding-top: 0px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
    width: 100%;
    margin-top: 30px;
    color: white;
	text-align: left;
}

#haupt-warenkorb:hover {
    border-color: #999;
}

#warenkorb-inhalt {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
	text-align: right;
}

.loeschen-button {
    background: none; /* Kein Hintergrund */
    border: none; /* Kein Rahmen */
    color: red; /* Rote Schriftfarbe */
    font-size: 16px; /* Schriftgröße */
    cursor: pointer; /* Mauszeiger als Hand */
    padding: 0 0px; /* Etwas horizontalen Abstand */
    line-height: 1; /* Zentriert den Text vertikal */
    transition: color 1s ease
}

.loeschen-button:hover {
    color: darkred; /* Dunkleres Rot beim Hover */
}

#artikel-liste {
    flex: 1;
    text-align: left;
}

#warenkorb-zusammenfassung {
    flex: 1;
    text-align: right;
    max-width: 500px; /* Maximale Breite */
	min-width: 340px; /* Minimale Breite */
}

#warenkorb-liste {
    list-style-type: none;
    padding: 0;
    max-width: 500px; /* Maximale Breite */
	min-width: 340px; /* Minimale Breite */
}

#warenkorb-liste li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.loeschen-form {
    margin-right: 10px;
}

.produkt-information {
    flex-grow: 1;
}

.warenkorb-produkt-link { /* Selektor für das span */
    color: #FFFF00;
    text-decoration: none;
    cursor: pointer; /* Wichtig, da es kein <a> ist */
    transition: color 1s ease
}

.warenkorb-produkt-link:hover {
    color: #B3B300;
}

.warenkorb-produkt-id {
    color: #888; /* ID in einer helleren Farbe */
    margin-right: 0px; /* Abstand zum Trennzeichen */
}

.produkt-preis {
    white-space: nowrap;
    margin-left: 5px;
    text-align: right;
    width: 60px;
}

#preis-uebersicht {
    text-align: right;
    margin-top: 10px;
}

.preis-wert {
    display: inline-block;
    width: 80px;
    text-align: right;
}

#rabattstufe {
	color: gray;
	font-size: 0.8em;
}

#zahlungsmethoden {
    margin-top: 20px;
    text-align: right;
	font-size: 1em;
}

#zahlungsmethoden a {
    color: #90EE90;
    font-weight: bold;
    text-decoration: none;
	cursor: pointer; /* Wichtig, da es kein <a> ist */
    transition: color 1s ease
}

#zahlungsmethoden a:hover {
    color: #6CB36C;
}

#paypal_button_container, #amazonpay_button_container {
    cursor: pointer; /* Damit der Cursor beim Darüberfahren als "Hand" angezeigt wird */
}

#bezahl-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: right;
}

.zahlungsbutton-container {
    margin: 10px;
    cursor: pointer;
    opacity: 0.5; /* Anfangs ausgegraut */
    pointer-events: none; /* Anfangs nicht anklickbar */
    transition: opacity 0.3s ease; /* Sanfter Übergang für die Opazität */
}

.zahlungsbutton-container.aktiv { /* Klasse für aktive Buttons */
    opacity: 1;
    pointer-events: auto;
}

.zahlungsbutton-container img {
    max-width: 200px;
    height: auto;
    display: block;
}

.oder-text {
    margin: 0 5px;
    opacity: 0.5; /* Anfangs ausgegraut */
    transition: opacity 0.3s ease; /* Sanfter Übergang für die Opazität */
}

.oder-text.aktiv { /* Klasse für aktives "oder" */
    opacity: 1;
}

#agb_label {
    opacity: 1;
    pointer-events: auto;
}

#agb_label.deaktiviert {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 900px) { /* Media Query für kleine Bildschirme */
    .zahlungsbutton-container img {
        max-width: 100px;
        height: auto;
        display: block;
    }
		
    #bezahl-buttons {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }
}		

#zahlungsmethoden {
    margin-top: 20px;
    text-align: right;
    font-size: 0.8em;
}

footer {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
	width: 100%;
    overflow: hidden;
    transition: height 5s ease-in-out; /* Übergang für die Höhe */
    background-color: #212121;
    box-sizing: border-box;
    padding: 10px 30px; /* Oben/Unten 0, Links/Rechts 20px */
    border-radius: 5px;
    transition: border-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
    color: white;
	text-align: left;
}

.footer-header {
    cursor: pointer;
}

.footer-content {
    display: none;
    font-size: 0.9em;
    padding-bottom: 0px;
    margin-top: 0px;
}

.footer-column.active .footer-content {
    display: block;
    color: gray;
}

@media (max-width: 600px) { /* Media Query für kleine Bildschirme */
    .footer-header {
        cursor: pointer;
        text-align: center;
    }
}
		
.copyright {
	font-size: 0.8em;
	width: 100%; /* Oder eine feste Breite, wenn gewünscht */
	text-align: center; /* Zentriert den Textinhalt */
	margin: 20px; /* Abstand zum oberen Footer-Element */
	/* Wichtig: Füge diese Zeilen hinzu, um die horizontale Zentrierung zu gewährleisten */
	display: flex;
	justify-content: center; /* Zentriert das Element horizontal */
	align-items: center; /* Zentriert das Element vertikal (optional) */
}