/**
 * Theme Name:     Duschlmedia
 * Author:         Simon Duschl
 * Template:       hello-elementor
 * Text Domain:	   duschlmedia
 * Description:    Child from Hello Elementor
 * Theme URI:      https://duschlmedia.de
 * Author URI:     https://duschlmedia.de
 * Version:        1
 */

/* #region CSS Template */

#dm-pv-button {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    background-color: #FF9823;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    padding: 18px 25px;
    width: 100%;
      }

.rcb-content-blocker[consent-by="services"] div[aria-hidden="true"]:not(:has(img)) {
    display: none !important;
}

h1 {
  font-size: clamp(30px, 1.5rem + 1.944vw, 55px) !important;
}
h2 {
  font-size: clamp(27px, 1.35rem + 1.7496vw, 49.5px) !important;
}
h3 {
  font-size: clamp(24px, 1.2rem + 1.5552vw, 44px) !important;
}
h4 {
  font-size: clamp(21px, 1.05rem + 1.3608vw, 38.5px) !important;
}
h5 {
  font-size: clamp(18px, 0.9rem + 1.1664vw, 33px) !important;
}
h6 {
  font-size: clamp(15px, 0.75rem + 0.972vw, 27.5px) !important;
}
body {
  font-size: clamp(1rem, 0.96107rem + 0.16393vw, 1.125rem) !important;
}
p {
  font-size: 1rem !important;
}

.p-subtitle {
  font-weight: 300 !important;
}

.p-align {
  text-align: center !important;
}

/* Das Menü aus dem Container befreien */
.elementor-element-c1b3009,
.elementor-element-f37b190 {
  overflow: visible !important;
}

.elementor-nav-menu--dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  width: 250px !important;
  z-index: 99999 !important;
  --menu-height: auto !important;
}

ul#menu-2-f37b190 {
  margin: 5px 0 !important;
  padding: 15px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.elementor-widget-nav-menu {
  overflow: visible !important;
}

/* #region Glow video */

.glow-video-wrapper {
  padding: 10px;
  border-radius: 16px;
  border: 2px solid #ffffff; /* Weißer Rahmen */
  background: #000000;
  box-shadow: 0 0 30px #deb84180; /* Goldener Glow */
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

/* Entfernt inneren Rand/Lila Rahmen des Vimeo-Players */
.glow-video-wrapper iframe {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  width: 100%;
  height: 100%;
}

/* HTML Module Vimeo Wrapper - für Elementor HTML Module */
.html-vimeo-wrapper {
  padding: 10px;
  border-radius: 16px;
  border: 2px solid #ffffff; /* Weißer Rahmen */
  background: #000000;
  box-shadow: 0 0 30px #deb84180; /* Goldener Glow */
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

/* Vimeo Video Container - WICHTIG: !important für Überschreibung */
.vimeo-video {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 56.25% !important; /* 16:9 Aspect Ratio */
  background: #000 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: block !important;
  min-height: 0 !important;
}

/* Entfernt inneren Rand/Lila Rahmen des Vimeo-Players */
.html-vimeo-wrapper iframe {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  width: 100%;
  height: 100%;
}

/* Spotlight-Effekt auch für HTML Module */
body.page-id-43.spotlight-active .html-vimeo-wrapper {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
    0 0 60px rgba(255, 255, 255, 0.4), 0 0 90px rgba(255, 255, 255, 0.2),
    inset 0 0 0 3px rgba(255, 255, 255, 0.8) !important;
  border-radius: 15px !important;
  animation: videoGlow 3s ease-in-out infinite alternate;
}

/* #endregion Glow video */

/* #region cookie Button */

.DM_Cookie_Button {
  background-color: #ff9823 !important;
  color: white !important;
  padding: 15px 30px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  min-width: 250px !important;
}

@media (max-width: 768px) {
  .DM_Cookie_Button {
    padding: 12px 25px !important;
    font-size: 15px !important;
    min-width: 200px !important;
  }
}

/* #endregion cookie Button */

/* #region Blue Glow Card */

.blue-glow-card {
  background-color: #141414;
  border-radius: 16px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  /* border: 1px solid rgba(255, 181, 96, 0.3); */
  /* box-shadow: 0 0 5px rgba(255, 181, 96, 0.2); */
}

.blue-glow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 181, 96, 0.7) 0%,
    rgba(255, 181, 96, 0.2) 50%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.blue-glow-card:hover {
  transform: translateY(-5px);
  border: 1px solid rgba(255, 181, 96, 0.8);
  box-shadow: 0 10px 30px rgba(255, 181, 96, 0.6),
    0 0 15px rgba(255, 181, 96, 0.8);
}

.blue-glow-card:hover::before {
  opacity: 1;
}

.blue-glow-card > * {
  position: relative;
  z-index: 1;
}

/* #region Highlight Background */

.highlight-background {
  background-color: #ff9823;
  padding: 2px 6px;
  font-weight: 600;
  border-radius: 4px;
  color: #eeeeee;
  font-weight: 700;
  display: inline;
}

/* #endregion Highlight Background */

/* #region White Gradient */

.white-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: auto !important;
  font-weight: 700;
  text-transform: uppercase;
}

