/* ============================================
   STATISTIK - Layout 1: Horizontal Rows
============================================ */

.statistik-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Obere Reihe: 3 Spalten */
.statistik-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Untere Reihe: 4 Spalten (1 - 2 - 1) */
.statistik-row-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
}

/* Box Basis-Style */
.stat-box {
    background: #14151C;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    padding: 16px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: rgba(143,34,29,0.3);
}

/* Ecken oben-links */
.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 4px;
    background: #8F221D;
    z-index: 2;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 20px;
    background: #8F221D;
    z-index: 2;
}

/* Inner für Ecken unten-rechts */
.stat-box-inner {
    position: relative;
    height: 100%;
}

.stat-box-inner::before {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 20px;
    height: 4px;
    background: #8F221D;
    z-index: 2;
}

.stat-box-inner::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 4px;
    height: 20px;
    background: #8F221D;
    z-index: 2;
}

/* Box Titel */
.stat-box-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12px;
    color: #8F221D;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ============================================
   WER IST ONLINE
============================================ */

.stat-online-count {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1;
	overflow:auto;
	height:100px;
}

.stat-online-label {
    font-size: 12px;
    color: #e5e5e5;
    margin-top: 4px;
}

.stat-online-detail {
    font-size: 12px;
    color: #e5e5e5;
    margin-top: 4px;
}

.stat-online-users {
    font-size: 12px;
    color: #4b5563;
    margin-top: 8px;
}

.stat-online-users a {
    color: #d4524d;
    text-decoration: none;
}

.stat-online-users a:hover {
    color: #f87171;
}

/* ============================================
   HEUTE AKTIV
============================================ */

.stat-today-count {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1;
	overflow:auto;
	height:100px;
}

.stat-today-label {
    font-size: 12px;
    color: #e5e5e5;
    margin-top: 4px;
}

.stat-today-record {
    font-size: 12px;
    color: #e5e5e5;
    margin-top: 8px;
}

.stat-today-record span {
    color: rgba(255,255,255,0.6);
}

/* ============================================
   INPLAY ZITAT
============================================ */

.stat-quote {
    position: relative;
    padding: 8px 0;
}

.stat-quote-mark-open {
    font-size: 32px;
    color: rgba(143,34,29,0.3);
    position: absolute;
    top: -5px;
    left: 0;
    line-height: 1;
}

.stat-quote-mark-close {
    font-size: 32px;
    color: rgba(143,34,29,0.3);
    position: absolute;
    bottom: -10px;
    right: 0;
    line-height: 1;
}

.stat-quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-style: italic;
    color: #9ca3af;
    padding: 0 16px;
    line-height: 1.6;
}

.stat-quote-author {
    font-size: 12px;
    text-align: right;
    margin-top: 12px;
    color: #4b5563;
}

.stat-quote-author a {
    color: #d4524d;
    text-decoration: none;
}

.stat-quote-source {
    font-size: 11px;
    color: #4b5563;
    margin-top: 4px;
    text-align: right;
}

.stat-quote-source span {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   NEUESTE BEITRÄGE
============================================ */

.stat-posts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-post-item {
    border-left: 2px solid rgba(143,34,29,0.3);
    padding-left: 10px;
    padding: 6px 0 6px 10px;
}

.stat-post-item:hover {
    border-left-color: #8F221D;
}

.stat-post-title {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-post-title a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.stat-post-title a:hover {
    color: #d4524d;
}

.stat-post-meta {
    font-size: 11px;
    color: #4b5563;
    margin-top: 2px;
}

.stat-post-meta a {
    color: #d4524d;
    text-decoration: none;
}

/* ============================================
   WELCOME / STATISTIK (große Box)
============================================ */

.stat-welcome {
    padding: 20px;
}

.stat-welcome-header {
    text-align: center;
    margin-bottom: 20px;
}

.stat-welcome-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12px;
    color: #8F221D;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-welcome-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #d4524d 0%, #8F221D 40%, #3d0f0d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-welcome-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.stat-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(143,34,29,0.3), transparent);
    margin: 16px 0;
}

/* Neuestes Mitglied */
.stat-newest-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 16px;
}

.stat-newest-avatar {
    width: 50px;
    height: 50px;
    background: rgba(143,34,29,0.2);
    border: 1px solid rgba(143,34,29,0.3);
    flex-shrink: 0;
}

.stat-newest-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-newest-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-newest-name {
    font-size: 14px;
    color: #d4524d;
    margin-top: 2px;
}

.stat-newest-name a {
    color: #d4524d;
    text-decoration: none;
}

.stat-newest-name a:hover {
    color: #f87171;
}

.stat-newest-date {
    font-size: 11px;
    color: #4b5563;
    margin-top: 2px;
}

/* Stats Grid */
.stat-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-number-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(0,0,0,0.2);
}

.stat-number-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #d4524d;
    line-height: 1;
}

.stat-number-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* Inplay Info */
.stat-inplay-info {
    text-align: center;
    font-size: 12px;
    color: #4b5563;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.stat-inplay-info .label {
    color: #8F221D;
}

/* ============================================
   PARTNER
============================================ */

.stat-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-partner-item {
    aspect-ratio: 1;
    background: rgba(143,34,29,0.1);
    border: 1px solid rgba(143,34,29,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-partner-item:hover {
    border-color: rgba(143,34,29,0.5);
}

.stat-partner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 900px) {
    .statistik-row-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .statistik-row-top .stat-box:last-child {
        grid-column: span 2;
    }
    
    .statistik-row-bottom {
        grid-template-columns: 1fr 1fr;
    }
    
    .statistik-row-bottom .stat-box:nth-child(2) {
        grid-column: span 2;
        order: -1;
    }
}

@media (max-width: 600px) {
    .statistik-row-top,
    .statistik-row-bottom {
        grid-template-columns: 1fr;
    }
    
    .statistik-row-top .stat-box:last-child,
    .statistik-row-bottom .stat-box:nth-child(2) {
        grid-column: span 1;
    }
    
    .stat-numbers {
        grid-template-columns: repeat(2, 1fr);
    }
}