/* Schriftart einbinden – lokal */
@font-face {
    font-family: "Orelega One";
    font-weight: 400;
    font-style: normal;
    src: url("path/to/orelega-one-regular.woff2") format("woff2");
}


@font-face {
    font-family: "Lexend";
    font-weight: 400;
    font-style: normal;
    src: url("path/to/lexend-regular.woff2") format("woff2");
}



:root {
    --color-background: #fefaf6;
    --color-accent: #cb6843;
    --color-dark: #59443e;
    --color-light: #ffffff;
    --color-border: #e9ddd0;
    --font-headline: "Orelega One", serif;
    --font-body: "Lexend", sans-serif;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


h1, h2, h3 {
    font-family: var(--font-headline);
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}


.form-box {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.login-form input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid var(--color-border);
    background-color: transparent;
    font-family: var(--font-body);
}

.login-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}


nav {
    background-color: var(--color-light);
    border-bottom: 2px solid var(--color-accent);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--color-dark);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}


.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}


main {
    flex: 1;
}


.menu-category {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


.menu-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #ddd;
    margin-bottom: 1rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-dark);
    flex-grow: 1;
}

.item-price {
    font-family: var(--font-body);
    color: var(--color-accent);
    font-size: 1rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.item-description {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-top: 0.2rem;
}


/* Buttons */
button, .button-primary {
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover, .button-primary:hover {
    background-color: #b85a39;
}


.button-add, .button-like {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.button-like {
    background-color: #e9ddd0;
    color: var(--color-dark);
}

.button-like:hover {
    background-color: #d1c4b4;
}



.loyalty-card {
    background-color: #f4e7de;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 10px;
    width: 30%;
}


form {
    max-width: 500px;
    margin: 2rem auto;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}


footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}


html {
    scroll-behavior: smooth;
}

.arrow-link {
    font-size: 2rem;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: inherit;
    animation: bounce 1.5s infinite;
    transition: transform 0.2s;
}

.arrow-link:hover {
    transform: scale(1.2);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.background-text {
    position: relative;
    padding: 5rem 1rem;
    text-align: center;
    background-color: #f5f5f5;
    z-index: 1;
}


.cart-item {
    background-color: #f9f0e5;
    padding: 1rem 1.5rem;
    margin-bottom: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    transition: box-shadow 0.2s;
}

.cart-item:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}


.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f0e5;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.filter-container label {
    background-color: #e9ddd0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
    color: var(--color-dark);
}
.filter-container input[type="radio"] {
    display: none;
}
.filter-container input[type="radio"]:checked + label {
    background-color: var(--color-accent);
    color: white;
}


.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    font-family: var(--font-body);
}

h1, h3 {
    font-family: 'Orelega One', serif;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}


.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fdfaf6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-container label {
    background-color: #f3ede7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.filter-container input[type="radio"] {
    display: none;
}

.filter-container input[type="radio"]:checked + label {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}


.menu-entry {
    margin-bottom: 1.5rem;
}

.menu-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.menu-line strong {
    font-size: 1.2rem;
}

.button-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.button-wrapper form {
    display: inline;
}


.fav-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fav-btn.favorited {
    background-color: #e25555;
    color: white;
    border-color: #e25555;
}


.menu-entry p {
    margin-top: 0.5rem;
    max-width: 80%;
    line-height: 1.6;
    color: #4a4a4a;
}


.rating-container {
    margin: 0.5rem 0;
    cursor: pointer;
}

.rating-container.rated {
    cursor: default;
}

.rating-container .star {
    font-size: 1.8rem;
    color: #d1c4b7;
    transition: color 0.2s;
    display: inline-block;
}

.rating-container:not(.rated) .star:hover,
.rating-container:not(.rated) .star:hover ~ .star {
    color: #d1c4b7;
}
.rating-container:not(.rated):hover .star {
    color: #ffc107;
}


.rating-container .star.filled {
    color: #ffb300;
}


.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.favorite-card {
    background-color: #fdfaf6;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.favorite-card strong {
    font-family: 'Orelega One', serif;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.5rem;
}

.rating-prompt {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
    font-family: 'Orelega One', serif;
    color: var(--color-dark);
}

.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    font-family: var(--font-body);
}

