/* painkillerDE — Website
   Design nach Visual Guide: Schwarz + Amber, schmale Versalien-Typo, viel Leere. */

:root {
  --bg:        #000000;
  --panel:     #0b0b0c;
  --panel-2:   #131315;
  --ink:       #e8e8e6;
  --muted:     #8f8f8c;
  --amber:     #d48c32;
  --amber-hi:  #e8a030;
  --line:      #232326;
  --maxw:      1120px;
  --head: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Oswald, Impact, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Scrollbar-Platz auf JEDER Seite reservieren — sonst rutscht der zentrierte
   Inhalt beim Wechsel von einer langen (mit Scrollbar) auf eine kurze Seite
   (ohne Scrollbar, z.B. Kontakt) um die Scrollbar-Breite nach rechts.
   overflow-y:scroll erzwingt die Spur zuverlaessig (scrollbar-gutter greift auf
   Root-Ebene nicht ueberall). */
html { scroll-behavior: smooth; overflow-y: scroll; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--amber); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--amber-hi); }

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

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

/* ---- Typografie ---- */
h1, h2, h3, .kicker, .nav-link, .btn, .logo {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 .3em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 0 0 .6em; letter-spacing: .08em; }
.kicker {
  font-size: .8rem; letter-spacing: .28em; color: var(--amber);
  margin: 0 0 1rem;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; letter-spacing: .18em; color: var(--ink);
}
.logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: .82rem; letter-spacing: .16em; color: var(--muted);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.lang-toggle {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .16em;
  font-size: .82rem; font-weight: 700;
  background: transparent; color: var(--amber);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 6px 12px; cursor: pointer; transition: all .2s ease;
}
.lang-toggle:hover { border-color: var(--amber); color: var(--amber-hi); }

