/* ==========================================================================
   Gin&Juice Cocktailbar Osnabrück – Stylesheet (mobile first)
   ========================================================================== */

@font-face {
  font-family: "Birch";
  src: url("../fonts/birch-std.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans";
  src: url("../fonts/source-sans-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1e1f1f;
  --night: #11111c;
  --accent: #42b38e;
  --copper: #b76d18;
  --light: #efefef;
  --white: #fff;

  --font-display: "Birch", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --gutter: 1.5rem;
  --wrap: min(1400px, 100% - 2 * var(--gutter));
  --section-space: clamp(3.25rem, 6vw, 5.5rem);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }

.wrap { width: var(--wrap); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--night);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typografie ---------- */
.title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.3vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: .06em;
}
.lead a { color: var(--copper); }

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.btn {
  display: inline-block;
  padding: .45em 1.1em;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 1.125rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { background: var(--white); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo img { width: 86px; height: auto; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 18px rgba(0, 0, 0, .1);
}
.js .main-nav { display: none; }
.js .main-nav.is-open { display: block; }
/* Ohne JavaScript: Navigation einfach unter dem Logo anzeigen */
.no-js .nav-toggle { display: none; }
@media (max-width: 980px) {
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .main-nav { position: static; flex-basis: 100%; border: 0; box-shadow: none; }
  .no-js .main-nav ul { display: flex; gap: 1.25rem; width: auto; padding: 0 0 .75rem; }
  .no-js .main-nav a { border: 0; padding: .25rem 0; }
}
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: .5rem 0 1rem;
  width: var(--wrap);
}
.main-nav a {
  display: block;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  color: var(--ink);
  font-size: 1.0625rem;
  text-decoration: none;
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a:hover,
.main-nav a[aria-current="true"] { color: var(--accent); }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section-space); }
.section--dark { background: var(--night); color: var(--white); }
.section--light { background: var(--light); }

/* Hero */
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__media img { width: 100%; }

/* Karte / Carousel + Über-uns-Slider (gemeinsame Basis) */
.carousel,
.slider {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.slider { margin-top: 2rem; }
.carousel__track,
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-tap-highlight-color: transparent;
}
.carousel__track { gap: 1.5rem; align-items: start; }
.carousel__track::-webkit-scrollbar,
.slider__track::-webkit-scrollbar { display: none; }
.carousel__slide,
.slider__slide { scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__slide a,
.slider__slide a { display: block; cursor: zoom-in; }
.carousel__slide img { width: 100%; background: var(--white); }
.slider__slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.carousel img,
.slider img { -webkit-user-drag: none; user-select: none; }

/* Maus-Ziehen (per JS): Snap während des Ziehens aus */
.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.is-dragging a { cursor: grabbing; }

/* Steuerleiste: Pfeile + Punkte unter dem Bild */
.ctrls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}
.js .ctrls { display: flex; }
.carousel .ctrls { margin: 0 0 1rem; }   /* Karte: Leiste über den hohen Kartenseiten, damit sie sichtbar ist */
.carousel .ctrls { margin: 0 0 1rem; }   /* Karte: Leiste über den hohen Kartenseiten, damit sie sichtbar ist */
.ctrl {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.ctrl:hover { color: var(--accent); }
.ctrl svg { width: 26px; height: 26px; }
.dots { display: flex; justify-content: center; }
.dots[hidden] { display: none; }
.dots__btn {
  width: 24px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.dots__btn::before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  margin: auto;
  border-radius: 50%;
  background: currentColor;
  opacity: .3;
  transition: opacity .2s, transform .2s;
}
.dots__btn:hover::before { opacity: .6; }
.dots__btn[aria-current="true"]::before { opacity: 1; transform: scale(1.2); }

/* Kontakt */
.map-link { display: block; margin-top: 2rem; max-width: 820px; }
.map-link img { width: 100%; transition: opacity .2s; }
.map-link:hover img { opacity: .9; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--accent); }
.footer__top {
  display: grid;
  gap: 2rem;
  justify-items: start;
}
.footer__logo {
  display: block;
  width: 170px;
  padding: 16px 20px;
  background: var(--white);
}
.footer__logo img { width: 100%; }
.footer__address { margin: 0; font-style: normal; line-height: 1.75; }
.footer__social { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.footer__social svg { width: 34px; height: 34px; }
.footer__bottom {
  display: grid;
  gap: .75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9375rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0;
  padding: 3.5rem 1rem 1rem;
  border: 0;
  background: transparent;
  color: var(--white);
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: rgba(10, 10, 16, .97); }
.lightbox[open] { display: grid; place-items: center; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 4.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-drag: none;
}
/* Hochformatige Kartenseiten: volle Breite, vertikal scrollen statt winzig einpassen */
.lightbox[data-group="karte"] { place-items: start center; overflow-y: auto; }
.lightbox[data-group="karte"] .lightbox__img { width: min(100%, 540px); max-height: none; }

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 28, .7);
  color: var(--white);
  cursor: pointer;
}
.lightbox__close { top: .5rem; right: .5rem; background: none; font-size: 2.25rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); display: none; }
.lightbox--multi .lightbox__nav { display: grid; }
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }
.lightbox__count {
  position: fixed;
  top: .5rem; left: 1rem;
  margin: 0;
  line-height: 44px;
  font-size: .9375rem;
  letter-spacing: .05em;
}

/* ---------- Rechtstexte ---------- */
.legal { max-width: 860px; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.3vw, 3.5rem);
  line-height: 1.2;
}
.legal h2 { margin-top: 2rem; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.25; letter-spacing: .03em; }
.legal h3 { margin-top: 1.75rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: .03em; }
.legal h4 { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.4; letter-spacing: .03em; }
.legal a { color: var(--copper); overflow-wrap: anywhere; }
.legal ul { padding-left: 1.25rem; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  .carousel__track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .lightbox__nav--prev { left: 1.5rem; }
  .lightbox__nav--next { right: 1.5rem; }
}

@media (min-width: 768px) {
  :root { --wrap: min(1400px, 80%); }
  .about__cols { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 981px) {
  :root { --header-h: 96px; }
  .logo img { width: 100px; }

  .nav-toggle { display: none; }
  .main-nav,
  .js .main-nav {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .main-nav ul {
    display: flex;
    gap: 1.6rem;
    width: auto;
    padding: 0;
  }
  .main-nav a { padding: .5rem 0; border: 0; font-size: 1rem; }

  .hero__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .carousel__track { grid-auto-columns: calc((100% - 2 * 2rem) / 3); gap: 2rem; }
}

@media (min-width: 1200px) {
  /* Wie im Original: große Pfeile links/rechts neben der Karte */
  .carousel .ctrl {
    position: absolute;
    top: 50%;
    width: 48px; height: 64px;
    border-radius: 0;
    transform: translateY(-50%);
  }
  .carousel .ctrl svg { width: 40px; height: 40px; }
  .carousel .ctrl--prev { left: -72px; }
  .carousel .ctrl--next { right: -72px; }
}

@media (hover: hover) and (pointer: fine) {
  .carousel__track,
  .slider__track { cursor: grab; }
}
