/* =========================================================
   RBH INTENSIV
   ZENTRALES STYLESHEET
   Primärfarbe: #0b3633
========================================================= */


/* =========================================================
   GRUNDEINSTELLUNGEN
========================================================= */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;

  background-color: #f2f5f4;

  color: #283331;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #0b3633;
}


/* =========================================================
   ALLGEMEINE BUTTONS
========================================================= */

button {
  padding: 12px 18px;

  background-color: #0b3633;
  color: #ffffff;

  border: 0;
  border-radius: 8px;

  font-weight: 700;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
}

button:hover {
  opacity: 0.92;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.45;

  cursor: not-allowed;
}


/* =========================================================
   ADMIN – GRUNDLAYOUT
========================================================= */

.admin-body {
  min-height: 100vh;

  background-color: #f2f5f4;
}

.admin-wrapper {
  width: min(1100px, calc(100% - 40px));

  margin: 0 auto;

  padding: 40px 0 60px 0;
}

.admin-panel {
  width: 100%;

  margin-bottom: 22px;

  padding: 26px;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 14px;

  box-shadow:
    0 5px 18px rgba(11, 54, 51, 0.06);
}

.admin-panel-compact {
  padding: 20px 22px;
}

.admin-panel h1,
.admin-panel h2,
.admin-panel h3 {
  color: #0b3633;
}

.admin-panel h1 {
  margin-top: 0;
}

.admin-panel h2 {
  margin-top: 0;
}


/* =========================================================
   ADMIN – TYPOGRAFIE
========================================================= */

.admin-eyebrow {
  margin: 0 0 8px 0;

  color: #687371;

  font-size: 0.78rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.admin-intro {
  margin: 8px 0 0 0;

  color: #687371;

  line-height: 1.55;
}


/* =========================================================
   ADMIN – SEITENKOPF
========================================================= */

.admin-page-top {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-bottom: 24px;
}

.admin-page-top h1 {
  margin: 0;

  color: #283331;
}

.admin-page-top p {
  margin: 4px 0 0 0;

  color: #687371;
}

.admin-header {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 24px;

  margin-bottom: 26px;
}

.admin-header h1 {
  margin: 0;

  color: #283331;

  font-size: 2rem;

  line-height: 1.2;
}

.admin-logout,
.admin-back {
  display: inline-block;

  flex-shrink: 0;

  padding: 10px 14px;

  background-color: #eef2f1;
  color: #0b3633;

  border: 1px solid #ccd7d4;
  border-radius: 8px;

  text-decoration: none;

  font-weight: 700;
}

.admin-logout:hover,
.admin-back:hover {
  background-color: #e4eae8;
}


/* =========================================================
   ADMIN – DASHBOARD
========================================================= */

.admin-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.admin-card {
  display: grid;

  grid-template-columns:
    52px
    minmax(0, 1fr);

  gap: 16px;

  align-items: start;

  padding: 22px;

  background-color: #ffffff;
  color: #283331;

  border: 1px solid #dce4e2;
  border-radius: 13px;

  box-shadow:
    0 5px 18px rgba(11, 54, 51, 0.055);

  text-decoration: none;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.admin-card:hover {
  transform: translateY(-2px);

  border-color: #c9d6d3;

  box-shadow:
    0 9px 26px rgba(11, 54, 51, 0.09);
}

.admin-card-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 10px;

  font-weight: 800;
}

.admin-card h2 {
  margin: 0;

  color: #0b3633;

  font-size: 1.18rem;
}

.admin-card p {
  margin: 7px 0 0 0;

  color: #687371;

  line-height: 1.5;
}


/* =========================================================
   ADMIN – FORMULARE
========================================================= */

.admin-form {
  display: grid;

  gap: 18px;
}

.form-group,
.admin-form-group {
  display: grid;

  gap: 7px;
}

.form-group label,
.admin-form-group label {
  color: #283331;

  font-size: 0.9rem;
  font-weight: 700;
}

.form-group small {
  color: #687371;

  line-height: 1.4;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form textarea,
.admin-form select,
.admin-panel input[type="text"],
.admin-panel input[type="number"],
.admin-panel input[type="password"],
.admin-panel textarea,
.admin-panel select {
  width: 100%;

  padding: 11px 12px;

  background-color: #ffffff;
  color: #283331;

  border: 1px solid #cbd6d3;
  border-radius: 8px;

  outline: none;
}

.admin-form textarea,
.admin-panel textarea {
  min-height: 110px;

  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
  border-color: #0b3633;

  box-shadow:
    0 0 0 3px rgba(11, 54, 51, 0.1);
}

.admin-form-actions {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 10px;
}

.admin-select-form {
  gap: 12px;
}

.admin-select-action {
  display: flex;
}


/* =========================================================
   ADMIN – BUTTONS
========================================================= */

.admin-button,
.admin-link-button,
.action-button {
  display: inline-block;

  padding: 10px 14px;

  background-color: #0b3633;
  color: #ffffff;

  border: 0;
  border-radius: 8px;

  text-decoration: none;

  font-weight: 700;

  cursor: pointer;
}

.admin-button:hover,
.admin-link-button:hover,
.action-button:hover {
  opacity: 0.92;
}

.action-button-small {
  padding: 8px 11px;

  font-size: 0.82rem;
}

.admin-button-secondary,
.button-secondary {
  display: inline-block;

  padding: 10px 15px;

  background-color: #eef2f1;
  color: #0b3633;

  border: 1px solid #ccd7d4;
  border-radius: 8px;

  text-decoration: none;

  font-weight: 700;
}

.admin-button-secondary:hover,
.button-secondary:hover {
  background-color: #e4eae8;
}

.admin-button-danger,
.action-button.danger {
  background-color: #f7e8e8;
  color: #8d3030;

  border: 1px solid #e5c4c4;
}


/* =========================================================
   ADMIN – MELDUNGEN
========================================================= */

.admin-message {
  margin-bottom: 18px;

  padding: 13px 15px;

  border-radius: 8px;
}

.admin-message.success,
.admin-message-success {
  background-color: #e6f2ec;
  color: #256344;

  border: 1px solid #c6dfd1;
}

.admin-message.error,
.admin-message-error {
  background-color: #f7e8e8;
  color: #8d3030;

  border: 1px solid #e5c4c4;
}

.admin-empty {
  margin: 0;

  padding: 18px;

  background-color: #f7f9f8;
  color: #687371;

  border: 1px dashed #cdd8d5;
  border-radius: 9px;
}


/* =========================================================
   ADMIN – WISSENSCHECK-LISTE
========================================================= */

.wc-list {
  display: grid;

  gap: 14px;
}

.wc-item {
  display: grid;

  grid-template-columns:
    52px
    minmax(0, 1fr);

  gap: 16px;

  padding: 18px;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 11px;
}

.wc-number,
.wc-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 9px;

  font-weight: 700;
}

.wc-content {
  min-width: 0;
}

.wc-title-row {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 14px;
}

.wc-title-row h2,
.wc-title-row h3 {
  margin: 0;

  color: #0b3633;
}

.wc-content > p {
  margin: 7px 0 0 0;

  color: #596361;
}

.wc-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 10px;
}

