/* --- ERC ARCHIV & NEWS GRID - MODERN DARK THEME (V 2.0) --- */

:root {
    --erc-bg-card: #0a162e; /* Dunkelblau */
    --erc-bg-darker: #050b16;
    --erc-neon-blue: #009fe3; 
    --erc-text-white: #e6eef5;
    --erc-text-muted: #8b9bb4;
    --erc-font-head: 'Teko', sans-serif;
    --erc-font-body: 'Roboto', sans-serif;
}

/* Container Reset */
.erci-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--erc-font-body); 
    color: var(--erc-text-white);
    box-sizing: border-box;
}

.erci-archive-wrapper *, 
.erci-archive-wrapper *::before, 
.erci-archive-wrapper *::after {
    box-sizing: border-box;
}

/* --- TOOLBAR --- */
.erci-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(160deg, #162a52 0%, #0a162e 100%);
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    border-bottom: 2px solid var(--erc-neon-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Inputs & Selects Reset */
.erci-search-wrap { flex: 1 1 300px; }
.erci-filter-group { display: flex; flex-wrap: wrap; gap: 10px; flex: 2 1 auto; }

.erci-toolbar input, 
.erci-toolbar select {
    width: 100%;
    height: 50px; /* Fixe Höhe */
    padding: 0 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    appearance: none; /* Entfernt Standard-Styles */
}

.erci-toolbar select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23009fe3%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    padding-right: 35px;
}
.erci-filter-group select { flex: 1 1 150px; } /* Min-Breite für Filter */

.erci-toolbar input:focus, .erci-toolbar select:focus {
    border-color: var(--erc-neon-blue);
    box-shadow: 0 0 10px rgba(0, 159, 227, 0.2);
}

/* --- GRID SYSTEM --- */
.erci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}

/* --- CARD DESIGN --- */
.erci-item {
    background: var(--erc-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%; /* Wichtig für gleiche Höhe */
}

.erci-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(0, 159, 227, 0.5);
}

.erci-link-wrap {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Bildbereich */
.erci-thumb {
    height: 220px;
    background-size: cover;
    background-position: center top;
    position: relative;
    background-color: #000;
}

.erci-date-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--erc-neon-blue);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid var(--erc-neon-blue);
    backdrop-filter: blur(4px);
}

/* Content Bereich */
.erci-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.erci-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--erc-text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.erci-title {
    font-family: var(--erc-font-head);
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    color: #fff !important;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 15px 0 !important;
    transition: color 0.3s;
}

.erci-item:hover .erci-title {
    color: var(--erc-neon-blue) !important;
    text-shadow: 0 0 15px rgba(0,159,227,0.4);
}

.erci-excerpt {
    font-size: 0.95rem !important;
    color: var(--erc-text-muted) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    flex-grow: 1; /* Drückt den Pfeil nach unten */
}

.erci-arrow {
    text-align: right;
    color: var(--erc-neon-blue);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
    transform: translateX(0);
    transition: transform 0.3s;
}
.erci-item:hover .erci-arrow { transform: translateX(5px); }

/* --- UI HELPERS --- */
.erci-pagination-wrap { text-align: center; margin-top: 40px; clear: both; }

#erci-load-more {
    background: transparent;
    border: 1px solid var(--erc-neon-blue);
    color: var(--erc-neon-blue);
    padding: 12px 50px;
    font-family: var(--erc-font-head);
    font-size: 1.4rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}
#erci-load-more:hover {
    background: var(--erc-neon-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(0,159,227,0.5);
}

.erci-loader {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--erc-neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 768px) {
    .erci-toolbar { padding: 15px; gap: 10px; }
    .erci-filter-group select { flex: 1 1 100%; }
    .erci-title { font-size: 1.4rem !important; }
}