/* KYNOS – neues, eigenständiges Stylesheet
   Grundlage: index.php + menue.php
   Dieses Stylesheet ist bewusst nur für die neue Seitenfamilie gedacht.
*/

/* ---------- Basis ---------- */

html {
  box-sizing: border-box;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  color: #5a5a5a;
  background: #cc9933 url("/files/hintergrund.gif") center top no-repeat;
  font: 100.01% Arial, Helvetica, Verdana, sans-serif;
  overflow-y: scroll;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

a {
  color: #97bf0d;
  font-size: .9em;
  font-weight: bold;
  text-decoration: none;
}

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

strong {
  color: #0033cc;
  font-weight: bold;
}

p {
  margin: 0 0 10px;
  font-size: .9em;
  line-height: 1.4em;
}

h1 {
  margin: 0 0 12px;
  color: #0033cc;
  font-size: 1.2em;
}

.block {
  overflow: hidden;
}

.invisible {
  position: absolute;
  left: -1000px;
  top: -1000px;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Seitenrahmen ---------- */

#wrapper {
  position: relative;
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 33px auto 0;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
}

#header {
  position: relative;
}

#header .inside {
  position: relative;
}

#logo {
  background: url("/files/claim.gif") right top no-repeat;
}

#logo > img,
#headerbild-kopie img {
  width: 100%;
}

#container {
  position: relative;
  padding: 30px 20px 0;
  background: linear-gradient(to bottom, #fff, #faf7f0);
}

#main {
  position: relative;
  margin-bottom: 50px;
}

#main .inside {
  min-height: 1px;
}

/* ---------- Navigation ---------- */

#header .mod_navigation {
  position: absolute;
  z-index: 20;
  top: 82%;
  left: 20px;
  width: calc(100% - 40px);
  margin: 0;
  overflow: visible;
  background: rgba(255,255,255,.70);
  box-shadow: 0 0 6px #000;
}

#header .mod_navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .mod_navigation ul.level_1 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px auto 0;
  text-align: center;
}

#header .mod_navigation ul.level_1 > li {
  position: relative;
  display: inline-block;
  font-size: 18px;
  text-transform: uppercase;
}

#header .mod_navigation a {
  display: block;
  padding: 0 15px 12px;
  color: #333;
  font-size: inherit;
  font-weight: normal;
  text-decoration: none;
}

#header .mod_navigation a:hover,
#header .mod_navigation a:focus {
  color: #79990a;
}

#header .level_2 {
  position: absolute;
  top: 100%;
  left: -9999px;
  z-index: 30;
  width: 0;
  height: 0;
  margin: 0;
  padding: 1px 0 0;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 3px #c5baad;
}

#header .level_2 li {
  width: 100%;
  margin: 0;
  background: #c1d86d;
  text-transform: none;
}

#header .level_2 li a {
  display: block;
  margin: 0 0 1px;
  padding: 5px;
  background: rgba(255,255,255,.9);
  color: #5a5a5a;
  font-size: .9em;
  text-transform: none;
}

#header li:hover > .level_2 {
  left: 0;
  width: max-content;
  min-width: 180px;
  height: auto;
  overflow: visible;
}

#hnav span#hamburger {
  display: none;
}

.submenu .fa.fa-plus,
.submenu .fa.fa-minus {
  display: none;
}

/* ---------- Startseite: Einleitung ---------- */

#einleitung {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1ede1;
  text-align: left;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 30px;
  align-items: start;
}

.intro-copy {
  min-width: 0;
}

.intro-text p {
  margin-bottom: 10px;
}

.intro-reviews {
  min-width: 0;
}

.review-slideshow {
  position: relative;
  width: 100%;
  min-height: 250px;
  overflow: hidden;
  text-align: center;
}

.review-slideshow .ofaSlideshowElements {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  animation: kynosReviewSlide 105s infinite;
}

