/*******************************/
/********* General CSS *********/
/*******************************/
/* ==== 0. mobile reset + fluid scale ===================== */
*,*::before,*::after{box-sizing:border-box}

:root{
  --topbar-h:clamp(70px,12vw,90px);
  --navbar-h:clamp(50px,9vw,72px);
  --gap-lg:clamp(4rem,6vw,6rem);
  --gap-md:clamp(2rem,4vw,4rem);
}

/* every image scales automatically */
img,svg,video{max-width:100%;height:auto;display:block}

body {
    color: #666666;
    background: #dddddd;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

h1,
h2, 
h3, 
h4,
h5, 
h6 {
    color: #030f27;
}

a {
    color: #666666;
    transition: .3s;
}

a:hover,
a:active,
a:focus {
    color: #2373aa;
    outline: none;
    text-decoration: none;
}






.btn:focus {
    box-shadow: none;
}

.wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #ffffff;
}

.back-to-top {
    position: fixed;
    display: none;
    background: #2373aa;
    color: #121518;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 22px;
    right: 15px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 9;
}

.back-to-top:hover {
    color: #2373aa;
    background: #121518;
}

.back-to-top i {
    padding-top: 10px;
}

.btn {
    transition: .3s;
}


/**********************************/
/********** Top Bar CSS ***********/
/**********************************/
.top-bar{
  position:sticky;          /* stays in normal flow and sticks */
  top:0;
  z-index:1100;             /* above everything, incl. nav */

  display:flex;
  flex-wrap:wrap;           /* contact blocks drop below if needed */
  gap:clamp(1rem,2vw,2.25rem);

  padding:0.75rem 1.5rem;
  background:#2373aa;
  color:#030f27;
}


.top-bar .logo {
    padding: 15px 0;
    text-align: left;
    overflow: visible;
}

/* between 32 px on phones and 60 px on 4 k monitors */
.top-bar .logo h1{
  font-size:clamp(2rem,4vw+1rem,3.75rem);
  line-height:1.05;          /* tighter line box */
}

/* keep “TFW BAYERN” in one line & bold */
.top-bar .logo h1{
  white-space:nowrap;   /* no automatic line‑breaks */
  font-weight:700;      /* restore heavy weight */
}

.top-bar .logo img {
    max-width: 100%;
    max-height: 60px;
}

.top-bar .top-bar-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-bar .top-bar-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .top-bar-icon [class^="flaticon-"]::before {
    margin: 0;
    color: #030f27;
    font-size: 40px;
}

.top-bar .top-bar-text {
    padding-left: 15px;
}

.top-bar .top-bar-text h3 {
    margin: 0 0 5px 0;
    color: #030f27;
    font-size: 16px;
    font-weight: 400;
}

.top-bar .top-bar-text p {
    margin: 0;
    color: #030f27;
    font-size: 13px;
    font-weight: 400;
}

@media (min-width: 992px) {
    .top-bar {
        padding: 0 60px;
    }
}

@media (max-width: 991.98px) {
    .top-bar .logo {
        text-align: center;
    }
}


/**********************************/
/*********** Nav Bar CSS **********/
/**********************************/
.nav-bar {
    position: relative;
    background: #030f27 !important;
    transition: .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1050;
}

.nav-bar .navbar {
    background: #030f27 !important;
    box-shadow: none;
    z-index: 1051;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: #030f27 !important;
    color: #fff !important;
    border-radius: 0;
}

.nav-bar .dropdown-menu {
    background: #2373aa !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
}


.nav-bar .container-fluid {
    padding: 0;
}

.nav-bar.nav-sticky{
  margin-top: 0;                     /* reset                       */
  position: fixed;                   /* lock to the viewport        */
  top: var(--topbar-h);              /* right under the blue bar    */
  left: 0;
  right: 0;
}

 .nav-bar .navbar{
 height:var(--navbar-h);
    background: #030f27 !important;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    padding: 10px 10px 8px 10px;
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #030f27;
    transition: none;
}

.nav-bar .dropdown-menu {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: #f8f9fa;
}

.nav-bar .btn {
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 0;
}

.nav-bar .btn:hover {
    color: #030f27;
    background: #1259A5;
    border-color: #1259A5;
}

@media (min-width: 992px) {
    .nav-bar {
        padding: 0 75px;
    }
    
    .nav-bar.nav-sticky {
        padding: 0;
    }
    
    .nav-bar .navbar {
        padding: 20px;
    }
    
    .nav-bar .navbar-brand {
        display: none;
    }
    
    .nav-bar a.nav-link {
        padding: 8px 15px;
        font-size: 15px;
        text-transform: uppercase;
    }
}

@media (max-width: 991.98px) {
    .nav-bar .navbar {
        padding: 15px;
    }
    
    .nav-bar a.nav-link {
        padding: 5px;
    }
    
    .nav-bar .dropdown-menu {
        box-shadow: none;
    }
    
    .nav-bar .btn {
        display: none;
    }
}


/*******************************/
/******** Carousel CSS *********/
/*******************************/
.carousel {
    position: relative;
    width: 100%;
  aspect-ratio:16/9;   /* phones/tablets */
margin:0;
    text-align: center;
    overflow: hidden;
}
@media (min-width:768px){
  .carousel{
    height:calc(100dvh - var(--topbar-h) - var(--navbar-h));
    aspect-ratio:auto;   /* override the 16 : 9 */
  }
}

.carousel .carousel-inner,
.carousel .carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .carousel-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 1;
}

.carousel .carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: calc(100vh - 170px);
    min-height: 400px;
}

