/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: "Bagel Fat One";
  src: url("fonts/bagel-fat-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations"),
       url("fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------- Tokens (wie die Geburtstagsseite) ---------- */
:root {
  --bg: #CFE8FF;
  --ink: #13224A;
  --navy: #23306B;
  --blue: #2F6BEA;
  --blue-text: #1C4DBF;
  --gold: #F5B83D;

  --line: 3px;
  --pop: 6px 6px 0 var(--ink);

  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg) url("img/sprinkles.svg") 0 0 / 260px 260px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* ---------- Kopf ---------- */
.hero {
  padding: 40px 16px 0;
  text-align: center;
}
h1 {
  max-width: 16ch;
  margin: 0 auto 14px;
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 8.5vw, 4.4rem);
  line-height: 1.05;
  text-wrap: balance;
  text-shadow:
    3px 0 var(--ink), -3px 0 var(--ink), 0 3px var(--ink), 0 -3px var(--ink),
    2px 2px var(--ink), -2px -2px var(--ink), 2px -2px var(--ink), -2px 2px var(--ink),
    7px 7px 0 var(--ink);
}
.lead {
  max-width: 36ch;
  margin: 0 auto;
  font-size: clamp(1.08rem, 2.3vw, 1.25rem);
  font-weight: 520;
  text-wrap: pretty;
}

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

/* ---------- Größenvergleich ---------- */
.compare {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 0 12px;
  text-align: center;
}
.compare h2,
.sets-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.45rem, 4.4vw, 2rem);
  line-height: 1.15;
}
.compare-note {
  margin: 4px 0 18px;
  font-weight: 520;
  opacity: .75;
}

.lineup {
  /* 1 cm in Pixeln, passt sich der Bildschirmbreite an */
  --u: clamp(5px, calc((100vw - 120px) / 37.5), 18px);
  display: inline-grid;
  grid-template-columns: auto repeat(6, auto);
  grid-template-rows: auto var(--line) auto;
  column-gap: clamp(4px, 1.6vw, 18px);
  align-items: end;
  justify-content: center;
  padding: 20px clamp(12px, 3vw, 28px) 14px;
  border: var(--line) solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--pop);
}

.mill {
  grid-row: 1;
  display: block;
  border-radius: 8px;
  transition: transform .18s ease;
}
.mill img {
  display: block;
  height: calc(var(--cm) * var(--u));
  width: auto;
}
.mill:hover { transform: translateY(-4px); }
.mill:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 6px;
}

.floor {
  grid-row: 2;
  grid-column: 1 / -1;
  height: var(--line);
  border-radius: 2px;
  background: var(--ink);
}

.label {
  grid-row: 3;
  padding-top: 8px;
  font-size: clamp(.78rem, 2.4vw, .95rem);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.label b {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  margin: 0 auto 4px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--display);
  font-weight: 400;
}

.ruler {
  grid-row: 1;
  position: relative;
  width: clamp(22px, 5vw, 34px);
  height: calc(23 * var(--u));
  border-right: 2px solid var(--ink);
  background:
    repeating-linear-gradient(to top, var(--ink) 0 2px, transparent 2px calc(5 * var(--u))) right bottom / 12px 100% no-repeat,
    repeating-linear-gradient(to top, var(--ink) 0 1px, transparent 1px var(--u)) right bottom / 6px 100% no-repeat;
}
.ruler span {
  position: absolute;
  right: 15px;
  bottom: calc(var(--n) * var(--u));
  transform: translateY(50%);
  font-size: clamp(.62rem, 1.9vw, .78rem);
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.ruler .unit { right: 2px; font-weight: 750; }

/* ---------- Die Sets ---------- */
.sets {
  --gap: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--gap);
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 0 16px;
}
.set { flex: 0 1 100%; }
@media (min-width: 700px)  { .set { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (min-width: 1060px) { .set { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }

.set {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--pop);
  scroll-margin-top: 20px;
}
.set:target { outline: 4px solid var(--blue); outline-offset: 4px; }

/* Bildergalerie: wischen, Pfeile oder Punkte */
.photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: var(--line) solid var(--ink);
  background: #fff;
}
.track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 3px dashed var(--blue); outline-offset: -6px; }
.track > img {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px 18px 34px;
  object-fit: contain;
  background: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.track > img.fill {
  padding: 0;
  object-fit: cover;
}

.nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateY(-50%);
  transition: opacity .15s, transform .15s;
}
.nav svg { width: 18px; height: 18px; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }
.nav:hover { transform: translateY(-50%) scale(1.08); }
.nav:focus-visible { outline: 3px dashed var(--blue); outline-offset: 3px; }
.nav[disabled] { opacity: 0; pointer-events: none; }

.dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}
.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--ink); }
.dots button:focus-visible { outline: 2px dashed var(--blue); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .photo .nav { opacity: 0; }
  .photo:hover .nav, .photo:focus-within .nav { opacity: 1; }
  .photo .nav[disabled] { opacity: 0; }
}

.info {
  position: relative;
  flex: 1;
  padding: 18px 20px 20px;
}
.num {
  position: absolute;
  top: -24px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
}
.info h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-right: 48px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
}
.info h3::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}
.look {
  margin: 4px 0 14px;
  color: var(--blue-text);
  font-weight: 620;
}

.facts {
  display: grid;
  gap: 8px;
  margin: 0;
}
.facts div {
  display: grid;
  grid-template-columns: 6.2em 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 2px dashed rgba(19, 34, 74, .18);
}
.facts dt {
  font-weight: 700;
}
.facts dd {
  margin: 0;
}

/* ---------- Abschluss ---------- */
.outro {
  max-width: 34ch;
  margin: 56px auto 0;
  padding: 0 16px 64px;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 520;
}
.outro p { margin: 0; }
.signature {
  display: inline-block;
  margin-top: 10px !important;
  color: #fff;
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
  transform: rotate(-5deg);
  text-shadow:
    2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink),
    2px 2px var(--ink), -2px -2px var(--ink), 2px -2px var(--ink), -2px 2px var(--ink),
    4px 4px 0 var(--ink);
}
