/**
 * Fanfoto-Archiv – Komplett neu, hochwertig.
 * Ebene 1: DE/International nebeneinander
 * Ebene 2: Vereine als gleichgroße Karten
 * Ebene 3: Galerien mit Bildern, Spieltag, Fotos, Saison-Filter
 */

/* ===== Layout ===== */
.ff-fanfoto-archiv.ff-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: #f5f5f5;
}
.ff-fanfoto-archiv a { color: inherit; text-decoration: none; }
.ff-fanfoto-archiv a:hover { color: #c62828; }

.ff-fa-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px clamp(12px, 2vw, 24px) 60px;
    box-sizing: border-box;
}

/* ===== Header ===== */
.ff-fa-header {
    text-align: center;
    margin-bottom: 32px;
}
.ff-fa-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.ff-fa-desc {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* ===== Zurück-Button (Pill, Slide-Hover wie Fotos DE) ===== */
.ff-fa-back-wrap {
    margin: 0 0 24px;
}
.ff-fa-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 500px;
    position: relative;
    overflow: hidden;
    transition: color 0.25s, border-color 0.25s;
    z-index: 1;
}
.ff-fa-back-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -10%;
    width: 120%; height: 100%;
    background: #c62828;
    transform: skew(30deg) translate3d(-100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
    z-index: -1;
}
.ff-fa-back-btn:hover {
    color: #fff !important;
    border-color: #c62828;
    box-shadow: none;
    text-decoration: none;
}
.ff-fa-back-btn:hover::before {
    transform: skew(30deg) translate3d(0, 0, 0);
}

/* ===== EBENE 1: Deutschland / International – klares Design, keine Emojis ===== */
.ff-fa-level1 {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
}
.ff-fa-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(16px, 3vw, 28px) clamp(20px, 3vw, 36px);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s, border-color 0.2s, transform 0.2s;
    min-width: 0;
    flex: 1;
    position: relative;
    overflow: hidden;
}
.ff-fa-choice::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c62828;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.ff-fa-choice:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: #c62828;
    transform: translateY(-2px);
    color: #1a1a1a;
}
.ff-fa-choice:hover::before {
    transform: scaleY(1);
}
.ff-fa-choice:hover .ff-fa-choice-label {
    color: #c62828;
}
.ff-fa-choice-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.2s;
    margin-bottom: 4px;
}
.ff-fa-choice-desc {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* ===== Suchfeld (über der Vereinsliste) ===== */
.ff-fa-search-row {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.ff-fa-search-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8e8e8;
    text-align: center;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.ff-fa-search-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}
.ff-fa-search-card:focus-within {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border-color: #c62828;
    transform: translateY(-2px);
}
.ff-fa-search-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.ff-fa-search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.ff-fa-search-input::placeholder {
    color: #999;
}
.ff-fa-search-input:focus {
    border-color: #c62828;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
.ff-fa-search-no-match {
    margin: 16px 0 0;
    color: #666;
    font-size: 15px;
    text-align: center;
}

/* ===== EBENE 2: Vereine als gleichgroße Karten ===== */
.ff-fa-vereine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 0;
}
.ff-fa-verein-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    text-align: center;
    min-height: 90px;
}
.ff-fa-verein-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #ddd;
    transform: translateY(-2px);
}
.ff-fa-verein-card:hover .ff-fa-verein-name {
    color: #c62828;
}
.ff-fa-verein-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.2s;
    margin-bottom: 4px;
}
.ff-fa-verein-meta {
    font-size: 12px;
    color: #888;
}

/* ===== Saison-Filter (Pill-Dropdown) ===== */
.ff-fa-saison-filter {
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ff-fa-saison-filter form {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ff-fa-saison-filter label {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}
.ff-fa-saison-filter select {
    padding: 10px 40px 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 500px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, box-shadow 0.2s;
    min-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}
.ff-fa-saison-filter select:hover {
    border-color: #c62828;
    color: #1a1a1a;
}
.ff-fa-saison-filter select:focus {
    border-color: #c62828;
    outline: none;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

/* ===== EBENE 3: Galerie-Grid ===== */
.ff-fa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 0;
}
.ff-fa-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: box-shadow 0.25s, border-color 0.2s, transform 0.2s;
}
.ff-fa-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: #ddd;
    transform: translateY(-2px);
}
.ff-fa-card-link {
    display: block;
    color: inherit;
}
.ff-fa-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.ff-fa-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.ff-fa-card:hover .ff-fa-card-img img {
    opacity: 0.92;
}
.ff-fa-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/10;
    background: #f0f0f0;
    color: #999;
    font-size: 14px;
}
.ff-fa-card-body {
    padding: 12px 16px 16px;
}
.ff-fa-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ff-fa-card:hover .ff-fa-card-title {
    color: #c62828;
}
.ff-fa-card-spieltag {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #c62828;
    margin-top: 4px;
}
.ff-fa-card-meta {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* ===== Leere Ergebnisse ===== */
.ff-fa-empty {
    padding: 40px 0;
    color: #666;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .ff-fa-level1 {
        flex-direction: column;
    }
    .ff-fa-saison-filter {
        flex-wrap: wrap;
    }
    .ff-fa-saison-filter select {
        min-width: 0;
        width: 100%;
    }
}
