/* Desktop-Design für große Bildschirme mit Maus oder Trackpad */
@media screen and (min-width: 1081px) and (pointer: fine),
  screen and (min-width: 1367px) and (pointer: coarse) {
  .r-show {
    display: none !important;
  }
  html,
  body {
    overflow-x: hidden;
  }
}

/* Responsive Design für Touch-Geräte (Smartphones & Tablets) & kleine Desktops (<1080px) */
@media screen and (max-width: 1080px), screen and (pointer: coarse) {
  html,
  body {
    overflow-x: hidden;
  }

  /* Improved mobile navigation */
  .mobile__nav.expanded {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height */
    height: calc(var(--vh, 1vh) * 100); /* Use custom vh variable */
  }

  .mobile__nav__items {
    /* Ensure proper scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mobile__menu ul {
    /* Better spacing for mobile touch */
    gap: 25px;
  }

  .mobile__menu li a {
    /* Larger touch targets */
    padding: 12px 0;
    font-size: 26px;
    /* Better tap highlighting */
    -webkit-tap-highlight-color: rgba(186, 160, 102, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .r-hide {
    display: none !important;
  }

  .r-show {
    display: flex;
  }

  .px {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .pt {
    padding-top: 80px;
  }

  .pt2 {
    padding-top: 180px;
  }

  .pt05 {
    padding-top: 40px;
  }

  .pb {
    padding-bottom: 80px;
  }

  .pb2 {
    padding-bottom: 160px;
  }

  .pb05 {
    padding-bottom: 40px;
  }

  .mbn {
    margin-bottom: -8rem;
  }

  .h1 {
    font-family: "Saol";
    font-size: 35px;
    line-height: 110%;
    color: #fff;
  }

  .h2 {
    font-size: 36px;
    line-height: 110%;
    margin-bottom: 40px;
  }

  .h2s {
    font-size: 26px;
    line-height: 31px;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0;
  }

  .p-sub {
    font-size: 16px;
    color: rgba(193, 193, 193, 1);
    line-height: 22px;
  }

  .c-text-black {
    color: rgba(109, 109, 109, 1);
  }

  .safe-text3 {
    padding: 0;
    font-size: 16px;
    line-height: 22px;
    color: rgba(109, 109, 109, 1);
    font-weight: 400;
  }

  .safe-title3 {
    padding: 0;
    font-size: 16px;
    line-height: 22px;
    margin-top: 10px;
  }

  .p-size-mobile {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: white;
  }

  .p-sub-m {
    font-size: 11px;
    line-height: 16px;
  }

  .p-sub-light {
    font-size: 11px;
    line-height: 16px;
  }

  .news-text {
    font-family: "Saol";
    font-size: 20px;
    line-height: 26px;
  }

  .news-title {
    font-size: 18px;
    font-weight: 400;
  }

  .input-group input {
    border-bottom: 1px solid var(--gold-color);
  }

  .input-group label {
    font-size: 16px;
    line-height: 140%;
  }

  .Btn-light::after {
    background-color: var(--light-color);
  }

  .Btn-abo {
    margin-top: 20px;
  }

  #footerLogo {
    width: 60%;
    max-width: 260px;
  }

  #footerAurum {
    width: 40%;
    max-width: 210px;
  }

  .footer__address p {
    font-size: 16px;
    line-height: 22px;
  }

  .footer__link a,
  .footer__link span {
    color: #c1c1c1;
    text-decoration: none;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    padding-bottom: 10px;
  }

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

  .carousel-item {
    height: 370px;
  }

  .carousel-control-next,
  .carousel-control-prev {
    opacity: 1 !important;
    transform: scale(0.8);
  }

  .mTrustSlider-item {
    position: relative;
  }

  .img-badge {
    top: 2rem;
    left: 2rem;
  }

  .img-badge img {
    width: 40px;
  }

  .img-badge-text {
    margin-top: -1.7rem;
    width: 240px;
  }

  .badge-title {
    font-family: "Inter";
    font-weight: 700;
    font-size: 15px;
    line-height: 19px;
  }

  .badge-text {
    opacity: 1;
    font-size: 13px;
    margin-top: 10px;
    max-height: none;
    width: 240px;
    overflow: visible;
    max-width: 80vw;
  }

  .carousel-indicators {
    margin-bottom: -30px;
  }

  .card3-indicators {
    margin-bottom: -20px;
  }

  .carousel-indicators button {
    background-color: rgba(151, 151, 151, 0.3) !important;
  }

  .carousel-indicators .active {
    background-color: var(--gold-color) !important;
  }

  .mobile__trust__slider .carousel-item {
    height: 550px;
  }

  .carousel__texts {
    margin-top: -20px;
  }

  .carousel__text__mobile{
    opacity: .5;
  }

  .text-outer p {
    font-size: 16px;
    line-height: 18px;
    color: #f4f5ef;
  }

  .text-mid {
    transform: scale(1);
    translate: 0;
  }

  .custom-card {
    padding: 1rem 0.7rem;
  }

  .card-header {
    align-items: center;
  }

  .card-title {
    font-size: 20px;
    line-height: 22px;
  }

  .card-subtitle {
    font-size: 14px;
    line-height: 18px;
    margin-right: -20px;
  }

  .carousel-item-text {
    min-height: 200px;
    height: auto;
    margin-top: 50px;
  }

  .card-text-section {
    border: 0;
    color: #fff;
  }

  .info-head {
    font-size: 20px;
    line-height: 28px;
    color: #fff;
  }

  .info-text {
    font-size: 16px;
    line-height: 22px;
    color: #fff;
  }

  .carousel-item-slide {
    min-height: 340px !important;
  }

  .m-slide-stroke-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    height: 100px;
  }

  .m-slide-stroke-wrapper img,
  .carousel-item-slide img,
  .carousel-item-slide .slider-title,
  .carousel-item-slide .slider-text {
    padding-left: 1rem;
  }

  .m-slide-stroke {
    height: 1px;
    width: 100%;
    border-top: 1px solid var(--gold-color);
  }

  .m-slide-stroke img{
    transform: translate(-15px, -40px);
  }

  .slider-title,
  .slider-text {
    font-size: 16px;
    line-height: 22px;
    opacity: 1;
    color: #f4f5ef;
  }

  .slider-text {
    height: fit-content;
    margin-bottom: 20px;
  }

  .slider-icon-wrapper {
    display: flex;
    align-items: start;
    gap: 10px;
  }
  .size-card{
    padding: 1rem 0rem;
  }
  
  .carousel-body{
    flex-direction: column-reverse;
  }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
  .img-badge {
    top: 1.5rem;
    left: 1.5rem;
  }
  
  .img-badge-text {
    width: 220px;
    margin-top: -1.5rem;
  }
  
  .badge-text {
    font-size: 12px;
    padding: 10px;
    width: 220px;
    max-width: 90vw;
  }
}



