/* ═══════════════════════════════════════════
   Sonne – Wirtschaft zur Sonne
   Shared Styles
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Palette: dark brown, olive, linen, terracotta */
  --olive: #6E6E42;
  --olive-light: #8A8A5E;
  --olive-glow: rgba(110,110,66,0.1);
  --linen: #E2DCD2;
  --linen-light: #EDE9E2;
  --cream: #F5F2EC;
  --cream-warm: #EBE7DF;
  --brown: #3A2E24;
  --brown-light: #6B5D50;
  --brown-dark: #2A2018;
  --terracotta: #BE6D4E;
  --terracotta-light: #D4917A;
  --white: #FDFCFA;
  --text: #2A2018;
  --text-light: #6B5D50;
  --text-muted: #9A8E82;
  --gold: #C8A84E;
  --border: rgba(58,46,36,0.08);
  --shadow-sm: 0 2px 8px rgba(42,32,24,0.06);
  --shadow-md: 0 6px 24px rgba(42,32,24,0.1);
  --shadow-lg: 0 12px 48px rgba(42,32,24,0.14);
  --radius: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}

a { color: var(--brown); transition: color 0.3s; }
a:hover { color: var(--terracotta); }
img { max-width: 100%; display: block; }

/* ── TOPBAR ── */
.topbar {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a {
  color: var(--linen-light);
  text-decoration: none;
  font-weight: 500;
}
.topbar a:hover { color: var(--terracotta); }

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  padding: 0.3rem 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 1rem 0.8rem;
  text-decoration: none;
  color: var(--brown-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brown); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }


/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; color: var(--brown); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--terracotta);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1.5rem; }
  .nav-links a::after { display: none; }
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.9);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}
.hero-logo {
  width: min(380px, 60vw);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.5)) drop-shadow(0 0 80px rgba(0,0,0,0.3));
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--linen-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
}
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* Page hero (smaller) */
.page-hero {
  height: 40vh;
  min-height: 300px;
  max-height: 500px;
}
.page-hero .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 700;
}
.page-hero .hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SECTIONS ── */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section--narrow { max-width: 760px; }
.section--wide { max-width: 1200px; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--brown);
  font-weight: 600;
}
.section-header .line {
  width: 60px;
  height: 3px;
  background: var(--terracotta);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ── MENU CARD (daily menu) ── */
.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}
.menu-datum {
  text-align: center;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.menu-suppe {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.menu-gericht {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px dotted rgba(0,0,0,0.08);
}
.menu-gericht:last-of-type { border-bottom: none; }
.gericht-info { flex: 1; padding-right: 1rem; }
.gericht-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--brown); font-weight: 600; }
.gericht-beschreibung { font-size: 0.88rem; color: var(--text-light); margin-top: 0.15rem; }
.gericht-preis { font-weight: 600; color: var(--terracotta); font-size: 1.05rem; white-space: nowrap; }
.menu-dessert { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-style: italic; color: var(--text-light); }
.menu-hinweis { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }
.menu-leer { text-align: center; color: var(--text-light); font-style: italic; padding: 2rem 0; }

/* ── SPEISEKARTE (full menu) ── */
.karte-section {
  margin-bottom: 3rem;
}
.karte-section h2 {
  font-size: 1.8rem;
  color: var(--brown);
  font-weight: 700;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}
.karte-section h3 {
  font-size: 1.2rem;
  color: var(--brown-light);
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
}
.karte-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted rgba(0,0,0,0.06);
}
.karte-item:last-child { border-bottom: none; }
.karte-item-info { flex: 1; }
.karte-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.karte-item-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}
.karte-item-prices {
  display: flex;
  gap: 0.8rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}
.karte-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: var(--olive-glow);
  border-radius: var(--radius);
}
.karte-price-legend {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* ── GALERIE ── */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.galerie-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.galerie-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ── KONTAKT GRID ── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 640px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt-info p { margin-bottom: 0.6rem; font-size: 1.05rem; }
.kontakt-info strong { color: var(--brown); }
.kontakt-info a { color: var(--brown); }
.kontakt-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.kontakt-map iframe { width: 100%; height: 320px; border: none; }

/* ── TWO-COL FEATURE ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .feature-row { grid-template-columns: 1fr; } }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-img img { width: 100%; height: auto; }
.feature-text h3 { font-size: 1.6rem; color: var(--brown); margin-bottom: 0.8rem; }
.feature-text p { color: var(--text-light); font-size: 1.05rem; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--brown);
  text-align: center;
  padding: 3rem 1.5rem;
}
.cta-band h2 {
  color: var(--linen-light);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; font-size: 1.05rem; }
.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--terracotta);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  transition: background 0.3s, transform 0.2s;
}
.cta-btn:hover { background: var(--olive); color: var(--white); transform: translateY(-2px); }

/* ── FOOTER ── */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { color: var(--linen-light); font-size: 1rem; margin-bottom: 0.8rem; font-family: 'DM Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-col a:hover { color: var(--linen-light); }
.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--linen-light); text-decoration: none; }

/* ── WEINE TABLE ── */
.wein-header {
  display: grid;
  grid-template-columns: 1fr 60px 60px 80px;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}
.wein-row {
  display: grid;
  grid-template-columns: 1fr 60px 60px 80px;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted rgba(0,0,0,0.06);
  align-items: baseline;
}
.wein-name { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1rem; }
.wein-detail { font-size: 0.82rem; color: var(--text-light); }
.wein-price { font-size: 0.9rem; text-align: right; }

@media (max-width: 600px) {
  .wein-header, .wein-row { grid-template-columns: 1fr 50px 50px 65px; font-size: 0.85rem; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-gold { color: var(--terracotta); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.bg-white { background: var(--white); }

/* ── ANIMATION ── */
.loading-dots::after { content: '...'; animation: dots 1.5s steps(4,end) infinite; }
@keyframes dots { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} }
