/* Weiberfasching Alling: Siebdruck-Plakat
   Eine Tinte (Nachtviolett) auf fünf Papierfarben. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #2b1050;
  --yellow: #ffc62b;
  --pink: #ff3e8a;
  --turq: #19c6b5;
  --orange: #ff7a21;
  --paper: #f6eeff;

  --pad: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --section-y: clamp(4rem, 10vw, 9rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Gemessene Breite der Titelwörter in Einheiten der Schriftgröße (wdth 75, wght 800) */
  --w-weiber: 2.18;
  --w-fasching: 2.673;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--violet);
  color: var(--violet);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.25rem);
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--violet);
  color: var(--yellow);
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

[hidden] {
  display: none !important;
}

[data-phase="after"] [data-only="upcoming"],
[data-phase="upcoming"] [data-only="after"],
[data-phase="live"] [data-only="after"] {
  display: none;
}

/* Typografie-Bausteine */

.h2 {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  background: var(--violet);
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0.35rem 0.35rem 0 var(--pink);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn:hover {
  transform: translate(0.2rem, 0.2rem);
  box-shadow: 0.15rem 0.15rem 0 var(--pink);
}

.sweep {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 51;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sweep:focus-visible {
  outline-color: var(--yellow);
}

/* Hero */

.hero {
  position: relative;
  background: var(--yellow);
  padding-bottom: 2.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.mark {
  font-size: 1.4rem;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav ul {
  display: flex;
  gap: clamp(1rem, 2.6vw, 2.25rem);
  padding: 0;
  list-style: none;
}

.nav a {
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size 0.2s var(--ease);
}

.nav a:hover {
  background-size: 100% 3px;
}

.hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(22rem, 34vw, 29rem);
  grid-template-areas:
    "title sticker"
    "when countdown";
  align-items: end;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.titlebox {
  grid-area: title;
  container-type: inline-size;
  /* Auf niedrigen Bildschirmen den Titel so begrenzen, dass Datum und Countdown sichtbar bleiben. */
  max-width: max(20rem, calc((100svh - 25rem) / 0.703));
}

.title {
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.8;
  white-space: nowrap;
}

/* em-Werte werden dort aufgelöst, wo sie stehen: deshalb hier und nicht auf .title */
.t1,
.t2 {
  display: block;
  letter-spacing: -0.025em;
}

.t1 {
  font-size: calc(100cqw / var(--w-weiber));
}

.t2 {
  padding-bottom: 0.1em;
  font-size: calc(100cqw / var(--w-fasching));
}

.sticker {
  grid-area: sticker;
  align-self: center;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  container-type: inline-size;
  line-height: 1;
  transform: rotate(-9deg);
}

.sticker__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sticker__shade {
  fill: var(--violet);
}

.sticker__face {
  fill: var(--pink);
}

.sticker__text {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2cqw;
  font-stretch: 75%;
  letter-spacing: -0.01em;
}

.sticker__in {
  font-size: 15cqw;
  font-weight: 700;
}

.sticker__town {
  font-size: 27cqw;
  font-weight: 800;
}

.when {
  grid-area: when;
}

.when__date {
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.when__sub {
  margin-top: 0.8rem;
  max-width: 36ch;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.35;
  font-weight: 600;
  text-wrap: pretty;
}

.countdown {
  grid-area: countdown;
  position: relative;
  padding: 1.15rem 1.4rem 1.3rem;
  background: var(--violet);
  color: var(--yellow);
  box-shadow: 0.55rem 0.55rem 0 var(--pink);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.countdown.is-armed {
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.countdown.is-armed:active {
  transform: translate(0.3rem, 0.3rem);
  box-shadow: 0.25rem 0.25rem 0 var(--pink);
}

/* Ein Strich trennt die Einheiten, damit Tage und Stunden nicht wie eine lange Zahl wirken. */
.cd__cells {
  --cd-gap: clamp(0.5rem, 1.3vw, 1.15rem);
  display: flex;
}

.cd__cell {
  display: grid;
  gap: 0.35rem;
  padding-inline: var(--cd-gap);
}

.cd__cell:first-child {
  padding-left: 0;
}

.cd__cell:last-child {
  padding-right: 0;
}

.cd__cell + .cd__cell {
  border-left: 2px solid color-mix(in srgb, var(--paper) 30%, transparent);
}

.cd__num {
  min-width: 2ch;
  font-size: clamp(2.4rem, 3.9vw, 4.25rem);
  font-stretch: 75%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 0.85;
}

.cd__lab {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--paper);
}

.cd__live {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.95;
}

.cd__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.9rem;
}

.cd__label {
  font-weight: 600;
  line-height: 1.25;
  color: var(--paper);
}

.cd__fire {
  padding: 0.55rem 0.9rem;
  border: 0;
  background: var(--pink);
  color: var(--violet);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cd__fire:focus-visible {
  outline-color: var(--yellow);
}

/* Laufband */

.marquee {
  position: relative;
  z-index: 3;
  margin: clamp(1.5rem, 4vw, 3rem) -4vw 0;
  background: var(--pink);
  border-block: 3px solid var(--violet);
  overflow: hidden;
  transform: translateY(50%) rotate(-1.3deg);
}

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee__group {
  display: flex;
  flex: none;
  padding: 0;
  list-style: none;
}

.marquee__group li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55em 1.5rem 0.55em 0;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.marquee__group li::after {
  content: "";
  flex: none;
  width: 0.7em;
  height: 0.7em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon fill='%232B1050' points='50,0 61.5,22.3 85.4,14.6 77.7,38.5 100,50 77.7,61.5 85.4,85.4 61.5,77.7 50,100 38.5,77.7 14.6,85.4 22.3,61.5 0,50 22.3,38.5 14.6,14.6 38.5,22.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Programm */

.programm {
  background: var(--violet);
  color: var(--paper);
  padding-block: calc(var(--section-y) + 2.5rem) var(--section-y);
}

.programm .h2 {
  color: var(--yellow);
}

.lineup {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: 0;
  list-style: none;
}

.act {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 0 var(--pad);
  padding-block: clamp(1rem, 2.4vw, 2rem);
  border-top: 2px solid color-mix(in srgb, var(--paper) 25%, transparent);
  color: var(--c);
}

.act:last-child {
  border-bottom: 2px solid color-mix(in srgb, var(--paper) 25%, transparent);
}

.act__time {
  font-size: clamp(3.75rem, 12vw, 10.5rem);
  font-stretch: 75%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 0.82;
  letter-spacing: -0.02em;
}

.act__time small {
  margin-right: 0.35em;
  font-size: 0.2em;
  font-stretch: 100%;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.9em;
}

.act__name {
  font-size: clamp(2rem, 5.5vw, 4.75rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.act--l .act__name {
  font-size: clamp(2.5rem, 7.5vw, 6.5rem);
}

.act--xl .act__name {
  font-size: clamp(3rem, 10vw, 9rem);
}

.act__note {
  margin-top: 0.6rem;
  max-width: 34ch;
  color: var(--paper);
  font-weight: 500;
}

/* Karten */

.karten {
  background: var(--turq);
  padding-block: var(--section-y);
}

.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 0;
  list-style: none;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 1.3rem 0.8rem;
  background: var(--violet);
  color: var(--yellow);
  box-shadow: 0.45rem 0.45rem 0 var(--pink);
}

.price__amount {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.9;
}

.price__who {
  font-weight: 650;
  color: var(--paper);
}

.coupons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 3.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.coupon {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: 0.7rem 0.7rem 0 var(--violet);
}

.coupon__main {
  flex: 1;
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.coupon__kind {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.coupon__day {
  margin-top: 1.25rem;
  font-weight: 650;
  line-height: 1;
}

.coupon__date {
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  font-stretch: 75%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.coupon__time {
  margin-top: 0.2rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.1;
}

.coupon__where {
  margin-top: 0.4rem;
  font-weight: 600;
}

.facts {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.4;
}

.facts li {
  position: relative;
  padding-left: 1.4rem;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--pink);
  transform: rotate(45deg);
}

.coupon__stub {
  position: relative;
  padding: 1.1rem clamp(1.4rem, 3vw, 2.25rem) 1.25rem;
  background: var(--stub);
  border-top: 3px dashed var(--violet);
}

.coupon__stub::before,
.coupon__stub::after {
  content: "";
  position: absolute;
  top: -0.95rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--turq);
}

.coupon__stub::before {
  left: -0.8rem;
}

.coupon__stub::after {
  right: -0.8rem;
}

.stub__big {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.1;
}

/* Ort */

.ort {
  background: var(--paper);
  padding-top: var(--section-y);
}

.ort__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem var(--pad);
  align-items: start;
}

.addr {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-style: normal;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
}

.ort__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

/* FAQ */

.faq {
  background: var(--paper);
  padding-block: var(--section-y);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 3rem var(--pad);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: 2rem;
}

.faq__list {
  border-bottom: 3px solid var(--violet);
}

.faq details {
  border-top: 3px solid var(--violet);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0.5rem 1.15rem 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
    linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  background: color-mix(in srgb, var(--yellow) 60%, transparent);
}

.faq .answer {
  max-width: 62ch;
  padding-bottom: 1.5rem;
}

.faq .answer p + p {
  margin-top: 0.8rem;
}

/* Kontakt */

.kontakt {
  background: var(--violet);
  color: var(--paper);
  padding-block: var(--section-y) clamp(3rem, 6vw, 5rem);
}

.kontakt .h2 {
  color: var(--yellow);
}

.kontakt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem var(--pad);
  align-items: end;
}

.kontakt__mail {
  margin-top: 1.5rem;
  font-size: clamp(1.4rem, 3.4vw, 2.75rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.kontakt__mail a {
  color: var(--pink);
}

.kontakt__orga h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow);
}

.kontakt__orga p {
  margin-top: 0.4rem;
}

/* Footer */

.footer {
  background: var(--violet);
  color: var(--paper);
  padding-bottom: 2rem;
}

.footer__inner {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 2px solid color-mix(in srgb, var(--paper) 25%, transparent);
}

.footer__next {
  color: var(--pink);
  font-size: clamp(2rem, 6.4vw, 5.5rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.footer__note {
  margin-top: 0.6rem;
  font-weight: 500;
}

.footer__links {
  display: flex;
  gap: 1.75rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

/* Rechtstexte und 404 */

.page-head {
  background: var(--yellow);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-head .h2 {
  font-size: clamp(3.5rem, 12vw, 9rem);
}

.legal {
  background: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.legal__body {
  max-width: 70ch;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin-top: 0.6rem;
}

.legal a {
  color: inherit;
}

.lost {
  display: grid;
  align-content: center;
  min-height: 100svh;
  background: var(--yellow);
}

.lost .wrap {
  padding-block: 3rem;
}

.lost .lead {
  margin-bottom: 2rem;
}

/* Bewegung: ein Auftritt beim Laden, ein Laufband, Rest ruht */

@media (prefers-reduced-motion: no-preference) {
  .t1,
  .t2 {
    animation: wipe 0.8s var(--ease) both;
  }

  .t1 {
    animation-delay: 0.1s;
  }

  .t2 {
    animation-delay: 0.3s;
  }

  .sticker {
    animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.8s both;
  }

  .countdown {
    animation: stamp 0.5s var(--ease) 1.1s both;
  }

  .marquee__track {
    animation: run 48s linear infinite;
  }

  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }

  @keyframes wipe {
    from {
      clip-path: inset(-10% 100% -10% -2%);
    }
    to {
      clip-path: inset(-10% -2% -10% -2%);
    }
  }

  @keyframes pop {
    from {
      opacity: 0;
      transform: rotate(-24deg) scale(0.4);
    }
    70% {
      transform: rotate(-6deg) scale(1.07);
    }
    to {
      opacity: 1;
      transform: rotate(-9deg) scale(1);
    }
  }

  @keyframes stamp {
    from {
      opacity: 0;
      transform: translate(0.55rem, 0.55rem);
      box-shadow: 0 0 0 var(--pink);
    }
    to {
      opacity: 1;
      transform: none;
      box-shadow: 0.55rem 0.55rem 0 var(--pink);
    }
  }

  @keyframes run {
    to {
      transform: translateX(-50%);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    width: auto;
    justify-content: center;
  }

  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 1.5rem;
  }

  .marquee__group + .marquee__group {
    display: none;
  }
}

/* Schmale Bildschirme */

@media (max-width: 899px) {
  .titlebox {
    max-width: none;
  }

  .hero__main {
    grid-template-columns: minmax(0, 1fr) min(34vw, 11rem);
    grid-template-areas:
      "title title"
      "when sticker"
      "countdown countdown";
    align-items: center;
  }

  .sticker {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .ort__grid,
  .faq__grid,
  .kontakt__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__head {
    position: static;
  }

  .countdown {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .mark {
    display: none;
  }

  .nav {
    width: 100%;
  }

  .nav ul {
    justify-content: space-between;
  }

  .act {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .act__time {
    font-size: clamp(4rem, 24vw, 6.5rem);
  }

  .cd__cells {
    --cd-gap: 0.6rem;
  }

  .cd__num {
    font-size: clamp(2.3rem, 12vw, 3.25rem);
  }

  .cd__lab {
    font-size: 0.8rem;
  }

  .countdown {
    padding-inline: 1rem;
  }
}

@media (max-width: 400px) {
  .cd__cells {
    --cd-gap: 0.4rem;
  }

  .cd__num {
    font-size: clamp(2rem, 11vw, 3.25rem);
  }

  .cd__lab {
    font-size: 0.75rem;
  }
}
