/*! 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.
 */

/* ==========================================================================
   Custom CSS reset
   ========================================================================== */

/*
 * Josh's Custom CSS Reset
 * https://www.joshwcomeau.com/css/custom-css-reset/
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

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

:root {
  --color-green: #6bc0a780;
  --color-grey: #b3b2c080;
  --color-yellow: #fdeaaf80;
  --color-orange: #f9b56b80;
  --color-red: #d3584780;

  --color-link-hover: #6c2d24;
  --color-link: #000;

  --size-logo: 14rem; /* 224px */
  --size-logo-sm: 20rem; /* 320px */
  --size-logo-md: 25rem; /* 400px */
}

/*
 * https://baseline.is/tools/type-scale-generator/ 1.250 - Major Third
 */

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.15;
}

h2 {
  font-size: 1.56em;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.25em;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.125em; /* 18px */
}

.p-s {
  font-size: 0.9em;
}

.p-m {
  font-size: 1em;
}

.text-caption {
  font-size: 0.8em;
}

small {
  font-size: 0.64rem;
}

a {
  color: var(--color-link);
}

a:visited {
  color: var(--color-link);
}

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

a.active {
  color: var(--color-link-hover);
  text-decoration: none;
  cursor: default;
}

a.thumb {
  padding: 0.5rem 0;
  display: inline-flex;
}

ul {
  padding-left: 1rem;
}

body {
  font-family: sans-serif;
}

header .logo {
  margin: 0 auto;
}

.logo {
  display: block;
  max-width: var(--size-logo);
}

section {
  word-break: break-word;
}

section ul li {
  margin: 0.5rem 0;
}

/*
 * Slider
 */

.splide__slide {
  justify-content: center;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem;
  border-radius: 1.5rem; /* 24px */

  &::before {
    content: "„";
    font-size: 3em;
    position: absolute;
    top: -1rem;
    left: 1rem;
  }

  &::after {
    content: "“";
    font-size: 3em;
    position: absolute;
    bottom: -1rem;
    right: 1rem;
  }
}

.splide__arrow--prev {
  left: 0.5rem !important;
}

.splide__arrow--next {
  right: 0.5rem !important;
}

footer .logo {
  text-align: center;
  margin: 0 auto 1.5rem; /* 24px */
}

footer h3 {
  font-size: 1em; /* 16px */
}

footer p {
  font-size: 1rem; /* 16px */
}

footer ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin-top: 1rem; /* 16px */
}

footer ul li {
  display: inline-flex;
  font-size: 1rem; /* 16px */
  margin-right: 1.5rem; /* 16px */
}

footer ul li:last-child {
  margin-right: 0;
}

footer ul li a {
  padding: 0.5rem 0; /* 8px */
}

.cta {
  display: flex;
  position: fixed;
  z-index: 1;
  width: 6rem; /* 96px */
  bottom: 1rem; /* 16px */
  left: calc(50% - 3rem); /* - 48px */
}

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

/*
 * 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 */
}

/*
 * Max and min widths/heights
 */

.max-w {
  max-width: 60rem; /* 960px */
}

.max-w-12 {
  max-width: 12rem; /* 192px */
}

.min-h-span {
  min-height: 25rem; /* 400px */
}

/*
 * Margins
 */

.mx-auto {
  margin-right: auto;
  margin-left: auto;
}

.m-2 {
  margin: 2rem; /* 32px */
}

.mt-4 {
  margin-top: 4rem; /* 64px */
}

.mb-12 {
  margin-bottom: 12rem; /* 192px */
}

/*
 * Paddings
 */

.p-2 {
  padding: 2rem; /* 32px */
}

.p-3 {
  padding: 3rem; /* 48px */
}

.pb-2 {
  padding-bottom: 2rem; /* 32px */
}

.px-2 {
  padding-right: 2rem; /* 32px */
  padding-left: 2rem; /* 32px */
}

.pl-3 {
  padding-left: 3rem; /* 48px */
}

.pt-4 {
  padding-top: 4rem; /* 64px */
}

/*
 * Flex
 */

.flex {
  display: flex;
}

.flex-col-reverse {
  flex-direction: column-reverse;
}

