* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f5f7;
    color: #222;
}


/* =========================
   HEADER
   ========================= */

header {
    background: #222;
    color: white;
    text-align: center;
    padding: 55px 20px;
}

header h1 {
    margin: 0 0 12px;
    font-size: 2.7rem;
}

header p {
    margin: 0;
    font-size: 1.15rem;
    color: #ddd;
}


/* =========================
   HAUPTBEREICH
   ========================= */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 20px 70px;
}

main > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 35px;
}


/* =========================
   PRODUKTE
   ========================= */

.products {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 28px;
}

.product {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(
        0,
        0,
        0,
        0.08
    );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 28px rgba(
        0,
        0,
        0,
        0.13
    );
}


/* =========================
   PRODUKTBILDER
   ========================= */

.product-image {
    height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f0f1f3;

    border-radius: 14px;

    overflow: hidden;

    margin-bottom: 20px;

    font-size: 80px;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================
   PRODUKT-TEXT
   ========================= */

.product h3 {
    margin: 0 0 10px;

    font-size: 1.35rem;
}

.product .description {
    color: #666;

    line-height: 1.5;

    min-height: 48px;
}

.price {
    font-size: 1.5rem;

    font-weight: bold;

    margin: 18px 0;
}


/* =========================
   BESTELLEN BUTTON
   ========================= */

button {
    border: none;

    border-radius: 10px;

    padding: 12px 18px;

    background: #222;

    color: white;

    font-size: 1rem;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

button:hover {
    opacity: 0.85;

    transform: translateY(-1px);
}

.bestellen-button {
    width: 100%;

    padding: 14px;

    font-size: 1.05rem;
}


/* =========================
   AUF BESTELLUNG
   ========================= */

.order-info {
    display: inline-block;

    margin-bottom: 15px;

    padding: 6px 10px;

    border-radius: 20px;

    background: #f0f1f3;

    color: #555;

    font-size: 0.85rem;

    font-weight: bold;
}


/* =========================
   MODAL
   ========================= */

.modal {
    display: none;

    position: fixed;

    z-index: 1000;

    inset: 0;

    background: rgba(
        0,
        0,
        0,
        0.6
    );

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.modal-content {
    position: relative;

    width: 100%;

    max-width: 480px;

    background: white;

    border-radius: 20px;

    padding: 30px;

    box-shadow: 0 20px 60px rgba(
        0,
        0,
        0,
        0.3
    );

    animation: modalAppear 0.2s ease;
}

@keyframes modalAppear {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content h3 {
    margin-bottom: 25px;
}


/* =========================
   SCHLIESSEN
   ========================= */

.close {
    position: absolute;

    top: 12px;
    right: 18px;

    font-size: 32px;

    color: #777;

    cursor: pointer;
}

.close:hover {
    color: #222;
}


/* =========================
   FORMULARE
   ========================= */

.modal-content form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.modal-content label {
    margin-top: 8px;

    font-weight: bold;
}

.modal-content input {
    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 9px;

    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;

    border-color: #555;

    box-shadow: 0 0 0 2px rgba(
        0,
        0,
        0,
        0.08
    );
}


/* =========================
   PREISBERECHNUNG
   ========================= */

.order-summary {
    margin: 15px 0;

    padding: 15px;

    background: #f4f5f7;

    border-radius: 12px;

    line-height: 1.7;
}

.order-total {
    font-size: 1.2rem;

    font-weight: bold;
}


/* =========================
   BESTÄTIGUNG
   ========================= */

.confirmation {
    max-width: 600px;

    margin: 60px auto;

    background: white;

    padding: 40px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 5px 25px rgba(
        0,
        0,
        0,
        0.1
    );
}

.confirmation h2 {
    font-size: 2rem;
}


/* =========================
   FOOTER
   ========================= */

footer {
    text-align: center;

    padding: 30px 20px;

    background: #222;

    color: #aaa;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    header {
        padding: 40px 18px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    main {
        padding: 30px 15px 50px;
    }

    main > h2 {
        font-size: 1.6rem;
    }

    .products {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .product-image {
        height: 230px;
    }

    .modal-content {
        padding: 25px 20px;
    }

.modal-content select {
    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 9px;

    background: white;

    font-size: 1rem;

    cursor: pointer;
}

.modal-content select:focus {
    outline: none;

    border-color: #555;

    box-shadow: 0 0 0 2px rgba(
        0,
        0,
        0,
        0.08
    );
}}
