/* ============================================
   Joel's Café & Co. — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --sage: #9FBAA9;
  --sage-dark: #87a391;
  --brown: #736052;
  --brown-dark: #5d4e42;
  --white: #ffffff;
  --off-white: #f9f6f3;
  --light-sage: #edf3ef;
  --text: #736052;
  --text-light: #9a8878;
  --shadow-sm: 0 2px 8px rgba(115, 96, 82, 0.10);
  --shadow-md: 0 4px 20px rgba(115, 96, 82, 0.14);
  --shadow-lg: 0 8px 40px rgba(115, 96, 82, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brown);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--off-white);
}

.section--sage {
  background: var(--light-sage);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sage);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: none;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--brown);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--sage);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
}

.btn--outline:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============ HEADER / NAV ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(159, 186, 169, 0.25);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--brown);
  font-weight: 700;
  line-height: 1.2;
}

.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brown);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--sage);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav__link:hover { color: var(--sage-dark); }
.nav__link:hover::after { width: 100%; }

.nav__link.active { color: var(--sage-dark); }
.nav__link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  border-top: 1px solid var(--light-sage);
}

.mobile-nav.open { display: block; }

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  border-bottom: 1px solid var(--light-sage);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.mobile-nav__link:hover { color: var(--sage); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,255,255,0.18) 0%, transparent 65%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__logo {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 16px rgba(115, 96, 82, 0.25));
  animation: fadeInDown 0.8s ease both;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 10px;
  animation: fadeInUp 0.8s 0.2s ease both;
  text-shadow: 0 2px 12px rgba(115, 96, 82, 0.25);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.35s ease both;
}

.hero__cta {
  animation: fadeInUp 0.8s 0.5s ease both;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--hero-contact {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--hero-contact:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero .btn--primary {
  background: var(--brown);
  box-shadow: 0 4px 20px rgba(115, 96, 82, 0.35);
  font-size: 0.95rem;
}

.hero .btn--primary:hover {
  background: var(--brown-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(115, 96, 82, 0.4);
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__text h2 {
  margin-bottom: 20px;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light-sage);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__placeholder-text {
  text-align: center;
  color: var(--sage-dark);
  font-size: 0.9rem;
  padding: 24px;
}

.about__placeholder-text svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  opacity: 0.5;
}

/* ============ GALLERY SLIDER ============ */
.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light-sage);
}

.gallery__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gallery__slide.active {
  opacity: 1;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brown);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.gallery__btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }

.gallery__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.gallery__dot.active {
  background: var(--white);
  transform: scale(1.25);
}

.gallery__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ============ MENU ============ */
.menu__tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.menu__tab {
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--white);
  border: 2px solid var(--sage);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.menu__tab:hover,
.menu__tab.active {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.menu__panel { display: none; }
.menu__panel.active { display: block; }

.menu__category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 8px;
  text-align: center;
}

.menu__category-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 28px;
  font-style: italic;
}

.menu__table {
  width: 100%;
  border-collapse: collapse;
  max-width: 680px;
  margin: 0 auto 16px;
}

.menu__table tr:nth-child(even) {
  background: var(--off-white);
}

.menu__table tr {
  transition: background var(--transition);
}

.menu__table tr:hover {
  background: var(--light-sage);
}

.menu__table td {
  padding: 13px 20px;
  border-radius: 0;
  font-size: 0.97rem;
}

.menu__table td:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.menu__table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--brown);
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}

.menu__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 560px;
  margin: 8px auto 0;
}

/* ============ REVIEWS ============ */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-card__stars {
  display: flex;
  gap: 4px;
  color: #f5b942;
  font-size: 1.2rem;
}

.review-card__quote {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
}

.review-card__author {
  font-weight: 700;
  color: var(--brown);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ============ HOURS ============ */
.hours__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.hours__icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hours__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-sage);
  font-size: 1rem;
}

.hours__row:last-child { border-bottom: none; }

.hours__day {
  font-weight: 700;
  color: var(--brown);
}

.hours__time {
  color: var(--text-light);
}

.hours__note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============ INSTAGRAM ============ */
.instagram {
  background: var(--sage);
  text-align: center;
  padding: 72px 24px;
}

.instagram .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instagram h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.instagram p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.instagram .btn {
  background: var(--brown);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.instagram .btn:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
}

.instagram .btn svg {
  width: 20px;
  height: 20px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 50px;
  width: auto;
}

.footer__logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.footer__tagline {
  font-size: 0.88rem;
  opacity: 0.7;
  font-style: italic;
  margin-bottom: 16px;
}

.footer__address {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.footer__contact-item a:hover {
  color: var(--sage);
}

.footer__contact-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer__nav-link:hover { color: var(--sage); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  opacity: 0.65;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  color: inherit;
  transition: opacity var(--transition);
}

.footer__legal a:hover { opacity: 1; color: var(--sage); }

/* ============ KONTAKT PAGE ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact__info-card h2 {
  margin-bottom: 28px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-sage);
}

.contact__detail:last-child { border-bottom: none; }

.contact__detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 4px;
}

.contact__detail-value {
  font-size: 1rem;
  color: var(--text);
}

.contact__detail-value a {
  color: var(--brown);
  font-weight: 700;
  transition: color var(--transition);
}

.contact__detail-value a:hover { color: var(--sage-dark); }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  background: var(--light-sage);
}

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

/* ============ IMPRESSUM / DATENSCHUTZ ============ */
.legal-page {
  padding: calc(var(--header-height) + 60px) 0 80px;
}

.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page__inner h1 {
  margin-bottom: 12px;
}

.legal-page__intro {
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

.legal-block {
  margin-bottom: 40px;
}

.legal-block h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-sage);
}

.legal-block p,
.legal-block ul {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.legal-block ul {
  list-style: disc;
  padding-left: 24px;
}

.legal-block ul li { margin-bottom: 6px; }

.legal-block a {
  color: var(--brown);
  text-decoration: underline;
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background: var(--sage);
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(115, 96, 82, 0.2);
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__image {
    order: -1;
    max-height: 280px;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > *:first-child {
    grid-column: 1 / -1;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .section { padding: 60px 0; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hours__card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .menu__tabs {
    gap: 8px;
  }

  .menu__tab {
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .menu__table td {
    padding: 11px 12px;
    font-size: 0.9rem;
  }

  .review-card {
    padding: 24px 20px;
  }
}
