
html, body {
    max-width: 100%;
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
}

body {
    background-color: #e8e1d7;
    color: #3a352f;
    margin: 0;
    padding: 10px;
}

main a {
    text-decoration: none;
    color: inherit;
}

/* --- Header --- */
.main-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 98%;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(235, 228, 217, 0.97);
    border-bottom: 1px solid #c7c0b6;
}

#name {
    font-size: 3rem;
}

.main-header nav {
    display: flex;
    gap: 30px;
}

.logo-bereich {
    display: flex;
    align-items: center;
    gap: 150px;
}

.button {
    margin-right: 20px;
}

.button a {
    margin-left: 30px;
    color: #4e4a43;
    text-decoration: none;
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    background-color: #d6cec3;
    padding: 10px 5%;
    border-top: 1px solid #b2aa9e;
    margin-top: 30px;
    padding-left: 10px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

footer h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #3a352f;
}

footer p,
footer a,
footer address {
    display: block;
    margin-bottom: 10px;
    color: #555047;
    text-decoration: none;
    font-style: normal;
    font-size: 0.9rem;
}

footer a:hover {
    color: #a8894a;
}

.footer-logo {
    height: 150px;
    width: auto;
}

/* --- Produktbereich --- */
.produkt-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    overflow-x: hidden;
}

.produkt_bilder {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 450px;
    margin-top: 75px;
    width: 100%;
    transform: scale(0.9);
}

.produkt_bilder img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

/* --- Kaufbereich (Stückzahl & Button) --- */
.quantity {
    display: flex;
    flex-direction: row; /* Normal ausrichten */
    margin-top: 10px;
    margin-right: 0;     /* Den alten Abstand löschen! */
    gap: 10px;
}

/* 1. Die Zeile, die Text und Kauf-Button hält */
.produkt-info-row {
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 60px;               /* Größerer Abstand zwischen Text und Button */
    width: 100%; 
    max-width: 1200px;       /* Etwas breiter für weniger Zeilenumbruch */
    margin: 40px auto; 
    padding: 0 40px;         /* Seitenabstand */
    box-sizing: border-box;
}

.text-spalte {
    flex: 2;                 /* Gibt dem Text deutlich mehr Platz als dem Button */
    max-width: 800px;        /* Begrenzt die Zeilenlänge für bessere Lesbarkeit */
    text-align: left;
}

.kauf-bereich {
    flex: 0 0 auto;         /* Button behält seine Größe und "klebt" rechts am Text */
    display: flex;
    flex-direction: column;  /* Stapelt Button und Menge untereinander, falls gewünscht */
    align-items: flex-start;
    margin-top: 10px;        /* Feinjustierung der Höhe zum Text */
}

.qty {
    width: 60px;
    height: 30px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: rgb(244, 243, 235);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    outline: none;
}

.Warenkorb {
    display: none;
    position: fixed;
    right: 20px;
    top: 80px;
    border-radius: 20px;
    background: #d8cfc3;
    border: 1px solid #000;
    padding: 20px;
    z-index: 1000;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(236, 88, 88, 0.1);
}

.warenkorb-btn {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 80;
    cursor: pointer;
    border-radius: 6px;
    background-color: #aba08b;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.warenkorb-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.warenkorb-btn:active {
    background-color: #004494;
    transform: scale(0.95);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}
.warenkorb{
    display: none;
    position: fixed;
    right: 20px;
    top: 80px;
    border-radius: 20px;
    background: #d8cfc3;
    border: 1px solid #000;
    padding: 20px;
    z-index: 1000;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(236, 88, 88, 0.1);
}

.wk-Entfernen {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: right;
}

