:root {
  --red: #E5262C;
  --dark: #111;
  --card: #1b1b1b;
  --text: #f1f1f1;
  --accent: #ff4747;
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --radius: 12px;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark);
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  box-shadow: var(--shadow);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Hinzugefügt für Verbesserung 1: Link-Styling für Header-Text */
  text-decoration: none;
  color: #fff;
}
/* Stellt sicher, dass alle Elemente im Link weiß bleiben */
header a.logo, header a.logo * {
  color: #fff; 
}


header .logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

header .title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header .title h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.5px;
  font-weight: 800;
}
header .title p {
  margin: 4px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* NEU: Styling für die Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 0;
    font-size: 14px;
    padding: 0 4px; /* Optische Anpassung */
}
.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}


main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  background: var(--card);
  padding: 30px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: fadeIn .5s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

h2 { margin-top: 0; color: var(--accent); }

input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  font-size: 15px;
}
input:focus { outline: 2px solid var(--accent); }

button {
  width: 100%;
  background: var(--red);
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s ease;
}
button:hover { background: var(--accent); transform: translateY(-2px); }

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
a:hover { text-decoration: underline; }

.hidden { display: none; }

nav a {
  display: block;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all .2s ease;
}
nav a:hover {
  background: var(--accent);
  transform: translateX(4px);
}

footer {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  padding: 20px;
  background: #1a1a1a;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
:root {
  --red: #E5262C;
  --dark: #111;
  --card: #1b1b1b;
  --text: #f1f1f1;
  --accent: #ff4747;
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --radius: 12px;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark);
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  box-shadow: var(--shadow);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
}

header .logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

header .title h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.5px;
  font-weight: 800;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  background: var(--card);
  padding: 30px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: fadeIn .5s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

h2 { margin-top: 0; color: var(--accent); }

input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  box-sizing: border-box;
}

button {
  width: 100%;
  background: var(--red);
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  margin-top: 5px;
}

button:hover { background: var(--accent); transform: translateY(-2px); }

.hidden { display: none; }

nav a {
  display: block;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all .2s ease;
}
nav a:hover { background: var(--accent); transform: translateX(4px); }

/* ===== CHAT STYLING ===== */
#chatDisplay {
  height: 300px;
  background: #111;
  border-radius: 8px;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
  text-align: left;
  border: 1px solid #333;
}

.chat-msg {
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid var(--red);
}

.chat-msg .user { font-weight: 800; color: var(--accent); font-size: 12px; display: block; }
.chat-msg .time { float: right; font-size: 10px; opacity: 0.5; }

footer {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  padding: 20px;
  background: #1a1a1a;
}