/* Fässle - Chinesisches Restaurant Stuttgart - Vanilla CSS */

:root {
  /* Colors */
  --background: #f5f1e8; /* rice-paper */
  --foreground: #171413; /* ink */
  --card: #f9f7f4;
  --primary: #94101b; /* red vermillion/primary */
  --primary-foreground: #f2ebd5;
  --muted: #e0d8c8;
  --muted-foreground: #665b53;
  --gold: #d6a326;
  --jade: #367d5c;
  --ink: #171413;
  --rice-paper: #f5f1e8;

  /* Typgraphy */
  --font-display: 'Cinzel Decorative', 'Playfair Display', serif;
  --font-body: 'Playfair Display', serif;
  --font-chinese: 'Noto Serif SC', serif;
  --font-mono: 'Geist Mono', monospace;

  /* Effects */
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 16px rgba(60,20,0,0.08);
  --shadow-elevated: 0 12px 40px rgba(60,20,0,0.12);
  --shadow-lantern: 0 0 30px rgba(180,50,20,0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.6;
}

section {
    position: relative;
}
section.bg-ink {
    z-index: 0;
}
section.bg-rice-paper {
    z-index: 7;
}
.container,
.hero-content {
    position: relative;
    z-index: 9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container { max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.block { display: block; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.min-h-85vh { min-height: 85vh; }
.aspect-\[3\/2\] { aspect-ratio: 3/2; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Flexbox & Grid */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md-hidden { display: none; }
    .md-flex { display: flex; }
}

/* Spacing */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-16 { padding-top: 4rem; }
.pb-10 { padding-bottom: 2.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-7 { margin-left: 1.75rem; }

/* Colors & Backgrounds */
.bg-ink { background-color: var(--ink); }
/* Header specific backgrounds */
.bg-ink-95 { background-color: rgba(23, 20, 19, 0.95); }
.bg-ink-90 { background-color: rgba(23, 20, 19, 0.90); }
.bg-rice-paper { background-color: var(--rice-paper); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }

.text-gold { color: var(--gold); }
.text-gold-70 { color: rgba(214, 163, 38, 0.7); }
.text-gold-60 { color: rgba(214, 163, 38, 0.6); }
.text-gold-50 { color: rgba(214, 163, 38, 0.5); }
.text-gold-40 { color: rgba(214, 163, 38, 0.4); }
.text-primary { color: var(--primary); }
.text-primary-60 { color: rgba(148, 16, 27, 0.6); }
.text-rice-paper { color: var(--rice-paper); }
.text-rice-paper-60 { color: rgba(245, 241, 232, 0.6); }
.text-rice-paper-20 { color: rgba(245, 241, 232, 0.2); }
.text-ink { color: var(--ink); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

/* Typography Extras */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-chinese { font-family: var(--font-chinese); }
.font-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-hero { font-size: clamp(3rem, 10vw, 6rem); }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* Borders & Shadows */
.border { border: 1px solid transparent; }
.border-b { border-bottom: 1px solid rgba(214, 163, 38, 0.15); }
.border-t { border-top: 1px solid rgba(214, 163, 38, 0.15); }
.border-gold-08 { border-color: rgba(214, 163, 38, 0.08); }
.border-gold-10 { border-color: rgba(214, 163, 38, 0.1); }
.border-gold-15 { border-color: rgba(214, 163, 38, 0.15); }
.border-foreground-5 { border-color: rgba(23, 20, 19, 0.05); }

.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-full { border-radius: 9999px; }

.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* UI Elements */
.btn {
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.875rem 1.5rem;
    transition: opacity 0.2s;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 2px;
}
.btn-primary:hover { opacity: 0.9; }

/* Header & Navigation Fixes */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(23, 20, 19, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(214, 163, 38, 0.15);
}

.logo { display:flex; align-items:center; gap:0.5rem; color:var(--rice-paper); }
.lantern-icon { width: 24px; height: 24px; opacity: 0.8; transition: opacity 0.2s; }
.logo:hover .lantern-icon { opacity: 1; }
.logo-text { font-size: 1.125rem; font-weight: 700; letter-spacing: 0.05em; }
.logo-text-chinese { font-size: 0.75rem; color: var(--gold); opacity: 0.6; margin-left: 0.5rem; }
.nav-desktop { display: none; }
.nav-link { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245, 241, 232, 0.5); transition: color 0.2s; }
.nav-link:hover { color: var(--gold); }
.nav-pill {
    background: rgba(245, 241, 232, 0.03);
    border: 1px solid rgba(214, 163, 38, 0.18);
    border-radius: 999px;
    padding: 0.3rem 0.5rem;
    gap: 0.35rem;
}
.nav-pill .nav-link {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-pill .nav-link:hover {
    color: var(--gold);
    background: rgba(214, 163, 38, 0.12);
}
.mobile-menu-btn { background: none; border: none; color: var(--rice-paper); cursor: pointer; }
.nav-mobile { display: none; }
.nav-mobile.active { display: block; }
.nav-link-mobile { display: block; font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(214, 163, 38, 0.7); }
.nav-link-mobile:hover { color: var(--gold); }
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
    }
}

/* Forms */
.form-input {
    width: 100%;
    border: 1px solid rgba(214, 163, 38, 0.28);
    background-color: rgba(245, 241, 232, 0.05);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--rice-paper);
    caret-color: var(--gold);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}
.form-input::placeholder {
    color: rgba(245, 241, 232, 0.5);
}
.form-input:focus {
    border-color: var(--gold);
    background-color: rgba(245, 241, 232, 0.1);
}
.resize-none { resize: none; }

/* Custom Fässle Theme Classes */
.chinese-border {
    border: 2px solid var(--primary);
    outline: 1px solid rgba(148, 16, 27, 0.3);
    outline-offset: 4px;
}

.chinese-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.chinese-divider::before,
.chinese-divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lantern-glow {
    box-shadow: var(--shadow-lantern);
}

.ink-wash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(148, 16, 27, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.ornamental-frame {
    position: relative;
    border: 1px solid rgba(214, 163, 38, 0.15);
}
.ornamental-frame::before,
.ornamental-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--gold);
    pointer-events: none;
}
.ornamental-frame::before { top: -2px; left: -2px; border-top: 2px solid; border-left: 2px solid; }
.ornamental-frame::after { bottom: -2px; right: -2px; border-bottom: 2px solid; border-right: 2px solid; }

/* Animations & Specifics */
.floating-lantern { position: absolute; color: var(--gold); opacity: 0; animation: floatUp 1s forwards, bobbing 3.5s infinite ease-in-out; }
.l1 { top: 2rem; left: 15%; animation-delay: 2s, 2.5s; }
.l2 { top: 3rem; right: 12%; animation-delay: 2.3s, 2.8s; animation-duration: 1s, 4s; }
.l3 { top: 1.5rem; right: 35%; animation-delay: 2.6s, 3.6s; animation-duration: 1s, 3s; }

@keyframes floatUp { to { opacity: 0.6; transform: translateY(0); } from { opacity: 0; transform: translateY(-20px); } }
@keyframes bobbing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.fade-in-up { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; transform: translateY(10px); }
.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 0.9s; }
.delay-3 { animation-delay: 1.2s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Dragon loop around hero title */
.dragon-title-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 3;
}
.restaurant-name {
    position: relative;
    z-index: 5;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9), -2px -2px 8px rgba(0, 0, 0, 0.9);
}
.dragon-segment {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    width: 60px;
    height: auto;
    pointer-events: none;
    opacity: 0.9;
    will-change: transform;
}
.dragon-head {
    width: 82px;
}
.dragon-tail {
    width: 50px;
}
@media (max-width: 768px) {
    .dragon-segment {
        width: 46px;
    }
    .dragon-head {
        width: 64px;
    }
    .dragon-tail {
        width: 40px;
    }
}

