/*

 Theme Name: BWT Spitzer
 Theme URI: https://www.bwtspitzer.de.de
 Description: Ein responsives Design, optimiert für 1920x1080p.
 Author: Denny Nordmann
 Author URI: http://eilinghoff.de

 */

/* Base responsive setup */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #d9d9d9;
  line-height: 1.5em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Responsive form elements */
input,
textarea,
select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Prevent text overflow */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2em;
}
figure {
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  position: fixed;
  width: 100%;
  height: 200px;
  background: white;
  z-index: 9999;
  transition: all 0.5s;
}

header #top-bar {
  background-color: #f29719;
  padding: 15px 0;
}

header #top-bar p,
header #top-bar a {
  color: white;
  text-decoration: none;
  margin: 0;
}

header #top-bar a:hover {
  color: #1f1f1e;
}

header #top-bar .wrap {
  display: flex;
  justify-content: space-between;
}

header #top-bar .wrap ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

header #top-bar .wrap ul li {
  display: inline;
  border-left: solid thin white;
  padding: 0 15px;
}

header #top-bar .wrap ul li:first-of-type {
  border-left: none;
}

header #top-bar .wrap ul li:last-of-type {
  padding-right: 0;
}

header #sub-bar {
  position: relative;
}

header #sub-bar hr {
  position: absolute;
  bottom: 34px;
  left: 0;
  width: 100%;
  border: solid thin;
  opacity: 0.2;
  color: #707070;
}

header #sub-bar figure img {
  width: 125px;
  height: auto;
  background-color: white;
  padding: 15px 20px 0;
  position: relative;
  z-index: 99;
  transition: all 0.5s;
}

header #sub-bar .wrap {
  display: flex;
  justify-content: space-between;
  position: relative;
}

header #sub-bar .wrap nav {
  align-self: flex-end;
  margin-bottom: 12px;
}

header #sub-bar .wrap nav ul {
  margin: 0;
  padding: 0;
}

header #sub-bar .wrap nav ul li {
  display: inline;
  position: relative;
}

header #sub-bar .wrap nav ul li a {
  color: #303030;
  text-decoration: none;
  padding: 5px 15px;
}

header #sub-bar .wrap nav ul li a:hover,
header #sub-bar .wrap nav ul .current_page_item a,
header #sub-bar .wrap nav ul li ul li:last-of-type a,
.current_page_item > a,
.current_page_ancestor > a {
  border-top: solid 5px #f29719;
  border-bottom: solid 5px #f29719;
}

/* header #sub-bar .wrap nav ul li:last-of-type a {
  background-color: #f29719;
  color: white;
  border-top: solid 5px #f29719;
  border-bottom: solid 5px #f29719;
  font-weight: 600;
}
 */
/* header #sub-bar .wrap nav ul li:last-of-type a:hover {
  border-top: solid 5px #1c1c1a;
  border-bottom: solid 5px #1c1c1a;
  background-color: #1c1c1a;
}
 */
header #sub-bar .wrap nav ul li ul {
  position: absolute;
  top: 42px;
  left: 0;
  display: flex;
  background-color: white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

header #sub-bar .wrap nav ul li ul li {
  white-space: nowrap;
}

header #sub-bar .wrap nav ul .current_page_item ul li ul li a {
  border-bottom: solid thin #e1e1e1;
  border-top: solid thin #e1e1e1;
}

header #sub-bar .wrap nav ul li:hover > ul {
  visibility: visible;
  opacity: 1;
}

header #sub-bar .wrap nav ul li ul li a {
  background-color: white;
  padding: 15px 28px;
  font-weight: 600;
  border-right: solid thin #e1e1e1;
  border-bottom: solid 5px #f29719;
}

header #sub-bar .wrap nav ul li ul li a:hover,
header #sub-bar .wrap nav ul li ul .current_page_item a {
  border-top: none;
  border-bottom: solid 5px #f29719;
  background-color: #f29719;
  color: white;
}

header #sub-bar .wrap nav ul li ul .current_page_item a {
  border-bottom: none;
}

header #sub-bar .wrap nav ul li ul li:last-of-type a:hover {
  border-top: none;
  background-color: #f29719;
  color: white;
  border-bottom: solid 5px #f29719;
}

header #sub-bar .wrap nav ul li ul li:last-of-type a {
  background-color: white;
  color: #303030;
  border-top: none;
  border-bottom: solid 5px #f29719;
  border-right: none;
}
header #sub-bar .wrap nav ul li ul li ul {
  display: block;
  top: 41px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  max-height: 0;
  overflow: hidden;
}

header #sub-bar .wrap nav ul li ul:hover li ul {
  max-height: 500px; /* حسب عدد العناصر */
  opacity: 1;
  visibility: visible;
}
header #sub-bar .wrap nav ul li ul li ul li {
  display: block;
}

header #sub-bar .wrap nav ul li ul li ul li a {
  font-weight: inherit;
  display: block;
  padding: 10px 36px;
  text-align: center;
  border-right: none;
  border-bottom: solid thin #e1e1e1;
}