.carousel .carousel-caption p {
    color: #ffffff;
    font-size: 30px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.carousel .carousel-caption h1 {
    color: #ffffff;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 35px;
}

.carousel .carousel-caption .btn {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 0;
    transition: .3s;
}

.carousel .carousel-caption .btn:hover {
    color: #030f27;
    background: #1259A5;
    border-color: #1259A5;
}

@media (max-width: 767.98px) {
  .carousel {
    min-height: 420px;
    height: 70vh;
    max-height: 600px;
  }
  .carousel .carousel-item img {
    min-height: 420px;
    height: 70vh;
    object-fit: cover;
  }
  .carousel .carousel-caption {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -55%);
    min-height: 220px;
    padding: 1.5rem 1rem 1rem 1rem;
    width: 95%;
    box-sizing: border-box;
    justify-content: flex-start;
    font-size: 1.1rem;
  }
  .carousel .carousel-caption h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    white-space: normal;
    hyphens: auto;
  }
  .carousel .carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
  }
  .carousel .carousel-caption .btn {
    font-size: 1.1rem;
    padding: 12px 24px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.7rem;
  }
}

.carousel .animated {
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
}


/*******************************/
/******* Page Header CSS *******/
/*******************************/
.page-header {
    position: relative;
    margin-bottom: 45px;
    padding: 90px 0;
    text-align: center;
    background: #2373aa;
}

.page-header h2 {
    position: relative;
    color: #030f27;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.page-header h2::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 2px;
    left: calc(50% - 50px);
    bottom: 0;
    background: #030f27;
}

.page-header a {
    position: relative;
    padding: 0 12px;
    font-size: 22px;
    color: #030f27;
}

.page-header a:hover {
    color: #ffffff;
}

.page-header a::after {
    position: absolute;
    content: "/";
    width: 8px;
    height: 8px;
    top: -2px;
    right: -7px;
    text-align: center;
    color: #121518;
}

.page-header a:last-child::after {
    display: none;
}

@media (max-width: 991.98px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h2 {
        font-size: 45px;
    }
    
    .page-header a {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 45px 0;
    }
    
    .page-header h2 {
        font-size: 35px;
    }
    
    .page-header a {
        font-size: 18px;
    }
}


/*******************************/
/******* Section Header ********/
/*******************************/
.section-header {
    position: relative;
    width: 100%;
    margin-bottom: 45px;
}

.section-header p {
    color: #2373aa;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.section-header h2 {
    margin: 0;
    position: relative;
    font-size: 50px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 30px;
    }
}


/*******************************/
/********* Feature CSS *********/
/*******************************/
.feature {
    position: relative;
    margin-bottom: 45px;
}

.feature .col-md-12 {
    background: #030f27;
}
    
.feature .col-md-12:nth-child(2n) {
    color: #030f27;
    background: #2373aa;
}