/* Burger nur auf schmalen Screens (siehe Mobile-Block unten) */
.nav-burger { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: flex-start;
  /* Text-Block an der Oberkante proportional (vh) verankert, damit er auf jeder
     16:9-Auflösung im gleichen Abstand unter dem cover-skalierten Bild-Logo sitzt.
     Vorher unten (flex-end) verankert → Abstand driftete zwischen FullHD und 4K. */
  padding: 63vh 0 8vh; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.12) 42%, rgba(0,0,0,.60) 80%, #000 100%),
    url('../img/hero.jpg?v=3'), radial-gradient(circle at 50% 30%, #1a1206, #000);
  background-size: cover; background-position: center 42%;
  z-index: 0;
}
.hero::after { /* schmaler Amber-Lichtschimmer oben */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 40%;
  background: radial-gradient(ellipse at top, rgba(212,140,50,.16), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
/* Der Bild-Schriftzug ist die Headline — die H1 wird zur kleineren Tagline darunter. */
.hero h1 {
  font-size: clamp(1.3rem, 3vw, 2.15rem); line-height: 1.1;
  letter-spacing: .09em; margin: 0 0 .9rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.85);
}

/* ---- Seitenkopf-Banner (Unterseiten) ---- */
/* Schmaler Streifen mit dem TEXTFREIEN Hero (hero_blank) + Seitentitel —
   der Schriftzug lebt nur im Startseiten-Hero. */
.page-banner {
  position: relative; overflow: hidden;
  height: clamp(150px, 22vh, 250px);
  display: flex; align-items: flex-end;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.80) 100%),
    url('../img/hero_blank.jpg?v=1');
  background-size: cover; background-position: center 30%; /* Laterne + Lichtkegel */
  z-index: 0;
}
.page-banner .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 24px; }
.page-banner h1 {
  margin: 0; line-height: 1.05; text-align: right;
  font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: .06em;
  text-shadow: 0 2px 20px rgba(0,0,0,.9);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-size: .82rem; letter-spacing: .16em;
  padding: 13px 30px; border-radius: 2px; cursor: pointer;
  background: var(--amber); color: #120c02; border: 1px solid var(--amber);
  transition: all .2s ease;
}
.btn:hover { background: var(--amber-hi); color: #120c02; }
.btn.ghost { background: transparent; color: var(--amber); }
.btn.ghost:hover { border-color: var(--amber-hi); color: var(--amber-hi); }

/* ---- Sections ---- */
section { padding: 88px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.lead { color: var(--muted); max-width: 60ch; }

/* ---- Latest release teaser ---- */
.latest { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.latest img { border: 1px solid var(--line); }
@media (max-width: 640px){ .latest { grid-template-columns: 1fr; } }

/* ---- Music grid ---- */
.group-label {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .22em;
  font-size: .85rem; color: var(--amber); margin: 48px 0 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
/* Release-Einheit (EP/Album): Kopf mit Cover, Name, Track-Zahl */
.release-head {
  display: flex; align-items: center; gap: 18px;
  margin: 52px 0 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.release-cover {
  width: 76px; height: 76px; flex: none; object-fit: cover;
  border: 1px solid var(--line);
}
.release-meta { display: flex; flex-direction: column; gap: 4px; }
.release-name {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .18em;
  font-size: 1.05rem; color: var(--amber); line-height: 1.1;
}
.release-count {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 26px;
}
/* Karte: Cover / Titel / Teaser / Links als 4 Zeilen. Fallback ist Flexbox
   (Links unten buendig via margin-auto); mit subgrid (siehe unten) liegen alle
   vier Baender ueber die ganze Reihe hinweg exakt auf gleicher Hoehe. */
.card {
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card .cover { aspect-ratio: 1/1; background: var(--panel-2); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .title {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; font-size: 1.05rem; margin: 0; padding: 16px 16px 0; color: var(--ink);
}
.card .card-blurb {
  color: var(--muted); font-size: .82rem; line-height: 1.5;
  margin: 0; padding: 8px 16px 0; letter-spacing: .01em;
}
.card .links, .card .soon { padding: 14px 16px 18px; margin-top: auto; }

/* Perfekte Zeilen-Ausrichtung ueber alle Karten einer Reihe (CSS subgrid):
   Cover/Titel/Teaser/Links teilen sich je eine gemeinsame Zeilenhoehe. */
@supports (grid-template-rows: subgrid) {
  .card { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .card .cover { grid-row: 1; }
  .card .title { grid-row: 2; }
  .card .card-blurb { grid-row: 3; }
  .card .links, .card .soon { grid-row: 4; align-self: end; margin-top: 0; }
}

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.links a {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 5px 10px; border-radius: 2px;
  color: var(--muted);
}
.links a:hover { border-color: var(--amber); color: var(--amber); }
.links a.lyr { color: var(--amber); border-color: rgba(212,140,50,.45); }
.soon { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ---- Lyrics-Seiten ---- */
/* Song-Thumbnail (16:9, Titel im Bild) als grafischer Kopf mit JS-Parallax.
   bg-Layer am Bild-Top verankert (Titel bei Scroll 0 voll sichtbar), 125% hoch
   (Slack unten; die Amber-v2-Titel reichen bis ~75% Bildhoehe — mehr Slack
   wuerde sie unten anschneiden). main.js zieht ihn beim Scrollen gedaempft
   nach OBEN (Reveal-Drift, max 25%) — gap-frei, weil der Slack unten liegt.
   Unten Verlauf ins Seiten-Schwarz. */
.song-banner {
  position: relative; overflow: hidden;
  /* Max. 44vw: bg-Layer (125% Hoehe) bleibt dann <= 16:9 — das Thumb wird
     in voller Breite gezeigt (Titel im Bild!), nie seitlich beschnitten. */
  height: clamp(100px, 44vw, 500px);
  border-top: none;
}
.song-banner-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 125%;
  background-size: cover; background-position: center top;
  will-change: transform;
}
.song-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 62%, rgba(0,0,0,.72) 88%, #000 100%);
}
.lyrics-head { padding: 44px 0 40px; border-top: none; }
.lyrics-head h1 { font-size: clamp(1.7rem, 4.5vw, 3rem); margin: 0; line-height: 1.05; }
.song-blurb {
  color: var(--muted); max-width: 60ch; margin: 16px 0 0;
  font-size: 1rem; line-height: 1.55;
}
.lyrics-text { max-width: 62ch; }
.lyrics-text p { margin: 0 0 1.7em; }

/* ---- About ---- */
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--amber); font-size: .92rem; letter-spacing: .18em; margin: 42px 0 12px; }
.prose strong { letter-spacing: .01em; }
.prose .pullquote { margin: 48px 0; }
.pullquote {
  font-family: var(--head); text-transform: none; font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.3;
  color: var(--amber); border-left: 2px solid var(--amber);
  padding-left: 22px; margin: 40px 0; max-width: 40ch;
}

/* ---- Contact ---- */
.contact-mail {
  font-family: var(--head); text-transform: none; letter-spacing: .02em;
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; display: inline-block; margin: 10px 0 30px;
}
.socials { display: flex; gap: 22px; flex-wrap: wrap; }
.socials a { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line); padding: 54px 0 40px;
  color: var(--muted); font-size: .85rem;
}
.site-footer .fwrap { display: flex; flex-wrap: wrap; gap: 22px 40px; justify-content: space-between; align-items: flex-end; }
.footer-tagline {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink); font-size: 1rem; max-width: 30ch; margin: 0 0 14px;
}
.footer-ai { max-width: 40ch; margin: 6px 0 0; font-size: .78rem; }
.footer-social { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; }
.footer-social a {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; color: var(--amber);
}
.footer-social a:hover { color: var(--amber-hi); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a, .site-footer .muted { color: var(--muted); }
.footer-links a:hover { color: var(--amber); }

/* ---- Legal pages ---- */
.legal { padding-top: 56px; }
.legal h2 { margin-top: 34px; }
.legal p, .legal address { color: var(--muted); font-style: normal; max-width: 70ch; }

/* ---- Mobile: Navigation als Burger-Menü ---- */
/* Vorher brach die Nav-Zeile um (flex-wrap) und schob Logo/Links unsauber
   uebereinander. Jetzt: Logo + Burger in einer festen Zeile, Links klappen
   als vertikale Liste darunter auf (grosse Touch-Targets). */
@media (max-width: 719px){
  .nav { flex-wrap: wrap; gap: 0; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: 0; padding: 10px 4px; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center;
  }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .nav-burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2){ opacity: 0; }
  .nav-burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none; width: 100%;
    flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 6px 0 14px; margin-top: 10px; border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: .95rem; padding: 11px 0; width: 100%; }
  .lang-toggle { margin-top: 10px; padding: 10px 18px; }

  section { padding: 60px 0; }
  .links a { padding: 9px 14px; font-size: .78rem; } /* Touch-Targets */
  .lyrics-head { padding-top: 34px; }
}

/* ---- Mobile: Hero + Banner ohne abgeschnittenen Bild-Schriftzug ---- */
/* Der breite Querformat-Schriftzug im hero.jpg wird im Hochformat via cover
   seitlich beschnitten (Bild deckt per Höhe → kein vertikaler Spielraum, die
   Y-Position greift nicht). Auf schmalen Screens zeigen wir das Bild daher in
   voller Breite als Band oben (Schriftzug komplett sichtbar), Text darunter. */
@media (max-width: 640px){
  .hero {
    min-height: 72vh;
    align-items: flex-end;
    padding: 0 0 10vh;
  }
  .hero::before {
    background-color: #000;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 62%, #000 80%),
      url('../img/hero.jpg?v=3');
    background-size: auto, 100% auto;
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
  }

  /* Blanko-Banner hat keinen Schriftzug -> normales cover reicht auch mobil. */
  .page-banner { height: clamp(130px, 24vw, 180px); }
  .page-banner h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
}
