/* ===== Global Reset für die Landingpage =====
 * Version: 2025.12.02.121500
 */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: #ffcc33;
}

/* ===== Haupt-Stage mit Hintergrund ===== */

.landing-scene {
  position: relative;
  width: 100%;
  min-height: 100vh;

  /* Fallback falls Hintergrundbild fehlt */
  background-color: transparent;
  background-image: url(/themes/custom/gavias_batiz/assets/images/bg-wdsb.jpg) !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  overflow: hidden;
  transition: opacity 0.4s ease;
}

/* wird per JS gesetzt, wenn Landscape aktiv ist */
.landing-scene--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Licht-/Schatteneffekt über dem Hintergrund */
.landing-scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 20% 10%,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: wdsb-light-sweep 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes wdsb-light-sweep {
  0% {
    transform: translate3d(-10%, 0, 0);
    opacity: 0.6;
  }
  50% {
    transform: translate3d(10%, 5%, 0);
    opacity: 0.3;
  }
  100% {
    transform: translate3d(20%, -5%, 0);
    opacity: 0.55;
  }
}

/* Sicherstellen, dass UI über dem Light-Sweep liegt */
.landing-scene__btn,
.wdsb-top-bar,
.wdsb-bottom-bar,
.wdsb-modal-overlay {
  position: relative;
  z-index: 3;
}

/* ===== Buttons (A–D), die per JS positioniert werden ===== */

.landing-logo-item {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: left 0.5s ease-out, top 0.5s ease-out;
  width: clamp(100px, calc(100px + (290 - 100) * ((100vw - 380px) / (2025 - 380))), 290px);
}

.landing-scene__btn {
  position: relative;
  display: block;
  cursor: pointer;
  width: 100%;
}

.landing-scene__btn img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.18s ease-out, filter 0.18s ease-out;
}

.landing-scene__btn:hover img {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.landing-scene__btn:active img {
  transform: translateY(0) scale(0.97);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

/* ===== Gemeinsamer Style für Top- & Bottom-Container ===== */

.wdsb-gradient-box {
  border-radius: 8px;
  padding: 15px;
  background: linear-gradient(
    90deg,
    #FFCC00,
    #D4AF37,
    #B8860B,
    #996515
  );
  box-shadow: 0 4px 12px rgba(255, 255, 240, 0.7);
  color: #000;
  z-index: 5;
}

/* ===== TOP-CONTAINER: Telefon + E-Mail ===== */

.wdsb-top-bar {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 15px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 20px;
  row-gap: 10px;
  font-size: 1.5rem;
}

.wdsb-top-bar__phone {
  text-align: left;
}

.wdsb-top-bar__email {
  text-align: right;
}

.wdsb-top-bar a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.wdsb-top-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .wdsb-top-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wdsb-top-bar__phone,
  .wdsb-top-bar__email {
    text-align: center;
  }
}

/* ===== BOTTOM-CONTAINER: Impressum / Datenschutz / Kontakt ===== */

.wdsb-bottom-bar {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.wdsb-bottom-bar__link {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.wdsb-bottom-bar__link:hover {
  background: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .wdsb-bottom-bar {
    text-align: center;
  }
}

/* ===== MODALS ===== */

:root {
  --wdsb-modal-overlay-bg: rgba(0, 0, 0, 0.7);
  --wdsb-modal-bg: radial-gradient(circle at top, #2c2510 0, #050505 60%);
}

.wdsb-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--wdsb-modal-overlay-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

.wdsb-modal-overlay.is-active {
  display: flex;
}

.wdsb-modal {
  width: 80vw;
  height: 80vh;
  max-width: 1200px;
  max-height: 800px;
  background: var(--wdsb-modal-bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 204, 0, 0.6);
  box-shadow:
    0 0 25px rgba(255, 204, 0, 0.4),
    0 15px 40px rgba(0, 0, 0, 0.9);
  padding: 20px 24px;
  position: relative;
  overflow: auto;
  color: #f8f3da;
}

.wdsb-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: #ffec99;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
  transition: transform 0.15s ease, color 0.15s ease;
}

.wdsb-modal__close:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.wdsb-modal__content {
  margin: 32px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wdsb-modal__content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #ffcc33;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
}

/* ===== Orientation Warning (Landscape blockieren) ===== */

.wdsb-orientation-warning {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.wdsb-orientation-warning__inner {
  max-width: 400px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.5;
}

.wdsb-orientation-warning__icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: wdsb-rotate-phone 1.4s ease-in-out infinite;
}

@keyframes wdsb-rotate-phone {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(90deg); }
  40%  { transform: rotate(0deg); }
  60%  { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}

@media screen and (orientation: landscape) and (max-width: 900px) {
  .wdsb-orientation-warning {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
}

.landing-icon {
	height: 75px;
}

.landing-icons-wrapper {
	width: clamp(100px, calc(100px + (290 - 100) * ((100vw - 380px) / (2025 - 380))), 290px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


