/* ═══════════════════════════════════════════════════════════════
   Gelateria Reina — Style
   Patisserie-Look: warmes Creme, fast-schwarzer Text, Gold.
   Mobile first. Keine Scribbles, keine Wellen-Ornamente.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --c-bg:        #FAF6EF;   /* warmes Creme */
  --c-surface:   #FFFFFF;   /* Karten */
  --c-alt:       #F3EDE1;   /* abwechselnde Sections */
  --c-text:      #211A14;   /* fast schwarz, warm */
  --c-muted:     #6E6257;
  --c-gold:      #B08D57;
  --c-gold-deep: #8A6A3A;
  --c-gold-soft: #EDE2CC;
  --c-line:      #E6DCC9;
  --c-open:      #4E7A4E;
  --c-closed:    #A44A3F;

  --f-display: "Fraunces", Georgia, serif;
  --f-body:    "Inter", system-ui, sans-serif;

  --space: 1rem;
  --radius: 14px;
  --tap: 48px;

  --shadow: 0 10px 30px rgba(33, 26, 20, .08);
  --shadow-lg: 0 24px 60px rgba(33, 26, 20, .12);
}

/* ── Reset / Basis ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--c-gold);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.22, .8, .3, 1) .15s;
}
.is-visible .eyebrow::before, .hero .eyebrow::before { transform: scaleX(1); }

.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-alt { background: var(--c-alt); }
.section-head { max-width: 620px; margin-bottom: clamp(2.2rem, 6vw, 3.5rem); }
.section-sub { color: var(--c-muted); margin: 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--c-text);
  color: var(--c-bg);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--c-gold-deep); }
.btn-ghost {
  border-color: var(--c-gold);
  color: var(--c-gold-deep);
  background: transparent;
}
.btn-ghost:hover { background: var(--c-gold-soft); }
.btn-sm { min-height: 42px; padding: .55rem 1.2rem; font-size: .9rem; margin-top: .4rem; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--c-line); }
.header-inner {
  position: relative;
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; margin-right: auto; line-height: 0; }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
@media (min-width: 760px) {
  .logo-img { height: 48px; }
}

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  padding: .6rem 1.25rem 1.2rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav a {
  padding: .85rem .2rem;
  font-weight: 500;
  border-bottom: 1px solid var(--c-line);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--c-gold-deep); }

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--c-gold-deep);
  transition: color .2s ease, transform .2s ease;
}
.header-phone:hover { color: var(--c-gold); transform: scale(1.1); }
.header-phone svg { width: 22px; height: 22px; }

.nav-toggle {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  display: grid; place-content: center; gap: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--c-text);
  transition: transform .25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 760px) {
  .nav {
    position: static;
    flex-direction: row;
    gap: 1.8rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { border: 0; padding: .4rem 0; }
  .nav-toggle { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: calc(56px + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.6rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-muted);
  margin: 0;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-open);
}
.hero-status.is-closed .status-dot { background: var(--c-closed); }

.hero-media { position: relative; }
.hero-arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero-badge {
  position: absolute;
  right: -8px;
  bottom: 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .8rem 1.1rem;
  display: grid;
  gap: .1rem;
  transform: rotate(-2deg);
}
.hero-badge-top { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.hero-badge-bottom { font-size: .78rem; color: var(--c-muted); }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .hero-media { order: 2; }
}

/* ── Vitrine (randlos, Eis an Eis, Schild-Overlays) ─────────── */
/* Mobile first: horizontale Wisch-Reihe pro Kategorie. Die
   Kacheln liegen mit duennem Metall-Spalt aneinander — wie die
   Naepfe in der echten Auslage. */
.vitrine-cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3rem); }
.vitrine-cat { min-width: 0; }        /* Grid-Item darf nicht mit Inhalt wachsen */
.vitrine-cat h3 { margin-bottom: .15rem; }
.vitrine-cat-sub { font-size: .88rem; color: var(--c-muted); margin-bottom: .9rem; }

