/*
 * Aus dem internen Contao-Stylesheet "mstudio" (tl_style, Contao 4.4) übertragen.
 * Interne Stylesheets gibt es ab Contao 5 nicht mehr.
 */

strong {
  font-weight: 400;
}

nav strong {
  font-style: normal;
  font-weight: 100;
}

#headernav .mod_customnav ul {
  font-size: 24px;
  list-style-type: none;
}

#headernav .mod_customnav ul li {
  display: inline-block;
}

#hauptnav ul.level_1 > li > strong {
  display: inline-block;
  background-color: #4d94c4;
}

#hauptnav ul.level_1 > li > strong {
  padding: 10px 8px; /* war 12px; an die Links (8px) angeglichen, sonst bricht die Hauptnavigation um */
  color: #fff;
  text-transform: uppercase;
  font-weight: 100;
  transition: all 200ms linear;
}

#hauptnav ul.level_1 ul li strong {
  width: 220px;
  float: left;
  clear: both;
  display: inline-block;
  padding: 10px 12px;
  color: #fff;
  transition: all 200ms linear;
}

.mod_customnav ul li > strong {
  font-size: 12px;
  color: #fff;
  font-weight: 100;
}

#left .mod_navigation .level_1 li strong {
  border-top: 1px solid #fff;
  font-weight: 400;
}

#left .mod_navigation ul li strong {
  width: 230px;
  display: block;
  padding: 10px;
  background-color: #00665d;
  color: #fff;
  transition: all 200ms linear;
}

#left .mod_navigation .level_1 > li > strong::after,
#left .mod_navigation .level_2 > li > strong::after {
  width: 7px;
  height: 11px;
  right: 20px;
  position: absolute;
  display: inline-block;
  margin-top: 2px;
  background-image: url("../img/submenu_arrow.png");
  background-repeat: no-repeat;
  content: " ";
}

#left .mod_navigation .level_2 li > strong {
  padding: 9px 0 9px 20px;
  border-top: 0 dotted #fff;
  font-weight: 100;
}

.mm-menu .mm-listview > li.mm-selected > strong {
  background-color: rgba(255, 255, 255, 0.5);
}

.mm-listview > li > strong {
  overflow: hidden;
  display: block;
  padding: 10px 10px 10px 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: inherit;
}

.gallery_creator figure.image_container {
  margin-right: 5px;
}

.kontaktseite #main .ce_form .form_open_street_map_location_picker {
  display: inline-block;
}

.kontaktseite #main .ce_form .form_open_street_map_location_picker > input.latitude {
  display: block;
}

.kontaktseite #main .ce_form .form_open_street_map_location_picker .close_btn {
  display: block;
  margin: 0;
}

fieldset.cffs-34 {
  margin-bottom: 20px;
  padding-top: 20px;
  padding-bottom: 5px;
  border: 1px solid #ccc;
}

img.ui-datepicker-trigger {
  margin-left: 10px;
}

.box {
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-width: 0 1px 1px;
  border-style: solid;
  border-color: #c0c0c0;
  border-radius: 5px;
}

.box h4 {
  padding: 4px;
  background-color: #00665d;
  color: #fff;
  font-size: 15px;
}

.box a {
  color: #4d94c4;
}

.box p {
  padding: 5px 10px;
}

.box ul li {
  line-height: 1.8;
}

p.error {
  padding: 10px;
  background-color: #ff0000;
  color: #fff;
  font-weight: 600;
}

.syndication {
  top: -28px;
  right: 10px;
  position: absolute;
}

/* Fester Seitenhintergrund (vorher Modul "Hintergrundbilder" der Page-Images-Erweiterung) */
#background_full {
  width: 100%;
  height: 100vh;
  background-image: url("../bgs/naturpark_bg_sommer01.jpg");
  background-size: cover;
}

/* Bezugsrahmen für den mobilen Menü-Button (.open_mobile_navigation, top:-55px in global.css).
   Früher lieferte der Seiten-Wrapper des alten mmenu position:relative. */
#menuslider .inside {
  position: relative;
}

/* Untermenüs ab Ebene 3 komplett ausblenden statt nur unsichtbar:
   sonst ragen sie rechts aus der Seite und erzeugen einen horizontalen Scrollbalken. */
#hauptnav ul.level_1 ul li ul {
  display: none;
}

#hauptnav ul.level_1 ul li:hover > ul {
  display: block;
}

/* ---------------------------------------------------------------
   Ersatz für Inline-Styles aus Inhalten und HTML-Modulen
   --------------------------------------------------------------- */

/* Kopf: Slogan (vorher Inline-Style im HTML-Modul) und zweites Logo (vorher hspace=10) */
#slogan a {
  margin: 10px;
  font-size: 5.5em;
  color: #647498;
  letter-spacing: 8px;
  font-weight: 600;
}

#logo a + a img {
  margin: 0 10px;
}

/* Footer: Förderlogos */
#beschreibung .foerderlogos {
  margin-top: 16px;
}

#beschreibung .foerderlogos img {
  margin: 0 5px;
}

/* Inhaltsbilder: Ausrichtung per Klasse (float_left/float_right aus Contao layout.css) */
#main img {
  max-width: 100%;
  height: auto;
}

#main img.float_right,
#main table.float_right {
  margin: 0 0 10px 15px;
}

#main img.float_left,
#main table.float_left {
  margin: 0 15px 10px 0;
}

#main img.img-center {
  display: block;
  margin: 0 auto;
}

/* Textausrichtung */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.indent { padding-left: 30px; }

/* Tabellen im Inhalt */
#main td {
  vertical-align: top;
}

#main table.infobox {
  background-color: #efefef;
}

#main table.bordered {
  border-collapse: separate;
  border-spacing: 2px;
  border: 1px solid #c0c0c0;
}

#main table.bordered td {
  padding: 2px;
  border: 1px solid #c0c0c0;
}

/* Startseite: Kacheln der Tierarten */
.tierkachel {
  float: left;
  width: 160px;
  height: 225px;
  margin: 5px;
  padding-top: 5px;
  background: #fff;
}

/* Fotografen-Seite: Liste der Bildautoren */
.credits {
  color: #1d8330;
  font-size: 13px;
}

/* ---------------------------------------------------------------
   Mobil (muss am Ende stehen, damit es die Klassen oben überstimmt)
   --------------------------------------------------------------- */
@media (max-width: 970px) {
  #main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  #main img,
  #main img.float_left,
  #main img.float_right,
  #main table.float_left,
  #main table.float_right {
    float: none;
    display: block;
    margin: 0 auto 10px;
  }

  .tierkachel {
    width: calc(50% - 10px);
    height: auto;
    padding-bottom: 5px;
  }
}

/* Teilen-Icons im Menübalken (vorher Inline-Style) */
#sharebuttons img {
  border-radius: 0;
}
