/* Landbäckerei Tönjes Theme */
/*
Grün #164f1e
Gelb #ffd900
*/
@font-face {
  font-family: 'metaplusnormal-_capsregular';
  src: url('../Fonts/metaplusnormal-caps-webfont.woff2') format('woff2'),
       url('../Fonts/metaplusnormal-caps-webfont.woff') format('woff'),
       url('../Fonts/metaplusnormal-caps-webfont.ttf') format('truetype');
  font-weight: normal;
  font-display: auto;
  font-style: normal;
}

body {
  background: #434343;
}

body > div.container,
body > nav.lbt-pagination {
  margin-bottom: 30px;
}

.max-1920 {
  max-width: 1920px;
}

/* img {
  height: auto;
  width: 100%;
} */

/* navbar */
nav#topNav,
nav#subNav {
  background: #164f1e;
  border-bottom: 2px solid #a0a0a0;
  padding-bottom: 0;
  padding-top: 0;
}

nav#topNav,
nav#subNav,
nav .navbar-brand{
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-family: "metaplusnormal-_capsregular";
}

nav#topNav {
  border-top: 2px solid #a0a0a0;
}

nav#topNav a,
nav#subNav a {
  color: #eee;
  padding-top: 0;
  padding-bottom: 0;
}

nav#topNav a:hover,
nav#topNav a:focus,
nav#topNav .active a,
nav#subNav a:hover,
nav#subNav a:focus,
nav#subNav .active a{
  color: #ffd900;
}

@media (min-width: 1921px) {
  nav#topNav,
  nav#subNav {
    margin: 0 auto;
  }
}
/* navbar end */

/* page banner */
header .page-header {
  margin-top: 20px;
}

header .page-banner .page-title {
  color: #eee;
  text-shadow: 5px 5px 5px #000;
  text-align: center;
  letter-spacing: 5px;
  font-family: "metaplusnormal-_capsregular";
  font-size: 5em;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 5px;
  left: 0;
}

header .page-banner div {
  padding: 0;
  overflow: hidden;
}

header .page-banner {
  min-height: 150px;
  box-shadow: 0 10px 7px;
  border: 4px solid #164f1e;
}

@media (max-width: 576px) {
    header .page-banner div:nth-child(3) {
      display: none;
    }
}

@media (max-width: 768px) {
    header .page-banner div:nth-child(4) {
        display: none;
    }
    header .page-banner .page-title {
      font-size: 8vw;
    }
}

@media (max-width: 992px) {
    header .page-banner div:nth-child(5),
    header .page-banner div:nth-child(6) {
        display: none;
    }
}

@media (min-width: 1921px) {
  header .page-header {
    margin: 20px auto 0 auto;
  }
}
/* page banner */

/* header start page */
.lbt-home {
  box-shadow: 0 10px 15px;
}

.lbt-home .lbt-logo,
.lbt-home .lbt-slider {
  padding: 0;
}

.lbt-home .ce-gallery{
  margin-bottom: 0;
}

.lbt-home figure{
  margin: 0;
  width: 100%;
}

.lbt-home .ce-outer,
.lbt-home .ce-inner,
.lbt-home .ce-column{
  width: 100%;
}

@media (max-width: 768px) {
    header div.lbt-home div.lbt-slider:nth-child(3) {
        display: none;
    }
    .lbt-home .lbt-logo img {
      margin: 0 auto;
    }
}

@media (max-width: 992px) {
    header div.lbt-home div.lbt-slider:nth-child(1) {
        display: none;
    }
}

@media (min-width: 1921px) {
  header .lbt-home {
    margin: 0 auto;
  }
}
/* header start page end */

/* content box */
.frame-layout-1,
.frame-layout-2,
.frame-layout-3 {
  background: #eee;
  border: 4px solid #164f1e;
  box-shadow: 10px 10px 15px;
  padding: 10px;
  margin-top: 20px;
}

.frame-layout-3,
.frame-layout-3 .lbt-banner .lbt-banner-item {
  padding: 0;
}

.frame-layout-3 .lbt-banner {
  max-height: 170px;
}

.frame-layout-3 header {
  position: absolute;
  z-index: 2;
  padding-top: 3rem;
  right: 0;
  bottom: 5px;;
  left: 0;
}

a.lbt-banner-link {
  color: inherit;
}

a.lbt-banner-link:hover .frame-layout-3 header h2,
a.lbt-banner-link:focus .frame-layout-3 header h2 {
  color: #ffd900;
}

.frame-layout-3 header .ce-headline-left,
.frame-layout-3 header .ce-headline-default {
  margin-left: 20px;
}

.frame-layout-3 header .ce-headline-right {
  margin-right: 20px;
}

