/* ===== FONTS ===== */
@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-thin-italic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-light-italic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-medium-italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'PP Kyoto';
    src: url('assets/fonts/ppkyoto-extrabold-italic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Satoshi';
    src: url('assets/fonts/satoshi-variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* ===== CSS VARIABLES ===== */
:root {
    --color-bg: #eae6e4;
    --color-text: #232120;
    --color-dark-bg: #1a1917;
    --color-dark-text: #eae6e4;
    --color-menu-dark: #131211;
    --font-primary: 'Satoshi', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth theme transition */
body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
    transition: background-color 0.5s var(--ease-out-expo),
                color 0.5s var(--ease-out-expo),
                border-color 0.5s var(--ease-out-expo),
                filter 0.5s var(--ease-out-expo) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1.2s var(--ease-out-expo) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.animate-on-scroll .menu-item,
.animate-on-scroll .hours-row {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

.animate-on-scroll.visible .menu-item,
.animate-on-scroll.visible .hours-row {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for menu items */
.animate-on-scroll.visible .menu-item:nth-child(1) { transition-delay: 0.05s; }
.animate-on-scroll.visible .menu-item:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible .menu-item:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible .menu-item:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible .menu-item:nth-child(5) { transition-delay: 0.25s; }
.animate-on-scroll.visible .menu-item:nth-child(6) { transition-delay: 0.3s; }
.animate-on-scroll.visible .menu-item:nth-child(7) { transition-delay: 0.35s; }
.animate-on-scroll.visible .menu-item:nth-child(8) { transition-delay: 0.4s; }
.animate-on-scroll.visible .menu-item:nth-child(9) { transition-delay: 0.45s; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 30px 40px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* Theme Toggle Button - positioned top left */
.nav .theme-toggle {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
    z-index: 101;
}

/* Hide theme toggle when scrolled (like nav-links) */
.nav.scrolled .theme-toggle {
    opacity: 0;
    transform: translateY(-50%) translateY(-20px);
    pointer-events: none;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.theme-icon {
    width: 36px;
    height: 36px;
}

/* Icons already have correct color #eae6e4 in SVG */
.theme-icon-sun {
    display: block;
}

.theme-icon-moon {
    display: none;
}

/* In light mode: show moon icon (to switch to dark) */
body.light-mode .theme-icon-sun {
    display: none;
}

body.light-mode .theme-icon-moon {
    display: block;
}

/* Initial state: centered links visible */
.nav-links {
    display: flex;
    gap: 40px;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

.nav-links a {
    color: var(--color-bg);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    opacity: 1;
}

/* When scrolled: hide nav-links */
.nav.scrolled .nav-links {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Hamburger */
.nav-hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 48px;
    height: 48px;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-expo),
                visibility 0.5s var(--ease-out-expo);
}

/* Show hamburger when scrolled */
.nav.scrolled .nav-hamburger {
    opacity: 1;
    visibility: visible;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--color-bg);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.4s var(--ease-out-expo),
                top 0.4s var(--ease-out-expo),
                background-color 0.4s var(--ease-out-expo);
}

.hamburger-line:first-child {
    top: 18px;
}

.hamburger-line:last-child {
    top: 28px;
}

/* Hamburger active state (X) */
.nav-hamburger.active .hamburger-line:first-child {
    transform: translateX(-50%) rotate(45deg);
    top: 23px;
}

.nav-hamburger.active .hamburger-line:last-child {
    transform: translateX(-50%) rotate(-45deg);
    top: 23px;
}

/* Hamburger color changes based on scroll position - only in light mode */
body.light-mode .nav.past-hero .hamburger-line {
    background-color: var(--color-text);
}

/* In dark mode, hamburger always stays light */
/* (no change needed, default is already light) */

/* When menu is open, keep lines light (on dark background) - ALWAYS */
.nav-hamburger.active .hamburger-line {
    background-color: var(--color-bg) !important;
}

/* Dropdown Menu Bar */
.dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: var(--color-menu-dark);
    padding: 0 40px;
    height: 0;
    overflow: hidden;
    transition: height 0.5s var(--ease-out-expo);
}

.dropdown-menu.active {
    height: 70px;
}

.dropdown-menu-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    height: 70px;
}

.dropdown-menu-content a {
    color: var(--color-bg);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s var(--ease-out-expo),
                transform 0.4s var(--ease-out-expo);
}

.dropdown-menu.active .dropdown-menu-content a {
    opacity: 0.85;
    transform: translateY(0);
}

/* Stagger menu items */
.dropdown-menu.active .dropdown-menu-content a:nth-child(1) { transition-delay: 0.05s; }
.dropdown-menu.active .dropdown-menu-content a:nth-child(2) { transition-delay: 0.1s; }
.dropdown-menu.active .dropdown-menu-content a:nth-child(3) { transition-delay: 0.15s; }
.dropdown-menu.active .dropdown-menu-content a:nth-child(4) { transition-delay: 0.2s; }

.dropdown-menu-content a:hover {
    opacity: 1;
}

/* Theme toggle in dropdown menu - positioned left like in nav */
.dropdown-menu .theme-toggle {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) translateY(-10px);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo),
                transform 0.4s var(--ease-out-expo);
}

.dropdown-menu .theme-toggle .theme-icon {
    width: 36px;
    height: 36px;
}

.dropdown-menu.active .theme-toggle {
    opacity: 0.85;
    transform: translateY(-50%);
    transition-delay: 0.05s;
}

.dropdown-menu .theme-toggle:hover {
    opacity: 1;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-menu-dark);
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-expo),
                visibility 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-menu-content a {
    color: var(--color-bg);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

.mobile-menu.active .mobile-menu-content a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger mobile menu items */
.mobile-menu.active .mobile-menu-content a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-content a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-content a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-content a:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu-content a:hover {
    opacity: 0.7;
}

/* Theme toggle in mobile menu */
.mobile-menu-content .theme-toggle {
    position: static;
    margin-top: 20px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

.mobile-menu-content .theme-toggle .theme-icon {
    width: 36px;
    height: 36px;
}

.mobile-menu.active .mobile-menu-content .theme-toggle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* ===== VIDEO HERO ===== */
.video-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 720px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.hero-video-next {
    opacity: 0;
    z-index: 0;
}

.hero-overlay {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 33, 32, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 60px 40px;
    padding-bottom: 100px; /* Logo etwas höher positionieren */
    pointer-events: none; /* Klicks durchlassen */
}

.hero-content > * {
    pointer-events: auto; /* Interaktive Elemente wieder aktivieren */
}

/* Logo */
.logo {
    position: relative;
    width: 460px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Invert logo to white for dark background */
.logo-light {
    filter: invert(1);
}

.hero-welcome {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-welcome p {
    font-size: 1.4rem;
    font-weight: 100;
    color: var(--color-bg);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.opening-status {
    font-size: 1.4rem;
    font-weight: 100;
    color: var(--color-bg);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.opening-status .status-bold {
    font-weight: 500;
}

/* ===== DARK MODE (Default) ===== */
/* All sections after hero get dark background */
.menu,
.philosophy,
.about,
.catering,
.contact,
.footer {
    background-color: var(--color-dark-bg);
    color: var(--color-dark-text);
}

/* Ensure all text in dark sections is the correct color */
.menu,
.menu *,
.philosophy,
.philosophy *,
.about,
.about *,
.catering,
.catering *,
.contact,
.contact *,
.footer,
.footer * {
    color: var(--color-dark-text);
}

/* Invert ALL icons in dark sections */
.menu .category-icon,
.menu img:not(.editorial-image img),
.philosophy .philosophy-icon,
.philosophy .inline-icon,
.contact .contact-icon,
.catering .catering-icon,
.daily-menu-fallback-full img {
    filter: invert(1);
}

/* Footer logo invert */
.footer-logo img {
    filter: invert(1);
    opacity: 0.8;
}

/* Contact note border adjustment */
.contact-note {
    border-color: rgba(234, 230, 228, 0.15);
}

.contact-note .underline {
    text-decoration-color: rgba(234, 230, 228, 0.3);
}

/* Footer border adjustment */
.footer {
    border-top-color: rgba(234, 230, 228, 0.1);
}

/* ===== LIGHT MODE ===== */
body.light-mode {
    background-color: var(--color-bg);
}

body.light-mode .menu,
body.light-mode .philosophy,
body.light-mode .about,
body.light-mode .catering,
body.light-mode .contact,
body.light-mode .footer {
    background-color: var(--color-bg);
    color: var(--color-text);
}

body.light-mode .menu,
body.light-mode .menu *,
body.light-mode .philosophy,
body.light-mode .philosophy *,
body.light-mode .about,
body.light-mode .about *,
body.light-mode .catering,
body.light-mode .catering *,
body.light-mode .contact,
body.light-mode .contact *,
body.light-mode .footer,
body.light-mode .footer * {
    color: var(--color-text);
}

/* Don't invert icons in light mode */
body.light-mode .menu .category-icon,
body.light-mode .menu img:not(.editorial-image img),
body.light-mode .philosophy .philosophy-icon,
body.light-mode .philosophy .inline-icon,
body.light-mode .contact .contact-icon,
body.light-mode .catering .catering-icon,
body.light-mode .daily-menu-fallback-full img,
body.light-mode .footer-logo img {
    filter: none;
}

body.light-mode .footer-logo img {
    opacity: 0.8;
}

/* Light mode borders */
body.light-mode .contact-note {
    border-color: rgba(35, 33, 32, 0.15);
}

body.light-mode .contact-note .underline {
    text-decoration-color: rgba(35, 33, 32, 0.3);
}

body.light-mode .footer {
    border-top-color: rgba(35, 33, 32, 0.1);
}

body.light-mode .daily-menu-item {
    border-bottom-color: rgba(35, 33, 32, 0.1);
}

body.light-mode .daily-menu-fallback-full a {
    color: var(--color-text);
}

body.light-mode .daily-menu-fallback-full .inline-icon {
    filter: none;
}

/* ===== MENU ===== */
.menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 120px;
}

.menu-category {
    margin-bottom: 20px;
}

/* Daily Menu Row (Mittagsangebot & Tagesmenü nebeneinander) */
.menu-category-daily {
    grid-column: 1 / -1; /* Über beide Spalten des Menü-Grids */
    margin-bottom: 60px;
}

.daily-menu-date {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 50px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.daily-menu-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.daily-menu-column .category-header {
    margin-bottom: 30px;
}

.daily-menu-column .menu-items {
    min-height: 80px;
}

/* Zentrierter Fallback-Text wenn beide Felder leer sind */
.daily-menu-fallback-full {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.9;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    text-wrap: pretty;
}

.daily-menu-fallback-full a {
    color: var(--color-dark-text);
    font-weight: 500;
    text-decoration: none;
}

.daily-menu-fallback-full a:hover {
    text-decoration: underline;
}

/* Inline icons in fallback text */
.daily-menu-fallback-full .inline-icon {
    filter: invert(1);
}

@media (max-width: 900px) {
    .daily-menu-row {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.category-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.category-icon {
    height: 44px;
    width: auto;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.item-number {
    font-size: 1rem;
    font-weight: 500;
    min-width: 28px;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.item-description {
    font-size: 0.95rem;
    font-weight: 300;
    font-style: italic;
    opacity: 0.85;
}

.item-price {
    font-size: 1rem;
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

.menu-item-extra {
    margin-top: 20px;
    padding-top: 20px;
}

/* ===== DAILY MENU (Tagesmenü) ===== */
.daily-menu {
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.daily-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.daily-menu-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.daily-menu-icon {
    width: 28px;
    height: 28px;
}

.daily-menu-items {
    margin-bottom: 30px;
}

.daily-menu-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(234, 230, 228, 0.1);
}

.daily-menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.daily-menu-item-name {
    font-size: 1.3rem;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.daily-menu-item-description {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    display: block;
    margin-bottom: 12px;
}

.daily-menu-item-price {
    font-size: 1.1rem;
    font-weight: 500;
}

.daily-menu-date {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.daily-menu-loading,
.daily-menu-empty {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.6;
}

/* ===== CONTACT ===== */
.contact {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.contact-icon {
    height: 44px;
    width: auto;
}

.contact-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    margin-bottom: 30px;
}

.opening-hours {
    margin-bottom: 0;
}

.hours-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.hours-row:last-child {
    margin-bottom: 0;
}

.day {
    font-weight: 500;
}

.time {
    font-weight: 300;
}

.address {
    font-style: normal;
    font-weight: 300;
    line-height: 1.8;
}

.address a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s var(--ease-out-expo);
}

.address a:hover {
    opacity: 0.7;
}

.contact-note {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    padding: 16px 20px;
    border: 1px solid rgba(35, 33, 32, 0.15);
}

.contact-note .underline {
    text-decoration: underline;
    text-decoration-color: rgba(35, 33, 32, 0.3);
    text-underline-offset: 3px;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s var(--ease-out-expo);
}

.contact-map:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* ===== EDITORIAL IMAGES ===== */
.editorial {
    padding: 0;
    margin: 0 0 40px 0;
    max-width: none;
}

.editorial-grid {
    position: relative;
    display: block;
    height: 600px;
}

.editorial-image {
    overflow: hidden;
    position: absolute;
    width: 56%;
}

.editorial-left {
    top: 0;
    left: 0;
    z-index: 1;
}

.editorial-right {
    top: 80px;
    left: 44%;
    z-index: 2;
}

.editorial-image .image-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
}

.editorial-image img {
    width: 100%;
    height: 120%;
    display: block;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

/* Scroll animation for editorial images */
.editorial-image.animate-on-scroll {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s var(--ease-out-expo),
                transform 1s var(--ease-out-expo);
}

.editorial-image.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the right image */
.editorial-right.animate-on-scroll {
    transition-delay: 0.2s;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
    padding: 100px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.philosophy-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.philosophy-icon {
    height: 44px;
    width: auto;
}

.philosophy-text p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 30px;
    text-wrap: pretty;
}

.inline-icon {
    display: inline-block;
    height: 2em;
    width: auto;
    vertical-align: -0.55em;
    margin: 0 5px;
}

/* Prevent orphaned icons at end of lines */
.nowrap {
    white-space: nowrap;
}

/* ===== ABOUT (Unsere Geschichte) ===== */
.about {
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.about p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
}

/* ===== CATERING ===== */
.catering {
    padding: 100px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.catering-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.catering-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}

.catering-text p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 30px;
    text-wrap: pretty;
}

/* Editorial gespiegelt für Catering */
.editorial-mirrored .editorial-bottom-right {
    top: 80px;
    left: 44%;
    z-index: 1;
}

.editorial-mirrored .editorial-top-left {
    top: 0;
    left: 0;
    z-index: 2;
}

/* Stagger the bottom-right image */
.editorial-mirrored .editorial-bottom-right.animate-on-scroll {
    transition-delay: 0.2s;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 40px;
    border-top: 1px solid rgba(234, 230, 228, 0.1);
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo img {
    width: 200px;
    height: auto;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--color-dark-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: opacity 0.3s var(--ease-out-expo);
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* ===== LEGAL PAGES ===== */
.nav-legal {
    position: relative;
    padding: 30px 40px;
    justify-content: flex-start;
    pointer-events: auto;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: opacity 0.3s var(--ease-out-expo);
}

.nav-back:hover {
    opacity: 0.6;
}

.nav-back svg {
    width: 20px;
    height: 20px;
}

.legal-page {
    padding: 40px 40px 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

.legal-content h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-content p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content a {
    color: var(--color-text);
    text-decoration: underline;
}

.legal-content em {
    opacity: 0.6;
}

.legal-content h1.section-divider {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(35, 33, 32, 0.15);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background-color: var(--color-menu-dark);
    padding: 0 40px;
    height: 0;
    overflow: hidden;
    transition: height 0.5s var(--ease-out-expo);
}

.cookie-banner.active {
    height: 70px;
}

.cookie-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 70px;
}

.cookie-banner-text {
    color: var(--color-bg);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out-expo),
                transform 0.4s var(--ease-out-expo);
}

.cookie-banner.active .cookie-banner-text {
    opacity: 0.85;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.cookie-banner-text a {
    color: var(--color-bg);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out-expo),
                transform 0.4s var(--ease-out-expo);
}

.cookie-banner.active .cookie-banner-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.cookie-btn {
    background: transparent;
    border: 1px solid rgba(234, 230, 228, 0.4);
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--color-bg);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s var(--ease-out-expo),
                border-color 0.3s var(--ease-out-expo);
}

.cookie-btn:hover {
    border-color: var(--color-bg);
}

.cookie-btn-accept {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-bg);
}

.cookie-btn-accept:hover {
    opacity: 0.9;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    /* Navigation - always show hamburger on mobile */
    .nav {
        padding: 20px 24px;
        justify-content: space-between;
    }

    /* Theme toggle on mobile - position left */
    .nav .theme-toggle {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    /* Hide dropdown on mobile, use fullscreen overlay instead */
    .dropdown-menu {
        display: none;
    }

    /* Show mobile menu overlay */
    .mobile-menu {
        display: flex;
    }

    .mobile-menu-content a {
        font-size: 1.5rem;
    }

    .hero-welcome {
        bottom: 40px;
    }

    .video-hero {
        height: 50vh;
        min-height: 720px;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .logo {
        width: 50vw;
        max-width: 300px;
        height: auto;
    }

    .hero-welcome {
        padding: 0 24px;
    }

    .hero-welcome p {
        opacity: 0;
    }

    .opening-status {
        font-size: 1rem;
        text-wrap: balance;
    }

    .menu {
        padding: 40px 24px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-category {
        margin-bottom: 40px;
    }

    .category-header {
        margin-bottom: 35px;
    }

    .category-header h2 {
        font-size: 0.95rem;
    }

    .menu-items {
        gap: 20px;
    }

    .menu-item {
        gap: 14px;
    }

    .item-number {
        font-size: 0.9rem;
        min-width: 24px;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-description {
        font-size: 0.85rem;
    }

    .item-price {
        font-size: 0.95rem;
        min-width: 50px;
    }

    .contact {
        padding: 60px 24px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map {
        height: 300px;
    }

    .editorial {
        padding: 0;
        margin: 0 0 60px 0;
    }

    .editorial-grid {
        height: 450px;
    }

    .editorial-image {
        width: 60%;
    }

    .editorial-left {
        left: 0;
        top: 0;
    }

    .editorial-right {
        top: 50px;
        left: 30%;
    }

    .philosophy {
        padding: 60px 20px 60px 24px;
    }

    .philosophy-header {
        margin-bottom: 35px;
    }

    .philosophy-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .inline-icon {
        height: 1.9em;
    }

    .about {
        padding: 60px 24px;
    }

    .about p {
        font-size: 1rem;
    }

    .catering {
        padding: 60px 24px;
    }

    .catering-header {
        margin-bottom: 35px;
    }

    .catering-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .editorial-mirrored .editorial-bottom-right {
        top: 50px;
        left: 30%;
    }

    .editorial-mirrored .editorial-top-left {
        left: 0;
        top: 0;
    }

    .footer {
        padding: 40px 24px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-logo img {
        width: 160px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 30px;
    }

    .footer-info p {
        font-size: 0.8rem;
    }

    /* Legal pages mobile */
    .nav-legal {
        padding: 20px 24px;
    }

    .legal-page {
        padding: 20px 24px 80px;
    }

    .legal-content h1 {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    .legal-content h2 {
        font-size: 1rem;
        margin-top: 30px;
    }

    .legal-content p {
        font-size: 0.95rem;
    }

    /* Cookie banner mobile */
    .cookie-banner {
        padding: 0 24px;
    }

    .cookie-banner.active {
        height: auto;
        padding: 20px 24px;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
        height: auto;
        text-align: center;
    }

    .cookie-banner-text {
        font-size: 0.8rem;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        padding: 12px 16px;
        font-size: 0.75rem;
    }
}
