
/* =============================== Fonts ================================ */


/* alegreya-sans-regular - latin */
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Alegreya Sans Regular'), local('AlegreyaSans-Regular'),
       url('Fonts/alegreya-sans-v8-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('Fonts/alegreya-sans-v8-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* alegreya-sans-700 - latin */
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Alegreya Sans Bold'), local('AlegreyaSans-Bold'),
       url('Fonts/alegreya-sans-v8-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('Fonts/alegreya-sans-v8-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* alegreya-sans-sc-300 - latin */
@font-face {
  font-family: 'Alegreya Sans SC';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Alegreya Sans SC Light'), local('AlegreyaSansSC-Light'),
       url('Fonts/alegreya-sans-sc-v7-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('Fonts/alegreya-sans-sc-v7-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


/* =============================== html + body ================================ */


@media screen {
  body {
    color: #575858;
    max-width: 940px;
    padding: 0 10px;
    margin: 0 auto;
  }
}

body {
  font-family: 'Alegreya Sans', sans-serif;
  background-color: white;
  line-height: 1.5;
}


.nowrap {
  white-space: nowrap;
}


/* =============================== Normalize.css (Auszüge) ================================ */
/* https://github.com/necolas/normalize.css/blob/master/normalize.css */


html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-variant-ligatures: no-common-ligatures; /* neuerdings funktioniert nur noch die prefixlose Variante */
}


header,
nav,
main,
article,
section,
footer {
  display: block;
}

a {
  background: transparent;
}

a:active {
  outline: 0;
}

b,
strong {
  font-weight: bold;
}

p {
  margin: 0 0 1em 0;
}

img {
  border: 0;
}

[hidden] {
  display: none;
}


/* =============================== Logo ================================ */


@media screen {
  header {
    max-width: 720px;
    padding-top: 4.5%;
    padding-bottom: 5.5%;
    margin: 0 auto;
  }
}

@media print {
  header {
    padding-bottom: 33px;
  }
}

header a {
	text-decoration: none;
}

header img {
  max-width: 455px;
  width: 100%;
  height: auto;
  vertical-align: top;
}


/* =============================== Fadeshow ================================ */


/* ------------------------- Konfigurationsbereich ------------------------- */


.fadeshow {
  max-width:          940px;      /* maximale Breite des Elements */
  --aspect-ratio:     1 / 2;      /* Seitenverhältnis der Hero-Bilder */
  --seitlicher-rand:  0px;        /* Einheiten: px | rem | em | %  – die Einheit ist hier erforderlich */

  margin-top:         0;          /* Einheiten: px | rem | em | % */
  margin-right:       auto;       /* margin-right und margin-left "auto" zentrieren das Element */
  margin-bottom:      6%;         /* Einheiten: px | rem | em | % */
  margin-left:        auto;

  --ken-burns-zoom:   1.1;        /* 1.03 bedeutet, dass auf 103% gezoomt wird – 1: kein Ken-Burns-Effekt */
  --bildstand-dauer:  8s;         /* Einheiten: ms | s */
  --ueberblend-dauer: 1.5s;       /* Einheiten: ms | s */
}



/* -------------------------- ab hier nichts ändern -------------------------- */

.fadeshow {
  width: calc(100% - var(--seitlicher-rand) - var(--seitlicher-rand));
  position: relative;
  overflow: hidden; /* zum Clippen der zoomenden Frames */
}

.fadeshow:before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  padding-bottom: calc(var(--aspect-ratio) * 100%);
}

.fadeshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--ueberblend-dauer, 1s) linear, transform var(--bildstand-dauer, 7s);
}


.fadeshow img[data-animation="fadeout"]:nth-child(odd) {
  opacity: 0;
  transform: scale(var(--ken-burns-zoom, 1));
}

.fadeshow img[data-animation="fadein"]:nth-child(odd) {
  opacity: 1;
  transform: scale(1);
}


.fadeshow img[data-animation="fadeout"]:nth-child(even) {
  opacity: 0;
  transform: scale(1);
}

.fadeshow img[data-animation="fadein"]:nth-child(even) {
  opacity: 1;
  transform: scale(var(--ken-burns-zoom, 1));
}


/* =============================== main ================================ */


main {
  max-width: 720px;
  margin: 0 auto;
}


