/* =========================
   Base / Global Settings
========================= */

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fbff;
  font-size: 16px;
}


/* =========================
   Page Layout
========================= */

header {
  text-align: center;
  background-color: white;
  margin: 0 1em;
}

#wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f8fbff;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

#layout {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: center;
  padding: 1em;
}

.nav-sections{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  font-size: 1.3rem;
}

nav {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  padding: 1em;
  background-color: #dbeafe;
  border-bottom: 2px solid #bfdbfe;
}



main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-align: center;
  padding: 0 1em;
}

footer {
  background-color: #dbeafe;
  border-top: 2px solid #bfdbfe;
  width: 100%;
  text-align: center;
  padding: 0.5em;
  display: flex;
  justify-content: space-evenly;
}

h2 {
  margin-top: 0em;
}
/* =========================
   Content Sections
========================= */

.about {
  background-color: #eaf3ff;
  border: 1px solid #bfdbfe;
  padding: 0.5em;
  border-radius: 0.5em;
}

.bedarf {
  background-color: white;
  padding: 2em;
  border-radius: 1em;
}

form {
  margin-bottom: 30px;
}

/* =========================
   Form Steps
========================= */

.form-step {
  display: none;
}

.form-step.active {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
}



/* =========================
   Form Elements
========================= */

input {
  padding: 1em;
  border-radius: 0.3em;
  border: solid 1px;
  font-size: 16px;
}

button {
  padding: 0.5em 3em;
  border-radius: 0.5em;
  background-color: #2563eb;
  color: white;
  font-weight: bold;
  font-size: 18px;
  border-style: none;
  align-self: center;
}

button:hover {
  cursor: pointer;
}

.form-navigation {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1.5em;
}

/* =========================
   Hyperlinks
========================= */
footer a { 
  text-decoration: none;
  font-weight: bold;
}

footer a:visited { 
  color: inherit;
}
.nav-sections a {
  color: #1e40af;
  text-decoration: none;
  font-weight: bold;
}

.nav-sections img {
  filter: brightness(0) saturate(100%) invert(21%) sepia(67%) saturate(1798%) hue-rotate(213deg) brightness(92%) contrast(92%);
}


.nav-sections a:hover {
  text-decoration: none;
  font-weight: bold;
}

.nav-sections:hover {
  filter: brightness(0) saturate(100%) invert(35%) sepia(87%) saturate(2040%) hue-rotate(216deg) brightness(97%) contrast(91%);
}

/* =========================
   Progress bar
========================= */

.progress {
  margin-bottom: 2em;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5em;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #2563eb;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* =========================
   Title Question Format
========================= */
.question span {
  font-size: 1.2em;
}

.question {
  text-align: left;
}

/* =========================
   Card Selections
========================= */
.card-options {
  display: flex;
  gap: 10px;
}

.card-options--centered label {
  text-align: center;
}

.card-options--left label {
  text-align: left;
}

.card-options input {
  display: none;
}

.card-options label {
  flex: 1;
  padding: 0.5em;
  border: 1px solid #c6cbd1;
  border-radius: 0.3em;
  cursor: pointer;
  background-color: #ffffff;
  font-weight: 600;
  font-size: 1.2em;
}

.card-options input:checked + label {
  background-color: rgb(255, 255, 255);
  border-color: black;
  background-color: #eff6ff;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.card-options .heavy {
  font-size: 1em;
  font-weight: 600;
  color: black;
}

.card-options label span {
  font-size: 0.85em;
  display: block;
  font-weight: lighter;
  color: #666;
}


/* =========================
   Question + Inputfield one line
========================= */

.question-input-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.question-input-row label {
  flex: 0 0 auto;
}

.question-input-row input {
  flex: 1;
}

.unit {
  font-size: 0.85em;
  font-weight: lighter;
  color: #666;
}

/* =========================
   Gender Selection
========================= */

.gender-group {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  text-align: left;
}

/* =========================
   Body Data Inputs
========================= */

.body-data-group {
  display: flex;
  gap: 2em;
  text-align: left;
  font-size: 18px;
  color: #b4b4b4;
}

.body-data-group > div {
  flex: 1;
}

.body-data-group input {
  width: 100%;
}


/* =========================
   Activity Group
========================= */

.activity-group {
  display: flex;
  flex-direction: column;
  gap: 3em;
  text-align: left;
}



/* =========================
   Steps
========================= */

.step-block {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}


/* =========================
   Goal
========================= */

.goal-group {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  text-align: left;
}

/* =========================
   Ergebnisausgabe
========================= */

.hidden {
  display: none;
}

.result {
  text-align: left;
  padding: 1.5em;
  border-radius: 0.8em;
  background-color: #eff6ff;
  border: 1px solid #2563eb;
}

/* =========================
   Images
========================= */
nav img {
  max-width: 100%;
  width: 35px;
  height: auto;
  display: block;
  margin: 0rem auto;
  border-radius: 0.8rem;
}

.logo {
  max-width: 100%;
  width: 350px;
  height: auto;
  display: block;
  margin: 0rem auto;
  border-radius: 0.8rem;
}

.icons {
  max-width: 100%;
  width: 100px;
  height: auto;
  display: block;
  border-radius: 0.8rem;
}

#title-plus-icon {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: white;
  width: fit-content;
  align-self: center;
  padding: 0 2em;
  border-radius: 0.75rem;
}

#title-plus-icon h1 {
  margin: 0em;
}

/* =========================
   Header
========================= */

header {
  display: flex;
  justify-content: center;
  gap: 1em;
}



/* =========================
   kleine Screens
========================= */

@media (max-width: 700px) {
  
  header {
    margin: 0;
  }

  nav {
    flex-direction: column;
    gap: 0.75em;
    align-items: center;
  }

  #layout {
    padding: 0.5em;
  }

  main {
    padding: 0;
  }

  .bedarf {
    padding: 1em;
  }

  .body-data-group {
    flex-direction: column;
    gap: 1em;
  }

  .card-options {
    flex-direction: column;
  }

  .question-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-navigation {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 0.5em;
  }
}

