:root {
  color-scheme: light;
  --navy: #142b43;
  --night: #102237;
  --blue: #1e5687;
  --muted: #486075;
  --line: #cad7e3;
  --ice: #e3edf5;
  --paper: #f5f7fa;
  --white: #fff;
  --title: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --inset: clamp(1.125rem, 4.5vw, 3.75rem);
  --section: clamp(3.5rem, 8vw, 7rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 1rem/1.6 var(--body);
}
body:has(.photo-dialog[open]) { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a, button):focus-visible {
  outline: 3px solid #4d92c2;
  outline-offset: 4px;
}
:where(main section, footer)[id] { scroll-margin-top: 1.5rem; }
img, svg { display: block; max-width: 100%; }
:where(figure, h1, h2, h3, p, dl, dd) { margin: 0; }
h1, h2 { font-family: var(--title); font-weight: 400; line-height: .98; }
h2 { font-size: clamp(2.65rem, 5.5vw, 4.75rem); letter-spacing: -.024em; }
h3 { line-height: 1.3; font-size: 1.14rem; }
address { font-style: normal; }
.container { width: min(100%, 91rem); margin-inline: auto; padding-inline: var(--inset); }
.skip-link {
  position: fixed;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  transform: translateY(-170%);
  background: var(--white);
  padding: .65rem .9rem;
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.1rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  text-decoration: none;
  line-height: 1;
}
.wordmark span { font: 400 2.6rem/.96 var(--title); }
.wordmark small {
  margin-top: .37rem;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.primary-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.4vw, 2.4rem); }
.primary-nav a {
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.primary-nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.primary-nav a:last-child {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(.85rem, 2vw, 1.65rem);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: .5rem .85rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  margin-top: clamp(1.25rem, 4vw, 3.25rem);
}
.hero-copy {
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--white);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-copy h1 { font-size: clamp(5rem, 9.1vw, 9.2rem); letter-spacing: -.035em; line-height: .79; }
.hero-copy h1 em { display: inline-block; padding-top: .13em; color: #c5dcec; }
.hero-copy > p { max-width: 28rem; margin-top: 1.8rem; color: #dfebf5; font-size: clamp(1rem, 1.34vw, 1.17rem); }
.hero-facts {
  width: 100%;
  display: flex;
  gap: .75rem clamp(1.1rem, 4vw, 2.6rem);
  flex-wrap: wrap;
  margin-top: 1.55rem;
  padding-block: .9rem;
  border-block: 1px solid #52687e;
}
.hero-facts dt { color: #c5dcec; font-size: .82rem; }
.hero-facts dd { font-size: 1rem; font-weight: 700; }
.ean { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: .035em; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: none;
  padding: .62rem 1.05rem;
  border: 1px solid transparent;
}
.button-light { color: var(--navy); background: var(--white); }
.button-light:hover { background: #d8e9f6; }
.hero-copy .button { margin-top: 1.5rem; }
.button-outline { background: var(--white); border-color: var(--line); }
.button-outline:hover { border-color: var(--blue); background: var(--ice); }

.product-viewer {
  display: grid;
  align-content: end;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-left-width: 0;
}
.product-stage {
  display: grid;
  min-height: clamp(26rem, 38vw, 34rem);
  position: relative;
  align-items: center;
  justify-items: center;
  padding: 1.1rem 2.2rem;
  cursor: zoom-in;
}
.product-stage img {
  width: min(100%, 32rem);
  height: clamp(23rem, 34vw, 31rem);
  object-fit: contain;
}
.zoom-trigger {
  position: absolute;
  right: 1rem;
  bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .55rem;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  font-size: .8rem;
  font-weight: 600;
}
.zoom-trigger span { font-size: 1rem; font-weight: 700; line-height: 1; }
.view-controls { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.view-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 0;
  min-height: 4.2rem;
  border: 0;
  border-top: 3px solid transparent;
  padding: .35rem .45rem .55rem;
  background: var(--white);
  font-size: .87rem;
  font-weight: 600;
}
.view-option + .view-option { border-left: 1px solid var(--line); }
.view-option img { width: 2.5rem; height: 2.8rem; object-fit: contain; }
.view-option[aria-pressed="true"] { border-top-color: var(--blue); background: var(--ice); }
.view-option[aria-pressed="true"] img { mix-blend-mode: multiply; }
.view-option:hover { background: var(--paper); }
.view-option[aria-pressed="true"]:hover { background: var(--ice); }

.photo-section, .recipe-section, .data-section, .assortment-section { padding-block: var(--section); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}
.section-heading p { color: var(--muted); max-width: 23rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.75rem); }
.photo-link { display: block; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.photo-link img {
  width: 100%;
  height: clamp(15rem, 29vw, 25rem);
  padding: .85rem;
  object-fit: contain;
}
.photo-link span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .3rem;
  border-top: 1px solid var(--line);
  padding: .8rem 1rem;
  font-weight: 700;
}
.photo-link b { color: var(--blue); font-size: 1.2rem; font-weight: 500; }
.photo-link:hover { border-color: var(--blue); }

.place-band { background: var(--ice); }
.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.6rem, 6.5vw, 6.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5.2vw, 4.5rem);
}
.place-photo img {
  width: 100%;
  height: clamp(22rem, 44vw, 39rem);
  object-fit: cover;
  object-position: center 63%;
}
.place-photo figcaption {
  color: #3b5268;
  font-size: .8rem;
  margin-top: .65rem;
}
.place-copy h2 { font-size: clamp(2.75rem, 5.8vw, 5.7rem); }
.place-copy p { margin-top: 1.3rem; max-width: 25rem; color: var(--muted); }
.place-copy address {
  border-top: 1px solid #b2c6d8;
  padding-top: 1.1rem;
  margin-top: 1.1rem;
  line-height: 1.55;
}
.text-link {
  display: inline-block;
  margin-top: .9rem;
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: .19em;
}

.recipe-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, .7fr) minmax(0, 2fr);
  gap: .5rem 2rem;
  border-top: 1px solid var(--line);
  padding-block: 1.35rem;
}
.recipe-list > div:last-child { border-bottom: 1px solid var(--line); }
.recipe-list dt { color: var(--blue); font-weight: 700; }
.recipe-list dd p { margin-top: .35rem; color: var(--muted); max-width: 52rem; }