.white-gradient-low {
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: auto !important;
  margin-top: -15px !important;
  background-clip: text;
}

/* #endregion White Gradient */

/* ===========================================
   SIMPLE OVERLAY EFFEKT - Videomarketing Animation
   =========================================== */

/* 90% schwarzes Overlay über der ganzen Seite - nur auf Page ID 43 */
body.page-id-43 .simple-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Transparent, da der Kreis das Overlay macht */
  z-index: 999999;
  opacity: 1;
  pointer-events: none;
}

/* Expandierender Kreis - erstellt transparentes "Loch" im Overlay */
body.page-id-43 .expanding-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000000;
  /* Box-shadow mit negativem spread für das "Loch" - 97% dunkel */
  box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.97), 0 0 0 5000px rgba(0, 0, 0, 0.97);
}

/* Kreis expandiert und lässt Inhalt durch */
body.page-id-43 .expanding-circle.expand {
  width: 250vmax;
  height: 250vmax;
  box-shadow: 0 0 0 0px rgba(0, 0, 0, 0), 0 0 0 0px rgba(0, 0, 0, 0);
}

/* Der Spotlight-Kreis der die Hero-Section freilegt - nur auf Page ID 43 */
body.page-id-43 .spotlight-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  box-shadow: 0 0 0 3000px rgba(0, 0, 0, 0.85),
    inset 0 0 50px rgba(255, 255, 255, 0.05), 0 0 80px rgba(255, 255, 255, 0.2);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

/* Spotlight in verschiedenen Größen für die Animation - nur auf Page ID 43 */
body.page-id-43 .spotlight-circle.small {
  width: 180px;
  height: 180px;
  box-shadow: 0 0 0 3000px rgba(0, 0, 0, 0.85),
    inset 0 0 40px rgba(255, 255, 255, 0.05), 0 0 60px rgba(255, 255, 255, 0.15);
}

body.page-id-43 .spotlight-circle.large {
  width: 320px;
  height: 320px;
  box-shadow: 0 0 0 3000px rgba(0, 0, 0, 0.85),
    inset 0 0 60px rgba(255, 255, 255, 0.05),
    0 0 100px rgba(255, 255, 255, 0.25);
}

