/* --------------------------------------------------- */
/* ROOT
/* --------------------------------------------------- */
:root {
   --primary-color: #ea5827;
   --primary-color-dark: #8e2705;
   --secondary-color: #00569d;
   --gray-color: #EEE;
   --third-color: #a11780;  
 
   --text: #1b1b1b;
   --white: #FFF;
 }

 /* --------------------------------------------------- */
/* GENERAL
/* --------------------------------------------------- */

@font-face {
   font-family: "Lato";
   font-style: normal;
   font-weight: 700;
   font-display: swap;
   src: url(../Fonts/Lato-Bold.ttf) format('truetype');
}
@font-face {
   font-family: "Lato";
   font-style: normal;
   font-weight: 400;
   font-display: swap;
   src: url(../Fonts/Lato-Regular.ttf) format('truetype');
}

h1, h2, h3, h4 {
   font-family: "Lato";
   font-weight: 700;
   font-style: normal;
}
p, li, a { 
   font-family: "Lato";
   font-weight: 400;
   font-style: normal;
}

p {
   font-size: 1.2em;
}
p.text-justify {
   text-align: justify;
}

/* h1, h2 { text-transform: uppercase; } */

header h2, header h3, p {
   color: var(--text);
}

h2 { font-size: 1.8em; }

.btn.btn-primary { 
   background: var(--third-color) !important; 
   border: none; 
   border-radius: 20px; 
   padding: 8px 25px; 
   transition: all .5s ease;
}
.btn.btn-primary:hover { 
   background:  var(--gray-color) !important; 
   border: none; 
   color: var(--text); 
   transition: all .5s ease;
}

.btn.btn-default { 
   background: var(--third-color) !important; 
   border-radius: 20px;
   border: none; padding: 8px 25px;
   color: var(--white);
   transition: all .5s ease;
}
.btn.btn-default:hover { background: var(--gray-color) !important; color: var(--text); transition: all .5s ease;}
.pattern-overlay {
   background-image: url(/fileadmin/user_upload/Bilder/Assets/KSB-Pattern.svg);
   background-size: cover;
   width: 100%;
   z-index: 10;
   display: block;
   position: absolute;
   height: 100vh;
   margin-top: -84px;
}
.frame-secondary-color p {margin: 0;}
.frame-secondary-color h2 { color: var(--white);}

.frame-type-textmedia ul {  list-style: none; }
.frame-type-textmedia li { 
   text-indent: -0.8em;
   margin: 15px 0px;
   font-size: 1.2em;
}
.frame-type-textmedia li a { color: var(--text);}
.frame-type-textmedia li::before {
   display: inline-block;
   font-style: normal;
   font-variant: normal;
   text-rendering: auto;

   font-family: "Font Awesome 5 Free";
   font-weight: 900;
   content: "\f061";
   margin: 0 10px;
}

#content .cmb-floating-img-left img {
   float: left;
   margin: 0 3em 0 0;
   width: 25%;
}

#content .cmb-floating-img-right img {
   width: 25%;
   margin: 0 0 0 2em;
   float: right;
}


.e-slider {margin-top: 2%;  }
.e-slider header p {margin: 0;}
.e-slider a { display: block; width: 100%; transition: all .5s ease;}
.e-slider header h3 { font-size: 1em; margin: 0;}
.e-slider header {
   position: absolute;
   width: fit-content;
   left: 10%;
   bottom: 7%;
   background-color: var(--gray-color);
   border-radius: 20px;
   padding: 5px 10px;
   z-index: 10;
}
.e-slider img { border-radius: 30px; padding: 4%;}
.e-slider .frame-type-textmedia { position: relative;}
.e-slider a img {
   transition: all .5s ease-out;
}
.e-slider a:hover img {
   transform: scale(1.02);
   transition: all .5s ease-in;
}

.e-slider .siema-navigation.prev {
   padding: 0.8em 0.7em 0.55em 1.2em;
   border-radius: 50%;
   background-color: var(--secondary-color);
   height: 3.1em
}
.e-slider .siema-navigation.next {
   padding: 0.8em 1.2em 0.55em 0.7em;
   border-radius: 50%;
   background-color: var(--secondary-color);
   height: 3.1em;
}
.e-slider .siema-navigation::after {
   border: solid var(--white);
   border-width: 0 2px 2px 0;
   padding: 0.525em;
}

