﻿.startpage-head {
  width: 100%;
}

.startpage-head img {
  width: auto;
  display: block;
  margin: 0 calc(50% - 950px);
}
.startpage-head .startpage-headline {
  overflow: visible;
  width: 1230px;
  margin: auto;
  position: relative;
}
.startpage-head .startpage-headline h1 {
  overflow: visible;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0;
  font-size: 3.8rem;
  line-height: 4.7775rem;
  margin: 2rem 0;
}
.startpage-head .startpage-headline h1 span {
  line-height: 1.4em;
  display: inline-block;
  padding: 0 15px;
  margin-bottom: 5px;
  font-size: inherit;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
}

.startpage-head .startpage-headline h1.topleft {
  top: 0;
  left: 0;
  bottom: auto;
  right: auto;
  text-align: left;
}
.startpage-head .startpage-headline h1.bottomleft {
  top: auto;
  left: 0;
  bottom: 0;
  right: auto;
  text-align: left;
}
.startpage-head .startpage-headline h1.topright {
  top: 0;
  left: auto;
  bottom: auto;
  right: 0;
  text-align: right;
}

.startpage-head .startpage-headline h1.bottomright {
  top: auto;
  left: auto;
  bottom: 0;
  right: 0;
  text-align: right;
}

.startpage > .news-list .news-content h2 {
  margin-top: 70px;
}

.startpage .news-list .content p {
  color: var(--cws-deep-blue);
}

.startpage .news-list .news-content {
  padding: 0 0 8px 0;
}

.startpage .news-list p.date {
  font-weight: 400;
  font-size: 14px;
  color: var(--cws-deep-blue) !important;
  margin: 3px 0;
}

.pressrelease-brandimage img {
  position: relative;
  left: -4px;
}

.startpage .pressrelease-brandimage img {
  height: 30px;
}

.startpage .news-list .image-area {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  text-align: center;
  margin-bottom: 20px;
}
.startpage .news-list .image-area img {
  vertical-align: middle;
  position: relative;
  height: auto;
  width: 100%;
}

.startpage .news-list .list-item {
  width: 370px;
  display: inline-block;
  margin-left: 47px;
  vertical-align: top;
}
.startpage .news-list .list-item--first {
  margin-left: inherit;
}
.list-item:last-of-type {
  border-bottom: none;
}

.startpage .news-list .item-headline img,
.item-headline h3 {
  display: inline-block;
  vertical-align: middle;
  margin: 0.5rem 0 0;
}

.startpage .news-list .item-content {
  display: inline-block;
  width: 100%;
  padding: 0;
  vertical-align: top;
}

.startpage .news-list .news-list_archivelink {
  margin-top: 20px;
}

.startpage .news-list .Rssbutton {
  width: 40px;
  display: inline-block;
  position: absolute;
  right: 22px;
  margin: 0;
  top: 0;
}

/*----------Pageblocks-----------*/
.startpage-blocks > div {
  display: inline-block;
  vertical-align: top;
}
.startpage-blocks > div + div {
  margin-left: 30px;
}
.startpage-blocks > div .standardblock {
  margin: 0;
}

/*-----------------DEALER MAP---------------*/
.dealer-search {
  padding: 30px 0px;

  & > .content {
    padding: 30px 0px;
    margin-top: 30px;
    border-top: solid 1px var(--grey-e);

    @media (max-width: 1024px) {
      padding: 30px 20px;
    }
  }
}
.dealer-search h2 {
  margin-top: 0;
}
.dealer-search .content p {
  font-weight: 400;
  margin-bottom: 0;
}

.dealer-search form {
  padding-top: 15px;
  padding-bottom: 15px;
}

.dealer-search fieldset {
  margin-top: var(--gap-24);
}

.dealer-search h2,
.dealer-search p,
.dealer-search legend {
  color: var(--cws-deep-blue) !important;
}

.dealer-search legend {
  color: #ffffff;
  display: block;
  font-weight: 700;
  font-size: 1.25em;
  margin-bottom: 10px;
  padding: 10px 0 10px 0;
}
.dealer-search input[type="text"] {
  height: 48px;
  padding: 0 5px;
  width: 50%;
  background: rgb(255, 255, 255);
  border: none;
  border-bottom: 1px solid var(--cws-deep-blue);
  font: var(--font-text-regular);
}

.dealer-search input[type="text"]:hover {
  border-bottom: 1px solid var(--cws-green);
}