header #sub-bar .wrap nav ul li ul li ul li a:hover {
  border-bottom: solid thin #e1e1e1;
}

header #sub-bar .wrap nav ul li ul li ul li:last-of-type a {
  font-weight: inherit;
}

header #sub-bar .wrap #searcharea {
  position: absolute;
  right: 0;
  bottom: 50px;
}

header #sub-bar .wrap #searcharea p {
  display: inline-block;
  margin-right: 10px;
  color: #303030;
  font-size: 14px;
}

header #sub-bar .wrap #searcharea input {
  width: 170px;
  padding: 5px;
  border: solid thin #f29719;
  background-image: url("img/search-icon.png");
  background-repeat: no-repeat;
  background-position: top 10px right 3px;
  background-size: 12px;
  font-size: 16px;
}

/* .resize-logo {
  width: 80px !important;
}

.resize-header {
  height: 153px !important;
} */

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #303030;
  cursor: pointer;
  padding: 10px;
  z-index: 10000;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #303030;
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

#slider {
  padding-top: 200px;
  position: relative;
  overflow: hidden;
}

#slider img {
  height: 500px;
  width: 100%;
  object-fit: cover;
}

#slider .caption {
  position: absolute;
  bottom: 25px;
  right: 12.5%;
}

#slider .caption-single {
  position: absolute;
  bottom: 25px;
  right: 12.5%;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px 30px;
  color: white;
  font-size: 36px;
  line-height: 1.5em;
  font-weight: 600;
}

#slider .caption p {
  font-size: 36px;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px 30px;
}

#slider .metaslider .caption-wrap {
  opacity: 1;
}

#slider .caption a {
  background-color: #f29719;
  color: white;
  text-decoration: none;
  float: right;
  margin-top: 15px;
  display: inline-block;
  padding: 5px 10px;
}

#slider .caption a:hover {
  background-color: #0a0a09;
}

main {
  margin-top: 100px;
}

#aktuelles {
  margin-bottom: 100px;
}

#aktuelles .wrap {
  display: flex;
  justify-content: space-between;
}

#aktuelles .wrap article {
  width: 30%;
  position: relative;
  padding-bottom: 40px;
  background-color: white;
}

#aktuelles .wrap article img {
  display: block;
	object-fit:cover;
	width:100% !important;
	height:250px !important;
}

#aktuelles .wrap article div {
  padding: 15px;
  color: #434343;
}

#aktuelles .wrap article a {
  display: block;
  text-decoration: none;
  color: white;
  background-color: #f29719;
  text-align: center;
  padding: 10px 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

#aktuelles .wrap article a:hover {
  color: white;
  background-color: #1b1b1a;
}

#manufaktur-bwt {
  display: flex;
  justify-content: center;
  padding: 0 15px;
  flex-direction: row;
}

#manufaktur-bwt img {
  width: 100%;
  height: auto;
  display: block;
}

#manufaktur-bwt article {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 25px;
  width: 60%;
}
#manufaktur-bwt video {
  width: 40%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
#manufaktur-bwt article a {
  position: absolute;
  right: 0;
  bottom: -50px;
  background-color: #f29719;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
}

#leistungsuebersicht {
  margin: 100px 0;
}

#leistungsuebersicht .wrap {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

#leistungsuebersicht .wrap section {
  /* width: 70%; */
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

#leistungsuebersicht .wrap article {
  background-color: white;
  border-bottom: solid 10px #f29719;
}

#leistungsuebersicht .wrap article img {
  width: 100%;
  height: auto;
  display: block;
}

#leistungsuebersicht .wrap > article img {
  margin-top: 30px;
}

#leistungsuebersicht .wrap a {
  text-decoration: none;
  color: #434343;
}

#leistungsuebersicht .wrap a:hover article,
#leistungsuebersicht .wrap article:hover {
  background-color: #f29719;
  color: white;
}

#leistungsuebersicht .wrap article:hover a {
  color: white;
}

#leistungsuebersicht .wrap article p {
  padding: 0 30px;
  margin-top: 0;
}

#leistungsuebersicht .wrap article h3 {
  margin-left: 30px;
  margin-bottom: 10px;
}

#leistungsuebersicht .wrap section article {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  background-color: white;
  border-bottom: none;
  border-left: solid 10px #f29719;
}

#leistungsuebersicht .wrap section article:last-of-type {
  margin-bottom: 0;
}

#leistungsuebersicht .wrap section article img {
  width: 40%;
  height: auto;
}

#leistungsuebersicht .wrap section article div {
  width: 75%;
  align-self: center;
}

#karriere {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px !important;
}

#karriere figure {
  width: 40%;
}

#karriere figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#karriere section {
  width: 60%;
  background-color: #f29719;
  color: white;
  display: flex;
}

#karriere section article {
  align-self: center;
  width: 90%;
  margin: 0 auto;
}