.e-slider .siema-navigation.prev.hide { opacity: 0; transition: all .3s ease-in-out; }
.e-slider:hover .siema-navigation.prev.hide { opacity: 0; transition: all .3s ease-in-out; }

.e-slider .siema-navigation.next { opacity: 0; transition: all .3s ease-in-out; }
.e-slider:hover .siema-navigation.next { opacity: 1; transition: all .3s ease-in-out; }

.e-slider .siema-navigation.prev { opacity: 0; transition: all .3s ease-in-out; }
.e-slider:hover .siema-navigation.prev { opacity: 1; transition: all .3s ease-in-out; }

.e-slider .siema-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 1;
}


.e-slider .image-caption { display: none;}
.e-slider figure.image {
    margin: 0;
    padding: 0;
    width: 100%;
    aspect-ratio: 9 / 12;
    overflow: hidden;
    border-radius: 8px; 
}
.e-slider figure.image > a {
    display: block;
    width: 100%;
    height: 100%;
}
.e-slider img.image-embed-item {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important; 
    display: block;
}


.container-fluid {
   width: 90%;
   max-width: 90%;
}

.e-accordion-content { 
   padding: 0 2em; 
   background: white;
   border: 1px solid #eee;
}
.e-accordion-content .e-elementColumns1,
.e-accordion-content .frame-type-textmedia  { padding: 2em 0;}
.e-accordion-item {
   border-radius: 13px;
   margin-bottom: 10px;
}
.e-accordion-title::after {
   margin-right: 20px;
}
.e-accordion-title::before {
   margin-right: 19px !important;
}


/* --------------------------------------------------- */
/* NAVIGATION
/* --------------------------------------------------- */
.topbar { background: var(--secondary-color); padding: 3px 0;}
.topbar .container {
   align-items: center;
}
.topbar #language_menu {
   padding: 0;
   list-style: none;
   margin: 0;
   float: left;
}

.topbar #language_menu li,
.topbar a { 
   display: inline; 
   float: left; 
   text-decoration: none; 
   color: var(--white);
   padding-right: 5px;
}
.topbar .icon { color: var(--white); font-size: 1.2em; padding-right: 10px;}

/* MENU */
@media (min-width: 992px) {
   .navbar-expand-lg .navbar-collapse {
       display: flex !important;
       flex-basis: auto;
       justify-content: flex-end;
   }
}
.navbar-brand { width: 13%; margin-right: -5%; }
.nav-item { margin-right: 8px;}
.nav-link  { color: var(--text); font-size: .9em;}
.nav-link:focus, .nav-link:hover {
   color: var(--secondary-color);
}
.navbar-nav .nav-link.active {
   color: var(--secondary-color);
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
   color: var(--secondary-color);
}

/* --------------------------------------------------- */
/* HOMEPAGE
/* --------------------------------------------------- */
#hero { 
   position: relative;
   max-height: 500px;
   overflow: hidden;
}
#hero #bgVideo { 
   width: 100%; 
   object-fit: cover;
   position: relative;
   transform: translateY(-20%)
}
#video_caption {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: #FFF;
   font-size: 2.3em;
   text-transform: uppercase;
   z-index: 30;
}
.video_overlay {
   background-color: var(--secondary-color);
   opacity: .4;
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   width: 100%;
   z-index: 10;
}

#teaser {
   max-height: 500px;
   overflow: hidden;
   position: relative;
   height: 500px;
}
#teaser img {
   width: 100%;
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
}

/* INTRO */
.frame-pattern { position: relative; clear:both;}
.frame-pattern img {
   width: 40% !important;
   border-radius: 20px;
   z-index: 100;
}
.frame-pattern figure {
   display: flex;
    text-align: center;
    height: 410px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.frame-pattern figure::before {
   content: " ";
   background-image: url(/fileadmin/user_upload/Bilder/Assets/ksb_rahmen_asset.png);
   background-size: contain;
   background-position: center center;
   width: 56%;
   position: absolute;
   height: 394px;
   background-repeat: no-repeat;
   top: -4px;
   left: 52%;
   transform: translateX(-50%);
   z-index: 10;
}

.accordion-button:not(.collapsed) {
    background-color: #ffffff;
}
.accordion {margin-bottom: 3em;}


/* THEMEN */
#themen {
   background: var(--secondary-color);
   position: relative;
}
.pattern-overlay {
   background-image: url(/fileadmin/user_upload/Bilder/Assets/KSB-Pattern.svg);
   background-size: cover;
   width: 100%;
   z-index: 10;
   display: block;
   position: absolute;
   height: 100vh;
   margin-top: -84px;
   opacity: .4;
}

