:root {
    --background-color: #fafafa;
    --text-color: black;
    --menubar-color: white/*#2a364f*/;
    --menubar-text: black;
    --highlight-color: #e0e0e0;
    --link-color: #373bda;
    --link-hover-color: #1a0dab;
    --darkmode-hover: #0392d6;
    --lightmode-hover: #02d682;
    --image-container: #dcdcdc;
}

.dark-mode {
    --menubar-color: #3b3b3b;
    --text-color: #f2f2f2;
    --background-color: #272727;
    --menubar-text: #f2f2f2;
    --highlight-color: #858585;
    --link-color: #8ca9f6;
    --link-hover-color: #b6d4ff;
    --darkmode-hover: #02d682;
    --lightmode-hover: #0392d6;
    --image-container: #818080;
}


html, body {
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    background-color: var(--background-color);
    /*transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;*/
}

#content {
    max-width: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--background-color);
    padding-left: 150px;
    padding-right: 150px;
    
    /*transition: background-color 0.3s ease-in-out;*/
    
}

/* SCHRIFT in content box */
/*sollte etwas mit dem Blocktext nicht mehr funtionieren, mach wieder das: 
 html body #content p{
   text-align:justify !important;  
    hyphens: auto !important;       
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    overflow-wrap: break-word; 
    font-size:15pt !important; 
    line-height: 40px !important;
    padding-left: 30px;
    padding-right: 30px;
}*/

html body #content p{
   text-align:justify; /*Text im Blocksatz */ 
    /*hyphens: auto;       /* automatische Silbentrennung 
    -webkit-hyphens: auto;
    -ms-hyphens: auto;*/
    overflow-wrap: break-word; /* optional für lange Wörter */
    font-size:18px; /* SCHRIFT BILD */
    line-height: 40px;
    padding-left: 30px;
    padding-right: 30px;
}

#content-sources{
  max-width: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--background-color);
    padding-left: 150px;
    padding-right: 150px;
}

html body #content-sources p{
   text-align:left; /*Text im Blocksatz */ 
    font-size:12pt; /* SCHRIFT BILD */
    line-height: 20px;
    padding-left: 30px;
    padding-right: 30px;
}
  


/* Imbeded Information*/
#iframe1 {
    overflow-x: hidden;     /* Verhindert horizontales Scrollen */
}

#iframe2 {
    overflow-x: hidden;     /* Verhindert horizontales Scrollen */
}

/*menubar*/
#menubar {
    background-color: var(--menubar-color);
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 0;
    /*transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;*/
}

#menubar > ul {
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    background-color: var(--menubar-color);
    top: 0;
    left: 0;
    /*transition: background-color 0.3s ease-in-out;*/
}

#menubar > ul li {
    float: left;
}

#menubar > ul a {
    display: block;
    color: var(--menubar-text);
    text-align: center;
    padding: 20px 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

/* Stroke in menubar*/ 
#menubar > ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* Distance of the bar from text */
    width: 0;
    height: 6px; /* Thickness of the underline */
    background-color: var(--darkmode-hover); /*dark mode hover bar color*/
    transition: width 0.3s ease-in-out;
}

/* Hover Effect: Expand the Bar */
#menubar > ul a:hover::after {
    width: 100%;
}
#menubar > ul a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 6px;
  background-color: var(--darkmode-hover);
}

#menubar > ul a.active {
  color: var(--darkmode-hover);
}


/*links*/
a {
    color: var(--darkmode-hover);
    text-decoration: none;
    /*transition: color 0.3s ease-in-out, text-decoration 0.2s ease-in-out;*/
}

a:hover {
    color: var(--lightmode-hover);
    text-decoration: underline;
}

img:hover {
  transform: scale(1.1); /* Vergrößert das Bild beim Hover */
  transition: transform 0.3s ease;
}

#darkModeToggle {
    position: absolute;
    top: 15px; 
    right: 15px; 
    background-color: var(--highlight-color);
    color: var(--menubar-text);
    border: none;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    /*transition: background-color 0.3s ease-in-out;*/
}

/* Horizontal Image Row */
.image-row {
  display: flex;
  justify-content: center; 
  gap: 80px; 
  margin-top: 20px;
}

.image-row img:hover {
  transform: scale(1.1); /* Vergrößert das Bild beim Hover */
  transition: transform 0.3s ease;
}