.flex-wrap {
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* 32px */
}

.flex-box {
  flex: 1 1 20rem; /* 320px */
  align-content: center;
  border-radius: 1.5rem; /* 24px */
}

.justify-between {
  justify-content: space-between;
}

/*
 * Grid
 */

.grid {
  display: grid;
}

.grid-repeat-6-col {
  grid-template-columns: repeat(6, 1fr);
}

.gap-1 {
  gap: 1rem; /* 16px */
}

.span {
  display: grid;
  grid-column: 1 / span 6;
}

/*
 * Background colors
 */

.bg-1 {
  background-color: var(--color-green);
}

.bg-2 {
  background-color: var(--color-grey);
}

.bg-3 {
  background-color: var(--color-yellow);
}

.bg-4 {
  background-color: var(--color-orange);
}

.bg-5 {
  background-color: var(--color-red);
}

.bg-rainbow {
  background-image: url("/img/illu-rainbow.webp");
  background-repeat: no-repeat;
  background-size: 8rem; /* 128px */
  background-position: 98% 100%;
}

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

@media only screen and (min-width: 35em) {
  /* 560px */
  /* Style adjustments for viewports that meet the condition */
  h2 {
    font-size: 1.95em;
  }

  h3 {
    font-size: 1.56em;
  }

  .sm-text-right {
    text-align: right;
  }

  .sm-flex-dir-unset {
    flex-direction: unset;
  }

  .sm-grid-2-items {
    grid-template-columns: 1fr 1fr;
  }

  .sm-span-4-start-2 {
    grid-column: 2 / span 4;
  }

  .logo {
    max-width: var(--size-logo-sm);
  }
}

@media only screen and (min-width: 64em) {
  /* 1024px */
  /* Style adjustments for viewports that meet the condition */
  h1 {
    font-size: 3.05em;
  }

  h2 {
    font-size: 2.44em;
  }

  .md-p-3 {
    padding: 3rem; /* 48px */
  }

  .md-px-3 {
    padding-right: 3rem; /* 48px */
    padding-left: 3rem; /* 48px */
  }

  .logo {
    max-width: var(--size-logo-md);
  }
}

/* ==========================================================================
   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;
  }
}

/* ==========================================================================
   Splide slider styles.
   https://splidejs.com/
   ========================================================================== */

