/* -------------------------------------------- Import Google Fonts ------------------------------------------- */

/* atkinson-hyperlegible-regular - latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  src: url('../font/AtkinsonHyperlegibleNext-Regular.woff2') format('woff2');
}

/* ---------------------------------------------- Normalisierung ---------------------------------------------- */
/* set box-sizing to border-box for all elements */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --hell-orange: #f1a747;
  /* hell hrange */
  --orange: #db5d20;
  /* orange */
  --rot: #990000;
  /* rot*/
  --dunkel-gruen: #006600;
  /*dunkelgrün*/
  --mittel-gruen: #18782f;
  /*mittelgrün*/
  --hell-gelb: #fffbd3;
  /*hellgelb*/
  --white: #FFFFFF;
  /* Weiß */
  --black: #000000;
  /* Schwarz */
  --light-gray: #f2f2f2;
  /* Hellgrau */
  --mid-gray: #cccccc;
  /* Mittelgrau */
  --dark-gray: #888888;
  /* Dunkelgrau */
  --charcoal: #404040;
  /* Kohle */
}


/*just to test the git functions */

/*
*:focus:not(:focus-visible) {
    outline: none
}

*:focus-visible {
    outline: 2px dashed currentColor;
    outline-offset: 2px;
}

*/

/* fixing vertical scrolbar */
body,
html {
  min-height: 100.5%;
  padding: 0;
  margin: 0;
}

html {
  font-family: 'Atkinson Hyperlegible Next', Arial, sans-serif;
  font-size: 100%;
  background: url("../img/ricepaper2.png");
  background-color: var(--light-gray);
}

/* default font and background settings, min-width */
body {
  font-size: 16px;
  /* Fallback */
  font-size: 1.2rem;
  color: black;
  background: white;
  margin: 0 auto;
  min-width: 16em;
  max-width: 70em;
}

a img,
:link img,
:visited img {
  border: 0;
}

/*.block{ overflow: hidden; }*/

.inside {
  position: relative;
}


/* font-size for headlines */
h1 {
  font-size: 26px;
  /* Fallback */
  font-size: 1.625rem;
}

h2 {
  font-size: 22px;
  /* Fallback */
  font-size: 1.375rem;
}

h3 {
  font-size: 18px;
  /* Fallback */
  font-size: 1.125rem;
}

h4 {
  font-size: 16px;
  /* Fallback */
  font-size: 1rem;
}

h1,
h2,
h3,
h4 {
  /*margin: 16px 0; */
  /* Fallback */
  margin: 0;
  line-height: 100%;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
}

h1, h2 {
  color: var(--orange);
}

h2{
  margin-left: 0.5em;
}


p {
  margin: 0 0 0.5em;
  line-height: 1.3;
}

a,
a:link,
a:visited {
  /*font-weight: bold;*/
  text-decoration: underline;
  color: var(--dunkel-gruen);
}

a:hover,
a:active,
a:focus {
  text-decoration: none;
  background-color: var(--light-gray);
}

.extern {
  padding-right: 18px;
  background: url(../img/external-link_16.png) right no-repeat;
}

.download {
  padding-right: 18px;
  background: url(../img/downloads_16.png) right no-repeat;
}

.email {
  padding-right: 18px;
  background: url(../img/email_16.png) right no-repeat;
}

.clear {
  clear: both;
}

#wrapper {
  margin-top: 0em;
}

#header {
  padding: 0.5em;
}

#footer {
  padding: 0.5em;
}

#main {
  padding: 0.5em;
  float: none;
}

/* --------------------------- Styles for header and footer --------------------------- */
#header {
  /* background-image: url(../img/header_bg_1.png);*/
  background-color: var(--white);
  color: var(--black);
  overflow: visible;
  border-bottom: solid;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-bottom-color: var(--light-gray);
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  position: relative;
  /*height: 140px;*/
  /*z-index: 1000; */
  /* Sicherstellen, dass der Header über dem Main Content liegt */
}

#header .inside {
  border: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /*links ausrichten*/
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  margin-right: 10px;
}

#header h1 {
  font-size: 2em;
  font-weight: bold;
  padding-left: 0.5em;
  padding-bottom: 0em;
  margin-bottom: 0em;
  vertical-align: 1em;
  color: var(--orange);
  overflow: hidden;

}

.header-logo a {
  display: inline-flex;
}

.header-logo p {
  display: inline-flex;
}

.invisible {
  /*display: inline;
	height: 0;
	left: -1000px;
	overflow: hidden;
	position: absolute;
	top: -1000px;
	width: 0;*/
  position: absolute;
  left: -9999px;
}

.invisible:focus {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: var(--dark-gray);
  width: auto;
  color: var(--white);
  white-space: nowrap;
  /*verhindert das umbrechen, scheinbar gibt es übergeordnet irgendwo ein display block*/
  z-index: 1004;
}


#footer {
  background-color: var(--dark-gray);
  color: #ffffff;
  overflow: visible;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

#footer .inside {
  display: flex;
  justify-content: flex-end;
  /*rechtsbündig*/
}


/* --------------------------- Styles for main part --------------------------- */

/*
.mod_article{ margin-bottom: 1em; }
*/
/* -----------------------  navigation -------------------------- */

