/* MMF - Me And My Friends
   Werte und Verhalten aus dem abgenommenen Prototyp (Canvas "MMF Website Entwurf").
   Aufbau: 1 Schriften, 2 Basis, 3 Hintergrund, 4 Logo, 5 Bereiche, 6 Previews,
   7 Leiste, 8 Mini-Player, 9 Breakpoints, 10 Bewegung. */

/* 1 Schriften (selbst gehostet, keine fremden Server) ---------------------- */

@font-face {
  font-family: 'MMF Hand';
  src: url(../fonts/MMF-Hand.woff2) format('woff2');
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  font-weight: 400;
  font-display: block;
  src: url(../fonts/archivo-black.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Erweitertes Latein: wird nur geladen, wenn ein Name solche Zeichen braucht. */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-600-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-weight: 400;
  font-display: block;
  src: url(../fonts/archivo-black-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 Basis ------------------------------------------------------------------ */

/* --u ist die Einheit des Logos: 1px am Desktop, kleiner, wenn die Breite es verlangt.
   Als Laenge registriert, damit der Wechsel (z. B. wenn .FM dazukommt) weich laeuft. */
@property --u {
  syntax: '<length>';
  inherits: true;
  initial-value: 1px;
}

:root {
  --paper: #FAF7F2;
  --ink: #0A0A0A;
  --hand: #46433E;
  --label: #6B675F;
  --warm: #8C8880;
  --line: rgba(10, 10, 10, .16);

  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --script: 'MMF Hand', var(--sans);

  /* Desktop. Tablet und Handy siehe Abschnitt 9. */
  --pad: 48px;
  --h2: 64px;
  --feat: 64px;
  --date: 36px;
  --show: 80px;
  --show-gap: 80px;
  --friend: 22px;
  --cat-min: 160px;
  --fr-min: 240px;
  --bar-h: 64px;
  --bar-gap: 28px;
  --bar-font: 36px;
  --bar-dot: 19px;

  /* Wie weit der Inhalt nach dem Klick unten anschaut. */
  --peek: 190px;
}

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

html {
  background: var(--paper);
  scrollbar-gutter: stable;
  scrollbar-color: #CFCAC1 var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/24px var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img,
picture {
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 3 Hintergrund ------------------------------------------------------------ */

.bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .25s linear;
}

.bg__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .9s ease;
}

/* Die Raster sind fertig weichgezeichnete Kacheln, die sich wiederholen.
   Die Flaeche steht 420px ueber und faehrt in 60s genau diese Strecke nach rechts. */
.bg__move {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -420px;
  right: 0;
  background-repeat: repeat;
  transform: translateX(0);
  transition: transform 60s linear;
}

.bg__layer--music .bg__move {
  background-position: -480px -150px;
}
.bg__layer--radio .bg__move {
  background-position: -580px -100px;
}
.bg__layer--friends .bg__move {
  background-position: -680px -40px;
}

/* Events: ein Foto, scharf, zoomt langsam (wie im Prototyp). */
.bg__layer--events .bg__move {
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 55%;
  transform: scale(1);
}

html[data-hl='events'] .bg__layer--events,
html[data-hl='music'] .bg__layer--music,
html[data-hl='radio'] .bg__layer--radio,
html[data-hl='friends'] .bg__layer--friends {
  opacity: .3;
}

html[data-hl='music'] .bg__layer--music .bg__move,
html[data-hl='radio'] .bg__layer--radio .bg__move,
html[data-hl='friends'] .bg__layer--friends .bg__move {
  transform: translateX(420px);
}
html[data-hl='events'] .bg__layer--events .bg__move {
  transform: scale(1.06);
}

/* 4 Logo ------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  transition: height .7s ease, min-height .7s ease;
}

/* Offen: der Hero gibt unten Platz frei. svh statt dvh, damit beim Scrollen am Handy
   nichts nachrutscht, wenn die Adressleiste verschwindet. */
html[data-open] .hero {
  height: calc(100vh - var(--peek));
  height: calc(100svh - var(--peek));
  min-height: 420px;
}

.logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Platzbedarf in Design-Pixeln: MMF 619 + EVENTS 301 + .FM 227 = 1147. Mit gut 100px Rand
     je Seite ergibt das am iPad quer (1180) den Faktor 0,85 aus dem Prototyp, ab 1352px ist es 1. */
  --u: min(1px, calc((100vw - 205px) / 1147));
  transition: --u .7s ease;
}

.logo__row {
  display: flex;
  align-items: flex-start;
}

.letter {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
}

.letter picture {
  flex: 0 0 auto;
}

.letter__img {
  height: calc(var(--u) * 330);
  width: auto;
}

.logo__gap {
  flex: 0 0 auto;
  width: calc(var(--u) * 20);
}

/* Das Wort neben dem Buchstaben */
.word {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition: max-width .7s ease, opacity .5s ease, margin-left .7s ease;
}

.word__in {
  display: block;
  margin-top: calc(var(--u) * 136);
  padding: 0 calc(var(--u) * 30) 0 calc(var(--u) * 4);
  font: 400 calc(var(--u) * 125) / 1 var(--script);
  color: var(--hand);
  text-transform: uppercase;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}

.word--events .word__in {
  letter-spacing: -.09em;
}
.word--music .word__in {
  letter-spacing: -.13em;
}
.word--friends .word__in {
  padding: 0 calc(var(--u) * 10) 0 0;
  letter-spacing: -.01em;
}

/* Abstaende der Handschrift von Hand nachgezogen */
.k-u {
  margin-right: .08em;
}
.k-i {
  margin: 0 .1em 0 .08em;
}
.k-t {
  margin-right: -.06em;
}

html[data-hl='events'] .word--events {
  max-width: calc(var(--u) * 440);
  opacity: 1;
}
html[data-hl='music'] .word--music {
  max-width: calc(var(--u) * 300);
  opacity: 1;
}
html[data-hl='friends'] .word--friends {
  max-width: calc(var(--u) * 400);
  margin-left: calc(var(--u) * -62);
  opacity: 1;
}

/* Das kleine Wort unter dem Buchstaben (Handy, iPad hoch) */
.label {
  display: none;
  position: absolute;
  top: calc(var(--u) * 352);
  left: 50%;
  font: 400 calc(var(--u) * 60) / 1 var(--script);
  letter-spacing: -.04em;
  color: var(--hand);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .85;
  transform: translateX(-50%) rotate(-2deg);
  transition: opacity .4s ease;
}

/* .FM: erst nach dem ersten Klick da */
.dotfm {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .7s;
}

.dotfm__clip {
  display: block;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .7s ease, opacity .5s ease;
}

.dotfm__img {
  height: calc(var(--u) * 110);
  width: auto;
  max-width: none;
  margin: calc(var(--u) * 215) 0 0 calc(var(--u) * 14);
}

html[data-main] .dotfm {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
html[data-main] .dotfm__clip {
  max-width: calc(var(--u) * 240);
  opacity: .32;
}
html[data-hl='radio'] .dotfm__clip {
  opacity: 1;
}

/* Contact, Impressum, Privacy: unten mittig, nur solange nichts offen ist */
.legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
}

.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font: 400 14px/20px var(--sans);
}

html[data-open] .legal {
  display: none;
}

/* 5 Bereiche --------------------------------------------------------------- */

/* Inhalt hoechstens 1200px breit, der Rand kommt dazu (wie im Prototyp). */
.sec {
  max-width: calc(1200px + 2 * var(--pad));
  margin: 0 auto;
  padding: 24px var(--pad) 0;
}

/* Mit JavaScript ist immer nur der gewaehlte Bereich da. Ohne JavaScript stehen alle
   untereinander. */
.js .sec,
.js .foot {
  display: none;
}
html[data-open='events'] #sec-events,
html[data-open='music'] #sec-music,
html[data-open='radio'] #sec-radio,
html[data-open='friends'] #sec-friends,
html[data-open='contact'] #sec-contact,
html[data-open='impressum'] #sec-impressum,
html[data-open='privacy'] #sec-privacy,
html[data-open] .foot {
  display: block;
}
html:not(.js) .sec + .sec {
  margin-top: 120px;
}

/* Ueberschriften in Philips Handschrift */
.hand {
  margin: 0 0 28px;
  font: 400 var(--h2) / 1 var(--script);
  letter-spacing: -.03em;
  color: var(--hand);
  text-transform: uppercase;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}

.hand--next {
  margin-top: 120px;
}

.kicker {
  font: 500 12px/18px var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
}

/* Events */
.dates {
  border-top: 1px solid var(--line);
}

.date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.date[hidden] {
  display: none;
}

.date__day {
  flex: 0 1 320px;
  font: 400 var(--date) / 1.05 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.date__title {
  flex: 1 1 260px;
  min-width: 0;
  font: 500 18px/26px var(--sans);
}

.date__meta {
  flex: 0 0 auto;
  font: 500 12px/18px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}

.date__meta--place {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dates__empty {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font: 500 18px/26px var(--sans);
}

/* Music */
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
}

.feature__meta {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature__title {
  font: 400 var(--feat) / .92 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* Lange Titel (ab etwa 20 Zeichen) eine Stufe kleiner, sonst laufen sie ueber vier Zeilen. */
.feature__title--long {
  font-size: calc(var(--feat) * .75);
}

.feature__artists {
  font: 500 13px/20px var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Titel einer EP */
.tracks {
  counter-reset: track;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: 400 15px/24px var(--sans);
}

.tracks li {
  counter-increment: track;
  display: flex;
  gap: 14px;
}

.tracks li::before {
  content: counter(track);
  flex: 0 0 auto;
  min-width: 10px;
  color: var(--label);
  font-variant-numeric: tabular-nums;
}

.links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.feature .links {
  margin-top: 8px;
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font: 500 16px/24px var(--sans);
}

/* Name der Plattform, davor ihr Zeichen, wenn eine Datei dafuer da ist */
.links__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.links__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.links__verb {
  font: 600 12px/18px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}

.grid {
  display: grid;
  gap: 36px 20px;
  grid-template-columns: repeat(auto-fill, minmax(var(--cat-min), 1fr));
}

.grid--friends {
  gap: 40px 20px;
  grid-template-columns: repeat(auto-fill, minmax(var(--fr-min), 1fr));
}

.rel,
.friend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.rel__text,
.friend__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rel__no {
  font: 500 11px/16px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}

.rel__artists {
  font: 500 12px/18px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rel__title {
  font: 400 15px/22px var(--sans);
}

/* Der Titel ist der Link zur Release-Seite, die ganze Textzeile ist anklickbar. */
.rel__text {
  position: relative;
}

.rel__title a,
.rows a .rows__value {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(10, 10, 10, .3);
  transition: text-decoration-color .3s ease;
}

.rel__title a::after {
  content: '';
  position: absolute;
  inset: -6px 0 -10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  font: 600 12px/18px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* .FM */
.shows {
  display: flex;
  flex-direction: column;
  gap: var(--show-gap);
}

.show {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 48px;
}

.show__art {
  flex: 0 1 520px;
  width: 520px;
  max-width: 100%;
}

/* Das Artwork steht im eigenen Format, nichts wird abgeschnitten (001 ist quadratisch). */
.show__art img {
  width: 100%;
  height: auto;
}

.show__meta {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 4px;
}

.show__name {
  margin: 0 0 8px;
  font: 400 var(--show) / 1 var(--script);
  letter-spacing: -.04em;
  color: var(--hand);
  text-transform: uppercase;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}

/* Friends: das ganze Feld (Bild und Text) fuehrt zur Seite des Acts. */
.friend {
  position: relative;
}

.friend img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: filter .3s ease;
}

.friend__name a::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* Seite eines Acts */
.portrait {
  flex: 0 1 300px;
  width: 300px;
  max-width: 100%;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.place {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag {
  flex: 0 0 auto;
  width: 21px;
  height: 14px;
  outline: 1px solid rgba(10, 10, 10, .16);
  outline-offset: -1px;
}

/* Namen stehen so, wie die Acts sich schreiben (unfazed, sonofsteve). */
.feature__title--name {
  text-transform: none;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  font: 400 16px/26px var(--sans);
}

.shows--after {
  margin-top: 72px;
}

/* Links eines Acts: klein, in einer Zeile */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-top: -6px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 500 15px/22px var(--sans);
}

.social__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.social__label {
  font: 500 12px/18px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}

.social__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(10, 10, 10, .3);
  transition: text-decoration-color .3s ease;
}

/* Artists auf der Release-Seite: groessere Tippflaeche, ohne dass die Zeile hoeher wird */
.feature__artists a {
  display: inline-block;
  padding: 14px 0;
  margin: -14px 0;
}

.friend__name {
  font: 400 var(--friend) / 1.25 var(--display);
}

.friend__line {
  font: 400 12px/18px var(--sans);
  color: var(--label);
}

/* Contact, Impressum, Privacy: normale Schrift */
.plain__title {
  margin: 0 0 24px;
  font: 500 32px/40px var(--sans);
  letter-spacing: -.01em;
}

.rows {
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.rows a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2px 24px;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font: 400 15px/22px var(--sans);
}

.rows__label {
  font-weight: 600;
}

.rows__note {
  font-weight: 400;
  color: var(--label);
}

.text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font: 400 15px/24px var(--sans);
}

.text strong,
.text h3 {
  font: 600 15px/24px var(--sans);
}

/* Footer unter jedem offenen Bereich */
.foot {
  max-width: calc(1200px + 2 * var(--pad));
  margin: 120px auto 0;
  padding: 0 var(--pad);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}

.foot__name {
  font: 400 13px/20px var(--sans);
  color: var(--label);
}

.foot__social,
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.foot__legal {
  gap: 0 20px;
}

.foot__social a,
.foot__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.foot__social a {
  font: 500 12px/18px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.foot__legal a {
  font: 400 14px/20px var(--sans);
}

html.has-mini .foot {
  padding-bottom: 96px;
}

/* Unterseiten (music/<titel>/ und friends/<name>/): kein Hero, die Leiste steht immer oben. */
.sub .bar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* Hier ist die Leiste die Navigation, deshalb bleiben die anderen Punkte gut lesbar (60 %). */
.sub .bar__link[aria-current] {
  opacity: 1;
}

.sub .sec {
  padding-top: calc(var(--bar-h) + 56px);
}

/* 6 Previews --------------------------------------------------------------- */

.cover {
  position: relative;
  display: block;
  width: 100%;
}

.cover--feature {
  flex: 0 1 480px;
  width: 480px;
  max-width: 100%;
}

.cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cover__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .22);
  opacity: 0;
  transition: opacity .3s ease;
}

/* Touch: kleiner Play-Button dauerhaft unten links */
.cover__btn {
  position: absolute;
  left: 10px;
  top: calc(100% - 50px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease;
  --icon: 18px;
}

.cover--feature .cover__btn {
  left: 14px;
  top: calc(100% - 70px);
  width: 56px;
  height: 56px;
  --icon: 24px;
}

/* Play und Pause als Form, damit nicht in jedem Cover ein SVG steckt */
.icon {
  display: block;
  width: var(--icon, 20px);
  height: var(--icon, 20px);
  background: var(--ink);
  clip-path: polygon(35.4% 22.9%, 35.4% 77.1%, 77.1% 50%);
}

.is-playing .icon {
  clip-path: polygon(27.1% 22.9%, 43.75% 22.9%, 43.75% 77.1%, 27.1% 77.1%, 27.1% 22.9%, 56.25% 22.9%, 72.9% 22.9%, 72.9% 77.1%, 56.25% 77.1%, 56.25% 22.9%);
}

.cover__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(250, 247, 242, .4);
  opacity: 0;
  transition: opacity .3s ease;
}

.cover--feature .cover__bar {
  height: 4px;
}

.cover__fill,
.mini__fill {
  display: block;
  height: 100%;
  background: var(--paper);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform .25s linear;
}

.cover.is-current .cover__shade,
.cover.is-current .cover__bar {
  opacity: 1;
}

/* 7 Leiste ----------------------------------------------------------------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--pad);
  background: rgba(250, 247, 242, .94);
  border-bottom: 1px solid rgba(10, 10, 10, .08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

html[data-open].is-scrolled .bar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.bar__home {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.bar__home img {
  height: 26px;
  width: auto;
}

.bar__nav {
  display: flex;
  align-items: center;
  gap: var(--bar-gap);
}

.bar__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 400 var(--bar-font) / 1 var(--script);
  letter-spacing: -.04em;
  color: var(--hand);
  text-transform: uppercase;
  opacity: .6;
  transition: opacity .3s ease;
}

.bar__link img {
  height: var(--bar-dot);
  width: auto;
}

html[data-main] .bar__link {
  opacity: .3;
}
html[data-main='events'] .bar__link[data-key='events'],
html[data-main='music'] .bar__link[data-key='music'],
html[data-main='friends'] .bar__link[data-key='friends'],
html[data-main='radio'] .bar__link[data-key='radio'] {
  opacity: 1;
}

/* 8 Mini-Player ------------------------------------------------------------ */

.mini {
  position: fixed;
  z-index: 5;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 420px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 10px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.mini[hidden] {
  display: none;
}

.mini__img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.mini__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mini__title,
.mini__artists {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini__title {
  font: 500 14px/20px var(--sans);
}

.mini__artists {
  font: 500 11px/16px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warm);
}

.mini__toggle,
.mini__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini__toggle {
  border-radius: 50%;
  background: var(--paper);
}

.mini__close svg {
  display: block;
}

.mini :focus-visible {
  outline-color: var(--paper);
}

.mini__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

/* 9 Breakpoints ------------------------------------------------------------ */

/* Maus: Hover zeigt den Play-Button in der Mitte, der Hero gibt 150px frei. */
@media (hover: hover) and (pointer: fine) {
  :root {
    --peek: 150px;
  }

  a:hover {
    color: var(--hand);
  }
  .btn:hover {
    color: var(--paper);
    background: var(--hand);
  }

  .cover__btn {
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    opacity: 0;
    --icon: 22px;
  }
  .cover--feature .cover__btn {
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    --icon: 32px;
  }
  .cover:hover .cover__btn,
  .cover:focus-visible .cover__btn,
  .cover.is-current .cover__btn,
  .cover:hover .cover__shade,
  .cover:focus-visible .cover__shade {
    opacity: 1;
  }

  .bar__link:hover,
  .sub .bar__link:hover {
    opacity: 1;
  }

  .rel__text:hover .rel__title a {
    color: var(--hand);
    text-decoration-color: currentColor;
  }
  .rows a:hover .rows__value {
    text-decoration-color: currentColor;
  }

  .friend:hover img {
    filter: brightness(.9);
  }
  .social a:hover .social__name {
    text-decoration-color: currentColor;
  }
  .feature__artists a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
  }
}

/* iPad quer und kleine Laptops */
@media (max-width: 1279px) {
  :root {
    --pad: 40px;
    --h2: 60px;
    --feat: 56px;
    --date: 32px;
    --show: 72px;
    --cat-min: 180px;
    --fr-min: 220px;
    --bar-font: 34px;
  }
}

/* iPad hoch und Handy: Woerter klein unter den Buchstaben, kein Ausklappen */
@media (max-width: 999px) {
  :root {
    --h2: 56px;
    --cat-min: 160px;
    --fr-min: 200px;
  }

  .logo {
    --u: min(.9px, calc((100vw - 50px) / 619), calc((100vh - 150px) / 420));
  }
  html[data-main] .logo {
    --u: min(.86px, calc((100vw - 36px) / 846), calc((100vh - 150px) / 420));
  }

  .logo__row {
    padding-bottom: calc(var(--u) * 84);
  }

  .word {
    display: none;
  }
  .label {
    display: block;
  }

  html[data-main] .label {
    opacity: .25;
  }
  html[data-main='events'] .letter--events .label,
  html[data-main='music'] .letter--music .label,
  html[data-main='friends'] .letter--friends .label,
  html[data-hl='events']:not([data-main]) .letter--events .label,
  html[data-hl='music']:not([data-main]) .letter--music .label,
  html[data-hl='friends']:not([data-main]) .letter--friends .label {
    opacity: 1;
  }

  .mini {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
  }
}

@media (max-width: 599px) {
  .bg__layer--events .bg__move {
    background-position: 58% 50%;
  }

  .sub .sec {
    padding-top: calc(var(--bar-h) + 24px);
  }

  /* Am Handy sollen die ersten Links ohne Scrollen zu sehen sein: auf niedrigen
     Bildschirmen wird das Cover deshalb etwas kleiner. */
  .sub .feature {
    gap: 24px;
  }
  .sub .cover--feature {
    max-width: min(100%, max(200px, calc(100svh - 400px)));
  }
  .sub .portrait {
    max-width: 62%;
  }
  .bio {
    font-size: 15px;
    line-height: 24px;
  }

  :root {
    --pad: 20px;
    --h2: 44px;
    --feat: 40px;
    --date: 26px;
    --show: 52px;
    --show-gap: 64px;
    --friend: 17px;
    --cat-min: 140px;
    --fr-min: 140px;
    --bar-h: 56px;
    --bar-gap: 16px;
    --bar-font: 28px;
    --bar-dot: 15px;
  }
}

/* Sehr schmale Handys: die Leiste bleibt einzeilig */
@media (max-width: 359px) {
  :root {
    --bar-gap: 11px;
    --bar-font: 24px;
    --bar-dot: 13px;
  }
}

/* Flache Fenster (Handy quer): keine erzwungene Mindesthoehe */
@media (max-height: 559px) {
  .hero {
    min-height: 0;
  }
  html[data-open] .hero {
    min-height: calc(var(--u) * 420 + 24px);
  }
}

/* 10 Bewegung -------------------------------------------------------------- */

/* Beim ersten Aufbau (z. B. Deep Link) nichts animieren. */
.no-anim *,
.no-anim *::before,
.no-anim *::after {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .bg__move,
  html[data-hl] .bg__move {
    transform: none !important;
    transition: none;
  }
  .hero,
  .logo,
  .word,
  .dotfm,
  .dotfm__clip,
  .bar {
    transition-duration: .01s;
  }
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .bg,
  .bar,
  .mini,
  .legal {
    display: none !important;
  }
  .js .sec,
  .js .foot {
    display: block;
  }
}

/* 404 */
.lost {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: calc(1200px + 2 * var(--pad));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px var(--pad);
}
