@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

html, body, section {
  block-size: 100%;
  height: 100%;
  height: 100dvh; /* Mobile viewport fix */
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #FDFBF7; /* Very light warm background */
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0; /* Added padding to prevent overlap with fixed arrows */
  padding-top: calc(5rem + env(safe-area-inset-top));
  padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
  text-align: center;
  overflow: hidden; /* Prevent section scroll, use inner container */
}

.section-content {
    width: 100%;
    max-height: 100%; /* Use available space defined by section padding */
    overflow-y: auto;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-content::-webkit-scrollbar {
    display: none;
}

/* Background Pattern */
.grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Reverted to -1 to sit behind section backgrounds */
  background: transparent;
  display: grid;
  /* Columns will be set by JS */
  overflow: hidden;
  pointer-events: none;
}

@keyframes diamond-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.tr-up {
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 50px solid rgba(210, 190, 170, 0.4);
  height: 0;
  width: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.tr-down {
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 50px solid rgba(210, 190, 170, 0.4);
  height: 0;
  width: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.tr-up.active {
    border-top-color: rgba(210, 190, 170, 0.8);
    animation: diamond-pulse 1s infinite;
}

.tr-down.active {
    border-bottom-color: rgba(210, 190, 170, 0.8);
    animation: diamond-pulse 1s infinite;
}

/* Make odd sections transparent to show pattern */
section:nth-of-type(odd) {
  color: black;
  background: transparent;
  position: relative;
  z-index: auto;
}

/* Keep even sections black but semi-transparent to show pattern */
section:nth-of-type(even) {
  color: black;
  background: rgba(225, 215, 200, 0.6); /* Darker warm beige for contrast */
  position: relative;
  z-index: auto;
}

/* Removed ::before pseudo-element as it's no longer needed for the layering trick */

.section-content {
    width: 100%;
    max-height: calc(100vh - 9rem);
    overflow-y: auto;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}

/* Landing Reserve Button */
.landing-reserve-btn {
    margin-top: 2rem;
    background: transparent;
    border: 2px solid black;
    color: black;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.landing-reserve-btn:active {
    transform: scale(0.95);
    background: rgba(0,0,0,0.1);
}

@media (hover: hover) {
    .landing-reserve-btn:hover {
        background: black;
        color: #F8F6F3;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.custom-lang-dropdown {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.lang-current {
    padding: 0.5rem 1rem;
    border: 1px solid transparent; /* Placeholder for layout stability */
    transition: all 0.3s ease;
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    border: 1px solid currentColor;
    background: inherit; /* Will inherit from section background logic below */
    margin-top: 0.5rem;
}

.custom-lang-dropdown.open .lang-list {
    display: flex;
}

.lang-option {
    padding: 0.5rem 1rem;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

/* Specific styling for inputs on black background sections */
section:nth-of-type(even) input,
section:nth-of-type(even) select,
section:nth-of-type(even) button {
    border: 1px solid black;
    background: transparent;
    color: black;
}

section:nth-of-type(even) select option {
    background: #FDFBF7;
    color: black;
}

section:nth-of-type(even) .custom-lang-dropdown {
    color: black;
}
section:nth-of-type(even) .lang-current {
    border: 1px solid #F8F6F3;
}
section:nth-of-type(even) .lang-list {
    background: black;
    border: 1px solid #F8F6F3;
}
section:nth-of-type(even) .lang-option:hover {
    background: #F8F6F3;
    color: black;
}

/* Specific styling for inputs on white background sections */
section:nth-of-type(odd) input,
section:nth-of-type(odd) select,
section:nth-of-type(odd) button {
    border: 1px solid black;
    background: transparent;
    color: black;
}

section:nth-of-type(odd) .custom-lang-dropdown {
    color: black;
}
section:nth-of-type(odd) .lang-current {
    border: 1px solid black;
}
section:nth-of-type(odd) .lang-list {
    background: #F8F6F3;
    border: 1px solid black;
}
section:nth-of-type(odd) .lang-option:hover {
    background: black;
    color: #F8F6F3;
}


body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Global Input Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  border-width: 2px;
  padding: calc(0.8rem - 1px);
}

select {
  cursor: pointer;
  padding-right: 2rem;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M1 1L6 6L11 1" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3e%3c/svg%3e');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}

section:nth-of-type(even) select {
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M1 1L6 6L11 1" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3e%3c/svg%3e');
}

/* Checkbox Styling */
input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

h1 {
  font-size: 8rem;
  font-weight: 600;
  margin-bottom: 0rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

p {
  max-width: 700px;
  margin: 0 auto 1rem auto;
}

/* Page Navigation Arrows */
@keyframes pulse-page {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

.page-nav-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1px solid white;
    font-size: 2rem; /* Smaller font size for better proportions */
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    padding: 0;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.3s;
    color: white;
    mix-blend-mode: difference;
    animation: pulse-page 2s infinite ease-in-out;
    border-radius: 0;
}

.page-nav-btn:active {
    transform: translateX(-50%) scale(0.9);
}

@media (hover: hover) {
    .page-nav-btn:hover {
        opacity: 1;
        animation-play-state: paused;
    }
}

#page-up {
    top: 1rem;
    top: calc(1rem + env(safe-area-inset-top));
}

#page-down {
    bottom: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
}

/* Menu Styling */
.menu-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Fill the section content */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0 3.5rem; /* Space for absolute arrows */
    box-sizing: border-box;
}

@keyframes pulse-menu {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.menu-nav-btn {
    position: absolute;
    top: 50%;
    margin-top: -1.5rem; /* Center vertically */
    background: transparent;
    border: 1px solid currentColor;
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.3s;
    animation: pulse-menu 2s infinite ease-in-out;
    flex-shrink: 0;
    border-radius: 0;
}

#menu-prev {
    left: 0;
}

#menu-next {
    right: 0;
}

.menu-nav-btn:active {
    transform: scale(0.9);
}

@media (hover: hover) {
    .menu-nav-btn:hover {
        opacity: 1;
        animation-play-state: paused;
    }
}

.menu-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex: 1;
    width: 0; /* Important for flex child to shrink */
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: flex-start; /* Align items to top */
}

.menu-category-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem; /* Reduced padding */
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto; /* Allow internal scroll if absolutely necessary, but we try to avoid it */
}

