/* ============================================================
   PIZZERIA MAILAND - Stylesheet V2
   Design: Trattoria Nera (Schwarz/Gold)
   ============================================================ */

/* --- KEINE GOOGLE FONTS (DSGVO-konform) --- */
:root {
    --color-bg: #111111;
    --color-bg-card: #1a1a1a;
    --color-bg-section: #141414;
    --color-gold: #d4a843;
    --color-gold-light: #e8c86e;
    --color-gold-dark: #b08930;
    --color-text: #e0ddd5;
    --color-text-muted: #9a9590;
    --color-text-desc: #b5b0a8;
    --color-border: #2a2520;
    --color-border-gold: rgba(212, 168, 67, 0.3);
    --color-accent-red: #c0392b;
    --font-display: 'Georgia', 'Times New Roman', Times, serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --max-width: 960px;
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container-Handling */
.menu-section, 
.extras-section, 
.delivery-section, 
.allergen-legend,
.page-container {
    width: 100%; 
    max-width: var(--max-width);
    margin: 0 auto;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-gold-light);
}

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

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: 64px;
    transition: background var(--transition);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.site-logo span {
    color: var(--color-text);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: 2rem;
}

.main-nav a {
    color: var(--color-text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions a {
    color: var(--color-text);
}

.header-actions a:hover {
    color: var(--color-gold);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 450px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-ornament {
    color: var(--color-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero h1 em {
    color: var(--color-gold);
    font-style: italic;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.hero-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-info svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-gold);
    margin-right: 0.3rem;
    vertical-align: middle;
}

.hero-info span {
    display: inline-flex;
    align-items: center;
}

.btn-cta {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--color-gold);
    color: #111;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-cta:hover {
    background: var(--color-gold-light);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.3);
}

/* --- Category Navigation (Sticky) --- */
.category-nav {
    position: sticky;
    top: 64px;
    z-index: 900;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0;
    white-space: nowrap;
}

.category-nav a {
    display: block;
    padding: 0.85rem 1.1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    text-transform: uppercase;
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

/* --- Info Bar --- */
.info-bar {
    background: var(--color-bg-section);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.info-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.info-item svg { width: 20px; height: 20px; stroke: var(--color-gold); flex-shrink: 0; }
.info-item strong { color: var(--color-text); }

/* --- Menu Section --- */
.menu-section {
    padding: 0 1.5rem;
    flex: 1; 
}

.category-block { padding: 3rem 0 2rem; }

.category-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-header::before,
.category-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 140px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border-gold));
}

.category-header::before { left: 0; }
.category-header::after { right: 0; background: linear-gradient(to left, transparent, var(--color-border-gold)); }

.category-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-gold);
    display: inline-block;
    padding: 0 1rem;
    background: var(--color-bg);
    position: relative;
}

.category-header .cat-desc {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.variant-header {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.variant-header span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gold);
    width: 70px;
    text-align: center;
}

/* --- Menu Item --- */
.menu-item {
    display: flex;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(42, 37, 32, 0.5);
    transition: background var(--transition);
}

.menu-item:hover { background: rgba(212, 168, 67, 0.03); }

.item-nr {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-gold);
    min-width: 40px;
    padding-top: 0.15rem;
}

.item-details { flex: 1; min-width: 0; }

.item-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text);
}

.item-badges { display: inline-flex; gap: 0.3rem; }

.badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.badge-vegan { background: #27ae60; color: #fff; }
.badge-vegetarisch { background: #2ecc71; color: #fff; }
.badge-scharf { background: var(--color-accent-red); color: #fff; }

.item-desc {
    font-size: 0.88rem;
    color: var(--color-text-desc);
    margin-top: 0.2rem;
    line-height: 1.5;
}

.item-allergene { display: inline; }

.allergen-sup {
    font-size: 0.7rem;
    color: var(--color-gold);
    vertical-align: super;
    font-weight: 700;
    margin-left: 1px;
    cursor: help;
}

.item-einheit {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.item-literpreis {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.item-prices {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.item-price, .item-price-single {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-gold-light);
    width: 70px;
    text-align: right;
}

.item-price-single { min-width: 70px; flex-shrink: 0; }

/* --- Extras Section --- */
.extras-section { padding: 2rem 1.5rem 3rem; }
.extras-header { text-align: center; margin-bottom: 1.5rem; }
.extras-header h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-gold); }
.extras-hint { text-align: center; font-size: 0.9rem; color: var(--color-gold-light); margin-bottom: 1.5rem; font-style: italic; }

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
}

.extra-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px dotted var(--color-border);
}

.extra-item .extra-name { color: var(--color-text); }
.extra-item .extra-price { color: var(--color-gold-light); font-weight: 600; }

/* --- Allergen Legend --- */
.allergen-legend { padding: 2rem 1.5rem 3rem; border-top: 1px solid var(--color-border); }
.allergen-legend h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-gold); margin-bottom: 1rem; text-align: center; }

.allergen-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem 2rem;
}

