/*Custom-Styles*/
html {
  scroll-padding-top: 80px; /* Passe die Höhe an die deiner Navigation an */
}


.rechtstext h1, .rechtstext .h1 {
  font-size: calc(1.485rem + 2.82vw);
}
@media (min-width: 1200px) {
  .rechtstext h1, .rechtstext .h1 {
    font-size: 3.6rem;
  }
}

.rechtstext h2, .rechtstext .h2 {
  font-size: calc(1.2rem + 1.8vw);
}
@media (min-width: 1200px) {
  .rechtstext h2, .rechtstext .h2 {
    font-size: 1.75rem;
  }
}

.rechtstext h3, .rechtstext .h3 {
  font-size: calc(1.163rem + 1.356vw);
}
@media (min-width: 1200px) {
  .rechtstext h3, .rechtstext .h3 {
    font-size: 1.38rem;
  }
}

.rechtstext h4, .rechtstext .h4 {
  font-size: calc(1.025rem + 0.9vw);
}
@media (min-width: 1200px) {
  .rechtstext h4, .rechtstext .h4 {
    font-size: 1.2rem;
  }
}

.h-70px {
  height: 70px !important;
}
.h-80px {
  height: 80px !important;
}
.h-100px {
  height: 100px !important;
}
.h-150px {
  height: 150px !important;
}
.h-200px {
  height: 200px !important;
}

.h-315px {
  height: 315px !important;
}

.h-350px {
  height: 350px !important;
}

.h-450px {
  height: 450px !important;
}

.w-350px {
  width: 350px !important;
}
.w-25-rem {
  width: 25rem;
}
.w-10-rem {
  width: 10rem;
}

.info-dropdown {
  width: 18rem;
  left: -2rem !important;
}

@media (min-width: 576px) {
  .info-dropdown {
    width: 25rem;
    left: initial !important;
    right: 0 !important;
  }
}

.pt-7-5 {
  padding-top: 6rem !important;
}

.pt-10 {
  padding-top: 13rem !important;
}

 .py-sm-10 {
    padding-top: 13rem !important;
    padding-bottom: 13rem !important;
  }

.pt-11 {
  padding-top: 16rem !important;
}

.bg-linear-overlay-v2 {
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0%, rgba(0, 0, 0, 0.5)),
    color-stop(0%, rgba(0, 0, 0, 0)),
    to(rgb(0, 0, 0))
  );
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 0%,
    rgb(0, 0, 0) 100%
  );
}

.gradient-overlay{
  background: linear-gradient(to bottom, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 20%);
}

.header-sticky.header-absolute.header-sticky-on .header-info,
.header-sticky.header-absolute.header-sticky-on .topButtons,
.header-sticky.header-absolute.header-subpage-sticky-on .header-info,
.header-sticky.header-absolute.header-subpage-sticky-on .topButtons {
  display: none;
}


.header-sticky.header-absolute.header-sticky-on .logo-normal,
.header-sticky.header-absolute.header-subpage-sticky-on .logo-normal {
    display: none;
    height: 100px !important;
}

.header-sticky.header-absolute .logo-normal,
.header-sticky.header-absolute .logo-normal {
        
        height: 100px !important;
    }

@media (min-width: 576px) {
     .header-sticky.header-absolute .logo-normal,
     .header-sticky.header-absolute .logo-normal {
        
        height: 150px !important;
    }
}


