/* ============================================================
   VFC e.V. – Gemeinsames Stylesheet
   Extrahiert aus allen Seiten; seitenspezifisches CSS
   bleibt inline im jeweiligen <head>.
============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS-VARIABLEN ── */
:root {
    --primary:      #d1dd00;
    --primary-dark: #a0a800;
    --accent:       #f0a500;
    --text:         #333;
    --text-light:   #666;
    --bg:           #fff;
    --bg-light:     #f5f5f5;
    --border:       #e0e0e0;
    --header-bg:    #fff;
    --footer-bg:    #1a1a1a;
    --nav-height:   70px;
}

/* ── BASIS ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── TOP BAR ── */
.top-bar {
    background: #f8f8f8;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-light);
    padding: 6px 0;
}
.top-bar .inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: flex-end; align-items: center; gap: 20px;
}

/* ── SOCIAL ICONS ── */
.social-icons { display: flex; align-items: center; gap: 10px; margin-left: 4px; }
.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    color: var(--text-light);
    transition: color .2s, transform .2s;
    line-height: 0;
}
.social-icons a:hover { color: var(--primary); transform: scale(1.2); text-decoration: none; }
.social-icons svg { width: 16px; height: 16px; fill: currentColor; }

/* ── HEADER ── */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    position: sticky; top: 0; z-index: 999;
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: var(--nav-height);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* ── NAV ── */
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav ul li a {
    display: block; padding: 8px 14px;
    font-size: 13px; font-weight: 600;
    color: var(--text); text-transform: uppercase; letter-spacing: .5px;
    border-radius: 3px;
    transition: color .2s, background .2s;
}
nav ul li a:hover,
nav ul li.active a {
    color: var(--primary);
    background: rgba(30,115,190,.06);
    text-decoration: none;
}

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px; transition: .3s;
}

/* ── LANGUAGE SWITCHER ── */
#lang-switcher { flex-shrink: 0; margin-left: auto; position: relative; }
.lang-dropdown { position: relative; }
.lang-dropdown-toggle {
    display: flex; align-items: center; gap: 6px;
    background: transparent;
    border: 1.5px solid var(--border); border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px; font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-light);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.lang-dropdown-toggle:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(30,115,190,.05);
}
.lang-dropdown-label  { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); }
.lang-dropdown-current { font-size: 12px; font-weight: 800; color: var(--primary); }
.lang-dropdown-arrow  { font-size: 10px; color: var(--text-light); transition: transform .2s; }
.lang-dropdown-toggle[aria-expanded="true"] .lang-dropdown-arrow { transform: rotate(180deg); }
.lang-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1.5px solid var(--border); border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1); list-style: none; padding: 4px 0;
    min-width: 80px; z-index: 1000;
}
.lang-dropdown-menu--open { display: block; }
.lang-option {
    padding: 8px 16px; font-size: 13px; font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    color: var(--text); cursor: pointer;
    transition: background .15s, color .15s; letter-spacing: .5px;
}
.lang-option:hover       { background: rgba(30,115,190,.08); color: var(--primary); }
.lang-option--active     { color: var(--primary); background: rgba(30,115,190,.06); }

/* CSS-only Dropdown (kein JS erforderlich) */
.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown:focus-within .lang-dropdown-menu { display: block; }
.lang-dropdown:hover .lang-dropdown-arrow,
.lang-dropdown:focus-within .lang-dropdown-arrow { transform: rotate(180deg); }
/* .lang-option ist ein <a>-Element */
.lang-option { display: block; text-decoration: none; }

