:root {
  --bg: #181a20;
  --bg-alt: #23272f;
  --fg: #f3f3f3;
  --accent: #7289da;
  --accent-hover: #5865f2;
  --border: #282c34;
  --footer: #20232a;
  --danger: #e06c75;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Segoe UI', 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--bg-alt);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  /* justify-content: flex-start; // Standard, kann aber explizit gesetzt werden */
  min-height: 60px;
}

header h1 {
  display: none; /* Falls noch irgendwo ein h1 im Header ist */
}

main {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#content {
  background: var(--bg-alt);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 24px #0006;
  min-width: 320px;
  text-align: center;
}

a, button {
  color: var(--fg);
  background: var(--accent);
  border: none;
  border-radius: 0.5rem;
  padding: 0.6em 1.2em;
  margin: 0.5em 0;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

a:hover, button:hover {
  background: var(--accent-hover);
}

button[onclick*="logout"] {
  background: var(--danger);
}

button[onclick*="logout"]:hover {
  background: #c0392b;
}

footer {
  background: var(--footer);
  color: #aaa;
  text-align: center;
  padding: 1rem 0 0.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  position: relative;
  bottom: 0;
  width: 100%;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  #content {
    padding: 1rem 0.5rem;
    min-width: unset;
  }
  header h1 {
    font-size: 1.3rem;
  }
}