﻿/* Live UX fixes (D2) */

/* Mobile/zoom menu: remove collapse animation delay */
@media (max-width: 991px) {
  .collapsing {
    height: auto !important;
    overflow: hidden;
  }

  .navbar-collapse,
  .navbar-collapse.collapsing {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .navbar-toggle {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
  }

  #main-menu .navbar-collapse .container,
  #main-menu .navbar-collapse.in .container {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
  }

}

/* Mobile/touch: use one viewport-fixed background layer for all pages.
   This avoids per-page zoom differences on iOS and scroll jumps on Android. */
@media (hover: none) and (pointer: coarse), (max-width: 991px) {
  html,
  body {
    background: #f6f6f6;
  }

  body {
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-image: url("../backgrounds/bg_IMG_1457.jpg");
    background-position: left top;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }

  .page {
    position: relative;
    z-index: 1;
    background-image: none !important;
    background-attachment: scroll !important;
    background-size: auto !important;
    background-color: transparent;
  }

  /* Keep the gray footer/panel surface stable above the mobile background layer. */
  #panel_second .container {
    position: relative;
    z-index: 1;
    background-color: #3c4043 !important;
  }
}

/* Keep anchor target readable below fixed header/nav */
#wir-suchen-aktuell {
  scroll-margin-top: 120px;
}

/* Stabilize slider box before script initialization */
[id^="slider-dom-id-"] {
  width: 100% !important;
  max-width: 1300px;
  height: auto !important;
  aspect-ratio: 13 / 6;
}

[id^="slider-dom-id-"] [data-u="slides"] {
  width: 100% !important;
  height: 100% !important;
}

/* S8: keep emphasis on real text links, but leave all menus untouched. */
#main .text-formatted a[href],
#block-zircon-content p a[href],
.sidebar .text-formatted a[href],
#panel_second .text-formatted a[href],
#footer .text-formatted a[href] {
  font-weight: 700;
  text-decoration: none !important;
}

#main .text-formatted a[href]:hover,
#main .text-formatted a[href]:focus,
#main .text-formatted a[href]:active,
#block-zircon-content p a[href]:hover,
#block-zircon-content p a[href]:focus,
#block-zircon-content p a[href]:active,
.sidebar .text-formatted a[href]:hover,
.sidebar .text-formatted a[href]:focus,
.sidebar .text-formatted a[href]:active,
#panel_second .text-formatted a[href]:hover,
#panel_second .text-formatted a[href]:focus,
#panel_second .text-formatted a[href]:active,
#footer .text-formatted a[href]:hover,
#footer .text-formatted a[href]:focus,
#footer .text-formatted a[href]:active {
  font-weight: 700;
  text-decoration: none !important;
}