/* SPORTANGEBOTE / QUALIFIZIERUNGEN */
#sportangebote .e-slider header,
#qualifikationen .e-slider header {   
   background-color: var(--third-color);
}
#sportangebote .e-slider header h3,
#qualifikationen .e-slider header h3 {   
   color: var(--white);
}

/* SCHWIMMEN */
#schwimmen a:hover, #abzeichen a:hover {
   color: var(--text);
}
#schwimmen .btn-default, #abzeichen .btn-default {
   background: var(--gray-color) !important;
   color: var(--secondary-color) !important;
}
#schwimmen .btn-default:hover, #abzeichen .btn-default:hover {
   background: var(--third-color) !important;
   color: var(--white) !important;
}



#abzeichen {
   background-image: url(/fileadmin/user_upload/Bilder/KSB/deutsches_sportabzeichen.jpeg);
   background-size: cover;
   background-position: top center;
   padding-top: 5rem !important;
   padding-bottom: 5rem !important;
   position: relative;
   overflow: hidden;
}
#abzeichen .orange-overlay {
   background-color: var(--primary-color-dark);
   width: 100%;
   z-index: 100;
   display: block;
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   mix-blend-mode: multiply;
}
#abzeichen header { text-align: center;}
#abzeichen h2, #abzeichen p { color: var(--white);}
#abzeichen .frame-type-textmedia .text-justify {
   width: 60%;
   margin: 0 auto 20px auto;
   text-align: center;
}


#schwimmen {
   background-image: url(/fileadmin/user_upload/Bilder/KSB/kreis-herford-lernt-schwimmen.jpeg);
   background-size: cover;
   background-position: center center;
   padding-top: 5rem !important;
   padding-bottom: 5rem !important;
   position: relative;
   overflow: hidden;
}
#schwimmen .blue-overlay {
   background-color: var(--secondary-color);
   width: 100%;
   z-index: 100;
   display: block;
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   mix-blend-mode: multiply;
}
#schwimmen header { text-align: center;}
#schwimmen h2, #schwimmen p { color: var(--white);}
#schwimmen .frame-type-textmedia .text-center {
   width: 60%;
   margin: 0 auto 20px auto;
   text-align: center;
}


.frame-layout-1 p {
   display: inline;
   padding-right: 25px;
}

/* FOOTER */
footer {
   background: var(--text);
   position: relative;
   overflow: hidden;
   padding: 4% 0;
}

footer .pattern-overlay { opacity: .1;}
/* footer h3 { text-transform: uppercase;} */
footer h3, footer p, footer a { color: var(--white) !important;}
footer p { font-size: 1em;}

footer img {
   width: 70%;
   margin: 0 auto;
   display: block;
}
footer .logos { display: block;}
footer .logos img:first-child { width: 45%; float: left; margin-right: 5%;}
footer .logos img:last-child { width: 50%; float: left;}
footer .react-logo {width: 100%; padding-top: 10px; display: block;}


/* --------------------------------------------------- */
/* NEWS
/* --------------------------------------------------- */
#homepage .news .article .news-img-wrap img {
   border-radius: 30px;
   height: 255px;
   border-radius: 30px;
   width: auto;
   aspect-ratio: 4 / 3;
}
#homepage .news .article .news-img-wrap a { border: none;}
#homepage .news .news-list-view { 
   display: flex;
   flex-wrap: nowrap;
   justify-content: space-evenly;
   align-content: center;
   flex-direction: row;
}
#homepage .header a {
   color: var(--text);
   text-decoration: none;
   font-size: .8em;
   display: block;
   text-align: center;
   margin: 0 auto;
}

