/* ===== Responsive adjustments for mobile ===== */
@media (max-width: 600px) {
  body {
    padding: 0 1rem;
    font-size: 16px;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1rem;
  }

  input,
  button,
  table input {
    font-size: 16px; /* prevent iOS zoom-on-focus */
    max-width: 100%;
  }

  .two {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    width: 70%; /* smaller logo */
  }

  .header-line {
    margin-bottom: 2rem;
  }

  table th,
  table td {
    font-size: 0.95rem;
  }

  button {
    width: 100%;
    text-align: center;
  }

  .attachments-container input[type="file"] {
    font-size: 14px;
  }

  /* Stack the two-button section vertically */
  .download-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1rem;
}
h1 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
}
label {
  display: block;
  font-weight: 500;
  margin-top: 0.6rem;
}
input {
  width: 100%;
  max-width: 350px;
  padding: 0.35rem 0.5rem;
  margin-top: 0.25rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
}
table th,
table td {
  text-align: left;
  padding: 0.25rem 0.25rem;
}
table input {
  width: 100%;
}
button {
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}
footer {
  width: 100%;
  text-align: center;
  margin-top: 5rem;
}
.two {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.header {
  width: 100%;
  max-width: 780px; /* match main content width */
  margin: 0 auto 1.5rem auto;
  position: relative;
}
.logo {
  display: block;
  width: 360px; /* adjust size as needed */
  margin-left: auto; /* right-align */
}
.header-line {
  height: 3px;
  background-color: #255f9b; /* TUM-ish blue */
  width: 100%; /* same width as main content area */
  margin-top: 0.5rem;
  margin-bottom: 3em;
}
.attachments-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
/* ===== Layout for the download / demo section ===== */
.download-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap; /* allows wrapping on narrow screens */
  gap: 0.6rem;
}

.download-section .left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* make all buttons consistent */
button {
  margin-top: 0.6rem;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #255f9b;
  color: white;
  transition: background-color 0.2s;
}
button.secondary {
  background-color: #e0e0e0;
  color: #333;
}

button.secondary:hover {
  background-color: #d0d0d0;
}

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

/* ===== Responsive adjustments for mobile ===== */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  input,
  button,
  table input {
    font-size: 16px; /* prevent iOS zoom */
    width: 100%;
    max-width: 100%;
  }

  .download-section {
    flex-direction: column;
    align-items: stretch;
  }

  .download-section button {
    width: 100%;
  }

  .logo {
    width: 70%;
  }
}
