/* ========================================
   UWC Manta Wilhelmshaven - Stylesheet
   Modernes, helles Design mit Orange-Akzenten
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #FF9800;
    --primary-dark: #F57C00;
    --primary-light: #FFB74D;
    --secondary-color: #0277BD;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #FFFFFF;
    --bg-gray: #F5F5F5;
    --bg-alt: #FAFAFA;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 0;
    gap: 40px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    object-position: center;
    /* Runder Rahmen für kreisförmiges Logo */
    border-radius: 50%;
    /* Kleiner Schatten für bessere Sichtbarkeit */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-light);
    color: var(--bg-light);
}

.nav-menu .member-link {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.nav-menu .member-link:hover {
    background-color: var(--primary-dark);
}

/* Dropdown Menu */
.nav-menu .has-dropdown {
    position: relative;
}

.nav-menu .has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.7em;
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-light);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    padding: 8px 0;
    z-index: 1001;
}

.nav-menu .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown li {
    margin: 0;
}

.nav-menu .dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    white-space: nowrap;
    border-radius: 0;
}

.nav-menu .dropdown a:hover {
    background-color: var(--bg-gray);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero-overlay {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-gray);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ========================================
   Cards & Components
   ======================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.news-card-header {
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Info Box */
.info-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Events Preview */
.events-preview {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.placeholder-text {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p {
    color: var(--bg-gray);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--bg-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bg-gray);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Medium screens: Tighter navigation spacing */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 10px;
    }

    .nav-menu a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile Dropdown */
    .nav-menu .has-dropdown {
        position: relative;
    }

    .nav-menu .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-gray);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: 100%;
        padding: 0;
    }

    .nav-menu .has-dropdown.open .dropdown {
        max-height: 300px;
        padding: 8px 0;
    }

    .nav-menu .dropdown a {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
        width: 50px;
    }

    .hero {
        padding: 60px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
