/* ==========================================================================
   Black Bean — The Coffee Company
   Dark Espresso · nach Referenz: dunkles Röstbraun, weiße Serife,
   schwebende Bohnen, große Wasserzeichen-Typo, warme Karamell-Akzente.
   Type: Playfair Display (Display) · Karla (Text/UI)
   ========================================================================== */

:root {
  /* Dark-Espresso-Palette */
  --bg:        #221610;   /* tiefes Röstbraun (Referenz) */
  --bg-2:      #2A1C14;   /* leicht erhöht */
  --surface:   #31221A;   /* Karten */
  --surface-2: #3A2A20;   /* Hover / erhöht */
  --line:      #453427;   /* warme Linie */
  --line-soft: #372820;

  --cream:     #F6EEE3;   /* Haupttext, warmes Weiß */
  --cream-dim: #CBB9A6;   /* Sekundärtext */
  --taupe:     #9A8672;   /* gedämpft */

  --caramel:   #E08A4E;   /* warmer Akzent (Brücke zum Black-Bean-Orange) */
  --caramel-2: #C96F35;
  --gold:      #D9A05B;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22,.61,.25,1);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
}

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

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Animierter Hintergrund: warm wandernde Glut ---- */
body::before {
  content: "";
  position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46rem 34rem at 78% 12%, rgba(224,138,78,.10), transparent 60%),
    radial-gradient(40rem 36rem at 12% 80%, rgba(217,160,91,.07), transparent 60%),
    radial-gradient(52rem 44rem at 30% 10%, rgba(120,66,32,.12), transparent 55%);
  animation: emberDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes emberDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
/* feine Körnung darüber, statisch */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--caramel); color: #221610; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  font-size: .875rem; text-decoration: none; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; color: var(--cream); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

.kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--caramel); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 1.6rem; height: 1px; background: var(--caramel); opacity: .55; }

.lead { color: var(--cream-dim); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 60ch; }

/* ---------- Buttons (Referenz: hell gefüllt + Outline) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.7rem; border-radius: 3px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn-primary {
  background: var(--cream); color: #241812; border: 1px solid var(--cream);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.8);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 18px 36px -16px rgba(0,0,0,.85); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(246,238,227,.35); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(246,238,227,.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 12px 30px -22px rgba(0,0,0,.9); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.6rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 2.2rem; height: 2.2rem; color: var(--caramel); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--cream); line-height: 1; display: flex; flex-direction: column;
}
.brand-sub { font-family: var(--font-sans); font-weight: 600; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); margin-top: .2rem; }

.main-nav ul { display: flex; gap: 1.9rem; list-style: none; }
.main-nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--cream-dim);
  padding-block: .35rem; position: relative; transition: color .2s var(--ease);
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--caramel); transition: right .28s var(--ease); }
.main-nav a:hover { color: var(--cream); }
.main-nav a:hover::after { right: 0; }

.btn-header { padding: .55rem 1.2rem; font-size: .9rem; }

.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; align-items: center; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; padding: 1rem clamp(1.25rem,4vw,2.5rem) 1.5rem; display: grid; gap: .2rem; }
.mobile-nav a { display: block; padding: .8rem 0; text-decoration: none; font-weight: 600; font-size: 1.125rem; color: var(--cream); border-bottom: 1px solid var(--line-soft); }
.mobile-nav .mobile-cta { color: var(--caramel); border-bottom: 0; }

/* ---------- Hero (nach Referenz) ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }

/* riesige Wasserzeichen-Typo, driftet langsam */
.hero-watermark {
  position: absolute; top: 8%; left: 38%; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(8rem, 26vw, 22rem);
  line-height: .9; white-space: nowrap; color: rgba(246,238,227,.035);
  animation: watermarkDrift 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes watermarkDrift { from { transform: translateX(0); } to { transform: translateX(-6%); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.08;
  margin-bottom: 1.3rem; color: var(--cream);
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: var(--caramel); }

.hero-lead { color: var(--cream-dim); max-width: 44ch; margin-bottom: 2rem; font-size: clamp(1rem, 1.4vw, 1.15rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.5rem; }

/* Statistik-Zeile (Referenz) */
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }
.hero-stats .stat { display: grid; gap: .1rem; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--cream); }
.stat-num .star { color: var(--gold); }
.stat-label { font-size: .8rem; color: var(--taupe); letter-spacing: .02em; }

/* Öffnungsstatus */
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9375rem; color: var(--cream); margin-bottom: 1.4rem; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--taupe); box-shadow: 0 0 0 4px rgba(154,134,114,.15); }
.status.is-open .status-dot { background: #6FBF8B; box-shadow: 0 0 0 4px rgba(111,191,139,.15); }
.status.is-closed .status-dot { background: var(--caramel); box-shadow: 0 0 0 4px rgba(224,138,78,.15); }

/* ---- Hero rechts: Tasse (CSS) + schwebende Bohnen ---- */
.hero-visual { position: relative; aspect-ratio: 1/1; width: min(30rem, 100%); margin-inline: auto; }

/* echtes Cappuccino-Foto, weich in den Seitenhintergrund maskiert */
.cup-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0,0,0,.55) 74%, transparent 88%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0,0,0,.55) 74%, transparent 88%);
  filter: saturate(1.04) contrast(1.02);
}
.cup-caption {
  position: absolute; bottom: -1%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--taupe);
  white-space: nowrap;
}

