/* --- PRODUKT GRID & CONTAINER --- */
.product-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    /* Ein sehr helles, sauberes Grau-Blau für mehr Frische */
    background-color: #f8fafc; 
    width: 100%;
    box-sizing: border-box;
}

.hero {
    width: 100%;
    background: #ffffff; /* Reinweiß für den Hero-Kontrast */
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-bottom: 1px solid #edf2f7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

/* --- PRODUKT KARTE --- */
.product-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
	padding-top: 50px !important; /* Erhöhter Abstand oben für das Banner */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #900205;
    font-size: 1.4rem;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.product-image:hover {
    opacity: 0.9;
}

/* --- FORMULAR ELEMENTE --- */
.product-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-form select, 
.product-form input[type=number],
.product-form input[type=text] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fcfcfc;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.product-form select:focus, 
.product-form input:focus {
    border-color: #0077cc;
    outline: none;
    background-color: #fff;
}

/* Container für die Produktbeschreibung */
.product-description {
    height: 120px;          /* Feste Höhe für alle Karten */
    overflow-y: auto;       /* Scrollbar erscheint nur bei Bedarf */
    margin: 15px 0;
    padding-right: 5px;     /* Platz für den Scrollbalken */
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    color: #444;
}

/* --- Styling für einen dezenten Scrollbalken --- */
.product-description::-webkit-scrollbar {
    width: 6px;
}

.product-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.product-description::-webkit-scrollbar-thumb:hover {
    background: #900205; /* Firmenfarbe beim Drüberfahren */
}


/* Preis & Button */
.price-display {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.price-display::before {
    content: "Gesamtpreis: ";
    display: block;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    font-weight: normal;
}

/* --- VERSAND BADGE (Modernes Design) --- */
.shipping-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #27ae60; /* Ein schönes, sattes Verkaufs-Grün */
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Rundung nur oben, passend zur Card (15px) */
    border-radius: 15px 15px 0 0; 
    z-index: 10;
}

/* --- TOOLTIP OPTIMIERUNG --- */
/* Grundzustand: Absolut unsichtbar */
.tooltip-text {
    display: none; /* Wichtig: Versteckt das Element komplett */
    position: absolute;
    bottom: 130%; /* Etwas höher über dem Text */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

/* Kleiner Pfeil nach unten */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* NUR wenn 'show' vorhanden ist, anzeigen */
.tooltip-container.active .tooltip-text {
    display: block !important;
}

/* Der klickbare Text */
.tooltip-container {
    cursor: pointer;
    color: #0077cc;
    text-decoration: underline;
    font-size: 0.85rem;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- WARENKORB TABELLE (Responsive) --- */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.cart-table th {
    padding: 15px;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
}

.cart-table td {
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cart-table tr td:first-child { border-left: 1px solid #eee; border-radius: 10px 0 0 10px; }
.cart-table tr td:last-child { border-right: 1px solid #eee; border-radius: 0 10px 10px 0; }

/* Mobile Shop Anpassung */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        width: 100%;
    }
}