/* CAURUS Web Map */
/* v1.6.6 */

/* === Basislayout === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  background-color: #f0f0f0;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* --- Zentrierte Box --- */
.box,
.profile-box {
  width: 90%;
  max-width: 360px;
  background: #f9f9f9;
  border: 1px solid silver;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 50px 30px 40px 30px;
  box-sizing: border-box;
  position: relative;
  transition: all 0.3s ease;
}

/* --- Logo --- */
.logo {
  width: 180px;
  height: 65px;
  border-radius: 10px;
  background-color: #f9f9f9;
  border: 1px solid silver;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
}

/* --- Überschriften --- */
.h1, h1 {
  margin: 10px 0 5px 0;
  text-align: center;
  font-weight: bold;
  font-size: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.h2, h3 {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin: 0 0 20px 0;
}

.api {
  font-family:'Courier New', Courier, monospace;
  font-size: 80%;
}

/* --- Formularfelder --- */
input[type="text"],
input[type="password"] {
  width: 100%;
  border: 1px solid silver;
  border-radius: 5px;
  padding: 8px;
  font-size: 16px;
  color: inherit;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: background 0.3s, border 0.3s, color 0.3s;
}

/* --- Buttons --- */
input[type="submit"],
button {
  width: 100%;
  height: 45px;
  background: #eeeeee;
  color: #000;
  font-size: 18px;
  border: 1px solid silver;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

input[type="submit"]:hover,
button:hover {
  background: #e0e0e0;
}

/* --- Fehlermeldung --- */
.error {
  background-color: white;
  border: 2px solid red;
  border-radius: 5px;
  padding: 5px;
  width: 100%;
  font-weight: bold;
  font-size: 16px;
  color: red;
  text-align: center;
  display: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* --- Button-Style für Links --- */
.button-link {
  display: block;
  text-align: center;
  width: 100%;
  height: 45px;
  line-height: 45px;
  background: #eeeeee;
  color: #000;
  font-size: 18px;
  border: 1px solid silver;
  border-radius: 5px;
  text-decoration: none;
  font-weight: normal;
  margin-top: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.button-link:hover {
  background: #e0e0e0;
  color: inherit;
  text-decoration: none;
}

/* --- Links --- */
a,
.back-link {
  color: #004b8d;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  text-align: center;
  transition: color 0.2s;
}

a:hover,
.back-link:hover {
  text-decoration: underline;
}

/* --- Responsive Anpassung --- */
@media (max-width: 480px) {
  .box,
  .profile-box {
    padding: 35px 20px 25px 20px;
  }

  .logo {
    width: 150px;
    height: 55px;
    top: -35px;
  }

  input, button {
    font-size: 16px;
  }
}

/* === Dunkelmodus === */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #121212;
    color: #e6e6e6;
  }

  .box,
  .profile-box {
    background: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.6);
  }

  .logo {
    background-color: #e6e6e6;
    border: 1px solid #333;
  }

  input[type="text"],
  input[type="password"] {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #e6e6e6;
  }

  input[type="submit"],
  button {
    background: #333;
    border: 1px solid #555;
    color: #e6e6e6;
  }

  input[type="submit"]:hover,
  button:hover {
    background: #444;
  }

  .error {
    background-color: #1e1e1e;
  }

  a,
  .back-link {
    color: #7bb5ff;
  }

  a:hover,
  .back-link:hover {
    color: #a0c8ff;
  }

  .button-link {
    background: #333;
    border: 1px solid #555;
    color: #e6e6e6;
  }
  .button-link:hover {
    background: #444;
    color: inherit;
    text-decoration: none;
  }
}
