/* ==========================================================================
   Shar Mountain MK – Layout
   Ersetzt sämtliche <style>-Blöcke, die vorher in index.php und footer.php
   standen. Wird in header.php nach style.css geladen.
   ========================================================================== */

:root {
  --sm-gold: #d4a017;
  --sm-gold-dark: #b88a14;
  --sm-red: #cc0000;
  --sm-red-light: #d32f2f;
  --sm-bg: #121212;
  --sm-bg-deep: #0a0a0a;
  --sm-text: #dddddd;
  --sm-muted: #888888;
  --sm-line: rgba(212, 160, 23, 0.3);

  --sm-font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --sm-font-body: 'Roboto', system-ui, sans-serif;

  --sm-space: clamp(2rem, 6vw, 4rem);
  --sm-radius: 20px;
}

/* Fokus sichtbar lassen – für Tastaturbedienung */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sm-gold);
  outline-offset: 3px;
}

/* --- Navigation ---------------------------------------------------------- */

.sm-logo {
  height: 100px;
  width: auto;
}

@media (max-width: 991px) {
  .sm-logo { height: 64px; }
}

/* --- Hero ---------------------------------------------------------------- */

.sm-hero {
  position: relative;
  height: 50vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.sm-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-sound-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  cursor: pointer;
}

.sm-sound-btn:hover { background: rgba(0, 0, 0, 0.8); }

/* --- Video in einer Seitenspalte (z.B. Über uns) -------------------------
   Nicht mit .hero-video-wrapper verwechseln: das ist der grosse Hero mit
   fester Höhe und Beschnitt. Hier bleibt das Video vollständig sichtbar.
   Bei einem quadratischen Logo-Video aspect-ratio auf 1 / 1 setzen.
   -------------------------------------------------------------------------- */

.side-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 12px;
}

.side-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* --- Hero-Karte (schwebt ins Video) -------------------------------------- */

.sm-hero-card-wrap {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding: 0 15px;
}

.sm-hero-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9);
}

.sm-title {
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 15px;
}

.sm-title span { color: var(--sm-gold); }

.sm-motto {
  font-family: var(--sm-font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: #ccc;
  margin-bottom: 25px;
}

.sm-btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--sm-gold);
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sm-btn:hover {
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4);
}

/* --- Countdown ----------------------------------------------------------- */

.sm-countdown { margin-top: 40px; }

.sm-countdown-title {
  font-family: var(--sm-font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sm-red);
  margin-bottom: 25px;
}

.sm-countdown-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sm-timer {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #333;
  border-radius: 50%;
}

.sm-timer::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid transparent;
  border-top-color: #ddd;
  border-radius: 50%;
  transform: rotate(45deg);
}

.sm-timer span {
  font-family: var(--sm-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sm-red);
}

.sm-timer small {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--sm-muted);
}

.sm-countdown-done {
  font-family: var(--sm-font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #fff;
}

/* --- Textabschnitte ------------------------------------------------------ */

.sm-section { padding: var(--sm-space) 15px; }

.sm-h2 {
  font-family: var(--sm-font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sm-gold);
}

.sm-lead {
  max-width: 65ch;
  margin: 1rem auto 0;
  line-height: 1.7;
  color: var(--sm-text);
}

.sm-lead a { color: var(--sm-gold); }

/* --- Instagram ----------------------------------------------------------- */

.sm-insta {
  padding: 0 20px var(--sm-space);
  text-align: center;
}

.sm-insta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--sm-gold);
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.sm-insta-link i { font-size: 24px; }

.sm-insta-link:hover {
  background: var(--sm-gold);
  color: var(--sm-bg);
  transform: scale(1.05);
}

/* --- Footer -------------------------------------------------------------- */

.main-footer { margin-top: var(--sm-space); }

.footer-title {
  font-family: var(--sm-font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sm-red-light);
}

.footer-title span { color: var(--sm-red-light); }

.footer-text {
  margin-top: 1rem;
  font-style: normal;
  line-height: 1.6;
  color: var(--sm-text);
}

.footer-clubabend {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sm-red-light);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 992px) {
  .footer-socials { justify-content: flex-start; }
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  color: var(--sm-text);
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 50%;
  transition: color 0.3s, border-color 0.3s;
}

.social-link:hover {
  color: var(--sm-gold);
  border-color: var(--sm-gold);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.footer-nav li { margin-bottom: 0.5rem; }

.footer-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: #bbb;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--sm-red-light); }

.footer-nav .footer-legal {
  font-size: 0.75rem;
  opacity: 0.75;
}

.footer-bottom { padding: 1rem 0; }

.footer-bottom p {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sm-muted);
}

.nissa-signature {
  padding: 25px 0;
  margin: 0;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sm-muted);
}

.nissa-signature a {
  display: inline-block;
  margin-left: 5px;
  font-weight: 700;
  text-decoration: none;
  color: #ff0000;
  transition: color 0.3s, transform 0.3s;
}

.nissa-signature a:hover {
  color: #ff4d4d;
  transform: translateY(-3px);
}

/* --- Cookie-Banner ------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  padding: 20px;
  text-align: center;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--sm-line);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  animation: sm-slide-up 0.5s ease-out;
}

.cookie-banner[hidden] { display: none; }

@keyframes sm-slide-up {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-text {
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--sm-text);
}

.cookie-text span {
  font-weight: 700;
  color: var(--sm-gold);
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-cookie {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-accept { background: var(--sm-gold); color: #000; }
.btn-accept:hover { background: var(--sm-gold-dark); }

.btn-decline {
  background: transparent;
  color: var(--sm-muted);
  border: 1px solid #444;
}

.btn-decline:hover { color: #fff; border-color: #888; }

/* --- Mobile -------------------------------------------------------------- */

@media (max-width: 768px) {
  .sm-hero { height: 40vh; }
  .sm-hero-card-wrap { margin-top: -50px; }
  .sm-hero-card { padding: 30px 15px; }
  .footer-nav { gap: 1.5rem; }
  .side-video { margin-top: 1.5rem; }
}

@media (max-width: 400px) {
  .sm-timer { width: 72px; height: 72px; }
  .sm-timer span { font-size: 1.3rem; }
  .sm-countdown-title { font-size: 1.1rem; }
}

/* --- Weniger Animation, wenn das System es verlangt ---------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
