/* =========================
   Farben als Variablen
   ========================= */
:root {
  --primary-blue: #242468;
  --secondary-blue: #242468;
  --active-red: #dc3e4b;
  --hover-red: #e63146;
  --hover-border: #1d5372;
  --warning-bg: #b2e8f5cc;
  --warning-color: #000000;
}

/* =========================
   Buttons & Formulare
   ========================= */
.ym-button,
.ym-form button,
.ym-form input[type="button"],
.ym-form input[type="reset"],
.ym-form input[type="submit"] {
  background-color: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 1px 1px #de3d4e inset, 0 1px 0 #d53f4c;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 0px solid #db3e4a;
}

.ym-button:hover,
.ym-form button:hover,
.ym-form input[type="button"]:hover,
.ym-form input[type="reset"]:hover,
.ym-form input[type="submit"]:hover {
  background-color: var(--hover-red);
  border-color: var(--hover-border);
  box-shadow: none;
}

.button_start,
.button_start_firma {
  width: 330px;
  text-align: center;
}

/* =========================
   Schritte / Status
   ========================= */
.schritt_aktiv {
  background: var(--active-red);
}

.schritt_inaktiv {
  background: #282467;
}

/* =========================
   Header / Navigation
   ========================= */
nav {
  background: var(--secondary-blue);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

/* =========================
   Text / Inhalt
   ========================= */
.firma,
.einzel {
  color: var(--primary-blue);
}

.ym-columnar .text-danach {
  font-size: 95%;
}

.panibox h6,
.ym-form legend {
  background: var(--secondary-blue);
  padding: 5px 12px;
  color: #fff;
}

/* =========================
   Warnungen / Logos
   ========================= */
.warning {
  background: var(--warning-bg);
  color: var(--warning-color);
}

.logo1 {
  margin-left: 10%;
  max-width: 80%;
  float: none !important;
}

/* =========================
   Ausgeblendete Elemente
   ========================= */
.firmenmeldung_h6,
.firmenmeldung {
  display: none;
}

/* =========================
   Media Queries
   ========================= */
@media only screen and (min-width: 600px) {
  .abstand_oben {
    margin-top: 3em;
    display: inline-flex;
    flex-direction: row;
  }
}

/* =========================
   Überschriften
   ========================= */
h1 {
  font-family: "Open Sans", sans-serif;
  font-size: 240%;
  font-weight: 800;
  line-height: 1.1em;
  margin: 5px 0 10px 20px;
  color: #ffffff;
  text-shadow: 0 1px 1px #000;
}

/* =========================
   Panibox Layout
   ========================= */
.panibox,
.panibox2 {
  background: #fff;
  padding: 0;
  position: relative;
  box-shadow: 0 0 10px 0 rgba(10, 10, 10, 0.2);
}

/* =========================
   Navigation Farbe
   ========================= */
nav {
  background: #242468;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

/* =========================
   Mobile Optimierung (Header sichtbar!)
   ========================= */
@media screen and (max-width: 500px) {
  header img {
    width: 100% !important;
  }

  .headerbutton {
    display: flex;
    justify-content: center; /* Bild/Kachel mittig */
    width: 100%;
  }

  .button_start,
  .button_start_firma {
    background: white;
    text-align: center;
    margin-right: -278px !important;
  }
  img.button_start {
    margin-right: -300px !important;
  }

  .headerauswahl a {
    margin-bottom: -10px;
  }

  .abstand_oben {
    margin-top: 0px;
    background: #fff;
    flex-direction: column;
  }

  header {
    background: #fff !important;
  }

  h1 {
    margin: -52px 0 10px 20px;
  }
}
.headerauswahl {
  overflow: hidden;
}
.headerauswahl a {
  border: none;
  padding-right: 10px;
  margin-bottom: 10px;
}
@media only screen and (min-width: 600px) {
  .headerauswahl a:nth-child(even) {
    margin-right: 51px;
  }
  .headerauswahl a:nth-child(odd) {
    margin-left: 51px;
  }
}
@media only screen and (max-width: 600px) {
  .headerauswahl a {
    margin-bottom: 10px;
  }
  #main .ym-wrapper .ym-wbox {
    padding-top: 0px !important;
  }
}

@media only screen and (min-width: 600px) {
  .headerauswahl a:nth-child(odd) {
    margin-left: 0px;
  }

  .headerauswahl a:nth-child(even) {
    margin-right: 0px;
  }
}
.headerauswahl a:hover,
.headerauswahl a:active,
.headerauswahl a:focus {
  background-color: transparent;
}
a:hover img {
  opacity: 0.7;
}

.headerauswahl .headerbutton {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.headerauswahl .titel {
  color: #fff;
  position: absolute;
  right: 0px;
  text-transform: uppercase;
  width: 100%;
  font-weight: lighter;
  font-size: 26px;
  line-height: normal;
  box-sizing: border-box;
  padding: 5px;
  position: absolute !important;
  bottom: -5px;
  background: #242468;
  font-weight: bold;
}
.headerauswahl .strecke {
  position: absolute;
  color: #003166;
  top: 8px;
  right: 0px;
  font-weight: lighter;
  font-size: 15px;
  text-align: right;
  width: 100% !important;
  text-align: center !important;
  font-weight: bold;
}
.headerauswahl .info {
  color: #003166;
  float: right;
  position: absolute;
  z-index: 99;
  top: -150px;
  left: 0px;
  width: 100%;
  font-weight: lighter;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 0;
}

@media screen and (max-width: 500px) {
  .headerauswahl .strecke {
    position: absolute !important;
    right: 0px !important;
    top: 7px !important;
  }
}

@media screen and (max-width: 500px) {
  .headerauswahl .titel {
    bottom: -5px !important;
  }
}

@media screen and (max-width: 500px) {
  img.button_start {
    margin-right: 0px !important;
  }
}
