/* Skiclub Oppenau - Modern Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background-image:
        linear-gradient(135deg, rgba(250, 6, 0, 0.75) 0%, rgba(197, 5, 0, 0.8) 100%),
        url('../images/hintergrund.jpg');
    background-size: cover;
    background-position: center;
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

header h1 {
    color: white;
    font-size: 2.2em;
    margin-left: 20px;
    flex-grow: 1;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 18px 28px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #FA0600, #ff3333);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #FA0600;
    background-color: #fff5f5;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, #FA0600, #c50500);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    cursor: pointer;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(250, 6, 0, 0.3);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 6, 0, 0.4);
}

/* Main Content */
main {
    background-color: white;
    margin: 40px auto;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    min-height: 400px;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FA0600, #ff3333);
    border-radius: 2px;
}

h2 {
    font-size: 1.9em;
    margin-top: 35px;
    color: #FA0600;
}

h3 {
    font-size: 1.4em;
    margin-top: 25px;
    color: #555;
}

p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Sections */
.welcome-section,
.events-section,
.popular-section {
    margin-bottom: 40px;
}

.events-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(250, 6, 0, 0.08);
}

/* Facebook Integration */
.facebook-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
}

.facebook-placeholder {
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    color: #666;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Lists */
ul, ol {
    margin-left: 40px;
    margin-bottom: 20px;
}

ul li, ol li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Historie Container - Two Column Layout */
.historie-container {
    display: flex;
    gap: 35px;
    margin-top: 40px;
}

/* Vorstände Sidebar */
.vorstande-sidebar {
    flex: 0 0 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    align-self: flex-start;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.vorstande-sidebar h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 25px;
    color: #FA0600;
    position: relative;
    padding-bottom: 12px;
}

.vorstande-sidebar h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FA0600, #ff3333);
    border-radius: 2px;
}

.vorstande-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vorstand-item {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.vorstand-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vorstand-item.vorstand-current {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(250, 6, 0, 0.15);
}

.vorstand-item.vorstand-pause {
    background-color: #f8f9fa;
    font-style: italic;
    opacity: 0.8;
}

.vorstand-year {
    display: block;
    color: #FA0600;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 6px;
}

.vorstand-name {
    display: block;
    color: #2c3e50;
    font-size: 1em;
}

/* Timeline for Historie */
.timeline {
    flex: 1;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FA0600 0%, #ff6666 100%);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid #FA0600;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(250, 6, 0, 0.1);
}

.timeline-year {
    color: #FA0600;
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Historic Images */
.historic-images {
    text-align: center;
    margin: 40px 0;
}

.historic-image {
    max-width: 220px;
    height: auto;
    margin: 15px;
    padding: 12px;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.historic-image:hover {
    transform: scale(1.05);
}

.timeline-image {
    margin: 20px 0;
    text-align: center;
}

.historic-photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.historic-photo:hover {
    transform: scale(1.02);
}

.image-caption {
    font-style: italic;
    color: #6c757d;
    font-size: 0.95em;
    margin-top: 10px;
    text-align: center;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3em;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FA0600, #ff3333);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: #FA0600;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 0.9em;
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info p {
    margin-bottom: 12px;
}

.contact-info strong {
    color: #FA0600;
    font-weight: 600;
}

/* Links */
a {
    color: #FA0600;
    transition: color 0.3s ease;
}

a:hover {
    color: #c50500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        padding: 10px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 5px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 14px 20px;
        text-align: center;
    }

    nav ul li a::after {
        display: none;
    }

    header h1 {
        font-size: 1.6em;
        margin-left: 10px;
    }

    .logo {
        height: 70px;
    }

    main {
        padding: 30px 20px;
        margin: 20px auto;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .historic-image {
        max-width: 170px;
    }

    .historic-photo {
        max-width: 100%;
    }

    .historie-container {
        flex-direction: column;
    }

    .vorstande-sidebar {
        flex: 1;
        position: static;
        max-height: none;
        margin-bottom: 30px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        width: 3px;
    }

    .timeline-item::before {
        left: -31px;
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }

    header h1 {
        font-size: 1.3em;
    }

    .logo {
        height: 60px;
    }

    main {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.7em;
    }

    h2 {
        font-size: 1.4em;
    }

    .historic-image {
        max-width: 140px;
    }

    .timeline {
        padding-left: 20px;
    }
}
