/*
Theme Name: Wurst & Wein
Theme URI: https://example.com/wurst-wein
Author: Dein Name
Description: Ein minimalistisches Theme für Wurst & Wein Imbiss & Weinbar
Version: 1.0
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    background-color: #0000ff;
    color: #ededed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation - Safari-optimiert */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 255, 0.95); /* Höhere Deckkraft für Safari */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-transform: translateZ(0); /* Safari-Fix für fixed positioning */
    transform: translateZ(0);
    will-change: transform; /* Performance-Optimierung */
    transition: all 0.4s ease;
}

.site-nav.scrolled {
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.nav-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #ededed;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ededed;
    -webkit-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ededed;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Header mit extremer Typografie */
.header {
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
}

.logo {
    font-size: clamp(80px, 20vw, 300px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    -webkit-animation: fadeInUp 1s ease-out;
    animation: fadeInUp 1s ease-out;
    will-change: transform;
}

.tagline {
    font-size: clamp(20px, 4vw, 40px);
    font-weight: 300;
    opacity: 0;
    -webkit-animation: fadeInUp 1s ease-out 0.3s forwards;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Menü Sektion */
.menu-section {
    min-height: 100vh;
    padding: 80px 0;
    opacity: 0;
}

.menu-section.visible {
    -webkit-animation: fadeInUp 0.8s ease-out forwards;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title {
    font-size: clamp(60px, 12vw, 180px);
    font-weight: 900;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    opacity: 0;
    -webkit-transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.visible {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-bottom: 40px;
}

.menu-category {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-category.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.menu-category h3 {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 800;
    margin-bottom: 30px;
    border-bottom: 4px solid #ededed;
    padding-bottom: 10px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.menu-item {
    margin-bottom: 25px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.item-price {
    font-size: 16px;
    font-weight: 800;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.item-desc {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Hover Effekte */
.menu-item:hover {
    -webkit-transform: translateX(10px);
    transform: translateX(10px);
    background-color: rgba(237, 237, 237, 0.05);
    padding-left: 10px;
    margin-left: -10px;
    border-radius: 5px;
}

.menu-item:hover .item-name {
    color: #ffffff;
}

/* Link zur vollständigen Karte */
.full-menu-link {
    display: inline-block;
    margin-top: 40px;
    padding: 20px 40px;
    background-color: #ededed;
    color: #0000ff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    -webkit-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.full-menu-link:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
}

/* Quote Section */
.quote-section {
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 120px; /* Increased spacing */
}

.quote-content {
    text-align: center;
    max-width: 1200px;
    opacity: 0;
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    -webkit-transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-content.visible {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.big-quote {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Parallax background for quote */
.quote-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: clamp(200px, 40vw, 600px);
    font-weight: 900;
    opacity: 0.03;
    color: #ededed;
    z-index: 0;
    pointer-events: none;
    -webkit-transition: -webkit-transform 0.1s ease-out;
    transition: -webkit-transform 0.1s ease-out;
    transition: transform 0.1s ease-out;
    transition: transform 0.1s ease-out, -webkit-transform 0.1s ease-out;
}

/* Reservierung Sektion */
.reservation-section {
    min-height: 100vh;
    padding: 80px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
}

.reservation-section.visible {
    -webkit-animation: fadeInUp 0.8s ease-out forwards;
    animation: fadeInUp 0.8s ease-out forwards;
}

.reservation-content {
    text-align: center;
}

.reservation-title {
    font-size: clamp(50px, 10vw, 150px);
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    opacity: 0;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reservation-title.visible {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.reservation-info {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 20px;
    font-weight: 300;
}

.phone-number {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    margin: 30px 0;
    letter-spacing: -0.02em;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
}

.phone-number:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    color: #ffffff;
}

/* Maps Section */
.maps-section {
    padding: 80px 0;
    text-align: center;
    opacity: 0;
}

.maps-section.visible {
    -webkit-animation: fadeInUp 0.8s ease-out forwards;
    animation: fadeInUp 0.8s ease-out forwards;
}

.maps-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}

.maps-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 255, 0.8);
}

.footer.visible {
    -webkit-animation: fadeInUp 0.8s ease-out forwards;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hours {
    margin-top: 30px;
    font-size: 16px;
    font-weight: 400;
}

/* Blog Styles */
.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-item {
    margin-bottom: 60px;
    background-color: rgba(237, 237, 237, 0.05);
    padding: 30px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.post-item:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.post-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.post-title a {
    color: #ededed;
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ffffff;
}

.post-meta {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.post-content {
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgba(237, 237, 237, 0.1);
    color: #ededed;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: rgba(237, 237, 237, 0.2);
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: rgba(237, 237, 237, 0.1);
    color: #ededed;
    text-decoration: none;
    border-radius: 4px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #ededed;
    color: #0000ff;
}

.pagination .page-numbers:hover {
    background-color: rgba(237, 237, 237, 0.2);
}

.no-results {
    text-align: center;
    padding: 60px 0;
    font-size: 20px;
    opacity: 0.7;
}

/* Mobile Navigation und Responsive Design - Safari-optimiert */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .big-quote {
        font-size: clamp(30px, 10vw, 60px);
    }
    
    .quote-bg {
        font-size: clamp(100px, 30vw, 300px);
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 255, 0.95);
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 20px 0;
        
        /* Alternativer Ansatz statt clip-path für bessere Safari-Kompatibilität */
        max-height: 0;
        overflow: hidden;
        -webkit-transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-links.active {
        max-height: 300px; /* Großer genug Wert, um alle Menüpunkte anzuzeigen */
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        -webkit-transform: translateY(9px) rotate(45deg);
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        -webkit-transform: translateY(-9px) rotate(-45deg);
        transform: translateY(-9px) rotate(-45deg);
    }
}