/* ===========================
   Panimo – Website Styles
   =========================== */

:root {
  color-scheme: dark;

  /* Fixed colors — never change with color scheme */
  --rust:        #C4622D;
  --blue:        #7A9EB8;
  --cream:       #F0EDE6; /* always light, for elements on dark backgrounds */
  --muted-hero:  rgba(240, 237, 230, 0.45); /* always light, for hero overlay */

  /* Theme colors — dark by default */
  --bg:       #141419;
  --bg-alt:   #1b1b22;
  --bg-nav:   rgba(20, 20, 25, 0.88);
  --text:     #F0EDE6;
  --muted:    rgba(240, 237, 230, 0.45);
  --border:   rgba(240, 237, 230, 0.09);

  --serif: 'Syne', system-ui, sans-serif;
  --sans:  'Manrope', system-ui, sans-serif;

  --nav-h: 58px;
  --pad-x: clamp(22px, 5vw, 72px);
  --pad-y: clamp(72px, 9vw, 130px);
  --max-w: 1140px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  flex-shrink: 0;
  transition: color 0.35s;
}

.nav.is-scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.6);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cream); }

/* After scrolling: adapt to color scheme */
.nav.is-scrolled .nav-links a { color: var(--muted); }
.nav.is-scrolled .nav-links a:hover { color: var(--text); }

.nav-ig {
  display: flex;
  align-items: center;
  margin-left: 0.25rem;
}

.nav-ig:hover { color: var(--rust) !important; }
.nav.is-scrolled .nav-ig:hover { color: var(--rust) !important; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}

.nav-burger span {
  display: block;
  width: 21px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.35s ease;
  transform-origin: center;
}

.nav.is-scrolled .nav-burger span { background: var(--text); }

.nav-burger.is-open span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

.nav:has(.nav-burger.is-open) .nav-logo { color: var(--text); }
.nav:has(.nav-burger.is-open) .nav-burger span { background: var(--text); }

/* ===========================
   Mobile Menu
   =========================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 10vw, 4rem);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.55em 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-link:first-child { border-top: 1px solid var(--border); }
.mobile-link:hover { color: var(--rust); }

.mobile-social {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.mobile-ig {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  animation: zoomOut 9s ease-out forwards;
}

@media (max-width: 600px) {
  .hero-img { object-position: 43% 30%; }
}

@keyframes zoomOut {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20,20,25,0.97) 0%, rgba(20,20,25,0.55) 40%, rgba(20,20,25,0.15) 75%, transparent 100%),
    linear-gradient(to right, rgba(20,20,25,0.3) 0%, transparent 60%);
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--pad-x);
  padding-bottom: clamp(60px, 10vw, 110px);
  animation: fadeUp 1s ease-out 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 13vw, 10.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.dot {
  font-style: normal;
  margin: 0 0.7em;
  color: var(--rust);
  opacity: 0.8;
}

.hero-down {
  position: absolute;
  bottom: 2.2rem;
  right: var(--pad-x);
  z-index: 2;
  color: var(--muted-hero);
  display: flex;
  transition: color 0.2s, transform 0.25s;
  animation: fadeUp 1s ease-out 1s both;
}

.hero-down:hover {
  color: var(--cream);
  transform: translateY(5px);
}

/* ===========================
   Sections – shared
   =========================== */
.section {
  padding: var(--pad-y) var(--pad-x);
}

.section--alt {
  background: var(--bg-alt);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: clamp(36px, 5vw, 60px);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.num {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--rust);
}

.section-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Wer weniger Bewegung eingestellt hat, bekommt die Inhalte sofort und still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Utility */
.label-small {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.25rem;
}

.link-rust {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline-offset: 3px;
}

.btn--fill {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
}
.btn--fill:hover {
  background: #d16c35;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--rust);
  color: var(--rust);
}

/* ===========================
   Musik
   =========================== */
.album {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.album-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  width: min(420px, 80vw);
  flex-shrink: 0;
}

.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.album-photo:hover img {
  transform: scale(1.03);
}

.album-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album-title-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  margin-bottom: 1rem;
}

