:root {
  --layout-width-max: 940px;
  --hero-height: 450px;

  --color-phsyio: #4db8a5;
  --color-mental: #8cb025;
  --color-athletics: #0267ab;
  --color-gray: #b2b2b2;

  --color-primary: var(--color-phsyio);
}

.icon-wrapper {
  height: 1em;
  aspect-ratio: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.icon-wrapper .icon {
  height: 100%;
}

a {
  color: inherit;
}

p {
  line-height: 1.5em;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;

  font-family: Arial, Helvetica, sans-serif;
  background-color: white;
  padding: 0;
  margin: 0;
}

header {
  position: fixed;
  width: 100%;
  max-width: var(--layout-width-max);
  z-index: 999;
}

#banner {
  width: 100%;
  margin-top: -10px;
  display: grid;
  grid-template-columns: min-content auto min-content;
  grid-template-rows: 40px 20px 20px auto;
  /* grid-template-rows: 50px 30px 30px auto; */
  font-size: .8em;
}

#banner .ribbon {
    height: 90px;
    margin-top: 16px;
}

.banner-white {
  background-color: rgba(255, 255, 255, .8);
  grid-row-start: 1;
  grid-row-end: 3;
  grid-column-start: 1;
  grid-column-end: 4;
}

.banner-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.banner-logos .banner-logo-container {
  /* margin-top: .5em; */
  box-sizing: border-box;
}

.banner-logos .banner-logo-container img {
  height: 20px;
  margin-right: 10px;
  margin-top: 8px;
}

.banner-contacts {
  visibility: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: .7em;
  padding-top: 12px;
  overflow-x: hidden;
}

.banner-contact {
  display: grid;
  grid-template-columns: 32px auto;
  grid-template-rows: 12px 20px;
}

.banner-contact .banner-contact-icon {
  grid-row-start: 1;
  grid-row-end: 3;
  grid-column: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.banner-contact .banner-contact-icon .icon-wrapper {
  height: 1.5em;
}

.banner-contact .banner-contact-type {
  grid-row: 1;
  grid-column: 2;
  font-weight: lighter;
  font-size: .8em;
  white-space: nowrap;
}

.banner-contact .banner-contact-content {
  grid-row: 2;
  grid-column: 2;
  font-weight: bold;
  font-size: 1.2em;
  white-space: nowrap;
}

#hero {
  width: 100%;
  max-width: var(--layout-width-max);
  margin-top: 50px;
  background-color: var(--color-primary);

  display: grid;
  grid-template-rows: 240px auto;
}

.hero-image {
  background-image: url(images/hero.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-person {
  grid-row: 2;
  margin-top: -110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.hero-person img {
  height: 150px;
}

.hero-person-name {
  font-weight: bold; 
  line-height: 1.4em;
  margin-bottom: 0;
}

.hero-person-title {
  margin-top: 0;
  font-size: .9em;
  line-height: 1.4em;
}

.hero-person-quote {
  font-style: italic;
}

body > main {
  display: flex;
  padding: 4px;
  box-sizing: border-box;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--layout-width-max);
}

body > main section {
  margin: 4px;
  border-radius: 4px;
  box-shadow: 0 0 4px var(--color-gray);
}

body > main section main {
  padding: 16px;
  box-sizing: border-box;
}

main section .header {
  width: 100%;
  height: 350px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

body > main section p:first-of-type {
  margin-top: .5em;
}

main.page-index section main p {
  text-align: justify;
}


footer {
  width: 100%;
  max-width: var(--layout-width-max);
  background-color: white;

  border-radius: 4px 4px 0 0 ;
  box-shadow: 0 0 4px var(--color-gray);
  padding: 8px 24px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 5em;
}

footer h2 {
  font-size: 1.2em;
  color: var(--color-gray);
}

footer ul,
footer li {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer > img {
  margin-right: 16px;
  margin-top: .83em;
  display: none;
}

footer section ul li .icon-wrapper {
  height: 1em;
}

footer section ul li .icon-wrapper .icon {
  height: 1em;
}

footer section ul li {
  display: flex;
  gap: .8em;
  margin-top: 1.5em;
}

footer section ul li span {
  line-height: 1.2em;
}

#page-impressum {
  flex-direction: column;
}

#page-impressum section {
  padding: 0 16px;
}

@media(min-width: 600px) {
  #banner {
    grid-template-rows: 50px 30px 30px auto;
    margin-top: 0;
  }

  #banner .ribbon {
    height: 130px;
  }

  .banner-logos .banner-logo-container img {
    height: 30px;
    margin-right: 18px;
    margin-top: 8px;
  }


  #hero {
    margin-top: 80px;
    height: var(--hero-height);
    grid-template-rows: unset;
    grid-template-columns: auto 300px;
  }

  .hero-person {
    grid-row: unset;
    grid-column: 2;
    padding-top: 50px;
    margin-top: unset;
  }

  .hero-person img {
    height: unset;
    width: 80%;
  }

  .banner-contacts {
    visibility: visible;
  }

  footer {
    flex-direction: row;
  }

  footer > img {
    display: block;
  }
}