.feature .feature-item {
    min-height: 250px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature .feature-icon {
    position: relative;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature .feature-icon::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 80px;
    top: -20px;
    left: -10px;
    border: 2px dotted #ffffff;
    border-radius: 60px;
    z-index: 1;
}

.feature .feature-icon::after {
    position: absolute;
    content: "";
    width: 79px;
    height: 79px;
    top: -18px;
    left: -9px;
    background: #030f27;
    border-radius: 60px;
    z-index: 2;
}

.feature .col-md-12:nth-child(2n) .feature-icon::after {
    background: #2373aa;
}

.feature .feature-icon [class^="flaticon-"]::before {
    position: relative;
    margin: 0;
    color: #2373aa;
    font-size: 60px;
    line-height: 60px;
    z-index: 3;
}

.feature .feature-text {
    padding-left: 30px;
}

.feature .feature-text h3 {
    margin: 0 0 10px 0;
    color: #2373aa;
    font-size: 25px;
    font-weight: 600;
}

.feature .feature-text p {
    margin: 0;
    color: #2373aa;
    font-size: 18px;
    font-weight: 400;
}

.feature .col-md-12:nth-child(2n) [class^="flaticon-"]::before,
.feature .col-md-12:nth-child(2n) h3,
.feature .col-md-12:nth-child(2n) p {
    color: #030f27;
}


/*******************************/
/********** ueber-uns CSS **********/
/*******************************/
.ueber-uns {
    position: relative;
    width: 100%;
    padding: 45px 0;
}

.ueber-uns .section-header {
    margin-bottom: 30px;
}

.ueber-uns .ueber-uns-img {
    position: relative;
    height: 100%;
}

.ueber-uns .ueber-uns-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bild soll im Bootstrap-Grid mitfließen */
.ueber-uns-img {
    position: relative;   /* NICHT absolute */
    width: 100%;
    height: auto;         /* macht die Überlappung weg */
    overflow: hidden;     /* saubere Kante bei kleinen Screens */
}

.ueber-uns-img img {
    width: 100%;
    height: auto;
    display: block;       /* entfernt unteren weißen Rand */
}


.ueber-uns .ueber-uns-text p {
    font-size: 16px;
}

.ueber-uns .ueber-uns-text a.btn {
    position: relative;
    margin-top: 15px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;
    border-radius: 0;
    background: #1259A5;
    transition: .3s;
}

.ueber-uns .ueber-uns-text a.btn:hover {
    color: #1259A5;
    background: #030f27;
}

@media (max-width: 767.98px) {
    .ueber-uns .ueber-uns-img {
        margin-bottom: 30px;
        height: auto;
    }
}


/*******************************/
/********** Fact CSS ***********/
/*******************************/
.fact {
    position: relative;
    width: 100%;
    padding: 45px 0;
}
.fact .col-12.col-sm-6.d-flex {
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .fact .col-12.col-sm-6.d-flex {
    margin-bottom: 0;
  }
}

.fact .col-6 {
    display: flex;
    align-items: flex-start;
}

.fact .fact-icon {
    position: relative;
    margin: 7px 15px 0 15px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact .fact-icon [class^="flaticon-"]::before {
    margin: 0;
    font-size: 60px;
    line-height: 60px;
    background-image: linear-gradient(#ffffff, #2373aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fact .fact-right .fact-icon [class^="flaticon-"]::before {
    background-image: linear-gradient(#ffffff, #030f27);
}

.fact .fact-left,
.fact .fact-right {
    padding-top: 60px;
    padding-bottom: 60px;
}
@media (max-width: 767.98px) {
  .carousel .carousel-caption {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    min-height: 200px;
    padding: 1rem;
    width: 90%;
    box-sizing: border-box;
    justify-content: flex-start;
  }
  .carousel .carousel-caption h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .carousel .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
}
.fact .fact-text h2 {
    font-size: 35px;
    font-weight: 700;
}

.fact .fact-text p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.fact .fact-left {
    color: #2373aa;
    background: #030f27;
}

.fact .fact-right {
    color: #030f27;
    background: #2373aa;
}

.fact .fact-left h2 {
    color: #2373aa;
}


/* ---------- Leistungen (Services) ---------- */
.leistungen {              /* Wrapper-Section */
    position:relative;
    width:100%;
    padding:45px 0 15px 0;
}

/* Kachel */
.leistungen-item {
    position:relative;
    width:100%;
    text-align:center;
    margin-bottom:30px;
}

/* Bild */
.leistungen-img  {   position: relative;      /* Für Absolut-Position des <img> */
    position: relative;
    z-index: 1050;
  overflow: hidden;        /* überschüssige Bildteile verstecken */
  border-radius: 4px;}
.leistungen-img img { 
  position: absolute;
  top: 0; 
  left: 0;
}

/* Hover-Layer */
.leistungen-overlay{
    position:absolute; top:0; left:0; width:100%; height:100%;
    width: 60px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: opacity;
}
.leistungen-item:hover .leistungen-overlay{ opacity:1; }
.leistungen-overlay p{ margin:0; color:#fff; }

/* Titel-Balken */
.leistungen-text{
    display:flex; align-items:center; height:60px;
    background:#030f27; overflow:hidden;
}
.leistungen-text h3{
    flex:1; margin:0; padding-left:25px;
    font-size:20px; font-weight:700; color:#2373aa;
    text-align:left; white-space:nowrap; text-overflow:ellipsis;
}

/* Button rechts */
.leistungen-item .btn{
    width:60px; height:60px; font-size:60px; line-height:60px;
    color:#030f27; background:#1259A5; transition:.3s;
}
.leistungen-item:hover .btn{ color:#fff; }

/* Optional kleine Variante (z.B. Blog‑Cards) */
@media (max-width: 575.98px){
  .leistungen-img{ padding-top: 70%; } /* etwas höher auf Smartphones */
}
/*******************************/
/********** Video CSS **********/
/*******************************/
.video {
    position: relative;
    margin: 45px 0;
    height: 100%;
    min-height: 500px;
  background:
  linear-gradient(rgba(3,15,39,.9),rgba(3,15,39,.9)) center/cover,
  url(../img/carousel-1.jpg) center/cover no-repeat;
background-attachment:scroll;  /* mobile‑safe */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #1259A5;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #1259A5;
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play:hover:after {
    background-color: darken(#1259A5, 10%);
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid #030f27;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}


/*******************************/
/*********** Team CSS **********/
/*******************************/
.team {
    position: relative;
    width: 100%;
    padding: 45px 0 15px 0;
}

.team .team-item {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.team .team-img {
    position: relative;
}

.team .team-img img {
    width: 100%;
}

.team .team-text {
    position: relative;
    padding: 25px 15px;
    text-align: center;
    background: #030f27;
    transition: .5s;
}

.team .team-text h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2373aa;
    transition: .5s;
}

.team .team-text p {
    margin: 0;
    color: #ffffff;
}

.team .team-item:hover .team-text {
    background: #2373aa;
}

.team .team-item:hover .team-text h2 {
    color: #030f27;
    letter-spacing: 1px;
}

.team .team-social {
    position: absolute;
    width: 100px;
    top: 0;
    left: -50px;
    display: flex;
    flex-direction: column;
    font-size: 0;
}

.team .team-social a {
    position: relative;
    left: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.team .team-item:hover .team-social a:first-child {
    background: #00acee;
    left: 50px;
    transition: .3s 0s;
}

.team .team-item:hover .team-social a:nth-child(2) {
    background: #3b5998;
    left: 50px;
    transition: .3s .1s;
}

.team .team-item:hover .team-social a:nth-child(3) {
    background: #0e76a8;
    left: 50px;
    transition: .3s .2s;
}

.team .team-item:hover .team-social a:nth-child(4) {
    background: #3f729b;
    left: 50px;
    transition: .3s .3s;
}


/*******************************/
/*********** FAQs CSS **********/
/*******************************/
.faqs {
    position: relative;
    width: 100%;
    padding: 45px 0;
}

.faqs .row {
    position: relative;
}

.faqs .row::after {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    top: 0;
    left: calc(50% - .5px);
    background: #2373aa;
}

.faqs #accordion-1 {
    padding-right: 15px;
}

.faqs #accordion-2 {
    padding-left: 15px;
}

@media(max-width: 767.98px) {
    .faqs .row::after {
        display: none;
    }
    
    .faqs #accordion-1,
    .faqs #accordion-2 {
        padding: 0;
    }
    
    .faqs #accordion-2 {
        padding-top: 15px;
    }
}

.faqs .card {
    margin-bottom: 15px;
    border: none;
    border-radius: 0;
}

.faqs .card:last-child {
    margin-bottom: 0;
}

.faqs .card-header {
    padding: 0;
    border: none;
    background: #ffffff;
}

.faqs .card-header a {
    display: block;
    padding: 10px 25px;
    width: 100%;
    color: #121518;
    font-size: 16px;
    line-height: 40px;
    border: 1px solid rgba(0, 0, 0, .1);
    transition: .5s;
}

.faqs .card-header [data-toggle="collapse"][aria-expanded="true"] {
    background: #2373aa;
}

.faqs .card-header [data-toggle="collapse"]:after {
    font-family: 'font Awesome 5 Free';
    content: "\f067";
    float: right;
    color: #2373aa;
    font-size: 12px;
    font-weight: 900;
    transition: .5s;
}

.faqs .card-header [data-toggle="collapse"][aria-expanded="true"]:after {
    font-family: 'font Awesome 5 Free';
    content: "\f068";
    float: right;
    color: #030f27;
    font-size: 12px;
    font-weight: 900;
    transition: .5s;
}

.faqs .card-body {
    padding: 20px 25px;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-top: none;
}


/*******************************/
/******* Kundenstimmen CSS *******/
/*******************************/
.Kundenstimmen {
    position: relative;
    margin: 45px 0;
    padding: 90px 0;
    text-align: center;
    background: linear-gradient(rgba(3, 15, 39, .9), rgba(3, 15, 39, .9)), url(../img/carousel-1.jpg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.Kundenstimmen .container {
    max-width: 760px;
}

.ueber-uns-page .Kundenstimmen {
    padding-bottom: 90px;
}

.Kundenstimmen .Kundenstimmen-slider-nav {
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.Kundenstimmen .Kundenstimmen-slider-nav .slick-slide {
    position: relative;
    opacity: 0;
    transition: .5s;
}

.Kundenstimmen .Kundenstimmen-slider-nav .slick-active {
    opacity: 1;
    transform: scale(1.3);
}

.Kundenstimmen .Kundenstimmen-slider-nav .slick-center {
    transform: scale(1.8);
    z-index: 1;
}

.Kundenstimmen .Kundenstimmen-slider-nav .slick-slide img {
    position: relative;
    display: block;
    margin-top: 37px;
    width: 100%;
    height: auto;
    border-radius: 100px;
}

.Kundenstimmen .Kundenstimmen-slider {
    position: relative;
    margin-top: 15px;
    padding-top: 50px;
}

.Kundenstimmen .Kundenstimmen-slider::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 50px;
    top: 0;
    left: calc(50% - 30px);
    background: url(../img/quote.png) top center no-repeat;
}

.Kundenstimmen .Kundenstimmen-slider h3 {
    color: #2373aa;
    font-size: 22px;
    font-weight: 700;
}

.Kundenstimmen .Kundenstimmen-slider h4 {
    font-size: 14px;
    font-weight: 300;
    color: #ffffff;
    font-style: italic;
    margin-bottom: 10px;
}

.Kundenstimmen .Kundenstimmen-slider p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
}


/*******************************/
/*********** Blog CSS **********/
/*******************************/
.blog {
    position: relative;
    width: 100%;
    padding: 45px 0 15px 0;
}

.blog .blog-item {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.blog .blog-img {
    position: relative;
    overflow: hidden;
}

.blog .blog-img img {
    width: 100%;
}

.blog .blog-title {
    display: flex;
    align-items: center;
    height: 60px;
    background: #030f27;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blog .blog-title h3 {
    margin: 0;
    padding: 0 15px 0 25px;
    width: calc(100% - 60px);
    font-size: 18px;
    font-weight: 700;
    color: #2373aa;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blog .blog-title a.btn {
    width: 60px;
    height: 60px;
    padding: 3px 0 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    line-height: 60px;
    font-weight: 100;
    color: #030f27;
    background: #1259A5;
    border-radius: 0;
    transition: .3s;
}

.blog .blog-item:hover a.btn {
    color: #ffffff;
}

.blog .blog-meta {
    position: relative;
    padding: 25px 0 10px 0;
    background: #f3f6ff;
}

.blog .blog-meta::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 1px;
    left: calc(50% - 50px);
    bottom: 0;
    background: #2373aa;
}

.blog .blog-meta p {
    display: inline-block;
    margin: 0;
    padding: 0 3px;
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
    color: #666666;
}

.blog .blog-meta p a {
}

.blog .blog-meta p {
    display: inline-block;
    margin: 0;
    padding: 0 3px;
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
    color: #666666;
}

.blog .blog-meta p a {
    margin-left: 5px;
    font-style: normal;
}

.blog .blog-text {
    padding: 10px 25px 25px 25px;
    background: #f3f6ff;
}

.blog .blog-text p {
    margin: 0;
    font-size: 16px;
}

.blog .pagination .page-link {
    color: #030f27;
    border-radius: 0;
    border-color: #2373aa;
}

.blog .pagination .page-link:hover,
.blog .pagination .page-item.active .page-link {
    color: #2373aa;
    background: #030f27;
}

.blog .pagination .disabled .page-link {
    color: #999999;
}


/*******************************/
/******* Single Post CSS *******/
/*******************************/
.single {
    position: relative;
    padding: 45px 0;
}

.single .single-content {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.single .single-content img {
    margin-bottom: 20px;
    width: 100%;
}

.single .single-tags {
    margin: -5px -5px 41px -5px;
    font-size: 0;
}

.single .single-tags a {
    margin: 5px;
    display: inline-block;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    border: 1px solid #dddddd;
}

.single .single-tags a:hover {
    color: #2373aa;
    background: #030f27;
}

.single .single-bio {
    margin-bottom: 45px;
    padding: 30px;
    background: #f3f6ff;
    display: flex;
}

.single .single-bio-img {
    width: 100%;
    max-width: 100px;
}

.single .single-bio-img img {
    width: 100%;
}

.single .single-bio-text {
    padding-left: 30px;
}

.single .single-bio-text h3 {
    font-size: 20px;
    font-weight: 700;
}

.single .single-bio-text p {
    margin: 0;
}

.single .single-related {
    margin-bottom: 45px;
}

.single .single-related h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.single .related-slider {
    position: relative;
    margin: 0 -15px;
    width: calc(100% + 30px);
}

.single .related-slider .post-item {
    margin: 0 15px;
}

.single .post-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.single .post-item .post-img {
    width: 100%;
    max-width: 80px;
}

.single .post-item .post-img img {
    width: 100%;
}

.single .post-item .post-text {
    padding-left: 15px;
}

.single .post-item .post-text a {
    font-size: 16px;
    font-weight: 400;
}

.single .post-item .post-meta {
    display: flex;
    margin-top: 8px;
}

.single .post-item .post-meta p {
    display: inline-block;
    margin: 0;
    padding: 0 3px;
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
}

.single .post-item .post-meta p a {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 300;
    font-style: normal;
}

.single .related-slider .owl-nav {
    position: absolute;
    width: 90px;
    top: -55px;
    right: 15px;
    display: flex;
}

.single .related-slider .owl-nav .owl-prev,
.single .related-slider .owl-nav .owl-next {
    margin-left: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030f27;
    background: #2373aa;
    font-size: 16px;
    transition: .3s;
}

.single .related-slider .owl-nav .owl-prev:hover,
.single .related-slider .owl-nav .owl-next:hover {
    color: #2373aa;
    background: #030f27;
}

.single .single-comment {
    position: relative;
    margin-bottom: 45px;
}

.single .single-comment h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.single .comment-list {
    list-style: none;
    padding: 0;
}

.single .comment-child {
    list-style: none;
}

.single .comment-body {
    display: flex;
    margin-bottom: 30px;
}

.single .comment-img {
    width: 60px;
}

.single .comment-img img {
    width: 100%;
}

.single .comment-text {
    padding-left: 15px;
    width: calc(100% - 60px);
}

.single .comment-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.single .comment-text span {
    display: block;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 5px;
}

.single .comment-text .btn {
    padding: 3px 10px;
    font-size: 14px;
    color: #030f27;
    background: #dddddd;
    border-radius: 0;
}

.single .comment-text .btn:hover {
    background: #1259A5;
}

.single .comment-form {
    position: relative;
}

.single .comment-form h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 25px;
}

.single .comment-form form {
    padding: 30px;
    background: #f3f6ff;
}

.single .comment-form form .form-group:last-child {
    margin: 0;
}

.single .comment-form input,
.single .comment-form textarea {
    border-radius: 0;
}

.single .comment-form .btn {
    padding: 15px 30px;
    color: #030f27;
    background: #1259A5;
}

.single .comment-form .btn:hover {
    color: #1259A5;
    background: #030f27;
}


/**********************************/
/*********** Sidebar CSS **********/
/**********************************/
.sidebar {
    position: relative;
    width: 100%;
}

@media(max-width: 991.98px) {
    .sidebar {
        margin-top: 45px;
    }
}

.sidebar .sidebar-widget {
    position: relative;
    margin-bottom: 45px;
}

.sidebar .sidebar-widget .widget-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 5px;
    font-size: 30px;
    font-weight: 700;
}

.sidebar .sidebar-widget .widget-title::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #2373aa;
}

.sidebar .sidebar-widget .search-widget {
    position: relative;
}

.sidebar .search-widget input {
    height: 50px;
    border: 1px solid #dddddd;
    border-radius: 0;
}

.sidebar .search-widget input:focus {
    box-shadow: none;
}

.sidebar .search-widget .btn {
    position: absolute;
    top: 6px;
    right: 15px;
    height: 40px;
    padding: 0;
    font-size: 25px;
    color: #1259A5;
    background: none;
    border-radius: 0;
    border: none;
    transition: .3s;
}

.sidebar .search-widget .btn:hover {
    color: #030f27;
}

.sidebar .sidebar-widget .recent-post {
    position: relative;
}

.sidebar .sidebar-widget .tab-post {
    position: relative;
}

.sidebar .tab-post .nav.nav-pills .nav-link {
    color: #2373aa;
    background: #030f27;
    border-radius: 0;
}

.sidebar .tab-post .nav.nav-pills .nav-link:hover,
.sidebar .tab-post .nav.nav-pills .nav-link.active {
    color: #030f27;
    background: #2373aa;
}

.sidebar .tab-post .tab-content {
    padding: 15px 0 0 0;
    background: transparent;
}

.sidebar .tab-post .tab-content .container {
    padding: 0;
}

.sidebar .sidebar-widget .category-widget {
    position: relative;
}

.sidebar .category-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar .category-widget ul li {
    margin: 0 0 12px 22px; 
}

.sidebar .category-widget ul li:last-child {
    margin-bottom: 0; 
}

.sidebar .category-widget ul li a {
    display: inline-block;
    line-height: 23px;
}

.sidebar .category-widget ul li::before {
    position: absolute;
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #2373aa;
    left: 1px;
}

.sidebar .category-widget ul li span {
    display: inline-block;
    float: right;
}

.sidebar .sidebar-widget .tag-widget {
    position: relative;
    margin: -5px -5px;
}

.single .tag-widget a {
    margin: 5px;
    display: inline-block;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    border: 1px solid #dddddd;
}

.single .tag-widget a:hover {
    color: #2373aa;
    background: #030f27;
}

.sidebar .image-widget {
    display: block;
    width: 100%;
    overflow: hidden;
}

.sidebar .image-widget img {
    max-width: 100%;
    transition: .3s;
}

.sidebar .image-widget img:hover {
    transform: scale(1.1);
}


/*******************************/
/******** Portfolio CSS ********/
/*******************************/
.portfolio {
    position: relative;
    padding: 45px 0;
}

.portfolio #portfolio-flters {
    padding: 0;
    margin: -15px 0 25px 0;
    list-style: none;
    font-size: 0;
    text-align: center;
}

.portfolio #portfolio-flters li,
.portfolio .load-more .btn {
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    color: #030f27;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 0;
    background: #1259A5;
    border: none;
    transition: .3s;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    background: #030f27;
    color: #2373aa;
}

.portfolio .load-more {
    text-align: center;
}

.portfolio .load-more .btn {
    padding: 15px 35px;
    font-size: 16px;
    transition: .3s;
}

.portfolio .load-more .btn:hover {
    color: #1259A5;
    background: #030f27;
}

.portfolio .portfolio-warp {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.portfolio .portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio .portfolio-img img {
    width: 100%;
    transition: .3s;
}

.portfolio .portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio .portfolio-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 15, 39, .7);
    transition: .5s;
    opacity: 0;
}

.portfolio .portfolio-warp:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio .portfolio-overlay p {
    margin: 0;
    color: #ffffff;
}

.portfolio .portfolio-text {
    display: flex;
    align-items: center;
    height: 60px;
    background: #030f27;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.portfolio .portfolio-text h3 {
    margin: 0;
    padding: 0 15px 0 25px;
    width: calc(100% - 60px);
    font-size: 20px;
    font-weight: 700;
    color: #2373aa;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.portfolio .portfolio-warp a.btn {
    width: 60px;
    height: 60px;
    padding: 3px 0 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    line-height: 60px;
    font-weight: 100;
    color: #030f27;
    background: #ffffff;
    border-radius: 0;
    transition: .3s;
}

.portfolio .portfolio-warp:hover a.btn {
    color: #ffffff;
    background: #1259A5;
}


/*******************************/
/********* Kontakt CSS *********/
/*******************************/
.Kontakt {
    position: relative;
    width: 100%;
    padding: 45px 0;
}

.Kontakt .col-md-6 {
    padding-top: 30px;
    padding-bottom: 30px;
}

.Kontakt .col-md-6:first-child {
    background: #030f27;
}

.Kontakt .col-md-6:last-child {
    background: #2373aa;
}

.Kontakt .Kontakt-info {
    position: relative;
    width: 100%;
    padding: 0 15px;
}

.Kontakt .Kontakt-item {
    position: relative;
    margin-bottom: 30px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    border: 1px solid rgba(256, 256, 256, .2);
}

.Kontakt .Kontakt-item [class^="flaticon-"]::before {
    margin: 0;
    color: #2373aa;
    font-size: 40px;
}

.Kontakt .Kontakt-text {
    position: relative;
    width: auto;
    padding-left: 20px;
}

.Kontakt .Kontakt-text h2 {
    color: #2373aa;
    font-size: 20px;
    font-weight: 600;
}

.Kontakt .Kontakt-text p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
}

.Kontakt .Kontakt-item:last-child {
    margin-bottom: 0;
}

.Kontakt .Kontakt-form {
    position: relative;
    padding: 0 15px;
}

.Kontakt .Kontakt-form input {
    color: #ffffff;
    height: 40px;
    border-radius: 0;
    border-width: 1px;
    border-color: rgba(256, 256, 256, .4);
    background: transparent;
}

.Kontakt .Kontakt-form textarea {
    color: #ffffff;
    height: 185px;
    border-radius: 0;
    border-width: 1px;
    border-color: rgba(256, 256, 256, .4);
    background: transparent;
}

.Kontakt .Kontakt-form input:focus,
.Kontakt .Kontakt-form textarea {
    box-shadow: none;
}

.Kontakt .Kontakt-form .form-control::placeholder {
  color: #ffffff;
  opacity: 1;
}

.Kontakt .Kontakt-form .form-control::-ms-input-placeholder {
  color: #ffffff;
}

.Kontakt .Kontakt-form .form-control::-ms-input-placeholder {
  color: #ffffff;
}

.Kontakt .Kontakt-form .btn {
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #1259A5;
    background: #030f27;
    border: none;
    border-radius: 0;
    transition: .3s;
}

.Kontakt .Kontakt-form .btn:hover {
    color: #030f27;
    background: #ffffff;
}

.Kontakt .Hilfe-block ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}


/*******************************/
/********* Footer CSS **********/
/*******************************/
.footer {
    position: relative;
    margin-top: 45px;
    padding-top: 90px;
    background: #030f27;
    color: #ffffff;
}

.footer .footer-Kontakt,
.footer .footer-link,
.footer .newsletter {
    position: relative;
    margin-bottom: 45px;
}

.footer h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #2373aa;
}