.menu-items-wrapper {
    width: 100%;
    max-width: 1400px; /* Use more width */
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Smaller columns to fit more */
    gap: 0.8rem; /* Tighter gap */
    padding-bottom: 0;
}

.menu-category {
    grid-column: 1 / -1; /* Span full width */
    font-size: 1.8rem; /* Slightly smaller header */
    font-weight: 600;
    margin-bottom: 1rem; /* Reduced margin */
    text-transform: uppercase;
    border-bottom: 2px solid currentColor;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0; /* Margin handled by grid gap */
    padding: 0.8rem; /* Reduced padding */
    border: 1px solid rgba(128, 128, 128, 0.2); /* Subtle border for grid items */
    border-radius: 4px;
    font-size: 0.9rem; /* Smaller font size */
}

.menu-details {
    flex: 1;
    padding-right: 0.5rem;
}

.menu-name {
    font-weight: 600;
    font-size: 1rem;
}

.menu-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.2;
}

.menu-price {
    font-weight: 600;
    white-space: nowrap;
}

/* Calendar Toggle Button */
.calendar-toggle {
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    border: 2px solid currentColor;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendar-toggle:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .calendar-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

section:nth-of-type(even) .calendar-toggle {
    color: black;
}

section:nth-of-type(even) .calendar-toggle:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

section:nth-of-type(odd) .calendar-toggle {
    color: black;
}

#calendar-toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.calendar-toggle.active #calendar-toggle-icon {
    transform: rotate(45deg);
}

/* Calendar Modal - Minimalistisches Design */
.calendar-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1500;
    animation: fadeInScale 0.25s ease;
}

.calendar-content {
    background: transparent;
    border: 1px solid black;
    padding: 1.5rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

section:nth-of-type(even) .calendar-content {
    background: rgba(253, 251, 247, 0.95);
    border-color: black;
    color: black;
}

section:nth-of-type(odd) .calendar-content {
    background: rgba(248, 246, 243, 0.98);
    border-color: black;

    /* Admin Calendar Styles (nicht in section) */
    body > #admin-calendar-backdrop,
    body > #admin-calendar-container .calendar-content {
        background: rgba(248, 246, 243, 0.98);
        border-color: black;
        color: black;
    }
    color: black;
}

.calendar-modal.show {
    display: block;
}

/* Overlay Backdrop */
.calendar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1400;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calendar-backdrop.show {
    display: block;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid currentColor;
}

