/* Farblegende: 
--> Gold:          #CFA93F
--> Grün:          #12470D 
--> Hellgrün (Banner):    #E6F0D6
--> Dunkelgrün (Banner):  #C3D48E
--> Hintergrund:   #F9F9F9 */

/* Grundlegende Einstellungen */
body {
  margin: 0;
  padding-top: 60px;  	/* Höhe deines Headers */
  font-family: Arial, sans-serif;
  direction: rtl;
  background-color: #F9F9F9;
  color: #222;
  display: flex;
  flex-direction: column;
  font-size: 18px; /* Schriftgröße */
}

/* HTML und Body nehmen volle Höhe ein */
html, body {
  height: 100%;
}

/* Header Styling */
header {
  background-color: #12470D;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Hauptinhalt */
main {
  max-width: 1000px;
  width: 100%;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
  line-height: 1.6;
  text-align: right;
  flex: 1;
}

/* Footer Styling */
footer {
  background-color: #12470D;
  color: white;
  padding: 15px 20px;
  text-align: center;
  box-sizing: border-box;
}

/* Logo im Header: Text + Bild */
.logo {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Abstand zwischen Text und Logo */
  font-weight: bold;
  font-size: 1.5em;
  user-select: none;
}

/* Logo Bild Styling */
.school-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Navigation */
nav {
  position: relative;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Menü Links */
nav ul#menu li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover-Effekt Gold */
nav ul#menu li a:hover {
  background-color: #CFA93F; /* Gold */
  color: #12470D; /* Dunkler Text passend zum Gold */
}

/* Hamburger Icon (für mobile) */
.hamburger {
  display: none;
  font-size: 2em;
  cursor: pointer;
  user-select: none;
}

/* Banner Container */
.banners-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #E6F0D6;
  color: #12470D;
  padding: 10px 20px;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
}

/* Einzelne Banner */
.banner {
  background-color: #C3D48E;
  padding: 10px;
  border-radius: 6px;
}

/* Responsive: Menü für kleine Bildschirme */
@media (max-width: 768px) {
  nav ul#menu {
    flex-direction: column;
    background-color: #12470D;
    position: absolute;
    top: 100%;
    left: -20px;
    width: 300px;
    display: none;
  }

  nav ul#menu.show {
    display: flex;
  }

  .hamburger {
    display: block;
    color: white;
  }
}

/* ICONs im footer */
.social-icons img {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  padding: 5px;
}
.social-icons img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}
.social-icons a {
  display: inline-block;
  line-height: 0;
}

/* Dropdown Menu */
.collapsible {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* wichtig für RTL, Text rechtsbündig */
  gap: 10px;
  user-select: none;
  background-color: #E6F0D6;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out; /* sanfter Übergang */
}
.collapsible .arrow {  /* Pfeil nach rechts (Standard) */
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #12470D;
  transition: transform 0.4s ease-in-out; /* 👈 sorgt für sanfte Drehung */
  transform-origin: center; /* Mittelpunkt als Drehachse */
}
.content {  /* Container für den Inhalt (Auf-/Zuklappen animieren) */
  max-height: 0;            /* zugeklappt */
  overflow: hidden;
  transition: max-height 0.6s ease-in-out; /* 👈 hier die Animation */
}
.collapsible.active .arrow {  /* Wenn aktiv – Pfeil zeigt nach unten */
  transform: rotate(-90deg); /* sanft gedreht */
}
.content.open {  /* Offen = sichtbar mit Animation */
  max-height: 1000px; /* genug Platz, kannst du anpassen */
}

  /* Folder fur HA */
  .folder-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}
.folder {
  text-align: center;
}
.folder a {
  text-decoration: none;
  color: #12470D;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.folder svg {
  transition: transform 0.3s, fill 0.3s;
}
.folder:hover svg {
  transform: scale(1.1);
  fill: #CFA93F;
}
.folder-label {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
}

/* Grune Box mit Icon für wichtige Inhalte */
.greenbox-grid {
  display: flex;
  gap: 20px;
  align-items: stretch; /* alle Boxen gleich hoch */
  margin: 40px 0;
}
.greenbox-box {
  display: flex;
  align-items: center;
  background-color: #E6F0D6;
  border-radius: 10px;
  padding: 15px 20px;
  flex: 1 1 50%; /* zwei Spalten nebeneinander */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-height: 250px; /* feste Mindesthöhe, damit sie gleich wirken */
}
.greenbox-icon {
  width: 80px;
  height: 80px;
  margin-right: 20px;
}
.greenbox-text {
  flex: 1;
  margin-right: 20px; /* bei RTL ist das der Abstand zwischen Icon und Text */
}
.greenbox-text h3 {
  color: #12470D;
  margin: 0 0 10px 0;
}
.greenbox-text p {
  margin: 5px 0;
  color: #12470D;
}
.greenbox-text a {
  color: #12470D;
  font-weight: bold;
  text-decoration: none;
}
.greenbox-text a:hover {
  color: #CFA93F;
}

/* Responsiv: eine Spalte auf kleinen Bildschirmen */
@media (max-width: 768px) {
  .greenbox-grid {
    flex-wrap: wrap;
  }
}

/* Phone-Symbol auf Kontakt-Seite */
.phone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.phone-list a {
  display: inline-flex;
  flex-direction: row-reverse; /* Symbol rechts, Text links */
  align-items: center;
  gap: 8px; /* Abstand zwischen Symbol und Nummer */
  text-decoration: none;
  color: inherit;
}
.phone-list li {
  margin: 8px 0;
}
.phone-list svg {
  flex-shrink: 0;
} 

/* Eingebettete Karten */
.map-container {
  width: 100%;       /* ganze Breite */
  max-width: 100%;
  height: 500px;     /* feste Höhe */
  margin: 20px 0;    /* Abstand oben/unten */
  border-radius: 10px; /* optional: abgerundete Ecken */
  overflow: hidden;   /* verhindert Scrollbalken */
}