.footer h2::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    left: 0;
    bottom: 0;
    background: #2373aa;
}

.footer .footer-link a {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    transition: .3s;
}

.footer .footer-link a::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .footer-link a:hover {
    color: #2373aa;
    letter-spacing: 1px;
}

.footer .footer-Kontakt p i {
    width: 25px;
}

.footer .footer-social {
    position: relative;
    margin-top: 20px;
}

.footer .footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 7px 0;
    text-align: center;
    border: 1px solid rgba(256, 256, 256, .3);
    border-radius: 60px;
    transition: .3s;
}

.footer .footer-social a i {
    font-size: 15px;
    color: #ffffff;
}

.footer .footer-social a:hover {
    background: #2373aa;
    border-color: #2373aa;
}

.footer .footer-social a:hover i {
    color: #030f27;
}

.footer .newsletter .form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.footer .newsletter input {
    height: 50px;
    border: 2px solid #121518;
    border-radius: 0;
}

.footer .newsletter .btn {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1259A5;
    background: #121518;
    border-radius: 0;
    border: 2px solid #1259A5;
    transition: .3s;
}

.footer .newsletter .btn:hover {
    color: #121518;
    background: #1259A5;
}

.footer .footer-menu .f-menu {
    position: relative;
    padding: 15px 0;
    font-size: 0;
    text-align: center;
    border-top: 1px solid rgba(256, 256, 256, .1);
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.footer .footer-menu .f-menu a {
    color: #ffffff;
    font-size: 16px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu .f-menu a:hover {
    color: #2373aa;
}

.footer .footer-menu .f-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


.footer .copyright {
    padding: 30px 15px;
}

.footer .copyright p {
    margin: 0;
    color: #ffffff;
}

.footer .copyright .col-md-6:last-child p {
    text-align: right;
}

.footer .copyright p a {
    color: #2373aa;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer .copyright p a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer .copyright p,
    .footer .copyright .col-md-6:last-child p {
        margin: 5px 0;
        text-align: center;
    }
}

.service-card:hover{
  transform:translateY(-3px);
  box-shadow:0 0.5rem 1rem rgba(0,0,0,.15);
}

.modal-body{
  max-height:70vh;   /* Modal nie höher als 70 % der Bildschirmhöhe */
  overflow-y:auto;   /* Scrollbar erscheint, falls nötig */
}


/* ---------- Mobile friendliness patch ---------------- */
html{                /* let looooong words wrap/hyphenate */
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens:auto;
}

/* fluid‑sizing: shrinks on phones, caps on desktop */
h1{font-size:clamp(2.2rem, 5vw + 1rem, 3.75rem);}
h2{font-size:clamp(1.8rem, 4vw + .8rem, 3rem);}
h3{font-size:clamp(1.4rem, 3.5vw + .6rem, 2rem);}

/* same trick for the carousel caption */
.carousel .carousel-caption p{
  font-size:clamp(1rem, 3vw, 1.5rem);
  padding:0 1rem;          /* keeps text away from the edges */
}
section,.fact,.faqs,.Kundenstimmen{padding-block:var(--gap-md)}
@media(min-width:992px){
  section,.fact,.faqs,.Kundenstimmen{padding-block:var(--gap-lg)}
}




@media(max-width:575.98px){
  a.btn,.navbar-nav .nav-link,.carousel-control-prev,
  .carousel-control-next,.back-to-top{
    min-width:48px;min-height:48px;
  }
}

/* --- Service Card Image Uniform Sizing --- */
.service-card img {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 180px; /* adjust as needed for your design */
  max-height: 220px; /* optional: keeps cards uniform if content varies */
}

/* --- Service Card Badge Position Fix --- */
.service-card {
  position: relative;
}
.service-card img {
  display: block;
}
.service-card .badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35em 0.6em;
  border-radius: 50%;
  min-width: 2em;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 2;
}
@media (max-width: 575.98px) {
  .service-card .badge {
    right: 8px;
    bottom: 8px;
    font-size: 1rem;
    min-width: 1.7em;
    min-height: 1.7em;
    padding: 0.25em 0.5em;
  }
}
/* Ensure badge does not overlap text */
.service-card .p-4 {
  position: relative;
  z-index: 1;
}

/* Service Card Images: Uniform size for all images in Leistungen and Modals */
.service-card img,
#leistungen .service-card img,
#leistungen .modal .img.w-100 {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 260px;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #f8f9fa;
}
@media (max-width: 575.98px) {
  .service-card img,
  #leistungen .service-card img,
  #leistungen .modal .img.w-100 {
    min-height: 120px;
    max-height: 160px;
    aspect-ratio: 4/3;
  }
}
/* Modal images: ensure same style */
.modal .img.w-100 {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 260px;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #f8f9fa;
}