#karriere section article a {
  padding: 15px 25px;
  background-color: white;
  text-decoration: none;
  color: #1b1b1a;
  display: block;
  margin-top: 25px;
  margin-bottom: 30px;
  text-align: center;
}

#karriere section article a:hover,
#manufaktur-bwt article a:hover,
#kontaktaufnahme article .cta:hover {
  background-color: #1b1b1a;
  color: white;
}

#kontaktaufnahme {
  /* position: relative; */
  margin-top: 100px;
  padding-bottom: 100px;
}

#kontaktaufnahme img {
  width: 100%;
  height: auto;
  display: block;
}

.article-left {
  left: 10%;
}

#kontaktaufnahme article {
  /* position: absolute;
  width: 600px; */
  background: rgba(0, 0, 0, 0.7);
  color: white;
  /* bottom: 20%;
  right: 10%; */
  padding: 25px;
}

#kontaktaufnahme article a {
  color: #f29719;
  text-decoration: none;
}

#kontaktaufnahme article .cta {
  padding: 10px 20px;
  background-color: #f29719;
  color: white;
  text-decoration: none;
}

#kontaktaufnahme .kontaktdaten {
  display: flex;
  justify-content: space-between;
  width: 400px;
}

#kontaktaufnahme .kontaktdaten a {
  text-decoration: none;
  color: white;
}

#kontaktaufnahme .kontaktdaten a:hover {
  color: #f29719;
}

footer {
  background-color: white;
  padding-top: 75px;
  padding-bottom: 25px;
}

footer .wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
}

footer hr {
  position: absolute;
  bottom: 75px;
  width: 100%;
  left: 0;
  border: solid thin;
  opacity: 0.2;
  color: #707070;
}

footer article p:first-of-type {
  margin-bottom: 30px;
}

footer ul {
  margin: 0;
  padding: 0;
}

footer ul li {
  display: inline;
  margin-right: 15px;
}

footer ul li a {
  text-decoration: none;
  color: black;
}

footer ul li a:hover {
  color: #f29719;
}

footer p {
  color: #303030;
  opacity: 0.6;
}

footer figure {
  margin-right: 40px;
}

footer figure img {
  width: 125px;
  height: auto;
  background-color: white;
  position: relative;
  z-index: 99;
  padding: 0 15px;
}

.flexible-headline h1,
.flexible-headline h2,
.flexible-headline h3,
.flexible-headline h4 {
  color: white;
  background-color: #f29719;
  display: block;
  margin: 0 auto;
  width: 50%;
  padding: 10px 0;
  font-weight: inherit;
  text-align: center;
  font-size: 20px;
}

.flexible-headline h1 {
  font-size: 26px;
  padding: 15px 0;
}

.flexible-three-articles,
.flexible-two-articles,
.flexible-one-article {
  margin: 50px 0;
}

.flexible-three-articles .wrap,
.flexible-two-articles .wrap {
  display: flex;
  justify-content: space-between;
}

.flexible-three-articles .wrap article,
.flexible-two-articles .wrap article,
.flexible-one-article .wrap article {
  background-color: white;
  border-bottom: solid 10px #f29719;
  color: #434343;
}

.flexible-three-articles .wrap article a,
.flexible-two-articles .wrap article a,
.flexible-one-article .wrap article a,
.flexible-article-with-img .wrap article a {
  color: #f29719;
  text-decoration: none;
}

.flexible-one-article .wrap article {
  width: 100%;
}

.flexible-two-articles .wrap article {
  width: 48%;
}

.flexible-three-articles .wrap article {
  width: 30%;
}

.flexible-three-articles .wrap article .wrapper,
.flexible-two-articles .wrap article .wrapper,
.flexible-one-article .wrap article .wrapper {
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
}

#history-slider {
  margin-bottom: 50px;
}

#history-slider img {
  width: 40%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

#history-slider figure {
  position: relative;
}

#history-slider figure p {
  position: absolute;
  right: 0;
  bottom: 5px;
  background-color: #f29719;
  color: white;
  padding: 10px 25px;
  font-weight: 600;
  left: 0;
  margin: 0 auto;
  width: 90px;
  text-align: center;
}

#history-slider ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

#history-slider ul li {
  color: #1a1a19;
  padding: 10px 25px;
  background-color: white;
  list-style-type: none;
  margin: 0 25px;
  cursor: pointer;
}

#history-slider ul li:hover,
#history-slider ul .historie-active {
  color: white;
  background-color: #f29719;
}

#history-slider .historie-slide {
  display: none;
}

#history-slider .active-slide {
  display: block;
}

