@font-face { font-family: Katalog; src: url('assets/open-sans-condensed-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home:has(.catalogue:target) > .skip:first-child { display: block; }
.home:has(.catalogue:target, .puzzles:target, .legal-panel:target) .stage { margin-bottom: 0; }
.home:has(.catalogue:target, .puzzles:target, .legal-panel:target) { background-color: #080e0f; }
.home:has(.catalogue:target, .puzzles:target, .legal-panel:target) .stage::after { display: none; }
.puzzles, .legal-panel, .puzzles:target ~ .hero, .legal-panel:target ~ .hero { display: none; }
.catalogue:target, .puzzles:target { display: flex; flex-direction: column; }
.catalogue:target, .puzzles:target, .legal-panel:target {
  background: linear-gradient(95deg,#080d0e 0%,#080d0e 78%,rgba(3,11,13,.76) 94%,rgba(3,18,20,.65));
}
.catalogue, .puzzles, .legal-panel { scrollbar-width: thin; }
.legal-panel:target { display: block; }
.legal-panel {
  padding: clamp(1.5rem, 4.5svh, 3rem) var(--gutter);
  overscroll-behavior-y: contain;
}
.legal-content { max-width: 70ch; margin-inline: auto; }
.legal-panel h1 {
  margin: 0 0 1.5rem;
  font: 300 clamp(1.85rem, 3.2vw, 3.5rem)/1.2 'Open Sans', sans-serif;
  overflow-wrap: anywhere;
}
.legal-panel h2 { margin: 1.6rem 0 .6rem; font-size: clamp(1.15rem, 2vw, 1.6rem); }
.legal-panel p { margin: .6rem 0; line-height: 1.6; }
.legal-panel a { text-underline-offset: .2em; overflow-wrap: anywhere; }
#impressum:target {
  background: #060b0c url('assets/impressum-glas.webp') center / cover no-repeat;
}
.imprint-content {
  display: grid;
  grid-template-columns: minmax(0, 23fr) minmax(0, 20fr) minmax(0, 17.5fr);
  align-content: center;
  align-items: start;
  column-gap: clamp(2rem, 6.4vw, 8rem);
  width: min(100%, 73vw);
  min-height: 100%;
  color: #f6f4ef;
  font: 300 clamp(1rem, 1.18vw, 1.0625rem)/1.5 'Open Sans', sans-serif;
}
.imprint-title h1 {
  margin: .15em 0 .2em;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  letter-spacing: -.035em;
}
.imprint-title p, .imprint-details address { margin: 0; font-style: normal; }
.imprint-details { display: contents; }
.imprint-details section {
  border-top: 1px solid #cbcfcf;
  padding-top: clamp(1rem, 1.7vw, 2rem);
}
.imprint-details h2 {
  font-size: clamp(1.1875rem, 1.55vw, 1.375rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 .75em;
}
.imprint-details strong { font-family: Arial, sans-serif; font-weight: 600; }
.imprint-links { display: grid; gap: 1em; margin: 0; }
.imprint-links dt { color: #83bdc1; font-size: .85em; }
.imprint-links dd { margin: 0; }
.imprint-links a { text-decoration-color: #83bdc1; text-decoration-thickness: 1px; }
@media (max-width: 60rem) {
  .imprint-content { width: 100%; gap: 2rem; }
}
@media (max-width: 45rem) {
  .imprint-content { grid-template-columns: minmax(0, 1fr); max-width: 32rem; gap: 1.5rem; margin-inline: auto; }
  .imprint-title h1 { margin-top: 0; }
  .imprint-links { gap: .65em; }
}
.product-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); position: relative;
  gap: clamp(2rem,4.9vw,6rem); width: 100%;
  padding: clamp(1.3rem,4.5svh,3rem) var(--gutter); margin-block: auto;
}
.product-grid::after { content: ''; position: absolute; width: 1px; left: 50%; top: 6%; bottom: 6%; background: #505657; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 750 / 394; border-radius: .75rem; }
.kind { display: block; margin: clamp(1rem,2.3svh,1.6rem) 0 .35rem; color: #bac1c1; font-size: clamp(.9rem,1.05vw,1.2rem); }
.product-grid h2 { font: 300 clamp(1.8rem,2.4vw,3.2rem)/1.18 'Open Sans',sans-serif; }
.product-grid p, .product-grid a { font-size: clamp(1rem,1.13vw,1.35rem); }
.product-grid p { max-width: none; margin: .55em 0 .85em; }
.product-grid a { display: inline-block; text-underline-offset: .28em; padding-block: .2em; }
.product-grid a:hover { color: #cee8e8; }
.puzzles { padding: clamp(1rem,3vh,2rem) var(--gutter); align-items: center; }
.puzzles h1, .puzzle-grid h2 { margin: 0; font-family: Katalog,'Arial Narrow',sans-serif; text-transform: uppercase; }
.puzzles h1 { font-size: clamp(1.65rem,4.15vw,4.6rem); text-align: center; overflow-wrap: anywhere; }
.ages {
  display: flex;
  gap: .9rem;
  padding: 0;
  margin: .8rem 0 clamp(1.1rem,3vh,2.4rem);
  border: 0;
}
.ages label, .puzzles button { font: 600 1rem/1.25 Arial,sans-serif; cursor: pointer; }
.ages label {
  position: relative;
  text-align: center;
  color: #b7bec0;
  padding: .7em .5em;
  min-height: 44px;
  border-bottom: 2px solid transparent;
}
.ages label:has(:checked) { color: #fff; border-bottom-color: #74d9d7; }
.puzzles dialog button { border: 1px solid transparent; border-radius: 3rem; padding: .65em 1.5em; background: #e4a164; color: #17110b; }
.ages input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.ages label:has(:focus-visible), button:focus-visible, summary:focus-visible { outline: 3px solid #a2e7fa; outline-offset: 3px; }
.puzzle-grid { width: min(100%,80rem); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.8rem,1.7vw,2.5rem); margin: auto 0; }
.puzzle-grid article { overflow: hidden; text-align: center; border: 1px solid #e8e0d2; border-radius: .85rem; background: #f4ece3; color: #231e1a; }
.puzzle-grid img { width: 100%; height: auto; display: block; }
.puzzle-grid h2 { font-size: clamp(1.2rem,2.15vw,2.45rem); margin: .25em 0; }
.ornament { font-size: 1.5rem; color: #9a5a2f; }
.puzzle-grid button {
  margin: .3rem .4rem .75rem;
  padding: .65em 1em;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #192025;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
.puzzle-grid button:hover { text-decoration-thickness: 2px; }
.puzzle-grid button:focus-visible { outline-color: #275354; }
.ages label:has(:focus-visible) { z-index: 1; }
@media (forced-colors: active) {
  .ages label:has(:checked) { border-bottom-color: Highlight; }
}
.puzzles dialog { width: min(30rem,90vw); max-height: 85svh; padding: 0; border: 1px solid #666; border-radius: .85rem; background: #101617; color: #faf8f5; }
dialog::backdrop { background: #000b; }
.detail-cover { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.puzzles dialog > div { padding: 1.25rem; }
.puzzles dialog h2, .selected-age { margin: .25rem 0; }
.question, .answer { line-height: 1.5; }
.puzzles summary { cursor: pointer; }
.puzzles form { margin: 1.3rem 0 0; }
@media(max-width:720px) {
  .product-grid, .puzzle-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .product-grid::after { display:none; }
  .product-grid article + article { border-top: 1px solid #41484a; padding-top: 1.5rem; }
  .puzzles h1 { font-size: clamp(1.3rem,6.4vw,2.8rem); }
  .ages label { white-space: nowrap; }
  .puzzle-grid { max-width: 32rem; }
}
