/* ============================================================
   Glowing Tones — Link-Pages (links.glowingtones.com)
   Design: Claude-Design-Prototyp „Link Page Template" (Aug 2026)
   Farben: BG #f2f0ec · Text #0a0a0a · Muted #6b6b67
           Linien #c9c6c0 / #b9b6b0 · Footer #8d8a85
   ============================================================ */

/* Space Grotesk – self-hosted (DSGVO, kein Google-CDN); Variable Font,
   Kopie aus 16.01 (jeyy.de-Markenschrift). Nur für den Titel,
   alles andere bleibt im Helvetica-Systemstack */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-variable-normal-latin.woff2") format("woff2");
  font-weight: 300 700;
  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+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-variable-normal-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  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+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: #f2f0ec;
  color: #0a0a0a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: #0a0a0a; color: #f2f0ec; }

/* Start bei 0.01 statt 0: visuell identisch, aber das Cover zählt damit in
   jedem Lighthouse/PSI-Lauf als LCP-Kandidat (opacity:0 wird ignoriert →
   sporadische NO_LCP-Errors, beobachtet 30.08.2026) */
@keyframes gt-rise {
  from { opacity: 0.01; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes gt-veil {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Geblurrter Cover-Hintergrund + Schleier ---------------- */

.veil {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  animation: gt-veil 1.1s ease both;
}
.veil img {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  filter: blur(70px) saturate(1.45) brightness(1.16);
}
.veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(242, 240, 236, 0.72), rgba(242, 240, 236, 0.9));
}

/* --- Seitengerüst ------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 28px 30px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  display: flex;
  justify-content: center;
  animation: gt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.brand a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6b67;
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand a:hover { color: #0a0a0a; }

/* Inhaltsblock vertikal zentriert (auto-Margins statt justify-content:
   center – so wird bei Überlauf nichts abgeschnitten, die Margins werden
   dann einfach 0) */
.main {
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}

/* --- Hero: Cover + Titel + Player --------------------------- */

.hero {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.cover {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #dedbd5;
  box-shadow: 0 20px 52px rgba(10, 10, 10, 0.22);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s;
  animation: gt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}
.cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 66px rgba(10, 10, 10, 0.28);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  width: 100%;
  animation: gt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
}
.meta h1 {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: pretty;
}
/* Artist-Zeile im gleichen Stil wie das „Single"-Tag, nur kräftiger */
.meta .artist {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.meta .tag {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6b67;
}

/* --- Snippet-Player (nur Seiten mit lokalem Audio) ---------- */

.player {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: gt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both;
}
/* Icon-Button statt Text-Label (Jans Wahl 30.08.2026, „Variante B"): spart
   Platz, die Fortschrittsleiste wird länger, und die Breite bleibt beim
   Wechsel Play ↔ Pause konstant. Rundung wie die übrigen Buttons */
.player-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a0a0a;
  background: transparent;
  border: 1px solid #0a0a0a;
  border-radius: 4px;
  padding: 0;
  transition: background 0.3s, color 0.3s;
}
.player-btn svg { display: block; }
/* Hover: semi-transparentes Dunkel statt Voll-Invert (Jans Entscheidung
   30.08.2026, „Variante 2" – der Cover-Ton schimmert leicht durch);
   nur für echte Mauszeiger – Touch bekommt keine klebenden Hover-Zustände */
@media (hover: hover) {
  .player-btn:hover {
    background: rgba(10, 10, 10, 0.85);
    color: #f2f0ec;
    border-color: transparent;
  }
}
/* Scrub-Leiste: 16px hohe Trefferfläche, die Linie liegt mittig;
   der Punkt (.player-dot) wird von app.js erzeugt und ist zieh-/klickbar */
.player-bar {
  flex: 1 1 auto;
  position: relative;
  height: 16px;
  cursor: pointer;
  touch-action: none;
}
.player-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #c9c6c0;
}
.player-bar:focus-visible {
  outline: 1px solid #0a0a0a;
  outline-offset: 3px;
}
.player-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  background: #0a0a0a;
  width: 0%;
}
.player-dot {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #0a0a0a;
  transition: transform 0.2s;
}
.player-bar:hover .player-dot,
.player-bar.is-dragging .player-dot { transform: scale(1.35); }
.player-time {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6b6b67;
  font-variant-numeric: tabular-nums;
}

/* --- Links-Spalte: Provider + Socials ----------------------- */

.links {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}

.choose {
  margin: 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6b67;
  animation: gt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.providers {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  animation: gt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.36s both;
}
.providers a {
  border: 1px solid #b9b6b0;
  border-radius: 4px;
  padding: 17px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hover: dunkel mit leichtem Durchschimmern („Variante 2") */
@media (hover: hover) {
  .providers a:hover {
    background: rgba(10, 10, 10, 0.85);
    color: #f2f0ec;
    border-color: transparent;
  }
}
/* Erster Button (Spotify bzw. Haupt-CTA) über beide Spalten;
   ebenso ein einzelner Button am Ende einer geraden Liste */
.providers a:first-child { grid-column: 1 / -1; }
.providers a:last-child:nth-child(even) { grid-column: 1 / -1; }
/* CTA-Listen (Profilseiten): jede Zeile volle Breite */
.providers.stack { grid-template-columns: 1fr; }
.providers.stack a { grid-column: auto; }

.socials {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b67;
  animation: gt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.44s both;
}
.socials a { transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.socials a:hover { color: #0a0a0a; }

/* --- Footer ------------------------------------------------- */

.foot {
  padding-top: 22px;
  border-top: 1px solid #c9c6c0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8a85;
}
.foot a { transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.foot a:hover { color: #0a0a0a; }

/* --- Breit (ab 900px): Cover links, Links rechts ------------ */

@media (min-width: 900px) {
  .main {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
    justify-content: center;
  }
  .hero, .links { max-width: 380px; flex: 0 1 380px; }
  .cover { max-width: 100%; } /* Bild bündig mit der Button-Spaltenbreite */
  /* Buttons vertikal mittig zum COVER (nicht zur ganzen Spalte): Spalte
     beginnt an der Cover-Oberkante und zentriert sich in dessen Höhe
     (Cover ist quadratisch = 380px hoch) */
  .links { min-height: 380px; justify-content: center; }
  .providers { grid-template-columns: 1fr; }
  .providers a { grid-column: auto; }
}

/* --- Reduzierte Bewegung ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .veil, .brand, .cover, .meta, .player, .choose, .providers, .socials {
    animation: none;
  }
  .cover { transition: none; }
  .cover:hover { transform: none; }
}
