/* === GLOBAL RESET & HINTERGRUND === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: #e6eef6;
  scroll-behavior: smooth;

  /* Dunkler, ruhiger Farbverlauf: tiefes Grün → Schwarz */
  background: linear-gradient(135deg, #0c2013 0%, #050505 100%);
  background-attachment: fixed;
  background-size: cover;
}

/* === DESIGN-VARIABLEN === */
:root {
  --bg: #0a0a0a;
  --card: #1b1b1b;
  --muted: #a0a0a0;
  --accent: #1e8449; /* dunkles kräftiges Grün */
  --accent-2: #145a32; /* noch dunkleres Grün für Hover */
  --text: #e6eef6;
  --footer-bg: rgba(15,15,15,0.95);
  --footer-border: rgba(255,255,255,0.08);
}

/* === BASIS-ELEMENTE === */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: 70px; /* Platz für Footer */
}

/* === LINKS === */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-2);
}

/* === LOGIN / REGISTER === */
.login-container {
  width: 92%;
  max-width: 420px;
  margin: 8vh auto;
  background: rgba(20, 20, 20, 0.85);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
}
.login-container h2 {
  text-align: center;
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.login-container input {
  width: 100%;
  padding: 0.9rem;
  margin: 0.6rem 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #121212;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.login-container input:focus {
  border-color: var(--accent);
  outline: none;
  background: #151515;
}
.login-container button {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.8rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.login-container button:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.login-container p {
  text-align: center;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.login-container a {
  color: var(--accent);
  font-weight: 600;
}
.error { color: #ff6b6b; text-align: center; }
.success { color: #7ee787; text-align: center; }

/* === FIXIERTER FOOTER === */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--text);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.footer-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left a {
  color: var(--accent);
  text-decoration: none;
}
.footer-left a:hover {
  text-decoration: underline;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-user {
  color: var(--text);
  font-weight: 500;
}

.footer-msg {
  position: relative;
  color: #aaa;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color .2s ease;
}
.footer-msg:hover {
  color: var(--accent);
}
.footer-msg.has-unread {
  color: var(--accent);
  animation: pulse 1.5s infinite;
}

.msg-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 0.7rem;
  padding: 2px 5px;
  font-weight: 700;
}

.footer-logout button {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color .2s ease;
}
.footer-logout button:hover {
  color: #f87171;
}

/* === Animation für neue Nachrichten === */
@keyframes pulse {
  0% { text-shadow: 0 0 0 rgba(34,197,94,0.5); }
  50% { text-shadow: 0 0 8px rgba(34,197,94,0.9); }
  100% { text-shadow: 0 0 0 rgba(34,197,94,0.5); }
}