.flexible-article-on-image {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.flexible-article-on-image .img-container {
  flex: 1;
}
.flexible-article-on-image article {
  flex: 2;
}
.flexible-article-on-image img {
  display: block;
  width: 70%;
  height: 100%;
  object-fit: cover;
}

.flexible-article-on-image article {
  padding: 25px;
  color: white;
  right: 10%;
  bottom: 50px;
  background: rgba(0, 0, 0, 0.8);
}

.alles-aus-einer-hand .wrap {
  background-color: white;
  margin: 75px auto;
  display: flex;
  justify-content: space-around;
  padding: 50px 0;
  position: relative;
  border-bottom: solid 10px #f29719;
}

.alles-aus-einer-hand .wrap article {
  width: 20%;
  color: #434343;
}

.alles-aus-einer-hand .wrap article img {
  width: 135px;
  height: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 9;
}

.alles-aus-einer-hand .wrap article h4 {
  text-align: center;
}

.alles-aus-einer-hand .wrap hr {
  position: absolute;
  width: 75%;
  top: 110px;
  height: 10px;
  background-color: #d9d9d9;
  border: none;
}
.kunden-branchen .wrap {
  flex-direction: column !important;
}
.kunden-branchen .wrap,
.flexible-vorteile .wrap {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}
.kunden-branchen .wrap {
  gap: 20px;
}
.kunden-branchen .wrap article,
.flexible-vorteile .wrap article {
  width: 35.8%;
  background-color: white;
  position: relative;
  color: #434343;
}
.kunden-branchen .wrap article {
  width: 100%;
}
.flexible-vorteile .wrap article {
  width: 30%;
  padding-bottom: 30px;
}

.kunden-branchen .wrap article a,
.flexible-vorteile .wrap article a {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  background-color: #f29719;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
}

.kunden-branchen .wrap article a:hover,
.flexible-vorteile .wrap article a:hover {
  background-color: #1d1d1c;
}

.kunden-branchen .wrap article p,
.kunden-branchen .wrap article h3,
.flexible-vorteile .wrap article p,
.flexible-vorteile .wrap article h3 {
  padding: 0 20px;
}

.kunden-branchen .wrap section,
.flexible-vorteile .wrap section {
  width: 100%;
}

.flexible-vorteile .wrap section {
  width: 65%;
}

.kunden-branchen .wrap section ul,
.flexible-vorteile .wrap section ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-content: space-between;
  font-size: 13px;
}

.flexible-vorteile .wrap section ul {
  font-size: 16px;
}

.kunden-branchen .wrap section ul li,
.flexible-vorteile .wrap section ul li {
  width: 49%;
  padding: 10px 0;
  list-style-type: none;
  background-color: white;
  display: inline-block;
  text-align: center;
  margin-bottom: 12px;
  color: #434343;
}

.flexible-vorteile .wrap section ul li {
  margin-bottom: 45px;
}

.flexible-vorteile .wrap section ul li:last-of-type,
.flexible-vorteile .wrap section ul li:nth-last-child(2) {
  margin-bottom: 0;
}

.kunden-branchen .wrap section ul li:last-of-type {
  /* width: 100%; */
  /* margin-bottom: 0; */
}

.flexible-yellow-article-with-img {
  display: flex;
  justify-content: space-between;
}

.flexible-yellow-article-with-img article {
  width: 35%;
  background-color: #f29719;
  color: white;
  display: flex;
}

.flexible-yellow-article-with-img figure {
  width: 65%;
}

.flexible-yellow-article-with-img figure img {
  width: 100%;
  height: auto;
  display: block;
}

.flexible-yellow-article-with-img article div {
  align-self: center;
  width: 75%;
  margin: 0 auto;
}

.flexible-yellow-article-with-img article div a {
  padding: 15px 25px;
  background-color: white;
  text-decoration: none;
  color: #1b1b1a;
  display: block;
  float: right;
  margin-top: 25px;
}

.flexible-yellow-article-with-img article div a:hover {
  color: white;
  background-color: #1b1b1a;
}

main .flexible-headline h1.space-top,
main .flexible-headline h2.space-top,
main .flexible-headline h3.space-top {
  margin: 100px auto 0;
}

main .flexible-headline h1.space-bottom,
main .flexible-headline h2.space-bottom,
main .flexible-headline h3.space-bottom {
  margin: 0 auto 50px;
}

main .flexible-headline h1.space-top-and-bottom,
main .flexible-headline h2.space-top-and-bottom,
main .flexible-headline h3.space-top-and-bottom,
main .flexible-headline h4.space-top-and-bottom {
  margin: 100px auto;
}

.flexible-foto-galerie {
  margin-top: 100px;
  margin-bottom: 100px;
}