/* images in text MIT normalem img:hover EFFECT */
.float-right {
  float: right; /* Bild nach rechts schieben */
  margin-left: 20px; /* Abstand vom Text zum Bild */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  margin-top: 10px;
}

.float-left {
  float: left; /* Bild nach rechts schieben */
  margin-right: 20px; /* Abstand vom Text zum Bild */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  margin-top: 10px;
}

/* images in text OHNE HOVER EFFECT*/
.float-right2 {
  float: right; /* Bild nach rechts schieben */
  margin-left: 20px; /* Abstand vom Text zum Bild */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  margin-top: 10px;
}

.float-left2 {
  float: left; /* Bild nach rechts schieben */
  margin-right: 20px; /* Abstand vom Text zum Bild */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  margin-top: 10px;
}

.float-left2:hover{
  transform: scale(1);
}

.float-right2:hover{
  transform: scale(1);
}

/*Horizontale Container mit Bild und Schrift */
.image-container {
  display: flex !important;
    background-color: var(--image-container); /* Hintergrundfarbe des Containers */
  flex-direction: column; /* Stellt sicher, dass Bild und Text vertikal angeordnet sind */
  align-items: center !important; /* Zentriert Bild und Text horizontal */
  text-align: center !important;
  justify-content: center;
    padding: 20px;
  width: 350px;
    height: 500px;
    box-sizing:border-box;
}

.image-container img {
  width: 80%; /* Passt das Bild an die Containerbreite an */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  display: block;
    margin-top: 20px;
  margin-bottom: 20px; /* Abstand zwischen Bild und Text */
}

.image-container img:hover {
  transform: scale(1.1); /* Vergrößert das Bild beim Hover */
  transition: transform 0.3s ease;
}

.image-container p {
  text-align: center !important;
  margin: 0;
  line-height: 1;
}

.image-container a {
  margin: auto;
  color: var(--darkmode-hover); /* Farbe der Links */
  text-decoration: underline; 
}

.image-container a:hover {
  color: var(--lightmode-hover); /* Farbe der Links */
  text-decoration: underline; /* Fügt Unterstreichung hinzu, wenn der Link gehobert wird */
}

/* Buttons */
a .buttons {
  background-color: #04AA6D; /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}

a .buttons:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
    text-decoration: none;
}

/* bullet points*/
#content ul, ol {
  font-family: Arial, sans-serif;  /* Schriftart */
    text-align:justify !important; /*Text im Blocksatz */ 
    hyphens: auto !important;       /* automatische Silbentrennung */
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    overflow-wrap: break-word; /* optional für lange Wörter */
  font-size: 18px;                   /* Schriftgröße */
  line-height: 30px;                  /* Zeilenabstand */
  margin-left: 60px;                 /* Einzug der Liste */
    margin-right: 60px;
  padding-left: 0;                   /* Kein Innenabstand der Liste */
}

#content ul li, ol li {
  font-family: Arial, sans-serif;  /* Schriftart */
  font-size: 18px;                   /* Schriftgröße */
  line-height: 30px;                  /* Zeilenabstand */
    padding-left: 30px;
    padding-right: 30px;
}

/* text-box*/
.text-box {
  width: 70%;
  background-color: var(--darkmode-hover);
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  margin: 0 auto;
}

.text-box p{
  font-family: Arial, sans-serif;  /* Schriftart */
  font-size: 30px;                   /* Schriftgröße */
  font-weight:600;
  color: white;
  text-align: center;
  margin: 0;
  line-height: 0.5;
  
}

.text-box:hover {
  
  background-color: var(--lightmode-hover);
}

/*invisible box to add space between  webpage content*/
.spacing-box {
    height: 50px; /* Adjust the height as needed */
    width: 100%;  /* Makes the box take up the full width */
    visibility: hidden;  /* Ensures the box is not visible */
}

/* footer*/
footer {
  text-align: center;
  padding-top: 15px;
  padding-bottom: 5px;
  background-color: var(--menubar-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  
}

footer a {
  color: var(--darkmode-hover);
  font-size: 20px;
  text-align: center;
  text-decoration: none;
}

footer a:hover {
    color: var(--lightmode-hover);
  font-size: 20px;
  text-align: center;
    text-decoration: underline;
}

