/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::after,
*::before {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/
body,
html {
  height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/*
  6. Improve media defaults
*/
canvas,
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
button,
input,
select,
textarea {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
h1,
h2,
h3,
h4,
h5,
h6,
p {
  overflow-wrap: break-word;
}

@media screen and (min-width: 960px) {
  html {
    overflow-y: scroll;
  }
}

body {
  background-image: url("images/bg-bricks.jpg");
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 16px;
  height: 100%;
}

#wrapper {
  background-color: #faf3eb;
  width: 1024px;
  max-width: 100%;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: stretch;
  margin: 0 auto;
  box-shadow: 0 0 50px 10px black;
}

header {
  background-image: url("images/roedremien-header.jpg");
  text-align: left;
  padding: 0.5em;
  font-weight: bold;
  background-size: cover;
  background-position-y: -100px;
}

@media all and (max-width: 720px) and (min-width: 400px) {
  header {
    background-position-y: -90px;
  }
}

@media all and (max-width: 399px) and (min-width: 300px) {
  header {
    background-position-y: -50px;
  }
}

@media all and (max-width: 299px) {
  header {
    background-position-y: 0;
  }
}

@media all and (max-width: 380px) {
  header {
    font-size: 4.5vw;
  }
}

header h1 {
  color: #ffeb3a;
  text-shadow: 1px 1px 1px black, 0 0 0.5em black, 0 0 0.5em #4a2b1b, 0 0 0.5em #795548;
  font-size: 4em;
  line-height: 1.2em;
}

header em {
  font-size: 0.85em;
  color: #ffffff;
  /* display: block; */
  /* text-shadow: 2px 2px 2px white, -2px 2px 2px white, 2px -2px 2px white, -2px -2px 2px white; */
  /* font-weight: normal; */
  padding: 0.2em 0.75rem;
  margin: 0;
  background-color: #000000;
  line-height: 1;
  /* text-shadow: 1px 1px 1px black, 0 0 1em black; */
  /* font-style: normal; */
}

header a {
  text-decoration: none;
}

header img {
  border: none;
}

nav {
  background: #505050;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media all and (max-width: 380px) {
  nav {
    font-size: 4vw;
  }
}

nav a,
nav a:active,
nav a:link,
nav a:visited {
  color: white;
  display: inline-block;
  padding: 0.5em 1.5em;
  text-decoration: none;
  display: flex;
  /* background-color: #a39d98; */
  flex-direction: column;
  justify-content: center;
  /* flex: 1; */
  font-weight: bold;
  letter-spacing: 0.05em;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  text-align: center;
}

nav a:hover,
nav a:active:hover,
nav a:link:hover,
nav a:visited:hover {
  color: white;
  background: #607c8a !important;
}

nav a.active, nav a:active,
nav a:active.active,
nav a:active:active,
nav a:link.active,
nav a:link:active,
nav a:visited.active,
nav a:visited:active {
  color: white;
  background: #396b84;
}

main {
  padding: 1em;
  flex-grow: 1;
}

main img {
  border: 8px solid #ededed;
  box-shadow: 0 10px 20px -5px dimgrey;
  border-radius: 5px;
  margin-bottom: 20px;
}

main img.left {
  box-shadow: -5px 10px 20px -5px dimgrey;
}

main img.right {
  box-shadow: 5px 10px 20px -5px dimgrey;
}

main h2 {
  line-height: 1em;
  margin-bottom: 0.75em;
}

@media all and (min-width: 720px) {
  main h2 {
    font-size: 4em;
  }
}

main h2,
main h3 {
  text-shadow: 2px 2px 4px #c4c3bc;
}

main p {
  font-family: serif;
  hyphens: auto;
}

main p::first-letter {
  font-weight: bold;
}

main p em,
main p strong {
  hyphens: none;
}

h3 {
  margin-bottom: 1em;
}

.cols {
  text-align: justify;
}

.cols h3 {
  margin-bottom: 0.25em;
}

@media all and (min-width: 720px) {
  .cols {
    columns: 2;
    column-gap: 3em;
    column-rule: 4px double #a39d98;
  }
}

p {
  margin-bottom: calc(1.5em + 7px);
}

footer {
  font-size: 0.8em;
  /* font-style: italic; */
  /* font-variant: small-caps; */
  text-align: center;
  padding: 0.25em;
  color: #7c7c7c;
}

footer a,
footer a:active,
footer a:link,
footer a:visited {
  color: #075f82;
  text-decoration: none;
}

footer a:hover,
footer a:active:hover,
footer a:link:hover,
footer a:visited:hover {
  color: #af5001;
}

#statistiken {
  text-align: center;
}

#statistiken section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  margin-right: -1rem;
  margin-left: -1rem;
}

#statistiken section h3 {
  font-size: 2.5em;
  margin-bottom: 1.75rem;
}

#statistiken section:nth-of-type(odd) {
  background-color: #fefefe;
}

.statistics {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.statistics .statistic {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-flex: 0;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin: 0 1.5em 1em;
  max-width: auto;
  color: #5c5c5c;
}

.statistics .statistic .unit {
  font-size: 1.25rem !important;
  text-transform: none;
  line-height: 1rem;
  font-weight: normal;
}

.statistics .statistic .value {
  font-size: 2rem !important;
  font-weight: 400;
  line-height: 1em;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
}

.statistics .statistic .value ~ .label {
  margin-top: 0;
}

.statistics .statistic .label {
  font-size: 0.75em;
  color: rgba(0, 0, 0, 0.87);
  text-align: center;
}

.menlink {
  border: 2px;
  float: left;
}

.left {
  margin-right: 0.5em;
  float: left;
}

@media all and (min-width: 600px) {
  .left {
    margin-right: 1.5em;
  }
}

.right {
  margin-left: 0.5em;
  float: right;
}

@media all and (min-width: 600px) {
  .right {
    margin-left: 1.5em;
  }
}

@media all and (min-width: 600px) {
  .rrrrr {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

.rrrrr h2 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.rrrrr h2 span:nth-of-type(1),
.rrrrr h2 span:nth-of-type(5) {
  font-size: 1em;
}

.rrrrr h2 span:nth-of-type(2),
.rrrrr h2 span:nth-of-type(4) {
  font-size: 1.5em;
}

.rrrrr h2 span:nth-of-type(3) {
  font-size: 2em;
}

.rrrrr .rrrrr2 {
  font-style: italic;
  text-align: center;
  display: block;
  font-size: 1.5rem;
}

.rrrrr section {
  font-size: 1.15rem;
}

.rrrrr section em {
  font-weight: bold;
}

.rrrrr p {
  margin-bottom: 1.0rem;
  margin-top: 0.25rem;
}

.rrrrr h3 {
  margin-bottom: 0.25rem;
  margin-top: 1.2rem;
  font-size: 1.5rem;
}

.rrrrr h4 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.rrrrr h5 {
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.rrrrr ol {
  margin-bottom: 1rem;
}