.layout-1 .article {
   padding: 15px;
   border: 1px solid var(--gray-color);
   border-radius: 30px;
}
.layout-1 .article .news-img-wrap img {
   width: 20% !important;
   height: auto;
   margin-right: 4% !important;
}
.layout-1 .article .news-img-wrap a, .layout-1 .article .news-img-wrap { 
   float: none !important;
   border: none !important;
   background-color: transparent !important;
}
.layout-1 .article .teaser-text {width: 80%;}
.layout-1 .article .teaser-text a {
   margin-top: 30px;
}
.layout-1 .header {
   margin-bottom: 15px;
}
.layout-1 .header a {
   color: var(--text);
   text-decoration: none;
}
.active>.page-link, .page-link.active {
   background: var(--primary-color);
   border-color: var(--primary-color);
}

.news-backlink-wrap a { 
   color: var(--white); 
   text-decoration: none;
   margin-top: 15px;
   padding: 10px 28px;
   background: var(--third-color);
   border-radius: 20px;
   transition: all .5s ease;
}
.news-backlink-wrap a:hover {
   background: var(--gray-color);
   color: var(--text);
   transition: all .5s ease;
}
.news-single .article { float: none; width: 100% !important;}
.news-single img { width: 100% !important;}
.news-single h1 { margin-bottom: 20px; color: var(--secondary-color);}
.news-text-wrap { margin-bottom: 50px !important;}

#subpage .news .news-list-view {  
   display: flex;
   flex-wrap: wrap;
}
#subpage .article {
   float: left;
   width: 33%;
}

#subpage .header a {
   color: var(--text);
   text-decoration: none;
   font-size: .8em;
   display: block;
   text-align: center;
   margin: 0 auto;
}
#subpage .news-img-wrap a { border: none; padding: 15px;}
#subpage .news-img-wrap img { width: 100%; }
.f3-widget-paginator { 
   clear:both;
   list-style: none;
   display: flex;
   position: absolute;
   bottom: -100px;
   left: 0;
}
.f3-widget-paginator li a { text-decoration: none; color: var(--white);}
.f3-widget-paginator li {
   padding: 10px 20px;
   background: var(--secondary-color);
   color: var(--white);
   margin-right: 10px;
}
.f3-widget-paginator li.current { background: var(--primary-color);}

#subpage .news-list-view .f3-widget-paginator:first-child {display: none;}
#subpage h1 { color: var(--text);}
#subpage #contact h2 {
    text-transform: uppercase;
    font-size: 4.2rem;
    line-height: 1em;
}


/* --------------------------------------------------- */
/* EVENTS
/* --------------------------------------------------- */
/* .tx-sf-event-mgt {
   text-align: center;
} */

.event-list-item {
   display: inline-block;
   overflow: hidden;
   position: relative;
   margin: 20px;
   text-align: left;
   transition: all .3s ease-in-out;
}

.event-list-item #event-content {
   position: absolute;
   background-color: var(--white);
   bottom: 3%;
   left: 4%;
   width: 92%;
   border-radius: 20px;
   padding: 17px;
}
.event-list-item .event-teaser {
   line-height: 1.1em;
   margin-bottom: 15px;
}
.event-list-item .event-price {
   color: var(--third-color);
   font-size: 1.1em;
   font-weight: bold;
}

.event-list-item #event-content h2 {
   font-size: 0.9em;
}
.event-list-item #event-content h2 a {
   color: var(--third-color);
   text-decoration: none;
}

.event-list-item .event-image img {
   width: initial !important;
   margin: 0 !important;
   display: block !important;
}

.event-list-item .event-registration .btn.btn-primary {
   padding: 5px 16px;
}

.event-list-item #info-event {
   position: absolute;
    top: 5%;
    left: 6%;
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 3px 32px;
    color: white;
}

.event-list-item .event-new {
   background: var(--primary-color);
   padding: 1px 17px;
   display: inline-block;
   margin-bottom: 11px;
   border-radius: 20px;
   color: var(--white);
}

.event-list-item #prices {
   position: absolute;
   top: 5%;
   right: 6%;
   background: var(--white);
   border-radius: 20px;
   padding: 3px 15px;
   margin: 0;
}

.paginator { 
   list-style: none;
}
.paginator li {
   float: left;
   padding: 9px 15px;
   margin-right: 5px;
   background: var(--secondary-color);
}
.paginator .last { display: none;}
.paginator a { color: var(--gray-color); text-decoration: none;}


