body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #101510, #1e1e1e);
    color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Layout Startseite */
main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.menu-section {
    width: 65%;
}

/* Pizza Karten */
.pizza-card {
    background: linear-gradient(135deg, #2b2b2b, #1f261f);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.55);
    display: flex;
    border: 2px solid #333;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pizza-card:hover {
    transform: translateY(-3px);
    border-color: #4CAF50;
}

.pizza-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
    border: 2px solid #ffcc00;
}

.pizza-info {
    flex: 1;
}

.pizza-info h3 {
    color: #ffcc00;
    margin-top: 0;
}

/* Warenkorb */
.cart-section {
    background: linear-gradient(135deg, #252525, #183018);
    padding: 18px;
    width: 30%;
    border-radius: 14px;
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    height: fit-content;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

.cart-section h2 {
    color: #ffcc00;
    margin-top: 0;
}

.cart-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.cart-controls {
    margin-top: 5px;
}

.cart-controls button {
    margin-right: 5px;
    padding: 4px 9px;
    font-size: 0.9rem;
    background-color: #555;
}

#cart-items img {
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
}

#total {
    font-weight: bold;
    color: #ffcc00;
    font-size: 1.1rem;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border: none;
    padding: 10px 14px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    box-shadow: 0 3px 0 #9e2f12;
    transition: transform 0.15s ease, filter 0.15s ease;
}

button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #9e2f12;
}

/* Inputs */
input[type="number"],
select {
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #4CAF50;
    width: 100%;
    box-sizing: border-box;
    background-color: #111;
    color: white;
}

/* Cover Bild */
.cover-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-bottom: 4px solid #4CAF50;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.65) contrast(1.1);
}

.cover-content {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.logo-over-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #fff;
    padding: 5px;
    border: 4px solid #4CAF50;
    box-shadow: 0 0 18px rgba(76, 175, 80, 0.8);
    margin-bottom: 10px;
}

.cover-title {
    font-size: 2.4rem;
    margin: 0;
    color: #ffcc00;
    text-shadow: 3px 3px 0 #000, 0 0 12px #4CAF50;
}

/* Restaurant Info */
.restaurant-info {
    background: linear-gradient(135deg, #263326, #1f1f1f);
    padding: 20px;
    margin: 20px;
    border-radius: 14px;
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-size: 0.95rem;
}

.restaurant-info h2 {
    margin-top: 0;
    color: #ffcc00;
    font-size: 1.9rem;
}

.restaurant-info .stars {
    margin: 5px 0;
    color: gold;
}

/* Footer */
.footer {
    background: #0d0d0d;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 0.9rem;
    border-top: 4px solid #4CAF50;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    width: 120px;
    text-align: center;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer p {
    margin: 3px 0;
    font-size: 0.85rem;
}

.footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Impressum & Datenschutz */
.legal-page {
    display: block;
    max-width: 900px;
    width: calc(100% - 40px);
    margin: 30px auto;
    padding: 24px;
    background: linear-gradient(135deg, #1f261f, #151515);
    border: 2px solid #4CAF50;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.55);
    box-sizing: border-box;
    line-height: 1.6;
}

.legal-page h1 {
    color: #ffcc00;
    text-shadow: 2px 2px 0 #000;
    margin-top: 0;
    word-break: break-word;
}

.legal-page h2,
.legal-page h3 {
    color: #4CAF50;
}

.legal-page p,
.legal-page li {
    font-size: 1rem;
}

.legal-page ul {
    padding-left: 22px;
}

.legal-page a {
    display: inline-block;
    margin-top: 20px;
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.legal-page a:hover {
    color: #4CAF50;
}

/* WICHTIG: Legal-Seiten dürfen NICHT als Flex laufen */
main.legal-page {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .menu-section,
    .cart-section {
        width: 100%;
        margin-bottom: 20px;
        position: static;
    }

    .pizza-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pizza-img {
        margin: 0 0 10px 0;
        width: 100%;
        max-width: 250px;
        height: auto;
    }

    .pizza-info {
        width: 100%;
    }

    .cover-title {
        font-size: 1.5rem;
    }

    .logo-over-img {
        width: 80px;
        height: 80px;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
    }

    .footer-left,
    .footer-right {
        width: auto;
    }

    .legal-page {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 18px;
    }

    .legal-page h1 {
        font-size: 1.8rem;
    }

    .legal-page h2 {
        font-size: 1.3rem;
    }

    .legal-page h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .legal-page {
        width: calc(100% - 16px);
        padding: 14px;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }

    .legal-page p,
    .legal-page li {
        font-size: 0.95rem;
    }
}
