body { font-family: 'Segoe UI', sans-serif; background: #f4f7f6; color: #333; }
.container { 
width: 97%;
max-width: 1200px; 
margin: 0 auto; 
padding: 20px;
text-align: center;
margin-left: auto;
margin-right: auto;
color: #1D2259;

h2 {
    font-size: 1.0rem; /* Entspricht bei 16px Basis = 24px */
    margin-top: 1em;   /* Abstand nach oben */
    margin-bottom: 0.5em; /* Abstand nach unten */
	
}

h1 {
    font-size: 1.0rem; /* Entspricht bei 16px Basis = 24px */
    margin-top: 1em;   /* Abstand nach oben */
    margin-bottom: 0.5em; /* Abstand nach unten */
	
}

 }


.header {
	text-transform: uppercase;
	padding: 2px;
	text-align: center;
	#background: #001c35;
	background: linear-gradient(135deg, #3498db, #1D2259);
	color: white;
	font-size: 20px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 15px;
	#margin-bottom: 15px;
	width: 90%; 
	max-width: 1920px;
	margin: 0 auto;
   }

.button[type=submit] {
	width: 300px;
	background: linear-gradient(135deg, #3498db, #1D2259);
	color: white;
	text-align: center !important;
	padding: 4px;
	border: 1px solid #093c71;
	border-radius: 4px;
	margin: auto;
	font-size: 14px;
	
	}
	
.button[type=submit]:hover {
	width: 300px;
	background: linear-gradient(135deg, #1D2259, #3498db);
	color: white;
	text-align: center !important;
	padding: 4px;
	border: 1px solid #093c71;
	border-radius: 4px;
	margin: auto;
	font-size: 14px;
	
	}	


/* Desktop-Tabelle */
.table-wrapper { 
overflow-x: auto; 
background: #fff; 
border-radius: 8px; 
box-shadow: 4px 4px 4px #1D2259;
 }
table { 
width: 100%; 
border-collapse: collapse;
 }

th, td { 
padding: 15px; 
text-align: left; 
border-bottom: 1px solid #eee;
background-color: transparent !important;
 }

th { 
background-color: #1D2259; 
color: #1D2259 ; 
text-transform: uppercase; 
font-size: 14px;
 }

tr:hover { 
background-color: #f9f9f9;
 }



/* Suchfeld optimiert für Echtzeit */
.search-container { 
margin-bottom: 25px;
box-shadow: 4px 4px 4px #1D2259;
border: none;
 }
 
#searchField {
    width: 97%;
    padding: 15px;
    border: none;
    border-radius: 5px; /* Abgerundeter Look */
    font-size: 16px;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
#searchField:focus {
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}


/* Container-Zelle für das Bild vorbereiten */
td[data-label=""] {
    position: relative;
    overflow: visible; /* Wichtig, damit das Bild über den Rand ragen kann */
    z-index: 1;
	background-color: transparent !important;
}

/* 1. Die Zelle bleibt der statische Anker – sie bewegt sich NIEMALS */
td[data-label=""] {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: zoom-in;
    /* Wir stellen sicher, dass die Zelle ein Block-Element für die Maus bleibt */
    overflow: visible;
}

/* 2. Das Bild im Normalzustand */
.prod-img {
    width: 80px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    border-radius: 1px;
    background-color: transparent !important;
    
    transition: 
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.8s ease,
        opacity 0.8s ease;

    /* Wir nutzen NICHT position:fixed im Normalzustand */
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    pointer-events: none; /* Das Bild ist für die Maus 'unsichtbar' */
}

/* 3. Der HOVER wird NUR auf die Zelle angewendet */
/* Das Bild darin reagiert nur passiv */
td[data-label=""]:hover .prod-img {
    /* Wir nutzen position: fixed erst beim Hover */
    position: fixed; 
    top: 50%;
    left: 50%;
    /* Rückt das Bild in die Mitte und zoomt */
    transform: translate(-50%, -50%) scale(6);
    z-index: 9999;
    box-shadow: 0px 20px 80px #104E8B;
    
	/* Sicherheitshalber max-Maße für den Zoom */
    max-height: 150px;
    max-width: 80vw;
}

/* 4. Transparenz-Logik ) */
table:has(td[data-label=""]:hover) td,
table:has(td[data-label=""]:hover) th {
    opacity: 0.1;
}

/* Die aktive Zelle muss sichtbar bleiben, damit der Hover nicht abbricht */
td[data-label=""]:hover {
    opacity: 1 !important;
    background: transparent; /* Verhindert hässliche Ränder */
}

.count-info {
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 4px 4px 4px #1D2259;
    color: #555;
    
}

.count-info strong {
    color: #1D2259;
    font-size: 1.1em;
}

/* Mobile Responsivität */
@media (max-width: 768px) {
    thead { display: none; } /* Kopfzeile ausblenden */
    tr { display: block; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
    td { display: block; text-align: right; font-size: 14px; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; }
    td::before {
        content: attr(data-label);
        position: absolute; left: 15px; font-weight: bold; text-transform: uppercase; color: #1D2259;
    }
    td:last-child { border-bottom: 0; text-align: center; padding-left: 15px; } /* Bild mittig */
    .header {width: 95%; max-width: 410px; margin: 0 auto;}
	.prod-img { width: 60px; height: auto; display: flex; justify-content: center; align-items: center;}
	.container {width: 95%; max-width: 375px; margin: 0 auto; overflow-x: hidden;}

	.search-container {width: 100%; max-width: 375px; margin: 0 auto;  margin-bottom: 25px; box-shadow: 0px 0px 0px #1D2259; overflow-x: hidden }
	#searchField {width: 100%; max-width: 375px; font-size: 14px; }
	.table-wrapper {width: 100%; max-width: 375px; overflow-x: auto; background: #fff; border-radius: 8px; box-shadow: 0px 0px 1px #1D2259; }
	.prod-img :hover{position: fixed; top: 50%; left: 50%; /* Rückt das Bild in die Mitte und zoomt */
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 9999;
    box-shadow: 0px 10px 20px #104E8B;
    
	/* Sicherheitshalber max-Maße für den Zoom */
    max-height: 150px;
    max-width: 80vw; }
}

