/* Bacchus Shared Stylesheet — Core Layout, Header, Footer, FAB, Drawer, Buttons */

:root {
  --bg: #faf7f2;
  --bg-warm: #f3ede3;
  --ink: #1a1410;
  --ink-soft: #4a3f37;
  --muted: #847568;
  --line: rgba(26, 20, 16, 0.08);
  --burgundy: #6b1d2c;
  --burgundy-deep: #4a1320;
  --gold: #b8935a;
  --gold-soft: #d4b88a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-elegant: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Anchor-Sprünge landen unter der fixed Navbar (Mobile ~76–88px, Desktop ~110px) */
  scroll-padding-top: 110px;
}
/* Globaler Offset für interne Sektions-Anchor (id auf section/div/article) */
section[id], div[id].anchor-target, article[id].anchor-target { scroll-margin-top: 110px; }
@media (max-width: 720px) {
  html { scroll-padding-top: 96px; }
  section[id], div[id].anchor-target, article[id].anchor-target { scroll-margin-top: 96px; }
}
body {
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; inset: 16px 16px auto 16px; z-index: 50;
  padding: 14px 20px;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: var(--container); margin: 0 auto; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.65; margin-top: 3px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-soft); transition: color 200ms var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--burgundy); }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  transition: transform 160ms var(--ease-out-strong), background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--burgundy); color: var(--bg); }
.btn-primary:hover { background: var(--burgundy-deep); box-shadow: 0 8px 24px -8px rgba(107, 29, 44, 0.4); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); background: rgba(26, 20, 16, 0.03); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* ---------- PAGE HEAD ---------- */
.page-head {
  padding: 160px 0 60px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.page-head .container { display: grid; gap: 20px; }
.breadcrumb { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.breadcrumb a { color: var(--burgundy); }
.breadcrumb a:hover { text-decoration: underline; }
.page-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink); max-width: 18ch;
}
.page-head h1 em { font-style: italic; color: var(--burgundy); }
.page-head p { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

/* ---------- FOOTER ---------- */
footer.foot { background: var(--ink); color: rgba(250, 247, 242, 0.7); padding: 64px 0 32px; font-size: 14px; }
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(250, 247, 242, 0.08); }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; gap: 32px; } }
.foot-brand { font-family: var(--serif); font-size: 24px; color: var(--bg); margin-bottom: 12px; }
.foot-col h4 { font-size: 11px; letter-spacing: 0.18em; color: var(--bg); margin-bottom: 16px; font-weight: 600; text-transform: uppercase; }
.foot-col a { display: block; margin-bottom: 8px; color: rgba(250, 247, 242, 0.6); transition: color 200ms var(--ease); }
.foot-col a:hover { color: var(--bg); }
.foot-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(250, 247, 242, 0.5); }

/* ---------- MOBILE NAV ---------- */
.nav-toggle {
  display: none; width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: rgba(26, 20, 16, 0.04);
  border: 1px solid var(--line); color: var(--ink);
  align-items: center; justify-content: center;
  transition: background 200ms var(--ease), transform 160ms var(--ease-out-strong);
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle svg line { transition: transform 360ms var(--ease-elegant), opacity 200ms var(--ease); transform-origin: center; }
.nav-toggle[aria-expanded="true"] svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] svg line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 880px) { .nav-toggle { display: inline-flex; } }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink); color: var(--bg);
  padding: 80px 32px 32px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform 460ms var(--ease-elegant), opacity 300ms var(--ease), visibility 0s linear 460ms;
}
.mobile-drawer[data-open="true"] {
  transform: translateY(0); opacity: 1; visibility: visible;
  transition: transform 460ms var(--ease-elegant), opacity 220ms var(--ease), visibility 0s linear 0s;
}
.mobile-drawer-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: rgba(250, 247, 242, 0.06); color: var(--bg);
  display: grid; place-items: center;
  transition: transform 160ms var(--ease-out-strong);
}
.mobile-drawer-close:active { transform: scale(0.94); }
.mobile-drawer-brand { font-family: var(--serif); font-size: 24px; color: var(--gold-soft); margin-bottom: 8px; }
.mobile-nav { list-style: none; display: grid; gap: 4px; }
.mobile-nav a {
  display: block; padding: 16px 0;
  font-family: var(--serif); font-size: 28px; color: var(--bg);
  border-bottom: 1px solid rgba(250, 247, 242, 0.08);
  opacity: 0; transform: translateY(8px);
  transition: opacity 400ms var(--ease-elegant), transform 400ms var(--ease-elegant), color 200ms var(--ease);
}
.mobile-drawer[data-open="true"] .mobile-nav a { opacity: 1; transform: translateY(0); }
.mobile-drawer[data-open="true"] .mobile-nav a:nth-child(1) { transition-delay: 120ms; }
.mobile-drawer[data-open="true"] .mobile-nav a:nth-child(2) { transition-delay: 170ms; }
.mobile-drawer[data-open="true"] .mobile-nav a:nth-child(3) { transition-delay: 220ms; }
.mobile-drawer[data-open="true"] .mobile-nav a:nth-child(4) { transition-delay: 270ms; }
.mobile-drawer[data-open="true"] .mobile-nav a:nth-child(5) { transition-delay: 320ms; }
.mobile-drawer[data-open="true"] .mobile-nav a:nth-child(6) { transition-delay: 370ms; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold-soft); }
.mobile-drawer-foot {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  display: grid; gap: 8px; font-size: 14px; color: rgba(250, 247, 242, 0.6);
}
.mobile-drawer-foot a { color: var(--gold-soft); font-family: var(--serif); font-size: 22px; }
body[data-drawer="open"] { overflow: hidden; }