.data-band { background: var(--ice); }
.data-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.55fr); gap: 1rem; }
.data-layout.details { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.data-panel, .barcode-panel { padding: clamp(1.1rem, 2.8vw, 2.5rem); }
.data-panel { background: var(--white); border: 1px solid var(--line); }
.data-panel h3 { margin-bottom: .85rem; }
.barcode-panel {
  color: var(--white);
  background: var(--navy);
  min-width: 0;
}
.barcode-panel .button { margin-top: 1.05rem; color: var(--navy); }
.barcode-number {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  margin-block: .25rem 1rem;
}
#eanBarcodeSvg { width: min(100%, 20rem); background: var(--white); }
.copy-status { min-height: 1.5em; color: #d5e5f7; margin-top: .55rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
:where(th, td) { border-bottom: 1px solid var(--line); padding: .54rem 0; text-align: left; vertical-align: top; }
th { font-weight: 700; }
td { padding-left: .9rem; }
thead th { color: var(--blue); }
.nutrition-table :where(th, td):last-child { text-align: right; white-space: nowrap; }
.ingredients p { color: var(--muted); font-size: .96rem; }
.ingredients h3:not(:first-child) { margin-top: 1.25rem; }
.ingredients strong { color: var(--navy); }

.assortment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.range-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}
.range-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.range-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.range-packshot img { object-fit: contain; padding: .8rem; }
.range-copy { display: flex; flex-direction: column; flex: 1; padding: 1.2rem; }
.range-copy p { margin-top: .6rem; color: var(--muted); font-size: .94rem; }
.range-copy .range-ean {
  margin-top: auto;
  padding-top: .8rem;
  color: var(--blue);
  font-size: .86rem;
  font-weight: 700;
}
.image-credit { margin-top: .85rem; color: #d3e1ed; font-size: .84rem; }
.image-credit summary { cursor: pointer; width: fit-content; }
.image-credit summary:focus-visible { outline: 2px solid #c5dcec; outline-offset: 3px; }
.image-credit p { font-size: inherit; }
.image-credit a { text-underline-offset: .15em; }

.site-footer { background: var(--night); color: var(--white); padding-top: clamp(2rem, 6vw, 4.4rem); }
.footer-grid { display: grid; grid-template-columns: .9fr 1fr 1.35fr; gap: 2rem; }
.footer-grid h2 { font: 700 1rem/1.3 var(--body); letter-spacing: 0; margin-bottom: .75rem; }
.footer-grid p, .footer-grid address, .impressum-list { color: #d3e1ed; font-size: .9rem; }
.footer-grid p { margin-top: .7rem; }
.footer-grid address a { text-underline-offset: .18em; overflow-wrap: anywhere; }
.impressum-list > div { display: flex; justify-content: space-between; gap: .5rem; }
.impressum-list dd { text-align: right; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid #3e566d;
  margin-top: 2.2rem;
  padding-block: 1rem;
  color: #d3e1ed;
}
.footer-bottom > a { font-size: .86rem; text-underline-offset: .17em; }

.photo-dialog {
  width: min(calc(100% - 1.4rem), 55rem);
  max-height: calc(100% - 1.4rem);
  border: 0;
  padding: 0;
  color: var(--navy);
  background: var(--white);
}
.photo-dialog::backdrop { background: rgb(16 34 55 / .86); }
.dialog-top, .dialog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding: .85rem clamp(.85rem, 2vw, 1.5rem);
}
.dialog-top { border-bottom: 1px solid var(--line); }
.dialog-top h2 { font: 700 1.08rem/1.25 var(--body); letter-spacing: 0; }
.dialog-top #lightboxCounter { font-size: .85rem; color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.photo-dialog button { border: 1px solid var(--line); background: var(--white); padding: .5rem .72rem; font-weight: 600; min-height: 2.55rem; }
.photo-dialog button:hover, .photo-dialog button[aria-pressed="true"] { background: var(--ice); }
.dialog-media { display: grid; justify-items: center; max-height: min(67vh, 45rem); overflow: auto; }
.dialog-media img { width: auto; height: min(67vh, 45rem); max-width: 100%; object-fit: contain; }
.dialog-media.is-zoomed img { height: min(105vh, 70rem); max-width: none; }
.dialog-pagination { border-top: 1px solid var(--line); }

@media (max-width: 60rem) {
  .hero-copy { padding: clamp(1.65rem, 4vw, 3rem); }
  .hero-copy h1 { font-size: clamp(4.1rem, 9.5vw, 6.9rem); }
  .view-option { flex-direction: column; gap: .22rem; }
}
@media (max-width: 48rem) {
  .assortment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead { flex-wrap: wrap; }
  .primary-nav { width: 100%; flex-wrap: wrap; gap: .65rem 1.15rem; }
  .primary-nav a:last-child { border: 0; padding: 0; }
  .js-enabled .menu-toggle { display: block; }
  .js-enabled .primary-nav:not(.is-open) { display: none; }
  .product-hero, .place-grid { grid-template-columns: 1fr; }
  .product-viewer { border-left-width: 1px; }
  .hero-copy h1 { font-size: clamp(4.1rem, 13vw, 7.1rem); }
  .hero-copy > p { margin-top: 1.35rem; }
  .product-stage { min-height: 0; padding: .9rem .7rem 1.6rem; }
  .product-stage img { height: clamp(18rem, 62vw, 27rem); }
  .section-heading { display: grid; }
  .place-photo img { height: clamp(24rem, 102vw, 34rem); }
  .place-copy { grid-row: 1; }
  .data-layout, .data-layout.details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :last-child { grid-column: 1 / -1; max-width: 30rem; }
}
@media (max-width: 35rem) {
  .view-option { font-size: .78rem; }
  .photo-grid, .assortment-grid { grid-template-columns: 1fr; }
  .photo-link img { height: min(76vw, 24rem); }
  .recipe-list > div { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dialog-media, .dialog-media img { max-height: 62vh; }
  .dialog-media.is-zoomed img { max-height: none; height: 92vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