/* Photo Gallery Slider Styles */
.photo-gallery-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slider-container {
  position: relative;
  width: 100%;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.photo-gallery-slider .slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.photo-gallery-slider .slide.active {
  display: block;
  opacity: 1;
}

.photo-gallery-slider .slide figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.photo-gallery-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.slider-nav:hover {
  background-color: #f29719;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Dots Navigation */
.slider-dots {
  text-align: center;
  padding: 20px 0;
  background-color: white;
}

.slider-dots .dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.slider-dots .dot:hover,
.slider-dots .dot.active {
  background-color: #f29719;
  transform: scale(1.2);
}
@media screen and (max-width: 992px) {
	.flexible-article-on-image img {
  width: 100%;
	}}
/* Responsive Design for Slider */
@media screen and (max-width: 768px) {
  #leistungsuebersicht .wrap section article div {
    width: 100%;
  }
  #kontaktaufnahme .kontaktdaten {
    flex-direction: column;
    margin-bottom: 20px;
  }
  .flexible-two-articles .wrap {
    flex-wrap: wrap !important;
  }
  main .flexible-headline h1.space-top-and-bottom,
  main .flexible-headline h2.space-top-and-bottom,
  main .flexible-headline h3.space-top-and-bottom,
  main .flexible-headline h4.space-top-and-bottom {
    margin: 10px auto;
  }
  #aktuelles {
    margin-bottom: 40px;
  }
  #kontaktaufnahme {
    /* position: relative; */
    margin-top: 40px;
    padding-bottom: 40px;
  }
  #leistungsuebersicht {
    margin: 40px 0 !important;
  }
  .flexible-article-with-img {
    margin: 40px 0 !important;
  }
  .flexible-foto-galerie {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .flexible-foto-galerie:first-child {
    margin-top: 20px !important;
  }
  .kunden-branchen .wrap,
  .flexible-vorteile .wrap {
    margin-bottom: 40px;
  }
  .kunden-branchen .wrap section ul,
  .flexible-vorteile .wrap section ul {
    flex-direction: column;
  }
  .kunden-branchen .wrap section ul li,
  .flexible-vorteile .wrap section ul li {
    width: 100%;
  }
  .flexible-vorteile .wrap section ul li {
    margin-bottom: 15px !important;
  }
  .content-wrapper {
    flex-direction: column;
  }
  .content-wrapper article,
  .content-wrapper figure {
    width: 100% !important;
  }
  .flexible-yellow-article-with-img article div {
    width: 100%;
    padding: 10px;
  }
  .kunden-branchen .wrap article a,
  .flexible-vorteile .wrap article a {
    position: relative;
    max-width: fit-content;
  }

  main .flexible-headline h3.space-top {
    margin: 0 !important;
    margin-block: 40px !important;
    width: 100%;
  }
  .alles-aus-einer-hand {
    margin-inline: 10px;
  }
  #manufaktur-bwt {
    flex-direction: column;
  }
  #manufaktur-bwt video {
    width: 100%;
  }
  #leistungsuebersicht .wrap section article {
    flex-direction: column;
  }
  #leistungsuebersicht .wrap section article img {
    width: 100%;
    height: auto;
  }

  .photo-gallery-slider {
    margin: 0 10px;
  }
  main {
    margin-top: 30px;
  }
  .slider-wrapper {
    height: 300px;
  }

  .slider-nav {
    padding: 10px 15px;
    font-size: 18px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .slider-dots .dot {
    height: 12px;
    width: 12px;
    margin: 0 3px;
  }
}

@media screen and (max-width: 480px) {
  .slider-wrapper {
    height: 250px;
  }

  .slider-nav {
    padding: 8px 12px;
    font-size: 16px;
  }

  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }

  .slider-dots {
    padding: 15px 0;
  }

  .slider-dots .dot {
    height: 10px;
    width: 10px;
    margin: 0 2px;
  }
}

.flexible-foto-galerie .wrap {
  display: flex;
  justify-content: space-between;
}

.flexible-foto-galerie .wrap figure img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 100%;
  object-fit: cover;
}

.flexible-foto-galerie .wrap figure a {
  display: block;
  height: 100%;
}

.flexible-foto-galerie .fotogalerie-col-2 figure {
  width: 48%;
}

.flexible-foto-galerie .fotogalerie-col-3 figure {
  width: 30%;
}

.flexible-foto-galerie .fotogalerie-col-4 figure {
  width: 23%;
}

.flexible-article-with-img {
  margin: 100px 0;
}

.flexible-article-with-img .wrap {
  display: flex;
  justify-content: space-between;
/*   max-height: 450px; */
}

.flexible-article-with-img .wrap article {
  width: 30%;
}
.flexible-article-with-img .wrap figure {
  width: 70%;
}
.flexible-article-with-img .wrap figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flexible-article-with-img .wrap article {
  background-color: white;
  color: #434343;
  border-bottom: solid 10px #f29719;
}

.flexible-article-with-img .wrap article .wrapper {
  width: 90%;
  margin: 0 auto;
}

.flexible-technische-details {
  margin-bottom: 100px;
}

.flexible-technische-details .wrap {
  background-color: white;
  border-bottom: solid 10px #f29719;
}

.flexible-technische-details .wrap article .wrapper {
  width: 90%;
  margin: 0 auto;
  color: #434343;
  padding: 25px 0;
}

.flexible-technische-details .wrap #td-nav {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  border-bottom: solid thin #707070;
}

