/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  --primary-color: #858c1d; /* #a8c813; */
  --primary-dark: #4b5b00;
  --text-color: #1d1d1b;

  color: #1d1d1b;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #d7fa5d;
  text-shadow: none;
}

::selection {
  background: #d7fa5d;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* -------------- */

body {
  display: grid;
  grid-template-areas:
    "header-top"
    "header-middle"
    "header-bottom"
    "main"
    "footer"
    "imprint";
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto auto auto;
  max-width: 75rem;
  min-height: 100%;
  margin: 0 auto;
  padding: 1rem;
  font-family: Lato, Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

b, strong {
  font-weight: 700;
}

abbr {
  text-decoration: none;
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.area-header-top { grid-area: header-top; }
.area-header-middle { grid-area: header-middle; }
.area-header-bottom { grid-area: header-bottom; }
.area-main { grid-area: main; }
.area-footer { grid-area: footer; }

.area-header-bottom {
  margin-bottom: auto;
}

header,
main {
  display: contents;
}

.header-top svg {
  width: 100%;
  height: auto;
}

.header-claim {
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.header-claim h2 {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 1em;
}

.icon-row h2,
.icon-row p {
  margin: 0;
}

.icon-row svg {
  --size: 2rem;
  display: none;
  flex: 0 0 var(--size);
  width: var(--size);
  height: var(--size);
  color: var(--primary-color);
}

aside h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 2.2rem;
  line-height: 1.25;
}

aside h3::first-line {
  color: var(--text-color);
}

aside h3::after {
  content: '';
  display: block;
  width: 2ch;
  height: 2px;
  margin: 0.75em 0;
  background-color: var(--primary-color);
}

aside strong {
  display: block;
  margin: 1.25em 0 1rem 0;
  font-size: 1.25rem;
}

main {
  grid-area: main;
}

main address {
  font-style: normal;
}

main address a {
  display: flex;
  gap: 0.5em;
  align-items: center;
  margin-bottom: 1.5em;
  color: inherit;
  text-decoration: none;
}

main address a + a {
  margin-top: -1.5em;
}

main address a:hover,
main address a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

main address a svg {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
}

.area-main {
  overflow: auto;
  margin: 2em 0;
  scroll-snap-type: x mandatory;
}

main ul {
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
  list-style: none;
}

main li,
main figure,
main img {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
}

main li {
  min-width: 75vw;
  scroll-snap-align: start;
}

main li:last-child {
  scroll-snap-align: end;
}

main figure {
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.025);
  border-radius: 4px;
}

main figcaption {
  display: block;
  margin: 0.5em;
  padding: 0 0 0 0.5em;
  border-left: 3px solid var(--primary-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
}

main img {
  width: 100%;
  height: auto;
}

footer {
  grid-area: imprint;
  margin-top: 2em;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 60em) {
  /* Style adjustments for viewports that meet the condition */
  body {
    grid-template-areas:
      "header-top header-top main"
      "header-middle header-middle main"
      "header-bottom header-bottom main"
      ". . main"
      "imprint footer footer";
    grid-template-columns: 11rem 9rem 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 1em 2em;
  }

  .header-claim {
    flex-direction: row;
    margin-left: auto;
    padding: 1em;
    background-color: rgba(0, 0, 0, 0.025);
    border-radius: 4px;
  }

  .header-claim .icon-row {
    margin-left: auto;
    padding: 0 1em;
  }

  .header-claim .icon-row + .icon-row {
    flex: 0 0 18rem;
    text-wrap: balance;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
  }

  .icon-row svg {
    --size: 4rem;
    display: block;
  }

  .area-main {
    margin: 0;
  }

  main ul {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  main li {
    min-width: 0;
  }

  footer {
    align-self: end;
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 4px;
    opacity: 0.5;
    text-align: center;
  }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



