@font-face { font-family: "Merriweather"; src: url("../fonts/Merriweather-VariableFont_opsz,wdth,wght.ttf"); font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; }
@font-face { font-family: "Merriweather"; src: url("../fonts/Merriweather-Italic-VariableFont_opsz,wdth,wght.ttf"); font-style: italic; font-weight: 200 900; font-stretch: 75% 125%; }
@font-face { font-family: "Playfair"; src: url("../fonts/PlayfairDisplay-VariableFont_wght.ttf"); font-style: normal; font-weight: 200 900; }
@font-face { font-family: "Playfair"; src: url("../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf"); font-style: italic; font-weight: 200 900; }
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf"); font-style: normal; font-weight: 200 900; }
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf"); font-style: italic; font-weight: 200 900; }

:root {
  --font-family: "Merriweather", serif;
  --font-family-display: "Playfair", serif;
  --font-family-sans: "Open Sans", sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --color-bg: #faf9f9;
  --color-primary: #4472c4aa;
  --color-accent: #4472c4cc;
  --color-text: #222222;
  --color-muted: #4472c499;
  --color-bg-header: #4472c466;
  --color-bg-footer: #4472c4;
  --color-bg-highlight: #4caf5010;
  --color-bg-highlight: #4472c41a;
  --max-width: 1440px;
}

*, ::after, ::before { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { font-family: var(--font-family); font-size: 100%; hyphens: auto; }
body { margin: 0; color: var(--color-text); background: var(--color-bg); font-size: 1.125rem; font-size: 1rem; font-weight: var(--font-weight-normal); line-height: 1.6; }

h1,h2,h3 { font-family: var(--font-family-display); font-weight: var(--font-weight-bold); line-height: 1.4; margin: 1rem 0; hyphens: none; }
h1 { text-transform: uppercase; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.2em; }
b, strong { font-weight: var(--font-weight-bold); }
a { color: inherit; text-decoration: none; transition: .5s; }
a:hover { text-decoration: underline; transition: .5s; }
img { display: block; max-width: 100%; }
li::marker { color: var(--color-accent); }


nav ul { font-family: var(--font-family-sans); list-style: none; display: flex; gap: 1.5em; margin: 0; padding: 0; }
nav a { font-weight: var(--font-weight-normal); color: inherit; transition: .5s; }
nav a:hover {text-decoration: none; }
#hmenu a:hover,
#hmenu li.trail>a,
#hmenu strong { font-weight: var(--font-weight-normal); color: var(--color-muted); transition: .5s; }
#hmenu { color: var(--color-bg-footer); font-size: 1.2em; }
#nmenu a:hover,
#nmenu strong { font-weight: var(--font-weight-normal); color: #ffffffbb; transition: .5s; }

#switch { display: none; position: fixed; right: 1rem; top: 1rem; padding: .3em .5em; font-size: 1.5rem; color: #000; background-color: #cccccc99; border-radius: 4px; z-index: 10; }
#switch a:hover { text-decoration: none; } 

#header { background: var(--color-bg-header); }
#header .section-inner { padding-top: 1.5%; padding-bottom: 1.5%; }
#header figure { max-width: 33%; margin: 0 auto; }
#footer { font-family: var(--font-family-sans); color: #fff; background: var(--color-bg-footer); }
#footer .section-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75em; }
#footer p { margin: 0; }
#header,
#footer nav,
#footer nav a { color: #fff; }
#main a { font-weight: var(--font-weight-bold); color: var(--color-accent); }

.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 2em 1em; }

.highlight-section { background: var(--color-bg-highlight); }

.two-column>div, 
.three-column>div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr); gap: 2.5em; align-items: flex-start; }
.three-column>div { grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1fr); }

.mod_newslist { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1em 2em; align-items: flex-start; }
#kat-liste { background: var(--color-bg-highlight); border-top: 1px solid var(--color-bg-header); }
#kat-liste>div { padding-top: 1em; padding-bottom: 1em; }
#kat-liste ul { display: flex; flex-wrap: wrap; gap: 1em 2em; list-style: none; padding-left: 0; margin: .5em 0; }
#kat-liste li { border: 1px solid var(--color-muted); border-radius: 1em; padding: .2em .8em; }
#kat-liste a,
#kat-liste li.active strong { font-weight: var(--font-weight-normal); }
#kat-liste li.active>a { color: inherit; }
#kat-liste li.active>a:hover { text-decoration: none; }

.content-text.media--left figure,
.content-text.media--right figure { max-width: 50%; margin-right: 1em; margin-top: 1em; }
.content-text.media--right figure { margin-right: 0; margin-left: 1em; }

#hmenu { background-color: var(--color-bg-highlight); }
#hmenu .section-inner,
#footer .section-inner { padding: 1em 1em; }

/* Mitmachen-Formular */
select, input, textarea, .widget-submit>button { font-size: inherit; font-family: var(--font-family-sans); }
.widget { display: flex; margin-bottom: 0.5em; }
label { width: 12em; }
input,
textarea { width: 20em; }
.widget-submit button { padding: .3em 2em; background-color: var(--color-bg-footer); color: #fff; border: none; border-radius: 4px; }
span.mandatory { color: red; }
.widget-submit>button { cursor: pointer; }

/* Mobil */
@media (max-width: 768px) {
      #hmenu,
      #nmenu { display: none; }
      #switch { display: block; }
      .brand { font-size: 1.6em; }
      .two-column>div,
      .three-column>div,
      .contact-layout {
        grid-template-columns: 1fr;
      }

      #header figure { max-width: 50vw; }
}
@media (max-width: 583px) {
      .layout_latest { border-bottom: 1px solid var(--color-bg-footer); }
}