.allergen-entry { font-size: 0.85rem; color: var(--color-text-muted); padding: 0.25rem 0; }
.allergen-entry .allergen-key { font-weight: 700; color: var(--color-gold); margin-right: 0.3rem; display: inline-block; min-width: 22px; }
.allergen-group-title { font-family: var(--font-display); font-size: 1rem; color: var(--color-text); margin-top: 1rem; margin-bottom: 0.5rem; grid-column: 1 / -1; }

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 3rem 1.5rem 2rem;
    margin-top: auto; 
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-gold); margin-bottom: 1rem; }
.footer-col p, .footer-col li, .footer-col a { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col a:hover { color: var(--color-gold); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- CONTACT PAGE STYLES --- */
.page-container {
    padding: 4rem 1.5rem;
    min-height: 60vh;
    margin-top: 64px; 
}

.page-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* UPDATE: Contact Card jetzt im Goldenen Stil wie die unteren Boxen */
.contact-card {
    background: linear-gradient(135deg, #e8c86e, #d4a843);
    color: #111; /* Dunkler Text für Kontrast auf Gold */
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid #b08930;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.contact-card:hover { transform: translateY(-5px); }
.contact-icon { font-size: 2.5rem; color: #8bbf3e; margin-bottom: 1.5rem; display: inline-block; }
.contact-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card p { font-size: 0.9rem; color: #222; margin-bottom: 0.5rem; line-height: 1.6; } /* Text dunkler gemacht */
.contact-card a { color: #111; font-weight: 600; } /* Links dunkel gemacht */
.contact-card a:hover { color: #fff; } /* Hover Effekt angepasst */

.map-link { color: #111 !important; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; margin-top: 1rem; display: inline-block; border-bottom: 1px dotted #111; }
.map-container { width: 100%; height: 400px; background: #ccc; margin-top: 2rem; }

.text-content {
    background: var(--color-bg-card);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
}

.text-content h2 { font-family: var(--font-display); color: var(--color-gold); margin-top: 1.5rem; margin-bottom: 1rem; }
.text-content p { margin-bottom: 1rem; }

/* --- GOLD INFO BOXES --- */
.gold-info-box {
    background: linear-gradient(135deg, #e8c86e, #d4a843);
    color: #111;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
    border: 1px solid #b08930;
}

.gold-info-box h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    display: inline-block;
    padding-bottom: 0.2rem;
}

.gold-info-box p { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.5; }

.opening-times-list { list-style: none; padding: 0; margin: 0; }
.opening-times-list li { padding: 0.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.1); font-weight: 600; }
.opening-times-list li:last-child { border-bottom: none; }
.opening-times-list strong { display: inline-block; min-width: 100px; }

/* NEU: Info Grid Klasse */
.info-grid {
    display: grid;
    /* Flexibles Layout: Mindestens 250px, sonst 1 Spalte (Handy) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* FIX: Damit die Gold-Boxen im Grid auf dem Handy nicht breiter sind als der Bildschirm */
.info-grid .gold-info-box {
    margin: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Search Overlay --- */
.search-overlay { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); align-items: flex-start; justify-content: center; padding-top: 15vh; }
.search-overlay.active { display: flex; }
.search-box { width: 90%; max-width: 600px; background: var(--color-bg-card); border: 1px solid var(--color-border-gold); border-radius: 8px; padding: 1.5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.search-input-wrap { display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid var(--color-gold); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.search-input-wrap svg { width: 24px; height: 24px; stroke: var(--color-gold); flex-shrink: 0; }
.search-input-wrap input { flex: 1; background: transparent; border: none; outline: none; color: var(--color-text); font-family: var(--font-body); font-size: 1.2rem; }
.search-input-wrap input::placeholder { color: var(--color-text-muted); }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-result-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--color-border); cursor: pointer; transition: background var(--transition); }
.search-result-item:hover { background: rgba(212, 168, 67, 0.08); }
.search-result-name { font-weight: 600; color: var(--color-text); }
.search-result-cat { font-size: 0.8rem; color: var(--color-text-muted); }
.search-result-price { color: var(--color-gold-light); font-weight: 600; font-size: 0.95rem; }
.search-no-results { text-align: center; padding: 2rem; color: var(--color-text-muted); font-style: italic; }
.search-close { position: absolute; top: 2rem; right: 2rem; background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 1.5rem; transition: color var(--transition); }
.search-close:hover { color: var(--color-gold); }

/* --- Delivery Section --- */
.delivery-section { padding: 2rem 1.5rem; border-top: 1px solid var(--color-border); }
.delivery-header { text-align: center; margin-bottom: 1.5rem; }
.delivery-header h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-gold); }
.delivery-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.delivery-area-tag { display: inline-block; padding: 0.35rem 0.85rem; background: rgba(212, 168, 67, 0.1); border: 1px solid var(--color-border-gold); border-radius: 20px; font-size: 0.85rem; color: var(--color-text); }

/* --- Responsive --- */
@media (max-width: 900px) {
    /* Tablet: 2 Spalten */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-logo span { display: none; }
    
    .main-nav {
        display: flex;
        font-size: 0.8rem;
        gap: 1rem;
        margin: 10px 0;
    }
    
    .header-inner { flex-direction: column; height: auto; padding: 10px; }
    .site-header { height: auto; position: relative; }
    .page-container, .hero { margin-top: 0; }
    .category-nav { top: 0; }

    .hero { height: 55vh; min-height: 380px; }
    .hero h1 { font-size: 2.2rem; }
    .info-bar-inner { flex-direction: column; gap: 0.5rem; }
    .category-header::before, .category-header::after { width: calc(50% - 100px); }
    .variant-header { gap: 1rem; }
    .variant-header span { width: 55px; font-size: 0.75rem; }
    .item-prices { gap: 1rem; }
    .item-price { width: 55px; font-size: 0.9rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .extras-grid { grid-template-columns: 1fr; }
    
    /* Mobile: 1 Spalte */
    .contact-grid { grid-template-columns: 1fr; }
    
    /* NEU: Auch Info-Grid auf 1 Spalte zwingen */
    .info-grid { grid-template-columns: 1fr; }
    
    /* Mehr Platz in den Gold-Boxen auf kleinen Screens */
    .gold-info-box { padding: 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-info { flex-direction: column; gap: 0.5rem; }
    .category-nav a { padding: 0.7rem 0.8rem; font-size: 0.78rem; }
    .item-nr { min-width: 32px; font-size: 0.8rem; }
    .item-name { font-size: 0.95rem; }
    .item-desc { font-size: 0.82rem; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-dark); }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.category-block { animation: fadeInUp 0.5s ease both; }
/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -150%; /* Standardmäßig unsichtbar nach unten verschoben */
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-top: 2px solid var(--color-gold);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-banner.show {
    bottom: 0; /* Fährt sanft von unten in den Bildschirm */
}

.cookie-content {
    flex: 1;
    min-width: 250px;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

.cookie-content a {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-content a:hover {
    color: var(--color-gold-light);
}

.cookie-actions {
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}