/* ── PAGE TITLE BANNER (gelb-grüner Gradient) ── */
.page-title-wrap {
    background: linear-gradient(135deg, #C8D400 0%, #a0a800 100%);
    padding: 40px 0;
    text-align: center;
}
.page-title-wrap h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 32px; font-weight: 800;
    color: #fff; letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
    background: var(--footer-bg); color: #ccc;
    font-size: 13px; padding: 28px 0; margin-top: 20px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
footer a { color: #ccc; }
footer a:hover { color: #fff; }

/* ── COOKIE BANNER (DSGVO – 3 Kategorien) ── */
.cookie-banner {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a2e; color: #e0e0e0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.4);
    border-top: 3px solid var(--primary);
    max-height: 90vh; overflow-y: auto;
}
.cookie-banner-inner  { max-width: 1200px; margin: 0 auto; padding: 22px 28px; }
.cookie-banner-title  { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cookie-banner-intro  { font-size: 13px; line-height: 1.7; color: #bbb; margin-bottom: 16px; }
.cookie-banner-intro a { color: #7ab8e8; }

.cookie-categories { border: 1px solid #2e2e4e; border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.cookie-category   { padding: 14px 18px; border-bottom: 1px solid #2e2e4e; background: #1e1e3a; }
.cookie-category:last-child { border-bottom: none; }
.cookie-cat-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 5px;
}
.cookie-toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cookie-cat-name  { font-size: 13px; font-weight: 700; color: #fff; }
.cookie-cat-desc  { font-size: 12px; color: #999; line-height: 1.6; padding-left: 50px; }
.cookie-cat-badge { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }

/* Toggle Switch */
.cookie-toggle { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #444; border-radius: 22px;
    transition: background .25s; cursor: pointer;
}
.toggle-track::before {
    content: ''; position: absolute;
    width: 16px; height: 16px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: transform .25s;
}
.cookie-toggle input:checked + .toggle-track { background: var(--primary); }
.cookie-toggle input:checked + .toggle-track::before { transform: translateX(16px); }
.cookie-toggle.is-locked .toggle-track { background: var(--primary); opacity: .75; cursor: not-allowed; }
.cookie-toggle.is-locked .toggle-track::before { transform: translateX(16px); }

/* Cookie-Buttons */
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn-accept {
    background: var(--primary); color: #111;
    border: none; border-radius: 4px;
    padding: 10px 22px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .2s;
}
.btn-accept:hover { background: var(--primary-dark); color: #fff; }
.btn-save {
    background: transparent; color: var(--primary);
    border: 1.5px solid var(--primary); border-radius: 4px;
    padding: 10px 20px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: .2s;
}
.btn-save:hover { background: rgba(209,221,0,.1); }
.btn-decline {
    background: transparent; color: #aaa;
    border: 1.5px solid #555; border-radius: 4px;
    padding: 10px 20px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: .2s;
}
.btn-decline:hover { border-color: #aaa; color: #fff; }

/* ── PDF MODAL (gemeinsam für index + blog) ── */
.pdf-modal {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.75);
    z-index: 10000; align-items: center; justify-content: center; padding: 20px;
}
.pdf-modal.open { display: flex; }
.pdf-modal-inner {
    background: #fff; border-radius: 6px;
    width: 100%; max-width: 860px; height: 90vh;
    display: flex; flex-direction: column;
    overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.pdf-modal-header {
    background: var(--primary); color: #fff;
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0;
}
.pdf-modal-close {
    background: rgba(255,255,255,.2); border: none; border-radius: 3px;
    color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
    padding: 4px 10px; transition: background .2s;
}
.pdf-modal-close:hover { background: rgba(255,255,255,.35); }
.pdf-modal iframe { width: 100%; flex: 1; border: none; }

/* ── SIDEBAR & WIDGETS (index + blog) ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.widget-title {
    background: var(--primary); color: #fff;
    font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; padding: 12px 18px;
}
.widget-body { padding: 18px; font-size: 14px; line-height: 1.8; }
.widget-body a  { font-weight: 600; color: var(--text); }
.widget-body a:hover { color: var(--primary); text-decoration: none; }
.widget-body p  { margin-bottom: 8px; }
.widget-body p:last-child { margin-bottom: 0; }

/* ── RESPONSIVE NAVIGATION ── */
@media (max-width: 640px) {
    nav { display: none; }
    nav.open {
        display: block; position: absolute;
        top: var(--nav-height); left: 0; right: 0;
        background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.1); padding: 12px 0;
    }
    nav.open ul { flex-direction: column; gap: 0; }
    nav.open ul li a { padding: 12px 24px; border-radius: 0; }
    .hamburger { display: flex; }
}
