/* ===================================================
   LSPD Gesetzbuch – einklappbare Kategorien
   =================================================== */

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #0a1f3d, #000814);
  color: #f1f1f1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 15, 35, 0.85);
  padding: 15px 25px;
  border-bottom: 2px solid #00aaff;
  box-shadow: 0 0 10px #00aaff33;
}

.logo {
  height: 50px;
  margin-right: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

#searchLaw {
  background: rgba(255,255,255,0.1);
  border: 1px solid #00aaff55;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
  width: 260px;
  transition: 0.2s;
}
#searchLaw:focus {
  border-color: #00aaff;
  background: rgba(255,255,255,0.15);
}

main {
  flex: 1;
  padding: 30px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.glass {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  padding: 25px;
  overflow-y: auto;
}

/* ===================================================
   📘 Tabs (Gesetzbuch / Berichte)
   =================================================== */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.tab-btn {
  background: rgba(0, 0, 40, 0.6);
  border: 1px solid #00aaff55;
  color: #00aaff;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}
.tab-btn:hover {
  background: rgba(0, 80, 150, 0.3);
}
.tab-btn.active {
  background: #00aaff33;
  border-color: #00aaff;
  color: #fff;
}

.tab-content.hidden {
  display: none;
}

/* ===================================================
   📂 Kategorie-Header
   =================================================== */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 30, 60, 0.5);
  border: 1px solid rgba(0, 115, 255, 0.4);
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.category-header:hover {
  background: rgba(0, 50, 100, 0.6);
  box-shadow: 0 0 10px rgba(0,115,255,0.3);
}
.category-header.open {
  background: rgba(0, 50, 100, 0.6);
  border-color: #00aaff;
}

.toggle-icon {
  font-size: 1.2em;
  color: #00aaff;
  user-select: none;
}

.category-title {
  color: #00aaff;
  font-size: 1.3em;
  margin: 0;
  text-transform: uppercase;
}

/* Ein-/Ausklappbare Inhalte */
.category-content {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.category-content.collapsed {
  max-height: 0;
  opacity: 0;
}
.category-content.expanded {
  max-height: 2000px;
  opacity: 1;
}

/* ===================================================
   📜 Gesetzkarten
   =================================================== */
.law-card {
  background: rgba(0, 0, 30, 0.35);
  border: 1px solid #00aaff55;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  transition: 0.25s;
}
.law-card:hover {
  border-color: #00aaff;
  background: rgba(0, 0, 50, 0.5);
}

.law-card h3 {
  color: #00aaff;
  font-size: 1.1em;
  margin-bottom: 8px;
}
.law-card p {
  margin: 0;
  color: #e1e1e1;
  line-height: 1.4em;
}

.penalty {
  display: inline-block;
  margin-top: 8px;
  background: #00aaff22;
  border-left: 3px solid #00aaff;
  padding: 5px 10px;
  font-size: 0.9em;
  color: #a8dfff;
  border-radius: 5px;
}

.empty {
  text-align: center;
  color: #bbb;
  padding: 30px;
}

/* ===================================================
   📰 Öffentliche Berichte
   =================================================== */
.report-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.report-controls input,
.report-controls select {
  background: rgba(255,255,255,0.1);
  border: 1px solid #00aaff55;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
  transition: 0.2s;
}
.report-controls input:focus,
.report-controls select:focus {
  border-color: #00aaff;
  background: rgba(255,255,255,0.15);
}

.report-card {
  background: rgba(0, 0, 30, 0.35);
  border: 1px solid #00aaff55;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  transition: 0.25s;
}
.report-card:hover {
  border-color: #00aaff;
  background: rgba(0, 0, 50, 0.5);
}

.report-card h3 {
  color: #00aaff;
  font-size: 1.15em;
  margin-bottom: 8px;
}
.report-card p {
  color: #e1e1e1;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  background: #00aaff22;
  color: #a8dfff;
  font-size: 0.85em;
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 3px solid #00aaff;
}
.meta {
  font-size: 0.85em;
  color: #aaa;
  margin-top: 5px;
  font-style: italic;
}

/* ===================================================
   🔐 Login Button
   =================================================== */
.login-btn {
  background: #007bff33;
  color: #00aaff;
  border: 1px solid #00aaff66;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.95em;
  margin-left: 10px;
  cursor: pointer;
  transition: 0.25s;
}
.login-btn:hover {
  background: #00aaff33;
  box-shadow: 0 0 10px #00aaff66;
  color: #fff;
}
.login-btn:active {
  transform: scale(0.97);
}

/* ===================================================
   📄 Footer
   =================================================== */
footer {
  text-align: center;
  padding: 10px;
  background: rgba(0,15,35,0.85);
  border-top: 1px solid #00aaff33;
  font-size: 0.9em;
}
