/* ===================================================================
   PUBLIC WEBSITE CSS - gemeinsame Design-Basis fuer ALLE 9 oeffentlichen
   GastroApp-Seiten (Startseite, Speisekarte, Galerie, Kontakt, Impressum,
   Datenschutz, AGB, plus index.html/about.html).
   Farb-/Schrift-Werte kommen aus frontend/data/design-tokens.json und
   werden von design-apply.js zur Laufzeit als CSS-Variablen gesetzt.
   Die Werte hier im :root sind der statische Fallback (Preset "classic"),
   falls design-apply.js nicht laufen kann (z.B. rein statischer Test ohne
   Backend).
   =================================================================== */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #4d4d4d;
  --primary-light: #f0f0f0;
  --secondary-light: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --bg-white: #ffffff;
  --bg-light: #f7f7f8;
  --nav-bg: #1a1a1a;
  --nav-text: #ffffff;
  --border-color: #dddddd;
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-light);
  margin: 0;
}

/* Gemeinsame Navigation - identisch auf allen 9 oeffentlichen Seiten */
.header {
  background-color: var(--nav-bg);
}

.navbar {
  background-color: var(--nav-bg);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.navbar-logo {
  color: var(--nav-text);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.navbar-link {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.navbar-link:hover,
.navbar-link.active {
  opacity: 1;
  border-bottom-color: var(--nav-text);
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-menu {
    gap: 1rem;
  }
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-light, #f5f7fa) 0%, var(--secondary-light, #ffffff) 100%);
  min-height: 500px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary, #666666);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 400px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About Section */
.about-section {
  padding: 4rem 2rem;
  background-color: var(--bg-white, #ffffff);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary, #666666);
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Highlights Section */
.highlights-section {
  padding: 4rem 2rem;
  background-color: var(--bg-light, #f5f7fa);
}

.highlights-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 3rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-card {
  background: var(--bg-white, #ffffff);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.highlight-icon {
  font-size: 3rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
}

.highlight-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary, #666666);
  margin: 0;
}

/* Hours Section */
.hours-section {
  padding: 4rem 2rem;
  background-color: var(--bg-white, #ffffff);
}

.hours-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 3rem;
}

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

.hours-info {
  background-color: var(--bg-light, #f5f7fa);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border-left: 4px solid var(--primary-color, #4CAF50);
}

.hours-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 1rem;
}

.hours-info p {
  font-size: 1rem;
  color: var(--text-secondary, #666666);
  line-height: 1.8;
  margin: 0.5rem 0;
}

.hours-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary, #666666);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Call to Action Section */
.cta-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color, #4CAF50) 0%, var(--secondary-color, #45a049) 100%);
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  display: inline-block;
}

/* Navigation Section */
.nav-section {
  padding: 3rem 2rem;
  background-color: var(--bg-light, #f5f7fa);
  text-align: center;
}

.nav-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 2rem;
}

.nav-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links-list li {
  display: inline;
}

.nav-links-list a {
  color: var(--text-primary, #1a1a1a);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-links-list a:hover {
  background-color: var(--primary-color, #4CAF50);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image {
    min-height: 300px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-image {
    height: 300px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlight-card {
    padding: 1.5rem;
  }

  .highlights-section h2,
  .hours-section h2,
  .cta-section h2 {
    font-size: 1.5rem;
  }

  .hours-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section {
    padding: 2.5rem 1rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .nav-links-list {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links-list a {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-section,
  .highlights-section,
  .hours-section,
  .cta-section {
    padding: 1.5rem 1rem;
  }

  .about-text h2 {
    font-size: 1.25rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-image {
    height: 250px;
  }

  .highlight-card {
    padding: 1rem;
  }

  .highlight-icon {
    font-size: 2.5rem;
    height: 3rem;
  }

  .highlight-card h3 {
    font-size: 1.1rem;
  }

  .highlight-card p {
    font-size: 0.9rem;
  }

  .hours-info {
    padding: 1.5rem;
  }

  .hours-info h3 {
    font-size: 1rem;
  }

  .hours-note {
    font-size: 0.85rem;
  }

  .nav-section h3 {
    font-size: 1.2rem;
  }
}

/* Footer - gemeinsam auf Startseite, Galerie, Kontakt (Fund 2026-07-13:
   Markup existierte bereits auf allen drei Seiten, aber ohne jede CSS-Regel
   - erschien dadurch als roher, unformatierter Listenblock am Seitenende). */
.footer {
  background-color: var(--nav-bg);
  color: var(--nav-text);
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--nav-text);
}

.footer-section p {
  color: var(--nav-text);
  opacity: 0.75;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.4rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--nav-text);
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 1.2rem 1.5rem;
}

.footer-bottom p {
  color: var(--nav-text);
  opacity: 0.6;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .hero-buttons,
  .cta-section .btn,
  .nav-section {
    display: none;
  }

  .hero-section,
  .about-section,
  .highlights-section,
  .hours-section {
    page-break-inside: avoid;
  }
}