.tct-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #f3faf1 0%, #e7f5e3 100%);
}
.tct-page-wrap {
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 56px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
  /* Aus dem (oft schmaleren) Inhaltsbereich des WordPress-Themes
     ausbrechen -- sonst zwingt das Theme diese Seite auf seine eigene
     Content-Breite, waehrend die App selbst (die das Theme komplett
     umgeht) immer die volle, beabsichtigte Breite bekommt. */
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  flex: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.tct-vine {
  position: fixed;
  top: -6px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(20,60,30,0.12));
  opacity: 1;
}
.tct-leaf {
  position: fixed;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(20,60,30,0.12));
  opacity: 1;
}
.tct-legal-footer {
  text-align: center;
  padding: 18px 16px 6px;
  font-size: 11px;
  color: #3d5a3d;
  opacity: 0.75;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
.tct-brand-line { margin-bottom: 6px; }
.tct-legal-footer a { color: inherit; text-decoration: underline; }
.tct-legal-footer a:hover { opacity: 0.8; }
.tct-page-root {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #20242b;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  box-shadow: 0 10px 30px rgba(32,36,43,0.12), 0 2px 6px rgba(32,36,43,0.06);
}
.tct-page-header {
  padding: 26px 30px 22px;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tct-page-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: inherit; cursor: pointer; }
.tct-page-brand, .tct-page-brand:hover, .tct-page-brand:focus, .tct-page-brand * { text-decoration: none !important; border-bottom: none !important; box-shadow: none !important; }
.tct-page-brand-row { display: flex; align-items: center; gap: 16px; }
.tct-page-mascot {
  width: 64px;
  height: 40px;
  flex: none;
}
.tct-page-mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tct-page-tongue-out {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0.25);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1.4), opacity 0.15s ease;
}
.tct-page-mascot:hover .tct-page-tongue-out { opacity: 1; transform: scaleX(1); }
.tct-page-mascot.flick .tct-page-tongue-out { opacity: 1; transform: scaleX(1); }
.tct-cham-imgwrap { position: relative; width: 100%; height: 100%; display: block; }
.tct-cham-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.tct-cham-imgwrap svg.tct-cham-tongue {
  position: absolute; top: 38%; left: 82%;
  width: 26% !important; height: 16% !important;
}
.tct-cham-accessory {
  position: absolute; top: -14%; left: 50%;
  font-size: 26px; line-height: 1; transform: rotate(-8deg);
  pointer-events: none; user-select: none;
}
.tct-page-mascot .tct-cham-accessory { font-size: 24px; }
.tct-student-table .tct-cham-accessory { font-size: 11px; }
.tct-acc-cap { left: 44%; top: -13%; transform: rotate(-4deg); }
.tct-acc-crown { left: 42%; top: -22%; }
.tct-acc-tophat { left: 40%; top: -22%; }
.tct-acc-hat { left: 43%; top: -17%; }
.tct-acc-grad { left: 43%; top: -19%; }
/* Kinderliste: sehr klein (28x18px). Apple-Emojis (Mac/iPad) sitzen
   darin sichtbar tiefer als auf anderen Systemen -- daher deutlich
   angehoben, damit der Hut auf dem Kopf sitzt statt ueber dem Auge. */
