/* =============================================================
   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: #4c1c20;
  --accent2: #2a0f12;
  --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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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(0,0,0,0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

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

.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; }

/* BOOKING link: glasmorphism pill */
.nav-booking { position: relative; }
.nav-booking::after {
  content: '';
  position: absolute;
  inset: 8px -2px;
  background: linear-gradient(135deg, rgba(76,28,32,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;
}

@media (max-width: 767px) {
  .main-nav a { padding: 12px 10px; font-size: 14px; }
}

/* =========================
   Hero Banner
   ========================= */
.msu-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  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(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}

.msu-hero__logo {
  position: relative;
  z-index: 1;
  width: clamp(260px, 55vw, 1080px);
  padding: 40px 20px;
}

@media (max-width: 600px) {
  .msu-hero { min-height: unset; aspect-ratio: 16 / 9; }
  .msu-hero__img { object-position: center 150%; }
  .msu-hero__logo { width: 90vw; padding: 30px 16px; }
}

/* =========================
   Floating Social Icons
   ========================= */
#social-icons {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  color: #fff;
  z-index: 9999;
}

#social-icons a {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  margin-right: 10px;
  transition: color 0.15s ease;
}

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

#social-icons a:hover { color: #006400; }

/* tooltip on hover */
#social-icons a:hover::after {
  content: attr(data-name);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
  #social-icons {
    flex-direction: row;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    justify-content: center;
    background-color: #000;
    padding: 10px;
  }
  #social-icons a { margin-right: 0; }
  #social-icons i { font-size: 30px; }
}

/* =========================
   Language Switch UI
   ========================= */
.msu-lang-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-left: auto;
}

.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(76, 28, 32, 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: #4c1c20;
  border-color: #4c1c20;
  color: #fff;
}

@media (max-width: 600px) {
  .msu-lang-switch { justify-content: center; }
  .msu-lang-switch button { padding: 10px 16px; font-size: 15px; }
}

/* =========================
   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(76,28,32,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: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
#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; }
}

/* =========================
   Shared Button Styles
   ========================= */
.msu-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(76,28,32,.95), rgba(42,15,18,.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); }