.wk-item {
    border-bottom: 1px solid #eee;
    padding: 10px ;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wk-name {
    display: block;
}

.wk-details {
    font-size: 0.9em;
    color: #666;
}

.wk-delete-btn {
    color: red;
    border: none;
    background: none;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}

.wk-delete-btn:hover {
    transform: scale(1.2);
}



.preis {
    font-size: 1.5rem;
}

.produkt_name {
    text-align: start;
    font-size: 2.2rem;
    margin: 0 0 20px 0; /* Margin-Auto entfernen, wir nutzen jetzt den Container */
}

.produkt_beschreibung {
    text-align: start;
    max-width: 100%;    /* Breite wird jetzt durch .produkt-info-row begrenzt */
    margin: 0;          /* Negative Margins entfernen */
    font-size: large;
    line-height: 1.6;
}



/* --- Warenkorb Icon --- */
.cart {
    position: relative;
    font-size: 28px;
    cursor: pointer;
}

.cart i {
    color: #333;
}

.cart-count {
    position: absolute;
    top: -6px;          /* Höhe relativ zum Icon */
    right: -10px;       /* Abstand rechts */
    background: rgb(215, 86, 86);
    color: white;
    font-size: 14px;
    min-width: 18px;    /* genug Platz für 2-stellige Zahlen */
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 18px;  /* Zahl vertikal zentrieren */
    text-align: center;
}

/* --- Responsiv: verhindert seitliches Scrollen --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Das Overlay dunkelt den Hintergrund ab und zentriert den Inhalt */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Etwas dunkler für besseren Fokus */
    display: flex; 
    justify-content: center; /* Horizontal zentrieren */
    align-items: center;     /* Vertikal zentrieren */
    z-index: 9999;           /* Ganz nach oben bringen */
}

/* Die eigentliche Box */
.modal-content {
    background: #e8e1d7;    /* Passend zu deinem Candle Lab Beige */
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;             /* Mobil-freundlich */
    border: 1px solid #c7c0b6;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: #3a352f;
    margin-bottom: 15px;
}

.modal-content p {
    color: #555047;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Button Styling innerhalb des Modals */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background: #3a352f;
    color: #e8e1d7;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #a8894a;
}

.btn-secondary {
    background: none;
    border: 1px solid #3a352f;
    color: #3a352f;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(58, 53, 47, 0.1);
}
.btn-primary { background: #333; color: white; padding: 10px 20px; border: none; cursor: pointer; border-radius: 5px; }
.btn-secondary { background: none; border: none; color: #666; cursor: pointer; margin-left: 10px; }


/* Lightbox für Produktbilder */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.produkt_bilder img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.produkt_bilder img:hover {
    transform: scale(1.05);
}



.produkt_bilder img:hover {
    transform: scale(1.05);
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* Tablets */
@media (max-width: 1100px) {

    .main-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .logo-bereich {
        gap: 40px;
    }

    .produkt_bilder {
        height: auto;
        flex-wrap: wrap;
        gap: 15px;
    }

    .produkt_bilder img {
        max-width: 30%;
        height: auto;
    }

    .produkt-info-row {
        flex-direction: column;
        gap: 20px;
    }

    .kauf-bereich {
        margin-top: 100px;
        
    }

    .quantity {
        margin-right: 0;
    }

    
}


/* Smartphones */
@media (max-width: 768px) {

  .main-header {
        flex-direction: column;
        padding: 10px;
    }
    .main-header nav {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    #name {
        font-size: 2rem;
    }

    .button a {
        font-size: 1rem;
        margin-left: 10px;
    }

  

    .produkt_bilder {
        flex-direction: column;
        align-items: center;
        height: auto;
        transform: scale(1);
    }

    .produkt_bilder img {
        max-width: 90%;
    }

    .produkt_name {
        font-size: 1.6rem;
    }

    .preis {
        display: block;
        margin-top: 5px;
        font-size: 1.3rem;
    }

    .produkt_beschreibung {
        font-size: 1rem;
    }

    .kauf-bereich {
        flex-direction: column;
        gap: 10px;
    }

    .quantity {
        flex-direction: row;
        margin-right: 0;
    }

    .warenkorb-btn {
        margin-right: 20px;
        margin-top: -90px;
        font-size: large;
        color: #000;
       background-color: #a8894a;        
    }


    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-logo {
        height: 160px;
    }
    .button a {
        margin: 5px;
        font-size: 1rem;
        margin-left: 40px;
    }
}


/* Sehr kleine Smartphones */
@media (max-width: 480px) {

     #name {
        font-size: 2rem;
    }
    .button a {
        margin: 5px;
        font-size: 1rem;
        margin-left: 30px;
    }

    .produkt_name {
        font-size: 1.4rem;
    }


    .modal-content {
        padding: 25px;
    }
    .warenkorb-btn {
        margin-right: 20px;
        margin-top: -90px;
        font-size: larger;

    }
    .footer-logo {
        height: 150px;
    }

    
}




