/**
 * TelccFree — global Startseite / home navigation component
 * Link telc-home-nav.css + Font Awesome 6, add class telc-home-btn to dashboard links.
 * level-dashboard-nav.js auto-applies this class to recognized home links in quizzes.
 */

:root {
  --telc-home-blue: #1877F2;
  --telc-home-blue-dark: #1464cc;
  --telc-home-bg: #f3f4f6;
  --telc-home-border: rgba(24, 119, 242, 0.35);
  --telc-home-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.telc-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--telc-home-blue);
  background: var(--telc-home-bg);
  border: 2px solid var(--telc-home-border);
  transition: all 0.3s var(--telc-home-ease);
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.telc-home-btn .fa-house,
.telc-home-btn i[class*="fa-house"] {
  color: var(--telc-home-blue);
  font-size: 1.05em;
  flex-shrink: 0;
}

.telc-home-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  background: rgba(24, 119, 242, 0.08);
  border-color: var(--telc-home-blue);
  color: var(--telc-home-blue-dark);
}

.telc-home-btn:active {
  transition-duration: 100ms;
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.telc-home-btn:focus-visible {
  outline: 2px solid var(--telc-home-blue);
  outline-offset: 2px;
}

/* Compact variant inside toolbars / auto-nav rows */
.telc-home-btn.telc-home-btn--compact {
  padding: 9px 16px;
  font-size: 13px;
}

/* Quiz toolbar home controls */
#homeBtn.telc-home-btn,
#homeButton.telc-home-btn,
a.quiz-button-link.telc-home-btn,
a.quiz-button.telc-home-btn {
  background: var(--telc-home-bg) !important;
  color: var(--telc-home-blue) !important;
  border: 2px solid var(--telc-home-border) !important;
  box-shadow: none;
}

#homeBtn.telc-home-btn:hover,
#homeButton.telc-home-btn:hover,
a.quiz-button-link.telc-home-btn:hover,
a.quiz-button.telc-home-btn:hover {
  background: rgba(24, 119, 242, 0.08) !important;
  border-color: var(--telc-home-blue) !important;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
  transform: translateY(-4px) !important;
}

a.auto-nav-btn.telc-home-btn,
a.auto-nav-btn.telc-dash-home.telc-home-btn {
  background: var(--telc-home-bg) !important;
  color: var(--telc-home-blue) !important;
  border: 2px solid var(--telc-home-border) !important;
  filter: none !important;
}

a.auto-nav-btn.telc-home-btn:hover,
a.auto-nav-btn.telc-dash-home.telc-home-btn:hover {
  background: rgba(24, 119, 242, 0.08) !important;
  color: var(--telc-home-blue-dark) !important;
  border-color: var(--telc-home-blue) !important;
  filter: none !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
}

html:not([data-telc-family="sprechen"]) .telc-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  order: 0;
  padding: 9px 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #334155;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

html:not([data-telc-family="sprechen"]) body a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .telc-check-action-zone > a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .lesen-teil2-action-row > a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .hoeren-action-row > a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .sb-exam-actions > a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .t3exp-footer > a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .t3exp-footer__start > a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .schreiben-action-zone > a.telc-back-btn,
html:not([data-telc-family="sprechen"]) body .telc-exam-back-row > a.telc-back-btn {
  order: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px;
  padding: 9px 16px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  background: #f8fafc !important;
  border: 2px solid #cbd5e1 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html:not([data-telc-family="sprechen"]) body a.telc-back-btn:hover,
html:not([data-telc-family="sprechen"]) body .telc-check-action-zone > a.telc-back-btn:hover {
  background: #eef2f7 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: none !important;
}

html:not([data-telc-family="sprechen"]) .telc-exam-back-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin: 10px 12px;
}

html:not([data-telc-family="sprechen"]) .telc-back-btn .fa-arrow-left,
html:not([data-telc-family="sprechen"]) .telc-back-btn i[class*="fa-arrow"] {
  color: #334155;
  font-size: 1em;
  flex-shrink: 0;
}

html:not([data-telc-family="sprechen"]) .telc-back-btn:hover {
  background: #eef2f7;
  border-color: #94a3b8;
  color: #0f172a;
}

html:not([data-telc-family="sprechen"]) .telc-back-btn:focus-visible {
  outline: 2px solid #1877f2;
  outline-offset: 2px;
}

html.dark:not([data-telc-family="sprechen"]) body a.telc-back-btn,
html.dark:not([data-telc-family="sprechen"]) .telc-back-btn {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.9);
  border-color: #475569;
}

html.dark:not([data-telc-family="sprechen"]) body a.telc-back-btn {
  color: #e2e8f0 !important;
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: #475569 !important;
}

html.dark:not([data-telc-family="sprechen"]) .telc-back-btn .fa-arrow-left,
html.dark:not([data-telc-family="sprechen"]) .telc-back-btn i[class*="fa-arrow"] {
  color: #e2e8f0;
}

html.dark:not([data-telc-family="sprechen"]) .telc-back-btn:hover {
  background: #334155;
  border-color: #64748b;
}