.flexible-technische-details .wrap #td-nav li {
  width: 20%;
  list-style-type: none;
  text-align: center;
  border-right: solid thin #707070;
  padding: 15px 0 5px;
  cursor: pointer;
  border-bottom: solid 10px white;
}

.flexible-technische-details .wrap #td-nav li:hover,
.flexible-technische-details .wrap #td-nav .active-btn {
  border-bottom: solid 10px #f29719;
}

.flexible-technische-details .wrap #td-nav li:first-of-type {
  color: white;
  background-color: #f29719;
  border-bottom: none;
  cursor: inherit;
}

.flexible-technische-details .wrap #td-nav li:last-of-type {
  border-right: none;
}

.non-active {
  display: none;
}

.col-2-td {
  display: flex;
}

.col-2-td div {
  margin-right: 50px;
}

.nivo-lightbox-theme-default .nivo-lightbox-title-wrap {
  bottom: 0 !important;
}

.nivo-lightbox-theme-default.nivo-lightbox-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
}

.nivo-lightbox-theme-default .nivo-lightbox-title {
  background: white !important;
  color: black !important;
}

.leistungen-flexible-inhalte .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.leistungen-flexible-inhalte .wrap figure {
  width: 30%;
  margin: 0 0 50px;
  overflow: hidden;
}

.leistungen-flexible-inhalte .wrap figure:hover p {
  color: white;
  background-color: #f29719;
}

.leistungen-flexible-inhalte .wrap figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.7s;
}

.leistungen-flexible-inhalte .wrap figure p {
  text-align: center;
  background-color: white;
  display: block;
  padding: 10px 0;
  width: 100%;
  border-bottom: solid 5px #f29719;
  position: relative;
  z-index: 99;
  margin: 0;
}

.leistungen-flexible-inhalte .wrap figure a {
  text-decoration: none;
  color: black;
}

.karriere-stellenangebote .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.karriere-stellenangebote .wrap article {
  width: 30%;
  overflow: hidden;
}

.karriere-stellenangebote .wrap article img {
  width: 100%;
  height: auto;
  display: block;
}

.karriere-stellenangebote .wrap article a {
  display: block;
  color: white;
  text-decoration: none;
  background-color: #f29719;
  text-align: center;
}

.karriere-stellenangebote .wrap article a p {
  padding: 10px 0;
  margin: 0;
  position: relative;
  z-index: 99;
}

.karriere-stellenangebote .wrap article a:hover {
  background-color: black;
}

.flexible-article-on-image a {
  text-decoration: none;
  color: #f29719;
}

.film-flexible-content .wrap {
  width: 1000px;
}

.ansprechpartner .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ansprechpartner .wrap figure {
  width: 30%;
  background-color: white;
  margin-bottom: 50px;
  border-bottom: solid 10px #f29719;
}

.ansprechpartner .wrap figure img {
  width: 100%;
  height: auto;
  display: block;
}

.ansprechpartner .wrap figure article {
  width: 90%;
  margin: 0 auto;
  padding: 10px 0;
}

.ansprechpartner .wrap figure article a {
  text-decoration: none;
  color: #f29719;
}

.google-maps {
  height: 400px;
}

.no-titelbild {
  margin: 0;
  padding-top: 250px;
  margin-bottom: 50px;
}

/* ============================
   RESPONSIVE MEDIA QUERIES
   ============================ */

/* Tablet Landscape - 1024px and below */
@media screen and (max-width: 1024px) {
  .wrap {
    width: 95%;
    padding: 0 20px;
  }
  .flexible-article-on-image {
    flex-direction: column;
  }
  header {
    height: auto;
    position: relative;
  }

  header #sub-bar figure img {
    width: 100px;
    padding: 10px 15px 0;
  }

  header #sub-bar .wrap nav ul li a {
    padding: 5px 10px;
    font-size: 14px;
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  header #sub-bar .wrap nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  header #sub-bar .wrap nav.mobile-nav-open {
    display: block;
  }

  #slider {
    padding-top: 0;
  }

  #slider .caption,
  #slider .caption-single {
    right: 5%;
    width: 96%;
    font-size: 28px;
  }

  #aktuelles .wrap {
    flex-wrap: wrap;
  }

  #aktuelles .wrap article {
    width: 48%;
    margin-bottom: 30px;
  }

  #manufaktur-bwt article {
    width: 500px;
    right: 5%;
  }

  #leistungsuebersicht .wrap {
    flex-wrap: wrap;
  }

  #leistungsuebersicht .wrap section {
    width: 100%;
    margin-bottom: 30px;
  }

  #leistungsuebersicht .wrap > article {
    width: 48%;
  }

  #karriere {
    flex-direction: column;
  }

  #karriere figure,
  #karriere section {
    width: 100%;
  }

  #kontaktaufnahme article {
    width: 500px;
    right: 5%;
  }

  .flexible-three-articles .wrap {
    flex-wrap: wrap;
  }

  .flexible-three-articles .wrap article {
    width: 48%;
    margin-bottom: 30px;
  }

  .flexible-article-with-img .wrap {
    flex-direction: column;
    max-height: unset;
  }

  .flexible-article-with-img .wrap article,
  .flexible-article-with-img .wrap figure {
    width: 100%;
  }

  .flexible-article-with-img .wrap article {
    margin-top: 20px;
  }

  .kunden-branchen .wrap,
  .flexible-vorteile .wrap {
    flex-direction: column;
  }

  .kunden-branchen .wrap article,
  .kunden-branchen .wrap section,
  .flexible-vorteile .wrap article,
  .flexible-vorteile .wrap section {
    width: 100%;
  }

  .kunden-branchen .wrap article,
  .flexible-vorteile .wrap article {
    margin-bottom: 30px;
  }

  .flexible-yellow-article-with-img {
    flex-direction: column;
  }

  .flexible-yellow-article-with-img article,
  .flexible-yellow-article-with-img figure {
    width: 100%;
  }

  .ansprechpartner .wrap figure {
    width: 48%;
  }

  .leistungen-flexible-inhalte .wrap figure {
    width: 48%;
  }

  .karriere-stellenangebote .wrap article {
    width: 48%;
    margin-bottom: 30px;
  }

  .flexible-foto-galerie .photo-gallery-slider {
    margin: 0 10px;
  }
}

