:root {
  --paper: #c8c9bc;
  --ink: #1c1f1c;
  --foil: #9a7420;
  --gravure: #4a4538;
  --olive: #6a5e38;
  --coupon: #6b1c18;
  --coupon-ink: #f4ead6;
  --ok: #3d5a38;
  --err: #8b2e22;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --gothic: "BenchNine", "Arial Narrow", sans-serif;
  --stock: url("../assets/plates/paper.png");
  --r-paper-x: 30%; --r-paper-y: 0%; --r-paper-w: 20%; --r-paper-h: 10%;
  --r-wordmark-x: 0%; --r-wordmark-y: 0%; --r-wordmark-w: 30%; --r-wordmark-h: 20%;
  --r-wordmark-font: 103px;
  --r-location-x: 0%; --r-location-y: 10%; --r-location-w: 20%; --r-location-h: 10%;
  --r-location-font: 29px;
  --r-nav-speisen-x: 60%; --r-nav-speisen-y: 0%; --r-nav-speisen-w: 20%; --r-nav-speisen-h: 20%;
  --r-nav-handwerk-x: 70%; --r-nav-handwerk-y: 0%; --r-nav-handwerk-w: 20%; --r-nav-handwerk-h: 20%;
  --r-nav-kontakt-x: 80%; --r-nav-kontakt-y: 0%; --r-nav-kontakt-w: 20%; --r-nav-kontakt-h: 20%;
  --r-plate-x: 0%; --r-plate-y: 20%; --r-plate-w: 100%; --r-plate-h: 70%;
  --r-caption-x: 0%; --r-caption-y: 90%; --r-caption-w: 70%; --r-caption-h: 10%;
  --r-caption-font: 24px;
  --r-coupon-x: 70%; --r-coupon-y: 90%; --r-coupon-w: 30%; --r-coupon-h: 10%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 1.25rem;
  line-height: 1.45;
  background-color: var(--paper);
  background-image: var(--stock);
  background-repeat: repeat;
}

::selection {
  background: var(--coupon);
  color: var(--coupon-ink);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.paper {
  position: absolute;
  inset: 0;
  background-color: var(--paper);
  background-image: var(--stock);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.issue {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 1280 / 720;
  overflow: hidden;
  background-color: var(--paper);
  background-image: var(--stock);
  background-repeat: repeat;
}

.issue::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 19.4%;
  height: 1px;
  background: var(--foil);
  z-index: 3;
}

.r-plate {
  position: absolute;
  left: var(--r-plate-x);
  top: var(--r-plate-y);
  width: var(--r-plate-w);
  height: var(--r-plate-h);
  margin: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8% 3%;
  overflow: hidden;
  background: transparent;
}

.r-plate img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 16px 28px rgba(28, 31, 28, 0.34);
  filter: contrast(1.28) blur(1.1px);
  transition: filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.issue.is-printed .r-plate img {
  filter: contrast(1.04) blur(0);
}

.issue-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10%;
  background-color: var(--paper);
  background-image: var(--stock);
  background-repeat: repeat;
  z-index: 3;
}

.folio {
  position: absolute;
  right: 2.5%;
  top: 0;
  height: 19.4%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 4;
}

.folio .dot {
  color: var(--ink);
  font-size: 0.9rem;
}