.vitrine-row {
  display: flex;
  gap: 3px;
  background: #C9BBA6;              /* Metall-Spalt zwischen den Naepfen */
  border: 3px solid #C9BBA6;
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;               /* kein vertikales Mitschieben am Handy */
  touch-action: pan-x;              /* Browser soll nur horizontal wischen */
  /* kein scroll-snap: der Endless-Loop scrollt kontinuierlich */
  /* scroll-behavior muss auto sein — html hat smooth, das wuerde
     die rAF-scrollLeft-Sets in Safari in Smooth-Animationen
     verwandeln, die sich gegenseitig abbrechen. */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: var(--shadow);
}
.vitrine-row::-webkit-scrollbar { display: none; }

.vitrine-card {
  position: relative;
  flex: 0 0 31%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-alt);
}
.vitrine-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform .8s cubic-bezier(.22, .8, .3, 1);
}
.vitrine-card.is-visible img { transform: scale(1); }

/* Schwarzes Laden-Schild — einheitliche Form, Text als Overlay */
.vitrine-sign {
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%) rotate(-1.5deg);
  background: #17110D;
  color: #F5EFE4;
  font-family: var(--f-display);
  font-style: italic;
  font-size: .68rem;
  letter-spacing: .03em;
  padding: .26em .7em .3em;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  white-space: nowrap;
  pointer-events: none;
}
.vitrine-sign::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%);
  width: 2px; height: 7px;
  background: linear-gradient(#A8A8A8, #6E6E6E);
}

/* vegan-Badge dezent in der Ecke */
.vitrine-vegan {
  position: absolute;
  right: 7px; bottom: 7px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3E633E;
  background: rgba(255, 255, 255, .88);
  border-radius: 999px;
  padding: .18rem .5rem;
  pointer-events: none;
}

/* Sorten-Beschreibung unter dem Schild als Tooltip-Ersatz:
   kleine Zeile am unteren Bildrand, dunkel hinterlegt */
.vitrine-desc {
  position: absolute;
  left: 6px; bottom: 6px;
  max-width: 68%;
  font-size: .55rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  pointer-events: none;
}

/* Auf kleinen Karten Beschreibung weglassen — Schild traegt die Info */
@media (max-width: 719px) {
  .vitrine-desc { display: none; }
  .vitrine-vegan { font-size: .5rem; right: 5px; bottom: 5px; padding: .14rem .4rem; }
}

@media (min-width: 720px) {
  /* Desktop: endlose Laufbahn — Karten mit fester Breite nebeneinander,
     der Endless-Loop im JS dupliziert den Inhalt. */
  .vitrine-card { flex: 0 0 215px; }
  .vitrine-sign { font-size: .95rem; }
}

.extras {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  align-items: baseline;
  font-size: .95rem;
  color: var(--c-muted);
}
.extras-label { font-weight: 600; color: var(--c-text); }

/* ── Über uns ───────────────────────────────────────────────── */
.about-grid { display: grid; gap: 2.6rem; align-items: center; }
.about-media { position: relative; max-width: 480px; }
.about-arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
}
.about-arch img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about-accent {
  display: none;
  position: absolute;
  right: -14%;
  bottom: -10%;
  width: 46%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--c-alt);
  box-shadow: var(--shadow-lg);
}
.about-text p { color: var(--c-muted); }
.about-text p:first-of-type { color: var(--c-text); }
.about-highlight {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-gold-deep) !important;
  margin-top: 1.2rem;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .about-accent { display: block; }
}