h1, h3 {
    font-family: 'Orelega One', serif;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Filter-Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fdfaf6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-container label {
    background-color: #f3ede7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.filter-container input[type="radio"] {
    display: none;
}

.filter-container input[type="radio"]:checked + label {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}


.menu-entry {
    margin-bottom: 1.5rem;
}

.menu-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.menu-line strong {
    font-size: 1.2rem;
}

.button-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.menu-entry p {
    margin-top: 0.5rem;
    max-width: 80%;
    line-height: 1.6;
    color: #4a4a4a;
}


.rating-container {
    margin: 0.75rem 0 0.25rem 0;
}


.rating-container.rated .star {
    cursor: default;
}

.rating-container .star {
    font-size: 1.6rem;
    color: #d1c4b7;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.rating-container:not(.rated) .star:hover,
.rating-container:not(.rated) .star:hover ~ .star {
    color: #ffc107;
}

.rating-container:not(.rated):hover .star:hover ~ .star {
    color: #d1c4b7;
}

.rating-container .star.filled {
    color: #ffb300;
}




.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.favorite-card {
    background-color: #fdfaf6;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.favorite-card strong {
    font-family: 'Orelega One', serif;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.5rem;
}

.rating-prompt {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
    font-family: 'Orelega One', serif;
    color: var(--color-dark);
}


.rating-container {
    margin: 0.75rem 0;
    cursor: pointer;
}

.rating-container.rated {
    cursor: default;
}

.rating-container .star {
    font-size: 1.6rem;
    color: #d1c4b7;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}


.rating-container:not(.rated) .star:hover,
.rating-container:not(.rated) .star:hover ~ .star {
    color: #ffc107;
}

.rating-container:not(.rated):hover .star:hover ~ .star {
    color: #d1c4b7;
}

.rating-container .star.filled {
    color: #ffb300;
}


.section-divider {
    border: none;
    height: 2px;
    background-color: var(--color-border);
    margin: 3rem 0;
}

.menu-section {
    background-color: #fdfaf6;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.menu-section h2 {
    font-family: 'Orelega One', serif;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

/* Gespeicherte Menüs */
.user-menus-grid {
    display: grid;
    gap: 1rem;
}

.user-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-menu-item span {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Menü erstellen Formular */
.create-menu-form .form-group {
    margin-bottom: 1.5rem;
}

.create-menu-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.create-menu-form input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
}

.product-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
}

.product-checkbox {
    display: flex;
    align-items: center;
}

.product-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}
.menu-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.user-menu-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer; /* Macht den ganzen Header klickbar für Details */
}

.menu-card-header h3 {
    margin: 0;
    font-family: 'Orelega One', serif;
    font-size: 1.5rem;
}

.menu-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.details-btn {
    background-color: #f3ede7;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}
.details-btn:hover {
    background-color: #e9ddd0;
}


/* Versteckte Details mit sanfter Animation */
.menu-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-top: 0;
}

.menu-item-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-top: 1.5rem; /* Abstand erst wenn Details sichtbar */
}
.menu-item-detail.total {
    margin-top: 1rem;
    font-size: 1.1rem;
    border-top: 2px solid var(--color-accent);
    padding-top: 1rem;
}

.menu-item-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 2px solid #f3ede7;
}

/* Das Formular zum Erstellen von Menüs */
.menu-section {
    background-color: #fdfaf6;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.create-menu-form .form-group {
    margin-bottom: 1.5rem;
}

.create-menu-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.create-menu-form input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.product-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
}

.product-checkbox {
    display: flex;
    align-items: center;
}

.product-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}
.product-checkbox label {
    font-weight: normal;
}
/* =================================
   WARENKORB MENÜ-SYSTEM
   ================================= */

.section-divider {
    border: none;
    height: 2px;
    background-color: var(--color-border);
    margin: 3rem 0;
}

.menu-section {
    background-color: #fdfaf6;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.menu-section h2 {
    font-family: 'Orelega One', serif;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

/* Gespeicherte Menüs */
.user-menus-grid {
    display: grid;
    gap: 1rem;
}

.user-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-menu-item span {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Menü erstellen Formular */
.create-menu-form .form-group {
    margin-bottom: 1.5rem;
}

.create-menu-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.create-menu-form input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
}

.product-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
}

.product-checkbox {
    display: flex;
    align-items: center;
}

.product-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}