/* Updated and cleaned style.css with full mobile tuning, footer alignment, wine text centering */

@font-face {
  font-family: 'Alegreya SC';
  font-weight: 400;
  src: url('../fonts/AlegreyaSC-Regular.woff2') format('woff2'),
       url('../fonts/AlegreyaSC-Regular.woff') format('woff');
}

:root {
  --font-primary: 'Alegreya SC', serif;
  --color-text: #1a1a1a;
  --color-accent: #a42a2a;
  --color-bg: #ffffff;
  --transition-fast: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-accent);
  z-index: 999;
}
nav a {
  margin: 0 20px;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition-fast);
}
nav a:hover { color: var(--color-accent); }

/* INTRO */
#intro .logo {
  height: 17vh;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#intro .logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

#intro .brand {
  height: 18vh;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#intro .brand img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

section {
  width: 100vw;
  height: 100vh;
  padding-top: 45px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* WINES */
.wines-note-top,
.wines-note-bottom p {
  text-align: center;
}

.wines-slider {
  position: relative;
  width: 100%;
  max-width: 90vw;
  height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wines-wrapper {
  display: flex;
  align-items: center;
  overflow-x: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wines-wrapper::-webkit-scrollbar { display: none; }

.wine {
  flex: 0 0 300px;
  max-width: 300px;
  margin: 0 15px;
  text-align: center;
  scroll-snap-align: center;
}
.wine img {
    height: 220px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wine h3,
.wine p {
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000;
}
.wine h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 400;
    color: #000;
    text-align: center;
    margin-top: 0;
    line-height: 1.2;
    min-height: 28px; /* ensures alignment */
}
.wine p { font-size: 0.9rem; }

.wine-title {
  min-height: 55px;       /* enough for 1–2 lines */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.wine-title h3 {
  margin: 0;
  line-height: 1.1;
}
/* ARROWS */
.arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--color-accent);
  z-index: 50
}
.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-accent);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  z-index: 999;
}
.footer-top {
  font-size: 0.9rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.footer-bottom a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--color-accent); }
.footer-instagram img { height: 20px; }



.footer-impressum-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.footer-impr {
  height: 20px;
  cursor: pointer;
}

/* IMPRESSUM BOX — aligned to screen right, bottom flush with footer top */
.footer-impressum-box {
  position: fixed;
  bottom: calc(45px + 1px); /* footer height (45px) + border (1px) */
  right: 0;
  width: 450px;
  padding: 5px;
  border: 1px solid var(--color-accent);
  background: #ffffff;
  display: none;
  z-index: 3000;
  text-align: justify;
  line-height: 1.4;
}

/* hover only for desktop */
.footer-impressum-wrapper:hover .footer-impressum-box {
  display: block;
}
/* mobile tap behaviour */
@media (max-width: 768px) {
  .footer-impressum-box {
    bottom: 60px;                     /* little higher on mobile */
    width: 98vw;                      /* fit small screens */
    right: 0.1vw;                       /* small margin */
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* better centered intro */
  #intro .logo {
    height: 25vh;
    margin-bottom: 14px;
  }
  #intro .brand {
    height: 17vh;
    margin-bottom: 14px;
  }

  /* ensure full wine card visible at start */
.wines-wrapper {
  scroll-snap-type: x mandatory;
  padding-left: 10vw;     /* center first card */
  padding-right: 10vw;    /* center last card */
}

.wine {
  scroll-snap-align: center;
  margin: 0 5vw;          /* reduces overflow */
  flex: 0 0 70vw;         /* reduces width on mobile */
  max-width: 70vw;
}

.wine img {
  max-height: 200px;    /* mobile safe value */
  width: auto;
  object-fit: contain;
}
  /* footer layout stable */
  .footer-bottom { gap: 14px; }
  .footer-bottom a { font-size: 0.85rem; }
}