.wc-meta span {
  display: inline-block;

  padding: 5px 9px;

  background-color: #f1f4f3;
  color: #687371;

  border-radius: 20px;

  font-size: 0.76rem;
}

.wc-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 14px;
}

.wc-actions form {
  margin: 0;
}

.status-badge {
  display: inline-block;

  padding: 4px 9px;

  border-radius: 20px;

  font-size: 0.76rem;
  font-weight: 700;

  white-space: nowrap;
}

.status-badge.active {
  background-color: #e6f2ec;
  color: #256344;
}

.status-badge.inactive {
  background-color: #ecefee;
  color: #687371;
}


/* =========================================================
   ADMIN – FRAGEN
========================================================= */

.fragen-header {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 20px;
}

.fragen-label {
  margin: 0 0 6px 0;

  color: #687371;

  font-size: 0.76rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.fragen-header h2 {
  margin: 0;

  color: #0b3633;
}

.fragen-beschreibung {
  margin: 8px 0 0 0;

  color: #687371;

  line-height: 1.5;
}


/* =========================================================
   ADMIN – FRAGE BEARBEITEN
========================================================= */

.question-type-header {
  display: grid;

  grid-template-columns:
    52px
    minmax(0, 1fr);

  gap: 16px;

  align-items: start;

  margin-bottom: 22px;
}

.question-type-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 10px;

  font-weight: 800;
}

.question-type-header h2 {
  margin: 0;

  color: #0b3633;
}

.question-type-header p {
  margin: 6px 0 0 0;

  color: #687371;
}

.edit-panel {
  border-top: 4px solid #0b3633;
}


/* =========================================================
   ADMIN – NEUE FRAGE / AKKORDEON
========================================================= */

.admin-create-area {
  margin-bottom: 22px;
}

.admin-create-heading {
  margin-bottom: 12px;
}

.admin-create-heading h2 {
  margin: 0;

  color: #0b3633;

  font-size: 1.25rem;
}

.question-create-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;

  align-items: start;
}

.question-create-accordion {
  overflow: hidden;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 12px;

  box-shadow:
    0 4px 14px rgba(11, 54, 51, 0.04);
}

.question-create-accordion[open] {
  grid-column: 1 / -1;

  border-color: #c8d6d3;

  box-shadow:
    0 6px 20px rgba(11, 54, 51, 0.07);
}

