/**
 * LORO ABC-Liste Styling
 * Minimalistisch - überlässt Basis-Styles dem TYPO3 CSS
 * VEREINHEITLICHT 2026-07-19: nutzt jetzt zentrale Komponenten (.alert-secondary / .oa-badge)
 * aus templates/css/style.css. Original-Backup: backups/tool_styles_2026-07-19/abc-liste/.
 */

/* Info-Zeile */
.abc-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #666;
    border-bottom: 1px solid #dee2e6;
}

.abc-count {
    font-weight: 600;
}

.abc-language {
    color: #006aac;
}

/* Leere Liste: Box selbst ist jetzt die zentrale .alert.alert-secondary;
   nur die Zentrierung ist zentral nicht abgedeckt und bleibt als schmales Override */
.abc-empty {
    text-align: center;
}

/* Content-Bereich - 3 Spalten Grid */
.abc-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Buchstaben-Sektionen */
.abc-section {
    break-inside: avoid;
}

/* Buchstaben-Pille: Form/Farbe kommen jetzt von .oa-badge/.oa-badge-primary,
   hier nur die tool-eigene größere Schrift als Override */
.abc-letter {
    font-size: 1.1rem;
}

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

.abc-list li {
    margin-bottom: 0.25rem;
}

/* Back to Top Button */
.abc-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #006aac;
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.abc-back-to-top:hover {
    background: #00568a;
    color: #fff;
}

/* Tablet - 2 Spalten */
@media (max-width: 992px) {
    .abc-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 Spalte */
@media (max-width: 576px) {
    .abc-content {
        grid-template-columns: 1fr;
    }

    .abc-info {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .abc-back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Overflow-Fix (2026-07-19): Grid-Spalten (.abc-content) hatten kein min-width:0 -
   lange deutsche Komposita ohne Leerzeichen im Seitentitel konnten dadurch aus der
   Spalte ragen statt umzubrechen. */
.abc-content > .abc-section { min-width: 0; }
.abc-list a { overflow-wrap: break-word; }
