/**
 * DeutschMaak — 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: var(--dm-red, #e11d2e);
    --telc-home-blue-dark: var(--dm-red-dark, #b31321);
    --telc-home-bg: #ffffff;
    --telc-home-border: rgba(225, 29, 46, 0.28);
    --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(225, 29, 46, 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;
}