.folio a,
.folio [aria-current="page"] {
  position: static;
  display: inline-flex;
  align-items: center;
  height: auto;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.folio [aria-current="page"] {
  text-decoration: none;
}

.r-nav-handwerk,
.r-nav-kontakt,
.r-nav-bewerbungen {
  text-decoration: underline;
  text-underline-offset: 0.32em;
}

.folio.has-jobs {
  gap: 0.55rem;
}

.folio.has-jobs a,
.folio.has-jobs [aria-current="page"] {
  font-size: 20px;
  letter-spacing: 0.1em;
}

.r-caption {
  left: var(--r-caption-x);
  top: var(--r-caption-y);
  width: var(--r-caption-w);
  height: var(--r-caption-h);
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0.2rem 1.2rem 0 1.4%;
  font-family: var(--gothic);
  font-size: var(--r-caption-font);
  letter-spacing: 0;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  z-index: 4;
}

.r-coupon {
  left: var(--r-coupon-x);
  top: var(--r-coupon-y);
  width: var(--r-coupon-w);
  height: var(--r-coupon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.12rem 1.15rem 0.72rem;
  background: transparent;
  color: var(--coupon-ink);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  z-index: 4;
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-coupon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
}

.r-coupon span,
.r-coupon svg {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  line-height: 1;
}

.r-wordmark {
  left: var(--r-wordmark-x);
  top: var(--r-wordmark-y);
  width: var(--r-wordmark-w);
  height: var(--r-wordmark-h);
  display: flex;
  align-items: flex-start;
  padding: 0.7rem 0 0 1.6%;
  overflow: visible;
  font-family: var(--display);
  font-size: var(--r-wordmark-font);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
  z-index: 4;
}

.r-location {
  left: var(--r-location-x);
  top: var(--r-location-y);
  width: 52%;
  height: var(--r-location-h);
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0;
  padding: 0 0 0.55rem 1.8%;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 4;
}

.r-location a {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.r-location a:hover,
.r-location a:focus-visible {
  color: var(--coupon);
}

.r-location [aria-current="page"] {
  text-decoration: none;
}

.r-location .dot {
  font-size: 0.75em;
  letter-spacing: 0;
}

.r-wordmark,
.r-location,
.r-caption,
.r-coupon {
  position: absolute;
}

.folio a:hover,
.folio a:focus-visible {
  color: var(--coupon);
}

.r-coupon svg {
  position: static;
  width: 1.55rem;
  height: 0.8rem;
  flex: 0 0 auto;
  margin: 0;
}

.r-coupon:hover,
.r-coupon:focus-visible {
  transform: translateY(-0.4rem);
}

.r-coupon:hover img,
.r-coupon:focus-visible img {
  filter: drop-shadow(0 8px 6px rgba(28, 31, 28, 0.28));
}

.r-coupon:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plates-only .r-wordmark,
.plates-only .r-location,
.plates-only .folio,
.plates-only .r-caption,
.plates-only .r-coupon,
.plates-only .spread,
.plates-only .colophon,
.plates-only .skip {
  visibility: hidden;
}

body.soon .r-caption {
  width: 96%;
}

.spread {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5.5rem 4vw 3rem;
  scroll-margin-top: 1.5rem;
}

.spread h1,
.spread h2 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.lede {
  max-width: 42rem;
  margin: 0 0 2rem;
  color: var(--gravure);
}

.apply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem);
  gap: 2rem 3rem;
  align-items: start;
}

.hangs {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.hangs a {
  display: block;
}

.hangs img {
  width: 100%;
  height: auto;
  box-shadow: 0 16px 28px rgba(28, 31, 28, 0.34);
}

.back {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

.back a {
  color: var(--gravure);
}

.mast {
  /* ponytail: Kompaktkopf statt zweitem Issue-Hero. Ceiling: kein Plattenfoto. Upgrade: Issue-Markup. */
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 1.6% 0.95rem;
}

.mast::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--foil);
  margin-top: 0.7rem;
}

.mast-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.mast .r-wordmark,
.mast .r-location,
.mast .folio {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  padding: 0;
}

.mast .r-wordmark {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

.mast .folio {
  padding-top: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mast .r-location {
  margin-top: 0.15rem;
}

.mast + main .spread {
  padding-top: 2.4rem;
}

.constellation-soon {
  margin: 0;
  padding: 1.5rem 0 1.7rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--olive);
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

.constellation {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}

.constellation li {
  padding: 1.3rem 1.2rem 1.4rem 1.35rem;
  border-bottom: 1px solid var(--olive);
  border-right: 1px solid var(--olive);
}

.constellation li:nth-child(3n) {
  border-right: 0;
}

.constellation h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.price {
  display: block;
  margin: 0.15rem 0 0.45rem;
  font-weight: 300;
  color: var(--olive);
  letter-spacing: 0.08em;
}

.constellation p,
.columns p {
  margin: 0;
  color: var(--gravure);
}

.inferred {
  margin: 1rem 0 0;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--olive);
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
}

.columns h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
}

.tear {
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gravure);
}

.hint {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--gothic);
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.55rem 0;
  border-radius: 0;
  caret-color: var(--coupon);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--coupon);
  outline-offset: 3px;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.r-coupon.submit {
  position: relative;
  left: auto;
  top: auto;
  width: max-content;
  min-width: 20rem;
  height: 3.75rem;
  margin-top: 0.4rem;
  padding: 0.12rem 1.4rem 0.72rem;
  font-size: 1.35rem;
  letter-spacing: 0.09em;
}

.r-coupon.submit img {
  object-fit: fill;
}

.r-coupon.submit span,
.r-coupon.submit svg {
  line-height: 1;
}

.status {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
  color: var(--gravure);
}

.status[data-state="ok"] { color: var(--ok); }
.status[data-state="err"] { color: var(--err); }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.4rem 4vw 2.4rem;
  border-top: 1px solid var(--olive);
  color: var(--olive);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .apply {
    grid-template-columns: 1fr;
  }

  .issue {
    aspect-ratio: auto;
    min-height: 100svh;
  }

  .r-wordmark {
    font-size: clamp(3rem, 12vw, 5.5rem);
  }

  .r-location {
    top: 11%;
    width: 68%;
    height: auto;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .folio {
    right: 3%;
    gap: 0.45rem;
  }

  .folio a,
  .folio.has-jobs a,
  .folio [aria-current="page"] {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .mast-top {
    flex-direction: column;
    gap: 0.15rem;
  }

  .mast .folio {
    padding-top: 0.25rem;
    justify-content: flex-start;
  }

  .issue-foot {
    height: 18%;
  }

  .r-caption {
    top: auto;
    bottom: 4.6rem;
    width: 92%;
    height: auto;
    font-size: 1.05rem;
  }

  .r-coupon {
    left: 4%;
    right: 4%;
    top: auto;
    bottom: 1.1rem;
    width: auto;
    height: 3.5rem;
  }

  .constellation,
  .columns {
    grid-template-columns: 1fr;
  }

  .constellation li {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r-plate img,
  .issue.is-printed .r-plate img {
    filter: none;
    transition: none;
  }
  .r-coupon,
  .r-coupon:hover,
  .r-coupon:focus-visible {
    transform: none;
    transition: none;
  }
}
