/*
 * fahrenwir Shared Components
 * Version: 1.1.0
 * 
 * Contents:
 * 1. Header
 * 2. Brand
 * 3. Theme Toggle
 * 4. Buttons
 * 5. Footer
 */

/* ==========================================================================
   1. Header
   ========================================================================== */
.site-header {
    padding: 0.75rem var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

/* ==========================================================================
   2. Brand
   ========================================================================== */
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-primary);
}

.brand:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.brand__logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand__logo svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 6;
}

.brand__logo svg .filled {
    fill: var(--color-primary);
}

.brand__name {
    font-size: 1.35rem;
    font-weight: 600;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.2;
}

/* ==========================================================================
   3. Theme Toggle
   ========================================================================== */
.theme-toggle {
    background: var(--color-beige-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--color-beige);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.theme-toggle__icon {
    font-size: 1.1rem;
}

.theme-toggle__icon--light { display: block; }
.theme-toggle__icon--dark { display: none; }

[data-theme="dark"] .theme-toggle__icon--light { display: none; }
[data-theme="dark"] .theme-toggle__icon--dark { display: block; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-normal), transform var(--transition-fast);
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--color-cta-accessible);
    color: white;
}

.btn--primary:hover {
    background: var(--color-cta-hover);
}

.btn--disabled {
    background: var(--color-beige);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

.btn--disabled:active {
    transform: none;
}

.btn__icon {
    font-size: 1rem;
}

.btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer {
    background: var(--color-beige-light);
    border-top: 1px solid var(--color-border);
    padding: var(--space-md);
    text-align: center;
    margin-top: auto;
}

.site-footer__legal {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
}

.site-footer__legal a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.site-footer__legal a:hover {
    color: var(--color-primary-accessible);
    text-decoration: underline;
}

.site-footer__legal a:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.site-footer__legal-separator {
    margin: 0 0.5rem;
    color: var(--color-text-muted);
    /* opacity entfernt für WCAG 2.2 AA Kontrast */
}

.site-footer__powered {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.site-footer__powered a {
    color: var(--color-primary-accessible);
    text-decoration: none;
    font-weight: 500;
}

.site-footer__powered a:hover {
    text-decoration: underline;
}

.site-footer__powered a:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.site-footer__copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    /* opacity entfernt für WCAG 2.2 AA Kontrast */
}
