/* =========================================================
   Gemeinsames CSS für den Mini-Shop
   Provence – natürlich, hochwertig, ruhig
   Feinabstimmung
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f1e9;
    color: #3f3a38;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;

    background-image: url("images/provence-botanisch.svg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: scroll;
}

a {
    color: #6f5874;
}

a:hover {
    color: #4f3c54;
}


/* =========================================================
   Kopfbereich
   ========================================================= */

header {
    background: #fffdf9;
    padding: 32px 20px;
    text-align: center;
    border-bottom: 1px solid #e4ddd2;
    box-shadow: 0 2px 10px rgba(80, 65, 50, 0.04);
}

header h1 {
    margin: 0;
    color: #5f4b62;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 0.4px;
}

.shop-logo {
    display: block;
    width: min(440px, 80%);
    height: auto;
    margin: 0 auto;
}


/* =========================================================
   Gemeinsame Seitenbreite
   ========================================================= */

.shop {
    max-width: 1200px;
    margin: 38px auto;
    padding: 0 20px;
    flex: 1;
}

.shop > h2 {
    color: #51464b;
    font-size: 28px;
    font-weight: normal;
    margin: 0 0 18px;
}


/* =========================================================
   Kategorien
   ========================================================= */

.kategorien {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0 30px;
}

.kategorie-button {
    display: inline-block;
    padding: 10px 17px;
    background: #fffdf9;
    color: #66526b;
    border: 1px solid #d7cbd8;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kategorie-button:hover {
    background: #f0e9f1;
    border-color: #bdaec0;
}

.kategorie-button.aktiv {
    background: #765b7d;
    color: #ffffff;
    border-color: #765b7d;
}


/* =========================================================
   Produkte
   ========================================================= */

.produkte {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


.produkt {
    background: #fffaf2;
    padding: 18px;
    border: 1px solid #d8c7ad;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(90, 70, 45, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produkt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 70, 45, 0.11);
}

.produkt img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.produkt h2 {
    color: #5b4a43;
    font-size: 17px;
    line-height: 1.3;
    font-weight: normal;
    margin: 9px 0 6px;
}

.produkt .preis {
    color: #765b7d;
    font-size: 19px;
    margin: 10px 0;
    font-weight: normal;
}

.lager {
    margin: 8px 0 12px;
    font-size: 14px;
}

.auf-lager {
    color: #5d625b;
}

.ausverkauft {
    display: inline-block;
    padding: 10px 18px;
    background: #eee9e4;
    color: #77716d;
    font-size: 15px;
    border-radius: 4px;
}

.lager.ausverkauft {
    display: block;
    padding: 0;
    background: transparent;
    font-size: 14px;
    font-weight: bold;
}

.button {
    display: inline-block;
    background: #765b7d;
    color: #ffffff;
    padding: 10px 18px;
    text-decoration: none;
    border: 1px solid #765b7d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.button:hover {
    background: #604967;
    border-color: #604967;
    color: #ffffff;
    transform: translateY(-1px);
}

.keine-produkte {
    padding: 30px;
    background: #fffdf9;
    border: 1px solid #e2dbd1;
    border-radius: 6px;
    text-align: center;
}


/* =========================================================
   Produktdetailseite
   ========================================================= */

.produktseite {
    max-width: 900px;
    margin: 42px auto;
    padding: 35px;
    background: #fffdf9;
    border: 1px solid #e2dbd1;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(80, 65, 50, 0.06);
    box-sizing: border-box;
    flex: 1;
}

.produktbild {
    text-align: center;
    padding-bottom: 15px;
}

.produktbild img {
    max-width: 350px;
    max-height: 350px;
    object-fit: contain;
}

.produktseite h1 {
    color: #51464b;
    font-weight: normal;
    line-height: 1.3;
}

.produktseite .preis {
    color: #4f414f;
    font-size: 26px;
    margin: 20px 0;
}

.zurueck {
    display: inline-block;
    margin-top: 25px;
    color: #625a57;
}

.zurueck:hover {
    color: #765b7d;
}


/* =========================================================
   Footer
   ========================================================= */

footer {
    margin-top: 50px;
    padding: 27px 20px;
    background: #eee8df;
    border-top: 1px solid #ddd3c7;
    text-align: center;
    color: #716b67;
}

.footer-links {
    font-size: 14px;
}

.footer-links a,
footer a {
    color: #625a57;
    text-decoration: none;
    margin: 0 6px;
}

.footer-links a:hover,
footer a:hover {
    color: #765b7d;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 12px;
    font-size: 13px;
    color: #89827d;
}
.widerruf-funktion {
    margin-top: 18px;
    text-align: center;
}

.widerruf-button {
    display: inline-block;
    padding: 11px 20px;
    background: #7b5a82;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
}

.widerruf-button:hover {
    background: #65486b;
}


/* =========================================================
   Warenkorb
   ========================================================= */

.warenkorb-shop {
    max-width: 900px;
    margin: 42px auto;
    padding: 32px;
    background: #fffdf9;
    border: 1px solid #e2dbd1;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(80, 65, 50, 0.06);
    box-sizing: border-box;
    flex: 1;
}

.warenkorb-shop h2 {
    color: #51464b;
    font-weight: normal;
    margin-top: 0;
}

.warenkorb-zeile {
    display: grid;
    grid-template-columns: 2fr 1fr 100px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e4ddd5;
}

.warenkorb-zeile input[type="number"] {
    width: 60px;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #cfc7be;
    border-radius: 3px;
}

.warenkorb-zeile .preis {
    text-align: right;
    margin: 0;
}

.loeschen {
    color: #8a5555;
    text-decoration: none;
}

.loeschen:hover {
    color: #6d3838;
    text-decoration: underline;
}

.summen {
    margin-top: 25px;
    border-top: 1px solid #ddd4ca;
    padding-top: 15px;
    max-width: 400px;
    margin-left: auto;
}

.summe-zeile {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
}

.gesamt {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid #5b5551;
}

.buttons {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    background: #765b7d;
    color: #ffffff;
    padding: 10px 18px;
    text-decoration: none;
    border: 1px solid #765b7d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    box-sizing: border-box;
}

.button:hover {
    background: #604967;
    border-color: #604967;
}


/* Button in Produktkachel mittig */

.produkt .button {
    display: block !important;
    width: fit-content !important;
    margin: 12px auto 0 !important;
}

.leer {
    padding: 30px 0;
}


/* =========================================================
   Kasse
   ========================================================= */

.kasse {
    max-width: 850px;
    margin: 42px auto;
    padding: 32px;
    background: #fffdf9;
    border: 1px solid #e2dbd1;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(80, 65, 50, 0.06);
    box-sizing: border-box;
    flex: 1;
}

.kasse h1,
.kasse h2 {
    color: #51464b;
    font-weight: normal;
}

.formgruppe {
    margin-bottom: 18px;
}

.formgruppe label {
    display: block;
    margin-bottom: 6px;
}

.kasse input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px;
    border: 1px solid #cfc7be;
    border-radius: 3px;
    font-size: 16px;
    background: #fffefc;
}

