:root {
  --td-blue: #053D6A;
  --td-blue-dark: #043257;
  --td-blue-darker: #032948;
  --td-green: #009488;
  --td-green-dark: #008075;
  --td-green-darker: #007067;
}

.row .col-md-6:has(.col-image):has(+ .col-md-6 .col-text) .col-image {
  aspect-ratio: 2;
}
.row .col-md-6:has(.col-image):has(+ .col-md-6 .col-text) img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}
.row .col-md-6:has(.col-image) + .col-md-6:has(.col-text) {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.row .col-md-6:has(.col-image) + .col-md-6:has(.col-text) .col-text {
  margin-bottom: 0;
}

:root {
  --tammerdiesel-blue: #053D6A;
}

a {
  /* jee */
  color: #0860a7;
}

.grey-bg h2 + p, .grey-bg h2 + p ~ p, .grey-bg h3 + p, .grey-bg h3 + p ~ p, .grey-bg h4 + p, .grey-bg h4 + p ~ p, .grey-bg h5 + p, .grey-bg h5 + p ~ p, .grey-bg h6 + p, .grey-bg h6 + p ~ p {
  font-weight: 400;
  margin-bottom: 1.5em;
}
@media (min-width: 768px) {
  .grey-bg h2 + p, .grey-bg h2 + p ~ p, .grey-bg h3 + p, .grey-bg h3 + p ~ p, .grey-bg h4 + p, .grey-bg h4 + p ~ p, .grey-bg h5 + p, .grey-bg h5 + p ~ p, .grey-bg h6 + p, .grey-bg h6 + p ~ p {
    font-size: 1.2rem;
  }
}
.grey-bg h2 + p + h2, .grey-bg h2 + p + h3, .grey-bg h2 + p + h4, .grey-bg h2 + p + h5, .grey-bg h2 + p + h6, .grey-bg h3 + p + h2, .grey-bg h3 + p + h3, .grey-bg h3 + p + h4, .grey-bg h3 + p + h5, .grey-bg h3 + p + h6, .grey-bg h4 + p + h2, .grey-bg h4 + p + h3, .grey-bg h4 + p + h4, .grey-bg h4 + p + h5, .grey-bg h4 + p + h6, .grey-bg h5 + p + h2, .grey-bg h5 + p + h3, .grey-bg h5 + p + h4, .grey-bg h5 + p + h5, .grey-bg h5 + p + h6, .grey-bg h6 + p + h2, .grey-bg h6 + p + h3, .grey-bg h6 + p + h4, .grey-bg h6 + p + h5, .grey-bg h6 + p + h6 {
  margin-top: 1.5em;
}

@media (max-width: 767px) {
  .searchwrap {
    margin-right: 0.75em;
  }
}

.col-content_highlights.big-highlights .content-highlight-container .content-highlight-inner {
  top: 50%;
  transform: translateY(-50%);
}

.content.contact-container .person-info ul li a:hover {
  color: inherit;
  text-decoration: underline;
}

.boxed-content p:has(> img:only-child) {
  float: left;
  width: auto;
}
.boxed-content p:has(> img:only-child):has(+ p > img:only-child) + p {
  float: left;
  width: auto;
}

.galleria {
  display: flex;
}
.galleria .kuva {
  display: flex;
  align-items: center;
  margin: 5px;
}

.home .banner-container .owl-carousel {
  min-height: 100vh;
}

a:has(.btn-custom) {
  display: inline-block;
  margin-bottom: 1em;
}

.banner-container:not(:has(+ .static-content)) .owl-carousel {
  overflow: hidden;
  padding-bottom: 45vh !important;
}
@media (max-width: 768px) {
  .banner-container:not(:has(+ .static-content)) .owl-carousel {
    padding-bottom: 60vh !important;
  }
}
.banner-container:not(:has(+ .static-content)) .owl-carousel .carousel-caption {
  top: unset !important;
}
.banner-container:not(:has(+ .static-content)) .owl-carousel .owl-stage-outer {
  padding-bottom: 45vh !important;
}

.banner-container:has(+ .static-content) .owl-carousel {
  aspect-ratio: 2;
  height: auto !important;
  padding-bottom: unset !important;
}

.owl-carousel, .owl-stage-outer, .owl-item {
  max-height: 100vh;
}

@media (min-width: 361px) and (max-width: 767px) {
  .wrapper .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 1201px) {
  #quadmenu .quadmenu-navbar-brand img {
    height: 26px !important;
  }
}
@media (min-width: 992px) and (max-width: 1200px) {
  #quadmenu .quadmenu-navbar-brand img {
    height: 20px !important;
  }
  #quadmenu .quadmenu-navbar-nav > li > a {
    font-size: 12px !important;
  }
  #quadmenu .quadmenu-navbar-nav > li > a .quadmenu-item-content {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.banner-container {
  background-color: var(--tammerdiesel-blue);
}
.banner-container .owl-carousel {
  opacity: 1 !important;
}
.banner-container .owl-carousel .owl-carousel-item .carousel-caption {
  transition: opacity 250ms ease-in;
  opacity: 0;
}
@media (min-width: 768px) {
  .banner-container .owl-carousel .owl-carousel-item .carousel-caption h1, .banner-container .owl-carousel .owl-carousel-item .carousel-caption h2 {
    font-size: clamp(30px, 4.5em, 42px);
  }
}
@media (max-width: 767px) {
  .banner-container .owl-carousel .owl-carousel-item .carousel-caption {
    width: 100%;
    padding-right: 1.5em;
    padding-left: 1.5em;
    right: 0 !important;
    left: 0 !important;
    text-align: center;
    top: 150px;
  }
}
.banner-container .owl-carousel.owl-loaded .owl-carousel-item .carousel-caption {
  opacity: 1;
}
.banner-container .owl-item {
  background-color: var(--tammerdiesel-blue);
}
.banner-container + .static-content {
  height: 100vh;
  max-height: 100%;
  display: flex;
  top: 0 !important;
  bottom: unset !important;
  flex-direction: column;
  justify-content: center;
  right: 5% !important;
  left: calc(57% + 30px) !important;
}
@media (min-width: 768px) and (max-width: 1400px) {
  .banner-container + .static-content {
    padding-top: 75px;
  }
}
@media (max-width: 767px) {
  .banner-container + .static-content {
    width: 100% !important;
    right: 0 !important;
    left: 0 !important;
    padding-top: 250px;
  }
  .banner-container + .static-content .list-unstyled li a {
    font-size: 14px !important;
  }
}
.banner-container + .static-content .row:has(.list-unstyled) {
  justify-content: flex-end;
}

