/* 1. FC Katzbach 1958 e.V. - Stylesheet (Reines CSS, keine externen CDNs, 100% DSGVO-konform) */
:root {
    --primary: #0d62b8;
    --primary-dark: #084382;
    --primary-light: #e8f2fc;
    --navy: #0a192f;
    --dark: #1e293b;
    --muted: #64748b;
    --light: #f8fafc;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--dark);
    background-color: var(--bg);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--navy);
}

.brand img {
    height: 52px;
    width: auto;
    border-radius: 4px;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

nav a:hover, nav a:focus {
    color: var(--primary);
    background: var(--primary-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #173663 100%);
    color: var(--white);
    padding: 4rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
}

.hero .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.hero-line {
    display: block;
}

@media (min-width: 900px) {
    .hero-line {
        white-space: nowrap;
    }
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(13, 98, 184, 0.4);
}

.btn-primary:hover {
    background: #0b5198;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Container & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Sparten Cards Grid */
.sparten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.sparten-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sparten-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-img-wrapper {
    height: 180px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-img-wrapper img.pos-top {
    object-position: top center;
    transform-origin: top center;
}

.sparten-card:hover .card-img-wrapper img {
    transform: scale(1.04);
}

.card-img-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary);
}

.card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.card-body p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0;
    flex: 1;
}

.card-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.card-meta strong {
    color: var(--dark);
}

/* Verein & Vorstand Section */
.bg-light {
    background: #f1f5f9;
}

.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.vorstand-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.vorstand-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.vorstand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f8fafc;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #bfdbfe;
}

/* Mitgliedschaft Box */
.mitglied-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 2px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-md);
}

.mitglied-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.mitglied-content p {
    color: #475569;
    font-size: 1.05rem;
    max-width: 650px;
}

/* Impressum & Rechtliches */
.impressum-box {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
}

.impressum-box h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin: 1.5rem 0 0.5rem;
}

.impressum-box h3:first-child {
    margin-top: 0;
}

.impressum-box p {
    margin-bottom: 0.75rem;
}

/* Footer */
footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 0.75rem;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
}

footer .footer-copy {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero h2 {
        font-size: 1.85rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .mitglied-box {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem;
    }
    
    .container {
        padding: 2.5rem 1rem;
    }
}
