/* © 2026 Eiscafé Pizzeria Firenze Nördlingen. Alle Rechte vorbehalten. */

/* =========================================
   0. LOKALE SCHRIFTARTEN (DSGVO-konform)
   ========================================= */
@font-face {
    font-family: 'DM Sans';
    src: url('assets/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('assets/fonts/dm-sans-v17-latin-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* =========================================
   1. VARIABLEN & GRUNDSETUP
   ========================================= */
:root {
    --mint: #A3D1B6;          
    --mint-light: #F4F9F6;    
    --coral: #D97E6A;         
    --espresso: #3A2F2B;      
    --white: #FFFFFF;
    --gray-light: #F9F7F5;
    
    --text-dark: #4A3E39;
    --text-muted: #827671;

    --font-sans: 'DM Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --radius-xl: 30px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 8px 30px rgba(58, 47, 43, 0.06);
    --shadow-coral: 0 8px 20px rgba(217, 126, 106, 0.2);
    
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-sans); 
    background: var(--white); 
    color: var(--text-dark); 
    line-height: 1.7; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--espresso); font-weight: 700; }

.text-center { text-align: center; }
.text-coral { color: var(--coral) !important; }
.text-mint { color: #6EAB88 !important; }
.text-white { color: var(--white) !important; }
.bg-light-mint { background: var(--mint-light); }
.bg-dark { background: var(--espresso); }
.mt-2 { margin-top: 15px; }
.mt-3 { margin-top: 30px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* =========================================
   2. BUTTONS & BADGES
   ========================================= */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 50px; font-weight: 500; 
    text-decoration: none; transition: var(--transition); cursor: pointer;
    border: 2px solid transparent; font-size: 1rem; letter-spacing: 0.3px;
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-large { padding: 14px 34px; font-size: 1.05rem; }

.btn-brand { background: var(--coral); color: var(--white); box-shadow: var(--shadow-coral); }
.btn-brand:hover { background: #C56F5C; transform: translateY(-2px); }

.btn-outline-light { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--espresso); }

/* =========================================
   3. HEADER & LOGO
   ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-icon { 
    width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(to right, #009246 33.3%, #ffffff 33.3% 66.6%, #CE2B37 66.6%);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { color: var(--espresso); font-family: var(--font-serif); font-size: 1.3rem; }
.logo-text span { color: var(--text-muted); font-weight: 500; font-size: 0.75rem; letter-spacing: 2px; }

.desktop-nav { display: none; align-items: center; gap: 30px; }
.desktop-nav a:not(.btn) { color: var(--text-dark); text-decoration: none; font-weight: 500; transition: var(--transition); }
.desktop-nav a:not(.btn):hover { color: var(--coral); }

.mobile-menu-btn { 
    display: block; background: none; border: none; color: var(--espresso); 
    font-size: 1.8rem; cursor: pointer; z-index: 1001;
}

/* =========================================
   4. HERO BEREICH
   ========================================= */
.hero-creative {
    padding-top: 110px; padding-bottom: 60px;
    background: radial-gradient(circle at top right, var(--mint-light) 0%, var(--white) 80%);
    display: flex; align-items: center; overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.hero-text h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.15; margin-bottom: 15px; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 25px; }

.hero-visuals { position: relative; width: 100%; height: 450px; }

.main-image {
    width: 80%; height: 90%; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--shadow-soft); z-index: 1;
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }

.floating-item { 
    position: absolute; z-index: 2; box-shadow: 0 15px 30px rgba(0,0,0,0.12); 
    border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; border: 6px solid var(--white);
}

@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float-slower { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.item-1 { width: 130px; top: 5%; left: 0; animation: float-slow 6s ease-in-out infinite; }
.item-2 { width: 110px; bottom: 10%; right: 5%; animation: float-slower 5s ease-in-out infinite reverse; }

/* =========================================
   5. SPEISEKARTE: ELEGANTE TABS & BOARD
   ========================================= */
.section-padding { padding: 90px 0; }
.section-header { margin-bottom: 50px; text-align: center; }

.menu-tabs-wrapper {
    position: sticky; top: 75px; z-index: 10;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    padding: 15px 0; margin-bottom: 40px; 
    border-bottom: 1px solid rgba(58, 47, 43, 0.08);
}

/* Neue Kategorien-Tabs: Umbrechen statt scrollen! */
.menu-tabs { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 15px 25px; /* 15px Abstand nach unten, 25px zur Seite */
    flex-wrap: wrap; /* Lässt die Tabs in die nächste Zeile springen */
    padding: 10px 20px; 
}

.tab-btn {
    background: transparent; 
    border: none; 
    padding: 5px 0;
    cursor: pointer; 
    font-weight: 500; 
    color: var(--text-muted);
    transition: var(--transition); 
    font-family: var(--font-serif); 
    font-size: 1.25rem;
    white-space: nowrap; 
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; 
    width: 0; height: 2px;
    background: var(--coral);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.tab-btn:hover { color: var(--espresso); }
.tab-btn.active { color: var(--espresso); font-weight: 700; }
.tab-btn.active::after { width: 100%; }

.classic-menu-board {
    background: var(--mint-light);
    padding: 50px 45px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background-image: radial-gradient(rgba(58, 47, 43, 0.02) 1px, transparent 1px);
    background-size: 10px 10px;
}

.classic-menu-board::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px solid rgba(58, 47, 43, 0.12); 
    border-radius: var(--radius-sm);
    pointer-events: none; 
}

.menu-list { display: flex; flex-direction: column; gap: 32px; position: relative; z-index: 1; }
.menu-list-item { display: flex; flex-direction: column; gap: 4px; }
.menu-item-header { display: flex; align-items: flex-end; width: 100%; }

.menu-item-name { font-family: var(--font-serif); font-size: 1.35rem; color: var(--espresso); margin: 0; font-weight: 700; }
.menu-item-dots { flex-grow: 1; border-bottom: 2px dotted rgba(58, 47, 43, 0.25); margin: 0 15px 6px 15px; }
.menu-item-price { font-family: var(--font-sans); font-weight: 700; color: var(--coral); font-size: 1.2rem; white-space: nowrap; }
.menu-item-desc { font-size: 0.95rem; color: var(--text-muted); margin: 0; font-style: italic; max-width: 85%; line-height: 1.5; }

/* =========================================
   6. AMBIENTE & COLLAGE SHOWCASE 
   ========================================= */
.ambiente-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.showcase-text h3 { font-size: 2rem; margin-bottom: 15px; }
.showcase-text p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.05rem; }

.check-list { list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid rgba(58, 47, 43, 0.05); }
.check-list li i { color: var(--mint); font-size: 1.2rem; }

.showcase-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 15px;
    position: relative;
}