.contact-container h2 {
  font-size: clamp(1.5rem, 5vw, 48px);
}

.col-text:has(iframe) {
  padding: 2em;
  border: 1px solid #eee;
}

.col-persons_highlights > .row {
  justify-content: center;
}
@media (max-width: 575px) {
  .col-persons_highlights .person-highlight {
    width: 300px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 2026 */
.person-info:has(a[href^="https://"]) p, .person-info:has(a[href^="https://"]) ul {
  margin-bottom: 0.25em;
}

/* contacts */
.td-footer-contacts {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1em;
  margin-top: 1em;
}
.td-footer-contacts .td-footer-contact {
  padding: 1em;
  font-size: 1rem;
}
.td-footer-contacts .td-footer-contact h3 {
  font-size: inherit;
}
.td-footer-contacts .td-footer-contact a > span {
  display: inline-block;
}
@media (max-width: 1200px) {
  .td-footer-contacts .td-footer-contact {
    width: 50%;
  }
}
@media (max-width: 767px) {
  .td-footer-contacts .td-footer-contact {
    font-size: 15px;
    width: 100%;
  }
}
.td-footer-contacts .td-footer-contact .hours {
  padding-bottom: 0.25em;
  margin-bottom: 0.25em;
}
.td-footer-contacts .td-footer-contact .hours ~ * a {
  font-size: 0.9em;
}
.td-footer-contacts .td-footer-contact a .fa {
  width: 1.25em;
  text-align: center;
  margin-right: 0.25em;
}
@media (max-width: 1200px) {
  .td-footer-contacts .td-footer-contact:after {
    content: " ";
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    display: block;
    margin: 2em 0 0;
  }
}
@media (min-width: 768px) {
  .td-footer-contacts .td-footer-contact:nth-child(n+3):after {
    display: none;
  }
}

/* misc */
body:has(> .wrapper .col-image > img[src*=Boschcarservice]) > .wrapper .col-image > img[src*=Boschcarservice] {
  display: none;
}

body:has(> .wrapper .col-image > img[src*=Boschcarservice]) .carousel-caption h1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

body:has(> .wrapper .col-image > img[src*=Boschcarservice]) .carousel-caption h1:before {
  content: " ";
  background-image: url(/wp-content/uploads/2020/02/Boschcarservice.png);
  width: 100px;
  height: 100px;
  min-width: 50px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  margin-right: 1em;
}

@media (max-width: 767px) {
  body:has(> .wrapper .col-image > img[src*=Boschcarservice]) .carousel-caption h1 {
    font-size: 2rem;
    flex-direction: column;
  }
  body:has(> .wrapper .col-image > img[src*=Boschcarservice]) .carousel-caption h1:before {
    margin-right: 0 !important;
    margin-bottom: 1em;
    width: 75px;
    height: 75px;
  }
}
/* footer 4 cols */
.td-footer-cols {
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  margin: 1em -1em 0;
}
.td-footer-cols.visible-4 .td-footer-col {
  padding: 0 1em;
  margin-bottom: 1em;
  width: 20%;
}
.td-footer-cols.visible-4 .td-footer-col h3 {
  font-size: 1.25rem;
}
.td-footer-cols.visible-4 .td-footer-col:nth-child(1) {
  width: 40%;
}
.td-footer-cols.visible-4 .td-footer-col:nth-child(n+2) {
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}
@media (max-width: 900px) {
  .td-footer-cols.visible-4 .td-footer-col {
    width: 33.3333333333%;
  }
  .td-footer-cols.visible-4 .td-footer-col:nth-child(1) {
    width: 100%;
    margin-bottom: 2em;
  }
}
@media (max-width: 767px) {
  .td-footer-cols.visible-4 .td-footer-col {
    margin-bottom: 0;
    padding: 1em;
    width: 100%;
    border-left: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    font-size: 1rem;
  }
}

.td-footer-col-links a {
  display: block;
}
.td-footer-col-links a.top {
  font-weight: bold;
}
.td-footer-col-links a.sub {
  padding-left: 1em;
}
.td-footer-col-links a.sub + .top {
  margin-top: 1em;
}

/* carousel */
.carousel-caption .subtitle {
  font-size: 1.2rem;
}