/* ---- Fonts ---- */
@font-face {
  font-family: 'WehrliBody';
  src: url('/fonts/wehrli-body.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'WehrliHead';
  src: url('/fonts/wehrli-head.ttf') format('truetype');
  font-display: swap;
}

/* ---- Variables ---- */
:root {
  --creme: #f2ead9;
  --black: #0d0d0d;
  --white: #ffffff;
  --text: #1a1a1a;
  --wine: #7a1a2e;
  --gold: #b8945a;
  --border: #ddd4c0;
  --header-bg: #f2ead9;
  --footer-bg: #A79568;
  --footer-text: #FEFEFE;

  --font-body: 'WehrliBody', Georgia, serif;
  --font-head: 'WehrliHead', Georgia, serif;

  --content-max: 1100px;
  --aside-w: 260px;
  --pad: 2rem;
  --section-gap: 3rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

p + p {
  margin-top: 0.5rem
}

/* ---- Header ---- */
.site-header {
  background: var(--header-bg);
  display: flex;
  justify-content: center;
  padding: 1.25rem var(--pad);
}

.site-header img {
  height: 56px;
  width: auto;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(170deg, #000000 0%, #111111 40%, #000000 70%, #000000 100%);
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.hero-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

#hero-label {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  aspect-ratio: 17 / 6;
}

#hero-label[src=""] {
  visibility: hidden;
}

#hero-line-left {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(50% - 340px);
  height: 100%;
  object-fit: fill;
  z-index: 1;
  padding-bottom: 0.5rem;
}

/* ---- Page Layout ---- */
.layout {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-gap) var(--pad);
  display: grid;
  grid-template-columns: 1fr var(--aside-w);
  gap: var(--pad);
  align-items: start;
}

/* ---- Main ---- */
main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  min-width: 0;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
}

hgroup h1 {
  font-size: 2.75rem;
  color: var(--wine);
}

hgroup p {
  margin-top: 0.4rem;
}

hgroup p em {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-style: normal;
  color: var(--gold);
}

h2 {
  font-size: 1.5rem;
  color: var(--wine);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  color: var(--wine);
  margin-bottom: 0.5rem;
}

h4 {
  font-weight: bold;
  color: var(--wine);
}

section p em {
  color: var(--wine);
  font-style: normal;
  font-weight: bold;
}

/* ---- Wine Facts ---- */
.wine-facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
  row-gap: 0.4rem;
}

.wine-facts dt {
  font-weight: bold;
  color: var(--wine);
}

.wine-facts dd ul {
  list-style: none;
  margin-top: 0.2rem;
}

.wine-facts dd ul li {
  padding-left: 1.1rem;
  position: relative;
}

.wine-facts dd ul li::before {
  content: '–';
  position: absolute;
  left: 0;
}

#bottle-number {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--wine);
}

/* ---- Etikett ---- */
.etikett-beschreibung {
  margin-bottom: 1.5rem;
}

/* ---- Carousel ---- */
.carousel {
  container-type: inline-size;
  position: relative;
}

#label-carousel {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  text-align: center;
}

.carousel-item figure {
  margin: 0 0 1.25rem 0;
}

.carousel-item figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  max-height: 320px;
  max-width: 320px;
  margin: 0 auto;
}

.carousel-item p {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.carousel-item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--creme);
  color: #888;
  font-style: italic;
  padding: 2rem;
}

/* Dots: außerhalb des Tracks, via Container Query ans Bildende positioniert */
.carousel-dots {
  position: absolute;
  top: calc(-2.25rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 0;
  pointer-events: none;
  z-index: 2;
}

.carousel-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  cursor: pointer;
  pointer-events: auto;
}

#label-carousel .carousel-item {
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--wine);
  opacity: 1;
}

/* ---- Making-of photo strip ---- */
#making-of-carousel .carousel-item {
  cursor: pointer;
}

.carousel--photo-strip .carousel-track {
  scroll-snap-type: none;
  height: 280px;
}

.carousel--photo-strip .carousel-item {
  flex: 0 0 auto;
  width: auto;
  height: 280px;
  scroll-snap-align: none;
  text-align: left;
  margin-right: 0.75rem;
}

.carousel--photo-strip .carousel-item:last-child {
  margin-right: 0;
}

.carousel--photo-strip .carousel-item img {
  height: 280px;
  width: auto;
  max-width: none;
  display: block;
}

/* ---- Etikett sub-sections ---- */
.etikett-umsetzung {
  margin-top: 2rem;
}

/* ---- Bottle Aside ---- */
.bottle-aside {
  position: sticky;
  top: 1.5rem;
}

.bottle-aside img {
  width: 100%;
  height: auto;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-col {
  display: flex;
  justify-content: center;
}

.footer-col:first-child {
  justify-content: flex-start;
}

.footer-col:last-child {
  justify-content: flex-end;
}

.footer-col--logo img {
  height: 38px;
  width: auto;
}

.site-footer address {
  font-style: normal;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.footer-contact a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--black);
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .bottle-aside {
    display: none;
  }

  hgroup h1 {
    font-size: 2rem;
  }

  .wine-facts dl {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .wine-facts dt {
    margin-top: 0.75rem;
  }

  .wine-facts dt:first-child {
    margin-top: 0;
  }

  .hero {
  }

  .site-header {
    padding: 1rem;
  }

  .site-header img {
    height: 44px;
  }

  .site-footer {
    padding: 2.5rem 0;
  }

  .site-footer-inner {
    padding: 0 1rem;
  }
}
