/* Grundlayout */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f6f8;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: #1f2933;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.logo {
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95em;
  padding: 6px 8px;
  border-radius: 4px;
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background-color: #374151;
}

.content {
  flex: 1;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.box.info {
  border-left: 5px solid #64748b;
}

.box.warning {
  border-left: 5px solid #c0392b;
  background-color: #fff5f5;
}

footer {
  background-color: #1f2933;
  color: #d1d5db;
  text-align: center;
  padding: 20px;
  font-size: 0.85em;
}

footer a {
  color: #9ca3af;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* =========================
   Suchleiste – ruhiger, abgerundeter Look
========================= */
.news-search-bar {
  display: flex;
  gap: 10px;
  padding: 10px;
  background-color: #e0e7ff; /* sanftes Hellblau/Lila statt grell */
  border-radius: 9999px; /* komplett abgerundet */
  align-items: center;
  margin: 30px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* weniger stark */
  flex-wrap: wrap; /* mobil umbrechen */
}

.news-search-bar input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 9999px;
  border: none;
  font-size: 1em;
  outline: none;
  background-color: #ffffff; /* weißer Textbereich */
  color: #111;
}

.news-search-bar input::placeholder {
  color: #6b7280; /* grauer Placeholder */
}

.news-search-bar select {
  padding: 12px 16px;
  border-radius: 9999px;
  border: none;
  font-size: 1em;
  outline: none;
  background-color: #ffffff;
  color: #111;
  cursor: pointer;
}

.news-search-bar input:focus,
.news-search-bar select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); /* sanfter Fokus-Effekt */
}




/* =========================
   News-Posts
========================= */
.news-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 6px solid #2563eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}


.news-item h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.news-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 12px;
}

.news-image {
  width: 100%;
  border-radius: 8px;
  margin: 15px 0;
}

.news-note {
  font-size: 0.85em;
  color: #555;
  font-style: italic;
}

.news-image {
  width: auto;        /* Bild behält seine Proportionen */
  max-width: 100%;    /* passt in die Post-Box */
  height: auto;
  display: block;     
  margin: 15px auto;  /* zentriert */
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 700px) {
  .news-search-bar {
    flex-direction: column;
  }

  .news-search-bar select {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 10px;
  }
}

/* =========================
   Schülerbewertungen – Extras
========================= */

.note {
  font-size: 0.9em;
  color: #555;
  font-style: italic;
  margin-top: 10px;
}

.forum-link-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.forum-button {
  display: inline-block;
  margin-top: 15px;
  padding: 14px 26px;
  background-color: #334155;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.forum-button:hover {
  background-color: #1f2933;
  transform: translateY(-2px);
}


/* =========================
   Schülerbewertungen – Forum Button (SPECIAL)
========================= */

.forum-link-box {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  margin: 45px 0;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.forum-link-box h2 {
  margin-top: 0;
}

.forum-button {
  display: inline-block;
  margin-top: 18px;
  padding: 16px 34px;
  background-color: #374151; /* neutral dunkel */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  border-radius: 999px; /* pill shape */
  transition: all 0.25s ease;
}

.forum-button:hover {
  background-color: #1f2933;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.forum-subtext {
  margin-top: 12px;
  font-size: 0.85em;
  color: #555;
}

/* =========================
   Lehrkräfte – Tabelle
========================= */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95em;
}

.data-table th,
.data-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}

.data-table th {
  background-color: #f1f5f9;
  font-weight: bold;
}

.data-table tr:nth-child(even) {
  background-color: #f9fafb;
}
