/* CSS-Variablen für konsistente Farben und Werte */
:root {
  --primary-color: #ddff00;
  --secondary-color: #FC271D;
  --text-color: #333;
  --font-family: 'IBM Plex Mono', monospace;
  --border-color: black;
  --white: white;
  --black: black;
  --link-color: #0077cc;
}

/* Reset für alle Überschriften und Paragraphen */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

/* Basis-Styles */
body {
  font-family: var(--font-family);
  background-image: url();
  color: var(--text-color);
  text-align: left;
  padding: 0px;
  margin: 0px;
  overflow: hidden;
  height: 100vh;
  margin-top: 14px;
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 21px;
}

p {
  font-size: 14px;
}

/* Haupt-Container mit maximaler Breite */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Layout-Container */
.content {
  height: 35vh;
  overflow: hidden;
  padding: 10px 50px; /* oben/unten: 50px, links/rechts: 20px */
  box-sizing: border-box;
}

/* Für Unterseiten ohne Hintergrundbild */
.content-full {
  height: calc(100vh - 14px);
  overflow-y: auto;
  padding: 10px 50px 120px 50px; /* oben, rechts, unten, links */
  box-sizing: border-box;
}

/* Hintergrundbild-Container */
.image-full {
  position: relative;
  width: 100vw;
  margin-top: 0px;
  overflow: hidden;
  height: 65vh;
}

.image-full img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Navigation - Topbar */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.subpage-nav {
  margin-bottom: 80px;
}

.home-icon {
  height: 22px;
  width: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Button-Styles */
.nav-button {
  background-color: var(--white);
  font-family: var(--font-family);
  border: 1.4px solid var(--border-color);
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 50px;
  cursor: pointer;
  height: 22px; /* Gleiche Höhe wie SVG */
  box-sizing: border-box; /* Padding wird in height eingerechnet */
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
}

.nav-button:hover {
  background-color: var(--secondary-color);
  color:  var(--black);
  border-color: var(--secondary-color);
}

/* Aktiver Zustand für die aktuelle Seite */
.nav-button.active {
  background-color: var(--black);
  color: var(--white);
}

.nav-button.active:hover {
  background-color: var(--secondary-color);
  color: var(--black);
  border-color: var(--secondary-color);
}

/* Link-Styles */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Entferne Unterstreicherung für Links, die Buttons enthalten */
.button-group a:hover {
  text-decoration: none;
}

/* Breadcrumb Navigation für Unterseiten */
.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 20px;
  color: #666;
}

.breadcrumb a {
  color: var(--link-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Image-Text Modul - Standard Version */
.image-text-module {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 50px;
}

.image-text-module .image-container {
  flex-shrink: 0; /* Verhindert, dass das Bild kleiner wird */
  width: 200px;
}

.image-text-module .image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-text-module .text-container {
  flex: 1; /* Nimmt den restlichen verfügbaren Platz ein */
  min-width: 0; /* Ermöglicht Text-Wrapping */
}

.image-text-module .text-container h2 {
  margin-top: 0;
  margin-bottom: 10px; /* Hier kannst du den gewünschten Abstand einstellen */
}

.image-text-module .text-container p {
  margin-bottom: 5px; /* Hier kannst du den gewünschten Abstand einstellen */
}

.image-text-module .text-container p:last-child {
  margin-bottom: 0;
}

/* Abstand zwischen Text und Buttons im Modul */
.image-text-module .text-container .button-group {
  margin-top: 15px;
}

/* Image-Text Modul - Variation mit begrenzter Text-Breite */
.image-text-module-limited {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 50px;
}

.image-text-module-limited .image-container {
  flex-shrink: 0; /* Verhindert, dass das Bild kleiner wird */
  width: 200px;
  max-width: 200px; /* Stellt sicher, dass das Bild nicht breiter wird */
}

.image-text-module-limited .image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-text-module-limited .text-container {
  width: 500px; /* Feste Breite von 500px */
  min-width: 0; /* Ermöglicht Text-Wrapping */
}

.image-text-module-limited .text-container h2 {
  margin-top: 0;
  margin-bottom: 0px; /* Hier kannst du den gewünschten Abstand einstellen */
}

.image-text-module-limited .text-container p {
  margin-bottom: 5px; /* Hier kannst du den gewünschten Abstand einstellen */
}

.image-text-module-limited .text-container p:last-child {
  margin-bottom: 0;
}

/* Abstand zwischen Text und Buttons im Modul */
.image-text-module-limited .text-container .button-group {
  margin-top: 20px;
}

/* Image-Text Modul - Grid Version (Bild oben, Text unten) */

.image-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 370px);
  gap: 35px;
  margin-bottom: 50px; 
  max-width: 100%;
  justify-content: start;
}



.image-text-grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 370px;
  margin-bottom: 20px;
}



.image-text-grid-item .image-container {
  width: 370px;
  height: 220px;
  overflow: hidden;
  margin-bottom: 20px;
}



.image-text-grid-item .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}



.image-text-grid-item .text-container {
  width: 370px;
  max-width: 370px;
}


.image-text-grid-item .text-container h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.image-text-grid-item .text-container p {
  margin-bottom: 5px;
}

.image-text-grid-item .text-container p:last-child {
  margin-bottom: 0;
}

/* Abstand zwischen Text und Buttons im Grid-Modul */
.image-text-grid-item .text-container .button-group {
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content,
  .content-full {
    padding: 15px;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.3em;
  }
  	
  p {
    font-size: 1em;
  }
  
  .button-group {
    gap: 5px;
  }
  
  .nav-button {
    font-size: 11px;
    padding: 2px 8px;
  }
  
  /* Responsive für die begrenzte Variation */
  .image-text-module-limited .text-container {
    width: 100%; /* Auf kleineren Bildschirmen wird die Breite flexibel */
    max-width: 500px; /* Aber nicht breiter als 500px */
  }
}

/* Responsive: Text rutscht unter das Bild bei schmalen Bildschirmen */
@media (max-width: 500px) {
  .image-text-module {
    flex-direction: column;
    gap: 20px;
  }
  
  .image-text-module .image-container {
    align-self: center; /* Zentriert das Bild */
    width: 100%; /* Bild nimmt die volle verfügbare Breite ein */
  }
  
  .image-text-module-limited {
    flex-direction: column;
    gap: 20px;
  }
  
  .image-text-module-limited .image-container {
    align-self: center; /* Zentriert das Bild */
    width: 100%; /* Bild nimmt die volle verfügbare Breite ein */
    max-width: none; /* Entfernt die Begrenzung auf 200px */
  }
  
  .image-text-module-limited .text-container {
    width: 100%; /* Volle Breite auf sehr schmalen Bildschirmen */
    max-width: none;
  }
  
  /* Responsive für Grid-Modul */
  
.image-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 370px);
  gap: 35px;
  margin-bottom: 50px; 
  max-width: 100%;
  justify-content: start;
}

  
  
.image-text-grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 370px;
  margin-bottom: 20px;
}

  
  
.image-text-grid-item .image-container {
  width: 370px;
  height: 220px;
  overflow: hidden;
  margin-bottom: 20px;
}

  
  
.image-text-grid-item .text-container {
  width: 370px;
  max-width: 370px;
}

}