.frame-layout-3 header h1,
.frame-layout-3 header h2,
.frame-layout-3 header h3,
.frame-layout-3 header h4,
.frame-layout-3 header h5,
.frame-layout-3 header h6 {
  color: #eee;
  text-shadow: 5px 5px 5px #000;
  /* text-align: center; */
  letter-spacing: 5px;
  font-family: "metaplusnormal-_capsregular";
  font-size: 5em;
}

.frame-border-yellow {
  border-color: #ffd900;
}

.frame-border-yellow-nosh {
  border-color: #ffd900;
  box-shadow: none;
}

.frame-border-green-nosh {
  box-shadow: none;
}

.frame-no-border {
  border: none;
}

/* @media (max-width: 576px) {
    .frame-layout-3 .lbt-banner div div div.lbt-banner-item:nth-child(2) {
      display: none;
    }
} */

@media (max-width: 768px) {
    .frame-layout-3 .lbt-banner div div div.lbt-banner-item:nth-child(3) {
        display: none;
    }
    .frame-layout-3 header h1,
    .frame-layout-3 header h2,
    .frame-layout-3 header h3,
    .frame-layout-3 header h4,
    .frame-layout-3 header h5,
    .frame-layout-3 header h6 {
      font-size: 13vw;
    }
}

@media (max-width: 992px) {
    .frame-layout-3 .lbt-banner div div div.lbt-banner-item:nth-child(4) {
        display: none;
    }
}

@media (min-width: 1200px) {
    .frame-layout-2 {
      overflow-y: scroll;
      height: 73vh;
    }
}
/* content box end */

/* card home */
.frame-layout-4 {
  margin-top: 20px;
}

.frame-layout-4 .card {
  border: 4px solid #164f1e;
  box-shadow: 10px 10px 15px;
  background-color: #eee;
  border-radius: 0;
  min-height: 346px;
}

.frame-layout-4 .card .card-header {
  padding: 0;
  background: #164f1e;
  color: #eee;
  font-family: "metaplusnormal-_capsregular";
  font-size: 1.2em;
  border-radius: 0;
}

.frame-layout-4 .card .card-body {
  padding: 5px 10px;
  line-height: 1.1;
}

.frame-layout-4 .card .card-body p {
  margin-bottom: 0;
}

.frame-layout-4 .lbt-card-link {
  color: inherit;
  text-decoration: none;
}

.frame-layout-4 .lbt-card-link:hover .card .card-header {
  color: #ffd900;
}

@media (max-width: 576px) {
  .frame-layout-4 .card .ce-column {
    width: 100%;
  }
  .frame-layout-4 .card .ce-column img{
    margin: 0 auto;
  }
}
/* card home end */

/* footer */
footer {
  background: #164f1e;
  border-top: 2px solid #a0a0a0;
}

footer p {
  color: #eee;
  font-size: 0.8rem;
}

@media (min-width: 1921px) {
  footer {
    margin: 0 auto;
  }
}
/* footer end */

/* product list */
.product-list .product-item {
  background: #eee;
  border: 2px solid #eee;
  box-shadow: 10px 10px 15px;
  border-bottom: 5px solid #eee;
  padding: 0;
}

.product-list .product-list-item {
  padding: 20px 10px 0 10px;
}

.product-list .product-item:hover,
.product-list .product-item:focus {
  border-bottom: 5px solid #164f1e;
}

.product-list .product-item:hover a,
.product-list .product-item:focus a {
  text-decoration: none;
}

.product-list .product-item .product-image .ce-gallery {
  margin-bottom: 5px;
}

.product-list .product-item .product-title {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 0;
  width: auto;
  color: #000;
  font-family: "metaplusnormal-_capsregular";
}

@media (max-width: 576px) {
  .product-list .product-item {
    max-width: 265px;
    margin: 0 auto;
  }
}
/* product list */

/* category list */
/* .category-list {
  padding-top: 1vh;
} */

.category-list .category-list-item a:hover .category-description .category-title {
  color: #164f1e;
}

.category-list .category-list-item {
  background: #eee;
  border: 4px solid #164f1e;
  box-shadow: 10px 10px 15px;
  margin-top: 20px;
}

.category-list .category-list-item a {
  text-decoration: none;
  color: #000;
}

.category-list .category-list-item .category-description h2 {
  color: #eee;
  text-shadow: 5px 5px 3px #000;
  letter-spacing: 5px;
  font-family: "metaplusnormal-_capsregular";
  font-size: 3em;
}

.category-list .category-list-item .category-description h2,
.category-list .category-list-item .category-description .category-text {
  margin: 10px 30px;
  line-height: 1.2;
}

.category-list .category-list-item .ce-gallery {
  margin-bottom: 0;
}