.header-sticky.header-absolute.header-sticky-on .logo-sticky,
.header-sticky.header-absolute.header-subpage-sticky-on .logo-sticky{
    display: block!important;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.text-shadow-strong {
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
}

.text-shadow-glow {
    text-shadow: 0 0 6px rgba(255,255,255,0.7);
}

.text-shadow-soft {
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.text-shadow-soft-lg {
    text-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.text-shadow-smooth {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.25),
        0 4px 12px rgba(0,0,0,0.15);
}


#contentstart {
  scroll-margin-top: 200px;
  scroll-behavior: smooth;
}

.accordion.accordion-bg-white .accordion-item {
  border: none;
  background-color: transparent;
}
.accordion.accordion-bg-white .accordion-button {
  background-color: #ffffff !important;
  color: var(--bs-gray-900) !important;
}
.accordion.accordion-bg-white .accordion-button:not(.collapsed) {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.accordion.accordion-icon .accordion-header .accordion-button:after {
  content: "\F286";
  font-family: "bootstrap-icons";
  font-size: 1rem;
  background: none !important;
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  top: 35%;
  right: 20px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-transform: rotateZ(0deg);
  transform: rotateZ(0deg);
  z-index: 9;
}
.accordion.accordion-icon .accordion-header .accordion-button:before {
  content: "\F286";
  font-family: "bootstrap-icons";
  background: none !important;
  width: initial;
  height: initial;
  display: none;
  position: absolute;
  top: 47%;
  right: 20px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-transform: rotateZ(0deg);
  transform: rotateZ(0deg);
  z-index: 9;
}

.accordion.accordion-icon
  .accordion-header
  .accordion-button[aria-expanded="false"]:after {
  -webkit-transform: rotateZ(180deg);
  transform: rotateZ(180deg);
}
.accordion.accordion-icon
  .accordion-header
  .accordion-button[aria-expanded="true"]:before {
  -webkit-transform: rotateZ(0deg);
  transform: rotateZ(0deg);
}

/*NEws */
.card-image-news-teaser {
  border-bottom-right-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
}

/*Quick Contact */
.quick-contact {
  cursor: pointer;
  position: fixed !important;
  bottom: 180px;
  right: 0px;
  display: block;
  z-index: 100;

  opacity: 1;
  -webkit-transform: translateY(50%);
  transform: translateY(50%);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background: var(--bs-primary);
  color: #fff;
  /*border-radius: 10%;*/
  border-top-left-radius: 0.5em;
  border-bottom-left-radius: 0.5em;
  width: 80px;
  height: auto;
  /*line-height: 52px;*/
  text-align: center;
  padding-top: 1em;
}
/*
.quick-contact:before {
  content: "\f500";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
*/
.quick-contact:hover {
  background: var(--bs-link-hover-color);
  color: #fff;
}
.quick-contact.back-top-show {
  visibility: visible;
  opacity: 1;
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
}

.hover-shadow {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.hover-shadow:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  -webkit-box-shadow: 0px 10px 30px rgba(29, 58, 83, 0.15);
  box-shadow: 0px 10px 30px rgba(29, 58, 83, 0.15);
}

.hover-bg:hover {
  background-color: var(--bs-info) !important;
  background: var(--bs-info) !important;
}
/*Formular */
.input,
.captcha {
  margin-bottom: 0.75rem !important;
}
.form-label {
  margin-bottom: 0.25rem !important;
}

.input.checkbox .form-text,
.input.checkbox .form-check {
  padding-left: 0em;
}

hr.ce-div {
  margin: 2rem 0;
}

/*Barrierefreiheit */

/* Entferne den Fokusrahmen standardmäßig bei Maus/Touch */
/*
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

.nav-link:focus {
  outline: none !important;
  box-shadow: none !important;
}
  */
/* Zeige den Fokusrahmen bei Tastaturnavigation */
/*
a:focus-visible {
  outline: 2px solid #0d6efd !important; 
  outline-offset: 2px;
  box-shadow: none;
}
*/
/*
.nav-link:focus-visible {
  outline: 2px solid #ff3300 !important;
}
*/
/* Fallback für ältere Browser, die :focus-visible nicht unterstützen */
/*
@supports not (selector(:focus-visible)) {
  a:focus {
    outline: 2px solid #0d6efd !important; 
    outline-offset: 2px;
  }
}
*/

.navbar {
    --bs-navbar-brand-padding-y: 12px;
    padding: var(--bs-navbar-padding-y) var(--bs-navbar-padding-x);
}

.navbar-nav {
    --bs-nav-link-font-size: 1.1rem;
}

.dropdown-menu .dropdown-item::before {
  content: "\F138";
  font-family: "bootstrap-icons";
  display: inline-block;
  margin-right: 8px;
  font-size: 1rem;
  transform: translateY(2px);
}

.display-4 {
  font-size: 3.5rem;
}

@media (min-width: 1200px) {
  .display-4 {
    font-size: 4rem;
  }
}

@media (min-width: 1400px) {
  .display-4 {
    font-size: 4.5rem;
  }
}

/* Default: Navbar über dem Mainvisual */
.header-sticky .nav-link {
  color: #fff;
  font-weight: 600; 
}

/* Zustand beim Scrollen */
.header-sticky.header-sticky-on, .header-sticky.header-subpage-sticky-on {
  background: #fff;
       
}

/* Links im Sticky Zustand */
.header-sticky.header-sticky-on .nav-link, .header-sticky.header-subpage-sticky-on .nav-link {
  color: #666;
    font-weight: 600; 
}


@media (max-width: 1199.98px) {

  .navbar-collapse {
    background: #fff;
  }

  .navbar-collapse .nav-link,
  .navbar-collapse .dropdown-item {
    color: var(--bs-secondary);
  }

}


/* Aktiver Menüpunkt im Dropdown */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item.active:hover,
.navbar .dropdown-menu .dropdown-item.active:focus {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

.header-sticky.header-sticky-on .navbar, .header-sticky.header-subpage-sticky-on .navbar {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}


/* ===========================================
   Dropdown-Menü
   =========================================== */

/* Standard */
.navbar .dropdown-menu .dropdown-item {
    color: var(--bs-secondary);
}

.navbar .dropdown-menu .dropdown-item::before {
    color: var(--bs-primary);
}

/* Hover und Fokus */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar .dropdown-menu .dropdown-item:hover::before,
.navbar .dropdown-menu .dropdown-item:focus::before {
    color: #fff;
}

/* Aktiver Menüpunkt */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item.active:hover,
.navbar .dropdown-menu .dropdown-item.active:focus,
.navbar .dropdown-menu .dropdown-item:active {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

/* Pfeil des aktiven Menüpunktes */
.navbar .dropdown-menu .dropdown-item.active::before,
.navbar .dropdown-menu .dropdown-item.active:hover::before,
.navbar .dropdown-menu .dropdown-item.active:focus::before,
.navbar .dropdown-menu .dropdown-item:active::before {
    color: #fff !important;
}





/*Header Slider */
/* Section soll keine "pt-5" Luft oben erzeugen */
.mainvisual-fullscreen {
  padding-top: 0 !important;
}

/* Swiper + Wrapper + Slides auf volle Höhe */
.mainvisual-swiper,
.mainvisual-swiper .swiper-wrapper,
.mainvisual-swiper .swiper-slide {
  height: 100svh;     /* moderne Mobile-Viewport-Einheit */
  min-height: 100vh;  /* Fallback */
}

/* Dein "Card"-Ersatz: echtes Fullscreen Background-Element */
.mainvisual-slide {
  height: 100%;
  width: 100%;
  position: relative;
}

/* Overlay-Schicht für Text über dem Bild */
.mainvisual-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Falls dein .bg-overlay nicht absolut positioniert ist */
.mainvisual-slide .bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mainvisual-swiper .card {
  overflow: hidden;
}

.mainvisual-swiper .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center left;
  transform: scale(1);
  transition: transform 6s ease;
  z-index: 0;
}

.mainvisual-swiper .swiper-slide-active .card::before {
  transform: scale(1.1);
}


.mainvisual-single .mainvisual-zoom {
    position: relative;
    background: none;
}

.mainvisual-single .mainvisual-zoom::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--mainvisual-bg);
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1);
    animation: mainvisualZoom 12s ease-out forwards;
}