#menu-toggle {
  background: var(--dark-gray);
  border: none;
  cursor: pointer;
  height: 30px;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 3px;
  padding-bottom: 3px;
  border-radius: 5px;
  align-items: center;
  /* z-index: 1001; */
  /* Sicherstellen, dass der Button sichtbar ist */
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s;
  position: relative;
}


.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.menu-text {
  color: var(--white);
  font-size: 1.5em;
  margin-left: 10px;
  /* Abstand zwischen Hamburger-Symbol und Text */
}

#menu {
  overflow: visible;
  display: none;
 }

#menu[aria-hidden="true"] {
  display: none;
}

#menu[aria-hidden="false"] {
  display: block;
  position: absolute;
  top: 100%;
  /* Menü direkt unter dem Header platzieren */
  left: 0;
  width: auto;
  background-color: var(--orange);
  z-index: 1002;
  /* Über den anderen Inhalten */
  margin-top: 10px;
  /* Abstand zwischen Button und Menü */
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  ;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 10px;
  font-size: 1.2rem;
}

#menu ul.level_2 {
  margin-right: 0px;
}   
  

#menu li a,
#menu ul.level_2 li a {
  text-decoration: none;
  display: block;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 5px;
  padding-right: 5px;
  margin-bottom: 10px;
  background-color: var(--dark-gray);
  color: white;
}

#menu li.active a,
#menu ul.level_2 li.active a {
  background-color: white;
  color: var(--orange);
}

#menu li a:hover,
#menu li a:focus,
#menu ul.level_2 li a:hover,
#menu ul.level_2 li a:focus {
  background-color: var(--hell-orange);
  color: black;
}


#menu-toggle.open .hamburger {
  background: transparent;
}

#menu-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav {
  position: relative;
  top: 0;
  left: 0;
  width: 10em;
  background-color: var(--orange);
  color: white;
  display: flex;
  z-index: 1000;
  /* Über den anderen Inhalten */
}


/* Grundlegendes Styling */
.clear .level_2 {
  display: none;
  margin-left: 1rem;
}


.nav .submenu > a {
  position: relative;
  display: inline-block;
  padding-right: 48px; /* Platz für Pfeil-Zone */
  text-decoration: none;
  white-space: nowrap;

}



.nav .submenu > a::after {


  content: "▶";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.3); /* Trennlinie */
  cursor: pointer;
  pointer-events: auto; /* wichtig: erlaubt Klicks */
  transition: transform 0.3s ease;
 
}


/* Wenn geöffnet */
.nav .submenu.open > a::after {
  content: "▼"; /* Pfeil nach unten */
}

/* Sichtbarkeit bei geöffnetem Zustand */
.nav .submenu.open > .level_2 {
  display: block;
}




/* --------------- main content ---------------*/

.mod_article p {
  margin-left: 1em;
}

.main-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5em;

}

.content-image {
  display: inline-block;
  box-sizing: border-box;
}

.content-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption{
  font-size: 0.8em;
  font-style: italic;
  padding-right: 1em;
  text-align: right;
}

/*------------- Seiten navigation bottom ----------*/



.seiten_nav {
  font-size: 1.1rem;
  display: flex;
  background-color: var(--orange);
  border-radius: 8px;
  padding: 8px; /* Abstand zum Rand des orangefarbenen Containers */
}


.seiten_nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px; /* gleichmäßiger Abstand zwischen den Menüelementen */
  width: 100%;
}


.seiten_nav li a {
  display: block;
  text-decoration: none;
  padding: 2px 4px;
  background-color: var(--dark-gray);
  color: white;
  white-space: nowrap;
  border-radius: 4px;
}


.seiten_nav li.active a {
  background-color: white;
  color: var(--orange);
}

.seiten_nav li a:hover,
.seiten_nav li a:focus {
  background-color: var(--hell-orange);
  color: black;
}


/* ------------------ Footer navigation -------------*/


#footer .mod_customnav {
  vertical-align: middle;
  display: flex;
}


#footer .mod_customnav ul {
  display: flex;
  list-style: none;
  /*padding: 5px;*/
  margin: 0;
}

#footer .mod_customnav li {
  margin: 5px;
}

#footer .mod_customnav li a {
  width: auto;
  float: left;
  display: block;
  text-decoration: none;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 5px;
  padding-right: 5px;
  background-color: var(--dark-gray);
  color: white;
}

/*	
#footer .mod_customnav li a:link{
	 color: black; 
   padding: 2px;
   background-color: var(--light-gray);
   margin-right: 5px;
   margin-left: 5px;
	 
}
*/


#footer .mod_customnav li.active a {
  background-color: white;
  color: var(--orange);
}


#footer .mod_customnav li a:hover,
#footer .mod_customnav li a:focus {
  background-color: var(--hell-orange);
  color: black;
}


@media screen and (max-width: 600px) {
  /*600px statt 32em*/

  #header h1 {
    font-size: 1.5em;
    font-weight: bold;
    padding-left: 0.5em;
    padding-bottom: 0em;
    margin-bottom: 0em;
    vertical-align: 1em;
    color: var(--orange);

  }

  .header-logo img {
    margin-right: 10px;
    height: 80px;
    width: 80px;
  }


}
