/* ==========================================================================
   BÄREN — Café | Bar | Gasthaus, Tübingen
   Stylesheet — Branding 2026
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/caveat-700.woff2') format('woff2');
}

:root {
  --orange: #EC8E31;
  --orange-dark: #CE7620;
  --orange-light: #F4B679;
  --cream: #F3E3D4;
  --cream-light: #FAF4ED;
  --navy: #201652;
  --navy-light: #342A6B;
  --lavender: #8999CD;
  --pink: #F1D1D5;
  --sage: #B3CF9A;
  --ink: #221A3C;
  --white: #FFFFFF;
  --black: #15101F;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-accent: Georgia, 'Times New Roman', serif;

  --container-w: 1180px;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 30px rgba(32, 22, 82, 0.12);
}

* { box-sizing: border-box; }
/* Anchor jumps are handled in JS (instant, with a layout-settle correction),
   so native smooth-scrolling is left off to avoid the two fighting. */

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.3rem; }

p { line-height: 1.7; margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--orange-dark);
  font-weight: 700;
}

.script-accent {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--orange);
  font-size: 1.5em;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(236, 142, 49, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-dark {
  background: var(--navy);
  color: var(--cream-light);
}
.btn-dark:hover { background: var(--navy-light); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-light);
  border-bottom: 1px solid rgba(32,22,82,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-badge img { width: 68%; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 700;
  display: block;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--orange);
  color: var(--white);
}
.main-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,22,82,0.25) 0%, rgba(21,16,31,0.55) 55%, rgba(21,16,31,0.88) 100%);
  z-index: -1;
}
.hero-content {
  padding: 60px 0 70px;
  width: 100%;
}
.hero .eyebrow { color: var(--orange-light); }
.hero h1 { color: var(--white); margin-bottom: 0.2em; }
.hero-tagline {
  font-family: var(--font-script);
  color: var(--orange-light);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1.4em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* small page header for inner pages */
.page-header {
  background: var(--navy);
  color: var(--cream-light);
  padding: 72px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: .3em; }
.page-header p { color: var(--lavender); max-width: 560px; margin: 0 auto; }

/* ---------- Info / promo strip ---------- */
.info-strip {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.info-card h3 { margin-bottom: .4em; color: var(--navy); }
.info-card .tag {
  display: inline-block;
  background: var(--pink);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.info-card.sage .tag { background: var(--sage); }
.info-card.lavender .tag { background: var(--lavender); color: var(--white); }
.info-card.orange .tag { background: var(--orange); color: var(--white); }
.info-card p { margin-bottom: .3em; color: var(--ink); font-size: 0.96rem; }
.info-card .price { font-weight: 700; color: var(--orange-dark); }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 96px 0;
}
.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 440px;
  object-fit: cover;
}
.split-text .btn { margin-top: 8px; }

.section {
  padding: 80px 0;
}
.section.cream { background: var(--cream); }
.section.navy { background: var(--navy); color: var(--cream-light); }
.section.navy h2, .section.navy h3 { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* ---------- Promo banner ---------- */
.promo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.promo-banner img { width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
.promo-banner.poster img { object-fit: contain; height: auto; max-height: none; background: var(--cream); }
.promo-banner.reverse img { order: 2; }
.promo-banner.reverse .promo-banner-text { order: 1; }
.promo-banner-text {
  padding: 48px;
  color: var(--cream-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-banner-text .eyebrow { color: var(--orange-light); }
.promo-banner-text h2 { color: var(--white); }
.promo-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.promo-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.25);
  font-weight: 600;
}
.promo-list li span:last-child { color: var(--orange-light); }

/* ---------- Social strip ---------- */
.social-strip {
  text-align: center;
  padding: 64px 0;
}
.social-strip .follow-count { font-weight: 800; color: var(--orange-dark); }

/* ---------- Menu pages ---------- */
.menu-section { margin-bottom: 64px; }
.menu-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.menu-section-title h2 { margin: 0; white-space: nowrap; }
.menu-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 14px);
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
}
.menu-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(32,22,82,0.1);
}
.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
}
.menu-item-row .dots {
  flex: 1;
  border-bottom: 2px dotted rgba(32,22,82,0.25);
  margin-bottom: 4px;
}
.menu-item-price { color: var(--orange-dark); white-space: nowrap; font-weight: 800;}
.menu-item-desc { font-size: 0.9rem; color: #5b5470; margin-top: 2px; font-style: italic; }
.menu-item-note { font-size: 0.65rem; vertical-align: super; color: var(--orange-dark); }

.menu-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}
.menu-panel.sweet { background: var(--pink); }
.menu-panel.lavender-panel { background: var(--lavender); color: var(--white); }
.menu-panel.lavender-panel .menu-item-row { color: var(--white); }
.menu-panel.lavender-panel .menu-item-row .dots { border-color: rgba(255,255,255,0.4); }
.menu-panel.lavender-panel .menu-item-price { color: var(--cream); }

.menu-legend {
  font-size: 0.8rem;
  color: #5b5470;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 24px;
}

.menu-cta {
  text-align: center;
  padding: 56px 0 0;
}

.menu-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}
.menu-jumpnav a {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}
.menu-jumpnav a:hover { background: var(--orange); color: var(--white); }

.menu-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 72px 0 32px;
  scroll-margin-top: 90px;
}
.menu-divider:first-of-type { margin-top: 0; }
.menu-divider h2 {
  margin: 0;
  white-space: nowrap;
  color: var(--navy);
  font-size: 1.5rem;
}
.menu-divider .eyebrow { display: block; margin-bottom: 2px; }
.menu-divider::after {
  content: '';
  flex: 1;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.menu-divider.wine::after { background: var(--lavender); }
.menu-divider.wine h2 { color: var(--navy); }
.menu-divider.wine .eyebrow { color: #7b6fb0; }

/* ---------- Reservation page ---------- */
.reservation-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.widget-frame {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  min-height: 420px;
}
.widget-placeholder {
  border: 2px dashed var(--orange);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  color: var(--navy);
  background: var(--cream);
}
.reservation-side .info-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.reservation-side h3 { margin-bottom: 10px; }
.reservation-side .hours-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted rgba(32,22,82,0.15); }

/* ---------- Order banner (Wolt) ---------- */
.order-banner {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius);
  padding: 44px 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-soft);
}
.order-banner h3 { color: var(--white); margin-bottom: .2em; }
.order-banner p { color: rgba(255,255,255,0.9); margin: 0; }

/* ---------- Team / about ---------- */
.about-lede {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}
.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.team-card .brand-badge { margin: 0 auto 14px; width: 72px; height: 72px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream-light);
  padding: 70px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--orange-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange-light); }
.footer-brand .brand-word { color: var(--white); }
.footer-brand p { color: var(--lavender); max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--lavender);
}
.footer-bottom a:hover { color: var(--orange-light); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 70px 0 100px; }
.legal-content h2 { margin-top: 1.6em; }
.legal-content p { color: #4a435f; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .promo-banner, .reservation-wrap, .menu-grid { grid-template-columns: 1fr; }
  .split.reverse .split-text, .split.reverse .split-media { order: initial; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-banner img { max-height: 260px; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 68px 0 0 0; background: var(--cream-light); flex-direction: column; align-items: stretch; padding: 16px; gap: 4px; display: none; overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; padding: 14px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-panel { padding: 26px 22px; }
  .order-banner { flex-direction: column; text-align: center; }
}
