/**
 * Fotos Deutschland – Fotogalerie Deutschland
 * EINE Quelle für alle Fotos-Deutschland-Styles.
 * Hohe Spezifität (body .ff-fotos-deutschland) überschreibt GeneratePress.
 * Deploy: nach Theme-Root (generatepress-child).
 */

/* ===== Layout: Sticky-Wrap + Main füllt Grid-Zelle ===== */
body.ff-page-fotos-deutschland .ff-fd-sticky-wrap {
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.ff-page-fotos-deutschland .ff-fd-sticky-wrap > main {
    flex: 1 1 auto;
}

body .ff-fotos-deutschland.ff-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: #f5f5f5;
}

/* Alle Links: nicht blau */
body .ff-fotos-deutschland a { color: inherit; }
body .ff-fotos-deutschland a:hover { color: #c62828; }

/* ===== Container ===== */
body .ff-fotos-deutschland .ff-fd-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px clamp(12px, 2vw, 32px) 56px;
    width: 100%;
    box-sizing: border-box;
}

/* ===== Hero-Bild ===== */
body .ff-fotos-deutschland .ff-fd-hero {
    margin: -28px -20px 24px;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    max-height: 280px;
}
body .ff-fotos-deutschland .ff-fd-hero img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

/* ===== Header: Titel + Beschreibung ===== */
body .ff-fotos-deutschland .ff-fd-header {
    text-align: center;
    margin-bottom: 28px;
}
body .ff-fotos-deutschland .ff-fd-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
body .ff-fotos-deutschland .ff-fd-desc {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* ===== Zurück-Button: Pill, Sliding-Hover rot ===== */
body .ff-fotos-deutschland .ff-fd-back-wrap {
    margin: 0 0 24px;
}
body .ff-fotos-deutschland .ff-fd-back-btn,
body .ff-fotos-deutschland .ff-fd-back-btn.ff-back-btn {
    outline: none;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border-radius: 500px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    transition: color 0.25s, border-color 0.25s;
    z-index: 1;
}
body .ff-fotos-deutschland .ff-fd-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;
}
body .ff-fotos-deutschland .ff-fd-back-btn:hover {
    color: #fff;
    border-color: #c62828;
    box-shadow: none;
    text-decoration: none;
}
body .ff-fotos-deutschland .ff-fd-back-btn:hover::before {
    transform: skew(30deg) translate3d(0, 0, 0);
}

/* ===== Sektionstitel (Team-Name: rote Linie darunter) ===== */
body .ff-fotos-deutschland .ff-fd-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c62828;
}

/* ===== Suchfeld: Kachel mittig über Tabelle ===== */
body .ff-fotos-deutschland .ff-fd-search-row {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
body .ff-fotos-deutschland .ff-fd-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;
}
body .ff-fotos-deutschland .ff-fd-search-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}
body .ff-fotos-deutschland .ff-fd-search-card:focus-within {
    /* Schatten weg, nur roter Rand */
    box-shadow: 0 6px 24px rgba(0,0,0,0.08); 
    border-color: #c62828;
    transform: translateY(-2px);
}
body .ff-fotos-deutschland .ff-fd-search-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
body .ff-fotos-deutschland .ff-fd-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;
}
body .ff-fotos-deutschland .ff-fd-search-input::placeholder {
    color: #999;
}
body .ff-fotos-deutschland .ff-fd-search-input:focus {
    border-color: #c62828;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
body .ff-fotos-deutschland .ff-fd-search-no-match {
    margin: 16px 0 0;
    color: #666;
    font-size: 15px;
    text-align: center;
}

/* ===== Team-Tabelle: 3 Spalten (Team | Spiele | Fotos) ===== */
body .ff-fotos-deutschland .ff-fd-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e8e8e8;
    margin-bottom: 28px;
    width: 100%;
    max-width: 100%;
}
body .ff-fotos-deutschland .ff-fd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
body .ff-fotos-deutschland .ff-fd-table th {
    text-align: left;
    padding: 18px 24px;
    background: #f8f8f8;
    font-weight: 700; /* Fetter */
    color: #1a1a1a;
    border-bottom: 2px solid #e8e8e8;
    font-size: 16px; /* Größer */
    letter-spacing: 0.02em;
}
body .ff-fotos-deutschland .ff-fd-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 15px;
}
/* Spaltenbreiten: Team 60%, Spiele 20%, Fotos 20% */
body .ff-fotos-deutschland .ff-fd-table th:first-child,
body .ff-fotos-deutschland .ff-fd-table td:first-child {
    width: 60%;
    text-align: left;
}
body .ff-fotos-deutschland .ff-fd-table th:nth-child(2),
body .ff-fotos-deutschland .ff-fd-table td:nth-child(2),
body .ff-fotos-deutschland .ff-fd-table th:nth-child(3),
body .ff-fotos-deutschland .ff-fd-table td:nth-child(3) {
    width: 20%;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
body .ff-fotos-deutschland .ff-fd-table tbody tr:last-child td {
    border-bottom: none;
}
/* Hover-Animation */
body .ff-fotos-deutschland .ff-fd-table tbody tr {
    transition: background 0.2s ease;
}
body .ff-fotos-deutschland .ff-fd-table tbody tr:hover {
    background: rgba(198, 40, 40, 0.04);
}
body .ff-fotos-deutschland .ff-fd-table tbody td:first-child {
    border-left: 3px solid transparent;
    transition: border-left-color 0.2s ease;
}
body .ff-fotos-deutschland .ff-fd-table tbody tr:hover td:first-child {
    border-left-color: #c62828;
}
/* Links in Tabelle */
body .ff-fotos-deutschland .ff-fd-table a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
}
body .ff-fotos-deutschland .ff-fd-table a:hover {
    color: #c62828;
}