.kasse input:focus,
.warenkorb-zeile input[type="number"]:focus {
    outline: none;
    border-color: #9b83a0;
    box-shadow: 0 0 0 2px rgba(118, 91, 125, 0.12);
}

.bestellung {
    margin-top: 30px;
    border-top: 1px solid #ddd4ca;
}

.zeile {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #eee8e1;
}

.kasse .gesamt {
    text-align: right;
    font-size: 22px;
    margin-top: 20px;
}

.kasse .button {
    margin-top: 25px;
    padding: 13px 22px;
}


/* =========================================================
   Bestellbestätigung
   ========================================================= */

.bestellung-erfolg {
    max-width: 650px;
    margin: 80px auto;
    padding: 40px;
    background: #fffdf9;
    border: 1px solid #e2dbd1;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(80, 65, 50, 0.06);
    text-align: center;
    box-sizing: border-box;
    flex: 1;
}

.bestellung-erfolg h1 {
    color: #51464b;
    font-weight: normal;
}

.bestellnummer {
    margin: 25px 0;
    font-size: 24px;
    color: #5d4e60;
}

.bestellung-erfolg .button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 22px;
}


/* =========================================================
   Informationsseiten
   ========================================================= */

.informationsseite {
    max-width: 850px;
    margin: 42px auto;
    padding: 38px;
    background: #fffdf9;
    border: 1px solid #e2dbd1;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(80, 65, 50, 0.06);
    box-sizing: border-box;
    flex: 1;
}

.informationsseite h1 {
    color: #51464b;
    font-size: 29px;
    font-weight: normal;
    line-height: 1.3;
    margin-top: 0;
}

.informationsseite h2 {
    color: #62526a;
    font-size: 20px;
    font-weight: normal;
    margin-top: 32px;
}

.informationsseite p {
    line-height: 1.7;
}

.informationsseite .zurueck {
    display: inline-block;
    margin-top: 20px;
    color: #625a57;
}


/* =========================================================
   Kopfbereich mit Warenkorb
   ========================================================= */

.shop-header {
    position: relative;
}

.warenkorb-link {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    color: #765b7d;
    text-decoration: none;
    font-size: 15px;
}

.warenkorb-link:hover {
    color: #604967;
}

.warenkorb-icon {
    width: 27px;
    height: 27px;
}

.warenkorb-anzahl {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #765b7d;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {

    header {
        padding: 25px 15px;
    }

    header h1 {
        font-size: 25px;
    }

    .shop {
        margin: 28px 15px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .shop > h2 {
        font-size: 23px;
    }

    .produkte {
        grid-template-columns: 1fr;
    }

    .produkt {
        padding: 20px;
    }

    .produkt img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

    .produkt h2 {
        font-size: 17px;
    }

    .produktseite,
    .warenkorb-shop,
    .kasse,
    .informationsseite {
        margin: 28px 15px;
        padding: 25px 20px;
    }

    .warenkorb-zeile {
        display: block;
        padding: 20px 0;
    }

    .warenkorb-zeile > div {
        margin-bottom: 10px;
    }

    .warenkorb-zeile .preis {
        text-align: left;
    }

    .summen {
        max-width: none;
    }

    .zeile {
        gap: 10px;
    }

    .bestellung-erfolg {
        margin: 45px 15px;
        padding: 28px 20px;
    }

    .informationsseite h1 {
        font-size: 25px;
    }

    footer {
        padding: 24px 15px;
        line-height: 2;
    }

    footer a {
        margin: 0 4px;
    }

    .warenkorb-link {
        right: 15px;
        top: 15px;
        transform: none;
    }

    .warenkorb-link span:not(.warenkorb-anzahl) {
        display: none;
    }

    .warenkorb-icon {
        width: 25px;
        height: 25px;
    }
	.header-inhalt {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-button {
    display: inline-block;
    padding: 8px 14px;
    background: #765b7d;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #765b7d;
    border-radius: 4px;
    font-size: 14px;
}

.admin-button:hover {
    background: #604967;
    border-color: #604967;
    color: #ffffff;
}
.admin-link {

    text-align: center;

    margin: 30px 0;

}


.admin-link a {

    color: #777;

    text-decoration: none;

    font-size: 13px;

}


.admin-link a:hover {

    text-decoration: underline;

}
}