/* Bohnen: stilisierte SVGs, schweben + Parallax via JS */
.bean { position: absolute; width: clamp(34px, 5vw, 56px); color: #7A4A26; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); will-change: transform; }
.bean svg { width: 100%; height: auto; }
.bean-l { color: #8A5630; }
.bean-d { color: #5E371C; }
.b1 { top: -4%;  left: 30%; animation: beanFloat 7.5s ease-in-out infinite; }
.b2 { top: 8%;   right: 4%;  width: clamp(28px,4vw,44px); animation: beanFloat 9s .6s ease-in-out infinite; }
.b3 { top: 30%;  left: -2%;  animation: beanFloat 8s 1.2s ease-in-out infinite; }
.b4 { top: 46%;  right: -3%; width: clamp(30px,4.4vw,48px); animation: beanFloat 7s .3s ease-in-out infinite; }
.b5 { bottom: 6%; left: 8%;  width: clamp(26px,3.8vw,40px); animation: beanFloat 9.5s 1.8s ease-in-out infinite; }
.b6 { top: -8%;  left: 62%;  width: clamp(24px,3.4vw,38px); animation: beanFloat 8.5s .9s ease-in-out infinite; }
@keyframes beanFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-16px) rotate(calc(var(--rot, 0deg) + 7deg)); }
}
.b1 { --rot: -18deg; } .b2 { --rot: 24deg; } .b3 { --rot: 40deg; }
.b4 { --rot: -30deg; } .b5 { --rot: 12deg; } .b6 { --rot: 58deg; }

/* Dampf über der Tasse */
.steam { position: absolute; top: 2%; left: 46%; width: 60px; height: 90px; pointer-events: none; }
.steam i {
  position: absolute; bottom: 0; left: 50%; width: 8px; height: 44px; border-radius: 8px;
  background: linear-gradient(to top, transparent, rgba(246,238,227,.16), transparent);
  filter: blur(5px); opacity: 0;
  animation: steamRise 4.5s ease-in-out infinite;
}
.steam i:nth-child(2) { left: 30%; height: 56px; animation-delay: 1.4s; }
.steam i:nth-child(3) { left: 70%; height: 38px; animation-delay: 2.6s; }
@keyframes steamRise {
  0% { transform: translateY(8px) scaleY(.7); opacity: 0; }
  35% { opacity: .8; }
  100% { transform: translateY(-46px) scaleY(1.15) translateX(6px); opacity: 0; }
}

/* ---------- Platzhalter für Fotos (dunkel, dezent) ---------- */
.ph {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(140deg, #33241A, #2A1C13 65%, #241811);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center; overflow: hidden; color: var(--taupe);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246,238,227,.05) 1px, transparent 1px);
  background-size: 16px 16px;
}
.ph-label {
  position: relative; z-index: 1; font-size: .8125rem; font-weight: 600; letter-spacing: .05em;
  color: var(--cream-dim); background: rgba(34,22,16,.72); padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--line);
}

