/* ==========================================================================
   Café Liebesbrunnen – Creme & Ziegelrot
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #f7f1e8;
  --sand: #efe4d3;
  --card: #fffbf5;
  --brick: #b4432e;
  --brick-dark: #93341f;
  --brick-soft: #f3ddd4;
  --ink: #2a1e18;
  --ink-soft: #6b5a4e;
  --copper: #c98a55;
  --line: rgba(42, 30, 24, .12);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--brick-dark); }
.btn-light:hover { background: #fff; }
.btn-icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 241, 232, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; color: var(--brick); flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: .95;
  letter-spacing: -.02em;
}
.brand-text small {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--brick);
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 .92rem/1 var(--text);
  cursor: pointer;
}
.nav-open .nav-toggle { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */

.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.hero-title {
  font-size: clamp(3.1rem, 8.4vw, 7rem);
  line-height: .92;
  letter-spacing: -.035em;
  font-weight: 760;
  font-stretch: 92%;
  text-wrap: balance;
}
.hero-kicker {
  display: block;
  font-size: .32em;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--brick);
  margin-bottom: .1em;
}
.hero-lead {
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34ch;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-weight: 500;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #a1958b;
  flex: none;
}
.is-open .status-dot { background: #3f9a5c; box-shadow: 0 0 0 4px rgba(63, 154, 92, .18); }
.is-soon .status-dot { background: #d8902f; box-shadow: 0 0 0 4px rgba(216, 144, 47, .2); }

/* Bilderleiste: Desktop als Raster, mobil zum Wischen */
.strip {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.strip-item {
  height: clamp(300px, 34vw, 460px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sektionen ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: 0; }
.section-sand { background: var(--sand); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-soft);
}

/* ---------- Lieblinge ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(42, 30, 24, .45); }
.card figure { aspect-ratio: 4 / 3.4; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--brick);
}
.card-meta svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.card:hover .card-meta svg { transform: translateX(4px); }

/* ---------- Speisekarte ---------- */

.menu-tabs-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  margin: 0 calc(var(--gutter) * -1) 28px;
  padding: 10px var(--gutter);
  background: var(--sand);
}
.menu-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: none;
  scroll-snap-align: start;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 .95rem/1 var(--text);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.menu-tab:hover { border-color: var(--ink); }
.menu-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.menu-panel {
  columns: 2 380px;
  column-gap: 20px;
}
.menu-panel[hidden] { display: none; }
.menu-panel.is-entering { animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

.menu-group {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 26px 28px 14px;
  border-radius: var(--radius);
  background: var(--card);
}
.menu-group h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.menu-group-note {
  margin: 0 0 8px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.menu-group h3 + .menu-item,
.menu-group-note + .menu-item { border-top: 0; }
.menu-item-name { font-weight: 600; font-size: 1.04rem; }
.menu-item-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item-desc {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  vertical-align: 2px;
}
.tag-vegan { background: #e1ecd9; color: #3e6b2c; }
.tag-bio { background: #f1e7cf; color: #7a5a14; }

.topping-list { padding: 4px 0 14px; }
.topping-list h4 {
  margin: 10px 0 10px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.topping-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topping-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand);
  font-size: .9rem;
}

/* ---------- Das Café ---------- */

.cafe {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.cafe-text h2 { margin-bottom: 24px; }
.cafe-text p { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.facts strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.2rem; }

.cafe-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cafe-media figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.cafe-media .cafe-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.cafe-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bewertungen ---------- */

.reviews {
  display: grid;
  grid-template-columns: auto 1fr 240px;
  align-items: center;
  gap: 32px 56px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--brick);
  color: #fff;
  overflow: hidden;
}
.reviews-score { display: flex; align-items: center; gap: 22px; }
.reviews-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5rem, 11vw, 8.5rem);
  line-height: .8;
  letter-spacing: -.05em;
}
.stars { display: flex; gap: 3px; color: #ffd9a0; margin-bottom: 8px; }
.stars svg { width: 26px; height: 26px; }
.reviews-count { font-weight: 500; opacity: .9; }
.reviews-text p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: 24px;
  max-width: 24ch;
}
.reviews-photo {
  align-self: stretch;
  margin: calc(clamp(28px, 5vw, 56px) * -1) calc(clamp(28px, 5vw, 56px) * -1) calc(clamp(28px, 5vw, 56px) * -1) 0;
}
.reviews-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Besuch ---------- */

.visit {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: stretch;
}
.visit h2 { margin-bottom: 20px; }
.visit address {
  font-style: normal;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-bottom: 28px; }
.hours th, .hours td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--brick); }

.map {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(42, 30, 24, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(42, 30, 24, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--card);
  border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.map-consent p { margin: 0 0 6px; }
.map-consent .small { max-width: 30ch; color: var(--ink-soft); margin-bottom: 18px; }
.map-pin { width: 52px; height: 52px; color: var(--brick); margin-bottom: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247, 241, 232, .14);
}
.brand-footer .brand-mark { color: var(--copper); }
.brand-footer .brand-text small { color: var(--copper); }
.footer-tag { margin: 14px 0 0; color: rgba(247, 241, 232, .6); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-cols h3 {
  font-family: var(--text);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--copper);
  margin-bottom: 8px;
}
.footer-cols p { margin: 0; color: rgba(247, 241, 232, .85); }
.footer-cols a { text-decoration-color: rgba(247, 241, 232, .3); text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .9rem;
  color: rgba(247, 241, 232, .55);
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--bg); }

/* ---------- Hinweis-Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-size: .95rem;
  translate: -50% 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, translate .3s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(42, 30, 24, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
  }
  .nav-cta { margin-top: 20px; min-height: 52px; }
  .nav-toggle { display: block; }

  .hero-top { grid-template-columns: 1fr; gap: 20px; }

  /* Bilder zum Wischen, das nächste Bild schaut am Rand hervor */
  .strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip-item {
    flex: 0 0 72%;
    height: 400px;
    scroll-snap-align: start;
  }
  .strip-wide { flex-basis: 86%; }

  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; }
  .card figure { flex: 0 0 36%; aspect-ratio: auto; }
  .card-body { padding: 18px 18px 18px 20px; }
  .card h3 { font-size: 1.3rem; margin-bottom: 4px; }
  .card p { font-size: .92rem; margin-bottom: 10px; }

  .cafe, .visit { grid-template-columns: 1fr; }

  .reviews { grid-template-columns: 1fr; gap: 24px; }
  .reviews-photo { display: none; }

  .map { min-height: 360px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero { padding-top: 28px; }
  .hero-title { font-size: clamp(2.2rem, 12.4vw, 4.4rem); }
  .hero .actions .btn { flex: 1; }
  .strip-item { height: 340px; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .card figure { flex-basis: 34%; }
  .card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  .menu-group { padding: 22px 20px 10px; }
  .menu-group h3 { font-size: 1.35rem; }

  .facts { grid-template-columns: 1fr; }
  .cafe-media { gap: 10px; }

  .reviews { padding: 28px 24px; border-radius: var(--radius); }
  .reviews-score { gap: 16px; }
  .reviews-text .btn { width: 100%; }

  .footer-cols { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