/* Modal Leistungen Images: Uniform size for all images in modal rows */
#modal-abbruch .row .col-sm-6 figure img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 220px;
  background: #f8f9fa;
  border-radius: 0.75rem 0.75rem 0 0;
  display: block;
}
@media (max-width: 575.98px) {
  #modal-abbruch .row .col-sm-6 figure img {
    min-height: 120px;
    max-height: 140px;
    aspect-ratio: 4/3;
  }
}

.navbar-toggler {
    z-index: 1060;      /* keeps it on top of the menu */
    border-color: #fff; /* white outline so it stays visible */
}

/* make mobile/sticky bar a bit taller than the toggler */
@media (max-width: 991.98px){
  .nav-bar .navbar,
  .nav-bar.nav-sticky .navbar{
      min-height: 60px;     /* 56‑60px is plenty */
      padding-top: .5rem;   /* centres logo & icon */
      padding-bottom: .5rem;
  }
}
/* collapsed menu: overlay, scrollable, btn always visible */
@media (max-width: 991.98px){
  .navbar { position: relative; }            /* create containing BFC */
  .navbar-collapse {
      position: absolute;
      top: 100%;           /* right below the bar */
      left: 0;
      right: 0;
      background: #030f27; /* same blue you use for desktop */
      max-height: calc(100vh - 60px); /* 60 = bar height */
      overflow-y: auto;    /* own scrollbar if needed */
      box-shadow: 0 2px 8px rgba(0,0,0,.3);
      z-index: 1050;       /* above page content */
  }
}