.splide__container {
  box-sizing: border-box;
  position: relative;
}
.splide__list {
  backface-visibility: hidden;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.splide.is-initialized:not(.is-active) .splide__list {
  display: block;
}
.splide__pagination {
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0;
  pointer-events: none;
}
.splide__pagination li {
  display: inline-block;
  line-height: 1;
  list-style-type: none;
  margin: 0;
  pointer-events: auto;
}
.splide:not(.is-overflow) .splide__pagination {
  display: none;
}
.splide__progress__bar {
  width: 0;
}
.splide {
  position: relative;
  visibility: hidden;
}
.splide.is-initialized,
.splide.is-rendered {
  visibility: visible;
}
.splide__slide {
  backface-visibility: hidden;
  box-sizing: border-box;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  list-style-type: none !important;
  margin: 0;
  position: relative;
}
.splide__slide img {
  vertical-align: bottom;
}
.splide__spinner {
  animation: splide-loading 1s linear infinite;
  border: 2px solid #999;
  border-left-color: transparent;
  border-radius: 50%;
  bottom: 0;
  contain: strict;
  display: inline-block;
  height: 20px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}
.splide__sr {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.splide__toggle.is-active .splide__toggle__play,
.splide__toggle__pause {
  display: none;
}
.splide__toggle.is-active .splide__toggle__pause {
  display: inline;
}
.splide__track {
  overflow: hidden;
  position: relative;
  z-index: 0;
}
@keyframes splide-loading {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(1turn);
  }
}
.splide__track--draggable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.splide__track--fade > .splide__list > .splide__slide {
  margin: 0 !important;
  opacity: 0;
  z-index: 0;
}
.splide__track--fade > .splide__list > .splide__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.splide--rtl {
  direction: rtl;
}
.splide__track--ttb > .splide__list {
  display: block;
}
.splide__arrow {
  -ms-flex-align: center;
  align-items: center;
  background: #ccc;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: -ms-flexbox;
  display: flex;
  height: 2em;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0.7;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2em;
  z-index: 1;
}
.splide__arrow svg {
  fill: #000;
  height: 1.2em;
  width: 1.2em;
}
.splide__arrow:hover:not(:disabled) {
  opacity: 0.9;
}
.splide__arrow:disabled {
  opacity: 0.3;
}
.splide__arrow:focus-visible {
  outline: 3px solid #0bf;
  outline-offset: 3px;
}
.splide__arrow--prev {
  left: 1em;
}
.splide__arrow--prev svg {
  transform: scaleX(-1);
}
.splide__arrow--next {
  right: 1em;
}
.splide.is-focus-in .splide__arrow:focus {
  outline: 3px solid #0bf;
  outline-offset: 3px;
}
.splide__pagination {
  bottom: 0.5em;
  left: 0;
  padding: 0 1em;
  position: absolute;
  right: 0;
  z-index: 1;
}
.splide__pagination__page {
  background: #ccc;
  border: 0;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin: 3px;
  opacity: 0.7;
  padding: 0;
  position: relative;
  transition: transform 0.2s linear;
  width: 8px;
}
.splide__pagination__page.is-active {
  background: #fff;
  transform: scale(1.4);
  z-index: 1;
}
.splide__pagination__page:hover {
  cursor: pointer;
  opacity: 0.9;
}
.splide__pagination__page:focus-visible {
  outline: 3px solid #0bf;
  outline-offset: 3px;
}
.splide.is-focus-in .splide__pagination__page:focus {
  outline: 3px solid #0bf;
  outline-offset: 3px;
}
.splide__progress__bar {
  background: #ccc;
  height: 3px;
}
.splide__slide {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.splide__slide:focus {
  outline: 0;
}
@supports (outline-offset: -3px) {
  .splide__slide:focus-visible {
    outline: 3px solid #0bf;
    outline-offset: -3px;
  }
}
@media screen and (-ms-high-contrast: none) {
  .splide__slide:focus-visible {
    border: 3px solid #0bf;
  }
}
@supports (outline-offset: -3px) {
  .splide.is-focus-in .splide__slide:focus {
    outline: 3px solid #0bf;
    outline-offset: -3px;
  }
}
@media screen and (-ms-high-contrast: none) {
  .splide.is-focus-in .splide__slide:focus {
    border: 3px solid #0bf;
  }
  .splide.is-focus-in .splide__track > .splide__list > .splide__slide:focus {
    border-color: #0bf;
  }
}
.splide__toggle {
  cursor: pointer;
}
.splide__toggle:focus-visible {
  outline: 3px solid #0bf;
  outline-offset: 3px;
}
.splide.is-focus-in .splide__toggle:focus {
  outline: 3px solid #0bf;
  outline-offset: 3px;
}
.splide__track--nav > .splide__list > .splide__slide {
  border: 3px solid transparent;
  cursor: pointer;
}
.splide__track--nav > .splide__list > .splide__slide.is-active {
  border: 3px solid #000;
}
.splide__arrows--rtl .splide__arrow--prev {
  left: auto;
  right: 1em;
}
.splide__arrows--rtl .splide__arrow--prev svg {
  transform: scaleX(1);
}
.splide__arrows--rtl .splide__arrow--next {
  left: 1em;
  right: auto;
}
.splide__arrows--rtl .splide__arrow--next svg {
  transform: scaleX(-1);
}
.splide__arrows--ttb .splide__arrow {
  left: 50%;
  transform: translate(-50%);
}
.splide__arrows--ttb .splide__arrow--prev {
  top: 1em;
}
.splide__arrows--ttb .splide__arrow--prev svg {
  transform: rotate(-90deg);
}
.splide__arrows--ttb .splide__arrow--next {
  bottom: 1em;
  top: auto;
}
.splide__arrows--ttb .splide__arrow--next svg {
  transform: rotate(90deg);
}
.splide__pagination--ttb {
  bottom: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  left: auto;
  padding: 1em 0;
  right: 0.5em;
  top: 0;
}
