/* =============================================================
   GLOBAL.CSS — My Sweet Undivine
   Shared styles across all pages (Home, Booking, Media)
   ============================================================= */

/* =========================
   CSS Variables
   ========================= */
:root {
  --bg0: #0a0a0b;
  --bg1: #101012;
  --panel: #121214;
  --panel2: #0f0f11;
  --border: rgba(255,255,255,.08);
  --text: #f2f2f2;
  --muted: rgba(242,242,242,.72);
  --muted2: rgba(242,242,242,.55);
  --accent: #a01e28;
  --accent2: #600f18;
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius: 16px;
}

/* =========================
   Reset & Base
   ========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: var(--text);
}
html:focus-within { scroll-behavior: auto; }

body {
  min-height: 100vh;
  background: #000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: page-fade-in 0.35s ease both;
}

body.is-leaving {
  opacity: 0;
  transition: opacity 0.22s ease;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Syne", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
}

/* =========================
   i18n: Language System
   ========================= */
.msu-i18n { display: none !important; }
html.lang-de .msu-i18n[data-lang="de"] { display: block !important; }
html.lang-en .msu-i18n[data-lang="en"] { display: block !important; }

/* inline spans need inline display */
html.lang-de span.msu-i18n[data-lang="de"],
html.lang-en span.msu-i18n[data-lang="en"] { display: inline !important; }

/* =========================
   Header / Navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(10,10,11,0.45);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 24px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 20px 18px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 17.6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: #fff; }
.main-nav a.is-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: #a01e28;
}

/* BOOKING link: glasmorphism pill */
.nav-booking { position: relative; }
.nav-booking::after {
  content: '';
  position: absolute;
  inset: 8px -2px;
  background: linear-gradient(135deg, rgba(160,30,40,0.55), rgba(15,15,15,0.70));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

/* =========================
   Hamburger Toggle
   ========================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .site-nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(160deg, #1e0b0d, #0d0506);
    border-top: 1px solid rgba(76,28,32,0.80);
    border-bottom: 1px solid rgba(76,28,32,0.40);
    box-shadow: 0 12px 40px rgba(0,0,0,0.60);
    z-index: 9998;
  }
  .site-nav.nav-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav {
    flex-direction: column;
    padding: 6px 0 10px;
  }
  .main-nav a { padding: 14px 20px; font-size: 16px; }

  .nav-booking::after { inset: 6px 8px; }

  /* Lang switch: nur Flagge anzeigen */
  .lang-label { display: none; }
  .msu-lang-switch { gap: 2px; }
  .msu-lang-switch button {
    padding: 3px 5px;
    font-size: 22px;
    background: none;
    border: none;
    opacity: 0.55;
    border-radius: 6px;
  }
  .msu-lang-switch button:hover { background: none; transform: none; opacity: 0.85; }
  html.lang-de .msu-lang-switch button[data-lang="de"],
  html.lang-en .msu-lang-switch button[data-lang="en"] {
    background: none;
    border: none;
    opacity: 1;
  }
}

/* =========================
   Screen-reader only (SEO h1)
   ========================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Hero Banner
   ========================= */
.msu-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.msu-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.msu-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0) 20%,
    rgba(10,10,11,0.0) 58%,
    rgba(10,10,11,0.8) 78%,
    rgba(10,10,11,1.0) 92%
  );
  z-index: 1;
}

.msu-hero__scroll {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 22px;
  animation: hero-bounce 2s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.msu-hero__scroll.is-hidden {
  opacity: 0 !important;
  animation: none !important;
}



@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 1.0; }
}

.msu-hero__logo {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: clamp(180px, 40vw, 900px);
}

/* Viewport höher als 16:9 → alle Bandmitglieder sichtbar */
@media (max-aspect-ratio: 16/9) {
  .msu-hero { height: auto; aspect-ratio: 16 / 9; }
  .msu-hero__img { object-position: center center; }
}

/* =========================
   Floating Social Icons
   ========================= */
#social-icons {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(10,10,11,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
}

#social-icons a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

#social-icons i { font-size: 30px; }

#social-icons a:hover {
  color: #fff;
  background: rgba(160,30,40,0.45);
}

/* tooltip on hover */
#social-icons a::after {
  content: attr(data-name);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 5px 10px;
  background: rgba(10,10,11,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#social-icons a:hover::after { opacity: 1; }

@media (max-width: 768px) {
  #social-icons {
    flex-direction: row;
    top: auto;
    bottom: 18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(10,10,11,0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 10px;
    gap: 2px;
  }
  #social-icons i { font-size: 22px; }
  #social-icons a { width: 44px; height: 44px; }
  #social-icons a::after { display: none; }
}

/* =========================
   Language Switch UI
   ========================= */
.msu-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.msu-lang-switch button {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.12s ease;
}

.msu-lang-switch button:hover {
  background: rgba(160, 30, 40, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

html.lang-de .msu-lang-switch button[data-lang="de"],
html.lang-en .msu-lang-switch button[data-lang="en"] {
  background: #a01e28;
  border-color: #a01e28;
  color: #fff;
}


/* =========================
   Contact Cards
   ========================= */
.msu-contact-wrap {
  width: 100%;
  margin: 24px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  z-index: 1;
}

.msu-contact-title {
  text-align: center;
  margin: 0 0 14px 0;
  font-weight: 980;
  font-size: 22px;
  letter-spacing: .01em;
  color: #fff;
  background: transparent;
}

.msu-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.msu-contact-card {
  box-sizing: border-box;
  padding: 20px;
  background: linear-gradient(135deg, rgba(160,30,40,0.52), rgba(15,15,15,0.90));
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 18px;
  color: #fff;
  min-width: 0;
}

.msu-contact-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.20);
}

.msu-contact-name {
  margin: 12px 0 10px 0;
  font-weight: 980;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #fff;
}

.msu-contact-line {
  margin: 0 0 12px 0;
  font-weight: 750;
  font-size: 14px;
  color: rgba(255,255,255,0.76);
}

.msu-contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.20);
  font-weight: 950;
  font-size: 16px;
  letter-spacing: .01em;
  color: rgba(255,255,255,0.96);
  cursor: pointer;
  user-select: text;
  -webkit-user-select: text;
}
.msu-contact-email span { word-break: break-word; }
.msu-contact-email:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.26);
}

.msu-contact-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
}

.msu-contact-toast {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.70);
  min-height: 1.2em;
}

@media (max-width: 820px) {
  .msu-contact-grid { grid-template-columns: 1fr; }
}

/* =========================
   Main Content Container
   ========================= */
.site-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 60px) clamp(16px, 4vw, 60px);
}

.section-gap {
  margin-bottom: clamp(30px, 4vw, 50px);
}

/* =========================
   Footer
   ========================= */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 30px 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* =========================
   Back to Top
   ========================= */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a01e28, #600f18);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(160,30,40,0.4);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
#back-to-top:hover { filter: brightness(1.1); }
#back-to-top.show-btt { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top img { width: 26px; height: 26px; display: block; }

@media (max-width: 767px) {
  #back-to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
  #back-to-top img { width: 22px; height: 22px; }
}

/* =========================
   Scroll Reveal
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================
   Shared Button Styles
   ========================= */
.msu-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(160,30,40,.95), rgba(96,15,24,.95));
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
  letter-spacing: .15px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
  font-size: 13.5px;
  text-align: left;
}
.msu-btn:hover { filter: brightness(1.06); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.msu-btn:active { transform: translateY(0px); filter: brightness(.98); }
.msu-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(76,28,32,.35); }
