
/* Basis-Body-Layout für alle Seiten (wenn kein typ-i/typ-ii) */
body:not(.typ-i):not(.typ-ii) {
  font-family: Arial, sans-serif;
  margin: 20px;
  /* max-width: 600px; */
  line-height: 1.5;
  color: #0a003d;
  background-color: #EDDFB8;
}

/* Reset bei typ-i und typ-ii, damit keine doppelten Styles greifen */
body.typ-i,
body.typ-ii {
  margin: 0;
  padding: 0;
  color: #0a003d;
  font-family: Arial, sans-serif;
}

/* Container allgemeiner Aufbau */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #5a00ff;
}

h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

button {
  padding: 10px 20px;
  cursor: pointer;
  border: 2px solid #0a003d;
  background-color: white;
  color: #0a003d;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.2s;
  width: 100%;
}

button:hover {
  background-color: #f5f5f5;
}

/* Dashboard-spezifisches Layout */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 75%;
  margin-bottom: 2rem;
}

.logo {
  height: 50px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.subtitle {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.card {
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.card-icon {
  display: block;
  margin: 1rem auto 0;
  height: 40px;
}

.card.geistig {
  background: #d4bfff;
  border: 3px solid #5a00ff;
  color: #4a00b3;
}

.card.koerperlich {
  background: #ffe38c;
  border: 3px solid #b36b00;
  color: #b36b00;
}

.card.fortschritt {
  background: #f3f3f3;
  border: 3px solid #195f4c;
  color: #195f4c;
}

#logoutBtn {
  display: block;
  margin: 2rem auto;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 2px solid #0a003d;
  background-color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#logoutBtn:hover {
  background-color: #eee;
}

/* Frageansicht */
.frage-container {
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
}

.frage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-small {
  height: 50px;
}

.close-button {
  font-size: 1.5rem;
  background: white;
  border: 2px solid #5a00ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #5a00ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.typ-i .close-button {
  border-color: #5a00ff;
  color: #5a00ff;
}

body.typ-ii .close-button {
  border-color: #b36b00;
  color: #b36b00;
}

body:not(.typ-i):not(.typ-ii) .close-button {
  border-color: #195f4c;
  color: #195f4c;
}

.frage-topic {
  text-align: center;
  margin-top: 2rem;
}

.elefant-icon {
  width: 100px;
  margin-bottom: 1rem;
}

.frage-topic h2 {
  font-size: 1.4rem;
}

.frage-card {
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  width: 40%;
  height: 100%;
}

.frage-text {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #0a003d;
}

.antwort-input {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1rem;
  display: block;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Typenspezifisch */
body.typ-i .frage-container {
  background-color: #CCB1FE;
}

body.typ-ii .frage-container {
  background-color: #FFE29A;
}

body.typ-i .frage-topic h2 {
  color: #5a00ff;
}

body.typ-ii .frage-topic h2 {
  color: #b36b00;
}

body.typ-i .frage-card {
  background: #e6d6ff;
}

body.typ-ii .frage-card {
  background: #fff3c4;
}
/* Fortschritts-Seite */
body.fortschritt-seite {
  background: #EDDFB8;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #0a003d;
}

.fortschritt-container {
  max-width: 393px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fortschritt-inhalt {
  margin-top: 2rem;
  text-align: center;
}

.fortschritt-inhalt h2 {
  color: #225132;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.flamme-icon {
  margin: 2rem 0 1rem;
  width: 100px;
}

.kalender-box {
  background: #fffaf0;
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.kalender-box table {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.kalender-box td {
  padding: 0.4rem;
}

.kalender-box .smiley {
  font-size: 1.3rem;
}

.status-text {
  text-align: center;
  margin-top: 1rem;
}

.status-text strong {
  color: #00005e;
}

.naechste-btn {
  display: block;
  margin: 2rem auto 0;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  border: 1.5px solid #0a003d;
  background-color: white;
  color: #0a003d;
  border-radius: 12px;
  cursor: pointer;
}


body.geschuetzt-seite {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.fortschritt-seite {
  background-color: #EDDFB8;
}

#protectedContent {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  min-width: 50%;
}
/* Registrieren-Seite – Hintergrundverlauf und Layout */
body.register-seite {
  background: linear-gradient(to bottom left, #f0eaff 60%, #ffe69d 60%);
  font-family: Arial, sans-serif;
  color: #0a003d;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 400px;
  text-align: center;
}

header .logo {
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
  color: #5a00ff;
  margin: 0.2rem 0;
}

.subtitle {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.login-box {
  background: white;
  border: 2px solid #5a00ff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: left;
}

.login-box h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #0a003d;
}

.login-box label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.login-box input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 0.8rem;
  font-weight: bold;
  border: 2px solid #0a003d;
  background: white;
  color: #0a003d;
  border-radius: 10px;
  cursor: pointer;
  transition: background-colour 0.2s ease;
}

.login-box button:hover {
  background-color: #f0f0f0;
}

.register-hint {
  text-align: center;
  margin-top: 1.5rem;
}

.register-hint a {
  color: #5a00ff;
  text-decoration: none;
  font-weight: bold;
}

.header-inline {
  display: flex;
  align-items: flex-end; /* statt center */
  gap: 1rem;
}

.header-inline .logo {
  height: 150px; /* Grösse des Logos */
}

@media (max-width: 480px) {
  .header-inline {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

body.register-seite,
body.geschuetzt-seite,
body.login-seite {
  background-image: url('../img/hintergrund.png');
  background-size: cover;
}