/* ==============================
   Grund-Layout & Farben
   ============================== */

:root {
  --bg-body: #f1f4f8;
  --bg-card: #ffffff;
  --primary: #2364aa;      /* Stadtblau */
  --primary-dark: #174777;
  --primary-soft: #e2edf9;
  --accent: #4caf50;       /* dezent grün für Status/OK */
  --danger: #c62828;
  --text-main: #1f2933;
  --text-muted: #6b7b93;
  --border-soft: #d0d7e2;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-card: 16px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-body);
  color: var(--text-main);
}

/* ==============================
   Header / Branding (mit Hamburg-Skyline)
   ============================== */

header {
  position: relative;
  color: #fff;
  padding: 28px 16px 32px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);

  /* Hamburg-Skyline im Hintergrund */
  background:
    linear-gradient(135deg, rgba(11, 31, 59, 0.92), rgba(35, 100, 170, 0.9)),
    url("../assets/img/hamburg-skyline.jpg") center/cover no-repeat;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

header .brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* Hamburg-H-Logo links neben dem Titel */
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    url("../assets/img/hamburg-logo.png") center/cover no-repeat;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

header p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==============================
   Navigation
   ============================== */

nav {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

nav a {
  text-decoration: none;
}

nav button {
  padding: 8px 16px;
  background: transparent;
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

nav button::before {
  content: "●";
  font-size: 0.6rem;
  color: var(--primary-soft);
}

nav button:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

nav button:active {
  transform: translateY(0);
  opacity: 0.9;
}

/* ==============================
   Container & Sektionen
   ============================== */

.container {
  max-width: 1100px;
  margin: 26px auto;
  padding: 0 16px;
}

.section {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Hamburg-Spezialsektionen für Hero-Bereiche */

.section--elphi {
  position: relative;
  color: #f9fafb;
  background:
    linear-gradient(135deg, rgba(11, 31, 59, 0.9), rgba(14, 116, 144, 0.9)),
    url("../assets/img/hamburg-elphi.jpg") center/cover no-repeat;
}

.section--speicherstadt {
  position: relative;
  color: #f9fafb;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.9)),
    url("../assets/img/hamburg-speicherstadt.jpg") center/cover no-repeat;
}

.section--elphi h2,
.section--speicherstadt h2,
.section--elphi p,
.section--speicherstadt p {
  color: #f9fafb;
}

/* Überschriften */

h2 {
  font-size: 1.5rem;
  margin: 0 0 14px;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--text-main);
}

/* ==============================
   Texte & Links
   ============================== */

p {
  margin: 0 0 10px;
  line-height: 1.5;
  color: var(--text-main);
}

small {
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==============================
   Buttons (global)
   ============================== */

button {
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(35, 100, 170, 0.35);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button[disabled],
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Spezialfarben */

button.btn-danger {
  background: var(--danger);
}

button.btn-danger:hover {
  background: #8e1717;
}

/* ==============================
   Formulare
   ============================== */

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(35, 100, 170, 0.22);
  background: #ffffff;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* ==============================
   Tabellen (Gesetze, Akten etc.)
   ============================== */

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

thead {
  background: #e5edf8;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.92rem;
}

th {
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(226, 237, 249, 0.4);
}

/* Status-Badges (z.B. für Aktenstatus) */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-offen {
  background: rgba(255, 193, 7, 0.16);
  color: #8a6b00;
}

.badge-in_bearbeitung {
  background: rgba(33, 150, 243, 0.16);
  color: #0b497a;
}

.badge-abgeschlossen {
  background: rgba(76, 175, 80, 0.18);
  color: #1b5e20;
}

/* ==============================
   News-Bereich
   ============================== */

.news-item {
  border-radius: 14px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #ffffff, #f4f7fb);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.news-item h3 {
  margin: 0 0 6px;
}

.news-item img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0 8px;
  display: block;
}

/* ==============================
   Admin-/Login-Karten
   ============================== */

.admin-card,
.login-card {
  background: radial-gradient(circle at top left, #18253b, #111827);
  color: #f9fafb;
  padding: 30px 26px;
  border-radius: 18px;
  max-width: 380px;
  margin: 40px auto;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  text-align: center;
}

.admin-card h2,
.login-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.admin-card input,
.login-card input {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(75, 85, 99, 0.8);
  color: #e5e7eb;
}

.admin-card input:focus,
.login-card input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
  background: #020617;
}

/* ==============================
   Meldungen / Alerts
   ============================== */

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 6px 0 14px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.alert-error {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.6);
}

/* ==============================
   Responsive Anpassungen
   ============================== */

@media (max-width: 768px) {
  .section {
    padding: 18px 16px;
  }

  nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  nav button {
    white-space: nowrap;
  }
}