/* ── Galerie ────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide img { aspect-ratio: 16 / 10; }
.gallery-tall { grid-row: span 2; }
.gallery-tall img { aspect-ratio: 3 / 4; height: 100%; }

@media (min-width: 860px) {
  .gallery { grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
  .gallery-wide { grid-column: 1 / 8; }
  .gallery-tall { grid-column: 8 / 13; grid-row: span 2; }
  .gallery-item:nth-child(3) { grid-column: 1 / 5; }
  .gallery-item:nth-child(4) { grid-column: 5 / 8; }
}

/* ── Kontakt ────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card address { font-style: normal; color: var(--c-muted); margin-bottom: .8rem; }
.contact-link { font-weight: 600; color: var(--c-gold-deep); }
.contact-link:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; margin-bottom: .9rem; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--c-line); font-size: .95rem; }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; color: var(--c-muted); }
.hours tr.is-today td { font-weight: 600; color: var(--c-gold-deep); }
.hours-note { font-size: .85rem; color: var(--c-muted); margin: 0; }
.hours-note a { color: var(--c-gold-deep); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { padding: 3.5rem 0 7rem; border-top: 1px solid var(--c-line); background: var(--c-bg); }
.footer-inner { display: grid; gap: 1.6rem; }
.footer-logo { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; margin: 0; }
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: .6rem;
}
.footer-sub { color: var(--c-muted); font-size: .9rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-nav a { color: var(--c-muted); font-size: .95rem; }
.footer-nav a:hover { color: var(--c-gold-deep); }
.footer-legal { font-size: .82rem; color: var(--c-muted); margin: 0; }
@media (min-width: 860px) {
  .footer { padding-bottom: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ── Mobile Aktionsbalken ───────────────────────────────────── */
.actionbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  gap: .8rem;
}
.actionbar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--tap);
  border-radius: 999px;
  font-weight: 600;
  background: var(--c-text);
  color: var(--c-bg);
}
.actionbar-btn + .actionbar-btn { background: var(--c-gold-soft); color: var(--c-gold-deep); }
.actionbar-btn svg { width: 18px; height: 18px; }
@media (min-width: 860px) { .actionbar { display: none; } }

/* ── Micro-Effects ──────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-7px); }
}
.hero-badge { animation: float 5s ease-in-out infinite; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroImgIn {
  from { opacity: 0; transform: translateX(38px) scale(1.05); }
  to   { opacity: 1; transform: none; }
}
.hero-text > * { animation: heroIn .8s cubic-bezier(.22, .8, .3, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
.hero-text > *:nth-child(5) { animation-delay: .32s; }
.hero-media { animation: heroImgIn 1s .18s cubic-bezier(.22, .8, .3, 1) both; }
.hero-arch img { will-change: transform; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}
.about-highlight {
  background: linear-gradient(100deg,
    var(--c-gold-deep) 40%, #E3C98F 50%, var(--c-gold-deep) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@media (min-width: 760px) {
  .nav a {
    position: relative;
    transition: color .2s ease;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--c-gold);
    transition: right .28s ease;
  }
  .nav a:hover::after { right: 0; }
}

.contact-card { transition: transform .3s ease, box-shadow .3s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.btn-primary, .actionbar-btn { position: relative; overflow: hidden; }
.btn-primary::after, .actionbar-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn-primary:hover::after, .actionbar-btn:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-text > *, .hero-media, .about-highlight { animation: none !important; }
  .about-highlight { -webkit-text-fill-color: currentColor; }
  .eyebrow::before { transform: scaleX(1); transition: none; }
}

/* ── Vitrine: gestaffelter Auftritt der Karten ──────────────── */
.vitrine-card:nth-child(1) { transition-delay: .00s; }
.vitrine-card:nth-child(2) { transition-delay: .06s; }
.vitrine-card:nth-child(3) { transition-delay: .12s; }
.vitrine-card:nth-child(4) { transition-delay: .18s; }
.vitrine-card:nth-child(5) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .vitrine-card { transition-delay: 0s !important; }
  .vitrine-card img, .vitrine-card.is-visible img { transform: none; transition: none; }
}

.gallery-item img { transform: scale(1.08); transition: transform 1.1s cubic-bezier(.22, .8, .3, 1); }
.gallery-item.is-visible img { transform: scale(1); }
.gallery-item:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .gallery-item img, .gallery-item.is-visible img { transform: none; }
}

/* ── Reveal-Animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item img { transition: none; }
}
