/* ============================================================
   KRETA GRILL — public/css/styles.css
   Theme: Warm & Rustikal
   ============================================================ */

/* ============================================================
   1. RESET & VARIABLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep:   #0d0806;
  --bg-dark:   #1a0e08;
  --bg-mid:    #221208;
  --bg-card:   #2c1810;
  --border:    #3a2a1a;
  --primary:   #d4913e;
  --primary-d: #b87a30;
  --text:      #f9f3eb;
  --muted:     #c8a07a;
  --subtle:    #a07a5a;
  --radius:    8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-label {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--bg-mid);
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 8, 6, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

#nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}

.nav-logo-name {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-logo-sub {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.85rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* CTA link — suppress the underline pseudo-element */
.nav-links .nav-cta::after {
  display: none;
}

.nav-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--bg-deep) !important;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-d);
  transform: translateY(-1px);
}

/* Burger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13, 8, 6, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: block;
    margin: 8px 24px;
    text-align: center;
    padding: 12px 22px;
  }

  /* Burger open state */
  .nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-burger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ============================================================
   5. HERO
   ============================================================ */
#hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(150deg, #2c1810 0%, #7a3b2e 55%, #d4913e 100%);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212, 145, 62, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(212, 145, 62, 0.4);
  border-radius: 100px;
  color: var(--primary);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

#hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.hero-stars {
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 1px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tag {
  padding: 6px 14px;
  background: rgba(44, 24, 16, 0.6);
  border: 1px solid rgba(212, 145, 62, 0.25);
  border-radius: 100px;
  color: var(--muted);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8rem;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--bg-deep);
  font-family: 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 145, 62, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 2px solid rgba(249, 243, 235, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(249, 243, 235, 0.6);
  transform: translateY(-2px);
}

/* ============================================================
   7. HIGHLIGHTS
   ============================================================ */
#highlights {
  background: var(--bg-dark);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.highlight-item {
  text-align: center;
}

.highlight-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.highlight-item h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}

.highlight-item p {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   8. ABOUT
   ============================================================ */
#about {
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}

.about-image {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

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

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

/* ============================================================
   9. MENU (SPEISEKARTE)
   ============================================================ */
#speisekarte {
  background: var(--bg-mid);
}

.menu-header {
  text-align: center;
  margin-bottom: 40px;
}

.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.menu-tab {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--muted);
  border: 1px solid var(--border);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.menu-tab:hover {
  color: var(--text);
  border-color: var(--primary);
}

.menu-tab.active {
  background: var(--primary);
  color: var(--bg-deep);
  font-weight: 700;
  border-color: var(--primary);
}

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

.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.menu-item-card:hover {
  border-color: var(--primary);
}

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

.menu-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.menu-item-desc {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--subtle);
  line-height: 1.4;
}

.menu-item-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

#menu-empty {
  text-align: center;
  color: var(--subtle);
  padding: 40px;
  display: none;
  grid-column: 1 / -1;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   10. REVIEWS (BEWERTUNGEN)
   ============================================================ */
#bewertungen {
  background: var(--bg-dark);
}

.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}

.reviews-score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.reviews-score-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.reviews-score-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-score-stars {
  color: var(--primary);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.reviews-score-count {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.review-card-stars {
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.review-card-text {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.review-card-date {
  margin-top: 12px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: var(--subtle);
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   11. CONTACT / HOURS (KONTAKT)
   ============================================================ */
#kontakt {
  background: var(--bg-mid);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.hours-table td:last-child {
  text-align: right;
}

.hours-table tr.today td {
  color: var(--primary);
  font-weight: 700;
}

.hours-table .closed {
  color: var(--subtle);
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.contact-item-label {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--primary);
}

.map-wrapper {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 220px;
  background: var(--bg-card);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

/* ============================================================
   12. CTA BANNER
   ============================================================ */
#cta-banner {
  background: linear-gradient(135deg, #7a3b2e 0%, #d4913e 100%);
  padding: 80px 0;
  text-align: center;
}

#cta-banner h2 {
  color: var(--text);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

#cta-banner p {
  color: rgba(249, 243, 235, 0.8);
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  margin-bottom: 30px;
}

#cta-banner .btn-primary {
  background: var(--bg-deep);
  color: var(--primary);
}

#cta-banner .btn-primary:hover {
  background: #1a0e08;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   13. FOOTER
   ============================================================ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 40px;
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Georgia', serif;
  margin-bottom: 10px;
}

.footer-text {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--subtle);
  line-height: 1.8;
}

.footer-text a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: var(--primary);
}

/* ============================================================
   14. SCROLL-TO-TOP BUTTON
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  transform: scale(1.1);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
