@charset "UTF-8";
/* layout.css - Kopfbereich, Navigation, Fussbereich
   Reines CSS ohne Build-Schritt. Eingebunden in id_head.php; nach
   Aenderungen dort $cssVersion hochzaehlen. Farben und Schrift als
   Variablen (--rot, --gold ...) stehen oben in basis.css. */

/* ==================================================================
   Kopfbereich, Navigation, Bühnenbilder, Einblenden beim Scrollen
   ================================================================== */
/* Einblenden beim Scrollen - Steuerung in static/js/scripts.js

   Gilt fuer alle Inhaltsbloecke (.container .row), damit jede Seite den
   Effekt bekommt, ohne dass im Markup etwas ergaenzt werden muss, und
   zusaetzlich fuer alles, was ausdruecklich .fade-in traegt.

   Alles haengt an .js am <html>-Element. Die Klasse setzt ein kurzes
   Inline-Skript im <head> (siehe id_head.php). Ohne JavaScript - oder
   wenn scripts.js nicht laedt - bleibt der Inhalt sichtbar, statt
   dauerhaft auf opacity 0 stehenzubleiben. */
.js .container .row,
.js .fade-in {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.js .container .row.visible,
.js .fade-in.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  /* Compositor-Layer wieder freigeben, sobald der Block steht */
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .js .container .row,
  .js .fade-in {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
.spacer {
  height: 80px;
  width: 100%;
}
header {
  background-color: #fff;
  color: #333;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 900;
  height: 80px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}
.head-binder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
header .logo {
  font-size: 24px;
}
header .logo img {
  height: 60px;
}
.headerinfobox {
  margin-left: auto;
  display: flex;
  align-items: center;
  /* Abstand ueber gap statt ueber den Aussenabstand des Buttons - der
     summierte sich auf 20 px und trieb die Kopfzeile ins Ueberlaufen. */
  gap: 14px;
}
.headerinfobox .mainbtn {
  margin: 0;
}
/* Radar am Termin-Button in der Kopfzeile
   ------------------------------------------------------------------
   Eine Welle: ein weicher Schatten, der aus dem Button herauswaechst
   und dabei ausblendet. Nimmt den Gedanken des Kontaktkastens unten
   rechts auf, nur kleiner. Beim Hover haelt sie an - wer schon
   draufzeigt, muss nicht mehr darauf gestossen werden. */
header a.mainbtn.termin-btn {
  overflow: visible;
  animation: terminRadarWelle 3.2s ease-out infinite;
}
header a.mainbtn.termin-btn:hover {
  animation: none;
}
@keyframes terminRadarWelle {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 132, 0, 0.55);
  }
  55% {
    box-shadow: 0 0 0 10px rgba(198, 132, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 132, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  header a.mainbtn.termin-btn {
    animation: none;
  }
}
.phoneheaderbox {
  display: flex;
  align-items: center;
  /* war frueher eine <h3> - eine Telefonnummer ist keine Ueberschrift */
}
.phoneheaderbox .phonenr {
  text-align: center;
  margin: 0;
  font-weight: 400;
  margin-left: 30px;
}
.phoneheaderbox .phonenr span {
  font-size: 0.7em;
}
nav {
  background-color: var(--rot);
  color: #fff;
  position: sticky;
  top: 80px;
  z-index: 800;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin: 0;
}
nav ul li {
  position: relative;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: flex;
  align-items: center;
}
nav ul li a:hover {
  background-color: var(--rot-dunkel);
}
/* Untermenü */
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #444;
  list-style: none;
  padding: 0;
}
.submenu li a {
  padding: 10px 15px;
  white-space: nowrap;
}
.sub-arrow:after {
  content: "";
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-color: #fff;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  position: relative;
  margin-left: 8px;
  margin-top: -2px;
}
nav ul li:hover .submenu,
nav ul li:focus-within .submenu {
  display: block;
}
/* Container */
.headimage {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 14%, rgba(0, 0, 0, 0.8) 100%), url(../images/709.jpg);
  position: relative;
  margin: 0 auto;
  min-height: 75vh;
  background-size: cover;
  background-position: center;
}
.headimage.is-start {
  min-height: 90vh;
}
.headimage.is-bewerbung {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 14%, rgba(0, 0, 0, 0.1) 100%), url(../images/bewerbung/stellen-anzeige.jpg) !important;
}
.headimage.is-praevention {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 14%, rgba(0, 0, 0, 0.1) 100%), url(../images/praevention/bg-praevention.jpg) !important;
}
.headimage.is-personaltraining {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 14%, rgba(0, 0, 0, 0.1) 100%), url(../images/personal/bg-personal.jpg) !important;
}
.headimage.is-wellness {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 14%, rgba(0, 0, 0, 0.1) 100%), url(../images/wellness/bg-wellness.jpg) !important;
}
.headimage.is-kraft {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 14%, rgba(0, 0, 0, 0.1) 100%), url(../images/kraft/kraft.jpg) !important;
}
.headimage-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  width: 100%;
  position: absolute;
  height: 96%;
}
.aktion-headerwrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
}
.col-buehne-image {
  order: 1;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.col-buehne-txt {
  order: 2;
  flex-direction: column;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(121, 20, 46, 0.9);
  display: none;
  /* Anfangszustand: unsichtbar */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#overlayContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px;
  max-width: 85%;
  text-align: center;
  border-radius: 4px;
  position: relative;
}
#overlay img {
  width: 100%;
  height: auto;
  max-height: 80vh;
}
#closeButton {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -15px;
  top: -15px;
  width: 50px;
  height: 50px;
  background: #333;
  color: #fff;
  padding: 10px;
  font-size: 2em;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 4px 2px rgba(50, 50, 50, 0.7);
}
/* Burger */
.burger {
  padding: 0;
  background: none;
  border: 0;
  width: 30px;
  min-width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
  display: none;
  margin-left: 30px;
}
.burger span {
  position: absolute;
  width: 100%;
  height: 4px;
  left: 0;
  background-color: black;
  transition: transform 0.5s ease-in-out, top 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
.burger span:nth-child(1) {
  top: 3px;
}
.burger span:nth-child(2) {
  top: 13px;
}
.burger span:nth-child(3) {
  top: 23px;
}
/* Styling für das X */
.burger.is-active span:nth-child(1) {
  transform: rotate(45deg);
  top: 14px;
}
.burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger.is-active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 14px;
}
a.terminmenu {
  display: none;
}
/* Responsive Anpassungen */
@media (max-width: 768px) {
  .head-binder {
    padding: 10px 14px;
  }
  a.terminmenu {
    display: inline-block;
    margin: 30px 0 10px -120px;
    width: 240px;
    left: 50%;
  }
  .burger {
    margin-left: 15px;
  }
  header .logo {
    font-size: 24px;
  }
  header .logo img {
    height: 50px;
    margin-top: 4px;
  }
  .phoneheaderbox {
    font-size: .9em;
  }
  .phoneheaderbox h3 {
    margin-left: 10px;
  }
  .aktion-headerwrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .col-buehne-image {
    order: 2;
  }
  .col-buehne-txt {
    order: 1;
    padding: 40px 0 10px 0;
  }
  .headimage {
    min-height: 60vh;
  }
  nav {
    background-color: var(--rot);
    position: fixed;
    width: 100%;
  }
  nav ul {
    flex-direction: column;
    display: none;
    /* Standardmäßig verborgen */
  }
  nav ul.is-active {
    display: block;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    overflow: auto;
    padding-bottom: 80px;
  }
  .burger {
    display: block;
  }
  .submenu {
    position: static;
  }
  nav ul li:hover .submenu {
    display: none;
    /* Deaktiviert Hover-Effekt auf mobilen Geräten */
  }
  nav ul.is-active {
    display: block;
    /* Deaktiviert Hover-Effekt auf mobilen Geräten */
  }
  nav ul.is-active .submenu {
    display: block !important;
  }
}
@media (max-width: 480px) {
  /* Auf sehr schmalen Geraeten wird es eng: Logo (245:60) belegt bei 44 px
     Hoehe bereits 180 px. Etwas kleiner, engere Abstaende - sonst rutscht
     der Burger ueber den rechten Rand hinaus. */
  .head-binder {
    padding: 10px;
  }
  .headerinfobox {
    gap: 10px;
  }
}


/* ==================================================================
   Fußbereich
   ================================================================== */
/* Footer Styling */
footer {
  background-color: var(--rot);
  color: white;
  padding: 0;
  text-align: center;
  position: relative;
  padding-top: 260px;
}
.back-to-top {
  margin-bottom: 20px;
}
.back-to-top a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}
.grid.four-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}
footer .column {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 5px;
}
.footer-links {
  margin-top: 40px;
  background-color: #000;
  padding: 10px;
  font-size: .8em;
}
.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}
.footer-links a:hover,
.footer-links .footer-linkbtn:hover {
  text-decoration: underline;
}
/* oeffnet den Cookie-Hinweis erneut - sieht aus wie die Links daneben */
.footer-links .footer-linkbtn {
  margin: 0 10px;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}
.social-media {
  margin-top: 20px;
}
.social-media a {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
}
.social-media img {
  transition: all 1s ease;
  width: 48px;
  height: 48px;
  background-color: #000;
}
.social-media img:hover {
  border-radius: 50%;
}
ul.footerlist {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}
ul.footerlist li a {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: .9em;
  color: #fff;
  text-decoration: none;
}
.footercol img {
  width: 100px;
}
/* Responsive Anpassungen */