.album-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.album-year {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.album-format {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.album-desc {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.2rem;
  max-width: 44ch;
}

/* ===========================
   Live
   =========================== */
.gig-groups {
  --gig-day-col: 2.9rem;
}

/* Jahr – echte Chronologie, keine erfundene Zaehlung */
.gig-year {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 2.8rem 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.gig-year::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.gig-year:first-of-type { margin-top: 0; }

.gig-list { width: 100%; }

.gig-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--gig-day-col) 1fr auto;
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

/* Datum wie auf einem Konzertplakat: Tag gross, Monat klein darunter */
.gig-date {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.gig-day {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gig-month {
  margin-top: 0.34rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.gig-place {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.gig-venue-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

/* Verweis auf die Venue-Seite. Blau, nicht Rost: Rost ist die Handlung
   (Tickets kaufen), Blau die Information. So sind die zwei Links in einer
   Zeile unterscheidbar. */
.gig-venue-link {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--blue);
  opacity: 0.75;
  /* Padding vergroessert die Trefferflaeche auf ~24px, der negative Margin
     nimmt sie aus dem Layout wieder heraus – der Pfeil sitzt also weiter
     direkt am Namen, ist aber auf dem Handy zu treffen. */
  padding: 0.45rem;
  margin: -0.45rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gig-venue-link:hover,
.gig-venue-link:focus-visible {
  opacity: 1;
  transform: translate(1px, -1px);
}

.gig-venue-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.gig-venue {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.gig-city {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Tickets – die einzige Rostfarbe hier, weil Rost fuer Handlung steht.
   Dauerhafter Unterstrich: das universelle Signal fuer einen Link. */
.gig-ticket {
  grid-column: 3;
  align-self: baseline;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--rust);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}

.gig-ticket svg { transition: transform 0.2s ease; }

.gig-ticket:hover,
.gig-ticket:focus-visible { color: var(--text); }
.gig-ticket:hover svg { transform: translate(2px, -2px); }
.gig-ticket:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* "Eintritt frei" steht an derselben Stelle wie der Ticket-Link, darf aber
   auf keinen Fall wie einer aussehen: kein Unterstrich, kein Rost. Rost ist
   der Handlung vorbehalten, das hier ist reine Information. */
.gig-free {
  grid-column: 3;
  align-self: baseline;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  /* Etwas kraeftiger als --muted: bei 11px Grossbuchstaben kaeme --muted nur
     auf ~4.3:1 Kontrast, knapp unter WCAG AA. Hier sind es ~6.4:1. */
  color: rgba(240, 237, 230, 0.62);
}

.gig-noscript {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52ch;
}

/* Vergangene Termine bleiben als Referenz stehen, treten aber zurueck.
   Ticket-Link und "Eintritt frei" entfernt live.js bei ihnen komplett. */
.gig-item--past { opacity: 0.42; }

/* Die Termine setzen sich gestaffelt, nicht alle auf einen Schlag.
   Nur transform – das Einblenden macht die Sektion selbst. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes gigSettle {
    from { transform: translateY(10px); }
    to   { transform: none; }
  }
  .reveal.is-visible .gig-item {
    animation: gigSettle 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
  }
}

@media (max-width: 620px) {
  .gig-item {
    grid-template-columns: var(--gig-day-col) 1fr;
    row-gap: 0.55rem;
  }
  .gig-ticket,
  .gig-free {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
}

/* ===========================
   Video
   =========================== */
.yt-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-alt);
}

.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-consent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.yt-consent-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  max-width: 380px;
}

.yt-consent-inner p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.yt-privacy-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yt-privacy-link:hover { color: var(--text); }

/* Footer links */
.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ===========================
   Presse
   =========================== */
.presse-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.presse-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.presse-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(25%);
  transition: filter 0.5s ease;
}
.presse-photo-wrap:hover .presse-photo { filter: grayscale(0%); }

.presse-text-col { display: flex; flex-direction: column; gap: 0; }


.presse-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.82;
  margin-bottom: 1.4rem;
}

.lineup {
  margin: 1.8rem 0 2.2rem;
  padding: 1.4rem 1.5rem;
  border-left: 2px solid var(--rust);
  background: rgba(196, 98, 45, 0.05);
}

.lineup p {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.2rem 0;
  letter-spacing: 0.03em;
}

/* ===========================
   Kontakt
   =========================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 60px);
}

.kontakt-block { display: flex; flex-direction: column; gap: 0.5rem; }

.kontakt-mail {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: var(--text);
  word-break: break-all;
  transition: color 0.2s;
}
.kontakt-mail:hover { color: var(--rust); }

.kontakt-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.kontakt-lineup {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.9;
}

.kontakt-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s;
}
.kontakt-social:hover { color: var(--rust); }

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 2rem var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-imp {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-imp:hover { color: var(--text); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .presse-layout,
  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .presse-photo-wrap {
    position: static;
    aspect-ratio: 4 / 3;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (min-width: 821px) and (max-width: 1060px) {
  .kontakt-grid { grid-template-columns: 1fr 1fr; }
}
