/* ==========================================
   1. GLOBALE EINSTELLUNGEN & RESPONSIVE TRICKS
   ========================================== */
:root {
  /* Der proportionale Skalierungs-Faktor für deine Icons */
  --icon-scale: 1;
}

/* Tablet / Laptop Bereich */
@media (max-width: 992px) {
  :root {
    --icon-scale: 1.2;
  }
}

/* Handy Bereich */
@media (max-width: 480px) {
  :root {
    --icon-scale: 1.5;
  }
}

html,
body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  letter-spacing: 0.03em;
  font-weight: 500;
  /* Zwingt den Hintergrund des Bodys, IMMER transparent zu sein, damit Bootstrap im Darkmode nichts blockiert */
  background-color: transparent !important;
  background: none !important;
}

p {
  font-size: 16px;
}

 p-small {
      font-size: 14px;
    }

h1 {
  font-size: 48px;
}

/* ==========================================
   2. HINTERGRUND-MEDIEN (VIDEO & OVERLAY)
   ========================================== */

/* Das Video (und sein Poster) füllen jetzt garantiert den gesamten Screen aus */
video,
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover !important;
  z-index: -3;
  /* Ganz nach hinten verschoben */
  background: #0d0e11 url('../media/img/space_fallback.png') center center / cover no-repeat !important;
  /* FIX: Bild liegt jetzt permanent ruhig dahinter */
}

/* Dunkler Schleier über dem Video */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 14, 17, 0.52) !important;
  z-index: -2;
  /* Liegt exakt zwischen Video (-2) und dem Text (0) */
}

video,
.overlay,
.video-background {
  forced-color-adjust: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Zwingt das Poster-Bild, sich über die gesamte Fläche des Video-Elements zu spannen */
video[poster] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ==========================================
   3. TYPOGRAFIE & EFFEKTE (SPACEFUNK LOOK)
   ========================================== */
.space-heading {
  /* clamp(Minimalgröße, Dynamische Größe, Maximalgröße) */
  font-size: clamp(3.19rem, 6vw, 6rem) !important;
  line-height: 1.1;
}

/* Der Leuchteffekt: Mehrere weiße/bläuliche Schatten übereinander */
.glow-text-trippy {
  text-shadow:
    0 1px 0px rgba(164, 162, 175, 0.9),
    0 4px 0px rgba(164, 162, 175, 0.6),
    0 4px 2px rgba(164, 162, 175, 0.5);
}

.glow-text {
  text-shadow:
    0 0 3px rgba(164, 162, 175, 0.9),
    0 0 3px rgba(164, 162, 175, 0.6),
    0 0 6px rgba(164, 162, 175, 0.5);
}

.space-branding {
  font-weight: 600;
  letter-spacing: 0.11em;
  /* Zieht die Buchstaben elegant auseinander */
  text-transform: uppercase;
  /* Macht alles zu Großbuchstaben */
}

.condensed-branding {
  font-family: "Roboto Condensed", sans-serif;
}

.hover-link:hover {
  text-decoration: underline !important;
}

/* ==========================================
   4. ELEMENTS & KAPSEL (FOOTER & ICON HOVER EFFECTS)
   ========================================== */

/* NAVIGATIONS-BUTTONS im HEADER */
/* Styling für den Nav-Button */
#main-nav-trigger {
  /* Erbt die Skalierung von .sc-nav-btn */
  font-size: calc(0.8rem * var(--icon-scale));
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.10); /* Leichtes Schwarz/Grau für Kontrast zur hellen Navbar */
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.2); 
  border-radius: 0;
  color: #0d0e11;
  display: flex !important;
  justify-content: center;
  align-items: center;
  align-self: center;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#main-nav-trigger:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
  
}



   /* Blur-Effekt des Overlay's */