.question-create-accordion summary {
  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr)
    30px;

  gap: 12px;

  align-items: center;

  padding: 14px 16px;

  cursor: pointer;

  list-style: none;

  user-select: none;
}

.question-create-accordion summary::-webkit-details-marker {
  display: none;
}

.question-create-accordion summary:hover {
  background-color: #f7f9f8;
}

.create-summary-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 8px;

  font-size: 0.83rem;
  font-weight: 800;
}

.create-summary-text {
  min-width: 0;
}

.create-summary-text strong {
  display: block;

  color: #0b3633;

  font-size: 0.96rem;
}

.create-summary-text small {
  display: block;

  margin-top: 2px;

  color: #7a8481;

  font-size: 0.76rem;
}

.create-summary-arrow {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #0b3633;

  border-radius: 50%;

  font-size: 1.3rem;
  font-weight: 400;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.question-create-accordion[open]
.create-summary-arrow {
  transform: rotate(45deg);

  background-color: #eef2f1;
}

.question-create-content {
  padding: 18px;

  border-top: 1px solid #e2e8e6;
}

.question-create-content .admin-form textarea {
  min-height: 82px;
}


/* =========================================================
   ADMIN – ANTWORTEN / PARAGRAPH
========================================================= */

.answer-grid {
  display: grid;

  gap: 8px;
}

.answer-row {
  display: grid;

  grid-template-columns:
    24px
    34px
    minmax(0, 1fr);

  gap: 9px;

  align-items: center;
}

.answer-row input[type="radio"] {
  width: 18px;
  height: 18px;

  margin: 0;

  accent-color: #0b3633;
}

.answer-letter {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 7px;

  font-size: 0.82rem;
  font-weight: 700;
}

.paragraph-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 16px;
}


/* =========================================================
   ADMIN – VORHANDENE FRAGEN KOMPAKT
========================================================= */

.questions-panel-compact {
  padding: 20px 22px;
}

.questions-list-header {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 18px;

  margin-bottom: 14px;
}

.questions-list-header h2 {
  margin: 0;

  color: #0b3633;

  font-size: 1.25rem;
}

.question-count-badge {
  flex-shrink: 0;

  padding: 6px 10px;

  background-color: #eef2f1;
  color: #687371;

  border-radius: 20px;

  font-size: 0.76rem;
  font-weight: 700;
}

.questions-list {
  display: grid;

  gap: 10px;
}

.question-card {
  overflow: hidden;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 10px;
}

.question-card-compact {
  box-shadow: none;
}

.question-card-top {
  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr);

  gap: 12px;

  padding: 13px 14px;
}

.question-type-badge {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  font-size: 0.76rem;
  font-weight: 800;
}

.question-type-badge.mc {
  background-color: #0b3633;
  color: #ffffff;
}

.question-type-badge.paragraph {
  background-color: #eef2f1;
  color: #0b3633;

  border: 1px solid #ccd7d4;
}

.question-card-main {
  min-width: 0;
}

.question-card-heading {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 14px;
}

.question-card-heading h3 {
  margin: 0;

  color: #0b3633;

  font-size: 0.96rem;

  line-height: 1.4;
}

.question-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin: 7px 0 0 0;
}

.question-meta span {
  padding: 3px 7px;

  background-color: #f1f4f3;
  color: #687371;

  border-radius: 20px;

  font-size: 0.7rem;
}

.question-meta .question-meta-solution {
  background-color: #eaf3ef;
  color: #315d4b;

  font-weight: 700;
}


/* =========================================================
   ADMIN – LÖSUNGSHINWEIS
========================================================= */

.question-hint-details {
  margin-top: 8px;

  overflow: hidden;

  background-color: #f7f9f8;

  border-radius: 7px;
}

.question-hint-details summary {
  padding: 7px 9px;

  color: #687371;

  cursor: pointer;

  font-size: 0.74rem;
  font-weight: 700;

  list-style-position: inside;
}

.question-hint-details summary:hover {
  color: #0b3633;
}

.question-hint-content {
  padding: 0 9px 9px 9px;

  color: #596361;

  font-size: 0.82rem;

  line-height: 1.45;
}


/* =========================================================
   ADMIN – FRAGENAKTIONEN
========================================================= */

.question-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 10px;
}

.question-actions form {
  margin: 0;
}


/* =========================================================
   ADMIN – LOGIN
========================================================= */

body > .container {
  width: min(440px, calc(100% - 30px));

  margin: 0 auto;

  padding: 70px 0 50px 0;
}

body > .container h1 {
  margin: 0;

  color: #0b3633;

  font-size: 2rem;
}

body > .container h2 {
  margin: 10px 0 0 0;

  color: #283331;

  font-size: 1.35rem;
}

