:root {
  --bg-light: #f4f4f4;
  --bg-dark: #1e1e1e;
  --text-light: #000;
  --text-dark: #f4f4f4;
  --container-bg-light: #fff;
  --container-bg-dark: #2a2a2a;
  --accent-color: #0066cc;
  --border-color: #ccc;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background-color: var(--container-bg-light);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  transition: background-color 0.3s;
}

body.dark .container {
  background-color: var(--container-bg-dark);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  background-color: white;
}

body.dark input {
  background-color: #444;
  color: white;
  border-color: #666;
}

button {
  padding: 12px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #004999;
}

.subtab-button {
    padding: 6px 12px;
    margin: 4px 4px 12px 0;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}
.subtab-button:hover {
    background: #ddd;
}

.error {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    display: none;
}
.cookie-banner button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #0066cc;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9998;
    display: none;
}

/* Mobile */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

/* Wrapper nimmt volle Höhe */
.wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Container passt sich mobil sauber an */
.container {
  width: 80%;
  max-width: 400px;
}