/* ===== Kein Ergebnis ===== */
body .ff-fotos-deutschland .ff-fd-empty {
    color: #666;
    font-size: 15px;
    margin: 0 0 24px;
}

/* ===== Fanfoto-Grid (Vereinsansicht) ===== */
body .ff-fotos-deutschland .ff-fd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
}
body .ff-fotos-deutschland .ff-fd-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;
}
body .ff-fotos-deutschland .ff-fd-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: #ddd;
    transform: translateY(-2px);
}
body .ff-fotos-deutschland .ff-fd-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 16px 16px;
}
body .ff-fotos-deutschland .ff-fd-card-img-wrap {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
body .ff-fotos-deutschland .ff-fd-card-img-wrap:hover img {
    opacity: 0.92;
}
body .ff-fotos-deutschland .ff-fd-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
body .ff-fotos-deutschland .ff-fd-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.35;
}
body .ff-fotos-deutschland .ff-fd-card-link:hover .ff-fd-card-title {
    color: #c62828;
}
body .ff-fotos-deutschland .ff-fd-card-meta {
    display: block;
    font-size: 13px;
    color: #888;
}
body .ff-fotos-deutschland .ff-fd-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
    color: #999;
    font-size: 14px;
}

/* ===== Pagination ===== */
body .ff-fotos-deutschland .ff-fd-pagination {
    margin: 32px 0 0;
    text-align: center;
}
body .ff-fotos-deutschland .ff-fd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 12px;
    margin: 0 3px;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ddd;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
body .ff-fotos-deutschland .ff-fd-pagination .page-numbers:hover {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}
body .ff-fotos-deutschland .ff-fd-pagination .page-numbers.current {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}
body .ff-fotos-deutschland .ff-fd-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #888;
}

/* ===== Responsive: Tabelle kompakt auf kleinen Screens ===== */
@media (max-width: 600px) {
    body .ff-fotos-deutschland .ff-fd-table th,
    body .ff-fotos-deutschland .ff-fd-table td {
        padding: 10px 10px;
        font-size: 13px;
    }
    body .ff-fotos-deutschland .ff-fd-saison-filter {
        flex-wrap: wrap;
    }
    body .ff-fotos-deutschland .ff-fd-saison-filter select {
        min-width: 0;
        width: 100%;
    }
}

/* ===== Saison-Filter: Komplett im Theme (Pill wie Alle Teams), Dropdown passend ===== */
body .ff-fotos-deutschland .ff-fd-saison-filter {
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
body .ff-fotos-deutschland .ff-fd-saison-filter form {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
body .ff-fotos-deutschland .ff-fd-saison-filter label {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
}
body .ff-fotos-deutschland .ff-fd-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;
}
body .ff-fotos-deutschland .ff-fd-saison-filter select:hover {
    border-color: #c62828;
    color: #1a1a1a;
}
body .ff-fotos-deutschland .ff-fd-saison-filter select:focus {
    border-color: #c62828;
    outline: none;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}
/* Dropdown-Optionen (wo unterstützt) */
body .ff-fotos-deutschland .ff-fd-saison-filter select option {
    padding: 10px 16px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 500;
}
/* FF REVERT Ende: Saison-Filter Styles */

/* Spieltag: absolut bündig (Padding 0), Rot */
body .ff-fotos-deutschland .ff-fd-card-spieltag {
    display: block;
    padding: 0 !important;
    margin-left: 0 !important;
    font-size: 13px;
    font-weight: 700;
    color: #c62828;
    margin-top: 6px;
    line-height: 1.2;
}