@media (max-width: 991.98px){
  .navbar { min-height: 60px; padding: .65rem 1rem; }
}
/* =========================================
   MOBILE HAMBURGER MENU ‑ keep links visible
   ========================================= */
@media (max-width: 991.98px) {          /* only phones & tablets */
  /* change the link colour when you press / hover them
     inside the collapsed (hamburger) menu             */
  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link:focus {
    color: #2373aa;        /* light blue text so it shows up */
    background: #1259A5;   /* optional highlight strip; delete if unwanted */
  }
}

/* =======================================================
   MOBILE NAV (≤ 991 px)
   – give the collapsed menu its own colours
   – make the CURRENT page link stand out
   – show feedback while the user taps a link
   ======================================================= */
@media (max-width: 991.98px) {

  /* 1. default links inside the hamburger menu  */
  .navbar-collapse .nav-link {
    color: #ffffff;          /* white text on dark background */
    background: transparent; /* no bar behind normal links    */
  }

  /* 2. highlight the link that matches the open page  */
  .navbar-collapse .nav-link.active {
    color: #030f27;   /* dark‑blue text */
    background: #ffffff;
  }

  /* 3. feedback while the user presses / touches a link  */
  .navbar-collapse .nav-link:active,
  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link:focus {
    color: #2373aa;   /* light‑blue text */
    background: #1259A5;
  }

  /* 4. (optional) keep the three‑bar icon always visible */
  .navbar-dark .navbar-toggler-icon {
    filter: invert(0);      /* turns the white SVG lines dark → always visible */
  }
}