/* ---------- FAB ---------- */
.fab-wrap {
  position: fixed; bottom: 28px; right: 28px; z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 14px; pointer-events: none;
}
.fab-wrap > * { pointer-events: auto; }
.fab-action {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); color: var(--ink);
  padding: 10px 24px 10px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 40px -18px rgba(26, 20, 16, 0.32), 0 4px 12px -4px rgba(26, 20, 16, 0.08);
  text-decoration: none;
  opacity: 0; transform: translateY(12px) scale(0.94); pointer-events: none;
  transition: opacity 320ms var(--ease-elegant), transform 320ms var(--ease-elegant), box-shadow 220ms var(--ease);
  min-width: 220px;
}
.fab-wrap[data-open="true"] .fab-action { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-wrap[data-open="true"] .fab-action:nth-child(1) { transition-delay: 60ms; }
.fab-wrap[data-open="true"] .fab-action:nth-child(2) { transition-delay: 130ms; }
.fab-action:hover { transform: translateY(-2px) scale(1); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 50px -20px rgba(26, 20, 16, 0.4), 0 6px 16px -4px rgba(26, 20, 16, 0.12); }
.fab-action:active { transform: scale(0.97); transition: transform 120ms var(--ease-out-strong); }
.fab-action .ico {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.fab-action.call .ico { background: linear-gradient(140deg, #7a2433 0%, #4a1320 100%); color: var(--bg); }
.fab-action.mail .ico { background: linear-gradient(140deg, #d4b88a 0%, #b8935a 100%); color: var(--burgundy-deep); }
.fab-action .label-stack { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.fab-action .label-stack .top { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fab-action .label-stack .main { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.fab-action.mail .label-stack .top { color: var(--gold); }

.fab-trigger {
  width: 68px; height: 68px; border-radius: var(--r-pill);
  color: var(--bg);
  display: grid; place-items: center;
  background: linear-gradient(140deg, #7a2433 0%, #5a1827 60%, #4a1320 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 18px 40px -12px rgba(74, 19, 32, 0.55), 0 4px 12px -2px rgba(74, 19, 32, 0.3);
  transition: transform 220ms var(--ease-elegant), box-shadow 300ms var(--ease);
  position: relative; border: none; cursor: pointer; overflow: visible;
}
.fab-trigger .status { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #4ade80; border: 2px solid var(--bg); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); animation: fabStatusPulse 2.6s var(--ease) infinite; z-index: 2; }
@keyframes fabStatusPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); } 60% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
.fab-wrap[data-open="false"] .fab-trigger::before, .fab-wrap[data-open="false"] .fab-trigger::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-pill);
  border: 2px solid rgba(184, 147, 90, 0.6); pointer-events: none;
  animation: fabRing 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.fab-wrap[data-open="false"] .fab-trigger::after { animation-delay: 1.4s; }
@keyframes fabRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.fab-trigger:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.22), 0 24px 50px -12px rgba(74, 19, 32, 0.65), 0 6px 16px -2px rgba(74, 19, 32, 0.35); }
.fab-trigger:active { transform: translateY(0) scale(0.95); }
.fab-trigger .icon-stack { position: relative; width: 26px; height: 26px; }
.fab-trigger .icon-stack svg { position: absolute; inset: 0; transition: opacity 260ms var(--ease), transform 360ms var(--ease-elegant); }
.fab-trigger .icon-phone { transform-origin: center; animation: fabPhoneWiggle 4s var(--ease) infinite; }
@keyframes fabPhoneWiggle {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); }
  92% { transform: rotate(-8deg); } 94% { transform: rotate(6deg); } 96% { transform: rotate(-3deg); }
}
.fab-trigger .icon-close { opacity: 0; transform: rotate(-90deg); }
.fab-wrap[data-open="true"] .fab-trigger { background: linear-gradient(140deg, #2a221c 0%, #1a1410 100%); }
.fab-wrap[data-open="true"] .fab-trigger .icon-phone { opacity: 0; transform: rotate(90deg); animation: none; }
.fab-wrap[data-open="true"] .fab-trigger .icon-close { opacity: 1; transform: rotate(0); }
.fab-wrap[data-open="true"] .fab-trigger .status { opacity: 0; }

@media (max-width: 720px) {
  .fab-wrap { bottom: 16px; right: 16px; }
  .site-header { inset: 12px 12px auto 12px; padding: 10px 14px; }
  .container { padding: 0 18px; }
  .page-head { padding: 130px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .fab-trigger::before, .fab-trigger::after, .fab-trigger .icon-phone, .fab-trigger .status { animation: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- MAP CONSENT ---------- */
.map-consent {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--bg-warm) 0%, #ebe3d4 100%);
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px -24px rgba(26, 20, 16, 0.22);
}
.map-consent[data-map-loaded="true"] { background: none; }
.map-consent-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 0;
}
.map-consent-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 500;
}
.map-consent-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto 20px;
}
.map-consent-text a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
.map-consent-btn { padding: 14px 24px; font-size: 13px; }
.map-consent-alt {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.map-consent-alt:hover { color: var(--ink); }
.map-consent iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}
@media (max-width: 720px) {
  .map-consent-placeholder { padding: 24px; }
}