/* CSS-Animated Accordion Wrapper */
.accordion-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.accordion-wrapper.expanded {
    grid-template-rows: 1fr;
}
.accordion-inner {
    overflow: hidden;
}

/* Speisekarte redesign: cleaner cards, smoother hierarchy */
.menu-accordion {
    display: grid;
    gap: 1rem;
}
.accordion-item {
    border: 1px solid rgba(214, 163, 38, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffefb 0%, #f8f4ec 100%);
    box-shadow: 0 12px 28px rgba(60, 20, 0, 0.07);
    overflow: hidden;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}
.accordion-header {
    background: linear-gradient(90deg, rgba(214, 163, 38, 0.08), rgba(214, 163, 38, 0.02));
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.accordion-header:hover {
    background: linear-gradient(90deg, rgba(214, 163, 38, 0.14), rgba(214, 163, 38, 0.04));
}
.accordion-item.is-open {
    border-color: rgba(214, 163, 38, 0.33);
    box-shadow: 0 16px 34px rgba(60, 20, 0, 0.11);
    transform: translateY(-2px);
}
.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    font-family: var(--font-chinese);
    font-size: 0.95rem;
    color: var(--gold);
    background: rgba(23, 20, 19, 0.9);
}
.category-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--foreground);
}
.chevron {
    color: rgba(23, 20, 19, 0.68);
}
.menu-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0.95rem 0.9rem 0.75rem;
    border-bottom: 1px dashed rgba(23, 20, 19, 0.14);
}
.menu-item:last-child {
    border-bottom: 0;
}
.menu-item-main {
    flex: 1;
    min-width: 0;
}
.menu-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}
.menu-id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 16, 27, 0.74);
    background: rgba(148, 16, 27, 0.08);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}