.collage-img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-soft); transition: transform var(--transition); }
.collage-img:hover { transform: scale(1.02); }

.img-1 { grid-column: 1 / 2; grid-row: 1 / 3; border-radius: var(--radius-xl) var(--radius-sm) var(--radius-xl) var(--radius-xl); }
.img-2 { grid-column: 2 / 3; grid-row: 1 / 2; border-radius: var(--radius-sm) var(--radius-xl) var(--radius-xl) var(--radius-sm); }
.img-3 { grid-column: 2 / 3; grid-row: 2 / 3; border-radius: var(--radius-sm) var(--radius-sm) var(--radius-xl) var(--radius-xl); }
.shadow-mint { box-shadow: -15px 15px 0 var(--mint-light); } /* Etwas dezenterer Schatten hier */

/* =========================================
   7. INFO & MAP
   ========================================= */
.info-grid-modern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.info-box {
    background: rgba(255,255,255,0.04); padding: 35px; border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column;
}
.icon-large { font-size: 2.5rem; margin-bottom: 20px; }
.info-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 15px; }

.clean-list { list-style: none; color: rgba(255,255,255,0.7); font-size: 1rem; }
.clean-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

.map-box { padding: 0; overflow: hidden; position: relative; min-height: 250px; border: none; }
.map-placeholder-dark {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); text-align: center;
}

/* =========================================
   8. SCROLL TO TOP BUTTON
   ========================================= */
