html, body {
  height: 100%;
  min-height: 100%;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #222;
  min-height: 100vh;
}

.container {
  max-width: 430px;
  margin: 32px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 24px 16px 0 16px;
  display: flex;
  flex-direction: column;
  min-height: 85vh;
  height: 85vh;
  position: relative;
}

.main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.03em;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  gap: 16px;
}

.tab-btn {
  padding: 13px 24px;
  min-width: 92px;
  border: none;
  background: #e6e6e6;
  border-radius: 18px;
  font-size: 1.09rem;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  transition: background 0.15s, color 0.15s;
  outline: none;
  box-shadow: 0 2px 6px rgba(160,21,21,0.06);
}

.tab-btn.active {
  background: #a41515;
  color: #fff;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.geschlecht {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 18px 0 18px 0;
}

.geschlecht label {
  font-size: 1.09rem;
  cursor: pointer;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.row label {
  flex: 1.1 100px;
}

.row input[type="number"] {
  width: 92px;
  padding: 10px;
  font-size: 1.12em;
  border-radius: 7px;
  border: 1px solid #ccc;
  background: #fafafa;
  touch-action: manipulation;
}

.note {
  width: 56px;
  text-align: center;
  background: #eaeaea;
  border-radius: 6px;
  padding: 6px 0;
  font-weight: 600;
  font-size: 1.08rem;
  border: 1px solid #e0e0e0;
}

.zeit-eingabe {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zeit-eingabe input[type="number"] {
  width: 56px;
  padding: 10px;
  font-size: 1.12em;
  touch-action: manipulation;
}

.zeit-eingabe span {
  font-size: 1.18em;
}

.hinweis {
  color: #a00;
  font-size: 0.97em;
  margin: 6px 0 12px 0;
  text-align: center;
}

.footer-wrap {
  margin-top: 24px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.footer-text {
  color: #a41515;
  font-size: 0.99em;
  font-weight: 600;
  text-align: center;
}

.footer-logo {
  max-height: 44px;
  width: auto;
  display: inline-block;
  margin-top: 10px;
  max-width: 100%;
}

/* Abstand im Tab PS80 (Frauen/M?nner Eingabe) */
#ps80 .row:first-child {
  margin-top: 30px;
}

@media (max-width: 600px) {
  .container {
    margin: 10px;
    padding: 10px 4px 0 4px;
    /* min-height und height entfernt! */
  }
  h1 {
    font-size: 1.18rem;
  }
  .row label {
    font-size: 0.97rem;
  }
  .tab-btn {
    padding: 17px 0;
    min-width: 30vw;
    font-size: 1.19rem;
    border-radius: 24px;
  }
  .tabs {
    gap: 12px;
  }
  .row input[type="number"] {
    width: 72px;
    padding: 12px;
    font-size: 1.17em;
  }
  .zeit-eingabe input[type="number"] {
    width: 48px;
    padding: 12px;
    font-size: 1.17em;
  }
  .footer-logo {
    max-height: none;
    width: 50vw;
    min-width: 120px;
    max-width: 96vw;
    margin-top: 10px;
  }
  /* Abstand im Tab PS80 auch mobil */
  #ps80 .row:first-child {
    margin-top: 18px;
  }
}