body > .container p {
  color: #687371;

  line-height: 1.5;
}

body > .container form {
  margin-top: 24px;

  padding: 26px;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 14px;

  box-shadow:
    0 8px 28px rgba(11, 54, 51, 0.08);
}

body > .container label {
  font-weight: 700;
}

body > .container input[type="password"] {
  width: 100%;

  padding: 11px 12px;

  background-color: #ffffff;

  border: 1px solid #cbd6d3;
  border-radius: 8px;

  outline: none;
}

body > .container input[type="password"]:focus {
  border-color: #0b3633;

  box-shadow:
    0 0 0 3px rgba(11, 54, 51, 0.1);
}


/* =========================================================
   TEILNEHMER – GRUNDLAYOUT
========================================================= */

.check-body {
  margin: 0;

  min-height: 100vh;

  background-color: #f2f5f4;
}

.check-wrapper {
  width: min(760px, calc(100% - 32px));

  margin: 0 auto;

  padding: 28px 0 44px 0;
}

.check-card {
  width: 100%;

  padding: 28px;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 14px;

  box-shadow:
    0 5px 18px rgba(11, 54, 51, 0.055);
}

.check-card h1 {
  margin: 0;

  color: #0b3633;

  line-height: 1.2;
}

.check-eyebrow {
  margin: 0 0 8px 0;

  color: #687371;

  font-size: 0.78rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1.1px;
}

.check-description {
  margin: 15px 0 0 0;

  color: #596361;

  line-height: 1.6;
}

.check-info {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 20px;
}

.check-info span {
  padding: 6px 10px;

  background-color: #f1f4f3;
  color: #687371;

  border-radius: 20px;

  font-size: 0.78rem;
}


/* =========================================================
   WISSENSCHECK – LOGO
========================================================= */

.check-brand {
  display: flex;

  justify-content: center;
  align-items: center;

  margin-bottom: 18px;
}

.check-brand-logo {
  display: block;

  width: auto;

  max-width: 145px;
  max-height: 50px;

  object-fit: contain;

  opacity: 0.92;
}


/* =========================================================
   WISSENSCHECK – START-HERO
========================================================= */

.check-start-hero {
  width: 100%;

  padding: 34px;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 16px;

  box-shadow:
    0 10px 30px rgba(11, 54, 51, 0.14);
}

.check-start-eyebrow {
  margin: 0 0 8px 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.78rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1.2px;
}

.check-start-hero h1 {
  margin: 0;

  color: #ffffff;

  font-size: 2.35rem;
  font-weight: 800;

  line-height: 1.1;

  letter-spacing: -0.3px;
}

.check-start-description {
  margin: 14px 0 0 0;

  color: rgba(255, 255, 255, 0.8);

  font-size: 1.05rem;

  line-height: 1.55;
}


/* =========================================================
   WISSENSCHECK – START-INHALT
========================================================= */

.check-start-content {
  margin-top: 18px;

  padding: 24px;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 14px;

  box-shadow:
    0 5px 18px rgba(11, 54, 51, 0.055);
}

.check-start-info {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 12px;

  margin: 0 0 22px 0;
}

.check-start-info-item {
  padding: 14px 15px;

  background-color: #f4f7f6;

  border: 1px solid #dce4e2;
  border-radius: 9px;
}

.check-start-info-item span {
  display: block;

  margin-bottom: 5px;

  color: #687371;

  font-size: 0.76rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.6px;
}

.check-start-info-item strong {
  color: #0b3633;

  font-size: 1rem;
}

.check-start-note {
  margin: 0 0 22px 0;

  padding: 15px 17px;

  background-color: #f7f9f8;

  border-left: 4px solid #0b3633;
  border-radius: 8px;
}

.check-start-note strong {
  color: #0b3633;
}

.check-start-note p {
  margin: 6px 0 0 0;

  color: #596361;

  line-height: 1.5;
}

.check-start-button {
  display: block;

  width: 100%;

  padding: 15px 20px;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 9px;

  text-align: center;
  text-decoration: none;

  font-weight: 700;

  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
}

.check-start-button:hover {
  opacity: 0.92;
}

.check-start-button:active {
  transform: translateY(1px);
}

.check-back-link {
  display: block;

  margin-top: 15px;

  color: #687371;

  text-align: center;
  text-decoration: none;
}

.check-back-link:hover {
  color: #0b3633;
}


/* =========================================================
   LAUFENDER WISSENSCHECK – KOPF / ABBRUCH
========================================================= */

.check-running-header {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 24px;
}

.check-running-header-content {
  min-width: 0;
}

.check-running-header-action {
  flex-shrink: 0;
}