.event-detail-row.kursdetails {
   display: flex;
   background: var(--secondary-color);
   padding: 23px;
   border-radius: 21px;
   color: var(--white);
   margin-top: 5%;
}
.event-detail-row .event-description {
   display: flex;
}
.event-detail-row .event-description img { 
   width: 85% !important;
   height: auto;
   border-radius: 3em !important;
   margin: auto 0 auto auto;
}
.event-detail-row.kursgebuehr {
   margin-top: 3%;
}
.event-detail-row.kursgebuehr .event-price p { margin: 0;}

.event-registration-value.event-title {
   max-width: 350px;
}


.submits {margin-top: 4%;}
.submits .btn.btn-primary, .submit.btn.btn-primary  { float: right;}
.submits .btn-secondary, .btn.btn-secondary {
   border-radius: 20px;
   padding: 4px 20px;
}
.submits .btn-secondary { float: right; display: none !important;}


.event-list-item:hover {
   filter: drop-shadow(2px 4px 6px #aaa);
   transition: all .3s ease-in-out;
}
.event-registration button.btn-secondary { border-radius: 20px;}
.event-registration-row.checkbox input, #sepaInput input.checkbox { display: initial; width: initial;}
.event-registration-row label { display: block; margin-top: 8px;}
.event-registration-row input { width: 100%; padding: 4px;}
.event-registration-row select {
   padding: 5px 10px;
   margin-top: 10px;
}
.event-registration-row #sepaacc { width: initial;}
.rq-checks a { text-decoration: underline;}

.event-location-title i, .event-program i, .event-price i { margin-right: 10px; transform: rot}
.event-location-title a { color: var(--white); text-decoration: none;}

.event-location-title:hover i {
   animation: wobble .5s ease;
   transition: all .3s ease-in-out;
}

.event-registration-row.checkbox.gender label:nth-child(2) { display: none;} 

@keyframes wobble {
   0%, 100% {
       -webkit-transform: translateX(0%);
       transform: translateX(0%);
       -webkit-transform-origin: 50% 50%;
       transform-origin: 50% 50%;
   }

   15% {
       -webkit-transform: translateX(-2px) rotate(-3deg);
       transform: translateX(-2px) rotate(-3deg);
   }

   30% {
       -webkit-transform: translateX(calc(2px / 2)) rotate(3deg);
       transform: translateX(calc(2px / 2)) rotate(3deg);
   }

   45% {
       -webkit-transform: translateX(calc(-2px / 2)) rotate(calc(-3deg / 1.8));
       transform: translateX(calc(-2px / 2)) rotate(calc(-3deg / 1.8));
   }

   60% {
       -webkit-transform: translateX(calc(2px / 3.3)) rotate(calc(3deg / 3));
       transform: translateX(calc(2px / 3.3)) rotate(calc(3deg / 3));
   }

   75% {
       -webkit-transform: translateX(calc(-2px / 5.5)) rotate(calc(-3deg / 5));
       transform: translateX(calc(-2px / 5.5)) rotate(calc(-3deg / 5));
   }
}


.overview {
   background: var(--secondary-color);
   width: fit-content;
   padding: 42px;
   color: white;
   border-radius: 30px;
   height: fit-content;
   margin: 0 auto;
   width: 450px;
}

/* Addition for dateOfBirth */
.additional-dateofbirth { margin-top: 8px; }
.additional-dateofbirth label { display: none;}

/* NEEDED FOR FILTER */
.event-filtering {
   display: flex;
}

#filterDropdown {
   background: var(--third-color);
   border-radius: 32px;
   padding: 0 10px;
   color: white;
   border: none;
}

.filters { padding: 15px; }
.filters li { margin-bottom: 5px;}

.hidden { /* You can play with the seconds to change the "animation" */
   animation: hide .3s ease 0s 1 normal forwards;
   transform-origin: center;
 }
 .showen { /* You can play with the seconds to change the "animation" */
     animation: show .3s ease 0s 1 normal forwards;    
     transform-origin: center;
 }
 
 @keyframes hide {
   0%{
     transform: scale(1);        
   }
   100% {
     transform: scale(0);        
     width: 0;
     height: 0;
     margin: 0;
   }
 }
 @keyframes show {
   0%{
     transform: scale(0);     
     width: 0;
     height: 0;
     margin: 0;   
   }
   100% {
     transform: scale(1);    
   }
 }

