/* ============================================
   Olivio & Scampino – Design System
   Glassmorphism · Olive Green · Italian Accents
   ============================================ */

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

:root {
    /* Logo-Farben */
    --olive: #789A3D;
    --olive-dark: #5a7a2a;
    --olive-light: #9DB93B;
    --lime: #C9DB3E;
    --rosso: #D22229;
    --rosso-hover: #e63a40;
    --nero: #231F20;

    /* Hintergrund */
    --bg-dark: #1a2611;
    --bg-dark-light: #243318;

    /* Text */
    --off-white: #F5F5F5;

    /* Glassmorphism */
    --white-20: rgba(255, 255, 255, 0.20);
    --white-10: rgba(255, 255, 255, 0.10);
    --white-05: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(15px);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--off-white);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-light) 40%, var(--olive-dark) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--lime);
}

ul {
    list-style: none;
}

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

address {
    font-style: normal;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--rosso);
    color: var(--off-white);
}

.btn-primary:hover {
    background: var(--rosso-hover);
    color: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 34, 41, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--olive-light);
    border: 1px solid var(--olive-light);
}

.btn-outline:hover {
    background: var(--rosso);
    color: var(--off-white);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 38, 17, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: opacity var(--transition);
}

.nav-logo:hover img {
    opacity: 0.85;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--off-white);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rosso);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--olive-light);
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--off-white);
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-light) 50%, var(--olive-dark) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(120, 154, 61, 0.12) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 30%, rgba(201, 219, 62, 0.06) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.hero-card {
    padding: 60px 50px;
    max-width: 760px;
}

.hero-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 24px;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--olive-light);
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--off-white);
}

.hero-desc {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 32px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: rgba(0, 0, 0, 0.15);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--off-white);
}

.section-title span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.55em;
    color: rgba(245, 245, 245, 0.6);
    display: block;
    margin-top: 8px;
}

.section-hint {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.45);
    margin-top: -44px;
    margin-bottom: 48px;
}

/* ============================================
   MENU / SPEISEKARTE
   ============================================ */
.menu-category {
    margin-bottom: 60px;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--olive-light);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--white-10);
}

.menu-category-title span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.7em;
    color: rgba(245, 245, 245, 0.5);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.menu-grid-small {
    grid-template-columns: repeat(3, 1fr);
}

.menu-item {
    padding: 24px;
}

.menu-item-small {
    padding: 16px 20px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
}

.menu-item-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--off-white);
    line-height: 1.3;
}

.menu-item-small .menu-item-header h4 {
    font-size: 0.95rem;
}

.menu-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--olive-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-price-wine {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.menu-price-bottle {
    font-size: 0.8rem;
    opacity: 0.65;
    font-weight: 400;
}

.menu-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(245, 245, 245, 0.65);
    line-height: 1.5;
}

.menu-subcategory {
    margin-top: 32px;
}

.menu-sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--white-05), var(--white-10));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.gallery-placeholder span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(245, 245, 245, 0.35);
}

/* ============================================
   RESERVATION FORM
   ============================================ */
.reservation-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.reservation-card {
    padding: 48px 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group-full {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    padding: 12px 16px;
    background: var(--white-05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--off-white);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--olive-light);
    background: var(--white-10);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239DB93B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--off-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    font-size: 0.78rem;
    color: #ff6b6b;
    margin-top: 4px;
    min-height: 18px;
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #ff6b6b;
}

.form-hint {
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.45);
    text-align: center;
    margin-top: 16px;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--rosso);
    color: var(--off-white);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success p {
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.7);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 12px;
}

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

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(245, 245, 245, 0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: var(--white-10);
    border: 1px solid var(--glass-border);
    color: rgba(245, 245, 245, 0.7);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--rosso);
    border-color: var(--rosso);
    color: var(--off-white);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--olive-light);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(245, 245, 245, 0.7);
}

.footer-col a:hover {
    color: var(--olive-light);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col .btn-outline {
    margin-top: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--white-10);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.4);
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 38, 17, 0.97);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hero-card {
        padding: 40px 28px;
        margin: 0 10px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .menu-grid-small {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .reservation-card {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-hint {
        margin-top: -24px;
        margin-bottom: 32px;
    }

    .hero-subtitle {
        letter-spacing: 1.5px;
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    html {
        font-size: 14px;
    }

    .hero-card {
        padding: 32px 20px;
    }

    .menu-item {
        padding: 18px;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.toast-message {
    flex: 1;
    color: var(--off-white);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Toast Varianten */
.toast.success {
    border-left: 4px solid var(--olive);
}

.toast.success .toast-icon {
    color: var(--olive-light);
}

.toast.error {
    border-left: 4px solid var(--rosso);
}

.toast.error .toast-icon {
    color: var(--rosso);
}

.toast.info {
    border-left: 4px solid var(--lime);
}

.toast.info .toast-icon {
    color: var(--lime);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}