/* ============================================================
   fritz von stuwer — Design System
   Crimson + Amber-Cream + Walnut · 70s editorial bar aesthetic
   Logo color: #e00040 (crimson rose)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* ── Surfaces (warm amber-cream, 70s golden hour palette) ── */
  --bg: #efe3c6;
  --bg-soft: #f7efda;
  --bg-sand: #e4d09e;
  --paper: #faf3e2;

  /* ── Ink (warm dark brown, never pure black) ── */
  --ink: #3d2b1a;
  --ink-soft: rgba(61, 43, 26, 0.7);
  --ink-mute: rgba(61, 43, 26, 0.45);
  --ink-faint: rgba(61, 43, 26, 0.25);
  --ink-l: #6b4c30;
  --ink-l-soft: rgba(107, 76, 48, 0.85);

  /* ── Dark surfaces ── */
  --cocoa: #1c1008;
  --cocoa-2: #2a1608;
  --cocoa-surface: #3d2b1a;
  --cream-on-dark: #f5edcf;
  --cream-on-dark-soft: rgba(245, 237, 207, 0.65);
  --cream-on-dark-mute: rgba(245, 237, 207, 0.42);
  --cream-on-dark-faint: rgba(245, 237, 207, 0.16);
  --cream-on-dark-body: rgba(245, 237, 207, 0.84);

  /* ── Crimson accent (logo #e00040) ── */
  --crimson: #e00040;
  --crimson-dark: #b00030;
  --crimson-light: #e85070;
  --crimson-ghost: rgba(224, 0, 64, 0.08);
  --crimson-glow: rgba(224, 0, 64, 0.22);

  /* ── Gold / amber — richer, 70s vintage warmth ── */
  --gold: #c87c10;
  --gold-dark: #9a5c08;
  --gold-ghost: rgba(200, 124, 16, 0.13);
  --gold-glow: rgba(200, 124, 16, 0.3);

  /* ── Star rating (Google amber) ── */
  --star-gold: #f59e0b;
  /* Keep in sync with --star-gold (#f59e0b → rgb 245,158,11); CSS can't derive rgba from a hex var */
  --star-gold-ghost: rgba(245, 158, 11, 0.25);

  /* ── Amber / burnt orange (70s accent) ── */
  --amber: #c4601a;
  --amber-ghost: rgba(196, 96, 26, 0.1);

  --line: rgba(61, 43, 26, 0.12);
  --line-strong: rgba(61, 43, 26, 0.22);
  --line-cream: rgba(245, 220, 170, 0.18);

  /* ── Typography ── */
  --display: 'Rammetto One', 'Playfair Display', Georgia, serif;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Abel', system-ui, -apple-system, sans-serif;

  /* ── Spacing ── */
  --maxw: 1180px;
  --section-pad: 6.5rem;

  /* ── Motion ── */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ── Border radius ── */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 10px;
  --radius-xl: 14px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0.03em;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
figure {
  margin: 0;
}

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

a {
  color: var(--crimson);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--crimson-dark);
}

button {
  font-family: inherit;
}

::selection {
  background: var(--crimson);
  color: var(--cream-on-dark);
}

/* ── Focus-visible (keyboard-only focus ring) ── */
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Skip-to-content (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--crimson);
  color: var(--cream-on-dark);
  font-size: 0.85rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Shadows (warm tinted, never pure black) ── */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(44, 26, 20, 0.06);
}
.shadow-md {
  box-shadow: 0 8px 22px rgba(44, 26, 20, 0.08);
}
.shadow-lg {
  box-shadow: 0 16px 40px rgba(44, 26, 20, 0.1);
}
.shadow-xl {
  box-shadow: 0 24px 56px rgba(44, 26, 20, 0.14);
}

/* ---------- Scroll-reveal ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}

/* ============================================================
   Layout grid + utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

/* ============================================================
   Navigation
   ============================================================ */
.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

#mainNav {
  min-height: 64px;
  background: rgba(254, 251, 246, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(44, 26, 20, 0.07);
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#mainNav.navbar-shrink {
  background: rgba(254, 251, 246, 0.97);
  border-bottom: 1px solid rgba(224, 0, 64, 0.15);
  box-shadow: 0 1px 12px rgba(44, 26, 20, 0.06);
}

.grid-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}

.nav-link {
  display: block;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--crimson);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-bar img {
  height: auto;
  width: auto;
  max-height: 80px;
  max-width: 220px;
  padding: 0.3rem 0;
}

.icons-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.icons-nav a,
.nav-social-icon {
  color: var(--ink-soft);
  font-size: 1.05rem;
  transition: color 0.25s var(--ease);
}

.icons-nav a:hover {
  color: var(--crimson);
}

.navbar-toggler {
  display: none;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
  }
  .grid-nav .collapse-nav {
    justify-self: start;
  }
  .icons-nav {
    justify-self: end;
  }
}

@media (max-width: 991px) {
  .grid-nav {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0 1rem;
  }
  .navbar-toggler {
    display: inline-block;
  }
  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050; /* sit above hero/banner, which paint later in the DOM */
    background: var(--paper);
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(44, 26, 20, 0.08);
  }
  .navbar-collapse.show {
    display: block;
  }
  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }
  .nav-link {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.95rem;
    letter-spacing: 0.16em;
  }
  .nav-link::after {
    display: none;
  }
}

/* ============================================================
   Hero base
   ============================================================ */
.masthead {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

/* ============================================================
   About section (inline-styled in About.astro)
   ============================================================ */
.about-section {
  position: relative;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(200, 124, 16, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--ink);
}
/* ============================================================
   Gallery
   ============================================================ */
.projects-section {
  position: relative;
  padding: 6.5rem 0;
  background: var(--bg-sand);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.6rem;
  display: block;
}

.gallery-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

.gallery__item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  border: 5px solid var(--paper);
  box-shadow: 0 10px 28px rgba(44, 26, 20, 0.12);
}