/* EXPLOSIVE MEGA EXPANSION - mit weichem Übergang - nur auf Page ID 43 */
body.page-id-43 .spotlight-circle.expanding {
  width: 1000vw;
  height: 1000vh;
  box-shadow: 0 0 0 0px rgba(0, 0, 0, 0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translate(-50%, -50%) scale(10);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
}

/* Einfache Text-Nachricht in der Mitte - nur auf Page ID 43 */
body.page-id-43 .overlay-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  opacity: 0;
  z-index: 1000001; /* Höher als der expandierende Kreis */
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

body.page-id-43 .overlay-message h2,
.spotlight-message {
  font-size: 2.8rem;
  margin: 0;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 1px;
}

/* Mobile Anpassung für Overlay Text */
@media (max-width: 768px) {
  body.page-id-43 .overlay-message h2,
  .spotlight-message {
    font-size: 30px;
    white-space: nowrap;
  }
}

/* Animation - Text muss komplett verschwinden bevor Expansion startet */
@keyframes pureMessage {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  5% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Video-Element mit goldenem Glow - nur auf Page ID 43 */
body.page-id-43.spotlight-active .elementor-element-fcdc585,
body.page-id-43.spotlight-active .uael-video__outer-wrap,
body.page-id-43.spotlight-active .uael-video-inner-wrap,
body.page-id-43.spotlight-active .glow-video-wrapper {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
    0 0 60px rgba(255, 255, 255, 0.4), 0 0 90px rgba(255, 255, 255, 0.2),
    inset 0 0 0 3px rgba(255, 255, 255, 0.8) !important;
  border-radius: 15px !important;
  animation: videoGlow 3s ease-in-out infinite alternate;
}

/* Animation für Video-Glow Effekt */
@keyframes videoGlow {
  0% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5),
      0 0 50px rgba(255, 255, 255, 0.3), 0 0 75px rgba(255, 255, 255, 0.1),
      inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8),
      0 0 80px rgba(255, 255, 255, 0.6), 0 0 120px rgba(255, 255, 255, 0.4),
      inset 0 0 0 4px rgba(255, 255, 255, 0.9);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .spotlight-circle {
    width: 200px;
    height: 200px;
  }

  .spotlight-circle.small {
    width: 150px;
    height: 150px;
  }

  .spotlight-circle.large {
    width: 250px;
    height: 250px;
  }

  .spotlight-message h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .spotlight-circle {
    width: 180px;
    height: 180px;
  }

  .overlay-message {
    width: 90vw !important;
    max-width: 90vw !important;
    padding: 0 10px;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .spotlight-message,
  .spotlight-message h2 {
    font-size: 6vw !important;
    white-space: normal;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
  }
}

/* #region Animated Progress Circle */

.animated-progress-circle {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 4.5rem auto;
  padding: 8rem 4.5rem;
  min-height: 250vh;
  box-sizing: border-box;
  overflow: visible;
}

.progress-circle-container {
  position: sticky;
  top: 40vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-40%) scale(1);
  z-index: 1;
  transition: transform 0.3s ease-out;
  width: 90%;
  display: flex;
  justify-content: center;
}

.progress-svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
  width: 100% !important;
  height: 100% !important;
}

/* Responsive SVG sizing */
@media (max-width: 1024px) {
  .progress-svg {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 767px) {
  .progress-svg {
    width: 100% !important;
    height: 100% !important;
  }
}

.progress-circle {
  transition: stroke-dashoffset 0.3s ease, filter 0.3s ease;
}

.circle-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  z-index: 10;
}

.circle-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  color: white;
  font-size: 2.25rem;
  font-weight: bold;
  text-align: center;
}

