/* === Grundlayout & Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #e0eafc, #cfdef3);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

/* === Zentrierte Box (der sichtbare Inhalt) === */
.boxed {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 90vh;
}

/* === Überschriften & Links === */
h1, h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

a {
  color: #2980b9;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === Formular und Eingaben === */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="submit"],
button {
  padding: 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: all 0.2s ease;
}

input:focus {
  border-color: #2980b9;
  outline: none;
  box-shadow: 0 0 4px rgba(41, 128, 185, 0.3);
}

/* === Button-Stil === */
button,
input[type="submit"] {
  background-color: #2980b9;
  color: white;
  cursor: pointer;
  font-weight: 500;
  border: none;
}

button:hover,
input[type="submit"]:hover {
  background-color: #1c5980;
}

/* === Systemmeldungen === */
.success {
  background: #2ecc71;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

.error {
  background: #e74c3c;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

/* === Raumliste oder Karten === */
.room-list {
  list-style: none;
  margin-top: 20px;
}

.room-list li {
  background: #ecf0f1;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.room-list li:hover {
  background: #d0dce3;
}

/* === Fußzeile oder kleine Hinweise === */
footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9em;
  color: #999;
}


  
/* Auf mobilen Bildschirmen: volle Breite nutzen */
@media (max-width: 600px) {
  .boxed {
    width: 100%;
    max-width: none;      /* entferne das feste Maximum */
    margin: 10px 0;        /* vertikaler Abstand, kein Zentrieren */
    padding: 20px 15px;    /* etwas Padding, aber insgesamt kleiner */
    border-radius: 0;      /* eckigere Box wirkt fließender */
    box-shadow: none;      /* optional: Schatten ausblenden */
  }
}



/* Überschriften */
h2 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5em;
}

h3 {
  color: #34495e;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
}

/* Logout-Link als Button */
a.logout {
    position: fixed;
  display: inline-block;
  padding: 8px 15px;
  background: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-bottom: 30px;
  bottom: 20px;
}

a.logout:hover {
  background: #c0392b;
}

/* Raumliste */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul li {
  background: #f4f6f8;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #2c3e50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.3s ease;
}

ul li:hover {
  background: #e0e7ef;
}

/* Beitreten-Link als Button */
ul li a {
  background: #2980b9;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

ul li a:hover {
  background: #1c5980;
}


/* Formular im boxed Layout */
form {
  display: flex;
  flex-direction: column;
}

form h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 700;
  text-align: center;
}

/* Eingabefelder */
input[type="text"],
input[type="password"],
input[name="username"],
input[name="password"] {
  padding: 12px 15px;
  margin-bottom: 18px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[name="username"]:focus,
input[name="password"]:focus {
  border-color: #2980b9;
  outline: none;
}

/* Button */
button {
  padding: 12px 15px;
  background-color: #2980b9;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1c5980;
}

/* Fehlermeldung */
form p {
  margin-bottom: 15px;
  font-weight: 600;
  color: #e74c3c;
  text-align: center;
}
