* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  color: #ffffff;
  background: #05070b;
  background-image:
    linear-gradient(180deg, rgba(6, 9, 15, 0.74), rgba(6, 9, 15, 0.84)),
    url('/assets/hannoverEBSeite.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(12, 18, 29, 0.78);
  backdrop-filter: blur(7px);
}

.logo {
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.main-image {
  display: none;
}

.button-container {
  width: min(580px, calc(100% - 28px));
  margin: clamp(52px, 14vh, 130px) auto 0;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: rgba(8, 13, 24, 0.74);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body:not(.login-page):not(.form-selection-page) .button-container {
  margin-top: clamp(34vh, 48vh, 62vh);
  gap: 20px;
}

.button {
  width: 100%;
  display: block;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  background: #5eb9f2;
  color: #0b1727;
  text-decoration: none;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

body.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 78px;
}

body.login-page .title {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

body.login-page .button-container {
  margin-top: 0;
  margin-bottom: 20px;
}

body.login-page .button {
  margin-bottom: 8px;
}

body.login-page .footer {
  position: fixed;
  left: 0;
  bottom: 8px;
  width: 100%;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.82rem;
  text-align: left;
  padding-left: 16px;
}

body.login-page .guest-login-container {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 15;
}

body.login-page .guest-login-button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(14, 20, 33, 0.8);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
}

body.login-page .guest-login-button:hover {
  background: rgba(31, 41, 55, 0.9);
}

body.form-selection-page {
  min-height: 100vh;
  padding: 26px 14px 86px;
}

body.form-selection-page h1 {
  text-align: center;
  margin-top: clamp(20px, 8vh, 72px);
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

body.form-selection-page #profile-list {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  background: rgba(8, 13, 24, 0.74);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.form-selection-page .profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  padding: 14px 16px;
}

body.form-selection-page .profile-card:hover {
  border-color: rgba(94, 185, 242, 0.9);
  background: rgba(30, 58, 138, 0.44);
}

body.form-selection-page .profile-name {
  font-size: 0.98rem;
  font-weight: 700;
}

body.form-selection-page .profile-file {
  font-size: 0.76rem;
  color: #bfdbfe;
  margin-top: 2px;
}

body.form-selection-page .profile-arrow {
  font-size: 1.28rem;
  color: #7dd3fc;
}

body.form-selection-page #error-msg {
  text-align: center;
  color: #fca5a5;
}

body.form-selection-page #loading-msg {
  text-align: center;
  color: #cbd5e1;
}

body.form-selection-page .install-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

body.form-selection-page .install-btn {
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 0.84rem;
  line-height: 1;
  cursor: pointer;
  background: #5eb9f2;
  color: #0b1727;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.form-selection-page .install-btn[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .button-container {
    width: calc(100% - 20px);
    margin-top: 34px;
    padding: 16px;
    border-radius: 14px;
  }

  .button {
    font-size: 0.98rem;
    padding: 13px 14px;
  }

  body.form-selection-page #profile-list {
    padding: 12px;
    border-radius: 14px;
  }

  body:not(.login-page):not(.form-selection-page) .button-container {
    margin-top: clamp(30vh, 40vh, 52vh);
    gap: 18px;
  }
}