/* fallback */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(/css/material-icons.woff2) format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12pt;
	font-style: normal;
    line-height: 1.4;
	background-color: #FFFEF9;
}

html {
	-webkit-text-size-adjust: none;
}

#background {
    position: absolute;
    background: #f5f5e7;
    width: 100%;
    height: 320px;
    z-index: 1;
}

#layout {
    position: relative;
    background-image: url(/media/navi_background_neu.png);
    background-repeat: repeat-x;
    z-index: 2;
}

#nav {
    position: relative;
    width: 100%;
    height: 30px;
    text-align: center;
    z-index: 10;
}

#nav_header {
    position: relative;
    margin: 0 auto;
    text-align: left;
    height: 110px;
    max-width: 700px;
    width: 100%;
    background-image: url(/media/header_neu.png);
    background-repeat: no-repeat;
}

#nav div.header {
    position: absolute;
    text-align: left;
    height: 110px;
    max-width: 700px;
    width: 100%;
}


#nav div.header button.logo {
    float: left;
    height: 80px;
    width: 170px;
    cursor: pointer;
    border: none;
    background: unset;
}

/* Hauptmenue */
#menu {
    position: relative;
    float: right;
    text-align: right;
    color: #f5f5e7;
    width: 170px;
    padding-top: 44px;
    z-index: 1000;
}

#main-navigation[hidden] {
    display: none;
}

#menu ul.sub1 {
    background: #173E1F;
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-width: 210px;
    margin-left: 0px;
    margin-bottom: 0px;
    margin-right: 0px;
    margin-top: 0px;
    padding: 0px;
}

#menu ul li {
    width: 100%;
    border-top: 1px solid #f5f5e7;
    display: block;
    margin-right: -1px;
    list-style: none;
    list-style-type: none;
}

#menu ul li a.sub {
    color: #f5f5e7;
    font-size: 11pt;
    margin: 0;
    padding: 8px;
    display: block;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
}

#menu ul li a.sub:hover {
    background: #f5f5e7;
    color: #173E1F;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 14pt;
    cursor: pointer;
    color: #f5f5e7;
    padding: 0px 0px;
}

.menu-toggle i.material-icons {
    vertical-align: middle;
    margin-bottom: 4px;
}

#content {
    position: relative;
    width: auto;
    margin: 50px 0px;
    padding: 0px 0px 0px 0px;
    text-align: center;
    z-index: 5;
}

#content div.content_intro {
    position: relative;
    margin: 0px auto;
    padding: 0px 0px;
    width: auto;
    max-width: 700px;
    text-align: left;
    background: #f5f5e7;
    overflow: hidden;
}

#content div.content_intro span {
    position: absolute;
    width: 120px;
    height: 120px;
    right: 20px;
    top: 20px;
    border-radius: 50%;       /* Kreisform */
    overflow: hidden;         /* alles außerhalb abschneiden */
    display: inline-block;
}

#content div.content_intro span img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Bild so skalieren, dass es die Box füllt */
  object-position: center;  /* zentriert den Bildausschnitt */
}

#content div.text {
    position: relative;
    margin: 0px auto;
    padding: 0px 0px;
    width: auto;
    max-width: 700px;
    text-align: left;
}

#content div.intro {
    position: relative;
    width: 100%;
    max-width: 700px;
}

#content div.infobox {
    position: relative;
    padding: 10px 0px 25px 25px;
    width: 200px;
    float: right;
}

#content div.infoboxalternativ {
    display: none;
}

#content div.intro_text {
    position: absolute;
    right: 25px;
    top: 25px;
    text-align: right;
    color: #f5f5e7;
    width: 100%;
    font-size: 28pt;
    font-weight: 600;
}

#content img.intro {
    height: 240px;
}

#content div.text h1 {
    font-size: 1.3em;
    text-align: left;
    color: #173E1F;
    margin-top: 33px;
}

#content div.text hr {
    border-top: 1px solid #999;
    border-bottom: none;
    margin: 15px 35px;
}

#content div.text h2 {
    font-size: 1.2em;
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
}

#content div.text h3 {
    font-size: 1.1em;
    font-style: italic;
    text-align: left;
    margin-top: 36px;
}

#content div.text h4 {
    font-size: 1.0em;
    margin-top: 18px; 
}

#content div.text p {
    font-size: 1.0em;
    text-align: left;
}

#content div.text ul {
    padding-left: 16px;
}

#content div.text ul li {
    font-size: 1.0em;
    text-align: left;
    margin-top: 12px;
}

