/* Just Whisky Hamburg – Basis-Layout, Typografie, Grundkomponenten.
   Baut auf tokens.css auf. Gestaltung nach docs/design/Main.dc.html + design-system.md. */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blau); font-weight: 600; text-underline-offset: 2px; }
a:hover { color: var(--rot-text); }

/* Überschriften – Bitter 800; H2/H3 in Großbuchstaben (Markenregel) */
h1, h2, h3 { font-weight: 800; line-height: 1.05; margin: 0 0 .5em; color: var(--blau); }
h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(36px, 4.2vw, 60px); text-transform: uppercase; }
h3 { font-size: 26px; text-transform: uppercase; }

p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 20px; }

/* Layout */
.inhalt { max-width: var(--inhalt-max); margin-inline: auto; padding-inline: var(--rand); }
.sektion { padding-block: var(--sektion-y); }
.sektion--papier {
  background-color: var(--papier);
  background-image: url("/static/jwh/img/papier.e34ea4140aea.jpg");
  /* Textur kacheln statt hochskalieren – sonst wird sie auf langen Seiten pixelig */
  background-size: 1568px auto;
  background-repeat: repeat;
  background-position: top center;
}
.sektion--weiss { background: var(--weiss); }
.sektion--blau { background: var(--blau); color: var(--text-auf-blau); }
.sektion--blau h1,
.sektion--blau h2,
.sektion--blau h3 { color: var(--weiss); }