.circle-text-element {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.8);
  background: #141414;
  color: white;
  padding: 18px 30px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 181, 96, 0.3);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.circle-text-element.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.circle-text-element:hover {
  box-shadow: 0 6px 20px rgba(255, 181, 96, 0.5);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Responsive Design */
/* Tablet: 1024px - 768px */
@media (max-width: 1024px) and (min-width: 768px) {
  .animated-progress-circle {
    max-width: 100%;
    padding: clamp(3rem, 4vw, 4rem) clamp(2rem, 3vw, 3rem);
    margin: 3rem auto;
  }

  .circle-logo {
    width: clamp(170px, 20vw, 400px);
    height: auto;
  }

  .logo-fallback {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }

  .circle-text-element {
    font-size: clamp(12px, 1.6vw, 15px);
    padding: clamp(10px 18px, 2vw 3.5vw, 14px 22px);
    max-width: 200px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

/* Mobile: 767px - 300px */
@media (max-width: 767px) {
  .animated-progress-circle {
    max-width: 100%;
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
    margin: 2rem auto;
  }

  .circle-logo {
    width: clamp(50px, 20vw, 150px);
    height: auto;
  }

  .logo-fallback {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
  }

  .circle-text-element {
    font-size: 10px;
    padding: clamp(6px 10px, 1.5vw 2.5vw, 8px 14px);
    white-space: normal;
    max-width: clamp(120px, 30vw, 180px);
    text-align: center;
    line-height: 1.3;
    border-radius: 10px;
  }
}

/* Circle Text Areas - Fixed Positioning System */
.circle-text-areas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.text-area {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Area Positions - Based on 5 positions around circle like in image */
.text-area-0 {
  /* Top */
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 225px;
  text-align: center;
}

.text-area-1 {
  /* Right */
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 180px;
  text-align: center;
}

.text-area-2 {
  /* Left */
  top: 50%;
  left: -8%;
  transform: translateY(-50%);
  width: 180px;
  text-align: center;
}

.text-area-3 {
  /* Bottom Left */
  bottom: -5%;
  width: 215px;
  text-align: center;
}

.text-area-4 {
  /* Bottom Right */
  bottom: -5%;
  right: 7%;
  width: 220px;
  text-align: center;
}

.text-area-content {
  background: #141414;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 4px 15px rgba(255, 181, 96, 0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.text-area.visible {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .text-area-0 {
    width: 240px;
  }
  .text-area-1,
  .text-area-2 {
    width: 215px;
  }
  .text-area-3,
  .text-area-4 {
    width: 230px;
  }
  .text-area-content {
    font-size: clamp(17px, 2.5vw, 24px);
    padding: 10px 16px;
  }
}

@media (max-width: 767px) {
  .text-area-0 {
    width: 180px;
  }
  .text-area-1,
  .text-area-2 {
    width: 140px;
  }
  .text-area-3,
  .text-area-4 {
    width: 110px;
  }
  .text-area-content {
    font-size: 12px !important;
    padding: 10px 15px;
    border-radius: 10px;
  }
}

/* Animation for better performance */
.progress-circle-container * {
  will-change: transform, opacity;
}

.progress-circle {
  will-change: stroke-dashoffset, filter;
}

/* #endregion Animated Progress Circle */

/* #region Logo Marquee Fade Edges */

.slick-list {
  position: relative;
  overflow: hidden;
}

.slick-list::before,
.slick-list::after {
  content: "";
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.slick-list::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

.slick-list::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Immer schwarze Verläufe verwenden */

/* Für spezifische Hintergrundfarbe anpassen */
.dark-bg .slick-list::before {
  background: linear-gradient(
    to right,
    rgba(20, 20, 20, 1) 0%,
    rgba(20, 20, 20, 0.8) 20%,
    rgba(20, 20, 20, 0.3) 60%,
    rgba(20, 20, 20, 0) 100%
  );
}

.dark-bg .slick-list::after {
  background: linear-gradient(
    to left,
    rgba(20, 20, 20, 1) 0%,
    rgba(20, 20, 20, 0.8) 20%,
    rgba(20, 20, 20, 0.3) 60%,
    rgba(20, 20, 20, 0) 100%
  );
}

/* #endregion Logo Marquee Fade Edges */

/* #region Vimeo Privacy Blocker */

.vimeo-privacy-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vimeo-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Play Button Styling */
.vimeo-play-btn {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Play Button IMG Styling */
.vimeo-play-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Privacy Notice - Schwarzes Banner unten */
.vimeo-privacy-notice {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 3;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.vimeo-privacy-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  text-align: center;
}

.vimeo-privacy-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vimeo-privacy-text {
  color: #ffffff;
  font-size: 15.4px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .vimeo-play-btn {
    width: 56px;
    height: 40px;
  }

  .vimeo-privacy-text {
    font-size: 13.2px;
  }

  .vimeo-privacy-content {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .vimeo-play-btn {
    width: 48px;
    height: 34px;
  }

  .vimeo-privacy-text {
    font-size: 12.1px;
  }

  .vimeo-privacy-content {
    padding: 8px 10px;
  }
}

/* #endregion Vimeo Privacy Blocker */
