
:root {
  --yellow: #f5d57b;
  --chart-bg: rgba(245, 213, 123, 0.2);
  --chart-border: rgba(245, 213, 123, 1);
}

.side-menu {
  background: var(--yellow, #f5d57b) !important;
}

.side-menu a {
  display: block;
  padding: 1em 1.5em;
  color: #333;
  text-decoration: none;
  font-size: 1.1em;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}
.side-menu a:hover {
  background: #ffe9a7;
  color: #000;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: var(--yellow, #f5d57b);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  padding-top: 60px;
}

footer {
  height: 11%;
  background-color: var(--yellow) !important;
  height: 10%;
}

/* Header/Footer Hintergrund auf allen Seiten erzwingen */
header, .header {
  background: var(--yellow) !important;
}
footer, #footer_main {
  background: var(--yellow) !important;
}

/* Weißer Hintergrund für alle Seiten außer header/footer */
body {
  background: #fff !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
}
.overlay.open {
  display: block;
}

.collapse-button {
  border: none;
  background: none;
  font-size: 1rem;
}
.collapse-button.collapsed::after {
  content: "▼";
  transform: rotate(-90deg);
}
.collapse-button:not(.collapsed)::after {
  content: "▼";
  transform: rotate(0);
}

/* Bild-Grid und Kacheln (aus newsbeitraegeerstellen.php & image-loader.php) */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.image-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.image-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f0f0f0;
}
.image-tile img {
  height: 50px;
  width: auto;
  margin-bottom: 8px;
  border-radius: 4px;
}
.image-tile-id {
  font-size: 0.9em;
  color: #555;
  font-weight: bold;
}

/* Weitere Styles aus style.css (gekürzt, bitte bei Bedarf ergänzen) */
.content {
  flex: 1;
  overflow-y: auto;
}

footer {
  height: 11%;
  background-color: var(--yellow) !important;
}

  height: 10%;
  background-color: var(--yellow);
}

footer, #footer_main {
  background-color: var(--yellow) !important;
}
}

.blur-load {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
}
.blur-load img {
  border-radius: 0.5rem;
  width: 300px;
}

.projekte-grid {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
  width: min(95%, 70rem);
  margin-inline: auto;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.projekt {
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 127, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html,
body {
  height: 100%;
  width: 100%;
}

#main {
  text-align: center;
  height: 74%;
  overflow-y: auto;
}

footer {
  height: 11%;
  background-color: var(--yellow) !important;
}

header {
  height: 10%;
  background-color: var(--yellow);
}

.header {
  z-index: 2;
  background-color: transparent;
}

#header_main {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
}

.header_left {
  flex-grow: 3;
  width: 30%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.headertext {
  height: 16%;
}

.logo {
  height: calc(10% - 2rem);
}

.logo img {
  padding-left: 1rem;
  height: 10vh;
}

@media only screen and (max-width: 768px) {
  .logo img {
    padding-left: 1rem;
    height: 10vh;
  }
}

.header_right {
  flex-grow: 7;
  width: 70%;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

.header_menu {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  column-gap: 1em;
  padding-right: 2em;
}

#footer_main {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 2em;
}

a,
a:visited {
  color: #212529;
  text-decoration: none;
}

a:hover,
a:active {
  text-decoration: underline;
}
a.headerlink:hover,
a.headerlink:active {
  text-decoration: underline overline;
}

.active_page {
  text-decoration: underline overline;
  font-weight: bold;
}

.row {
  padding-top: 0.5em;
}

.head-text {
  font-size: 1.05em;
}

.textcard {
  width: max(75%, 300px);
  text-align: left;
  margin: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.t_dokument {
  width: max(25%, 300px);
}

.t_impressum {
  width: max(30%, 300px);
}

.t_login,
.t_register {
  width: max(40%, 300px);
}

.t_home {
  width: max(50%, 300px);
  margin: auto;
}

.schuleimg {
  display: block;
  max-height: max(100%, 150px);
  border-radius: 0.375rem;
}

.logincard {
  text-align: left;
  margin: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
}

.warning {
  color: #dc3545;
}

.projekte-grid {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
  width: min(95%, 70rem);
  margin-inline: auto;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.projekt {
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 127, 0.5);
}

.projekt img {
  border-radius: 0.5rem;
  width: 300px;
}

.headertext {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  margin: auto;
  z-index: 1;
  width: 100%;
  background-color: var(--yellow);
}

.headertext div {
  display: block;
  width: 45%;
  margin-left: 20%;
  z-index: 999;
}

.blur-load::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: pulse 2.5s infinite;
  background-color: rgba(255, 255, 255, 0.2);
}

.blur-load.loaded::before {
  content: none;
}

@keyframes pulse {
  0% {
    background-color: rgba(255, 255, 127, 0);
  }
  50% {
    background-color: rgba(255, 255, 127, 0.1);
  }
  100% {
    background-color: rgba(255, 255, 127, 0);
  }
}

.blur-load {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
}

img {
  width: 100%;
  display: block;
  object-position: center;
  object-fit: cover;
}

.blur-load.loaded > img {
  opacity: 1;
}

.blur-load > img {
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 10vh;
  width: 100%;
}

.left-container {
  width: 200px;
}

.centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.responsive_head_text {
  font-size: clamp(1rem, 2.5vw, 2rem);
  z-index: 999;
  position: relative;
  text-align: center;
}

.right-container {
  width: 7%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 768px) {
  .right-container {
    width: 35%;
  }
  .left-container {
    width: 100px;
  }
}

.right-container img {
  max-width: 80%;
  height: auto;
}

.content {
  flex: 1;
  overflow-y: auto;
}

/* --- Styles aus PHP-Dateien für Bild-Grid und Kacheln --- */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.image-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.image-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f0f0f0;
}

.image-tile img {
  height: 50px;
  width: auto;
  margin-bottom: 8px;
  border-radius: 4px;
}

.image-tile-id {
  font-size: 0.9em;
  color: #555;
  font-weight: bold;
}