@keyframes mainvisualZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

@media (max-width: 767.98px) {
    .mainvisual-content {
        transform: translateY(-80px);
    }
}

.servicenummer {
    display:none;
}

@media (min-width: 400px) {
    .servicenummer {
        display:inline;
    }
}

/* =========================================================
   Barrierefreiheit: sichtbarer Fokus für alle Elemente
   ========================================================= */

/* -------------------------
   Links & Navigation
   ------------------------- */
a:focus-visible,
.nav-link:focus-visible {
  outline: none !important;
  box-shadow: inset 0 0 0 2px #b4201f !important;
  border-radius: 0.25rem;
  background-color: transparent !important;
  color: inherit !important;
}

/* -------------------------
   Buttons & Formulare
   ------------------------- */
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.accordion-button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px #b4201f !important;
}

/* -------------------------
   Spezielle Bootstrap-Fälle
   ------------------------- */
.navbar .nav-link:focus-visible {
  color: inherit !important;
}
/*
.dropdown-item:focus-visible {
  color: var(--bs-dropdown-link-color) !important;
}
*/
/* -------------------------
   Fallback für ältere Browser
   ------------------------- */
@supports not selector(:focus-visible) {

  a:focus,
  .nav-link:focus,
  .dropdown-item:focus {
    outline: none !important;
    box-shadow: inset 0 0 0 2px #b4201f !important;
    border-radius: 0.25rem;
    background-color: transparent !important;
    color: inherit !important;
  }

  button:focus,
  .btn:focus,
  input:focus,
  select:focus,
  textarea:focus,
  .accordion-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px #b4201f !important;
  }
}

/* =========================================================
   Skip-Link
   Ganz ans Ende der custom.css setzen
   ========================================================= */

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  display: inline-block;
  padding: 0.75rem 1rem;
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000;
  border-radius: 0.25rem;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0) !important;
  outline: none !important;
  box-shadow:
    0 0 0 3px #b4201f,
    0 4px 12px rgba(0, 0, 0, 0.15) !important;
  background: #ffffff !important;
  color: #000000 !important;
}

/* ===========================================
   Dropdown + Tastaturfokus
   =========================================== */

/* Standard */
.navbar .dropdown-menu .dropdown-item {
    color: var(--bs-secondary);
}

.navbar .dropdown-menu .dropdown-item::before {
    color: var(--bs-primary);
}

/* Hover */
.navbar .dropdown-menu .dropdown-item:hover {
    color: #fff !important;
    background-color: var(--bs-secondary) !important;
}

.navbar .dropdown-menu .dropdown-item:hover::before {
    color: #fff !important;
}

/* Tastaturfokus */
.navbar .dropdown-menu .dropdown-item:focus-visible {
    color: #fff !important;
    background-color: var(--bs-secondary) !important;
    box-shadow: inset 0 0 0 2px var(--bs-primary) !important;
    outline: none !important;
}

.navbar .dropdown-menu .dropdown-item:focus-visible::before {
    color: #fff !important;
}

/* Aktiver Menüpunkt */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item.active:hover,
.navbar .dropdown-menu .dropdown-item.active:focus,
.navbar .dropdown-menu .dropdown-item.active:focus-visible,
.navbar .dropdown-menu .dropdown-item:active {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
}

/* Pfeil des aktiven Menüpunktes */
.navbar .dropdown-menu .dropdown-item.active::before,
.navbar .dropdown-menu .dropdown-item.active:hover::before,
.navbar .dropdown-menu .dropdown-item.active:focus::before,
.navbar .dropdown-menu .dropdown-item.active:focus-visible::before,
.navbar .dropdown-menu .dropdown-item:active::before {
    color: #fff !important;
}