.category-list .category-list-item .category-image,
.category-list .category-list-item .category-text {
  padding: 0;
}

.category-list .category-list-item .category-text p {
  margin: 0;
}

@media (max-width: 576px) {
  .category-list .category-list-item .category-description h2,
  .category-list .category-list-item .category-description .category-text {
    margin: 0 0 5px 0;
  }
}

@media (max-width: 768px) {
  .category-list .category-list-item .category-description h2 {
    font-size: 8vw;
  }
}
/* category list end */

/* pagination */
.lbt-pagination {
  margin-top: 20px;
}

.lbt-pagination .pagination .page-item .page-link{
  color: #eee;
  border: none;
  background: none;
}

.lbt-pagination .pagination .page-item.active .page-link {
  background-color: #164f1e;
}
/* pagination end */

/* form */
.form-navigation .btn-toolbar {
  justify-content: center;
}

form {
  margin-top: 20px;
}

form .form-check {
  display: inline;
  position: static;
  padding-right: 1rem;
}

form input[type="checkbox"] {
  margin-left: -20px;
}

form fieldset {
  border: 1px solid #164f1e;
  box-shadow: 5px 5px 10px;
  background: #eee;
  padding: 10px;
  /* Vorher height: 97%. Das ging nur auf, solange EXT:form je Spalte genau ein
     fieldset ausgab (TYPO3 11). TYPO3 14 schachtelt Radio- und Checkbox-Gruppen
     in ein weiteres fieldset - das bekam dann 97 % der Höhe des äusseren, also
     773 px fuer drei Optionen, und der restliche Inhalt lief unten aus dem
     Kasten heraus. min-height haelt die Kaesten nebeneinander gleich hoch,
     laesst sie aber mit dem Inhalt wachsen. */
  min-height: 100%;
}

/* Das innere fieldset der Radio-/Checkbox-Gruppen ist reine Gruppierung und
   bekommt daher keine zweite Umrandung und keine erzwungene Höhe. */
form fieldset fieldset {
  border: 0;
  box-shadow: none;
  background: none;
  padding: 0;
  min-height: 0;
}

/* Die Gruppenbezeichnung steckt in TYPO3 14 in einem <legend>, das über
   Bootstraps Reboot 1.5rem gross wäre. Vorher war es ein normales Label. */
form fieldset legend {
  font-size: inherit;
  margin-bottom: 0;
}

/* Einzelne Checkboxen gibt TYPO3 14 als .form-element-check mit
   .form-check-wrapping-label aus - also ohne die Klasse .form-check, deren
   padding-left den absolut positionierten Kasten aufnimmt. Ohne Einrückung
   sitzt die Checkbox 1.25rem links ausserhalb des Feldes. */
form .form-element-check .form-check-wrapping-label {
  position: relative;
  display: block;
  padding-left: 1.75rem;
}

/* Optionen einer Radio-Gruppe sind per .form-check inline und fliessen deshalb
   im Textfluss um. Da die Labeltexte unterschiedlich lang sind, begann die
   zweite Option jeder Zeile an einer anderen Stelle - im Bewerbungsformular
   wanderte die Kante um bis zu 80 px. Das Raster gibt allen Optionen dieselbe
   Spaltenbreite. auto-fit statt einer festen Spaltenzahl, damit schmale
   Spalten einspaltig bleiben, anstatt die langen Bezeichnungen
   ("Qualitaetssicherung/Qualitaetsmanagement") ueber die Nachbarspalte laufen
   zu lassen. */
form .form-element-radio > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  column-gap: 1rem;
  align-items: start;
}

form .form-element-radio .form-check {
  display: block;
  padding-right: 0;
}

/* Der Absenden-Button steht am Ende des Formulars und gehoert an dessen
   rechten Rand, nicht unter die erste Spalte. */
form .actions {
  text-align: right;
}

form .input .form-control:focus {
  border-color: #164f1e;
  box-shadow: 0 0 0 .3em rgba(22,79,30,.25);
}

form#kontaktformular .input textarea {
  min-height: 210px;
}

form#ausbildung_Praktikum .input textarea {
  min-height: 178px;
}

form#bewerbung .input textarea {
  min-height: 240px;
}
/* form end */

/* button */

.btn.btn-primary {
  color: #eee;
  background-color: #164f1e;
  border-color: #164f1e;
  border-radius: 0;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  color: #ffd900;
}

/* button end */

/* form send ok */
.send-ok {
  text-align: center;
  margin-top: 20px;
  color: #164f1e;
}
/* form send ok end */

/* error page */
.lbt-err {
  text-align: center;
  margin-top: 20px;
  color: #a94442;
}
/* error page end */

/* box */
.container .lbt-box {
  background: #eee;
  border: 4px solid #164f1e;
  box-shadow: 10px 10px 15px;
  margin-top: 20px;
  padding-bottom: 20px;
}