.check-abort-button {
  display: inline-block;

  padding: 9px 13px;

  background-color: #f4f6f5;
  color: #687371;

  border: 1px solid #d7dfdd;
  border-radius: 8px;

  text-decoration: none;

  font-size: 0.85rem;
  font-weight: 700;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.check-abort-button:hover {
  background-color: #f7e8e8;
  color: #8d3030;

  border-color: #e5c4c4;
}


/* =========================================================
   TEILNEHMER – FRAGEN
========================================================= */

.check-question-card {
  margin-top: 18px;
}

.check-question-number {
  margin-bottom: 10px;

  color: #687371;

  font-size: 0.82rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.check-question-title {
  margin: 0 0 22px 0;

  color: #0b3633;

  font-size: 1.35rem;

  line-height: 1.4;
}


/* =========================================================
   SINGLE CHOICE
========================================================= */

.check-answer-list {
  display: grid;

  gap: 12px;
}

.check-answer-option {
  display: grid;

  grid-template-columns:
    24px
    38px
    minmax(0, 1fr);

  align-items: center;

  gap: 12px;

  width: 100%;

  padding: 14px;

  background-color: #f7f9f8;

  border: 1px solid #dce4e2;
  border-radius: 10px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.check-answer-option:hover {
  border-color: #0b3633;

  background-color: #f2f6f5;
}

.check-answer-option:has(input:checked) {
  border-color: #0b3633;

  background-color: #edf3f2;
}

.check-answer-option input[type="radio"] {
  width: 19px;
  height: 19px;

  margin: 0;

  accent-color: #0b3633;
}

.check-answer-letter {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 7px;

  font-weight: 700;
}

.check-answer-text {
  min-width: 0;

  line-height: 1.45;

  overflow-wrap: anywhere;
}


/* =========================================================
   PARAGRAPHENFRAGEN
========================================================= */

.check-paragraph-area {
  width: 100%;

  padding: 18px;

  background-color: #f7f9f8;

  border: 1px solid #dce4e2;
  border-radius: 10px;
}

.check-paragraph-hint {
  margin: 0 0 18px 0;

  color: #596361;
}

.check-paragraph-inputs {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 16px;
}

.check-input-group {
  display: grid;

  gap: 7px;
}

.check-input-group label {
  color: #0b3633;

  font-size: 0.88rem;
  font-weight: 700;
}

.check-input-group input {
  width: 100%;
  height: 48px;

  padding: 0 13px;

  background-color: #ffffff;

  border: 1px solid #cbd6d3;
  border-radius: 8px;

  outline: none;
}

.check-input-group input:focus {
  border-color: #0b3633;

  box-shadow:
    0 0 0 3px rgba(11, 54, 51, 0.1);
}

.check-paragraph-field {
  display: grid;

  grid-template-columns:
    44px
    minmax(0, 1fr);
}

.paragraph-symbol {
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 8px 0 0 8px;

  font-size: 1.2rem;
  font-weight: 700;
}

.check-paragraph-field input {
  border-radius: 0 8px 8px 0;
}

.check-paragraph-example {
  margin: 13px 0 0 0;

  color: #78817f;

  font-size: 0.82rem;
}


/* =========================================================
   FORTSCHRITT
========================================================= */

.check-progress-card {
  position: sticky;

  top: 0;

  z-index: 20;

  width: 100%;

  margin: 18px 0;

  padding: 14px 16px;

  background-color: rgba(255, 255, 255, 0.96);

  border: 1px solid #dce4e2;
  border-radius: 11px;

  box-shadow:
    0 5px 16px rgba(11, 54, 51, 0.08);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);
}

.check-progress-top {
  display: flex;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 9px;

  color: #596361;

  font-size: 0.82rem;
}

.check-progress-top strong {
  color: #0b3633;
}

.check-progress-bar {
  width: 100%;
  height: 7px;

  overflow: hidden;

  background-color: #e4e9e7;

  border-radius: 20px;
}

.check-progress-fill {
  width: 0;
  height: 100%;

  background-color: #0b3633;

  border-radius: 20px;

  transition: width 0.25s ease;
}


/* =========================================================
   AUSWERTUNG
========================================================= */

.check-submit-card {
  margin-top: 18px;
}

.check-submit-card p {
  margin-top: 0;

  color: #596361;
}

.check-submit-card button {
  width: 100%;

  padding: 14px 20px;
}

.check-result-card {
  margin-top: 18px;

  text-align: center;
}

.check-result-label {
  margin: 0 0 10px 0;

  color: #687371;

  font-size: 0.85rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.check-result-score strong {
  color: #0b3633;

  font-size: 3.2rem;
}

.check-result-detail {
  margin: 18px 0 26px 0;

  color: #596361;

  font-size: 1.05rem;
}

.check-result-actions {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 24px;
}

.check-restart-button,
.check-overview-button {
  display: inline-block;

  padding: 13px 20px;

  border-radius: 8px;

  text-decoration: none;

  font-weight: 700;
}

.check-restart-button {
  background-color: #0b3633;
  color: #ffffff;
}

.check-overview-button {
  background-color: #eef2f1;
  color: #0b3633;

  border: 1px solid #cbd6d3;
}


/* =========================================================
   DIAGNOSTISCHES FEEDBACK
========================================================= */

.check-feedback {
  margin: 24px 0;

  padding: 18px;

  border-radius: 10px;

  text-align: left;
}

.check-feedback-label {
  display: block;

  margin-bottom: 5px;

  font-size: 0.75rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.check-feedback h2 {
  margin: 0 0 8px 0;
}

.check-feedback p {
  margin: 0;
}

.feedback-very-good {
  background-color: #e6f2ec;
  color: #245f43;

  border-left: 5px solid #2f7954;
}

.feedback-good {
  background-color: #eef4f1;
  color: #345a4c;

  border-left: 5px solid #527b69;
}

.feedback-medium {
  background-color: #f8f3e7;
  color: #76591f;

  border-left: 5px solid #aa8238;
}

.feedback-low {
  background-color: #f7e8e8;
  color: #8d3030;

  border-left: 5px solid #b64a4a;
}


/* =========================================================
   DETAILAUSWERTUNG
========================================================= */

.check-review-card {
  margin-top: 18px;
}

.check-review-header h2 {
  margin: 0 0 10px 0;

  color: #0b3633;
}

.check-review-header > p:last-child {
  margin: 0;

  color: #596361;
}

.check-review-list {
  display: grid;

  gap: 14px;

  margin-top: 24px;
}

.check-review-item {
  overflow: hidden;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 11px;
}

.check-review-item.is-correct {
  border-left: 5px solid #3c8a61;
}

.check-review-item.is-wrong {
  border-left: 5px solid #b64a4a;
}

.check-review-top {
  display: grid;

  grid-template-columns:
    38px
    minmax(0, 1fr);

  gap: 12px;

  padding: 16px;

  background-color: #f7f9f8;
}

.check-review-number {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 7px;

  font-weight: 700;
}

.check-review-question h3 {
  margin: 0;

  color: #0b3633;

  font-size: 1rem;
}

.check-review-status {
  display: inline-block;

  margin-top: 8px;

  padding: 4px 9px;

  border-radius: 20px;

  font-size: 0.78rem;
  font-weight: 700;
}

.is-correct .check-review-status {
  background-color: #e6f2ec;
  color: #256344;
}

.is-wrong .check-review-status {
  background-color: #f7e8e8;
  color: #8d3030;
}

.check-review-content {
  display: grid;

  gap: 14px;

  padding: 16px;
}

.check-review-answer {
  display: grid;

  gap: 5px;

  padding: 12px;

  background-color: #f7f9f8;

  border-radius: 8px;
}

.check-review-answer.correct-answer {
  background-color: #edf5f1;
}

.check-review-label {
  color: #687371;

  font-size: 0.76rem;
  font-weight: 700;

  text-transform: uppercase;
}

.check-review-explanation {
  padding: 13px;

  background-color: #f4f6f5;

  border-radius: 8px;
}

.check-review-explanation p {
  margin: 6px 0 0 0;

  color: #596361;
}


/* =========================================================
   WISSENSCHECK – FOOTER
========================================================= */

.check-footer {
  width: min(760px, calc(100% - 32px));

  margin: 0 auto;

  padding: 0 0 28px 0;

  text-align: center;
}

.check-footer p {
  margin: 0;

  color: #818b88;

  font-size: 0.8rem;
}


/* =========================================================
   STARTSEITE
========================================================= */

.home-body {
  min-height: 100vh;

  background-color: #f2f5f4;
}

.home-wrapper {
  width: min(900px, calc(100% - 32px));

  margin: 0 auto;

  padding: 28px 0 40px 0;
}


/* =========================================================
   STARTSEITE – LOGO
========================================================= */

.home-brand {
  display: flex;

  justify-content: center;
  align-items: center;

  margin-bottom: 18px;
}

.home-brand-logo {
  display: block;

  width: auto;

  max-width: 150px;
  max-height: 52px;

  object-fit: contain;

  opacity: 0.92;
}


/* =========================================================
   STARTSEITE – HERO
========================================================= */

.home-hero {
  padding: 38px 34px;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 16px;

  box-shadow:
    0 10px 30px rgba(11, 54, 51, 0.14);
}

.home-eyebrow {
  margin: 0 0 8px 0;

  font-size: 0.78rem;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1.2px;
}

.home-hero .home-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.home-hero h1 {
  margin: 0;

  color: #ffffff;

  font-size: 2.8rem;
  font-weight: 800;

  line-height: 1.05;

  letter-spacing: -0.5px;
}

.home-hero-lead {
  margin: 10px 0 22px 0;

  color: rgba(255, 255, 255, 0.94);

  font-size: 1.27rem;
  font-weight: 700;
}

.home-intro {
  max-width: 680px;

  margin: 0;

  color: #ffffff;

  font-size: 1.15rem;
  font-weight: 600;
}

.home-subtext {
  max-width: 680px;

  margin: 12px 0 0 0;

  color: rgba(255, 255, 255, 0.76);

  font-size: 1rem;
}


/* =========================================================
   STARTSEITE – THEMENÜBERSICHT
========================================================= */

.home-checks {
  margin-top: 32px;
}

.home-section-heading {
  margin-bottom: 18px;
}

.home-section-heading .home-eyebrow {
  color: #687371;
}

.home-section-heading h2 {
  margin: 0;

  color: #0b3633;

  font-size: 1.95rem;
}


/* =========================================================
   STARTSEITE – WISSENSCHECK-KARTEN
========================================================= */

.home-check-list {
  display: grid;

  gap: 14px;
}

.home-check-card {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  grid-template-areas:
    "content action";

  align-items: center;

  gap: 22px;

  padding: 18px 20px;

  background-color: #ffffff;

  border: 1px solid #dce4e2;
  border-radius: 13px;

  box-shadow:
    0 4px 14px rgba(11, 54, 51, 0.05);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.home-check-card.is-active:hover {
  transform: translateY(-1px);

  box-shadow:
    0 7px 20px rgba(11, 54, 51, 0.08);
}

.home-check-card.is-inactive {
  background-color: #eef1f0;

  border-color: #e1e5e4;

  opacity: 0.62;
}

.home-check-top {
  grid-area: content;

  display: grid;

  grid-template-columns:
    44px
    minmax(0, 1fr);

  gap: 14px;

  min-width: 0;
}

.home-check-status-icon {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3633;
  color: #ffffff;

  border-radius: 10px;

  font-size: 1.15rem;
  font-weight: 700;
}

.home-check-card.is-inactive
.home-check-status-icon {
  background-color: #d5dcda;
  color: #687371;
}

.home-check-main {
  min-width: 0;
}

.home-check-title-row {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 16px;
}

.home-check-title-row h3 {
  margin: 0;

  color: #0b3633;

  font-size: 1.14rem;
}

.home-check-card.is-inactive
.home-check-title-row h3 {
  color: #687371;
}

.home-check-status {
  flex-shrink: 0;

  padding: 5px 9px;

  background-color: #e6f2ec;
  color: #256344;

  border-radius: 20px;

  font-size: 0.72rem;
  font-weight: 700;

  white-space: nowrap;
}

.home-check-card.is-inactive
.home-check-status {
  background-color: #dfe4e2;
  color: #697270;
}

.home-check-description {
  margin: 7px 0 0 0;

  color: #596361;

  line-height: 1.45;
}

.home-check-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 10px;
}

.home-check-meta span {
  padding: 5px 9px;

  background-color: #f2f5f4;
  color: #687371;

  border-radius: 20px;

  font-size: 0.76rem;
}

.home-check-action {
  grid-area: action;

  align-self: center;
}

.home-check-button,
.home-check-button-disabled {
  display: inline-block;

  min-width: 150px;

  padding: 11px 16px;

  border-radius: 8px;

  text-align: center;

  text-decoration: none;

  font-weight: 700;
}

.home-check-button {
  background-color: #0b3633;
  color: #ffffff;
}

.home-check-button:hover {
  opacity: 0.92;
}

.home-check-button-disabled {
  background-color: #d7dcda;
  color: #737b79;

  cursor: not-allowed;
}


/* =========================================================
   STARTSEITE – HINWEIS
========================================================= */

.home-note {
  margin-top: 26px;

  padding: 18px 20px;

  background-color: #ffffff;

  border-left: 4px solid #0b3633;
  border-radius: 9px;
}

.home-note strong {
  color: #0b3633;
}

.home-note p {
  margin: 6px 0 0 0;

  color: #596361;
}

.home-empty {
  padding: 24px;

  background-color: #ffffff;

  border-radius: 12px;

  color: #687371;
}


/* =========================================================
   STARTSEITE – FOOTER
========================================================= */

.home-footer {
  width: min(900px, calc(100% - 32px));

  margin: 0 auto;

  padding: 2px 0 30px 0;

  text-align: center;
}

.home-footer p {
  margin: 0;

  color: #818b88;

  font-size: 0.82rem;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .admin-wrapper {
    width: 100%;

    padding: 24px 14px 40px;
  }

  .admin-header,
  .admin-page-top {
    flex-direction: column;

    align-items: stretch;
  }

  .admin-logout,
  .admin-back {
    width: 100%;

    text-align: center;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card {
    grid-template-columns:
      46px
      minmax(0, 1fr);
  }

  .admin-panel {
    padding: 18px 16px;
  }

  .admin-panel-compact {
    padding: 16px;
  }

  .wc-item {
    grid-template-columns:
      48px
      minmax(0, 1fr);

    padding: 15px;
  }

  .wc-title-row {
    flex-direction: column;
  }

  .wc-actions {
    display: grid;

    grid-template-columns: 1fr;
  }

  .wc-actions a,
  .wc-actions button {
    width: 100%;

    text-align: center;
  }

  .fragen-header {
    flex-direction: column;
  }

  .question-create-grid {
    grid-template-columns: 1fr;
  }

  .question-create-accordion[open] {
    grid-column: auto;
  }

  .question-create-accordion summary {
    grid-template-columns:
      38px
      minmax(0, 1fr)
      28px;

    padding: 13px;
  }

  .question-create-content {
    padding: 15px 13px;
  }

  .paragraph-grid {
    grid-template-columns: 1fr;
  }

  .answer-row {
    grid-template-columns:
      22px
      32px
      minmax(0, 1fr);
  }

  .questions-panel-compact {
    padding: 16px 13px;
  }

  .questions-list-header {
    align-items: flex-start;
  }

  .question-card-top {
    grid-template-columns:
      38px
      minmax(0, 1fr);

    gap: 10px;

    padding: 12px;
  }

  .question-type-badge {
    width: 34px;
    height: 34px;
  }

  .question-card-heading {
    display: block;
  }

  .question-card-heading .status-badge {
    margin-top: 6px;
  }

  .question-actions {
    display: grid;

    grid-template-columns: 1fr;
  }

  .question-actions a,
  .question-actions button,
  .question-actions form {
    width: 100%;
  }

  .question-actions a,
  .question-actions button {
    text-align: center;
  }

  .check-wrapper {
    width: calc(100% - 24px);

    padding: 16px 0 30px;
  }

  .check-card {
    padding: 20px 16px;
  }

  .check-brand {
    margin-bottom: 14px;
  }

  .check-brand-logo {
    max-width: 125px;
    max-height: 44px;
  }

  .check-start-hero {
    padding: 26px 20px;

    border-radius: 13px;
  }

  .check-start-hero h1 {
    font-size: 2rem;
  }

  .check-start-description {
    font-size: 0.96rem;
  }

  .check-start-content {
    margin-top: 14px;

    padding: 18px 16px;
  }

  .check-start-info {
    grid-template-columns: 1fr;

    gap: 9px;
  }

  .check-start-info-item {
    display: flex;

    justify-content: space-between;
    align-items: center;
  }

  .check-start-info-item span {
    margin-bottom: 0;
  }

  .check-running-header {
    flex-direction: column;

    gap: 16px;
  }

  .check-running-header-action {
    width: 100%;
  }

  .check-abort-button {
    width: 100%;

    text-align: center;
  }

  .check-question-title {
    font-size: 1.18rem;
  }

  .check-answer-option {
    grid-template-columns:
      22px
      34px
      minmax(0, 1fr);

    gap: 9px;

    padding: 12px 10px;
  }

  .check-paragraph-inputs {
    grid-template-columns: 1fr;
  }

  .check-result-actions {
    display: grid;
  }

  .check-result-actions a {
    width: 100%;

    text-align: center;
  }

  .check-footer {
    width: calc(100% - 24px);

    padding-bottom: 24px;
  }

  .home-wrapper {
    width: calc(100% - 24px);

    padding: 16px 0 28px;
  }

  .home-brand {
    margin-bottom: 14px;
  }

  .home-brand-logo {
    max-width: 125px;
    max-height: 44px;
  }

  .home-hero {
    padding: 26px 20px;
  }

  .home-hero h1 {
    font-size: 2.15rem;
  }

  .home-hero-lead {
    font-size: 1.08rem;
  }

  .home-check-card {
    grid-template-columns: 1fr;

    grid-template-areas:
      "content"
      "action";

    gap: 14px;

    padding: 16px;
  }

  .home-check-title-row {
    display: block;
  }

  .home-check-status {
    display: inline-block;

    margin-top: 7px;
  }

  .home-check-button,
  .home-check-button-disabled {
    width: 100%;
    min-width: 0;
  }

  .home-footer {
    width: calc(100% - 24px);
  }

}


/* =========================================================
   SEHR KLEINE SMARTPHONES
========================================================= */

@media (max-width: 390px) {

  .home-hero h1 {
    font-size: 1.95rem;
  }

  .home-hero-lead {
    font-size: 1rem;
  }

  .check-start-hero h1 {
    font-size: 1.8rem;
  }

  .check-card {
    padding-left: 14px;
    padding-right: 14px;
  }

}