/*
Theme Name: SV Davaria
Theme URI: https://sv-davaria.de
Author: Grok (for you)
Author URI: 
Description: Replica of SV Davaria Davensberg 1949 e.V. website (archived 2026 version)
Version: 1.0
Text Domain: sv-davaria
*/

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f8f8;
    margin: 0;
}

a { color: #003087; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
    background: #003087; /* dark blue – typical club color */
    color: white;
    padding: 15px 0;
    text-align: center;
}

header h1 {
    margin: 0;
	padding-left:80px;
	padding-right:80px;
    font-size: 2.2rem;
}


/*** Menu Start ***/

nav {
    background: #002266;
    /*padding: 10px 0;*/
	padding:0px 25%;
}

nav ul {
	list-style: none;
    padding: 10px 0px;
    margin: 0;
    display: flex;           /* Horizontal menu */
    gap: 5px;
	height:50px;
}

nav ul li a {
    color: white;
    padding: 8px 12px;
    font-weight: bold;
	white-space: nowrap;
}


/* ====================== DESKTOP ====================== */
nav li {
    position: relative;
}

/* Desktop Hover Dropdown */
@media (min-width: 1025px) {
    .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        min-width: 150px;
		min-height: 210px;
        border-radius: 8px;
        padding: 10px 0;
        z-index: 1000;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.25s ease;
    }
	
	.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

    .menu-item-has-children:hover > .sub-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================== MOBILE ====================== */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

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

/* Mobile menu styles */
.mobile-menu ul {
    flex-direction: column;
}

.mobile-menu .sub-menu {
    position: static;
    box-shadow: none;
    padding: 5px 0 5px 20px;
    margin-top: 8px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* Close button */
.sub-menu-close {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    color: #666;
}

@media (max-width: 1024px) {
    .hamburger { display: block; }
    
    nav > ul { display: none; }   /* Hide desktop menu on mobile */
    
    .sub-menu-close { display: inline; }
}


/*** Menu End  ***/

.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), center/cover no-repeat;
    color: white;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.main-content {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.news-list {
    flex: 3;
}

.news-item {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 6px solid #003087;
}

.news-date {
    color: #666;
    font-size: 0.95rem;
}

footer {
    background: #002266;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer a { color: #aaccff; }

.page-content {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-left: 7px solid #003087;
    margin-bottom: 30px;
}

.page-title {
    color: #003087;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
    margin-top: 0;
}

.page-content-inner {
    line-height: 1.7;
}

.page-content-inner h1, .page-content-inner h2 {
    color: #002266;
    margin-top: 35px;
}

/* Make long content (like Impressum) more readable */
.page-content-inner p {
    margin-bottom: 1.2em;
}
