:root { --color-success: #2e7d32; }
/* Make the main menu heading white for readability */
.section-heading h2 { color: #ffffff !important; }
/* Section headings on dark background */
.menu-section > h3 { color: #ffffff; }

/* Menu item card: image on top, equal size, rounded corners */
.menu-item { overflow: hidden; border-radius: 12px; background: var(--color-surface); position: relative; }

.menu-item img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 12px; }

/* Overlay toggle (plus) in the top-right corner of each card */
.menu-item__toggle { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ffffff; color: var(--color-primary); border: 1px solid var(--color-primary); font-size: 22px; font-weight: 700; cursor: pointer; z-index: 20; transition: background 180ms ease, color 180ms ease, transform 120ms ease; }
.menu-item__toggle:hover { transform: translateY(-2px); }

/* sonar ping effect: small ring that expands and fades */
.menu-item__toggle::before { content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%) scale(1); border-radius: 50%; background: rgba(183,28,28,0.18); opacity: 0; z-index: 10; pointer-events: none; }
.menu-item:hover .menu-item__toggle::before { animation: ping 1s ease-out infinite; }
@keyframes ping { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; } 60% { transform: translate(-50%, -50%) scale(2.2); opacity: 0.32; } 100% { transform: translate(-50%, -50%) scale(3); opacity: 0; } }

.menu-item__toggle.selected { background: var(--color-success); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.menu-item.selected { box-shadow: 0 6px 18px rgba(183, 28, 28, 0.12); outline: 2px solid rgba(183, 28, 28, 0.08); }

/* Place text content under the image and make item title readable */
.menu-item h3 { color: var(--color-text); margin: 0.6rem 0 0.25rem; }
.menu-item p, .menu-item .menu-item__top { color: var(--color-text-soft); }

/* Search input styling */
.menu-search input { width: 100%; max-width: 720px; padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); color: #fff; outline: none; margin-bottom: 1.25rem; }
.menu-search input::placeholder { color: rgba(255, 255, 255, 0.7); }

/* Collapsible sections for mobile: toggle button and collapsed state */
.menu-section { position: relative; }
.menu-section__toggle { display: none; background: transparent; border: none; color: var(--color-text); font-weight:700; cursor: pointer; font-size:0.95rem; }
.menu-section__toggle .arrow { display:inline-block; margin-left:0.5rem; transition: transform 180ms ease; }
.menu-section.collapsed .menu-section__toggle .arrow { transform: rotate(-90deg); }
.menu-section.collapsed .menu-grid { display: none; }

@media (max-width: 768px) {
	.menu-section__toggle { display: inline-flex; align-items:center; gap:0.4rem; }
	.menu-section h3 { display:inline-block; margin-right:0.5rem; }
}

/* Order / Modal styles (modernized) */
.order-button { position: fixed; right: 20px; bottom: 20px; z-index: 1200; background: linear-gradient(180deg,var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; border: none; padding: 0.75rem 1rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(183,28,28,0.18); cursor: pointer; font-weight:600; }

.order-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; z-index: 1300; }
.order-modal { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); color: var(--color-text); width: 90%; max-width: 520px; border-radius: 14px; padding: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.04); }
.order-modal h4 { margin: 0 0 0.5rem 0; font-size:1.05rem; }
.order-list { max-height: 320px; overflow:auto; }
.order-item { display:flex; justify-content:space-between; padding:0.6rem 0; border-bottom:1px solid rgba(255,255,255,0.03); align-items:center; }
.order-item button { background: transparent; border: 1px solid rgba(255,255,255,0.06); color: var(--color-text); padding:0.25rem 0.5rem; border-radius:8px; cursor:pointer; }
.order-empty { color: var(--color-text-soft); padding:1rem 0; }

.order-total { font-weight:700; padding-top:0.75rem; border-top:1px solid rgba(255,255,255,0.04); margin-top:0.5rem; }

/* modern buttons */
.btn-sp { display:inline-block; padding:0.5rem 0.85rem; border-radius:10px; border:none; cursor:pointer; font-weight:600; }
.btn-sp--primary { background: linear-gradient(180deg,var(--color-primary),var(--color-primary-dark)); color:#fff; box-shadow:0 8px 20px rgba(183,28,28,0.12); }
.btn-sp--ghost { background:transparent; border:1px solid rgba(255,255,255,0.06); color:var(--color-text); }

/* Migrated from speisekarte.html <style> block */
/* Additional/overriding rules for the speisekarte page */
.menu-item { overflow: hidden; border-radius: 12px; background: var(--color-surface); }
.menu-item img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 12px; }
.menu-item__select { appearance: none; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #fff; padding: 0.25rem 0.5rem; border-radius: 8px; font-size: 0.85rem; cursor: pointer; margin-left: 0.5rem; }
.menu-item.selected { box-shadow: 0 6px 18px rgba(183, 28, 28, 0.12); outline: 2px solid rgba(183, 28, 28, 0.12); }
.order-button { position: fixed; right: 20px; bottom: 20px; z-index: 1200; background: var(--color-primary); color: #fff; border: none; padding: 0.75rem 1rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); cursor: pointer; }
.order-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 1300; }
.order-modal { background: var(--color-surface); color: var(--color-text); width: 90%; max-width: 520px; border-radius: 12px; padding: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.order-modal h4 { margin: 0 0 0.5rem 0; }
.order-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.order-empty { color: var(--color-text-soft); padding: 1rem 0; }
.menu-item h3 { color: var(--color-text); margin: 0.6rem 0 0.25rem; }
.menu-item p, .menu-item .menu-item__top { color: var(--color-text-soft); }
.menu-search input { width: 100%; max-width: 720px; padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); color: #fff; outline: none; margin-bottom: 1.25rem; }
.menu-search input::placeholder { color: rgba(255, 255, 255, 0.7); }