.calendar-nav button {
    background: transparent;
    border: 1px solid currentColor;
    width: 2.8rem; /* Larger touch target */
    height: 2.8rem; /* Larger touch target */
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav button:active {
    transform: scale(0.9);
}

@media (hover: hover) {
    .calendar-nav button:hover {
        background: currentColor;
    }
}

section:nth-of-type(odd) .calendar-nav button:hover {
    background: black;
    color: #F8F6F3;
}

section:nth-of-type(even) .calendar-nav button:hover {
    background: black;
    color: #F8F6F3;
}

.calendar-nav span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Calendar Grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 1rem;
}

.cal-grid div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.75rem;
}

.cal-grid div.header {
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
    opacity: 0.6;
    border: none;
}

@media (hover: hover) {
    .cal-grid div:hover:not(.empty):not(.disabled):not(.header) {
        border-color: currentColor;
    }
}

.cal-grid div.selected {
    background: black;
    color: #F8F6F3;
    border-color: black;
    font-weight: 600;
}

section:nth-of-type(even) .cal-grid div.selected {
    background: black;
    color: #F8F6F3;
    border-color: black;
}

.cal-grid div.today {
    font-weight: 600;
    border: 1px solid currentColor;
}

.cal-grid div.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cal-grid div.empty {
    cursor: default;
}

/* Time Slots Section */
.time-slots-section {
    display: none;
}

.time-slots-section.show {
    display: block;
}

.time-divider {
    width: 100%;
    height: 1px;
    background: currentColor;
    margin: 1rem 0 0.8rem 0;
}

.selected-date-info {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
}

.slot-group {
    margin-bottom: 1rem;
}

.slot-group:last-child {
    margin-bottom: 0;
}

.slot-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 5px;
}