/* =======================================================
   DESKTOP NAV (≥ 992 px) – keep your original hover style
   ======================================================= */
@media (min-width: 992px) {
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
    color: #030f27;   /* dark‑blue text on the light background strip */
    background: #ffffff;
  }
}
/* -----------------------------------------------------------------
   MOBILE NAV: icon + link colours
   ----------------------------------------------------------------- */
@media (max-width: 991.98px) {

  /* 1 ▸ make the hamburger lines white & keep a white outline  */
  .navbar-dark .navbar-toggler {
      border-color: #ffffff !important;      /* thin white border   */
      padding: .25rem .55rem;                /* (optional) tighter  */
  }
  .navbar-dark .navbar-toggler-icon {        /* white bars          */
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* 2 ▸ default link text inside the open (collapsed) menu      */
  .navbar-collapse.show .nav-link            { color:#ffffff !important; background:transparent !important; }

  /* 3 ▸ highlight the CURRENT page                             */
  .navbar-collapse.show .nav-link.active     { color:#030f27 !important; background:#ffffff !important; }

  /* 4 ▸ feedback while the user taps / hovers a link            */
  .navbar-collapse.show .nav-link:hover,
  .navbar-collapse.show .nav-link:focus,
  .navbar-collapse.show .nav-link:active     { color:#ffffff !important; background:#1259A5 !important; }
}

/* 1 ▸ make the nav always sit _below_ the blue bar */
.nav-bar,
.nav-bar.nav-sticky {          /* keep the JS class if you need it */
  position: sticky;            /* or fixed – either works           */
  top: var(--topbar-h);        /* <- respect the bar’s real height  */
}

/* 2 ▸ let the blue bar stay on top of the stacking order */
/* blue info bar – sticks to the very top */
.top-bar{
  position: sticky;
  top: 0;
  z-index: 1100;
}

/* dark navigation bar – sticks right underneath the blue bar */
.nav-bar{
  position: sticky;          /* no JS class needed */
  top: var(--topbar-h);      /* always exactly the header’s height */
  z-index: 1050;             /* just below the blue bar */
}
/* ─── FIX: stop the nav bar from sliding under the blue top‑bar ───────── */



/* 2 ▸ the nav bar must always start right below the blue bar            */
/*     – while still becoming sticky/fixed when JS adds .nav-sticky      */
.nav-bar,
.nav-bar.nav-sticky{
  position: fixed;                /* you may keep ‘sticky’ if you prefer */
  top: var(--topbar-h) !important;/* ← key line: beats the inline style  */
  width: 100%;
}

/* (optional) nice-to-have: internal hash links no longer jump too high  */
html{ scroll-padding-top: var(--topbar-h); }
/* ─── 1 ▸ TOP‑BAR: let it breathe & wrap nicely ─────────────────────────── */


/* keep the logo on the left, everything else may wrap */
.top-bar .logo{flex:0 1 auto;margin-right:auto;}
.top-bar .top-bar-item{
    flex:0 1 auto;                     /* allows shrinking on small widths    */
    display:flex;align-items:center;
}

/* tighten the two‑line text so it fits comfortably */
.top-bar .top-bar-text h3{margin:0 0 .15em 0;line-height:1.25;}
.top-bar .top-bar-text p {margin:0;     line-height:1.25;white-space:nowrap;}

/* ─── 2 ▸ NAV‑BAR: always sit right below the (now variable‑height) top‑bar ─ */
.nav-bar,
.nav-bar.nav-sticky{
    position:sticky !important;        /* stay in the normal flow, then stick */
    top:calc(var(--topbar-h));         /* exactly the live top‑bar height     */
    z-index:1050;                      /* just under the blue bar (z‑1100)    */
}

/* ─── 3 ▸ optional JS helper – keeps the CSS var in sync when the           */
/*         top‑bar height changes on resize or translation. Paste inside     */
/*         a <script> tag, or bundle it into your main JS file.              */
/* (JavaScript code removed from CSS file; place it in a <script> tag in your HTML or JS file) */