.backdrop-blur {
  background-color: rgba(164, 162, 175, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.backdrop-blur-dark {
  background-color: rgb(33, 37, 41, 0.90)!important;
  /* rgb(33, 37, 41, 0.8) BG-DARK */ 
  /* rgb(13, 14, 17, 0.8) */
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.backdrop-blur-grey {
  background-color: rgba(164, 162, 175, 0.9)!important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* GEMEINSAMER CONTAINER FÜR DIE ICONS */
.soundcloud-link,
.youtube-link,
.spotify-link,
.discord-link,
.music-link {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  /* Der Container wächst dynamisch mit den Icons mit */
  height: calc(24px * var(--icon-scale));
  width: calc(24px * var(--icon-scale));
}

/* YOUTUBE STYLES */
.youtube-icon {
  font-size: calc(22px * var(--icon-scale));
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center;
  transition: transform 0.3s ease, filter 0.5s ease, opacity 0.3s ease;
  transform-origin: center center;
  transform: scale(0.9);
}

.youtube-link:hover .youtube-icon {
  opacity: 1;
  transform: scale(1.01);
  filter: drop-shadow(0 0 2px rgba(164, 162, 175, 0.9));
}

/* SPOTIFY STYLES */
.spotify-icon {
  font-size: calc(20px * var(--icon-scale));
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center;
  transition: transform 0.3s ease, filter 0.5s ease, opacity 0.3s ease;
  transform-origin: center center;
  transform: scale(0.9);
}

.spotify-link:hover .spotify-icon {
  opacity: 1;
  transform: scale(1.01);
  filter: drop-shadow(0 0 2px rgba(164, 162, 175, 0.9));
}

/* SOUNDCLOUD STYLES */
.soundcloud-icon {
  height: calc(34px * var(--icon-scale));
  width: auto;
  transition: transform 0.3s ease, filter 0.5s ease, opacity 0.3s ease;
  display: inline-flex !important;
  align-items: center;
  transform-origin: center center;
}

.soundcloud-link:hover .soundcloud-icon {
  opacity: 1;
  transform: scale(1.11);
  filter: drop-shadow(0 0 2px rgba(164, 162, 175, 0.9));
}

/* DISCORD STYLES */
.discord-icon {
  font-size: calc(20px * var(--icon-scale));
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center;
  transition: transform 0.3s ease, filter 0.5s ease, opacity 0.3s ease;
  transform-origin: center center;
  transform: scale(0.9);
}

.discord-link:hover .discord-icon {
  opacity: 1;
  transform: scale(1.01);
  filter: drop-shadow(0 0 2px rgba(164, 162, 175, 0.9));
}

/* ==========================================
   5. DYNAMISCHES OVERLAY-CONTAINER, GRID & PROFILE
   ========================================== */

   #footer-overlay-container {
  position: absolute;
  bottom: 100%;
  margin-bottom: 0.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 105;
  pointer-events: none;
  padding: 0 0.88rem;
  width: 100%;
}

/* Ersetze deinen alten Block durch diesen hier */
.custom-overlay {
  position: absolute;
  bottom: 100%;
  width: 100%;

  /* WICHTIG: Das hier hält den Iframe "wach", damit die Timeline nicht lädt */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  /* Design beibehalten */
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 1rem 1rem 0 0 !important;
  background-color: rgba(164, 162, 175, 0.15) !important;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.custom-overlay.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* SPOTIFY & SOUNDCLOUD PROFIL LINKS (Unterhalb der Trennlinie) */
.spotify-profile-link,
.soundcloud-profile-link {
  text-decoration: none !important;
  color: #ffffff !important;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

/* Kleine runde Bild-Behälter (20px) */
.spotify-profile-avatar,
.soundcloud-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50% !important;
  transition: all 0.25s ease;
  overflow: hidden;
  /* WICHTIG: Schneidet die Ecken des Bildes ab, damit es rund bleibt */
}

/* Das eigentliche Profilbild (Standard: ausgegraut) */
.spotify-profile-avatar img,
.soundcloud-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) opacity(0.80);
  transition: all 0.25s ease;
}

.profile-link-text {
  opacity: 0.85;
  transition: all 0.25s ease;
}

/* HOVER-EFFEKT: Monochromer Glow für Container */
.spotify-profile-link:hover .spotify-profile-avatar,
.soundcloud-profile-link:hover .soundcloud-profile-avatar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.01);
  filter: drop-shadow(0 0 2px rgba(164, 162, 175, 0.9));
}

