/* ======================================================
   1. Reset / Basis
   ====================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Fira Sans', 'Helvetica', sans-serif; /* Schrift auf Fira Sans */
  background-color: #FFFAFA; /* sanfter Hintergrund */
  color: #142445;
}

a {
  text-decoration: none;
}

/* ======================================================
   2. Farben / Themen
   ====================================================== */
:root {
  --color-white: #FFFFFF;
  --color-cream: #FFFAFA;
  --color-purple: #9A3270;
  --color-orange: #F7B552;
  --color-dark: #142445;
  --color-yellow: #fdda14;
}

/* ======================================================
   3. Linien & Balken
   ====================================================== */
.yellow-line { height: 4px; background-color: var(--color-yellow); width: 100%; }
.purple-line { height: 6px; background-color: var(--color-purple); width: 100%; margin: 0; }

/* ======================================================
   4. Hintergrund & Sections
   ====================================================== */
.purple-background { background-color: var(--color-purple); width: 100%; box-sizing: border-box; }
.purple-background-short { background-color: var(--color-purple); padding: 2rem 0; width: 100%; }
.white-background { background-color: var(--color-cream); color: var(--color-dark); min-height: 20rem; width: 100%; }
.white-background a { color: var(--color-dark); }

/* ======================================================
   5. Typografie / Text
   ====================================================== */
.zentriert { text-align: center !important;}
.left { text-align: left; padding-left: 1rem; }
.white-text { color: var(--color-white); }
.purple-text { color: var(--color-purple); }

.title-text {
  font-size: 2rem;
  padding: 1.5rem;
  font-weight: 700;
  line-height: 1.2; /* Fettere Überschriften */
}

.large-text { font-size: 1rem; margin-top: 1rem; }


/* ======================================================
   5a. Globales Text-Styling für Inhalte innerhalb white-background
   ====================================================== */
.white-background p,
.white-background ul,
.white-background ol,
.white-background li,
.white-background a {
  font-family: 'Fira Sans', 'Helvetica', sans-serif;
  color: var(--color-dark);
  text-align: left;
  line-height: 1.6;
  margin: 0 0 1rem 0; /* Abstand nach unten */
}

.white-background ul,
.white-background ol {
  padding-left: 1.5rem; /* Einzug für Listen */
}

.white-background a {
  color: var(--color-purple);
  text-decoration: none;
}

.white-background a:hover {
  text-decoration: underline;
}


/* ======================================================
   6. Bilder / Zoom
   ====================================================== */
.zoom-click {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  box-shadow: -13px -13px 0 var(--color-yellow);
}

.zoom-click:active { transform: scale(2); z-index: 1000; position: relative; }

/* ======================================================
   7. Content-Boxen / Unterseiten / News
   ====================================================== */
.content-box,
.news-summary {
  max-width: 70ch;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: var(--color-white);
  border-radius: 0.5rem;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
}