.gallery__item img,
.gallery__item .gallery__img,
.gallery__item .gallery__img1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

/* subtle pseudo-random rotation — anti-AI imperfection */
.gallery__item:nth-child(2) {
  transform: rotate(0.6deg);
}
.gallery__item:nth-child(4) {
  transform: rotate(-0.5deg);
}
.gallery__item:nth-child(7) {
  transform: rotate(0.4deg);
}
.gallery__item:nth-child(9) {
  transform: rotate(-0.7deg);
}
.gallery__item:nth-child(11) {
  transform: rotate(0.3deg);
}

.gallery__item:hover {
  transform: scale(1.02) rotate(0deg) !important;
  z-index: 2;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item--1 {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery__item--3 {
  grid-column: span 2;
}
.gallery__item--5 {
  grid-column: span 2;
}
.gallery__item--10 {
  grid-row: span 2;
}
.gallery__item--12 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gallery__item--1,
  .gallery__item--3,
  .gallery__item--5,
  .gallery__item--12 {
    grid-column: span 2;
  }
  .gallery__item--1 {
    grid-row: span 2;
  }
}

/* ── Lightbox ── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(30, 16, 11, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s var(--ease);
}

.lb.is-open {
  opacity: 1;
  visibility: visible;
}

.lb img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  border: 6px solid var(--paper);
  box-shadow: 0 30px 80px rgba(44, 26, 20, 0.6);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-spring);
}

.lb.is-open img {
  transform: scale(1);
}

.lb-btn {
  position: absolute;
  background: transparent;
  border: 1px solid var(--line-cream);
  color: var(--cream-on-dark);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.lb-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lb-close {
  top: 1.5rem;
  right: 1.5rem;
}
.lb-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lb-prev {
    left: 0.5rem;
  }
  .lb-next {
    right: 0.5rem;
  }
}

/* ============================================================
   Reservation (homepage section)
   ============================================================ */
/* Reservation section styles are now inline in Reservation.astro */

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--bg-sand);
  color: var(--ink);
  border-top: 1px solid var(--line-strong);
}

/* ── Map ── */
.footer-map-wrap {
  width: 100%;
}

.footer-map {
  position: relative;
  line-height: 0;
  border-bottom: 1px solid rgba(44, 26, 20, 0.1);
}

.footer-map iframe {
  display: block;
  filter: grayscale(0.15) sepia(0.1);
}

/* DSGVO: hide the empty iframe until consent sets its src */
.footer-map iframe.js-gmaps-embed:not([src]),
.footer-map iframe.js-gmaps-embed[src=''] {
  visibility: hidden;
}

.footer-map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  line-height: 1.5;
  background:
    repeating-linear-gradient(45deg, var(--gold-ghost) 0 8px, transparent 8px 16px), var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
}

.footer-map-placeholder svg {
  color: var(--crimson);
  opacity: 0.7;
}

.footer-map-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-map-placeholder a {
  font-size: 0.85rem;
  color: var(--crimson);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-map-placeholder a:hover {
  text-decoration: underline;
}

.footer-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  text-decoration: none;
}

.footer-map:hover .footer-map-overlay {
  opacity: 1;
}

.footer-map-cta {
  background: rgba(44, 26, 20, 0.85);
  color: var(--cream-on-dark);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}

.footer-map-overlay:hover .footer-map-cta {
  background: rgba(44, 26, 20, 0.95);
}

/* ── Main content ── */
.footer-main {
  padding: 5rem 0 0;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-divider {
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(200, 137, 58, 0.3) 40%, transparent);
  align-self: stretch;
  min-height: 120px;
}

/* ── Opening hours ── */
.footer-hours {
  text-align: right;
}

.footer-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.footer-hours-text {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
}

.footer-hours-text em {
  color: var(--crimson);
  font-style: normal;
}

.footer-hours-note {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* ── Contact ── */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-address p {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-address a {
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.footer-address a:hover {
  color: var(--crimson);
}

.footer-neighborhood {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-mute);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.footer-phone-mail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-contact-link {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}

.footer-contact-link:hover {
  color: var(--crimson);
}

/* ── Social ── */
.footer-social {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.95rem;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.3s var(--ease-spring);
}

.footer-social-link:hover {
  color: var(--crimson);
  border-color: var(--crimson);
  transform: translateY(-2px);
}

/* ── Bottom bar ── */
.footer-bottom {
  margin-top: 4.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(44, 26, 20, 0.07);
}

.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-legal {
  display: flex;
  gap: 1.75rem;
}

.footer-legal a,
.footer-legal button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: color 0.25s var(--ease);
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--crimson);
}

/* ── Footer responsive ── */
@media (max-width: 768px) {
  .footer-main {
    padding: 3.5rem 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
    text-align: center;
  }

  .footer-hours {
    text-align: center;
  }

  .footer-divider {
    width: 64px;
    height: 2px;
    min-height: unset;
    justify-self: center;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }

  .footer-contact {
    align-items: center;
  }
  .footer-phone-mail {
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    margin-top: 3rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 0 1.5rem;
  }

  .footer-legal {
    gap: 1.25rem;
  }
  .footer-map iframe {
    height: 200px;
  }
}

/* ============================================================
   Scroll offset for fixed navbar
   ============================================================ */
#about,
#events,
#signup,
#speisekarte,
#anfrage {
  scroll-margin-top: 100px;
}

/* ============================================================
   Responsive: components
   ============================================================ */