.menu-name {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--foreground);
}
.menu-cn {
    font-family: var(--font-chinese);
    font-size: 0.78rem;
    color: rgba(214, 163, 38, 0.82);
    margin-left: 0.2rem;
}
.menu-allergens {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: rgba(102, 91, 83, 0.9);
}
.menu-price {
    font-family: var(--font-mono);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    margin-top: 0.1rem;
}
@media (max-width: 640px) {
    .menu-item {
        gap: 0.6rem;
        padding: 0.8rem 0.7rem 0.8rem 0.55rem;
    }
    .menu-name {
        font-size: 0.94rem;
    }
    .menu-cn {
        display: none;
    }
}

/* Lightbox specific */
.lightbox-open { overflow: hidden; }
.gallery-intro {
    max-width: 42rem;
    line-height: 1.7;
}
.gallery-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(245, 241, 232, 0.03);
}
.lightbox-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: min(92vw, 1100px);
}
.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-counter {
    text-align: center;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(214, 163, 38, 0.25);
    border-radius: 999px;
    background: rgba(23, 20, 19, 0.7);
    color: var(--gold);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}
.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(23, 20, 19, 0.9);
    border-color: rgba(214, 163, 38, 0.45);
}
.lightbox-nav-left { left: 1rem; }
.lightbox-nav-right { right: 1rem; }
.legal-trigger,
[data-legal-close] {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.hover-text-gold:hover { color: var(--gold); }
.cursor-pointer { cursor: pointer; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-ink-30 { background-color: rgba(23, 20, 19, 0.3); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 500ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 300ms; }
.transition-opacity { transition-property: opacity; transition-duration: 300ms; }

/* Footer contrast override: ensure readable text on dark background */
footer.bg-ink {
    color: #ffffff;
}
footer.bg-ink a {
    color: #ffffff;
}
footer.bg-ink .legal-trigger {
    color: #ffffff;
}
footer.bg-ink .legal-trigger:hover {
    color: var(--gold);
}

/* stronger footer readability */
footer.bg-ink .container {
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}
footer.bg-ink .container a {
    color: #ffffff;
    font-weight: 600;
}
footer.bg-ink .legal-trigger {
    font-weight: 600;
    font-size: 1.0625rem; /* ~17px */
}
footer.bg-ink .mt-14.pt-6 { padding-top: 1.5rem; }