.dealer-search input[type="text"]:focus-visible {
  outline: var(--cws-green) solid 1.5px;
  text-decoration: none !important;
}

.dealer-search label {
  padding-right: 20px;
  color: var(--cws-deep-blue);
  font-weight: 400;
  font-size: 1.25em;
}

.dealer-search label:hover {
  cursor: pointer;
  color: var(--cws-green);
}

.dealer-search label[for="city"] {
  display: block;
  font-weight: 700;
  font-size: 1.25em;
  margin-bottom: 10px;
}

.dealer-search #city {
  width: 400px;
  font: var(--font-text-regular);
  font-size: var(--heading-3-size);
  color: var(--cws-deep-blue);
  border: none;
  border-bottom: 1px solid var(--cws-deep-blue);
  height: 48px;
  background: var(--white);
  padding: 5px;
}

.dealer-search #city:hover {
  border-bottom: 1px solid var(--cws-green);
}

.dealer-search input[type="submit"] {
  display: block;
  background-color: var(--button-background-color);
  padding: var(--gap-8) var(--gap-24);
  font-weight: 500;
  font-size: 21px;
  border: none;
  color: var(--button-color);
  margin-top: 40px;
  cursor: pointer;
  border-radius: var(--border-radius-s);
}
.dealer-search input[type="submit"]:hover {
  background-color: var(--button-background-hover-color);
  color: var(--button-hover-color);
  border-color: var(--button-background-hover-color);
  text-decoration: none;
  outline: none !important;
}

.dealer-search input[type="submit"]:focus-visible {
  outline-offset: var(--gap-4);
  outline: var(--cws-neon) solid 3px;
  text-decoration: none !important;
}

.dealer-search .establishment-select {
  line-height: 1.2em;
  display: inline-block;
  margin-bottom: 10px;
}

/*----------Custom checkboxes---------------*/

@media only screen and (max-width: 1024px) {
  .startpage .news-list .image-area {
    width: 15%;
  }

  .startpage .news-list > .content {
    padding: 0 20px;
  }

  .startpage-blocks > div {
    width: 32%;
  }

  .startpage-blocks > div + div {
    margin-left: 2%;
  }
  .startpage .news-list .list-item {
    margin-left: 1.5%;
    width: 31%;
  }
  .startpage .news-list .list-item--first {
    margin-left: 0;
    width: 31%;
  }

  .startpage .news-list .image-area {
    width: 100%;
  }
}
@media only screen and (max-width: 864px) {
  .startpage-head {
    height: 300px;
    overflow: hidden;
    position: relative;
  }
  .startpage-head img {
    height: 300px;
    width: auto;
    margin: 0 calc(50% - 678px);
  }

  .startpage-head .startpage-headline {
    width: 100%;
    position: absolute;
    top: 0;
  }

  .startpage-head .startpage-headline h1 {
    overflow: visible;
    position: absolute;
    font-size: 1.7em;
    width: 80%;
    padding: 5px 10px;
    bottom: 0;
    line-height: 1.3em;
  }

  .item-headline img,
  .item-headline h3 {
    font-size: var(--heading-3-size);
    line-height: 1.2em;
    display: inline;
  }

  .block-area {
    padding-top: 20px;
  }

  .startpage-blocks {
    padding: 30px 0;
  }

  .startpage-blocks > div {
    display: block;
    width: 100%;
  }

  .startpage-blocks > div + div {
    margin: 20px 0 0 0;
  }

  .startpage .news-list .list-item {
    padding: 20px;
    margin-left: 0;
  }

  .image-area {
    width: 25%;
  }

  .item-content {
    width: 70%;
    padding: 0 0 20px 3%;
  }

  .dealer-search .checkboxesBrand label {
    display: block;
    margin-bottom: 5px;
  }

  .dealer-search #city {
    font-size: var(--heading-4-size);
    width: 100%;
  }

  .dealer-search label {
    font-size: var(--heading-4-size);
  }

  .startpage .news-list .list-item {
    width: 100%;
    padding: 0;
  }

  .startpage .news-list .image-area {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 500px) {
  .image-area {
    width: 100%;
    margin: 0 0 20px 0;
  }
  .item-content {
    width: 100%;
    padding: 0;
  }

  .dealer-search .checkboxesBrand label {
    display: block;
    margin-bottom: 5px;
  }
}
