/* ===== InfraLoop Audio – Stylesheet ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --header-bg: rgba(0, 0, 0, 0.75);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);   /* ruhende Menü-Farbe */
  --accent: #23b1ec;                    /* Hover-Farbe des Menüs (Flip-Effekt) */
  --hover-speed: 0.35s;                /* Dauer der Flip-Animation */
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

a { color: var(--text); text-decoration: none; }

/* ===== Hintergrundbild ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 150px;
  background: #000;
  isolation: isolate;
}

.hero__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Langsamer Flug in die Galaxie */
.hero__bg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  animation: galaxy-zoom 90s linear infinite alternate;
  will-change: transform;
}

@keyframes galaxy-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.40);
  }
}

/* Animation bei reduzierter Bewegung deaktivieren */
@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
  }
}

/* Fade zu Schwarz unten */

/* Fade zu Schwarz unten */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(100px, 18vw, 220px);

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 35%,
    rgba(0, 0, 0, 0.4) 70%,
    #000 100%
  );

  pointer-events: none;
}

/* Fade zu Schwarz oben */
.hero__fade--top {
  position: absolute;
  left: 0;
  right: 0;
  top: 140px;
  height: clamp(100px, 18vw, 220px);

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 35%,
    rgba(0, 0, 0, 0.4) 70%,
    #000 100%
  );

  pointer-events: none;
}

.hero__title {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5em;
  text-shadow: 0 0 12px rgba(0,0,0,0.9);
  pointer-events: none;
}


.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}

.hero__bg {
  position: relative;
  z-index: 0;
}

.hero__fade,
.hero__fade--top {
  z-index: 1;
}

.hero__title {
  z-index: 2;
}


/* ===== Header (schwarzer Layer mit Transparenz) ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.site-header__logo img {
  height: 60px;
  width: auto;
  display: block;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

/* ===== Navigation: 3D-Textrolle ===== */

.site-nav li {
  perspective: 500px;
}

.site-nav a {
  display: block;
  position: relative;
  height: 1.6em;
  line-height: 1.6em;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  white-space: nowrap;

  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateX(0deg);
  transition: transform var(--hover-speed) ease;
}

/* Weiße Vorderseite */
.site-nav .nav-text {
  display: block;
  position: relative;
  color: var(--muted);
  line-height: 1.6em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0.8em);
}

/* Blaue Seite: liegt zunächst oberhalb der sichtbaren Fläche */
.site-nav .nav-text--alt {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  line-height: 1.6em;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateX(90deg) translateZ(0.8em);
}

/* Rolle nach unten drehen: Blau kommt von oben in die Mitte */
.site-nav li:hover > a,
.site-nav a:focus-visible {
  transform: rotateX(-90deg);
}

/* Tastaturfokus sichtbar halten */
.site-nav a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a {
    transition: none;
  }
}


/* ===== Sektionen ===== */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 70px 24px 80px;
}
.section__title {
  text-align: center;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.4em;
  font-weight: normal;
}
.section__bar {
  display: block;
  width: 60px;
  height: 2px;
  background: #ffffff;
  margin: 14px auto 44px;
}

/* ===== Releases: 4x4 Raster ===== */
.release-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.release-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: block;
  background: #ffffff;            /* sichtbar, solange kein Bild existiert */
  overflow: hidden;
}
.release-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.release-tile:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}
/* weiße Platzhalter-Box */
.release-tile .release-tile__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 8px;
}
.release-tile img + .release-tile__placeholder { display: none; }

/* ===== Extras: große Kachel links + Text rechts ===== */
.extras {
  display: flex;
  gap: 32px;
  align-items: stretch;
}
.extras__tile {
  flex: 0 0 calc(50% - 16px);
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  max-height: 640px;
}
.extras__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.extras__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.extras__text h3 {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.3em;
  font-weight: normal;
  margin-bottom: 18px;
}
.extras__text p {
  text-align: justify;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 48px 24px 36px;
}
.site-footer__logo img {
  height: 48px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
}
.site-footer__copy {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 16px;
}
.site-footer__links a {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin: 0 12px;
  transition: color var(--hover-speed) ease;
}
.site-footer__links a:hover {
  color: #fff;
}

/* ===== Unterseiten (Impressum, Datenschutz) ===== */
body.subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.subpage__main {
  flex: 1;                     /* schiebt den Footer nach unten */
  width: 100%;
}
.subpage__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 80px;    /* 140px oben: Platz unter dem fixierten Header */
}
.subpage__title {
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.4em;
  font-weight: normal;
  margin-bottom: 40px;
}
.subpage__content h2 {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: normal;
  margin: 32px 0 12px;
}
.subpage__content h3 {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: normal;
  margin: 24px 0 10px;
}
.subpage__content p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  text-align: justify;
  margin-bottom: 12px;
}
.subpage__content a {
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color var(--hover-speed) ease;
}
.subpage__content a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.subpage__content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}
.subpage__content li {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .release-grid { grid-template-columns: repeat(2, 1fr); }
  .extras { flex-direction: column; }
  .extras__tile { flex: 1 1 auto; max-height: none; }
}
@media (max-width: 500px) {
  .site-header__inner { padding: 8px 14px; }
  .site-nav ul { gap: 14px; }
  .release-grid { grid-template-columns: 1fr; }
}


/* Hamburger-Button auf Desktop ausblenden */
.site-nav__toggle {
  display: none;
}

/* Smartphone-Menü */

@media (max-width: 768px) {

  .site-nav {
    position: relative;
  }

  /* Hamburger-Button */
  .site-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }

  .site-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  /* Menü: von rechts hereingleiten */
  .site-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    position: fixed;
    top: 0;
    right: 0;

    width: 60%;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;

    margin: 0;
    padding: 100px 30px 40px;

    background: #111;
    list-style: none;
    z-index: 1001;

    overflow-y: auto;

    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.4s ease,
      visibility 0.4s ease;
  }

  /* Menü geöffnet */
  .site-nav ul.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Menüeinträge */
  .site-nav ul li {
    width: 100%;
  }

  .site-nav ul li a {
    display: block;
    padding: 24px 0;
    color: #fff;
    text-decoration: none;
  }

  /* Auch die animierten Texte weiß halten */
  .site-nav ul li a .nav-text {
    color: #fff;
  }
}