/* echtes Foto */
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { max-width: 44ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-note { color: var(--taupe); font-size: .95rem; margin-top: .8rem; }

/* ---------- Über uns ---------- */
.section-about { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { align-self: center; min-width: 0; }
.about-media .photo, .about-media .ph { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }
.values { list-style: none; display: grid; gap: 1.1rem; margin: 2rem 0; }
.values li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.values svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--caramel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: .15rem; }
.values strong { display: block; font-size: 1.05rem; color: var(--cream); }
.values span { color: var(--cream-dim); font-size: .95rem; }

.pullquote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.35; color: var(--cream); padding-left: 1.5rem; border-left: 2px solid var(--gold);
  max-width: 34ch;
}
.pullquote cite { display: block; margin-top: .7rem; font-family: var(--font-sans); font-style: normal; font-size: .875rem; color: var(--taupe); }

/* ---------- Menü ---------- */
.section-menu { }
.menu-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem,4vw,4rem) clamp(2rem,5vw,4.5rem); }
.menu-col { display: grid; gap: 2.5rem; align-content: start; }
.menu-group h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: .7rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line);
  color: var(--gold);
}
.menu-group h3 .sizes { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.menu-list { list-style: none; display: grid; gap: .55rem; }
.menu-list li { display: flex; align-items: baseline; gap: .5rem; }
.mi-name { font-weight: 500; color: var(--cream); }
.mi-name em { font-style: normal; display: block; font-size: .8125rem; color: var(--taupe); font-weight: 400; margin-top: .05rem; }
.mi-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.3em); min-width: 1.25rem; }
.mi-price { font-variant-numeric: tabular-nums; color: var(--cream-dim); white-space: nowrap; font-weight: 600; font-size: .95rem; }
.menu-fine { margin-top: .8rem; font-size: .8125rem; color: var(--taupe); }
.menu-fine-accent { color: var(--caramel); font-weight: 500; }

/* ---------- Galerie ---------- */
.section-gallery { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15rem; gap: 1rem; }
.gallery-grid > * { height: 100%; }
.gallery-grid .g1 { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g2 { grid-column: span 2; }

/* ---------- Standort ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.visit-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin: 2rem 0; }
.visit-info dt { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.visit-info dd { color: var(--cream-dim); line-height: 1.5; }
.visit-info a { color: var(--cream); text-underline-offset: 3px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.visit-media { align-self: stretch; display: flex; flex-direction: column; gap: .75rem; }
.map-embed {
  width: 100%; min-height: 22rem; flex: 1; border: 1px solid var(--line);
  border-radius: var(--radius-lg); display: block;
  filter: saturate(.9) brightness(.96);
}
.map-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; font-size: .8125rem; color: var(--taupe); }
.map-cap a { color: var(--gold); text-decoration: none; text-underline-offset: 3px; }
.map-cap a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #1B110C; border-top: 1px solid var(--line-soft); padding-block: clamp(3rem,5vw,4rem) 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-soft); }
.footer-word { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--cream); }
.footer-brand p { margin-top: .8rem; color: var(--taupe); font-size: .95rem; }
.footer-title { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a, .footer-col li { text-decoration: none; color: var(--cream-dim); font-size: .95rem; }
.footer-col a:hover { color: var(--caramel); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; font-size: .8125rem; color: var(--taupe); }

/* ---------- Reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; } [data-reveal].d2 { transition-delay: .16s; } [data-reveal].d3 { transition-delay: .24s; }

/* Hero-Zeilen: Blur-Reveal */
.js .hero-title .line { opacity: 0; transform: translateY(1.1em); filter: blur(8px); transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo), filter .9s var(--ease-out-expo); }
.js .hero-title .line.is-in { opacity: 1; transform: none; filter: blur(0); }
.js .hero-title .line:nth-child(2) { transition-delay: .1s; }
.js .hero-title .line:nth-child(3) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 22rem; margin-top: 1.5rem; }
  .hero-watermark { font-size: clamp(6rem, 30vw, 12rem); left: 10%; top: 46%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .menu-cols { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .btn-header { display: none; }
  .menu-toggle { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 11rem; }
  .gallery-grid .g1 { grid-column: span 2; grid-row: span 1; }
  .gallery-grid .g2 { grid-column: span 2; }
  .visit-info { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { gap: 1.25rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .js .hero-title .line { opacity: 1; transform: none; filter: none; }
  body::before, .hero-watermark, .bean, .cup::before, .steam i { animation: none !important; }
}
