/* =========================================================
   ClapRocker Facelift v1
   Site-weites Design-Update, additive CSS-Ebene
   (bestehende Elementor-Inhalte bleiben unangetastet)
   ========================================================= */

:root{
  --cr-accent: #0085FF;
  --cr-accent-2: #37c6ff;
  --cr-glow: rgba(0,133,255,.55);
  --cr-dark: #0b1220;
  --cr-dark-2: #10192c;
  --cr-card: rgba(255,255,255,.04);
  --cr-border: rgba(255,255,255,.08);
  --cr-radius: 16px;
}

/* ---------- Grundstimmung / Hintergrund ---------- */
body{
  background-color: var(--cr-dark) !important;
  background-image:
    radial-gradient(circle at 12% -10%, rgba(0,133,255,.28), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(55,198,255,.16), transparent 38%),
    linear-gradient(180deg, var(--cr-dark) 0%, var(--cr-dark-2) 100%) !important;
  background-attachment: fixed !important;
  background-blend-mode: normal;
}

::selection{ background: var(--cr-accent); color:#fff; }

::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--cr-dark); }
::-webkit-scrollbar-thumb{ background: linear-gradient(var(--cr-accent), var(--cr-accent-2)); border-radius: 10px; }

/* ---------- Typografie ---------- */
h1,h2,h3,h4,h5,h6,.site-title,
.elementor-heading-title{
  font-family: 'Figtree', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

h1.elementor-heading-title, .elementor-widget-heading h1{
  background: linear-gradient(92deg, #ffffff 0%, var(--cr-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

a{ transition: color .2s ease; }

/* ---------- Header / Navigation ---------- */
header.elementor-location-header{
  position: sticky; top: 0; z-index: 999;
  background: rgba(11,18,32,.72) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cr-border);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transition: transform .3s ease;
}
header.elementor-location-header.cr-header-hidden{
  transform: translateY(-100%);
}

.main-header-menu .menu-item > a{
  position: relative;
  font-weight: 600;
}
.main-header-menu .menu-item > a::after{
  content:"";
  position:absolute; left:0; bottom:-4px;
  width:0%; height:2px;
  background: linear-gradient(90deg, var(--cr-accent), var(--cr-accent-2));
  transition: width .25s ease;
  border-radius: 2px;
}
.main-header-menu .menu-item:hover > a::after{ width:100%; }

/* ---------- Header-Groesse einkuerzen ---------- */
.elementor-element-ccd85fc{
  min-height: 72px !important;
  padding: 6px clamp(14px, 4vw, 28px) !important;
  align-items: center !important;
}
/* Logo skaliert fliessend mit der Viewport-Breite statt in festen Sprüngen,
   damit es auf jeder Groesse proportional wirkt und nicht in die Ecke gequetscht ist */
.elementor-element-c32408a img,
.elementor-widget-theme-site-logo img{
  max-height: clamp(26px, 7vw, 58px) !important;
  width: auto !important;
  margin: 0 !important;
}
.elementor-element-c32408a{
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
}
.elementor-element-b7628d0.elementor-widget-spacer .elementor-spacer-inner{
  height: 6px !important;
}
.elementor-element-64e8d17{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.header-menu a{ padding-top: 8px !important; padding-bottom: 8px !important; }

/* ---------- Login-/User-Box im Header (cr_header_user Shortcode) ---------- */
a.cr-header-user-box, summary.cr-header-user-box{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: auto !important;
  padding: 8px 16px 8px 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid var(--cr-border) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  list-style: none !important;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease !important;
}
summary.cr-header-user-box::-webkit-details-marker{ display:none !important; }
summary.cr-header-user-box::marker{ content:"" !important; }

a.cr-header-user-box:hover, summary.cr-header-user-box:hover{
  background: rgba(0,133,255,0.16) !important;
  border-color: var(--cr-accent) !important;
  transform: translateY(-1px);
}

.cr-header-avatar{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  overflow: hidden;
  font-size: 14px !important;
  line-height: 1 !important;
  flex-shrink: 0;
}
.cr-header-avatar img{
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover;
}
.cr-header-login-icon{
  background: linear-gradient(92deg, var(--cr-accent), var(--cr-accent-2));
  color: #fff !important;
  font-size: 14px !important;
}
.cr-header-name{ white-space: nowrap; }
.cr-verified-badge{ display:inline-flex; width:14px; height:14px; vertical-align:-2px; margin-left:2px; color: var(--cr-accent-2); }
.cr-verified-badge svg{ width:100%; height:100%; fill: currentColor; }

/* Dropdown fuer eingeloggte User */
.cr-header-user-menu{ position: relative; }
.cr-header-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--cr-dark-2);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  z-index: 1000;
}
.cr-header-dropdown a{
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.85) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
}
.cr-header-dropdown a:hover{ background: rgba(0,133,255,0.14); color:#fff !important; }
.cr-header-dropdown a.cr-header-logout{ color:#ff8080 !important; }
.cr-header-menu-icon{ display:inline-flex; flex-direction:column; gap:3px; margin-left:2px; }
.cr-header-menu-icon span{ width:14px; height:2px; background:#fff; border-radius:2px; }

@media (max-width: 900px){
  a.cr-header-user-box, summary.cr-header-user-box{
    padding: 8px !important;
    gap: 0 !important;
  }
  .cr-header-user-box .cr-header-name{ display: none !important; }
  .cr-header-avatar{ width: 34px !important; height: 34px !important; min-width: 34px !important; }
}

/* ---------- Changelog-Modal ---------- */
html.cr-modal-lock{ overflow: hidden !important; }

.cr-modal{
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}
.cr-modal.cr-modal-open{ display: block; }

.cr-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(5,9,18,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: cr-fade .2s ease;
}

.cr-modal-dialog{
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  max-height: 82vh;
  margin: 6vh auto 0;
  background: var(--cr-dark-2, #10192c);
  border: 1px solid var(--cr-border, rgba(255,255,255,.08));
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cr-pop .22s ease;
}

.cr-modal-body{
  overflow-y: auto;
  padding: 34px 30px 30px;
}

.cr-modal-close{
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cr-border, rgba(255,255,255,.08));
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.cr-modal-close:hover{
  background: rgba(0,133,255,.25);
  transform: rotate(90deg);
}

@keyframes cr-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes cr-pop{ from{ opacity:0; transform: translateY(16px) scale(.98); } to{ opacity:1; transform: translateY(0) scale(1); } }

@media (max-width: 600px){
  .cr-modal-dialog{ width: 94vw; margin-top: 4vh; max-height: 88vh; }
  .cr-modal-body{ padding: 28px 18px 22px; }
}

/* ---------- Buttons (Astra + Elementor) ---------- */
.ast-button, .ast-custom-button, button, input[type="submit"],
.elementor-button, .elementor-button-link{
  border-radius: 999px !important;
  background: linear-gradient(92deg, var(--cr-accent), var(--cr-accent-2)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 22px var(--cr-glow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
.ast-button:hover, .ast-custom-button:hover, .elementor-button:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px var(--cr-glow);
  filter: brightness(1.08);
  color:#fff !important;
}

/* ---------- Karten / Boxen (Icon-Listen, Widgets) ----------
   Bewusst NICHT im Footer/Header, sonst entstehen Kaesten um Link-Listen */
.elementor-icon-list-items{
  background: var(--cr-card);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  padding: 6px 10px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
footer .elementor-icon-list-items,
.site-footer .elementor-icon-list-items,
.footer-widget-area .elementor-icon-list-items,
.elementor-location-footer .elementor-icon-list-items{
  background: none !important;
  border: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.elementor-icon-list-item{ transition: transform .2s ease; }
.elementor-icon-list-item:hover{ transform: translateX(4px); }

/* ---------- Partner-Logo-Marquee ---------- */
.fullwidth-logo-slider{
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-item img{ filter: grayscale(1) brightness(1.4); }
.logo-item:hover img{ filter: grayscale(0) brightness(1); }

/* ---------- Footer ---------- */
footer, .site-footer, .ast-small-footer, .footer-adv{
  position: relative;
  border-top: 1px solid var(--cr-border);
}
footer::before, .site-footer::before{
  content:"";
  position:absolute; top:-1px; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--cr-accent-2), transparent);
}

/* ---------- Scroll-Reveal light touch ---------- */
img{ transition: filter .25s ease; }

/* ---------- Responsive Feinschliff ---------- */
@media (max-width: 600px){
  h1.elementor-heading-title{ font-size: clamp(1.6rem, 6vw, 2.4rem) !important; }
}

/* ---------- Header mobil ---------- */
@media (max-width: 1024px){
  /* Elementor hat fuer diesen Container eine feste Tablet-Breite von 1600px
     hinterlegt -> auf Handy/Tablet ueberschreiben, sonst Layout-Chaos */
  .elementor-element-ccd85fc{
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 900px){
  /* hohe Spezifitaet noetig, Elementor schaltet Container auf Mobil
     selbst auf flex-direction:column -> muss explizit ueberschrieben werden.
     Logo, Menue und Login-Button bleiben in EINER Reihe im Einklang. */
  header.elementor-location-header .elementor-element.elementor-element-ccd85fc{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    column-gap: 6px !important;
    min-height: unset !important;
    height: auto !important;
    padding: 4px 8px !important;
  }

  header.elementor-location-header .elementor-element.elementor-element-c32408a{
    order: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }
  header.elementor-location-header .elementor-element.elementor-element-09167c3{
    order: 2 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
  }
  header.elementor-location-header .elementor-element.elementor-element-97c2f5b{
    order: 3 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
  }
  header.elementor-location-header .elementor-element.elementor-element-b7628d0{
    display: none !important;
  }
  header.elementor-location-header .elementor-element.elementor-element-64e8d17{
    width: auto !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  /* Login-Widget selbst hat auf Mobil eine feste 257px-Breite + Center-Ausrichtung
     hinterlegt -> deshalb der Ueberlapp mit dem Menue. Erzwingen: nur so gross wie noetig. */
  header.elementor-location-header .elementor-element.elementor-element-9564b18{
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    align-self: center !important;
  }
  header.elementor-location-header .elementor-element.elementor-element-97c2f5b{
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  header.elementor-location-header .elementor-element.elementor-element-97c2f5b .e-con-inner{
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .header-menu{ padding: 2px !important; gap: 1px !important; flex-wrap: nowrap !important; }
  .header-menu a{ padding: 5px 7px !important; font-size: 10.5px !important; white-space: nowrap; }

  a.cr-header-user-box, summary.cr-header-user-box{
    padding: 6px !important;
    gap: 0 !important;
  }
  .cr-header-user-box .cr-header-name{ display: none !important; }
  .cr-header-avatar{ width: 26px !important; height: 26px !important; min-width: 26px !important; }
}

@media (max-width: 480px){
  .header-menu a{ padding: 5px 6px !important; font-size: 10px !important; }
  .cr-header-avatar{ width: 26px !important; height: 26px !important; min-width: 26px !important; }
}

/* background-attachment:fixed macht auf iOS Safari Probleme -> auf Mobil abschalten */
@media (max-width: 768px){
  body{ background-attachment: scroll !important; }
}