/* The switch - the box around the slider */
.switch {
   position: relative;
   display: inline-block;
   width: 60px;
   height: 34px;
   margin-top: 5px;
   margin-left: 15px;
 }
 
 /* Hide default HTML checkbox */
 .switch input {
   opacity: 0;
   width: 0;
   height: 0;
 }
 
 /* The slider */
 .slider {
   position: absolute;
   cursor: pointer;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #ccc;
   transition: .4s;
   border-radius: 34px;
 }
 
 /* The slider before round */
 .slider:before {
   position: absolute;
   content: "";
   height: 26px;
   width: 26px;
   left: 4px;
   bottom: 4px;
   background-color: var(--white);
   transition: .4s;
   border-radius: 50%;
 }
 
 /* When checked */
 input:checked + .slider {
   background-color: var(--third-color);
 }
 
 /* Move the slider when checked */
 input:checked + .slider:before {
   transform: translateX(26px);
 }
 
 /* Rounded sliders */
 .slider.round {
   border-radius: 34px;
 }
 
 .slider.round:before {
   border-radius: 50%;
 }



 /* CONTACT */
 #kontakt-134 .captcha img {
   border-radius: initial;
   width: initial;
   margin: inherit;
   display: inline;
 }



/* --------------------------------------------------- */
/* SUBPAGE
/* --------------------------------------------------- */
#teaser img {width: 100%;}
#content img {
   border-radius: 20px;
   width: 80%;
   margin: 0 auto;
   display: block;
}
#contact img {
   border-radius: 20px;
   width: 70%;
   display: block;
   margin: 0 0 0 auto;
}
#contact p { 
   margin: 0;
   font-size: 1.1em;
}
#contact .h1 { 
   text-transform: uppercase;
   font-size: 4.2rem;
   line-height: 1em;
}

form .form-check { 
   display: inline-block;
   margin-bottom: 1.525rem;
}
form a { color: var(--text); text-decoration: none;}
form .form-label { font-weight: 600;}
form .input { margin-bottom: 15px;}
.frame-type-form_formframework form textarea { height: 200px; margin-bottom: 1.525em;}
.form-check-input:checked {
   background-color: var(--primary-color);
   border-color: var(--primary-color);
}
.form-control:focus {
   color: var(--text);
   background-color: var(--white);
   border-color: var(--gray-color);
   outline: 0;
   box-shadow: 0 0 0 .25rem rgba(250, 125, 8, 0.25);
}
#kontakt-134-radiobutton-1 .form-check { margin-right: 15px;}

#content form .captcha img { 
  width: initial;
  margin: 0 0 1em 0;
  display: inline;
}


.f3-widget-paginator {
    clear: both;
    list-style: none;
    display: flex;
    flex-direction: row;
    height: fit-content;
}


/* --------------------------------------------------- */
/* MEDIA QUERY
/* --------------------------------------------------- */

@media(max-width: 767px) {
   h2 { font-size: 1.8em; }
   .xs-margin { margin-top: 1em;}
   .xs-hidden { display: none;}

   .btn.btn-default { font-size: .9em; display: block;}
   
   .navbar-brand { width: 30%; }
   .navbar-toggler i { color: var(--secondary-color); font-size: 1.7em;}
   
   #hero { max-height: 175px;}
   #video_caption { font-size: 1em; }

   .frame-pattern {
      display: none;
   }

   #teaser {
      max-height: 200px;
      overflow: hidden;
      position: relative;
      height: 200px;
  }

   #homepage #news .list-group { flex-direction: column; }
   #homepage .news .teaser-text a { font-size: 1.2em;}

   #homepage .news .article .news-img-wrap img {
      border-radius: 30px;
      height: auto;
      border-radius: 30px;
      width: 100%;
   }
   #homepage .news .news-list-view {
   display: flex;
   flex-wrap: nowrap;
   justify-content: space-between;
   align-content: center;
   flex-direction: column;
   }
   #homepage #news .btn-primary {
      margin-top: 3%;
   }
   .news-single .article .news-img-wrap {
      width: 100% !important;
   }
   #abzeichen .frame-type-textmedia .text-justify,
   #schwimmen .frame-type-textmedia .text-center {
      width: 93%;
   }

   #contact .h1 {
      font-size: 3.1rem;
   }

   #subpage #content img { 
      margin-bottom: 40px;
      width: 100%;
   }
   #subpage #contact img {
      width: 100%;
      margin: 15px 0;
   }
   #subpage .article {
      float: none;
      width: 100%;
  }

  .event-list-item .event-image img {
      width: 100% !important;
      height: auto;
   }
   .event-list-item { margin: 4px;}
   .event-filtering p { font-size: 1em; margin: 0px 0 0 10px;}
   .switch { width: 80px;}
   .event-list-item #info-event { padding: 3px 15px;}
   .event-list-item #info-event span { font-size: .8em;}
   .event-detail-row.kursdetails {
      display: flex;
      flex-direction: column;
   }
   .event-detail-row .event-description {
      display: flex;
      flex-direction: column-reverse;
  }
  .event-detail-row .col-8, .event-detail-row .col-4 { width: 100%;}
  .submit.btn.btn-primary, .registration .btn.btn-secondary {
      float: initial;
      display: block;
      width: 100%;
      margin-bottom: 10px;
   }

}

