/* ====================================
   GLOBALE SETTINGS
   ==================================== */

body {
  font-family: 'Merriweather', serif;
  background-color: #f9fafb;
  color: #111;
  line-height: 1.6;
  padding-top: 80px;
}


/* ====================================
   HEADER IMAGE SECTION
   Verwendet auf allen Seiten
   ==================================== */

.page-header-image {
  /* DIMENSIONEN - Hier Höhe und Breite anpassen */
  width: calc(100% - 4rem);    /* 4rem = 2rem links + 2rem rechts Abstand zum Rand */
  max-width: 1300px;           /* Maximale Breite des Headers */
  height: 325px;               /* Höhe des Header-Bildes */
  
  /* POSITION UND ABSTÄNDE */
  margin: 2rem auto 4rem auto;    /* WICHTIG: 
                                   - 2rem oben = Abstand zur Navbar
                                   - 4rem unten = Abstand zur Intro-Section
                                   - auto links/rechts = zentriert */
  
  /* BILD-EIGENSCHAFTEN */
  background-size: contain;       /* Bild füllt gesamten Container */
  background-position: center;  /* Bild zentriert */
  background-repeat: no-repeat;
  
  /* STYLING */
  border-radius: 20px;           /* Abgerundete Ecken */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}

/* RESPONSIVE - Kleinere Bildschirme */
@media (max-width: 991px) {
  .page-header-image {
    height: auto; /* GEÄNDERT: Höhe passt sich automatisch an */
    aspect-ratio: 1300 / 325; /* Beibehaltung des Seitenverhältnisses */
    width: calc(100% - 2rem);
    margin: 1rem auto 3rem auto;
  }
}

@media (max-width: 768px) {
  .page-header-image {
    height: auto;
    aspect-ratio: 1300 / 325;
    margin: 1rem auto 2rem auto;
  }
}


/* ====================================
   INTRO SECTION
   Text links, Bild rechts
   Auf allen Seiten
   ==================================== */

.page-intro {
  background: #f9fafb;
  padding: 0 0 0.5rem 0;
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.intro-text {
  align-self: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  text-decoration: underline;
  text-decoration-color: #23F65B;
  text-decoration-thickness: 4px;
  margin-bottom: 1.5rem;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #111;
}

.intro-image {
  align-self: start;
}

.intro-image img {
  width: 100%;
  height: auto;
}

/* ====================================
   SIDEBAR & CONTENT WRAPPER
   Größe, Breite usw vom Content-Bereich und Sidebar
   ==================================== */

.page-content-wrapper {
  background: #f9fafb;
  padding: 4rem 0;
  min-height: 60vh;
}

.content-layout {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}

/* ====================================
   SIDEBAR NAVIGATION
   ==================================== */

.content-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #23F65B;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 1rem;
}

.sidebar-nav a {
  text-decoration: none;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #23F65B;
  padding-left: 0.5rem;
}

/* ====================================
   MAIN CONTENT AREA
   Inhalt von den Seiten selbst
   (ist noch auf Education zugeschnitten, wird geändert)
   ==================================== */

.page-main-content {
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #23F65B;
  margin-bottom: 1.5rem;
}

/* Mini icons vor Überschriften */
.content-section h2 img.heading-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  vertical-align: middle;
}

.content-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-section h3 img.heading-icon {
  width: 100px;
  height: 100px;
  vertical-align: middle;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

.content-section img:not(.heading-icon) {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ====================================
   REUSABLE CONTENT LAYOUTS
   Für flexible Text-Bild Kombinationen
   Hier kommen Grids/Flexboxen rein für text+bild kombis im text
   ==================================== */

/* ====================================
   REUSABLE CONTENT LAYOUTS
   Für flexible Text-Bild Kombinationen
   ==================================== */

/* 2-Spalten Layout (Text + Bild) */
.content-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

/* Text links, Bild rechts */
.text-left {
  order: 1;
}

.image-right {
  order: 2;
}

/* Bild links, Text rechts */
.image-left {
  order: 1;
}

.text-right {
  order: 2;
}

/* Einzelnes Bild - volle Breite */
.full-width-image {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
}

.full-width-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Bilder ohne Schatten (für kombinierte Grafiken) */
.combined-image {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Responsive */
@media (max-width: 991px) {
  .content-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .text-left,
  .image-right,
  .image-left,
  .text-right {
    order: unset;
  }
}


/* Learn More Button aus home css  */
.learn-more-btn {
  display: block;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #B7B3FE, #9C95FE);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(183, 179, 254, 0.3);
  margin-top: 1rem;
}

.learn-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 179, 254, 0.4);
  background: linear-gradient(135deg, #9C95FE, #8A84FE);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.learn-more-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Zentrierter Button */
.learn-more-btn.centered {
  margin-left: auto;
  margin-right: auto;
}


/* ====================================
   INTRO VARIATIONS
   ==================================== */

/* Intro ohne Bild - nur zentrierter Text */
.page-intro.text-only .intro-container {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.page-intro.text-only .intro-text {
  text-align: center;
}

.page-intro.text-only .intro-image {
  display: none;
}




/* ====================================
   HIGHLIGHT STYLES
   ==================================== */

.highlight-green {
  color: #23F65B;
  font-weight: 700;
}

.highlight-purple {
  color: #B7B3FE;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 991px) {
  .page-header {
    height: 300px;
    width: calc(100% - 2rem);
    margin: 1rem auto 3rem auto;
  }
  
  .page-header-bottom {
    height: 100px;
  }
  
  .page-header-icon {
    width: 60px;
    height: 60px;
  }
  
  .page-header-icon img {
    width: 35px;
    height: 35px;
  }
  
  .page-header-title {
    font-size: 2.5rem;
  }

  
  .intro-container {
    grid-template-columns: 1fr;
  }
  
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .content-sidebar {
    position: static;
  }
  
  .page-main-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header-title {
    font-size: 2rem;
  }
  
  .intro-text h2 {
    font-size: 2rem;
  }
  
  .content-section h2 {
    font-size: 2rem;
  }
}