@import url(reset.css);
:root {
  /*sizes*/
  --base-margin: 1rem;
  --big-margin: 5rem;
  --huge-margin: 8rem;
  /*element-size*/
  --image-width: 40rem;
  --text-width: 60rem;
  /*font-sizes*/
  --small-font-size: 1.3rem;
  --base-font-size: 1.7rem;
  /*line-height*/
  --base-line-height: 2.2rem;
  --h1-line-height: 3.9rem;
  --h2-line-height: 2.6rem;
  /*colors*/
  --red: rgb(139, 34, 36);
  --grey: grey;
  --lightgrey: rgb(245, 245, 245);
}

html,
body {
  font-size: 62.5%;
  font-family: arial, sans-serif;
  font-weight: normal;
}

img {
  max-width: 100%;
}

body {
  margin: 0 auto;
  max-width: 100rem;
  box-sizing: border-box;
  padding: 0 var(--base-margin);
  background-color: var(--lightgrey);
}

main {
  margin: var(--big-margin) auto;
}

/* FONTS */

em {
  font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
}

h1 {
  font-size: 3rem;
  margin-bottom: var(--h1-line-height);
  color: var(--red);
}

h2 {
  font-size: 2.2rem;
  margin-bottom: var(--h2-line-height);
}

h4 {
  font-weight: bold;
  margin-top: calc(var(--base-line-height) * 1.5);
  margin-bottom: calc(var(--base-line-height) / 2);
}

h6,
li,
p {
  margin-bottom: calc(var(--base-line-height) / 2);
}

li {
  margin-left: var(--base-line-height);
}

li:before {
  content: "–";
  display: block;
  position: absolute;
  margin-left: calc(var(--base-line-height) * -1);
  margin-top: -0.2rem;
}

/* END FONTS*/

/* LINKS */

a:link,
a:visited {
  color: black;
  text-decoration: underline;
}

a:hover,
a:active {
  color: var(--red);
  text-decoration: underline;
}

nav a:link,
nav a:visited {
  color: black;
  text-decoration: none;
}

nav a:hover,
nav a:active {
  color: var(--red);
  text-decoration: underline;
}

nav a.active {
  color: var(--red);
}

/* END LINKS*/

/* HEADER */

.logo {
  max-width: 42rem;
  position: relative;
  margin-top: var(--base-margin);
}

/* END HEADER*/

/* TEMPLATE ACCORDION.PHP AKA STANDARD */

.introduction {
  max-width: var(--text-width);
}

/* END ACCORDION.PHP */

/* TEMPLATE NOACCORDION.PHP*/

.bodytext {
  max-width: var(--text-width);
  position: relative;
}

/* END NOACCORDION.PHP */

/* CONTACT TEMPLATE */

.contactimage {
  margin-bottom: var(--big-margin);
}

.bodytext.contact {
  margin-bottom: var(--huge-margin);
}

.bodytext.contact h4:first-of-type {
  margin-top: 0;
}

@media all and (min-width: 701px) {
  .contact--column {
    display: flex;
    flex-direction: row;
  }
  .contactimage {
    width: 350px;
    min-width: 350px;
    margin-right: var(--base-margin);
  }
  .contactimage img {
    width: 100%;
  }
}
@media all and (min-width: 1000px) {
  .contactimage {
    margin-right: 3rem;
  }
}

/* END CONTACT TEMPLATE*/

/* TEAM */

.section__person {
  margin-bottom: var(--huge-margin);
}

.person {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.person__quote {
  max-width: var(--image-width);
  border-left: 0.2rem solid var(--red);
  padding: 0 var(--base-margin) calc(var(--base-margin) / 2) var(--base-margin);
  margin-left: var(--base-margin);
}

.person__quote p {
  color: var(--red);
  margin-bottom: 0;
}

.person__image {
  max-width: var(--image-width);
}

.cv {
  margin-top: var(--base-margin);
}

.section__person .acc__button__text p {
  /* fix: type in accordion title is smaller but inherits line-height from p tag */
  margin-bottom: 0;
}

@media all and (max-width: 700px) {
  .person {
    flex-direction: column;
  }
  .person__quote {
    max-width: none;
    margin-top: var(--h2-line-height);
    margin-left: 0;
    padding: 0;
    border-left: none;
  }
  .cv h6 {
    font-weight: bold;
    margin-top: calc(var(--base-line-height) * 1.5);
  }
}

@media all and (min-width: 701px) {
  .cv .acc__content h6 {
    width: 13rem;
    margin-top: var(--base-line-height);
  }
  .cv .acc__content p {
    margin-left: 14.5rem;
    max-width: var(--text-width);
  }
  .cv .acc__content h6+p {
    margin-top: calc(calc(var(--base-line-height) * -1) - calc(var(--base-line-height) / 2));
  }
}

/* END TEAM */

/* FOOTER */

footer {
  padding: var(--base-margin) 0;
  border-top: 1px solid var(--grey);
}

footer p {
  font-size: var(--small-font-size);
}

footer p,
footer a:link,
footer a:visited {
  color: grey;
}

footer a:hover,
footer a:active {
  color: var(--red);
}

/* END FOOTER*/

/* GENERAL MEDIA QUERIES */

/* Medium MQ*/

@media all and (max-width: 900px) {
  html,
  body {
    font-size: 50%;
  }
}