.content-box h1,
.content-box h2,
.content-box h3,
.news-preview-item h2,
.news-preview-item h3 {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.content-box ul,
.content-box ol {
  text-align: left;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-box pre,
.content-box code {
  display: block;
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.content-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  text-align: left;
}

.content-box th,
.content-box td { border: 1px solid #ddd; padding: 0.75rem; }

.heading-box {
  max-width: 1200px; /* gleiche Breite wie grid-container / topbar */
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center; /* optional, falls du sie zentrieren willst */
  box-sizing: border-box;
}

/* Begrenzung der Zeilenlänge für den Willkommens-Text */
.intro-text {
  max-width: 70ch; /* ca. 70 Zeichen pro Zeile */
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .intro-text {
    max-width: 50ch;
  }
}


/* ======================================================
   8. News-Boxen
   ====================================================== */
.news-preview-item {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: var(--color-white);
}

.news-preview-item h2,
.news-preview-item h3 { margin-bottom: 0.5rem; }
.news-preview-item p.news-date { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }

.read-more a { color: var(--color-purple); font-weight: 700; }
.read-more a:hover { text-decoration: underline; }

/* ======================================================
   9 Highlight-Button: Goals & Mission
   ====================================================== */
.highlight-button-purple {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-yellow); /* gelber Rahmen */
  border-radius: 1.5rem;
  color: var(--color-white);             /* weiße Schrift */
  background: var(--color-purple);       /* lila Hintergrund */
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.highlight-button-white {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-yellow); /* gelber Rahmen */
  border-radius: 1.5rem;
  color: var(--color-purple);             
  background: var(--color-white);       
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.highlight-button:hover {
  background: var(--color-white);        /* Box wird weiß beim Hover */
  color: var(--color-purple);            /* Schrift lila beim Hover */
  border-color: var(--color-yellow);     /* Rahmen gelb bleibt */
}


/* ======================================================
   10. Landing page: Grid / Partner + News (responsive)
   ====================================================== */
.grid-container {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;       /* gleiche Breite wie topbar-inner */
  margin: 0 auto;
  padding: 2rem 1rem;      /* Abstand zum Seitenrand */
  gap: 2rem;               /* Abstand zwischen den Spalten */
  box-sizing: border-box;
}

.column-left { 
  flex: 0 0 40%; 
  padding: 1rem; 
}
.column-right { 
  flex: 0 0 60%; 
  padding: 1rem; 
}

.grid-column p,
.grid-column ul,
.grid-column ol {
  margin-left: 0;
  margin-right: 0;
}

.column-divider {
  width: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.column-divider::before {
  content: "";
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 40px solid var(--color-yellow);
  display: block;
  transform: translateY(20px); 
}

.column-divider::after {
  content: "";
  width: 8px;
  height: 850px;
  background-color: var(--color-yellow);
  display: block;
  margin-top: 5px;
  transform: translateY(10px);
}

.welcome { 
  margin-bottom: 1rem; 
}

/* ======================================================
   Responsive für Tablets & Smartphones
   ====================================================== */
@media (max-width: 992px) {
  .grid-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .column-left,
  .column-right {
    flex: 0 0 100%;
    padding: 0;
  }

  .column-divider {
    display: none; /* Trenner ausblenden auf kleinen Screens */
  }

  .title-text {
    font-size: 1.5rem;
    text-align: center;
  }

  .zoom-click {
    max-width: 100%;
    height: auto;
    box-shadow: none;
  }
}

/* ======================================================
   11. Footer / Topbar / Navigation (RESPONSIVE)
   ====================================================== */
.footer {
  background-color: var(--color-cream);
  color: var(--color-white);
  padding: 2rem 1rem;
  width: 100%;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap; /* erlaubt Umbruch bei kleiner Breite */
}

.footer-link,
.footer-right small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-purple);
  white-space: nowrap; /* Verhindert unschöne Zeilenumbrüche mitten im Wort */
}

.footer-left {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap; /* Links umbrechen wenn kein Platz mehr */
  justify-content: flex-start;
}

.footer-right {
  display: flex;
  align-items: center;
  padding-right: 2rem;
  text-align: right;
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer-center img {
  height: 80px;
  transition: height 0.3s ease;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-left {
    justify-content: center;
    gap: 1rem;
  }

  .footer-right {
    padding-right: 0;
    justify-content: center;
    text-align: center;
  }

  .footer-center img {
    height: 60px; /* Logo kleiner auf Mobile */
  }

  .footer-link,
  .footer-right small {
    font-size: 0.9rem; /* Schrift etwas kleiner auf Mobile */
  }
}

/* ======================================================
   TOPBAR (RESPONSIVE)
   ====================================================== */
.topbar {
  background: var(--color-cream);
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.topbar-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 5rem;
  transition: height 0.3s ease;
}

/* Logo kleiner auf Tablets und Phones */
@media (max-width: 992px) {
  .logo img { height: 4rem; }
}

@media (max-width: 600px) {
  .logo img { height: 3rem; }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-purple);
  cursor: pointer;
  position: relative;
}

.menu-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-cream);
  padding: 1rem 2rem;
  border: 2px solid var(--color-purple);
  border-radius: 8px;
  list-style: none;
  z-index: 1000;
}

.menu.menu-open {
  display: flex;
}

.menu a {
  color: var(--color-purple);
  font-size: 1.2rem;
}

/* ======================================================
   Social Links (RESPONSIVE)
   ====================================================== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  align-items: center;
}

.social-links img {
  height: 36px;
  transition: transform 0.2s ease, opacity 0.2s ease, height 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .social-links {
    gap: 12px;
  }

  .social-links img {
    height: 28px; /* Social Icons kleiner auf Mobile */
  }
}

@media (max-width: 480px) {
  .social-links img {
    height: 24px; /* noch kleiner für sehr kleine Geräte */
  }
}


/* ======================================================
   11a. Topbar: Hamburger + Language Switcher nebeneinander
   ====================================================== */
/* Topbar rechts: Hamburger + Language Switcher nebeneinander */
.topbar-right {
  display: flex;
  align-items: center; /* vertikal zentrieren */
  gap: 0.5rem;
  position: relative;         /* Abstand zwischen Hamburger & Switcher */
}

/* Language Switcher Links */
.lang-switcher a {
  display: flex;
  align-items: center;      /* vertikal zentriert */
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-purple);
  padding: 0.25rem 0.5rem;  /* leichtes Padding für Klickbarkeit */
  border-radius: 4px;
  line-height: 1;           /* Höhe stimmt mit Hamburger überein */
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-switcher a:hover {
  background-color: var(--color-purple);
  color: var(--color-white);
}
/* ======================================================
   12. Pagination Styling
   ====================================================== */
.pagination {
  display: flex;
  justify-content: center; /* zentriert die Buttons */
  flex-wrap: wrap;         /* bei vielen Seiten umbrechen */
  gap: 0.5rem;             /* Abstand zwischen den Buttons */
  margin-top: 2rem;        /* Abstand oberhalb der Pagination */
  padding: 0;
  list-style: none;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-purple);
  text-decoration: none;
  color: var(--color-purple);
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
  background-color: var(--color-purple);
  color: var(--color-white);
}

.pagination .active span {
  background-color: var(--color-purple);
  color: var(--color-white);
  border-color: var(--color-purple);
}