/* Kopf / Navigation */
.kopf { background: var(--weiss); border-bottom: 1px solid rgba(0, 64, 112, .12); }
.kopf__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 14px;
}
.kopf__logo { display: block; line-height: 0; }
.kopf__logo img { height: 76px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--blau); text-decoration: none; padding: 8px 2px; }
.nav a:hover { color: var(--rot-text); }
.nav__ticket {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  background: var(--rot); color: var(--weiss) !important;
}
.nav__ticket:hover { background: #c01f27; color: var(--weiss) !important; }

/* Mobiles Menü */
.kopf__menue {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.kopf__menue span { display: block; height: 3px; background: var(--blau); border-radius: 2px; }
@media (max-width: 760px) {
  .kopf__inner { flex-wrap: wrap; }
  .kopf__logo img { height: 60px; }
  .kopf__menue { display: flex; }
  .nav {
    flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; display: none;
  }
  .nav--offen { display: flex; }
  .nav a { padding: 14px 2px; border-top: 1px solid rgba(0, 64, 112, .12); }
  .nav__ticket { justify-content: center; margin-top: 10px; border-top: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font); font-weight: 800; font-size: 18px;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn--primaer { background: var(--rot); color: var(--weiss); box-shadow: 0 6px 16px rgba(90, 20, 10, .25); }
.btn--primaer:hover { color: var(--weiss); background: #c01f27; }
.btn--gross { min-height: 58px; padding: 0 34px; font-size: 19px; }
.btn--sekundaer { background: var(--blau); color: var(--weiss); }
.btn--sekundaer:hover { color: var(--weiss); background: #003257; }

/* Foto im weißen Rahmen („Polaroid") */
.foto { background: var(--weiss); padding: 10px 10px 12px; box-shadow: var(--schatten-foto); display: inline-block; }
.foto img { width: 100%; }
.foto__unter { font-style: italic; font-size: 16px; color: var(--blau); margin: 8px 2px 0; }
.sektion--blau .foto { box-shadow: var(--schatten-foto-blau); }

/* Gerissene Papierkante (Markup: jwh/_riss.html) */
.riss { position: absolute; left: 0; bottom: -1px; width: 100%; height: 36px; line-height: 0; pointer-events: none; }
.riss svg { display: block; width: 100%; height: 100%; }
.riss--oben { bottom: auto; top: -1px; transform: scaleY(-1); }

/* Fußbereich – nach Vorlage (blau, vier Spalten + Rechtliches) */
.fuss { background: var(--blau); color: var(--text-auf-blau); padding-block: 64px 36px; }
.fuss__raster {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px; font-size: 16px; line-height: 1.6;
}
.fuss__spalte { display: flex; flex-direction: column; gap: 6px; }
.fuss__titel { font-weight: 800; font-size: 18px; color: var(--weiss); }
.fuss__spalte p { margin: 0; max-width: none; }
.fuss a { color: var(--weiss); }
.fuss__recht {
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 22px; margin-top: 40px;
}
.fuss__folgt { color: var(--nebeninfo-auf-blau); font-style: italic; }

/* Hilfen */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:where(a, button):focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }

/* =========================================================== Unterseiten */
.seite__inner { max-width: 1000px; padding-block: 56px 88px; }
.seite__kopf { margin-bottom: 44px; }
.seite__kopf h1 { margin: 0 0 .25em; }
.seite__kopf .lead { margin: 0; max-width: 60ch; }
.seite__text { font-size: 18px; max-width: 70ch; }
.seite__text h2 { margin: 1.4em 0 .4em; }
.seite__text h3 { margin: 1.2em 0 .3em; }
.seite__text ul, .seite__text ol { padding-left: 1.3em; }
.seite__link { color: var(--blau); font-weight: 600; }
body.seite main { padding-bottom: 72px; }

/* Ausstellerseite */
.ausst__liste { display: flex; flex-direction: column; gap: 26px; }
.ausst { background: var(--weiss); padding: 28px 30px; box-shadow: var(--schatten-karte); border-left: 4px solid rgba(0, 64, 112, .25); }
.ausst--gast { border-left-color: var(--rot); }
.ausst__kopf { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ausst__stand { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 50px; padding: 0 10px; background: var(--blau); color: var(--weiss); font-weight: 800; font-size: 20px; }
.ausst__logo { flex: 0 0 auto; width: 92px; padding: 6px; }
.ausst__logo img { width: 100%; aspect-ratio: 11 / 7; object-fit: cover; }
.ausst__titel { min-width: 0; }
.ausst__name { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.ausst__meta { margin: 5px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.ausst__region { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--rot-text); }
.ausst__gast { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--weiss); background: var(--rot); padding: 2px 9px; }
.ausst__blurb { margin: 16px 0 0; color: var(--blau); font-weight: 600; font-size: 19px; }
.ausst__text { margin: 10px 0 0; }
.ausst__text p { margin: 0 0 .6em; }
.ausst__fotos { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.ausst__foto { margin: 0; width: clamp(140px, 30%, 220px); padding: 8px; }
.ausst__foto img { width: 100%; aspect-ratio: 11 / 8; object-fit: cover; }
.ausst__fuss { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ausst__folgt { font-style: italic; color: var(--text); opacity: .6; font-size: 15px; }
.ausst__planwrap { margin-top: 64px; }
.ausst__plan { display: block; padding: 12px; margin: 16px 0 0; }
.ausst__plan img { width: 100%; }
.ausst__outro { margin-top: 28px; font-style: italic; color: var(--rot-text); }

/* Galerie-Seite */
.galerie__gitter { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 26px; }
.galerie__foto { margin: 0; width: clamp(260px, 31%, 400px); padding: 12px 12px 14px; }
.galerie__foto img { width: 100%; aspect-ratio: 35 / 27; object-fit: cover; }
.galerie__foto:nth-child(3n+1) { transform: rotate(-2deg); }
.galerie__foto:nth-child(3n+2) { transform: rotate(1.5deg); }

/* Zoom-Button um Bilder */
.bild-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bild-zoom img { width: 100%; display: block; transition: transform .25s ease; }
.bild-zoom:hover img { transform: scale(1.02); }

/* ================================================================ Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(14, 9, 4, .93); padding: 24px; }
.lightbox.ist-offen { display: flex; }
.lightbox__inhalt { max-width: 94vw; }
.lightbox__inhalt img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; display: block; margin: 0 auto; background: #fff; padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.lightbox__cap { margin: 14px 0 0; text-align: center; color: #efe3d1; font-style: italic; font-size: 16px; }
.lightbox__zu, .lightbox__nav {
  position: absolute; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: #fff; border: 0; cursor: pointer; font-size: 30px; line-height: 1;
}
.lightbox__zu:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__zu { top: 16px; right: 16px; }
.lightbox__nav--zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--vor { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
  .lightbox__nav--zurueck { left: 20px; }
  .lightbox__nav--vor { right: 20px; }
}

/* ======================================================= Sticky-Ticketbalken */
.ticketbalken {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--blau); color: var(--weiss);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .28);
  transform: translateY(100%); transition: transform .3s ease;
}
.ticketbalken.ist-sichtbar { transform: none; }
.ticketbalken__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.ticketbalken__text { font-weight: 600; font-size: 16px; }
.ticketbalken__text b { color: var(--akzent-auf-blau); font-weight: 800; }
.ticketbalken .btn--primaer { white-space: nowrap; min-height: 48px; }
@media (max-width: 560px) {
  .ticketbalken__lang { display: none; }
  .ticketbalken__text { font-size: 14px; }
  .ticketbalken .btn--primaer { padding: 12px 18px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticketbalken { transition: none; }
  .bild-zoom img { transition: none; }
}

/* Ruhigere Überschriften auf Inhalts-/Rechtsseiten (lange Texte) */
.seite__text h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
.seite__text h3 { font-size: 19px; margin-top: 1.3em; }

/* ========================================================= Unterseiten-Teaser */
.seiten-teaser { position: relative; padding-block: 52px 84px; }
.seiten-teaser__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 60px; }
.seiten-teaser__text { flex: 1 1 400px; min-width: 0; }
.seiten-teaser .home__datum { margin: 0 0 12px; font-size: 17px; }
.seiten-teaser__text h1 { margin: 0 0 30px; }
.seiten-teaser .home__cd { margin: 0 0 30px; }
.seiten-teaser__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin: 0; }
.seiten-teaser__foto { flex: 1.1 1 380px; min-width: 0; }
.seiten-teaser__foto .foto { display: block; transform: rotate(1deg); }
.seiten-teaser__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Countdown-Karte (auch auf Unterseiten verfügbar) */
.home__cd { align-self: flex-start; display: inline-flex; flex-direction: column; gap: 12px; margin: 2px 0; padding: 16px 24px 18px; background: var(--papier-hell); border: 1px solid rgba(0, 64, 112, .18); box-shadow: 0 10px 24px rgba(60, 35, 5, .18); transform: rotate(-.6deg); }
.home__cd-cap { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rot-text); padding-bottom: 11px; border-bottom: 2px dashed rgba(0, 64, 112, .3); }
.home__cd-row { display: flex; gap: 22px; }
.home__cd-feld { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.home__cd-feld b { font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; color: var(--blau); font-variant-numeric: tabular-nums; }
.home__cd-feld span { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--rot-text); }
@media (max-width: 820px) {
  .home__cd-row { gap: 14px; }
  .home__cd-feld b { font-size: 32px; }
}

/* Aussteller als Raster (Logo-Kacheln) */
.seite__intro { margin: 0 0 28px; max-width: 62ch; }
.seite__text { margin-top: 4px; }
.ausst__planwrap { margin-top: 8px; }
.ausst__planwrap h2 { margin: 0 0 20px; }
.ausst__h2 { margin: 56px 0 28px; }
.ausst__gitter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.ausst-karte { position: relative; display: flex; flex-direction: column; background: var(--weiss); box-shadow: var(--schatten-karte); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ausst-karte:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60, 35, 5, .2); }
.ausst-karte--gast { outline: 3px solid var(--blau); outline-offset: -3px; }
.ausst-karte__stand { position: absolute; top: 0; left: 0; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 9px; background: var(--blau); color: var(--weiss); font-weight: 800; font-size: 16px; }
.ausst-karte__logo { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: var(--weiss); padding: 20px; border-bottom: 1px solid rgba(0, 64, 112, .08); }
.ausst-karte__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ausst-karte__mono { font-weight: 800; font-size: 40px; color: var(--blau); opacity: .3; letter-spacing: .04em; }
.ausst-karte__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; }
.ausst-karte__name { font-weight: 800; font-size: 19px; color: var(--blau); line-height: 1.2; }
.ausst-karte__region { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--rot-text); }
.ausst-karte__gast { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--weiss); background: var(--rot); padding: 2px 8px; }
.ausst-karte__body .home__textlink { margin-top: 4px; font-size: 15px; }
