:root {
  /* Astoria Light Theme Palette */
  --bg-color: #faf9f8;
  --bg-surface: #ffffff;
  --text-primary: #2c2c2c;
  --text-secondary: #7a7a7a;
  --accent-pink: #d49595;
  --border-color: #e5e5e5;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Alex Brush', cursive;
  
  --nav-height: 90px;
  --nav-height-scrolled: 70px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s ease;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Loading Screen */
#loader {
  position: fixed; inset: 0; background-color: var(--bg-surface); z-index: 10000;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.loader-svg-logo { color: var(--text-primary); }
.anim-text {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: drawLine 1s cubic-bezier(0.645, 0.045, 0.355, 1) 0s forwards, fillText 0.5s ease 0.6s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fillText { from { fill: transparent; } to { fill: currentColor; } }

/* Header & Navigation */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); z-index: 1000;
  transition: background-color 0.5s ease, height 0.5s ease, border-bottom 0.5s ease, color 0.5s ease;
  display: flex; align-items: center; background-color: transparent;
  border-bottom: 1px solid transparent; color: #ffffff;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  height: var(--nav-height-scrolled); border-bottom: 1px solid var(--border-color); color: var(--text-primary);
}

.nav-container {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-left, .nav-right { flex: 1; display: flex; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav-center { flex: 1; text-align: center; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
  position: relative; font-weight: 500;
}
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 1px; bottom: -4px; left: 50%;
  background-color: currentColor; transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }

.logo { font-family: var(--font-heading); font-size: 1.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

.btn-primary {
  display: inline-block; border: 1px solid currentColor; color: currentColor;
  padding: 0.7rem 2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  transition: all 0.4s ease; background: transparent; cursor: pointer;
}
.btn-primary:hover { background: #ffffff; color: var(--text-primary); }
header.scrolled .btn-primary:hover { background: var(--text-primary); color: #ffffff; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; }
.hamburger span { display: block; width: 32px; height: 1px; background-color: currentColor; transition: all 0.4s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
  position: fixed; inset: 0; background-color: var(--bg-surface); z-index: 1001;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.mobile-nav a { font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-primary); }

/* Hero Section */
#hero {
  position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: var(--text-primary);
}
.hero-bg { position: absolute; inset: 0; background-image: url('images/exterior.png'); background-size: cover; background-position: center; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 1000px; padding: 0 2rem; width: 100%; }

.hero-script {
  font-family: var(--font-script); font-size: clamp(5rem, 10vw, 8rem); color: #ffffff;
  margin-bottom: 0; line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Split Sections */
.split-section { display: flex; min-height: 70vh; align-items: center; background-color: var(--bg-surface); }
.split-section.reverse { flex-direction: row-reverse; background-color: var(--bg-color); }
.split-content { flex: 1; padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.split-image { flex: 1; height: 100vh; max-height: 800px; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }

.script-title { font-family: var(--font-script); font-size: 4.5rem; color: var(--accent-pink); margin-bottom: 0.5rem; font-weight: 400; line-height: 1.2; }
.subtitle { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2.5rem; }

/* Menu Section */
#menu { padding: 8rem 0; background-color: var(--bg-surface); min-height: 80vh; }
.menu-heading { text-align: center; font-size: 1.1rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 5rem; }
.menu-wrapper { max-width: 800px; margin: 0 auto; display: grid; gap: 5rem; padding: 0 2rem; }
.category-title { font-size: 2rem; text-align: center; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 0.1em; }

.menu-item { margin-bottom: 2rem; }
.item-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.3rem; }
.item-name { font-size: 1.2rem; margin: 0; letter-spacing: 0.05em; }
.item-dots { flex-grow: 1; border-bottom: 1px dotted #ccc; margin: 0 1.5rem; position: relative; top: -4px; }
.item-price { font-size: 1.1rem; }
.item-desc { color: var(--text-secondary); margin: 0; font-size: 0.9rem; font-style: italic; max-width: 85%; }

/* Subpage content (Brunch, Kontakt) */
.page-content { padding: 12rem 2rem 6rem; max-width: 800px; margin: 0 auto; text-align: center; min-height: 70vh; }
.page-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; font-size: 1.1rem; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 500px; margin: 4rem auto 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem; border: 1px solid var(--border-color); background: var(--bg-color);
  font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--text-primary); }
.contact-form button {
  background: var(--text-primary); color: #fff; border: none; padding: 1rem; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; transition: opacity 0.3s;
}
.contact-form button:hover { opacity: 0.8; }

/* Footer */
footer { background-color: var(--bg-color); padding: 6rem 0 3rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; text-align: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--font-body); }
.footer-col p { color: var(--text-secondary); line-height: 2; font-size: 0.9rem; margin: 0; }
.footer-bottom { text-align: center; margin-top: 5rem; color: #999; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

.back-link {
  display: inline-block;
  font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-secondary); margin-bottom: 3rem; border-bottom: 1px solid transparent; transition: all 0.3s;
}
.back-link:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }

@media (max-width: 992px) {
  .split-section, .split-section.reverse { flex-direction: column; }
  .split-image { width: 100%; height: 60vh; }
}
@media (max-width: 768px) {
  .nav-container { padding: 0 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-left { flex: 1; }
  .nav-right .btn-primary { 
    display: inline-block; 
    padding: 0.4rem 0.6rem; 
    font-size: 0.6rem; 
    letter-spacing: 0.05em;
  }
  .logo { font-size: 1.1rem; letter-spacing: 0; white-space: nowrap; }
  .hero-script { font-size: 4rem; }
  .script-title { font-size: 3.5rem; }
  .item-header { flex-direction: column; align-items: flex-start; }
  .item-dots { display: none; }
  .item-price { margin-top: 0.3rem; font-weight: 500; }
  .item-desc { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}