/* FIX: Zieht Grayscale weg und macht das Bild brillanter */
.spotify-profile-link:hover .spotify-profile-avatar img,
.soundcloud-profile-link:hover .soundcloud-profile-avatar img {
  /* grayscale(0) = Farbe, brightness(1.15) = 15% heller, saturate(1.2) = 20% mehr Farbe */
  filter: grayscale(0%) opacity(1) brightness(1.15) saturate(1.2);
}

.spotify-profile-link:hover .profile-link-text,
.soundcloud-profile-link:hover .profile-link-text {
  opacity: 1;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

/* GRID-SYSTEM FÜR DIE ITEMS (2 Spalten, 2 Zeilen) */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
}

.playlist-item {
  /* Added Flexbox properties */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Existing properties */
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  transform: scale(1.01);
  border-color: rgba(255, 255, 255, 0.3);
}

/* SoundCloud Bullet-Point im Header */
.soundcloud-bullet {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
}

/* Sanfte Einblend-Animation für den Player-Wechsel */
.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAV-BUTTONS PRE NEXT */
/* SoundCloud Navigation Buttons (Responsive gemacht) */
.sc-nav-btn {
  font-size: calc(0.8rem * var(--icon-scale));
  padding: calc(0.2rem * var(--icon-scale)) calc(0.8em * var(--icon-scale));
  min-width: calc(32px * var(--icon-scale)) !important;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
}

.sc-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}



/* Styling-Anpassung für den Umschaltbutton im Hover-Zustand */
#sc-toggle-view:hover {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2) !important;
}

#sc-prev-btn:hover,
#sc-next-btn:hover {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================
   6. INTERAKTIONS-STATES, CURSOR TOOLTIP & FOCUS
   ========================================== */
/* HÄLT DEN HOVER-EFFEKT AKTIV, WENN DAS OVERLAY OFFEN IST */
.overlay-trigger.icon-active .spotify-icon,
.overlay-trigger.icon-active .soundcloud-icon,
.overlay-trigger.icon-active.hover-link {
  opacity: 1;
  transform: scale(1.02);
  filter: drop-shadow(0 0 2px rgba(164, 162, 175, 0.9));
}

/* Hover & Active Zustand für den Text-Trigger "Contact:" */
.contact-text-trigger {
  opacity: 0.85;
  transition: all 0.3s ease;
}

.contact-text-trigger:hover,
.overlay-trigger.icon-active.contact-text-trigger {
  cursor: help;
  opacity: 1;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* CURSOR TOOLTIP */
#cursor-tooltip {
  background: rgb(248, 249, 250, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgb(30, 30, 34, 0.6) !important;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #1E1E22;
  white-space: nowrap;
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

/* --- GLOBALER FOCUS-STYLE (NUR für Tastatur-Navigation / Tab) --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.playlist-item:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- DEAKTIVIERUNG FÜR MAUSKLICKS --- */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.playlist-item:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* ==========================================
   7. RESPONSIVE MEDIA QUERIES (MOBIL-OPTIMIERUNGEN)
   ========================================== */
/* Trennstrich-Logik */
@media (max-width: 420px) {
  #footer-divider {
    display: none !important;
  }
}

/* RESPONSIVE COMPACT SCREENS FIX (iPhone SE Höhe) */
@media (max-height: 670px) {
  main.blur-content {
    filter: blur(8px) !important;
    opacity: 0.35 !important;
  }
}

/* FOOTER-GAP & TEXT-BLUR (NUR BIS 420PX BREITE) */
@media (max-width: 420px) {
  footer.fixed-bottom>div.backdrop-blur {
    width: 100% !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  main.blur-content {
    filter: blur(8px) !important;
    opacity: 0.35 !important;
  }
}

main {
  transition: filter 0.4s ease, opacity 0.4s ease;
  will-change: filter;
}

/* ==========================================
   8. ZUSATZFEATURES USABILITY & CURSOR-OPTIMIERUNG
   ========================================== */
/* Verhindert das blaue Markieren von Texten, Icons und Bildern */
footer,
header,
img,
svg,
.has-tooltip {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Verhindert den Text-Cursor (den dünnen Strich) auf der ganzen Seite */
body {
  cursor: default;
}

/* Klick-Hand für Links und interaktive Elemente */
a,
button,
.has-tooltip {
  cursor: pointer;
}