/*
Theme Name: Verein Child
Template: hello-elementor
Description: Minimal Child-Theme für FC Dahn - GRID VERSION
Version: 1.4
Author: Manuel Kunz
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Oswald:wght@500;700&display=swap');

/* ============================
   1. GRUNDLAGEN (RESET & BODY)
   ============================ */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #fefefe, #4c6cb4);
    color: #374997;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* ============================
   2. TYPOGRAFIE & BUTTONS
   ============================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #374997;
    margin-bottom: 0.8rem;
}

.hero-intro h1 {
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.hero-intro p, .hero-intro p strong {
    color: #f0f0f0;
}

.btn, button, input[type="submit"] {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.btn:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(55, 73, 151, 0.4);
}

/* ============================
   3. HEADER & NAVIGATION
   ============================ */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100%;
    background: linear-gradient(90deg, #1a254d 0%, #374997 50%, #1a254d 100%);
    border-bottom: 3px solid #f1c40f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 90px;
}

.site-logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.site-logo img:hover {
    transform: scale(1.1) rotate(-2deg);
}

.site-navigation .menu-items {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.site-navigation .menu-items li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 20px;
    z-index: 1;
    transition: color 0.3s ease;
}

.site-navigation .menu-items li a::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ffffff;
    transform: skewX(-20deg) scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: 4px;
}

.site-navigation .menu-items li a:hover {
    color: #374997;
}

.site-navigation .menu-items li a:hover::before {
    transform: skewX(-20deg) scaleX(1);
}

.site-navigation .menu-items li.current-menu-item a {
    color: #374997;
}
.site-navigation .menu-items li.current-menu-item a::before {
    background-color: #f1c40f;
    transform: skewX(-20deg) scaleX(1);
}

/* ============================
   4. HERO SECTION
   ============================ */
.hero-section {
    position: relative;
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 160px 20px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(55, 73, 151, 0.9), rgba(76, 108, 180, 0.8));
    z-index: 1;
}

.hero-logo, .hero-intro {
    position: relative;
    z-index: 2;
}

