/* ==========================================================================
   Volt Gießen - Accessibility Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Common & Global Styles (z. B. Skip-Link & Tastaturfokus)
   -------------------------------------------------------------------------- */

/* Skip-Link: Barrierefreie Sprungmarke für Tastatur-Nutzer */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background-color: #1bbe6f; /* Hoher Kontrast Volt-Grün */
    color: #ffffff;
    padding: 12px 24px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 16px;
    z-index: 99999;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    border: 2px solid #ffffff;
}

.skip-link:focus {
    left: 20px;
    top: 0;
    outline: 3px solid #502379;
    outline-offset: 2px;
}

/* Screenreader-only Utility Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Deutlicher Tastatur-Fokus-Indikator (WCAG 2.1.2) */
:focus {
    outline: none; /* Deaktiviert den standardmäßigen Browser-Fokus */
}

:focus-visible {
    outline: 3px solid #1bbe6f !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 6px rgba(27, 190, 111, 0.4) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #1bbe6f !important;
    outline-offset: 4px !important;
}


/* --------------------------------------------------------------------------
   Styles für giessenlink.html (Kurzlinkliste)
   -------------------------------------------------------------------------- */

.linktree-body {
    background-color: #502379; /* Original Volt-Lila */
    color: #ffffff;
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.linktree-container {
    width: 100%;
    max-width: 580px;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
}

.linktree-header {
    margin-bottom: 32px;
}

.logo-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.volt-logo-svg {
    width: 100%;
    height: 100%;
}

.linktree-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.linktree-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #dfd5ea;
    margin: 0;
}

.linktree-nav {
    margin-bottom: 40px;
}

.linktree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.linktree-list li {
    margin-bottom: 16px;
}

/* Button-Basisstyles */
.linktree-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
    min-height: 56px; /* Touch-Target mindestens 48px, ideal 56px */
}

.linktree-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.linktree-btn:active {
    transform: translateY(0);
}

/* Farbige Schaltflächen (mit geprüftem Kontrast) */
.btn-blue {
    background-color: #82d0f4;
    color: #171019; /* Dunkles Lila statt Weiß für perfekten Kontrast (>4.5:1) */
}
.btn-blue:hover {
    background-color: #aae0fa;
}

.btn-yellow {
    background-color: #fdc220;
    color: #171019; /* Dunkles Lila für sehr hohen Kontrast (>6:1) */
}
.btn-yellow:hover {
    background-color: #fdd253;
}

.btn-white {
    background-color: #ffffff;
    color: #502379; /* Volt-Lila auf Weiß (>11:1 Kontrast) */
}
.btn-white:hover {
    background-color: #f3f3f3;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.linktree-divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 32px 0;
}

.linktree-footer {
    font-size: 14px;
}

.footer-link {
    color: #dfd5ea;
    text-decoration: underline;
}

.footer-link:hover {
    color: #ffffff;
}


/* --------------------------------------------------------------------------
   Zusätzliche A11y-Optimierungen für index.html (Hauptseite)
   -------------------------------------------------------------------------- */

/* Stellen sicher, dass Überschriften visuell dem Design entsprechen,
   selbst wenn wir ihre semantische Hierarchie für Screenreader korrigiert haben */
.accessible-h1 {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    line-height: 1.11111 !important;
}

.accessible-h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.33333 !important;
}

/* Verhindert Text-Abschneiden im Kontrast-Fokus */
.mobile-menu-btn:focus-visible {
    outline-color: #ffffff !important;
}
