/* ZENTRALE DESIGN-DATEI FÜR COLDITZ.APP
   Design: Rot-Weiß, Professionell, Mobil-optimiert
   Update: Vollständige Integration für Tageblatt, Gruppe, Events & FFW-Grid
*/

/* --- VARIABLEN --- */
:root {
    --colditz-red: #C41E3A; 
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-body: #F8F9FA;
    --border-radius: 8px;
    --border-radius-large: 25px; /* Für Karten-Designs */
    --shadow-subtle: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-strong: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* --- GRUNDEINSTELLUNGEN --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================= */
/* --- HEADER & POSITIONIERUNG --- */
/* ========================================= */
.main-header {
    background-color: var(--text-light);
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

/* --- NAVIGATION --- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    padding: 5px 0;
}

.main-nav a:hover:not(.login-btn) {
    color: var(--colditz-red);
}

.main-nav a.login-btn {
    background-color: var(--colditz-red);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--colditz-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav a.login-btn:hover {
    background-color: var(--text-light);
    color: var(--colditz-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.mobile-menu-btn {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--colditz-red);
    transition: var(--transition);
}

/* ========================================= */
/* --- INHALTSBEREICH --- */
/* ========================================= */
.main-content {
    flex: 1;
    padding: 50px 0;
    background-color: var(--bg-body);
}

.content-box {
    background-color: var(--text-light);
    border: 3px solid var(--colditz-red);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
}

.content h1 {
    color: var(--colditz-red);
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 36px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #555;
}

/* ========================================= */
/* --- GRID & CARD SYSTEME (INTEGRIERT) --- */
/* ========================================= */

.headline-section { 
    text-align: center; 
    margin-bottom: 40px; 
}

.headline-section h1 { 
    color: var(--colditz-red); 
    font-weight: 800; 
    font-size: 36px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
}

.headline-section p { 
    color: #666; 
    font-size: 18px; 
    font-style: italic; 
}

/* Filter-Sektion (Tageblatt & FFW) */
.filter-section {
    background: var(--text-light);
    padding: 25px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-subtle);
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border: 1px solid #eee;
}
.filter-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.filter-group label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #999; letter-spacing: 1px; }
.filter-group select { 
    padding: 12px; 
    border-radius: 12px; 
    border: 1px solid #ddd; 
    background: #f9f9f9; 
    font-weight: 600;
    cursor: pointer;
}

/* Globales Grid */
.co-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 30px;
}

/* Die zentrale Karten-Klasse */
.co-card {
    background: var(--text-light);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.co-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--colditz-red); 
    box-shadow: var(--shadow-strong); 
}

/* Thumbnail Wrapper (Vorschau-Bilder im Ganzen zeigen) */
.card-thumb-wrapper {
    width: 100%;
    height: 350px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
    overflow: hidden;
}
.card-thumb-wrapper img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Badges (PDF, #Nummer) */
.co-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--colditz-red);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    z-index: 2;
}

/* Karten-Inhalt */
.card-body { 
    padding: 20px; 
    text-align: center; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}
.card-body h3 { margin: 0 0 8px 0; font-size: 20px; color: var(--text-dark); font-weight: 800; }
.card-body p { color: #888; font-size: 14px; margin-bottom: 20px; }

/* Neue Colditz Buttons */
.co-btn {
    background: var(--colditz-red);
    color: var(--text-light);
    padding: 14px 25px;
    border-radius: 15px;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.co-btn:hover { 
    opacity: 0.9; 
    transform: scale(1.02); 
    color: white; 
}

/* --- GRUPPEN & AVATAR ELEMENTE --- */
.avatar-box { 
    width: 45px; 
    height: 45px; 
    border-radius: 12px; 
    background: #eee; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #ddd;
}
.avatar-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* ========================================= */
/* --- FOOTER --- */
/* ========================================= */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0;
    margin-top: auto;
    border-top: 3px solid var(--colditz-red);
}

.footer-content {
    text-align: center;
}

.footer-copyright {
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--colditz-red);
    text-decoration: underline;
}

/* ========================================= */
/* --- RESPONSIVE DESIGN --- */
/* ========================================= */

@media (max-width: 768px) {
    .header-container {
        padding: 15px 0;
    }

    .logo img {
        height: 55px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 40px;
        border-top: 3px solid var(--colditz-red);
    }

    .main-nav.active {
        display: block;
        animation: slideInDown 0.4s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .main-nav a {
        display: flex;
        width: 100%;
        padding: 15px 0;
        font-size: 20px;
        border-bottom: 1px solid #eee;
    }

    .main-nav a.login-btn {
        justify-content: center;
        border-radius: var(--border-radius);
        margin-top: 20px;
        font-size: 18px;
    }

    .content-box {
        padding: 30px;
        border-radius: 0;
        border: none;
        border-bottom: 3px solid var(--colditz-red);
    }

    .content h1 {
        font-size: 28px;
        flex-direction: column;
        align-items: flex-start;
    }

    .headline-section h1 { font-size: 28px; }
    .co-grid { grid-template-columns: 1fr; }
    .filter-section { flex-direction: column; }
    .card-thumb-wrapper { height: 300px; }
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}