html.loading .home-hero,
html.loading main {
  visibility: hidden;
}
html:not(.loading) .home-hero,
html:not(.loading) main {
  visibility: visible;
}

.aynih-pre-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #121212;
  background-color: #121212 !important;
  color: #fff;
  display: grid;
  justify-content: center;
  align-items: center;
  place-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility .6s ease;
  font-family: 'SuisseIntl', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    isolation: isolate;
}


.aynih-pre-loader.is-done {
  opacity: 0;
  visibility: hidden;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --aynh-utility-size: 54px;
  --aynh-utility-radius: 18px;
  --aynh-utility-bg: rgba(255,255,255,0.06);
  --aynh-utility-bg-hover: rgba(255,255,255,0.10);
  --aynh-utility-border: rgba(255,255,255,0.12);
  --aynh-utility-border-hover: rgba(242,196,109,0.30);
  --aynh-utility-shadow: 0 12px 28px rgba(0,0,0,0.22);
  --aynh-utility-shadow-hover: 0 16px 34px rgba(0,0,0,0.28);
  --aynh-utility-fg: #f5f8fd;
  --aynh-utility-accent: #f2c46d;
  --aynh-panel-bg: rgba(17, 31, 49, 0.96);
  --aynh-panel-border: rgba(255,255,255,0.12);
  --bg: #1c2f45;
  --fg: #e3e4e8;
  --fg-t: rgba(227, 228, 232, 0.5);
  --primary1: #255ff4;
  --primary2: #5583f6;
  --trans-dur: 0.3s;
  --precol: #a9abb5;
}
body {
  background-color: #1c2f45;
  color: #e3e4e8;
  font-family: "SuisseIntl", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.pl {
  box-shadow: 2em 0 2em rgba(0, 0, 0, 0.2) inset, -2em 0 2em rgba(255, 255, 255, 0.1) inset;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotateX(30deg) rotateZ(45deg);
  transform-origin: center center; /* <— das ist der Hebel */
  width: 15em;
  height: 15em;
  font-size: calc(16px + (20 - 16) * (100vw - 320px) / (1280 - 320));
}


.pl, .pl-dot {
  border-radius: 50%;
}
.pl-dot {
  animation-name: shadow;
  box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.5);
  top: calc(50% - 0.75em);
  left: calc(50% - 0.75em);
  width: 1.5em;
  height: 1.5em;
}
.pl-dot, .pl-dot:before, .pl-dot:after {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  position: absolute;
}
.pl-dot:before, .pl-dot:after {
  content: "";
  display: block;
  left: 0;
  width: inherit;
  transition: background-color var(--trans-dur);
}
.pl-dot:before {
  animation-name: pushInOut1;
  background-color: var(--bg);
  border-radius: inherit;
  box-shadow: 0.05em 0 0.1em rgba(255, 255, 255, 0.2) inset;
  height: inherit;
  z-index: 1;
}
.pl-dot:after {
  animation-name: pushInOut2;
  background-color: var(--primary1);
  border-radius: 0.75em;
  box-shadow: 0.1em 0.3em 0.2em rgba(255, 255, 255, 0.4) inset, 0 -0.4em 0.2em #2e3138 inset, 0 -1em 0.25em rgba(0, 0, 0, 0.3) inset;
  bottom: 0;
  clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);
  height: 3em;
  transform: rotate(-45deg);
  transform-origin: 50% 2.25em;
}
.pl-dot:nth-child(1) {
  transform: rotate(0deg) translateX(5em) rotate(0deg);
  z-index: 5;
}
.pl-dot:nth-child(1), .pl-dot:nth-child(1):before, .pl-dot:nth-child(1):after {
  animation-delay: 0s;
}
.pl-dot:nth-child(2) {
  transform: rotate(-30deg) translateX(5em) rotate(30deg);
  z-index: 4;
}
.pl-dot:nth-child(2), .pl-dot:nth-child(2):before, .pl-dot:nth-child(2):after {
  animation-delay: -0.1666666667s;
}
.pl-dot:nth-child(3) {
  transform: rotate(-60deg) translateX(5em) rotate(60deg);
  z-index: 3;
}
.pl-dot:nth-child(3), .pl-dot:nth-child(3):before, .pl-dot:nth-child(3):after {
  animation-delay: -0.3333333333s;
}
.pl-dot:nth-child(4) {
  transform: rotate(-90deg) translateX(5em) rotate(90deg);
  z-index: 2;
}
.pl-dot:nth-child(4), .pl-dot:nth-child(4):before, .pl-dot:nth-child(4):after {
  animation-delay: -0.5s;
}
.pl-dot:nth-child(5) {
  transform: rotate(-120deg) translateX(5em) rotate(120deg);
  z-index: 1;
}
.pl-dot:nth-child(5), .pl-dot:nth-child(5):before, .pl-dot:nth-child(5):after {
  animation-delay: -0.6666666667s;
}
.pl-dot:nth-child(6) {
  transform: rotate(-150deg) translateX(5em) rotate(150deg);
  z-index: 1;
}
.pl-dot:nth-child(6), .pl-dot:nth-child(6):before, .pl-dot:nth-child(6):after {
  animation-delay: -0.8333333333s;
}
.pl-dot:nth-child(7) {
  transform: rotate(-180deg) translateX(5em) rotate(180deg);
  z-index: 2;
}
.pl-dot:nth-child(7), .pl-dot:nth-child(7):before, .pl-dot:nth-child(7):after {
  animation-delay: -1s;
}
.pl-dot:nth-child(8) {
  transform: rotate(-210deg) translateX(5em) rotate(210deg);
  z-index: 3;
}
.pl-dot:nth-child(8), .pl-dot:nth-child(8):before, .pl-dot:nth-child(8):after {
  animation-delay: -1.1666666667s;
}
.pl-dot:nth-child(9) {
  transform: rotate(-240deg) translateX(5em) rotate(240deg);
  z-index: 4;
}
.pl-dot:nth-child(9), .pl-dot:nth-child(9):before, .pl-dot:nth-child(9):after {
  animation-delay: -1.3333333333s;
}
.pl-dot:nth-child(10) {
  transform: rotate(-270deg) translateX(5em) rotate(270deg);
  z-index: 5;
}
.pl-dot:nth-child(10), .pl-dot:nth-child(10):before, .pl-dot:nth-child(10):after {
  animation-delay: -1.5s;
}
.pl-dot:nth-child(11) {
  transform: rotate(-300deg) translateX(5em) rotate(300deg);
  z-index: 6;
}
.pl-dot:nth-child(11), .pl-dot:nth-child(11):before, .pl-dot:nth-child(11):after {
  animation-delay: -1.6666666667s;
}
.pl-dot:nth-child(12) {
  transform: rotate(-330deg) translateX(5em) rotate(330deg);
  z-index: 6;
}
.pl-dot:nth-child(12), .pl-dot:nth-child(12):before, .pl-dot:nth-child(12):after {
  animation-delay: -1.8333333333s;
}
.pl-text {

  font-size: 0.75em;
  max-width: 5rem;
  position: relative;
  text-shadow: 0 0 0.1em var(--fg-t);
  transform: rotateZ(-45deg);
}
.preloader-subheadline {
  color: var(--precol);
  font-weight: 600;
  margin-top: -15rem;
  text-shadow: 0 0 0.1em var(--fg-t);
  font-size: clamp(1.8rem, 4vw + 1rem, 4em);
}
/* Animations */
@keyframes shadow {
  from {
    animation-timing-function: ease-in;
    box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.3);
  }
  25% {
    animation-timing-function: ease-out;
    box-shadow: 0.1em 0.1em 0 0.1em black, 0.8em 0 0.8em rgba(0, 0, 0, 0.5);
  }
  50%, to {
    box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.3);
  }
}
@keyframes pushInOut1 {
  from {
    animation-timing-function: ease-in;
    background-color: var(--bg);
    transform: translate(0, 0);
  }
  25% {
    animation-timing-function: ease-out;
    background-color: var(--primary2);
    transform: translate(-71%, -71%);
  }
  50%, to {
    background-color: var(--bg);
    transform: translate(0, 0);
  }
}
@keyframes pushInOut2 {
  from {
    animation-timing-function: ease-in;
    background-color: var(--bg);
    clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);
  }
  25% {
    animation-timing-function: ease-out;
    background-color: var(--primary1);
    clip-path: polygon(0 25%, 100% 25%, 100% 100%, 0 100%);
  }
  50%, to {
    background-color: var(--bg);
    clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);
  }
}
.site-section-header {
    text-align: center;
    padding: 1.6em 0 0.9em 0;
    background: #1c2f45;
    color: #f3f7fd;
    margin-bottom: 0.2em;
    font-size: 2.3em;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.site-section-header.blog-header    { background: #1c2f45; }
.site-section-header.forum-header   { background: #1c2f45; }
.site-section-header.shop-header    { background: #1c2f45; }

/* Basis: gleichmäßige Mitte + Icon */
.sp-scroll-up {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 50px;
  height: 50px;
  background: #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover-Effekt für Desktop */
@media (min-width: 1024px) {
  .sp-scroll-up:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    background: #444;
  }
}

/* Tablet: Glow statt Schatten */
@media (min-width: 768px) and (max-width: 1023px) {
  .sp-scroll-up {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .sp-scroll-up:hover {
    box-shadow: 0 0 12px rgba(100, 181, 246, 0.7);
    background: #222;
  }
}

/* Mobile: größer, einfacher, ohne Hover-Schnickschnack */
@media (max-width: 767px) {
  .sp-scroll-up {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    bottom: 1rem;
    right: 1rem;
  }
}


.sp-scroll-up:hover {
  transform: scale(1.1); /* leichtes Aufpoppen */
  background: #444;
}

.sp-scroll-up span {
  font-size: inherit;  /* übernimmt von .sp-scroll-up */
  line-height: 1;      /* kein komisches Verschieben */
}

.user-icon-container,
.header-cart-slot {
  position: fixed;

  z-index: 10020;
}

/* User oben */
.user-icon-container {
  right: 20px;
  top: 24px;
}

/* Cart darunter */
.header-cart-slot {
	right: 30px;
    top: 120px;
}



/* ---------------------------------------------------------
   USER DROPDOWN
--------------------------------------------------------- */

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 10px;
  background: var(--aynh-panel-bg);
  border: 1px solid var(--aynh-panel-border);
  border-radius: 18px;
  box-shadow: 0 22px 42px rgba(0,0,0,0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
  z-index: 10030;
}

.user-icon.logged-in:hover .user-dropdown,
.user-icon.logged-in:focus-within .user-dropdown,
.user-icon.logged-in.is-open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 14px;
  width: 18px;
  height: 18px;
  background: var(--aynh-panel-bg);
  border-top: 1px solid var(--aynh-panel-border);
  border-left: 1px solid var(--aynh-panel-border);
  transform: rotate(45deg);
}

/* Menüeinträge */
.user-dropdown a,
.user-dropdown button,
.user-dropdown input[type="submit"],
.user-dropdown .btn-logout {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px;
  color: #f5f8fd !important;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.user-dropdown a:hover,
.user-dropdown a:focus-visible,
.user-dropdown button:hover,
.user-dropdown button:focus-visible,
.user-dropdown input[type="submit"]:hover,
.user-dropdown input[type="submit"]:focus-visible {
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  transform: translateX(2px);
  outline: none;
}

/* Logout leicht wärmer akzentuieren, aber nicht alarmrot */
.user-dropdown .btn-logout,
.user-dropdown input[type="submit"].btn-logout,
.user-dropdown form button,
.user-dropdown form input[type="submit"] {
  color: #f2d7a0 !important;
}

.user-dropdown .btn-logout:hover,
.user-dropdown input[type="submit"].btn-logout:hover,
.user-dropdown form button:hover,
.user-dropdown form input[type="submit"]:hover {
  color: #fff4d8 !important;
}

.user-dropdown form {
  margin: 0;
}

/* ---------------------------------------------------------
   LOGIN CARD / LOGIN FORM
   Ersatz für logmodul.css
--------------------------------------------------------- */

.login-card.glassmorph,
.glass-login-box {
  max-width: 440px;
  margin: clamp(110px, 12vh, 140px) auto 56px;
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 40px rgba(0,0,0,0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.login-card.glassmorph h2.login-title,
.glass-login-box .login-title {
  margin: 0 0 22px;
  text-align: center;
  color: #fff;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1.2;
}

.login-card.glassmorph .form-control,
.glass-login-box .form-control {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: rgba(10, 22, 37, 0.72) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 14px;
  color: #f4f7fb !important;
  box-shadow: none !important;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.login-card.glassmorph .form-control::placeholder,
.glass-login-box .form-control::placeholder {
  color: rgba(244,247,251,0.56);
}

.login-card.glassmorph .form-control:hover,
.glass-login-box .form-control:hover {
  background: rgba(13, 28, 46, 0.84) !important;
  border-color: rgba(242,196,109,0.30) !important;
}

.login-card.glassmorph .form-control:focus,
.glass-login-box .form-control:focus {
  background: rgba(13, 28, 46, 0.96) !important;
  border-color: rgba(242,196,109,0.82) !important;
  box-shadow: 0 0 0 4px rgba(242,196,109,0.14) !important;
  outline: none !important;
}

.login-card.glassmorph .btn-login,
.glass-login-box .btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(242,196,109,0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(242,196,109,0.24), rgba(242,196,109,0.12));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.login-card.glassmorph .btn-login:hover,
.glass-login-box .btn-login:hover {
  transform: translateY(-1px);
  border-color: rgba(242,196,109,0.82);
  background: linear-gradient(180deg, rgba(242,196,109,0.30), rgba(242,196,109,0.18));
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.login-card.glassmorph .login-links,
.glass-login-box .login-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  text-align: center;
  font-size: 0.96rem;
}

.login-card.glassmorph .login-links a,
.glass-login-box .login-links a {
  color: rgba(243,246,251,0.86);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.login-card.glassmorph .login-links a:hover,
.glass-login-box .login-links a:hover {
  color: #f2c46d;
}

.user-login-register-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(243,246,251,0.78);
}

.user-login-register-note a {
  color: #f2c46d;
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}

.user-login-register-note a:hover,
.user-login-register-note a:focus {
  color: #ffd782;
  text-decoration: underline;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-text.text-muted,
.password-rules {
  color: rgba(255,255,255,0.74);
}

.password-rules {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 0.88rem;
}

.password-rules li {
  position: relative;
  margin-bottom: 3px;
  padding-left: 20px;
}

.password-rules li::before {
  content: "✖";
  position: absolute;
  left: 0;
  color: #c97b73;
}

.password-rules li.valid::before {
  content: "✔";
  color: #8fd39c;
}

/* ---------------------------------------------------------
   CART SLOT AN GLEICHES DESIGN ANGLEICHEN
--------------------------------------------------------- */

.header-cart-slot .moduletable,
.header-cart-slot .eshop-cart,
.header-cart-slot .cart,
.header-cart-slot .eshopcart {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.header-cart-slot a {
  text-decoration: none;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 767.98px) {
  .user-icon-container {
    top: 18px;
    right: 14px;
  }

  .header-cart-slot {
    top: 50px;
    right: 14px;
  }

  .user-dropdown {
    min-width: 208px;
  }

  .login-card.glassmorph,
  .glass-login-box {
    margin: 94px 14px 40px;
    padding: 22px 16px;
    border-radius: 18px;
  }
}



/* Falls das Modul einen Wrapper ausgibt */
.header-cart-slot .moduletable,
.header-cart-slot .eshop-cart,
.header-cart-slot .cart,
.header-cart-slot .eshopcart {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
/* Links/Button im Modul */
.header-cart-slot a {
    text-decoration: none;
}

.eshop-cart-module .eshop-items-count[data-count="0"],
.eshop-cart-module:has(.eshop-items-count:empty),
.eshop-cart-module:has(span:contains('0')) { 
    display: none !important; 
}
.eshop-cart-module:not(:has(.eshop-items-count:not(:empty):not(:contains('0')))) {
    display: none !important;
}
#my-cart-icon {
    position: fixed;
    top: 90px; 
    right: 27px;
    z-index: 9999;
    transform: translateX(100px); 
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
#my-cart-icon.visible {
    transform: translateX(0);
    opacity: 1;
}
#my-cart-icon a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
#cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50%;
    background: #f0b429;
    color: #1c2f45;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


body.smartphone-large-portrait #my-cart-icon {
    top: clamp(30px, 7vh, 60px);
    right: 14px;
}
