/* Optionale eigene Fonts: einfach in /fonts ablegen.
   Fehlen sie, greift automatisch der System-Fallback. */
@font-face { font-family: P;  src: url(fonts/p.woff2)  format("woff2"); font-display: swap; }
@font-face { font-family: B;  src: url(fonts/b.woff2)  format("woff2"); font-display: swap; }
@font-face { font-family: H;  src: url(fonts/hl.woff2) format("woff2"); font-display: swap; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--txt);
  font-family: P, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;              /* nur horizontal sperren – vertikal scrollbar */
  -webkit-tap-highlight-color: transparent;
}

/* Hintergrund (Bild oder Video) */
.bg {
  position: fixed;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.22) saturate(1.2);
  transform: scale(1.08);
  z-index: 0;
  pointer-events: none;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5vw, 22px);
  padding:
    calc(24px + env(safe-area-inset-top))
    calc(20px + env(safe-area-inset-right))
    calc(72px + env(safe-area-inset-bottom))   /* Platz für die Marquee-Leiste */
    calc(20px + env(safe-area-inset-left));
  text-align: center;
}

.head { max-width: 520px; }

h1 {
  margin: 0;
  font-family: H, P, system-ui, sans-serif;
  font-size: clamp(1.9rem, 9vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.title {
  margin: 8px 0 0;
  font-size: clamp(.9rem, 4vw, 1.2rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}

.cover {
  width: min(320px, 68vw);
  max-height: 40dvh;               /* auf niedrigen Screens nicht alles wegdrücken */
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 60px #0008;
}

/* Album-Blöcke (mehrere Alben untereinander) */
.album {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 3vw, 18px);
  width: 100%;
}
.wrap.multi .album {
  padding-top: clamp(18px, 5vw, 30px);
}
.wrap.multi .album + .album {
  border-top: 1px solid #ffffff22;
}
.album-body { width: min(420px, 100%); }
.album-title {
  margin: 0;
  font-family: H, P, system-ui, sans-serif;
  font-size: clamp(1.2rem, 5.5vw, 1.7rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
}
.album-sub {
  margin: 4px 0 14px;
  font-size: clamp(.72rem, 3vw, .85rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
  text-align: center;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4vw, 26px);
  width: min(420px, 100%);
}

.section-title {
  margin: 0 0 10px;
  font-family: H, P, system-ui, sans-serif;
  font-size: clamp(.8rem, 3.4vw, .95rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 8px;
  background: currentColor;
  opacity: .25;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;                /* gute Touch-Zielgröße */
  padding: 14px 20px;
  border-radius: 999px;
  background: #ffffff18;
  border: 1px solid #ffffff20;
  color: inherit;
  font-size: clamp(.85rem, 3.6vw, 1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform .2s, background .2s;
}
.btn:hover { background: #ffffff28; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.btn img { width: 24px; height: 24px; flex: 0 0 auto; }

@media (hover: hover) {
  .btn:hover { transform: scale(1.02); }
}

/* Laufschrift */
.marquee {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  overflow: hidden;
  background: #0008;
  backdrop-filter: blur(6px);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  font-size: clamp(.7rem, 3vw, .85rem);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: m 30s linear infinite;
}
.marquee-track span { padding-right: 2rem; }

@keyframes m { to { transform: translateX(-50%); } }

/* Sehr kleine / niedrige Displays */
@media (max-height: 640px) {
  .cover { width: min(200px, 45vw); }
  .wrap { justify-content: flex-start; }
}

/* Ab Tablet: Cover und Buttons nebeneinander */
@media (min-width: 820px) and (min-height: 560px) {
  .album {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 860px;
    text-align: left;
  }
  .cover { width: min(340px, 32vw); max-height: none; }
  .album-body { width: min(380px, 100%); }
  .album-title, .album-sub, .section-title { text-align: left; }
  .global { width: min(420px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .btn { transition: none; }
}