@media(min-width: 768px) and (max-width: 1023px) {
   .h1, h1 { font-size: calc(0.775rem + 1.5vw); }
   h2 { font-size: 2em; }
   .xs-hidden { display: none;}

   .navbar-toggler i { color: var(--secondary-color); font-size: 1.7em;}

   #hero { max-height: 320px;}
   #video_caption { font-size: 1.7em; }

   #teaser {
      max-height: 300px;
      height: 300px;
   }

   .frame-pattern picture { height: 300px; }
   .frame-pattern picture::before { height: 300px; }
   .frame-layout-1 p { display: block; }

   #homepage .news .article .news-img-wrap img {
      border-radius: 30px;
      height: auto;
      border-radius: 30px;
      width: 100%;
      aspect-ratio: 4 / 3;
   }
  #schwimmen .frame-type-textmedia .text-center {
   width: 100%;
  }
  #contact .h1 {
      font-size: 3rem; 
   }
   #contact img {
      width: 100%;
      margin: 0px 0 15px 0;
  }
}

@media(width: 1024px) {
   h2 { font-size: 2.2em; }
   .navbar-expand-xl .navbar-collapse {  justify-content: flex-end; }
   .nav-item { margin-right: 8px; }
   .navbar-toggler i { color: var(--secondary-color); font-size: 1.7em;}

   #hero { max-height: 425px; }
   #video_caption { font-size: 2em; }
   .frame-layout-1 p { padding-right: 6px; }

   #contact .h1 {
      text-transform: uppercase;
      font-size: 3.3em;
      line-height: 1em;
  }
  #homepage .news .article .news-img-wrap img {
      height: auto;
      border-radius: 30px;
      width: 100%;
   }
}


@media(min-width: 1025px) and (max-width: 1630px) {
  #homepage .news .article .news-img-wrap img { height: 223px;}

}

@media(min-width: 1200px) {
   .navbar-expand-xl .navbar-collapse {
      display: flex !important;
      flex-basis: content;
      justify-content: flex-end;
  }

  .dropdown-menu[data-bs-popper] {
    top: 191%;
  }
  .dropend .dropdown-menu[data-bs-popper] { top: -1px;}
  .dropdown-menu.show { border-radius: 0;}
  .dropdown-item { font-size: .9em;}

  .news-text-wrap {
     column-count: 2;
     column-gap: 50px;
  }
}

@media(width: 1366px) {
   #homepage .news .article .news-img-wrap img {
      height: 208px;
  }
}

@media(min-width: 1500px) {
  .frame-pattern img {
      width: 33% !important;
   }
   .e-slider img {
      border-radius: 40px;
   }
}
@media(min-width: 2000px) {
    .frame-pattern img {
      width: 35% !important;
   }
}
@media(min-width: 2200px) {
   .frame-pattern img {
       width: 40% !important;
    }
    .e-slider img {
      border-radius: 50px;
   }
 }

 /* ============ small devices ============ */
 @media (max-width: 991px) {
   .dropdown-menu .dropdown-menu{
       margin-left:0.7rem; margin-right:0.7rem; margin-bottom: .5rem;
   }
   .dropdown-menu {
       border: none !important;
   }
   .navbar-nav .nav-link.show {
     color: var(--secondary-color);
   }
   .dropdown-item.active, .dropdown-item:active, .dropdown-item:focus, .dropdown-item:hover {
     color: var(--secondary-color);
     background-color: var(--gray-color);
    }
 }	
 /* ============ small devices .end// ============ */ 
 