.scroll-top-btn {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--coral); color: var(--white);
    width: 45px; height: 45px; border-radius: 50%;
    border: none; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-coral);
    z-index: 1000; opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: var(--transition);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--espresso); transform: translateY(-5px); }

/* =========================================
   9. NAVIGATION & OVERLAYS
   ========================================= */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--gray-light); display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 30px; 
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999;
}
.mobile-nav.active { right: 0; }

.mobile-nav a.mobile-link { 
    font-size: 1.8rem; font-family: var(--font-serif); color: var(--espresso); 
    text-decoration: none; font-weight: 700; transition: var(--transition);
}
.mobile-nav a.mobile-link:hover { color: var(--coral); }

.mobile-nav-divider { width: 50px; height: 2px; background: rgba(58, 47, 43, 0.1); margin: 10px 0; }

.cookie-banner {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(150%);
    width: 90%; max-width: 500px; background: var(--white); padding: 24px; border-radius: var(--radius-lg);
    z-index: 2000; box-shadow: var(--shadow-soft); transition: 0.5s;
}
.cookie-banner:not(.hidden) { transform: translateX(-50%) translateY(0); }

.legal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(58, 47, 43, 0.85); z-index: 3000; display: flex;
    justify-content: center; align-items: center; backdrop-filter: blur(8px);
}
.legal-card {
    background: var(--white); width: 100%; max-width: 700px; max-height: 80vh;
    border-radius: var(--radius-lg); padding: 50px; position: relative; overflow-y: auto; text-align: left;
}
.close-legal {
    position: absolute; top: 20px; right: 20px; background: var(--gray-light); border: none;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
}

/* Footer & Socials */
.footer-simple { background: var(--espresso); color: rgba(255,255,255,0.5); padding: 50px 0; text-align: center; }
.footer-links { margin-top: 20px; display: flex; justify-content: center; gap: 30px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }

.social-links { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 25px 0; }
.social-links a { font-size: 1.8rem; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: var(--transition); }
.social-links a:hover { color: var(--coral); transform: translateY(-4px); }

/* Animationen */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   10. MEDIA QUERIES
   ========================================= */
@media (min-width: 900px) {
    .desktop-nav { display: flex; }
    .mobile-menu-btn { display: none; }
}

@media (max-width: 900px) {
    .hero-creative { padding-top: 100px; padding-bottom: 40px; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visuals { height: 400px; } 
    
    .ambiente-showcase { grid-template-columns: 1fr; text-align: center; }
    .showcase-collage { grid-template-rows: repeat(2, 180px); margin-top: 30px; }
    .check-list li { justify-content: center; }
    
    .info-grid-modern { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
    /* Entspannte Abstände, da der Text jetzt fehlt */
    .hero-creative { padding-top: 90px; padding-bottom: 20px; }
    .hero-grid { gap: 25px; }
    
    .hero-text h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 0; }
    
    /* Großes Bild für perfekte Wirkung */
    .hero-visuals { height: 380px; } 
    .item-1 { width: 120px; }
    .item-2 { width: 100px; }

    /* Speisekarte Mobile */
    .classic-menu-board { padding: 30px 20px; }
    .menu-item-name { font-size: 1.15rem; }
    .menu-item-price { font-size: 1.05rem; }
    .menu-item-desc { max-width: 100%; }
    .tab-btn { font-size: 1.1rem; }
}

/* =========================================
   11. RECHTLICHES OVERLAY (Formatierung)
   ========================================= */
.legal-content { text-align: left !important; color: var(--text-dark) !important; }
.legal-content h2 { font-size: 2.2rem; margin-bottom: 25px; color: var(--espresso); border-bottom: 2px solid var(--mint); padding-bottom: 15px; }
.legal-content h3 { font-size: 1.3rem; margin-top: 35px; margin-bottom: 10px; color: var(--espresso); }
.legal-content p { margin-bottom: 15px; line-height: 1.7; color: var(--text-dark); font-size: 1rem; }
.legal-content a { color: var(--coral); text-decoration: underline; transition: var(--transition); }
.legal-content a:hover { color: var(--espresso); }