#content div.text img.bildrechts {
    float: right;
    margin-left: 7px;
    margin-bottom: 7px;
    width: 250px;
}

#content div.text img.bildlinks {
    float: left;
    margin-right: 7px;
    margin-bottom: 7px;
    width: 250px;
}

#content div.text p.fussnote {
    font-size: 0.9em;
    margin-top: 25px;
}

#content div.text a {
    color: #173E1F;
}

#content div.infobox h4 {
    font-weight: bold;
    margin: 0px 0px 10px 0px;
    font-size: 0.9em;
    font-style: italic;
}

#content div.infobox p {
    margin: 10px 0px 0px 0px;
    font-size: 0.9em;
    font-style: italic;
}

#footer {
    position: relative;
    width: auto;
    margin: 0px 0px 0px 0px;
    text-align: center;
    background-color: #173E1F;
    font-size: 9pt;
}

#footer div.address {
    margin: 10px auto 0px auto;
	max-width: 700px;
    width: auto;
    text-align: center;
    padding: 10px;
    color: #f5f5e7;
}

#footer br.umbruch {
    display: none;
}
#footer span.trenner {
    display: ;
}

#footer div.address a {
    color: #f5f5e7;
}

@media screen and (max-width: 800px) {
    body {
        font-size: 14pt;
    }
    #layout {
        width: auto;
        max-width: auto;
    }
    #nav div.image {
        width: auto;
        max-width: auto;
    }
    #menu {
        right: 0px;
    }

    #menu ul li a i {
        padding-right: 10px;
    }
    #menu ul li a span {
        display: none;
    }
    #content div.content_intro {
        padding: 0px 0px;
    }
#content div.content_intro span {
    position: absolute;
    width: 110px;
    height: 110px;
    right: -40px;
    top: 20px;
}
    #content div.intro {
        left:-50px;
    }
    #content div.intro_text {
        display: none;
    }
    #content div.text {
        width: auto;
        max-width: auto;
        padding: 0px;
    }
    #content div.infobox {
        display: none;
    }
    #content div.infoboxalternativ {
        display: inherit;
    }
    #content p, h1, h2, h3, h4 {
        margin-left: 7px;
        margin-right: 7px;
    }
    #content div.text ul {
        padding-left: 23px;
    }
    #footer div.address {
        width: auto;
        max-width: auto;
    }
    
    #footer br.umbruch {
        display: block;
    }
    #footer span.trenner {
        display: none;
    }

}

.breadcrumb {
  position: relative;
  padding: 0px 7px;
  width: auto;
  max-width: 700px;
  text-align: left;
  background: #f5f5e7;
  font-size: 0.9rem;
  margin: 10px auto 20px auto;
  background: #FFFEF9;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: rgb(23, 62, 31);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 6px;
  color: #999;
}

.breadcrumb a {
  color: rgb(23, 62, 31);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: #000;
  text-decoration: underline;
}



/* === KATEGORIE-BOXEN === */

.boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.box {
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(23, 62, 31);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.box:hover,
.box:focus {
  background: #f5f5e7;
}

.box:focus-visible {
  outline: 3px solid rgba(23,62,31,0.5);
  outline-offset: 2px;
}

.box-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.box h3 {
  color: rgb(23, 62, 31);
  font-size: 1.1rem;
  margin: 10px 10px 0;
  text-align: left;
}

.box p {
  margin: 5px 10px 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
  text-align: left;
}

/* 1 Spalte bei kleiner Breite */
@media (max-width: 420px) {
  .boxes {
    grid-template-columns: 1fr;
  }
}

/* === ARTIKEL-TEASER === */

.article-teasers {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0;
}

.article-box {
  display: flex;
  align-items: flex-start;
  border: 1px solid rgb(23, 62, 31);
  background: #fff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.article-box:hover,
.article-box:focus {
  background: #f5f5e7;
}

.article-box:focus-visible {
  outline: 3px solid rgba(23,62,31,0.5);
  outline-offset: 2px;
}

/* Bild links im festen 4:3 Format */
.article-image {
  position: relative;
  width: 200px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text rechts daneben */
.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 15px 0 15px;
  text-align: left;
}

.article-content h3 {
  color: rgb(23, 62, 31);
  font-size: 1.1rem;
  margin: 0 0 5px;
}

.article-content p {
  margin: 0!important;
  line-height: 1.4;
  color: #333;
}

/* Mobile: Bild oben, Text darunter */
@media (max-width: 600px) {
  .article-box {
    flex-direction: column;
    border: none;
  }

  .article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .article-content {
    padding: 10px;
  }
}
