:root {
  --primary-color: #96054B;
  --secondary-color: #CD0069;
  --bg-color: #EAEAEA;
  --brcr-color: #EFEFEF;
  --text-color: #333333;
  --header-bg: #FFFFFF;
  --nav-accent:#cd0069;
  --nav-stripe:3px;
  --nav-color:#333;
  --nav-color-hover:#cd0069;
  --nav-bg-dropdown: #fff;
  --nav-shadow:0 4px 16px rgba(0,0,0,.1);
  --nav-gap:2rem;
  --dropdown-speed:0.25s;
  --header-height:80px;
}

*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 100%; /* Basis für rem-Einheiten */
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-color);
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}
@media screen and (max-width:1000px) {
  body {font-size:1.35rem}
}
@media screen and (max-width:600px) {
  body {font-size:1.25rem}
}
@media screen and (max-width:450px) {
  body {font-size:1.15rem}
  :root {--header-height: 60px;}
}

/* open-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/open-sans-v44-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/open-sans-v44-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/open-sans-v44-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/open-sans-v44-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/open-sans-v44-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/open-sans-v44-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Raleway */
/* raleway-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/raleway-v37-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/raleway-v37-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* raleway-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/raleway-v37-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Courgette */
@font-face {
  font-display: swap;
  font-family: 'courgette';
  src: url('fonts/courgette-regular.woff2') format('woff2'),
       url('fonts/courgette-regular.woff')  format('woff'),
       url('fonts/courgette-regular.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
}
.courgette {
  font-family: 'courgette', cursive;
  color: var(--primary-color);
}

/* HEADER */
.header {
  width:100%;
  margin:0;
  border-bottom: 0.5px solid var(--primary-color);
  position: sticky;
  top:0;
  z-index:200;
  height: var(--header-height);
  background-color:var(--header-bg);
}
.header-flexbox {
  width:100%;
  display:flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.header-item-1 {
  flex:1;
  text-align:left;
  padding:1rem 2rem 1rem 1rem;
  min-width:300px;
  height: 100%;
}
.header-item-2 {
  flex: 4;
  padding:0;
  margin:0;
  height: 100%;
}
.header-item-3 {
  flex:0;
  justify-content: flex-end;
  padding:1rem;
  height: 100%;
}

/* Desktop-Navigation */
/* Desktop-Navigation */
/* Desktop-Navigation */
nav {
      display: flex;
      justify-content: center;
      height: 100%;
    }
nav > ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: var(--nav-gap);
      height: 100%;
    }
/* ── Hauptmenü-Item: eigene Flexbox mit zwei Zeilen ── */
nav > ul > li {
      position: relative;
      display: flex;
      flex-direction: column;  /* Zeile 1: Strich  |  Zeile 2: Link */
    }
/* Zeile 1: Oberstrich */
nav > ul > li::before {
      content: '';
      height: var(--nav-stripe);
      background: var(--nav-accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .25s ease;
      flex-shrink: 0;
    }
nav > ul > li:hover::before,
nav > ul > li:has(> a.active)::before {
      transform: scaleX(1);
    }
/* Zeile 2: Link nimmt restliche Höhe, Text vertikal zentriert */
nav > ul > li > a {
      flex: 1;
      display: flex;
      align-items: center;
      padding: 0 0.25rem;
      font-size: 1.25rem;
      color: var(--nav-color);
      text-decoration: none;
      white-space: nowrap;
      transition: color .2s;
    }
nav > ul > li:hover > a,
nav > ul > li > a.active {
  color: var(--nav-color-hover);
}
/* ── Dropdown ── */
nav ul ul {
      list-style: none;
      margin: 0;
      padding: 6px 0;
      position: absolute;
      top: 100%;        /* unterer Rand des <li> = unterer Header-Rand */
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      min-width: 180px;
      background: var(--nav-bg-dropdown);
      box-shadow: var(--nav-shadow);
      border-top: var(--nav-stripe) solid var(--nav-accent);
      border-radius: 0 0 4px 4px;

      /* Fade */
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--dropdown-speed) ease;
    }
nav > ul > li:hover > ul {
      opacity: 1;
      pointer-events: auto;
    }
/* Dropdown-Links */
nav ul ul li {
      display: block;
    }
nav ul ul a {
      display: block;
      padding: 0.5rem 1rem;
      font-size: 1.1rem;
      color: var(--nav-color);
      white-space: nowrap;
      transition: color .2s, background .2s;
      text-decoration: none;
    }
nav ul ul li:hover > a {
      color: var(--nav-color-hover);
      background: #f5f5f5;
    }

/* --- Mobile Overlay-Navigation --- */
/* --- Mobile Overlay-Navigation --- */
/* --- Mobile Overlay-Navigation --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  z-index: 1000;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.35s ease;
}
.nav-overlay__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}
/* --- Globale nav-Regeln zurücksetzen --- */
.nav-overlay nav {
  display: block !important;
  height: auto !important;
  justify-content: unset !important;
  padding: var(--header-height) 0 2rem;
}
.nav-overlay nav > ul {
  display: block !important;
  height: auto !important;
  gap: unset !important;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-overlay nav > ul > li {
  display: block !important;
  flex-direction: unset !important;
  position: static !important;
  border-bottom: 1px solid #e5e5e5;
}
.nav-overlay nav > ul > li::before {
  display: none !important;
}
.nav-overlay nav > ul > li > a {
  display: flex !important;
  height: auto !important;
  flex: unset !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: #333 !important;
  text-decoration: none;
  white-space: normal !important;
}
.nav-overlay nav > ul > li > a.active {
  color: var(--primary-color) !important;
}
/* --- Untermenü-Toggle-Button --- */
.nav-overlay nav > ul > li > button.nav-overlay__toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto !important;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: #333 !important;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
/* --- Chevron --- */
.nav-overlay__chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
button.nav-overlay__toggle[aria-expanded="true"] .nav-overlay__chevron {
  transform: rotate(180deg);
}
/* --- Untermenü (Accordion) --- */
.nav-overlay nav > ul > li > ul {
  display: block !important;
  position: static !important;
  top: unset !important;
  left: unset !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  background: #f7f7f7;
  min-width: unset !important;
}
.nav-overlay nav > ul > li > ul.is-open {
  max-height: 1000px;
}
.nav-overlay nav > ul > li > ul > li {
  display: block !important;
}
.nav-overlay nav > ul > li > ul > li > a {
  display: block !important;
  height: auto !important;
  padding: 0.75rem 1.25rem 0.75rem 2rem !important;
  font-size: 1.15rem !important;
  color: #555 !important;
  white-space: normal !important;
  background: none;
}
.nav-overlay nav > ul > li > ul > li > a:hover {
  color: var(--primary-color) !important;
  background: #efefef;
}
/* Ende Overlay */

/* Breadcrumb */
.breadcrumb {
  width:100%;
  background-color:var(--brcr-color);
  margin:0 auto;
}
.breadcrumb p {
  max-width:1000px;
  margin:0 auto;
  font-size:50%;
  font-weight:300;
  font-style:italic;
}
.breadcrumb_mob {
  width:100%;
  background-color:var(--brcr-color);
  margin:0 auto;
}
.breadcrumb_mob p {
  max-width:1000px;
  margin:0 auto;
  font-size:50%;
  font-weight:300;
  font-style:italic;
  padding:0.25rem 1rem;
}
a.breadcrumb_link {
  color:var(--text-color);
  text-decoration: none;
}
a.breadcrumb_link:hover {
  color:var(--secondary-color);
  text-decoration: underline;
}

/* inc.slider.php */
.slidertraeger {
  width:100%;
  margin:3rem auto 0 auto;
}
.slider {
  position: relative;
  width: 100%;
  max-width:1000px;
  margin:0 auto;
  overflow:hidden;
}
/* Slide 1 liegt unten, immer sichtbar */
.slide:first-child {
  position: relative;
}
/* Slide 2 liegt oben und blendet über */
.slide:nth-child(2) {
  position: absolute;
  inset: 0;
  margin-right:-1px;
  animation: ueberblenden 8s infinite alternate;
}
.slide picture,
.slide picture img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes ueberblenden {
  0%,  40% { opacity: 0; }
  60%, 100% { opacity: 1; }
}
/* Hero-Bild */
.herotraeger {
  width:100%;
  max-width:1000px;
  margin:3rem auto 0 auto;
  position:relative;
}
.herobild {
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
}
.herocaption {
  max-width:1000px;
  font-size:60%;
  font-weight:300;
  font-style:italic;
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.herobild2 {
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
  padding:5px;
  border:1px solid #efefef;
  box-shadow: 5px 10px 10px #efefef;
}

@media screen and (min-width:1000px) {
  .breadcrumb_mob {display:none;}
  .logo_links, .logo_mitte {display:none;}
  .header-item-3 img {display:none;}
}
@media screen and (max-width:1000px) {
  .header-item-1 {display:flex; flex:1; width:15%; align-items: center; min-width: 0;}
  .logo_ganz {display:none;}
  .header-item-2 {display:flex; flex:2; width:60%; align-items: center; justify-content: center;}
   nav {display:none;}
  .header-item-3 {display:flex; width:15%; align-items: center; margin-left: auto; flex: 1;}
  .header-item-3 img {width: clamp(60px, 10vw, 75px) !important;height: auto !important;}
  .breadcrumb {display:none;}
  .breadcrumb_mob {display:block;}
  .herobild2 {padding:0;border:0;box-shadow: none;}
}

/* MAIN */
main {
  width:100%;
  margin:0;
  padding:0;
}
.content {
  max-width:1000px;
  margin:0 auto;
  padding:1rem;
}
h1 {
  color: var(--text-color);
  font-family:'Raleway';
  font-size: clamp(1.5rem, 3vw, 3rem);
}
h2 {
  color: var(--primary-color);
  font-family:'Raleway';
  font-size: clamp(1.25rem, 2vw, 2rem);
}
.grau {
  width:100%;
  background-color:var(--bg-color);
}
.grau_content {
  max-width:1000px;
  margin:0 auto;
  padding:1rem;
}
a.mainlink {
  color:var(--primary-color);
  border-bottom: 1px dashed var(--secondary-color);
  text-decoration: none;
}
a.mainlink:hover {
  color:var(--nav-color);
  border-bottom: 2px dotted var(--primary-color);
}

.emslandlagerkarte {
  margin:0; 
  padding:0;
}
.emslandlagerkarte img {
  max-width:100%;
  height:auto;
}
.emslandlagerkarte figcaption {
  font-size:66%;
  margin:1rem 0;
  font-style: italic;
}
.begriffe {
  font-style: italic;
  color:var(--primary-color);
}
/* Bilderkasten */
.bildcontainer {
  display: flex;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  gap:10px;
}
.bild-wrapper {
  width: 50%;
}
.bild-wrapper img {
  width: 100%;
  height: auto;
}
.bildcontainer figure {
  margin: 0;
}
.bildcontainer figcaption {
  font-size: 0.85rem;
  font-style: italic;
  padding: 0.5rem 0;
  color: #666;
}
blockquote {
  margin: 2rem 0;
  padding: 1rem 2rem;
  border-left: 4px solid var(--primary-color);
}
blockquote p {
  font-style: italic;
  margin: 0 0 0.5rem 0;
}
blockquote footer {
  font-style: italic;
  font-size: 60%;
  color: #666;
  margin-top: 1rem;
  background-color: transparent;
}
.fussnote {
  color:var(--primary-color);
  text-decoration:none;
  border:1px dotted var(--primary-color);
  border-radius: 5px;
}
.fussnote:hover {
  color:white;
  background-color: var(--primary-color);
}
.anmerkung {
  font-style:bold;color:white;
  background-color:var(--primary-color);
  padding:0 3px;
}
.icon-flexbox {
  border:1px solid var(--secondary-color);
  display:flex;
  flex-wrap: wrap;
  width:100%;
}
.icon-item {
  width:100%;
  padding:1rem;
  display:flex;
  align-items: center;
}
.iconlink {
  text-decoration: none;
  color:#666;
}
.iconlink:hover {
  color:var(--secondary-color);
}

/* Events*/
.events {
  list-style-type:square;
  li::marker { color: var(--secondary-color); }
}
.einladung {
  width:250px;
  height:350px;
  margin-right:1rem;
  float:left;
}
@media screen and (max-width:500px) {
  .einladung {width:400px;height:560px;float:none;max-width:100%;height:auto;}
}

/* FÖERDERER */
.foerderer {
  background-color:var(--bg-color);
  width:100%;
  text-align:center;
  padding:4rem 0;
}
.foerder1, .foerder2 {
  max-width:100%;
  height:auto;
  margin:0 auto;
}
@media screen and (min-width:601px) {
  .foerder1 {display:block;}
  .foerder2 {display:none;}
}
@media screen and (max-width:600px) {
  .foerder1 {display:none;}
  .foerder2 {display:block;}
}

/* FOOTER */
footer {
  background-color:var(--bg-color);
  margin:0;
  padding: 0;
}
.footercontent {
  background-image: url('img/footer_bg4.svg');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  padding-top:15%;
}
.footer-flexbox {
  display:flex;
  flex-wrap:wrap;
  width:100%;
  max-width:1280px;
  justify-content:space-between;
  align-items:stretch;
  margin:0 auto;
  padding:1rem;
}
.footer-item {
  width:30%;
  padding:1rem;
}
.footer-item p {
  font-size:90%;
  padding:0.5rem;
}
.footerlink {
  border-bottom: 1px dashed var(--primary-color);
}
.footerlink:hover {
  background-color: var(--bg-color);
}
.footerlink a {
  color: var(--primary-color);
  text-decoration:none;
}
.footerlink a:hover {
  color: var(--nav-color);
}
@media screen and (max-width:800px) {
  .footer-item {width:48.5%;}
  .footer-item p {padding:0 0.5rem;}
}
@media screen and (max-width:450px) {
  .footer-item {width:100%;}
}
/* Barrierefrei */
/* Dropdown per JS öffnen (ergänzt das bestehende CSS-hover) */
.header-item-2 nav li:has(> ul) > ul.is-open {
    display: block; /* oder flex – je nachdem, was dein CSS verwendet */
}
 
/* Sichtbarer Fokus-Rahmen für Tastaturnutzer */
.header-item-2 nav a:focus-visible {
    outline: 2px solid var(--primary-color, #005a9c);
    outline-offset: 3px;
    border-radius: 2px;
}
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: .6rem 1.2rem;
    background: var(--primary-color, #005a9c);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    transition: top .15s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