main a           { color: inherit; }
main a:visited   { color: gray; }
@media (hover: hover) {
  main a:hover   { color: inherit; }
  main a:active  { color: #333; }
}


@media print {
  main {
    max-width: none;
    margin: 0;
  }
  main a,
  main a:visited,
  main a:hover,
  main a:active { color: black; text-decoration: underline; }
  main a[href^="http"]:after { content: " <"attr(href)">"; }
  main .notprinturl a[href^="http"]:after,
  main a[href^="http"].notprinturl:after { content: ""; }
}


/* =============================== Überschriften ================================ */


h1, h2, h3, .h3, h4, h5, h6 {
  line-height: 1.5;
  margin-top: 0;
}

.startseite h1 {
  font-size: 1em;
  line-height: 2;
  width: 10px; /* nicht auto, sonst gibts unter Android einen rechten Leerraum */
  height: 1px;
  overflow: hidden;
  margin: 0;
  position: absolute;
}

h1 { 
  color: gray;
  font-family: 'Alegreya Sans SC', sans-serif;
  font-size: 3.5em;
  font-weight: 300;
  text-transform: lowercase;
  line-height: 1;
  margin-left: -2px;
  margin-bottom: 0.2em;
}

h2 { 
  color: #e53213;
  font-family: 'Alegreya Sans SC', sans-serif;
  font-size: 2.6em;
  font-weight: normal;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 1px;
  line-height: 1;
  padding-top: 10px;
  margin-left: -2px;
  margin-bottom: 0.2em;
}

h3, .h3 {
  font-size: 1.28em;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 0.1em;
}

h4, h5, h6 {
  font-size: 1em;
  margin-bottom: 0;
}


/* =============================== Listen ================================ */


main ul {
  padding-top: 0; 
  margin-top: 0; 
  padding-bottom: 0; 
  margin-bottom: 1em;
}

main ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

main li {
  padding-left: 1.2em;
  position: relative;
}

main li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: black;
  font-weight: bold;
  font-family: Arial, sans-serif; /* sonst werden die Bullits unter Mac und Win unterschiedlich groß */
  font-size: 1.25em;
  line-height: 1.2;
}


/* =========================== zweispaltige Textkästen ======================== */


@media (min-width: 481px) {
  section {
    float: left;
    box-sizing: border-box;
    width: 50%;
  }

  section:nth-child(odd) {
    padding-left: 10px;
  }

  section:nth-child(even) {
    padding-right: 10px;
    clear: left;
  }
}

section p {
  margin-bottom: 0.75em;
}


section:last-of-type + * {
  clear: left;
  padding-top: 0.7em;
}


/* =========================== horizintale Linie ============================ */


hr {
  position: relative;
  text-align: center;
  margin: 0 0 0.8em 0;
  border: 0;
}

main hr {
  margin-top: 1.8em;
}

hr:before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0; 
  width: 100%;
  height: 2px;
  background-color: #e53213;
}

hr:after {
  content: url('Layout/Brandschutz-Pey-Logo-Footer.svg');
  position: relative; /* wegen z-index */
  display: inline-block;
  width: 30px;
  height: 36px;
  border-left: 24px solid white;
  border-right: 24px solid white;
}


/* =============================== Impressum ================================ */


.impressum .h3 {
  display: block;
}


@media screen and (min-width: 561px) {
  .dot:after {
    content: ' · ';
  }
}

@media screen and (max-width: 560px), print {
  .dot:after {
    content: '';
    display: block;
    height: 0;
    overflow: hidden;
  }
}

@media screen and (max-width: 560px) {
  .impressum a {
    display: inline-block;
    padding: 5px 0;
  }
}


@media screen {
  .impressum .internet {
    display: none;
  }

  .impressum .copyright {
    text-decoration: none;
  }
}

@media print {
  .impressum .internet {
    display: block;
  }
  .impressum .copyright {
    display: none;
  }
}

/* =============================== Footer ================================ */


footer {
  max-width: 720px;
  margin: 30px auto 52px auto;
  background-image: url('../counter/count.php');
  background-repeat: no-repeat;
}


footer a {
  color: #777;
  text-decoration: none;
  cursor: pointer;
}

@media (hover: hover) {
  footer a:hover,
  footer a:active {
    text-decoration: underline;
  }
}

@media print {
  footer {
    display: none;
  }
}

