/* ==========================================================
   Business meets Nightlife – HKON 2026
   Farben & Gestaltung angelehnt an die Einladungskarte
   ========================================================== */

/* Open Sans (variable, 300–800), lokal eingebunden */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --line: #262626;
  --pink: #e6007e;
  --pink-glow: rgba(255, 30, 160, 0.75);
  --text: #f2f2f2;
  --text-muted: #b4b4b4;

  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1em; }

strong { font-weight: 700; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

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

/* ---------- Button ---------- */

.btn {
  display: inline-block;
  padding: 0.85em 2em;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 0 0 0 var(--pink-glow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  box-shadow: 0 0 28px 2px var(--pink-glow);
  transform: translateY(-1px);
}

.btn--large { font-size: 1.125rem; }

/* ---------- Logo ---------- */

.logo {
  width: 7.5rem;
  height: auto;
}

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

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0 auto 0 0;
  width: 66%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
}

/* weicher Übergang des Bildes in den nächsten Abschnitt */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: brightness(0.5) saturate(1.05);
}

.hero__inner {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 6rem var(--gutter) 9rem; /* unten Platz für den Scroll-Hinweis */
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2rem;
}

/* Claim links */

.hero__claim p {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero__claim::after {
  content: "";
  display: block;
  width: 7.5rem;
  height: 2px;
  margin-top: 1.5rem;
  background: var(--pink);
}

/* Titel rechts */

.hero__event {
  justify-self: end;
  width: min(100%, 50rem);
}

/* Wortmarke aus den SVG-Bausteinen der Karte.
   Prozentwerte bei margin beziehen sich auf die Breite von .title,
   dadurch skaliert die Komposition als Ganzes. */
.title {
  position: relative;
  margin: 0;
  width: 100%;
}

.title__business {
  width: 100%;
  filter: brightness(0.24); /* weißes SVG -> deckendes Dunkelgrau wie auf der Karte */
}

.title__meets {
  position: absolute;
  z-index: 1;
  top: 37%;
  left: 39.5%;
  width: 12.5%;
}

.title__nightlife {
  position: relative;
  display: flow-root; /* verhindert, dass die negativen Bildränder "durchrutschen" */
  width: 84%;
  margin: -12% 0 0 0.5%;
  /* Der Neon-Schein steckt in nightlife-neon.svg selbst (SVG-Filter) –
     ein CSS-Filter fiel auf Mobilgeräten zusammen mit dem Flackern aus. */
  /* Einschalten beim Laden, danach kurzes Flackern alle 7 s */
  animation:
    neon-on 1.6s ease-out 0.3s both,
    neon-flicker-a 7s step-end 4s infinite;
}

/* Zweiter Flacker-Rhythmus (11 s) – zusammen mit den 7 s ergibt sich
   ein unregelmäßiges Muster, das sich erst nach ca. 77 s wiederholt. */
/* Die SVG hat ringsum 40 Einheiten Rand für den Schein (Schriftzug: 387 breit);
   negative Ränder gleichen das aus, damit der Schriftzug selbst
   genau 100 % der Box füllt. */
.title__nightlife img {
  width: calc(100% * 467 / 387);
  max-width: none;
  margin: calc(-100% * 40 / 387) 0 calc(-100% * 40 / 387) calc(-100% * 40 / 387);
  animation: neon-flicker-b 11s step-end 6.5s infinite;
}

@keyframes neon-on {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  16%  { opacity: 0.2; }
  22%  { opacity: 1; }
  28%  { opacity: 0.35; }
  40%  { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes neon-flicker-a {
  0%   { opacity: 1; }
  1%   { opacity: 0.35; }
  1.6% { opacity: 1; }
  2.4% { opacity: 0.55; }
  3%   { opacity: 1; }
}

@keyframes neon-flicker-b {
  0%    { opacity: 1; }
  60%   { opacity: 0.3; }
  60.6% { opacity: 0.9; }
  61.2% { opacity: 0.4; }
  62%   { opacity: 1; }
}

/* Raster: Datum + Ort links, Logo rechts mittig zu diesen beiden Zeilen,
   Button darunter bündig mit dem Datum */
.hero__meta {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  align-items: center;
  column-gap: 2.25rem;
  margin-top: 0.5rem;
}

.hero__when { display: contents; }

.hero__meta .logo {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hero__date {
  grid-column: 1;
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.3;
}

.hero__venue {
  grid-column: 1;
  margin: 0.2em 0 0;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.hero__when .btn {
  grid-column: 1;
  justify-self: start;
  margin-top: 2rem;
}

/* Scroll-Hinweis unten im Hero: pinker Pfeil, wippt leicht auf und ab */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: block;
  padding: 0.75rem;
  color: var(--pink);
}

.scroll-hint svg {
  display: block;
  width: 2.75rem;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--pink-glow));
  animation: scroll-bob 2s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* ==========================================================
   PROGRAMM
   ========================================================== */

.program { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.section-title {
  margin: 0 0 3rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--pink);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}

.timeline__item {
  position: relative;
  padding: 0 0 3rem 2.25rem;
  border-left: 1px solid #3a3a3a;
}

.timeline__item:last-child { padding-bottom: 0.5rem; }

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--pink);
}

.timeline__item--night::before {
  background: var(--pink);
  box-shadow: 0 0 12px 2px var(--pink-glow);
}

.timeline__time {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--pink);
}

.timeline__title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
}

.timeline__title span {
  display: block;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.timeline__item p:not(.timeline__time) {
  color: #d6d6d6;
}

.timeline__item p:last-child { margin-bottom: 0; }

.timeline__item .timeline__kicker {
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

/* ==========================================================
   TICKETS
   ========================================================== */

.tickets {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.tickets__inner > * { max-width: 50rem; }

.tickets__title {
  margin: 0 0 2rem;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  color: var(--pink);
}

.tickets__intro,
.tickets__outro { color: #d6d6d6; }

.prices {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 0;
}

.price {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 2.5rem;
  border-left: 1px solid #4a4a4a;
}

.price:first-child {
  padding-left: 0;
  border-left: 0;
}

.price__amount {
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.price__currency { margin-left: 0.15em; }

.price--early .price__amount { color: var(--pink); }

.price__label {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.price__label sup { font-size: 0.7em; }

.price__note {
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tickets__slogan {
  margin: 1.75rem 0 2.25rem;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: #fff;
}

.tickets__footnote {
  margin: 2.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #8c8c8c;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}

.footer__event {
  margin: 0;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__legal a:hover { color: #fff; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 860px) {
  .hero {
    align-items: flex-start;
    min-height: 0;
  }

  .hero__bg {
    inset: 0 0 auto 0;
    width: 100%;
    height: 50svh;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    padding-top: 16svh;
    padding-bottom: 4rem;
  }

  .hero__event { justify-self: stretch; }

  .scroll-hint { display: none; }

  .hero__meta {
    justify-content: space-between;
    column-gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .price {
    flex: 1 1 100%;
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid #3a3a3a;
  }

  .price:first-child { border-top: 0; padding-top: 0; }

  .hero__meta .logo { display: none; }

  .footer__legal { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title__nightlife,
  .title__nightlife img { animation: none; }
  .scroll-hint svg { animation: none; }
  .btn { transition: none; }
}
