/* css/_components.css - Buttons und Titel-Animation */

/* ========================================================================= */
/* FOOTER BUTTONS (Kontakt & Theme Toggle) - BASISTYLES */
/* ========================================================================= */

.footer-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0; 
}

/* Basis-Styles für alle Buttons und A-Tags im Footer */
.footer-actions button,
.footer-actions a {
    /* Basis-Styles */
    background: var(--panel-bg);
    border: 1px solid var(--divider-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.1s;
    line-height: 1; 
    
    /* Zwingt den Link, wie ein Button zu erscheinen */
    text-decoration: none; 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
}

.footer-actions button:hover,
.footer-actions a:hover {
    background: var(--divider-color);
    color: var(--accent-color); 
}

.footer-actions button:active,
.footer-actions a:active {
    transform: scale(0.98);
}

#themeToggle {
    font-size: 1.2em;
}

/* ========================================================================= */
/* TITEL ANIMATION (AT/TV Wechsel)                                           */
/* ========================================================================= */

.project-title {
    display: flex; 
    align-items: center; 
    font-size: 1.2rem;
    font-weight: 600;
}

.irmscher-base {
    color: var(--text-color); 
}

.at-tv-container {
    position: relative;
    display: inline-block;
    min-width: 2.5ch; 
    vertical-align: middle; 
    position: relative; 
    top: 0px;
    overflow: visible;
    height: 1.2rem; 
    line-height: 1.2rem;
    margin-left: 2px;
}

.at-tv-span {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    
    color: var(--accent-color); 
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.3); 
    
    transition: transform 0.4s, opacity 0.4s;
    font-size: 1.2rem; 
    
    width: auto; 
    white-space: nowrap;
}

.at-tv-span.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations-Klassen */
.at-tv-span.entering {
    opacity: 0;
    transform: translateY(100%); 
}

.at-tv-span.leaving {
    opacity: 0;
    transform: translateY(-100%); 
}

/* ========================================================================= */
/* MOBILE FIX: Button-Verteilung im Footer (unter 550px)                     */
/* ========================================================================= */

@media (max-width: 550px) {
    /* Erzwingt, dass die Buttons in der Button-Gruppe umbrechen */
    .footer-actions {
        flex-wrap: wrap; 
        justify-content: center;
    }

    /* Stellt sicher, dass jeder einzelne Button flexibel ist, falls er in einer eigenen Zeile steht */
    .footer-actions button,
    .footer-actions a {
        flex-grow: 1; 
        min-width: 100px; 
    }
}