:root {
  --color-blue: rgb(18, 118, 175);
  --color-black: rgb(61, 60, 60);
  --color-acc: #f35533;
}

body {
  display: grid;
  /* align-items: center; */
  height: 100vh;
  grid-template-rows: auto 1fr auto;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 300;
  margin: 0;
}

p {
  line-height: 1.4rem;
}

.main-cont {
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.header-image {
  background-image: url(/img/products/luftgekuehlter-roststab-08.jpeg); 
  background-size: cover; 
  background-position: center; 
  height: fit-content;
}

@media (max-width: 512px) {
  .header-image {
    background-size: auto; 
    background-position: top; 
  }  
}

header {
  font-family: "GoodTimesW00-Bold";
  font-family: "Be Vietnam Pro", sans-serif;
}

header a,
header a:visited {
  text-decoration: none;
}

.star-font {
  font-family: "GoodTimesW00-Bold";
}

.logo {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  max-width: 310px;
}

main {
  /* background-color: aliceblue;     */
  margin: 1rem 0;
}

footer {
  width: 100%;
  background-color: var(--color-black);
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

footer>div {
  max-width: 1100px;
  width: 70%;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: white;
  border-top: 1px solid var(--color-black);
}

footer hr {
  border: 0;
  border-top: 1px solid gray;
}

img {
  display: block;
  max-width: 100%;
}

main img {
  width: 100%;
}

h1 {
  margin-bottom: 0.4rem;
}

h2 {
  margin: 2rem 0;
}

a {
  color: inherit;
}

a:hover {
  color: var(--color-acc);
}

.bar {
  background-color: var(--color-blue);
  color: white;
  padding: 0.1rem;
  padding-right: 10px;
  height: 0.7rem;
  position: relative;
  width: 66%;
}

/* 
.bar:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 1.2rem solid white;
  border-right: 1.2rem solid var(--color-blue);
  width: 0;
} */

.bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 0.9rem solid white;
  border-left: 0.9rem solid var(--color-blue);
  width: 0;
}


/* shortcodes */
.team {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  justify-content: space-around;
}

.team .caption {
  margin-top: 0.5rem;
  gap: 1rem;
  display: flex;
}

.team .blue {
  width: 1rem;
  background-color: var(--color-blue);
}

.team .name {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-blue);
}

.team .position {
  font-size: 0.9;
  color: gray;
}

.team img {
  max-height: 15rem;
  object-fit: cover;
  /* width: 50px;
  height: 100px; */
}

.team.group img {
  max-height: 20rem;
  object-fit: cover;
  object-position: top;
}

.team.group > div {
  flex-grow: 1;
}

.kontakt {
  padding: 0.5rem 0;
  display: grid;
  grid-template-areas: "icon . ." "icon a1 a2" "icon b1 b2" "icon . .";
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 512px) {
  .kontakt {
    grid-template-areas: "a1 a2" "b1 b2" "icon icon";
  }
}


.kontakt .icon {
  grid-area: icon;
}
.kontakt .icon img {
  height: 4rem;
}

/* cards  */

.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.cards .card {
  display: grid;
  grid-template-areas:
  " icon title "
  " . body";
  column-gap: 1rem;
  grid-template-columns: 90px auto;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .cards .card {
    grid-template-columns: 70px auto;
  }
}

.card .icon {
  align-self: center;
  grid-area: icon;
}

.card .title {
  grid-area: title;
  align-self: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-blue);
}

.card .body {
  grid-area: body;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(1, 1fr);
}

.img-grid>div:hover {
  filter: drop-shadow(0px 0px 4px black);
  transition: all 100ms;

}

.img-grid .caption {
  display: none;
  position: absolute;
  background-color: var(--color-acc);
  color: white;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 0.9rem;
  padding: 3px;
}

.img-grid>div:hover .caption {
  display: block;
}

@media (max-width: 768px) {
  .img-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.standorte {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: gray;
  margin-top: 6rem;
  margin-bottom: 4rem;
}

.standorte>div {
  text-align: center;
}

@media (max-width: 768px) {
  .standorte {
    flex-direction: column;
    gap: 2rem;
  }
}

a.download:before {
  content: url('/img/pdf.png');
}

.blue {
  color: var(--color-blue);
}

.center {
  text-align: center;
}

div.banner {
  height: 12rem;
  position: relative;
  background-size: cover;
  background-position: center;
}