/* Tablet Portrait - 768px and below */
@media screen and (max-width: 768px) {
  header #sub-bar .wrap nav ul li a:hover,
  header #sub-bar .wrap nav ul .current_page_item a,
  header #sub-bar .wrap nav ul li ul li:last-of-type a,
  .current_page_item > a,
  .current_page_ancestor > a {
    border-top: none;
    border-bottom: none;
  }
  .flexible-article-on-image img {
    object-position: center;
  }
  header #sub-bar .wrap nav ul li:last-of-type a {
    background-color: transparent;
    color: white;
    border-top: none;
    border-bottom: none;
  }

  header #sub-bar .wrap nav ul li:last-of-type a:hover {
    border-top: none;
    border-bottom: none;
    background-color: transparent;
  }

  .wrap {
    width: 100%;
    padding: 0 15px;
  }

  header {
    position: relative;
  }

  header #top-bar .wrap {
    flex-direction: column;
    text-align: center;
  }

  header #top-bar .wrap ul li {
    display: block;
    border-left: none;
    border-bottom: solid thin white;
    padding: 5px 0;
  }

  header #top-bar .wrap ul li:last-of-type {
    border-bottom: none;
  }

  header #sub-bar .wrap {
    flex-direction: column;
    text-align: center;
  }

  header #sub-bar .wrap nav {
    margin-top: 0;
    margin-bottom: 0;
  }

  header #sub-bar .wrap nav ul li {
    display: block;
    margin: 5px 0;
  }

  header #sub-bar .wrap nav ul li a {
    display: block;
    padding: 10px;
    border: none;
    margin: 2px 0;
  }

  header #sub-bar .wrap nav ul li:last-of-type a {
    background-color: #f29719;
    color: white;
  }

  header #sub-bar .wrap nav ul li ul {
    position: static;
    opacity: 1;
    visibility: visible;
    display: block;
    background-color: transparent;
  }

  header #sub-bar .wrap nav ul li ul li a {
    padding: 8px 20px;
    /* margin-left: 20px; */
    background-color: #f5f5f5;
  }

  header #sub-bar .wrap #searcharea {
    position: static;
    text-align: center;
    margin: 20px 0;
  }

  header #sub-bar .wrap #searcharea input {
    width: 200px;
  }

  #slider img {
    height: 300px;
  }

  #slider .caption,
  #slider .caption-single {
    position: static;
    margin: 20px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
  }

  #aktuelles .wrap article {
    width: 100%;
    margin-bottom: 20px;
  }

  #manufaktur-bwt article {
    position: static;
    width: 100%;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.9);
  }

  #leistungsuebersicht .wrap > article {
    width: 100%;
    margin-bottom: 20px;
  }

  #kontaktaufnahme article {
    position: static;
    width: 100%;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.9);
  }

  .flexible-two-articles .wrap article {
    width: 100%;
    margin-bottom: 20px;
  }

  .flexible-three-articles .wrap article {
    width: 100%;
    margin-bottom: 20px;
  }

  .alles-aus-einer-hand .wrap {
    flex-direction: column;
  }

  .alles-aus-einer-hand .wrap article {
    width: 100%;
    margin-bottom: 30px;
    padding-inline: 20px;
  }

  .alles-aus-einer-hand .wrap hr {
    display: none;
  }

  .flexible-foto-galerie .photo-gallery-slider {
    margin: 0 5px;
  }

  .flexible-foto-galerie .slider-wrapper {
    height: 250px;
  }

  .ansprechpartner .wrap figure {
    width: 100%;
  }

  .leistungen-flexible-inhalte .wrap figure {
    width: 100%;
  }

  .karriere-stellenangebote .wrap article {
    width: 100%;
  }

  #history-slider img {
    width: 80%;
  }

  #history-slider ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  #history-slider ul li {
    margin: 5px;
  }

  .flexible-article-on-image article {
    position: static;
    width: 100%;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.9);
  }

  .flexible-technische-details .wrap #td-nav {
    flex-wrap: wrap;
  }

  .flexible-technische-details .wrap #td-nav li {
    width: 50%;
    border-bottom: solid thin #707070;
  }

  .flexible-technische-details .wrap #td-nav li:first-of-type {
    width: 100%;
  }

  .col-2-td {
    flex-direction: column;
  }

  .col-2-td div {
    margin-right: 0;
    margin-bottom: 20px;
  }

  footer .wrap {
    flex-direction: column;
    text-align: center;
  }

  footer figure {
    margin: 0 0 20px 0;
  }

  footer article {
    margin-bottom: 20px;
  }
}

