/* fritz-stoll · Anpassungen für Contao 5.7 (11.11.2026) */

/* Artikel-Hintergründe, vorher Erweiterung heart-bits/contao-article-backgrounds */
.mod_article.transparenz.bg-light { background: url("../bilder/Bild%204_filter.jpg") top center / cover; }
.mod_article.pink.bg-light { background: url("../bilder/Gartenpflanzen_filter.jpg") top center / cover; }

/* Trennlinie im Footer, vorher HTML-Element <hr style="border-color:#fff"> (Bootstrap 4: margin 1rem 0) */
.trenner-oben { border-top: 1px solid #fff; margin-top: 1rem; padding-top: 1rem; }

/* Grid-Abstand wie Bootstrap 4: Zeile -15 px, Spalten je 15 px Innenabstand, keine Lücke */
.grid_start { gap: 0; margin-left: -15px; margin-right: -15px; }
.grid_start > .ce_cp_column_start { padding-left: 15px; padding-right: 15px; min-width: 0; }

/* Navigation: Contao-Standard (nav_default) statt Bootstrap-Navbar (nav_bs) */
#header .mod_navigation ul { list-style: none; margin: 0; padding: 0; }
#header .mod_navigation a, #header .mod_navigation strong { display: block; }
@media (min-width: 993px) {
  #header .mod_navigation .level_1 { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  #header .mod_navigation .level_1 > li { position: relative; }
  #header .mod_navigation .level_1 > li > a, #header .mod_navigation .level_1 > li > strong { padding: .5rem 1rem; }
  #header .mod_navigation .level_1 > li.submenu > a::after, #header .mod_navigation .level_1 > li.submenu > strong::after {
    display: inline-block; margin-left: .255em; vertical-align: .255em; content: "";
    border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; }
  #header .mod_navigation .level_2 { display: none; position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 10rem;
    padding: .5rem 0; margin-top: .125rem; background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: .25rem; }
  #header .mod_navigation li.submenu:hover > .level_2, #header .mod_navigation li.submenu:focus-within > .level_2 { display: block; }
  #header .mod_navigation .level_2 a, #header .mod_navigation .level_2 strong { padding: .25rem 1.5rem; white-space: nowrap; color: #212529; }
  #header .mod_navigation .level_2 a:hover { background-color: #f8f9fa; }
  #header .mod_navigation .level_2 .active { color: #fff; background-color: #1E5B4E; }
}
@media (max-width: 992px) {
  #header .mod_navigation .level_1 > li > a, #header .mod_navigation .level_1 > li > strong { padding: .5rem 1rem; }
  #header .mod_navigation .level_2 { padding-left: 1rem; }
  #header .mod_navigation .level_2 a, #header .mod_navigation .level_2 strong { padding: .25rem 1rem; color: #fff; }
}

/* Bootstrap col-6 auch unter 576 px: zwei Spalten (Clickpress beginnt erst bei 576 px) */
@media (max-width: 575px) {
  .grid-klein-50 > .grid_start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Kopf: Bootstrap col-md-2 / col-md-10 */
@media (min-width: 768px) {
  .grid-kopf-2-10 > .grid_start { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); }
}

/* Bild im Textelement: Contao 5 media--left/right statt Bootstrap float-left/float-right */
#main .content-text.media, #header .content-text.media, #footer .content-text.media { display: block; } /* Bootstrap 4 .media = flex */
.media--right > figure { float: right; }
.media--left > figure { float: left; }

/* Galerie: Contao 5 (ul/li) statt Bootstrap-Galerie (col-6 col-md-3 / col-md-4, 30 px Abstand) */
.content-gallery > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) {
  .content-gallery--cols-3 > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-gallery--cols-4 > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.content-gallery img { width: 100%; height: auto; }

/* Formulare: Contao-Standardfelder im Stil der bisherigen Bootstrap-Felder (form-group, form-control, btn-primary) */
.formbody .widget { margin-bottom: 1rem; }
.formbody .widget > label { display: inline-block; margin-bottom: .5rem; }
.formbody .widget .invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.formbody input.text, .formbody input[type="email"], .formbody input[type="tel"], .formbody input[type="number"], .formbody textarea, .formbody select {
  display: block; width: 100%; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; color: #495057;
  background-color: #fff; border: 1px solid #ced4da; border-radius: .25rem; }
.formbody input.text, .formbody input[type="email"], .formbody select { height: calc(1.5em + .75rem + 2px); }
.formbody fieldset.checkbox_container { border: 0; margin: 0; padding: 0; }
.formbody fieldset.checkbox_container input { margin-right: .5rem; }
.formbody button.submit { display: inline-block; font-size: 1rem; line-height: 1.5; cursor: pointer;
  background: #1E5B4E; border: 1px #1E5B4E solid; color: #fff; padding: 10px 25px; border-radius: 5px; }
.formbody button.submit:hover { background: #ED1550; border: 1px #fff solid; }

/* Contao 5 gibt Sprunglinks mit .invisible aus (Navigation überspringen): nicht anzeigen */
.invisible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