.tct-student-table .tct-acc-cap { left: 32%; top: -26%; }
.tct-student-table .tct-acc-hat { left: 24%; top: -28%; }
.tct-student-table .tct-acc-crown { left: 28%; top: -38%; }
.tct-student-table .tct-acc-grad { left: 26%; top: -34%; }
.tct-student-table .tct-acc-tophat { left: 28%; top: -40%; }
.tct-page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: lowercase;
  display: flex;
}
.tct-page-title span { display: inline-block; transition: transform 0.15s ease; }
.tct-page-title span:nth-child(odd) { color: #20242b; transform: translateY(-1px) rotate(-4deg); }
.tct-page-title span:nth-child(even) { color: #0a86c2; transform: translateY(2px) rotate(4deg); }
.tct-page-title:hover span:nth-child(odd) { transform: translateY(-3px) rotate(-7deg); }
.tct-page-title:hover span:nth-child(even) { transform: translateY(3px) rotate(7deg); }
.tct-page-subtitle {
  font-size: 12.5px;
  color: #838993;
  margin: 3px 0 0;
  font-weight: 600;
  text-align: center;
  width: 100%;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.tct-page-main { padding: 26px 30px 32px; }

.tct-license-form,
.tct-dashboard,
.tct-gate {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  max-width: 100%;
  text-align: center;
}
.tct-dashboard table,
.tct-dashboard th,
.tct-dashboard td {
  font-family: inherit;
}

.tct-license-form label,
.tct-gate label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #20242b;
  margin-bottom: 12px;
}

.tct-license-form input,
.tct-add-student-form input,
.tct-gate input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  margin-top: 4px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.tct-gate input {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tct-license-form button,
.tct-add-student-form button,
.tct-gate button {
  font-family: inherit;
  background: #0fabf3;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
}

.tct-gate-hint {
  font-size: 12.5px;
  color: #838993;
  margin-top: 6px;
}
.tct-gate form + .tct-gate-hint {
  margin-top: 18px;
}
.tct-gate-hint + form {
  margin-top: 14px;
}

.tct-add-student-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px auto;
  flex-wrap: wrap;
  max-width: 560px;
}
.tct-add-student-form input {
  flex: 1;
  min-width: 200px;
}

.tct-form-error {
  color: #c8123a;
  font-weight: 600;
  font-size: 13px;
}

.tct-form-success {
  color: #0a8a3a;
  font-weight: 600;
  font-size: 13px;
  background: #eafbea;
  border-radius: 12px;
  padding: 10px 14px;
}

.tct-dashboard {
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.tct-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  margin-top: 16px;
}

.tct-student-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tct-student-table th {
  text-align: left;
  padding: 12px 14px;
  background: #f7f9fa;
  color: #6b7178;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e4e7ec;
}

.tct-student-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f3;
  color: #20242b;
  vertical-align: middle;
}

.tct-student-table tbody tr:last-child td {
  border-bottom: none;
}

.tct-student-table tbody tr:hover {
  background: #fafbfc;
}

.tct-student-table code {
  background: #eef2f6;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 12.5px;
}

.tct-progress-pill {
  display: inline-block;
  background: #eaf7ff;
  color: #0a86c2;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tct-student-table .tct-remove-link {
  color: #aab0b8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.tct-student-table .tct-remove-link:hover {
  color: #e5484d;
  text-decoration: underline;
}

.tct-student-row {
  cursor: pointer;
}

.tct-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(32,36,43,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tct-modal {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 28px;
  max-width: 760px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(32,36,43,0.25);
}
.tct-level-name {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}
.tct-metric {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 110px;
}
.tct-metric b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #20242b;
}
.tct-metric span {
  font-size: 12px;
  color: #6b7178;
}
.tct-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.tct-btn-blue {
  background: #0fabf3;
  color: #fff;
}
.tct-btn-blue:hover {
  background: #0b8fd0;
}
.tct-btn-outline {
  background: #eef2f6;
  color: #20242b;
  border: 1px solid #e4e7ec;
}
.tct-btn-outline:hover {
  background: #e2e7ed;
}

/* Zweite Lehrperson im Dashboard */
.tct-teacher-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #20242b; white-space: nowrap; cursor: pointer;
}
.tct-add-student-form .tct-teacher-check input { flex: none; width: 16px; height: 16px; min-width: 0; margin: 0; padding: 0; accent-color: #0fabf3; }
.tct-teacher-email { flex-basis: 100%; }
.tct-add-student-form .tct-teacher-email input { width: 100%; box-sizing: border-box; }
.tct-teachers-line { text-align: center; font-size: 13.5px; color: #4a5059; margin: 0 0 6px; }
.tct-muted { color: #838993; font-weight: 400; }
.tct-link-btn {
  background: none; border: none; padding: 0; margin-left: 6px;
  color: #c8123a; font-size: 12.5px; text-decoration: underline; cursor: pointer;
}



/* Anmeldeseite: typequest als Lesezeichen speichern */
.tct-bookmark { margin: 24px auto 0; padding: 18px 18px 14px; background: #eaf7ff; border: 1.5px solid #bfe6fb; border-radius: 18px; text-align: center; max-width: 420px; }
.tct-bookmark-title { margin: 0 0 12px; font-weight: 800; font-size: 16px; color: #20242b; }
.tct-bookmark-keys { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tct-keycap { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 54px; height: 50px; padding: 0 14px; box-sizing: border-box;
  background: #fff; border: 1px solid #d8dde3; border-bottom-width: 4px; border-radius: 12px; font-size: 22px; font-weight: 800; color: #20242b; box-shadow: 0 2px 6px rgba(32,36,43,0.08); }
.tct-keycap-wide { font-size: 14px; font-weight: 700; height: 44px; }
.tct-keyplus { font-size: 20px; font-weight: 800; color: #0a86c2; }
.tct-bookmark-hint { margin: 0; font-size: 13px; color: #4a5059; line-height: 1.5; }
.tct-bookmark-url { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: #0a86c2; word-break: break-all; }

/* Schülertabelle kompakter: Logins/Passwörter nie umbrechen,
   Aktionen untereinander statt nebeneinander (passt auch in die App) */
.tct-student-table code { white-space: nowrap; }
.tct-student-table td:last-child { white-space: nowrap; }
.tct-student-table td:last-child .tct-remove-link { display: block; margin: 0 0 3px !important; line-height: 1.35; }
.tct-student-table td:last-child .tct-remove-link:last-child { margin-bottom: 0 !important; }
.tct-student-table th, .tct-student-table td { padding-left: 9px; padding-right: 9px; }

.tct-contact-link { color: inherit; text-decoration: underline; }

/* Kein seitliches Verschieben/Scrollen auf Seiten mit typequest-Rahmen */
html:has(body.tct-has-wrap), body.tct-has-wrap { overflow-x: hidden; }
