/* ==========================================================================
   Lions Benefiz-Weihnachtskonzerte 2026
   Layout nach dem Flyer 2026: blaue Spalte links, Instrument über der Kante,
   Hanken Grotesk, Gelb als Akzent.
   ========================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1d4688;
  --yellow: #f0c129;
  --yellow-soft: #fbeec2;
  --ink: #231f20;
  --black: #000;
  --paper: #fff;

  /* Breite der blauen Spalte (Desktop). Alle Einrückungen leiten sich davon ab,
     wie im Flyer (Spalte 167 pt, Instrument ragt bis 208 pt). */
  --side: clamp(300px, 34vw, 520px);
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;

  /* Footer bleibt auch auf kurzen Seiten (Impressum) am unteren Rand */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

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

h1, h2, h3, p, ul { margin: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

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

/* Kleine Versal-Überschriften wie im Flyer („VORVERKAUF AB …“) */
.label,
.cast h3 {
  font-size: 1em;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Logos
   -------------------------------------------------------------------------- */
.brand {
  background: var(--blue);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter);
}
.brand img:first-child { height: 64px; width: auto; }
.brand img:last-child  { height: 60px; width: auto; }

/* --------------------------------------------------------------------------
   Titel, Termin, Tickets
   -------------------------------------------------------------------------- */
.intro {
  padding: 2.5rem var(--gutter) 3rem;
}

h1 {
  font-weight: 900;
  font-size: clamp(1.75rem, 8.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
h1 span { display: block; }

.when-where {
  font-weight: 800;
  font-size: 1.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.route { margin-top: 0.5rem; font-size: 0.9em; }

.tickets { margin-top: 2.25rem; }

.ticket-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 8rem;
  max-width: 15rem;
  min-height: 3.75rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.2em;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { background: #f5cc45; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn__hint { display: none; font-size: 0.7em; font-weight: 600; }

/* Vor Vorverkaufsstart bzw. solange kein Link eingetragen ist (siehe tickets.js) */
.btn.is-soon {
  background: var(--yellow-soft);
  box-shadow: none;
  transform: none;
  cursor: default;
}
.btn.is-soon .btn__hint { display: block; }

.ticket-note {
  margin-top: 1rem;
  font-size: 0.9em;
  max-width: 34rem;
}

.credits { margin-top: 2.5rem; }
.credits::first-line { font-weight: 800; }
.support { margin-top: 1.25rem; max-width: 30rem; }

/* --------------------------------------------------------------------------
   Vorverkauf & Preise (blaue Fläche) mit Instrument
   -------------------------------------------------------------------------- */
.info {
  background: var(--blue);
  color: var(--paper);
  padding: 2.5rem var(--gutter) 0;
  overflow: hidden;              /* mobil: Instrument unten anschneiden */
}
.info :focus-visible { outline-color: var(--yellow); }

.info__text > * + * { margin-top: 1.25rem; }
.info .label + p { margin-top: 0.15rem; }

.prices { list-style: none; padding: 0; }
.prices__amount { font-weight: 800; display: inline-block; min-width: 4.25em; }

.mission { max-width: 22rem; }

.download a { color: var(--yellow); font-weight: 700; }
.download__meta { font-weight: 400; }

.instrument {
  width: min(78vw, 340px);
  margin: 2.5rem 0 0 calc(-1 * var(--gutter));
}

/* --------------------------------------------------------------------------
   Mitwirkende
   -------------------------------------------------------------------------- */
.program {
  position: relative;
  padding: 2rem var(--gutter) 3rem;
}

.stars { pointer-events: none; }
.stars--a { width: 76px; margin: 0 0 1.25rem -0.25rem; }
.stars--b { width: 76px; margin: 1.5rem 0 0 auto; }

.cast {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.cast p { margin-top: 0.1rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--black);
  color: var(--paper);
  font-size: 0.85em;
  padding: 1.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer :focus-visible { outline-color: var(--yellow); }

/* --------------------------------------------------------------------------
   Tablet: Instrument neben dem Text
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: end;
  }
  .info__text { padding-bottom: 3rem; align-self: start; }
  .instrument { width: 260px; margin: 0 calc(-1 * var(--gutter)) 0 0; }

  .cast { display: block; columns: 2; column-gap: 2.5rem; }
  .cast li { break-inside: avoid; padding-bottom: 1.4rem; }
}

/* --------------------------------------------------------------------------
   Desktop: Plakat-Layout wie im Flyer
   -------------------------------------------------------------------------- */
@media (min-width: 960px) {
  .poster {
    /* eine durchgehende blaue Spalte – vermeidet Haarlinien zwischen Logo- und Info-Bereich */
    background: linear-gradient(to right, var(--blue) var(--side), var(--paper) var(--side));
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "brand intro"
      "info  intro"
      "info  program";
  }

  .poster > .brand,
  .poster > .info { background: none; }

  .poster > .brand {
    grid-area: brand;
    padding: 2.75rem calc(var(--side) * 0.075) 0;
    gap: calc(var(--side) * 0.07);
  }
  .poster > .brand img:first-child { height: calc(var(--side) * 0.36); max-height: 170px; }
  .poster > .brand img:last-child  { height: calc(var(--side) * 0.33); max-height: 156px; }

  .intro {
    grid-area: intro;
    padding: clamp(3rem, 5.5vw, 5.5rem) clamp(2rem, 5vw, 5rem) 2.5rem calc(var(--side) * 0.19);
  }
  .intro > * { max-width: 40rem; }
  h1 { font-size: clamp(2.6rem, 4.4vw, 4.75rem); margin-bottom: 2.25rem; }

  .info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3.25rem calc(var(--side) * 0.075) 0;
    overflow: visible;           /* Instrument ragt über die Spaltenkante */
  }
  .info__text { padding-bottom: 0; }

  .instrument {
    position: relative;
    z-index: 1;
    width: calc(var(--side) * 1.2464);         /* 208.2 / 167.04 */
    max-width: none;
    margin: auto 0 0 calc(var(--side) * -0.075);
    padding-top: 3rem;
  }

  .program {
    grid-area: program;
    padding: calc(var(--side) * 0.26) clamp(2rem, 5vw, 5rem) 4rem calc(var(--side) * 0.41);
  }
  .cast { display: grid; columns: auto; max-width: 30rem; }
  .cast li { padding-bottom: 0; }
  .stars--a {
    position: absolute;
    top: 0;
    left: calc(var(--side) * 0.13);
    width: calc(var(--side) * 0.42);
    margin: 0;
  }
  .stars--b {
    position: absolute;
    right: clamp(2rem, 6vw, 6rem);
    bottom: 3rem;
    width: calc(var(--side) * 0.42);
    margin: 0;
  }

  .site-footer { padding-left: calc(var(--side) * 0.075); }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* --------------------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.page-header { display: block; }
.page-header a { display: inline-flex; align-items: center; gap: 1.5rem; }

.legal {
  width: 100%;
  max-width: 46rem;
  padding: 2.5rem var(--gutter) 4rem;
  margin: 0 auto;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; margin: 2.25rem 0 0.5rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal .back { margin-bottom: 2rem; font-size: 0.9em; }