.container .lbt-box .frame-layout-0 {
  margin-top: 20px;
}

.container .lbt-box .product-page-image {
  padding-left: 20px;
  padding-right: 20px;
}

.container .lbt-box .product-page-image .ce-gallery {
  margin: 0;
}
/* box end */

/* popup */
#lbt-popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(100,100 ,100 , 0.7);
  z-index: 1400;
}

#lbt-popup-content {
  /* Mittig im Fenster. Vorher stand der Stoerer durch die Kombination aus
     position: absolute und Prozentabstaenden merklich links: bei 1400 px
     Fensterbreite 350 px zum linken, aber 553 px zum rechten Rand. */
  position: fixed;
  /* Zentrierung ueber inset + margin:auto und nicht ueber left:50% mit
     transform: bei einem Element ohne feste Breite wuerde left:50% die
     verfuegbare Breite auf die halbe Fensterbreite begrenzen und den Stoerer
     unnoetig schmal machen (bei 420 px waren es nur noch 210 statt 378 px). */
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: 90%;
  /* Zu hoher Inhalt scrollt im Stoerer, statt aus dem Fenster zu laufen. */
  max-height: 85vh;
  overflow-y: auto;
  background-color: #eee;
  border: 4px solid #164f1e;
  box-shadow: 10px 10px 15px;
  padding: .5em;
  z-index: 1500;
}

#lbt-popup-content h1,
#lbt-popup-content h2,
#lbt-popup-content h3,
#lbt-popup-content h4,
#lbt-popup-content h5,
#lbt-popup-content h6 {
  font-family: "metaplusnormal-_capsregular";
}

#lbt-popup-close {
  position: absolute;
  color: #164f1e;
  top: 0;
  right: 0;
  margin-right: 1em;
  margin-top: 1em;
  cursor: pointer;
}

#lbt-popup-close:hover,
#lbt-popup-close:focus {
  color: #ffd900;
}

@media (min-width: 992px) {
  #lbt-popup-content {
    max-width: 50%;
    padding: 1em;
  }
}

/* Sanftes Einblenden beim Seitenaufbau. Als CSS-Animation und nicht per
   JavaScript, damit der Stoerer auch ohne JS sichtbar ist und es kein
   Aufblitzen gibt. Das Ausblenden macht lbt-ui.js mit derselben Dauer. */
@keyframes lbt-stoerer-flaeche-ein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lbt-stoerer-inhalt-ein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

#lbt-popup {
  /* backwards und nicht both: nach der Animation gilt wieder der
     normale Wert, sonst koennte lbt-ui.js die Deckkraft nicht mehr
     herunterfahren - Animationen schlagen Inline-Styles. */
  animation: lbt-stoerer-flaeche-ein 450ms ease-out backwards;
}

#lbt-popup-content {
  animation: lbt-stoerer-inhalt-ein 450ms ease-out backwards;
}

@media (prefers-reduced-motion: reduce) {
  #lbt-popup,
  #lbt-popup-content {
    animation: none;
  }
}
/* popup end */

/* osm map */
.leaflet-popup-content .lbt-location-title {
  font-size: 1.4em;
}

.leaflet-popup-content .lbt-location-desc {
  margin-top: 10px;
}

.leaflet-popup-content .lbt-location-data {
  list-style: none;
  margin-bottom: 0;
  margin-top: 10px;
  padding-left: 0;
}
/* osm map end */

#lbt-popup-content .ce-gallery .ce-row {
  display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* Ermöglicht horizontales Scrollen */
    max-height: 200px; /* Maximalhöhe des Containers */
}
#lbt-popup-content .ce-gallery .ce-row .ce-column {
    max-height: 100%; /* Bildhöhe passt sich der Containerhöhe an */
    width: auto; /* Breite des Bildes wird automatisch angepasst */
    flex-shrink: 1 !important;; /* Verhindert, dass Bilder in der Breite gestaucht werden */
}

#lbt-popup-content .ce-gallery .ce-row .ce-column img{
    max-width: 100%; /* Stellt sicher, dass das Bild nicht breiter als die Spalte ist */
    height: auto; /* Hält die Proportionen der Bilder aufrecht */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: .4rem;
    padding: .4rem;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    padding: .8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: .9rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}
.card span {
    white-space: nowrap;
}

.info {
    display: flex;
    margin-bottom: .2rem;
}

.info label {
    flex-basis: 7rem; /* Breite des Labels */
    font-weight: bold;
    margin-bottom: 0;
}

.info span {
    flex-grow: 1;
}

#c503 .radio,#c503 .checkbox {
 margin-left: 1rem;
}
#c503 .form-check{
  display: block
}