/* Mobile Landscape - 568px and below */
@media screen and (max-width: 568px) {
  .wrap {
    padding: 0 10px;
  }

  header #sub-bar figure img {
    width: 80px;
    padding: 8px 10px 0;
  }

  #slider img {
    height: 250px;
  }

  #slider .caption,
  #slider .caption-single {
    font-size: 18px;
    padding: 10px;
  }

  #slider .caption p {
    font-size: 18px;
    padding: 10px 15px;
  }

  .flexible-headline h1,
  .flexible-headline h2,
  .flexible-headline h3,
  .flexible-headline h4 {
    width: 80%;
    font-size: 16px;
    padding: 8px 0;
  }

  .flexible-headline h1 {
    font-size: 20px;
    padding: 12px 0;
  }

  #history-slider img {
    width: 100%;
  }

  #history-slider ul li {
    padding: 8px 15px;
    margin: 3px;
    font-size: 14px;
  }

  .flexible-technische-details .wrap #td-nav li {
    width: 100%;
    padding: 10px 0;
  }

  header #sub-bar .wrap #searcharea input {
    width: 150px;
  }
}

/* Mobile Portrait - 480px and below */
@media screen and (max-width: 480px) {
  .wrap {
    padding: 0 8px;
  }

  header #sub-bar figure img {
    width: 70px;
    padding: 5px 8px 0;
  }

  #slider img {
    height: 200px;
  }

  #slider .caption,
  #slider .caption-single {
    font-size: 16px;
    padding: 8px;
    margin: 10px;
  }

  #slider .caption p {
    font-size: 16px;
    padding: 8px 12px;
  }

  .flexible-headline h1,
  .flexible-headline h2,
  .flexible-headline h3,
  .flexible-headline h4 {
    width: 90%;
    font-size: 14px;
    padding: 6px 0;
  }

  .flexible-headline h1 {
    font-size: 18px;
    padding: 10px 0;
  }

  header #sub-bar .wrap #searcharea input {
    width: 120px;
    font-size: 14px;
  }

  #history-slider ul li {
    padding: 6px 10px;
    font-size: 12px;
  }

  .no-titelbild {
    padding-top: 150px;
  }
}

/* Very Small Mobile - 320px and below */
@media screen and (max-width: 320px) {
  .wrap {
    padding: 0 5px;
  }

  header #sub-bar figure img {
    width: 60px;
    padding: 5px;
  }

  #slider img {
    height: 180px;
  }

  #slider .caption,
  #slider .caption-single {
    font-size: 14px;
    padding: 6px;
    margin: 8px;
  }

  #slider .caption p {
    font-size: 14px;
    padding: 6px 10px;
  }

  .flexible-headline h1,
  .flexible-headline h2,
  .flexible-headline h3,
  .flexible-headline h4 {
    width: 95%;
    font-size: 12px;
    padding: 5px 0;
  }

  .flexible-headline h1 {
    font-size: 16px;
    padding: 8px 0;
  }

  header #sub-bar .wrap #searcharea input {
    width: 100px;
    font-size: 12px;
  }

  #history-slider ul li {
    padding: 5px 8px;
    font-size: 11px;
    margin: 2px;
  }
}

/* Fix for overflow and horizontal scroll on small screens */
@media screen and (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* Add viewport meta tag support */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Better responsive tables */
@media screen and (max-width: 768px) {
  #searcharea {
    display: none;
  }
  table {
    width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
}

/* Print styles */
@media print {
  header {
    position: static !important;
  }

  .mobile-nav-toggle {
    display: none !important;
  }

  #slider {
    padding-top: 0 !important;
  }

  body {
    background-color: white !important;
  }

  .wrap {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }
}

/* High DPI / Retina Display Support */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (min--moz-device-pixel-ratio: 2),
  only screen and (-o-min-device-pixel-ratio: 2/1),
  only screen and (min-device-pixel-ratio: 2),
  only screen and (min-resolution: 192dpi),
  only screen and (min-resolution: 2dppx) {
  /* High DPI optimizations can be added here */
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
