/* Mosh & Hafner — Studio-Seite
   Bewusst ohne externe Ressourcen: keine CDN-Fonts, kein Analytics, keine Icons
   von fremden Servern. Jeder externe Aufruf wuerde die IP-Adresse der Besucher an
   Dritte geben - das passt weder zur Produkthaltung noch zur Rechtslage
   (vgl. LG Muenchen I, 20.01.2022, Az. 3 O 17493/20 zu Google Fonts). */

:root {
  --bg: #08070A;
  --bg-raised: #131117;
  --edge: rgba(255, 255, 255, 0.09);
  --text: #F2EFEA;
  --text-muted: #A39D96;
  --brand: #FF6B35;
  --radius: 18px;
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Warmer Lichtschein oben - das einzige dekorative Element der Seite. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    62rem 34rem at 50% -14rem,
    rgba(255, 107, 53, 0.14),
    transparent 68%
  );
}

.wrap {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 2rem) 4rem;
}

/* --- Kopf --- */

.brand {
  display: block;
  font-size: clamp(2.7rem, 9.5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.04;
  margin: 0;
  color: var(--text);
}

/* Dramaturgie: "Mosh" baut sich langsam auf (--dur .95s, ~380 ms Abstand),
   danach zwei Sekunden Stille, dann kommen "&" und "Hafner" in einem Rutsch.
   Verzoegerung und Dauer stehen als --d / --dur am jeweiligen Buchstaben,
   damit die Pause ablesbar ist statt in einer Formel zu verschwinden. */
.brand .ch {
  display: inline-block;
  animation: rise var(--dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--d, 0ms);
}

.brand .sp {
  display: inline-block;
  width: 0.24em;
}

.brand .amp {
  color: var(--brand);
  font-style: italic;
  animation:
    rise var(--dur, 0.65s) cubic-bezier(0.22, 1, 0.36, 1) backwards,
    glow 5s ease-in-out infinite;
  animation-delay: var(--d, 0ms), 5.2s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 107, 53, 0);
  }
  50% {
    text-shadow: 0 0 26px rgba(255, 107, 53, 0.5);
  }
}

/* Wer im System "weniger Bewegung" eingestellt hat, bekommt die Seite ruhig.
   Der Knopf behaelt dabei seinen ruhenden Schein - er glimmt, statt zu flackern. */
@media (prefers-reduced-motion: reduce) {
  .brand .ch,
  .brand .amp,
  .track-play,
  .track-play svg {
    animation: none;
  }
}

.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0.55rem 0 0;
}

/* --- Text --- */

h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 3.4rem 0 1rem;
}

h1.page-title {
  font-size: clamp(1.6rem, 4.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

p {
  max-width: var(--measure);
  margin: 0 0 1.1rem;
}

.lead {
  font-size: 1.14rem;
  margin-top: 2.4rem;
}

.muted {
  color: var(--text-muted);
}

small {
  font-size: 0.87rem;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul {
  max-width: var(--measure);
  padding-left: 1.15rem;
  margin: 0 0 1.1rem;
}

li {
  margin-bottom: 0.45rem;
}

/* --- Bild --- (Platz derzeit leer, Stile bleiben fuer den Austausch stehen) */

.portrait {
  margin: 2.3rem 0 0.5rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
}

.portrait figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Track --- (Platz derzeit leer, Stile bleiben fuer den Austausch stehen) */

.track {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  max-width: var(--measure);
  background: var(--bg-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 0.85rem 1.05rem;
  margin: 1.9rem 0;
}

.track-play {
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 53, 0.5);
  background: radial-gradient(
    circle at 50% 62%,
    rgba(255, 138, 66, 0.3),
    rgba(255, 107, 53, 0.1)
  );
  color: var(--brand);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px 2px rgba(255, 107, 53, 0.3);
  animation: burn 2.3s ease-in-out infinite;
}

.track-play:hover {
  border-color: rgba(255, 107, 53, 0.75);
}

.track-play:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.track-play svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  animation: heat 3.7s ease-in-out infinite;
}

/* Zwei Takte, die nie aufgehen: 2,3 s aussen, 3,7 s innen. Dadurch driften
   sie staendig gegeneinander und das Flackern wiederholt sich nie sichtbar -
   der Unterschied zwischen Feuer und einem blinkenden Laempchen. Die krummen
   Prozentwerte sind ebenfalls Absicht, gleichmaessige wirken wie ein Puls. */
@keyframes burn {
  0% {
    box-shadow: 0 0 14px 2px rgba(255, 107, 53, 0.28), 0 0 0 0 rgba(255, 107, 53, 0.2);
  }
  17% {
    box-shadow: 0 0 30px 7px rgba(255, 107, 53, 0.52), 0 0 0 3px rgba(255, 107, 53, 0.12);
  }
  31% {
    box-shadow: 0 0 19px 3px rgba(255, 107, 53, 0.34), 0 0 0 1px rgba(255, 107, 53, 0.18);
  }
  49% {
    box-shadow: 0 0 38px 10px rgba(255, 107, 53, 0.6), 0 0 0 5px rgba(255, 107, 53, 0.09);
  }
  63% {
    box-shadow: 0 0 22px 4px rgba(255, 107, 53, 0.36), 0 0 0 2px rgba(255, 107, 53, 0.16);
  }
  81% {
    box-shadow: 0 0 32px 8px rgba(255, 107, 53, 0.5), 0 0 0 4px rgba(255, 107, 53, 0.11);
  }
  100% {
    box-shadow: 0 0 14px 2px rgba(255, 107, 53, 0.28), 0 0 0 0 rgba(255, 107, 53, 0.2);
  }
}

@keyframes heat {
  0%,
  100% {
    color: #ff6b35;
    filter: drop-shadow(0 0 3px rgba(255, 107, 53, 0.6));
  }
  40% {
    color: #ffa04f;
    filter: drop-shadow(0 0 9px rgba(255, 150, 70, 0.85));
  }
  70% {
    color: #ff8038;
    filter: drop-shadow(0 0 5px rgba(255, 120, 55, 0.7));
  }
}

/* Sobald der Song laeuft, hoert das Feuer auf. Die Einladung ist angenommen -
   ein Knopf, der weiter lockt, waehrend man ihm schon gefolgt ist, ist Laerm. */
.track.is-playing .track-play {
  animation: none;
  box-shadow: 0 0 16px 3px rgba(255, 107, 53, 0.26);
}

.track.is-playing .track-play svg {
  animation: none;
  color: var(--brand);
  filter: none;
}

.track-play svg[hidden] {
  display: none;
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.track-title {
  font-weight: 600;
}

.track-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Karte --- */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 4vw, 1.9rem);
  margin: 1.4rem 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}

/* Platzhalter, die vor dem Veroeffentlichen ersetzt werden muessen. */
.todo {
  background: rgba(255, 107, 53, 0.13);
  border-bottom: 1px dashed var(--brand);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 600;
}

/* --- Fuss --- */

footer {
  margin-top: 4.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  align-items: baseline;
  font-size: 0.92rem;
}

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

footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

footer .spacer {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  footer a {
    transition: color 0.15s ease;
  }
}
