/*-----------------------------------------------------------------------------
base.css
Enthält alle CSS Variabeln und grundlegende Regeln.
@media (min-width:600px) { }
@media (min-width:801px) { }
@media (min-width:1025px) {  }
@media (min-width:1281px) { }
----------------------------------------------------------------------------*/

/* Fonts
-----------------------------------------------------------------------------*/

@font-face {
  font-family: PT_Sans;
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/PT_Sans/PTSans-Regular.ttf");
}

@font-face {
  font-family: PT_Sans;
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/PT_Sans/PTSans-Bold.ttf");
}

@font-face {
  font-family: PT_Sans_Mono;
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/PT_Mono/PTMono-Regular.ttf");
}

/* Variables
-----------------------------------------------------------------------------*/

:root {
  /*
    Farben
    ----------------------------------------*/
  --color-text: #444;
  --color-dark: rgb(18, 21, 31);
  --color-text-light: rgb(73, 73, 73);
  --color-text-lighter: #969696;
  --color-accent: #ce137a;
  --color-headlines: rgba(18, 21, 31, 0.95);
  --color-backgrounds: #f3f3f3;
  --color-borders: rgba(0, 0, 0, 0.3);
  --color-button-bg: rgba(0, 0, 0, 0.8);

  /* Groessen
    ----------------------------------------*/
  --xxs: 0.25rem;
  --xs: 0.5rem;
  --s: 0.75rem;
  --m: 1rem;
  --l: 1.25rem;
  --xl: 1.5rem;
  --xxl: 2rem;
  --xxxl: 3rem;

  /*
    Schrift
    ----------------------------------------*/
  --fontsize: 1rem;
  --fontsize-xs: 0.5rem;
  --fontsize-s: 0.75rem;
  --fontsize-l: 1.25rem;
  --fontsize-xl: 1.5rem;
  --fontsize-xxl: 3rem;
  --fontsize-xxxl: 5rem;
  --font-family: PT_Sans, Helvetica, Lucida, sans-serif;

  --maxwidth-text: 960px;
  --maxwidth-text-l: 1200px;
}

/* Basic Styles & Bahavior
-----------------------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-size: var(--fontsize);
  color: var(--color-text-light);
  background-color: var(--color-backgrounds);
  font-family: var(--font-family);
}

@media only screen and (min-width: 600px) {
  body {
    font-size: var(--fontsize-l);
  }
}

@media only screen and (min-width: 801px) {
  body {
    font-size: var(--fontsize);
  }
}

li,
a,
p,
td,
th {
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Headlines
----------------------------------------------------------------------------*/

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: var(--fontsize-xxl);
  font-weight: 700;
  margin-bottom: var(--xxl);
  color: var(--color-text-lighter);
}

@media screen and (min-width: 1281px) {
  h1 {
    font-size: 3em;
  }
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: var(--fontsize-xxl);
  padding-bottom: 20px;
  color: var(--color-headlines);
  margin-bottom: var(--xxxl);
}

h3 {
  font-size: var(--fontsize-l);
}

h4,
h5,
h6 {
  font-size: var(--fontsize);
  font-weight: bold;
}

h3,
h4 {
  color: var(--color-headlines);
}

h2 + h3,
h3:first-of-type {
  padding-top: 0;
}

.title,
.subtitle {
  margin-bottom: var(--m);
}

.title + .subtitle {
  margin-top: calc(var(--m) * -1); /*calc(var(--xs) - var(--m)); */
}

/* Mengentexte
----------------------------------------------------------------------------*/

p,
li,
td,
th {
  line-height: 1.4em;
}

.is-big {
  font-size: 130%;
}

/* Links
----------------------------------------------------------------------------*/

a {
  color: var(--color-accent);
  text-decoration: none;
  display: inline-block;
  border-bottom: dotted 1px var(--color-text-light);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
