/* ==========================================================
   illegalefarben.de – Stylesheet
   Farben und Abstände zentral hier oben ändern.
   ========================================================== */

:root {
  --bg: #111111;
  --surface: #1b1b1b;
  --fg: #ecebe7;
  --muted: #9d9b96;
  --line: #2d2d2d;
  --accent: #d10fc4;          /* die eine „illegale Farbe“: Magenta aus dem Band-Logo */
  --gap: clamp(12px, 1.6vw, 20px);
  --max: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17, 17, 17, .84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 58px;
}
.brand {
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: .9375rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

/* ---------- Bandfoto oben ---------- */
.hero { position: relative; background: #000; }
.hero img {
  width: 100%;
  height: min(86vh, 62vw);
  min-height: 340px;
  object-fit: cover;
  object-position: 50% 62%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,0) 55%);
  pointer-events: none;
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding-bottom: clamp(22px, 4vw, 52px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 10.5vw, 9.5rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: #fff;
}
.hero .tagline {
  margin: .9rem 0 0;
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  color: #d9d7d2;
  max-width: 44ch;
}

/* ---------- Abschnitte ---------- */
.section { padding-top: clamp(56px, 8vw, 110px); }
.section:last-of-type { padding-bottom: clamp(64px, 9vw, 120px); }
.section-title {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.section-title::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Über die Band ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.about .lead {
  margin: 0 0 1.4rem;
  font-size: clamp(1.4rem, 2.7vw, 2.25rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
}
.about p { color: #d3d1cb; max-width: 62ch; }
.about blockquote {
  margin: 1.6rem 0 0; padding: 0 0 0 18px;
  border-left: 3px solid var(--accent);
  font-size: 1.15rem; font-style: italic; color: var(--fg);
}
.about blockquote footer { margin-top: .4rem; font-style: normal; font-size: .875rem; color: var(--muted); }
.bio { margin-top: 1.8rem; }
.bio summary {
  cursor: pointer; color: var(--muted); font-size: .9375rem;
  list-style: none; display: inline-flex; gap: 8px; align-items: center;
}
.bio summary::-webkit-details-marker { display: none; }
.bio summary::before { content: "+"; font-weight: 700; color: var(--accent); width: 1ch; }
.bio[open] summary::before { content: "–"; }
.bio summary:hover { color: var(--fg); }
.bio p { margin: .9rem 0 0; }

.release {
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 30px);
}
.release .kicker {
  margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.release h3 {
  margin: .35rem 0 .6rem;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95; letter-spacing: -.035em; text-transform: uppercase;
}
.release p { margin: 0 0 1.2rem; color: #d3d1cb; font-size: .98rem; }
.btn {
  display: inline-block;
  font-weight: 700; text-decoration: none;
  background: var(--accent); color: #fff;
  padding: 12px 18px;
}
.btn:hover { background: #fff; color: #111; }

.lineup { margin: 1.6rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lineup li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.lineup li span:last-child { color: var(--muted); text-align: right; }

/* ---------- Konzerte ----------
   Vergangene Termine verschiebt main.js automatisch nach unten in „Vergangene Konzerte“. */
.gigs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gig {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  gap: 6px 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.gig-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.gig-place { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.gig-place .venue { font-weight: 400; color: var(--muted); }
.gig-info { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.gig-link {
  justify-self: end;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--fg); padding: 7px 12px;
}
.gig-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.gigs-empty { margin: 0; padding: 18px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.gigs-empty[hidden] { display: none; }

.gigs-past { margin-top: 28px; }
.gigs-past summary {
  cursor: pointer; color: var(--muted); font-size: .9375rem;
  list-style: none; display: inline-flex; gap: 8px; align-items: center;
}
.gigs-past summary::-webkit-details-marker { display: none; }
.gigs-past summary::before { content: "+"; font-weight: 700; color: var(--accent); width: 1ch; }
.gigs-past[open] summary::before { content: "–"; }
.gigs-past summary:hover { color: var(--fg); }
.gigs-past .gigs { margin-top: 14px; }
.gigs-past .gig { padding: 10px 0; opacity: .7; }
.gigs-past .gig-place { font-size: 1.05rem; }
.gigs-past .gig-link { display: none; }

/* ---------- Links (Linktree) ---------- */
.links {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--gap);
}
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 700; text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.links a small { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.links a .arrow { font-weight: 400; color: var(--muted); }
.links a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.links a:hover small, .links a:hover .arrow { color: #fff; }

/* ---------- Videos ---------- */
.video-note { margin: 0 0 20px; font-size: .875rem; color: var(--muted); max-width: 70ch; }
.videos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gap);
}
.video { display: block; text-decoration: none; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .4s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.video-thumb::after {          /* Play-Symbol */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: background-color .2s;
}
.video:hover .video-thumb img, .video:focus-visible .video-thumb img { filter: none; transform: scale(1.04); }
.video:hover .video-thumb::after, .video:focus-visible .video-thumb::after { background-color: var(--accent); }
.video-title { display: block; margin-top: 8px; font-size: .95rem; font-weight: 700; line-height: 1.25; }
.video-meta { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }

@media (hover: none) {
  .video-thumb img { filter: none; }
}

/* Video-Player (öffnet sich erst nach Klick) */
.player {
  width: min(1100px, calc(100vw - 2 * var(--pad)));
  padding: 0; border: 0; background: #000; color: var(--fg);
}
.player::backdrop { background: rgba(0,0,0,.88); }
.player-frame { position: relative; aspect-ratio: 16 / 9; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg); font-size: .9rem; }
.player-bar a { color: var(--muted); }
.player-close {
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 0; padding: 7px 14px;
}
.player-close:hover { background: var(--accent); color: #fff; }

/* ---------- Kontakt / Newsletter ---------- */
.contact {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap);
}
.contact > div { border: 1px solid var(--line); padding: clamp(20px, 3vw, 30px); }
.contact h3 { margin: 0 0 .5rem; font-size: 1.4rem; letter-spacing: -.015em; }
.contact p { margin: 0 0 1rem; color: #d3d1cb; }
.contact p:last-child { margin-bottom: 0; }

/* ---------- Unterseiten ---------- */
.page { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 10vw, 140px); }
.page h1 {
  margin: 0 0 .5em;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: .95; letter-spacing: -.045em; text-transform: uppercase;
}
.page h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.2em 0 .5em; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: #d3d1cb; }
.intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; line-height: 1.45; }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: .875rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Handy ---------- */
@media (max-width: 620px) {
  .brand { font-size: .9375rem; letter-spacing: .02em; }
  .nav { gap: 12px; font-size: .875rem; }
  /* Quadratisches Foto: Bandname oben im hellen Himmel, dunkel auf hell */
  .hero img { height: auto; aspect-ratio: 1; min-height: 0; object-position: 50% 50%; }
  .hero::after { background: linear-gradient(to bottom, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 40%); }
  .hero-text { top: 0; bottom: auto; padding-top: 22px; padding-bottom: 0; }
  .hero h1 { color: #111; font-size: clamp(3rem, 17vw, 5rem); }
  .hero .tagline { display: none; }
  .gig { grid-template-columns: 1fr auto; }
  .gig-date { grid-column: 1 / -1; }
  .links, .contact { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .video-title { font-size: .875rem; }
}
@media (max-width: 350px) {
  .nav a[href$="#links"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
