* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f4f4f5;
  color: #1f2937;
}

body.app-body {
  min-height: 100vh;
}

body:not(.app-body) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-box {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 320px;
}

.auth-box h1 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  text-align: center;
}

.auth-box label {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #444;
}

.auth-box input,
.auth-box select {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.auth-box button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.7rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.auth-box button:hover {
  background: #1d4ed8;
}

.auth-box p {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.auth-box a {
  color: #2563eb;
  text-decoration: none;
}

.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.success-msg {
  background: #dcfce7;
  color: #166534;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.8rem 1rem;
}

.menu-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.3rem;
}

.menu-icon span {
  width: 24px;
  height: 3px;
  background: #1f2937;
  border-radius: 2px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  transition: transform 0.2s;
  z-index: 21;
  padding: 1.2rem;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar-menu li a,
.sidebar-link-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: #1f2937;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.sidebar-menu li a:hover,
.sidebar-link-button:hover {
  background: #f3f4f6;
}

.sidebar-danger {
  color: #b91c1c !important;
}

.badge {
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 320px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.page-content.narrow {
  max-width: 480px;
}

.page-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.empty-state {
  color: #6b7280;
  font-size: 0.95rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-bar input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.search-bar button {
  padding: 0.6rem 1rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-bar button:hover {
  background: #1d4ed8;
}

.subject-list,
.item-list {
  list-style: none;
}

.subject-list li,
.item-list li {
  border-bottom: 1px solid #e5e7eb;
}

.subject-list li a,
.item-list li a {
  display: block;
  padding: 0.8rem 0.3rem;
  color: #1f2937;
  text-decoration: none;
  font-size: 1rem;
}

.subject-list li a:hover,
.item-list li a:hover {
  background: #f9fafb;
}

.item-list .meta {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

/* News-Übersicht */

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.news-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.news-link {
  display: block;
  padding: 1rem;
  color: #1f2937;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
}

.news-link:hover {
  background: #f9fafb;
}

.news-date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

/* Einzelne News */

.news-detail {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.news-detail .page-title {
  margin-bottom: 0.4rem;
}

.news-detail-content {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 1rem;
  margin-top: 1.2rem;
  color: #1f2937;
}

.news-detail-author {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.news-detail-back {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.news-detail-back a {
  color: #2563eb;
  text-decoration: none;
}

.news-detail-back a:hover {
  text-decoration: underline;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.report-form label {
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.5rem;
}

.report-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

.report-form button {
  margin-top: 1rem;
  padding: 0.7rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.report-form button:hover {
  background: #1d4ed8;
}