.time-slot {
    padding: 0.8rem 0.5rem;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot:active {
    transform: scale(0.95);
}

@media (hover: hover) {
    .time-slot:hover {
        background: currentColor;
    }
}

section:nth-of-type(odd) .time-slot:hover {
    background: black;
    color: #F8F6F3;
}

section:nth-of-type(even) .time-slot:hover {
    background: black;
    color: #F8F6F3;
}

.time-slot.selected {
    background: black;
    color: #F8F6F3;
    border-color: black;
    font-weight: 600;
}

section:nth-of-type(even) .time-slot.selected {
    background: black;
    color: #F8F6F3;
    border-color: black;
}

/* Reservation Form Styling */
.reservation-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

#reservation-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.form-group input {
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid currentColor;
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section:nth-of-type(even) .form-group input {
    color: black;
}

section:nth-of-type(even) .form-group input:focus {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section:nth-of-type(odd) .form-group input {
    color: black;
}

.submit-btn {
    grid-column: 1 / -1;
    padding: 1.2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid currentColor;
    background: currentColor;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

section:nth-of-type(even) .submit-btn {
    background: black;
    color: #F8F6F3;
    border-color: black;
}

section:nth-of-type(even) .submit-btn:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    section:nth-of-type(even) .submit-btn:hover {
        background: transparent;
        color: black;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
}

section:nth-of-type(odd) .submit-btn {
    background: black;
    color: #F8F6F3;
    border-color: black;
}

section:nth-of-type(odd) .submit-btn:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    section:nth-of-type(odd) .submit-btn:hover {
        background: transparent;
        color: black;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
}

.warning-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    font-size: 0.9rem;
    background: #F8F6F3;
    border: 1px solid black;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    max-width: 400px;
    text-align: center;
    line-height: 1.6;
    color: black;
    animation: fadeInScale 0.3s ease;
}

.warning-message a {
    color: black;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid black;
    transition: all 0.3s ease;
}

.warning-message a:hover {
    opacity: 0.7;
}

section:nth-of-type(even) .warning-message {
    background: #FDFBF7;
    color: black;
    border-color: black;
}

section:nth-of-type(even) .warning-message a {
    color: black;
    border-bottom-color: black;
}

.warning-message.show {
    display: block;
}

.warning-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.warning-backdrop.show {
    display: block;
}

/* Opening Hours Styling */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-days {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hours-times {
    font-size: 0.8rem;
    text-align: right;
}

section:nth-of-type(even) .hours-row {
    border-bottom-color: rgba(248, 246, 243, 0.15);
}

/* Contact Section - Fresh Minimal */
#contact .section-content {
    /* Restore scrolling behavior */
    max-height: 100%;
    overflow-y: auto;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

#contact h2 {
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.2rem 1.3rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.panel-label {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    text-align: center;
    border-bottom: 2px solid currentColor;
    padding-bottom: 0.35rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.contact-action {
    display: block;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.95;
    transition: all 0.2s ease;
    border-bottom: none;
    text-align: center;
}

.contact-action:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
    letter-spacing: 0.05em;
}

.hours-list {
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 400;
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin: 0;
    border-top: none;
    padding: 0.9rem 1rem;
    opacity: 0.94;
    transition: all 0.2s ease;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

.hours-days {
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.hours-times {
    font-weight: 500;
    letter-spacing: 0.03em;
}

.special-hours-divider {
    display: none;
}

.special-hours-title {
    display: none;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Desktop Optimization for Contact Section to prevent scrolling */
@media (min-width: 900px) and (min-height: 700px) {
    #contact .section-content {
        justify-content: center;
        gap: 1rem;
    }

    #contact h2 {
        margin-bottom: 1rem;
        font-size: 2.5rem;
    }

    .contact-wrapper {
        gap: 2rem;
        max-width: 900px;
    }

    .contact-panel {
        gap: 0.5rem;
    }

    .contact-action {
        padding: 0.6rem 1rem;
    }

    .hours-row {
        padding: 0.4rem 1rem;
    }

    .footer-links {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #F8F6F3;
    color: black;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid black;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-overlay.open .modal-box {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-close-btn {
    background: black;
    color: #F8F6F3;
    border: 1px solid black;
    padding: 1rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: transparent;
    color: black;
}

/* Footer Links */
.footer-links {
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    width: 100%;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #000;
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    z-index: 10000;
    display: none; /* Hidden by default, shown by JS if not accepted */
    box-sizing: border-box;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #333;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: #333;
    color: #fff;
}

.cookie-btn.accept:hover {
    background: #000;
}

.cookie-btn.reject {
    color: #333;
}

.cookie-btn.reject:hover {
    background: #f0f0f0;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .cookie-content p {
        margin-right: 2rem;
    }
}

/* Legal Modals */
.legal-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    text-align: left;
    position: relative;
}

.legal-modal h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.legal-modal h2 {
    margin-top: 2rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-modal p, .legal-modal li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.legal-modal ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-close-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    line-height: 1;
    z-index: 10;
}

.modal-close-icon:hover {
    color: #000;
}

.legal-content-wrapper .lang-content {
    display: none;
}

.legal-content-wrapper .lang-content.active {
    display: block;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 768px) {
    /* General Layout */
    .section-content {
        padding: 0 1rem;
        /* max-height removed as it is handled by section padding now */
    }

    h1 {
        font-size: min(15vw, 4.5rem); /* Responsive title for mobile */
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* Home Section */
    #home .section-content {
        justify-content: center;
    }

    .logo-subtitle {
        font-size: 1.3rem;
    }

    .landing-reserve-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    /* Menu Section */
    .menu-wrapper {
        width: 100%;
        padding: 0 3.5rem; /* Ensure arrows don't overlap content */
    }

    .menu-nav-btn {
        display: flex; /* Show arrows on mobile */
        width: 3rem; /* Larger touch target */
        height: 3rem;
        font-size: 1.5rem;
        margin-top: -1.5rem;
    }

    .menu-scroll-container {
        padding: 0;
        gap: 0;
        scroll-snap-type: x mandatory;
        position: relative; /* Ensure offsetLeft works correctly */
    }

    .menu-category-slide {
        min-width: 100%;
        scroll-snap-align: center;
    }

    /* Reservation Section */
    .reservation-container {
        width: 100%;
        padding: 0;
    }

    #reservation-form {
        grid-template-columns: 1fr; /* Stack form fields */
        gap: 1rem;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .calendar-modal {
        width: 95%;
        max-height: 80vh;
        padding: 1rem;
    }

    .calendar-content {
        flex-direction: column; /* Stack calendar and slots */
        gap: 1rem;
    }

    .calendar-left, .time-slots-section {
        width: 100%;
        border-right: none;
        padding-right: 0;
    }

    .time-slots-section {
        border-top: 1px solid #eee;
        padding-top: 1rem;
        max-height: 200px; /* Limit height for slots */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-panel {
        padding: 0;
        text-align: center;
    }

    /* Modals */
    .modal-box {
        width: 90%;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-text {
        font-size: 1rem;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 3.8rem;
    }

    .logo-subtitle {
        font-size: 1.2rem;
    }
    
    .menu-category-card {
        min-width: 90vw;
    }
}

/* Touch Optimization */
button, input, select, textarea, a, .menu-nav-btn, .page-nav-btn, .calendar-toggle, .time-slot, .cal-grid div {
    touch-action: manipulation;
}