/* Sieben Rezensionen, jeweils 15 Sekunden sichtbar. */
.review-slideshow .ofaSlideshowElements:nth-child(1) { animation-delay: 0s; }
.review-slideshow .ofaSlideshowElements:nth-child(2) { animation-delay: 15s; }
.review-slideshow .ofaSlideshowElements:nth-child(3) { animation-delay: 30s; }
.review-slideshow .ofaSlideshowElements:nth-child(4) { animation-delay: 45s; }
.review-slideshow .ofaSlideshowElements:nth-child(5) { animation-delay: 60s; }
.review-slideshow .ofaSlideshowElements:nth-child(6) { animation-delay: 75s; }
.review-slideshow .ofaSlideshowElements:nth-child(7) { animation-delay: 90s; }

@keyframes kynosReviewSlide {
  0%,
  13% {
    opacity: 0;
    visibility: hidden;
  }
  14%,
  28% {
    opacity: 1;
    visibility: visible;
  }
  29%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Startseite: Servicekarten ---------- */

#fuenfer-reihe {
  padding: 20px 0;
  border-bottom: 1px solid #f1ede1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-width: 0;
  text-align: justify;
  hyphens: auto;
}

.service-card img {
  width: 185px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 8px;
}

.service-card p {
  margin-right: 3px;
}

.extra-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.extra-links a {
  display: block;
}

.extra-links img {
  width: 185px;
  height: auto;
}

/* ---------- Footer ---------- */

#footer {
  clear: both;
  width: 100%;
  min-height: 150px;
  padding: 20px;
  background: #73593a;
  color: #fff;
  font-size: .8em;
  line-height: 1.6em;
}

#footer a {
  color: #fff;
}

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

/* ---------- Mobile ---------- */

@media screen and (max-width: 767px) {

  body {
    background-position: center top;
  }

  #wrapper {
    width: 100%;
    min-height: 100vh;
    margin-top: 0;
  }

  #container {
    padding: 20px 15px 0;
  }

  #header .mod_navigation {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    background: rgba(255,255,255,.95);
    box-shadow: none;
  }

  #hnav {
    position: relative;
    z-index: 50;
    width: 100%;
    background: #77c1d6;
  }

  #hnav span#hamburger {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #fff;
    background: #0033cc;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    text-align: right;
  }

  #header .mod_navigation {
    display: none;
  }

  #header .mod_navigation.expanded {
    display: block;
  }

  #header .mod_navigation ul.level_1 {
    display: block;
    margin: 0;
  }

  #header .mod_navigation ul.level_1 > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #000;
    text-align: left;
    font-size: 16px;
  }

  #header .mod_navigation a {
    padding: 13px 20px;
    color: #333;
  }

  #header .level_2,
  #header li:hover > .level_2 {
    position: relative;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border-top: 1px solid #000;
    overflow: visible;
    box-shadow: none;
  }

  #header li.current > .level_2 {
    display: block;
  }

  #header .level_2 li {
    border: 0;
    background: transparent;
  }

  #header .level_2 li a {
    padding: 8px 20px 8px 30px;
    background: rgba(255,255,255,.9);
    font-size: .9em;
  }

  .submenu {
    position: relative;
  }

  .submenu .fa.fa-plus,
  .submenu .fa.fa-minus {
    display: block;
    position: absolute;
    top: 13px;
    right: 20px;
    color: #0033cc;
    cursor: pointer;
  }

  .submenu.current .fa.fa-plus {
    display: none;
  }

  .submenu:not(.current) .fa.fa-minus {
    display: none;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro-reviews {
    order: 2;
  }

  .review-slideshow {
    min-height: 0;
    text-align: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-card {
    padding: 0 0 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-card img {
    margin-left: 0;
    margin-right: 0;
  }

  #footer {
    min-height: 0;
  }
}

/* ---------- Kleine Smartphones ---------- */

@media screen and (max-width: 420px) {

  #container {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 1.15em;
  }

  p {
    font-size: .95em;
  }
}