img.hero-logo {
    height: 200px !important;
    width: auto !important;
    max-width: none !important;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

img.hero-logo:hover {
    transform: scale(1.05);
}

.hero-intro {
    max-width: 800px;
}

.hero-intro h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* ============================
   5. CONTENT & LAYOUT
   ============================ */
.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-wide {
    max-width: 1400px; /* Breiter für Sponsoren */
    margin: 0 auto;
    padding: 0 20px;
}

.box {
    background-color: #f0f0f0;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

/* ============================
   6. AKTUELLES
   ============================ */
.aktuelles-inner {
    display: flex;
    align-items: stretch;
    gap: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #374997;
    margin-bottom: 20px;
}

.aktuelles-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.aktuelles-image {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
}

.aktuelles-image img {
    border-radius: 4px;
}

.aktuelles-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aktuelles-text .btn {
    align-self: flex-start;
    margin-top: 15px;
    background-color: #374997;
    color: #fff;
    padding: 8px 20px;
    text-decoration: none;
}

/* ============================
   7. KOLLEKTION
   ============================ */
.kollektion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 80px;
}

.kollektion-box {
    flex: 1 1 260px;
    max-width: 400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.kollektion-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #374997;
}

.kollektion-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.kollektion-image {
    height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.kollektion-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.kollektion-text h3 {
    margin: 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kollektion-text p {
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    color: #4c6cb4;
    margin: 10px 0 20px 0;
}

.btn-container {
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.btn-container .btn {
    background-color: #374997;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    display: inline-block;
}

/* ============================
   8. FOOTER & SPONSOREN (GRID UPDATE)
   ============================ */

/* --- Sponsoren Bereich --- */
.sponsoren-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.section-title-small {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    margin-top: 0;
    font-family: 'Oswald', sans-serif;
}

/* Das neue Grid System */
.sponsoren-grid {
    display: flex;
    flex-wrap: wrap;       /* Automaticher Umbruch */
    justify-content: center; /* Mittig */
    gap: 30px;             /* Abstand zwischen Partnern */
    align-items: center;   /* Vertikal mittig */
}

/* Die einzelne Partner-Karte */
.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    background-color: #fff; /* Weiße Karte */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    
    min-width: 150px;
    transition: all 0.3s ease;
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #374997;
}

/* Partner Logo */
.sponsor-item img {
    max-height: 60px;
    width: auto;
    margin-bottom: 10px;
    filter: grayscale(100%); /* Schwarz-Weiß Standard */
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Hover: Logo wird bunt */
.sponsor-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Partner Name (Text) */
.sponsor-name {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    font-weight: bold;
}

.sponsor-item:hover .sponsor-name {
    color: #374997;
}


/* --- Haupt Footer --- */
.site-footer {
    background-color: #1a254d;
    color: #aab2cd;
    padding-top: 60px;
    margin-top: 0; 
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h4 {
    color: #ffffff;
    margin-top: 0;
    font-family: 'Oswald', sans-serif;
    border-bottom: 2px solid #374997;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

img.footer-logo {
    width: 80px !important;
    height: auto !important;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a, .legal-links a, .footer-col a {
    color: #aab2cd;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover, .legal-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.mail-link {
    font-weight: bold;
    color: #fff !important;
}

.footer-bottom {
    background-color: #121a36;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #58617a;
    border-top: 1px solid rgba(255,255,255,0.05);
}


/* ============================
   9. MOBILE & RESPONSIVE
   ============================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .site-header { position: relative !important; }
    
    .menu-toggle { display: flex; }

    .site-navigation {
        position: absolute;
        top: 100%; right: 0; width: 200px;
        z-index: 999;
    }

    .site-navigation .menu-items {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #374997;
        padding: 10px;
        border-radius: 0 0 10px 10px;
        text-align: right;
    }

    .site-navigation .menu-items.active { display: flex; }

    .kollektion-box { flex: 1 1 45%; }
    .kontakt-bild { display: none !important; }
    
    /* Mobile Menu Button Styling */
    .site-header .menu-toggle {
        display: flex !important;
        border: 2px solid #ffffff !important;
        border-radius: 4px !important;
    }
    .site-header .menu-toggle span { background-color: #ffffff !important; }
}

@media (min-width: 901px) {
    .site-header .menu-toggle { display: none !important; }
}

@media (max-width: 600px) {
    .kollektion-box { flex: 1 1 100%; }
    .aktuelles-inner { flex-direction: column; text-align: center; }
    .aktuelles-image { justify-content: center; margin-bottom: 15px; }
    .sponsoren-grid { gap: 15px; } /* Enger am Handy */
    .sponsor-item { min-width: 120px; padding: 15px; }
}


/* ============================
   10. WIDGETS & SEITEN DESIGN
   ============================ */
.match-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: #374997;
}

.match-header {
    background: linear-gradient(90deg, #1a254d 0%, #374997 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-bottom: 3px solid #f1c40f;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.match-header::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #f1c40f;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.8);
}

.match-content {
    padding: 20px;
    background-color: #fff;
    overflow-x: auto;
}

/* Section Titles */
.section-title-wrapper { text-align: center; margin: 60px 0 40px 0; }
.section-title {
    display: inline-block;
    background: linear-gradient(90deg, #1a254d 0%, #374997 100%);
    color: #ffffff !important;
    padding: 15px 60px;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 700;
    transform: skewX(-20deg);
    border-bottom: 4px solid #f1c40f;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.section-title span { display: block; transform: skewX(20deg); }

/* Team Photo */
.team-photo-container { margin-bottom: 40px; position: relative; }
.team-photo {
    width: 100%; height: auto; border-radius: 8px;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: block;
}

/* Scrollbar */
.scroll-active { max-height: 600px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #374997 #f0f0f0; }
.scroll-active::-webkit-scrollbar { width: 8px; }
.scroll-active::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.scroll-active::-webkit-scrollbar-thumb { background-color: #374997; border-radius: 4px; border: 2px solid #f0f0f0; }

/* News List & Cards */
.news-list { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; }
.news-card {
    background: #fff; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden; display: flex; border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-color: #374997; }
.news-thumb { width: 35%; min-height: 220px; position: relative; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-thumb img { transform: scale(1.1); }
.news-content { width: 65%; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.news-content h2 { font-family: 'Oswald', sans-serif; text-transform: uppercase; color: #333; margin: 0 0 15px 0; font-size: 1.5rem; }
.news-meta { font-size: 0.85rem; color: #999; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 768px) {
    .news-card { flex-direction: column; }
    .news-thumb, .news-content { width: 100%; }
    .news-thumb { height: 200px; }
}

/* Kontakt Formular */
.kontakt-formular {
    background: linear-gradient(90deg, #1a254d 0%, #374997 100%);
    border-radius: 12px; padding: 0; display: flex; align-items: flex-end;
    justify-content: space-between; border-bottom: 4px solid #f1c40f;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); overflow: hidden; margin-top: 50px;
}
.kontakt-bild { flex: 1; max-width: 45%; display: flex; justify-content: center; }
.kontakt-bild img { width: 100%; max-width: 350px; display: block; }
.bestell-formular { flex: 1; padding: 40px; color: #fff; }
.bestell-formular h2 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: #f1c40f; margin-top: 0; line-height: 1.3; text-transform: uppercase; }
.bestell-formular input, .bestell-formular textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: none; border-radius: 4px; background: rgba(255,255,255,0.9); font-family: sans-serif; color: #333; }
.bestell-formular button { background-color: #f1c40f; color: #1a254d; font-family: 'Oswald', sans-serif; font-weight: bold; font-size: 1.1rem; padding: 12px 30px; border: none; border-radius: 4px; cursor: pointer; text-transform: uppercase; transition: all 0.3s ease; width: 100%; }
.bestell-formular button:hover { background-color: #fff; color: #374997; }

@media (max-width: 768px) {
    .kontakt-formular { flex-direction: column-reverse; text-align: center; }
    .kontakt-bild { max-width: 80%; margin-top: -20px; }
    .bestell-formular h2 { font-size: 1.4rem; }
}

/* Standard Pages */
.standard-page-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-top: 5px solid #f1c40f; color: #333; font-size: 1.1rem; line-height: 1.6; margin-bottom: 60px; min-height: 200px; }
.standard-page-box h2 { color: #1a254d; font-family: 'Oswald', sans-serif; text-transform: uppercase; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 30px; }
.standard-page-box h3 { color: #374997; margin-top: 25px; }
.standard-page-box a { color: #374997; text-decoration: underline; font-weight: bold; }
.construction-notice { text-align: center; padding: 40px; background: #f8f9fa; border: 2px dashed #ccc; border-radius: 8px; margin-top: 20px; }

/* ============================
   11. COOKIE BANNER & WIDGET HELPERS
   ============================ */
/* Widget Platzhalter */
.fussballde_widget:empty {
    min-height: 200px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 4px;
    position: relative;
    display: block;
}
.fussballde_widget:empty::before {
    content: 'Tabelle wird geladen... (Falls nicht: Cookies akzeptieren)';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #999; font-family: sans-serif; text-align: center; width: 80%;
}

/* Eigener Banner */
#fcdahn-cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: #1a254d; color: #fff;
    z-index: 99999; padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    border-top: 4px solid #f1c40f;
    display: flex; justify-content: center; align-items: center;
}
.cookie-content { max-width: 900px; text-align: center; }
.cookie-content h3 { margin-top: 0; color: #f1c40f; font-family: 'Oswald', sans-serif; }
.cookie-buttons { margin-top: 15px; display: flex; gap: 15px; justify-content: center; }
.btn-cookie-accept {
    background-color: #f1c40f; color: #1a254d; border: none;
    padding: 10px 25px; font-weight: bold; cursor: pointer;
    font-family: 'Oswald', sans-serif; text-transform: uppercase;
    border-radius: 4px;
}
.btn-cookie-accept:hover { background-color: #fff; }
.btn-cookie-decline {
    background-color: transparent; color: #ccc;
    border: 1px solid #ccc; padding: 10px 20px;
    cursor: pointer; border-radius: 4px;
}