/* FONTS */
@font-face { font-family: Geist; src: url('fonts/Geist-Light.ttf') format("truetype"); font-display: swap; }
@font-face { font-family: GeistSemiBold; src: url('fonts/Geist-SemiBold.ttf') format("truetype"); font-display: swap; }
@font-face { font-family: GeistMedium; src: url('fonts/Geist-Medium.ttf') format("truetype"); font-display: swap; }
@font-face { font-family: GeistBlack; src: url('fonts/Geist-Black.ttf') format("truetype"); font-display: swap; }

:root {
  --bg: #000;
  --fg: #f2f2f2;
  --card: rgba(255, 255, 255, 0.72);
  --tag: rgba(46, 46, 46, 0.85);
  --gutter: clamp(1rem, 4vw, 3rem);
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.6 Geist, system-ui, sans-serif;
  letter-spacing: 0.03em;
}
img { max-width: 100%; }

a { font-family: GeistMedium; color: inherit; text-decoration: none; transition: 0.3s; }
@media (hover: hover) { a:hover { text-transform: uppercase; } }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; padding: 0.75rem 1rem; background: #fff; color: #000; z-index: 100; }
.skip:focus { left: 0; }

h2 { font-family: GeistMedium; line-height: 1.3; margin: 0; }
p { margin: 0; }

/* LOGO (fix oben links) */
.logo {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 90;
  width: clamp(110px, 18vw, 200px);
}
.logo img { display: block; width: 100%; height: auto; margin-left:5px; }

/* HERO */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem 1rem 2rem;
  background: rgba(0, 0, 0, 0.6) url(img/janapasst_bg.jpg);
  background-size: cover;
  background-blend-mode: darken;
}

/* GLITCH */
.glitch { position: relative; width: min(90%, 640px); margin: 0; }
.glitch img { display: block; width: 100%; height: auto; }
.glitch::before, .glitch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("img/janapasst_logo_rgb.svg") center / contain no-repeat;
}
.glitch::after { left: 2px; filter: drop-shadow(-1px 0 red); animation: noise-anim 2s infinite linear alternate-reverse; }
.glitch::before { left: -2px; filter: drop-shadow(1px 0 blue); animation: noise-anim-2 15s infinite linear alternate-reverse; }

@keyframes noise-anim {
  0%   { clip-path: inset(12% 0 61% 0); }
  16%  { clip-path: inset(80% 0 3% 0); }
  33%  { clip-path: inset(34% 0 42% 0); }
  50%  { clip-path: inset(5% 0 78% 0); }
  66%  { clip-path: inset(62% 0 15% 0); }
  83%  { clip-path: inset(90% 0 2% 0); }
  100% { clip-path: inset(20% 0 55% 0); }
}
@keyframes noise-anim-2 {
  0%   { clip-path: inset(55% 0 22% 0); }
  16%  { clip-path: inset(18% 0 66% 0); }
  33%  { clip-path: inset(73% 0 11% 0); }
  50%  { clip-path: inset(2% 0 88% 0); }
  66%  { clip-path: inset(85% 0 6% 0); }
  83%  { clip-path: inset(28% 0 50% 0); }
  100% { clip-path: inset(66% 0 18% 0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* INTRO + PLAYER */
main { animation: fadeIn 1.5s ease-in; }
.intro { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.lead {
  max-width: 36ch;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  text-wrap: balance;
}
.slogan { text-align: center; letter-spacing: 0.2em; margin-bottom: clamp(2rem, 6vw, 4rem); }
.players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2.80rem;
  max-width: 1400px;
  margin: 0 auto;
}
.player { width: 100%; height: 166px; border: 0; border-radius: 20px; }

/* GIGS */
.gigs {
  display: grid;
  gap: 3rem;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}
.gigs h2 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 1rem; }
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 2.8rem;
}
.event { color: #fbfbfb; border-radius: 20px; padding: 1.25rem; border:solid; border-width: 1px; }
.location { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; min-height: 44px; }
.ename { text-transform: uppercase; margin: 0.25rem 0; }
.euhrz { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.edatum { font-weight: 700; color: #fbfbfb; border-radius: 7px; padding: 0.1rem 0.4rem; border:solid; border-width: 1px; }

/* FLOATING BUTTONS */
.float {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.9rem;
  color: #fff;
  mix-blend-mode: difference;
}
.booking { left: max(32px, env(safe-area-inset-left)); text-transform: uppercase; }
.totop { right: max(32px, env(safe-area-inset-right)); }

/* FOOTER */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem var(--gutter) 0;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  font-size: 0.85rem;
  text-transform: uppercase;
}
footer a { display: inline-block; padding: 0.35rem 0; }

/* IMPRINT */
.legal { max-width: 60ch; margin: 0 auto; padding: 8rem var(--gutter) 2rem; }
.legal h1 { font: 1.5rem/1.3 GeistMedium; text-transform: uppercase; margin: 0 0 1.5rem; }
.legal p { margin-bottom: 1.5rem; }

/* MOBILE / TABLET */
@media (max-width: 600px) {
  .slogan { margin-bottom: clamp(2rem, 23vw, 11rem); }
  .logo img { margin-left: 0px; }
  .booking { left: max(11px, env(safe-area-inset-left)); }
  .totop { right: max(11px, env(safe-area-inset-right)); }
  footer { flex-direction: column; align-items: center; text-align: center; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .glitch::before, .glitch::after { display: none; }
}
