/* ===== SSV Guntramsdorf - Modern Theme ===== */
:root {
    --primary: #5A791E;
    --primary-dark: #456014;
    --primary-light: #719430;
    --accent: #FFBC7D;
    --bg-light: #EAF2DF;
    --bg-body: #f8f9f5;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --white: #fff;
    --dark: #1a1a1a;
    --footer-bg: #2d2d2d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
    --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Dev Header ===== */
#dev-header {
    position: sticky; top: 0; z-index: 10000;
    background: #18181b; border-bottom: 2px solid #8B5CF6;
    padding: 6px 20px; display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: #d4d4d8;
}
.dev-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.dev-brand a { color: inherit; text-decoration: none; }
.dev-brand .dot { color: #8B5CF6; }
.dev-sep { color: #8B5CF6; font-size: 11px; }
.dev-badge { color: #f59e0b; font-weight: 600; font-size: 11px; letter-spacing: 0.5px; }
.dev-project { color: #a1a1aa; font-size: 12px; }
.dev-admin-link { margin-left: auto; color: #8B5CF6; font-size: 12px; font-weight: 600; }
.dev-admin-link:hover { color: #a78bfa; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: var(--header-h); transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
body.has-dev #dev-header + .site-header { top: 34px; }
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo img { height: 48px; width: auto; }
.nav-list { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-link {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 16px; font-size: 14px; font-weight: 600;
    color: var(--text); border-radius: var(--radius-sm);
    letter-spacing: 0.5px; text-transform: uppercase;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg-light); }
.dropdown-arrow { transition: transform var(--transition); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition);
}
.has-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-item {
    display: block; padding: 8px 16px; font-size: 13px; font-weight: 600;
    color: var(--text); border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
}
.dropdown-item:hover, .dropdown-item.active { background: var(--bg-light); color: var(--primary); }

/* Mobile Nav */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative; z-index: 1001;
}
.mobile-toggle span {
    display: block; width: 100%; height: 2px; background: var(--text);
    position: absolute; left: 0; transition: all var(--transition);
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

@media (max-width: 960px) {
    .mobile-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--white); padding: 80px 24px 24px;
        box-shadow: var(--shadow-lg); transition: right var(--transition);
        overflow-y: auto; z-index: 999;
    }
    .main-nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { padding: 12px 16px; width: 100%; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none; padding: 0 0 0 16px;
        display: none;
    }
    .has-dropdown.open .dropdown-menu { display: block; }
    .mobile-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }
}

/* ===== Hero Slideshow ===== */
.hero-slideshow {
    position: relative; height: 70vh; min-height: 480px; overflow: hidden;
}
.slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
    animation: kenBurns 20s ease infinite;
}
.slide.active { opacity: 1; }
@keyframes kenBurns { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.slide-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}
.hero-content {
    position: absolute; bottom: 15%; left: 0; right: 0; z-index: 2;
    text-align: center; color: var(--white); padding: 0 24px;
}
.hero-content h1 {
    color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 0 2px 16px rgba(0,0,0,0.4); margin-bottom: 8px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 300;
    opacity: 0.9; text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.slide-dots {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 10px;
}
.slide-dots .dot {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7);
    background: transparent; cursor: pointer; transition: all var(--transition);
}
.slide-dots .dot.active { background: var(--white); border-color: var(--white); }

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 48px 0 40px; margin-bottom: 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ===== Page Hero Slideshow ===== */
.page-hero-slideshow {
    position: relative; height: 45vh; min-height: 320px; overflow: hidden;
}
.page-hero-slideshow .slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
    animation: kenBurns 20s ease infinite;
}
.page-hero-slideshow .slide.active { opacity: 1; }
.page-hero-slideshow.static .slide { animation: none; }
.page-hero-slideshow .slide-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}
.page-hero-slideshow .hero-content {
    position: absolute; bottom: 15%; left: 0; right: 0; z-index: 2;
    text-align: center; padding: 0 24px;
}
.page-hero-slideshow .hero-content h1 {
    color: var(--white); font-size: clamp(1.6rem, 4vw, 2.6rem);
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.page-hero-slideshow .slide-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 8px;
}
.page-hero-slideshow .slide-dots .dot {
    width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7);
    background: transparent; cursor: pointer; transition: all var(--transition);
}
.page-hero-slideshow .slide-dots .dot.active { background: var(--white); border-color: var(--white); }

/* ===== Main Content ===== */
.site-main { padding: 48px 0 64px; }
.page-content {
    font-size: 16px; line-height: 1.8;
}
.page-content h2 { color: var(--primary); margin-top: 2rem; }
.page-content h3 { color: var(--primary-dark); margin-top: 1.5rem; }
.page-content h4 { color: var(--text); margin-top: 1.2rem; font-size: 1.1rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.page-content li { margin-bottom: 0.4rem; }
.page-content a { color: var(--primary); font-weight: 600; border-bottom: 1px solid transparent; }
.page-content a:hover { border-bottom-color: var(--primary); }
.page-content img { border-radius: var(--radius); margin: 1rem 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.page-content th, .page-content td { padding: 10px 16px; text-align: left; border-bottom: 1px solid #e5e5e5; }
.page-content th { background: var(--bg-light); font-weight: 700; color: var(--primary-dark); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; font-size: 14px; font-weight: 700;
    border-radius: var(--radius-sm); border: none; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: all var(--transition); text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ===== Gallery ===== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px; margin-top: 2rem;
}
.gallery-item {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
    border-radius: var(--radius); cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--transition); color: var(--white);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== Contact Form ===== */
.contact-form { max-width: 700px; margin-top: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; font-family: var(--font); font-size: 15px;
    border: 2px solid #e5e5e5; border-radius: var(--radius-sm);
    transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ===== Alerts ===== */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 24px;
    font-weight: 600; font-size: 14px;
}
.alert-success { background: var(--bg-light); color: var(--primary-dark); border: 1px solid var(--primary-light); }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== Map ===== */
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-bg); color: rgba(255,255,255,0.7);
    padding: 48px 0 0; margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 12px; }
.footer-name { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-address { font-size: 14px; line-height: 1.6; }
.footer-zvr { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 8px; }
.site-footer h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-social { margin-top: 20px; }
.footer-social a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-social a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0; margin-top: 40px; text-align: center; font-size: 13px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ===== 404 ===== */
.not-found { text-align: center; padding: 80px 0; }
.not-found h2 { font-size: 6rem; color: var(--primary-light); opacity: 0.3; }
.not-found p { font-size: 1.2rem; color: var(--text-light); margin: 16px 0 32px; }

/* ===== Lightbox ===== */
.ssv-lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.94); z-index: 100000; flex-direction: column;
}
.ssv-lightbox.active { display: flex; }
.lb-header {
    position: absolute; top: 0; left: 0; right: 0; height: 50px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; color: #999; font-size: 13px;
    background: rgba(0,0,0,0.5); z-index: 4;
}
.lb-counter { min-width: 50px; }
.lb-title { flex: 1; text-align: center; color: #ccc; }
.lb-actions { display: flex; gap: 4px; }
.lb-actions button {
    background: none; border: none; color: #999; cursor: pointer;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 4px; transition: color var(--transition); padding: 0;
}
.lb-actions button:hover { color: #fff; }
.lb-body {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 56px 80px 8px; position: relative; overflow: hidden;
}
.lb-body img {
    max-width: 100%; max-height: calc(100vh - 70px);
    object-fit: contain; user-select: none; cursor: zoom-in;
}
.ssv-lightbox.zoomed .lb-body { cursor: grab; padding: 0; }
.ssv-lightbox.zoomed .lb-body.dragging { cursor: grabbing; }
.ssv-lightbox.zoomed .lb-body img {
    max-width: none; max-height: none; position: absolute; cursor: grab;
}
.ssv-lightbox.zoomed .lb-body.dragging img { cursor: grabbing; }
.ssv-lightbox.zoomed .lb-nav { display: none; }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.7);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color var(--transition); z-index: 3; padding: 0;
}
.lb-nav:hover { color: #fff; }
.lb-nav svg { width: 48px; height: 48px; }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }

/* ===== Cookie Consent ===== */
.cookie-consent {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 99999; background: var(--white);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary);
    padding: 24px;
    animation: slideUp 0.4s ease;
}
.cookie-consent.show { display: block; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.cookie-text a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--primary); color: var(--white);
    padding: 10px 24px; font-size: 14px; font-weight: 700;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition);
}
.btn-cookie-accept:hover { background: var(--primary-dark); }
.btn-cookie-decline {
    background: transparent; color: var(--text-light);
    padding: 10px 24px; font-size: 14px; font-weight: 600;
    border: 2px solid #e5e5e5; border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition);
}
.btn-cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }
@media (max-width: 600px) {
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; }
}

/* ===== News ===== */
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px; margin-top: 2rem;
}
.news-card {
    display: flex; flex-direction: column; background: var(--white);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: all var(--transition); text-decoration: none; color: inherit;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.news-card-img {
    height: 200px; background-size: cover; background-position: center;
    background-color: var(--bg-light);
}
.news-card-noimg {
    display: flex; align-items: center; justify-content: center;
}
.news-card-noimg svg { width: 48px; height: 48px; color: var(--primary-light); opacity: 0.4; }
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card-body time {
    font-size: 13px; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.news-card-body h3 {
    font-size: 1.15rem; margin: 8px 0; color: var(--dark);
    line-height: 1.4;
}
.news-card-body p {
    font-size: 14px; color: var(--text-light); line-height: 1.6;
    flex: 1; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-readmore {
    display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700;
    color: var(--primary);
}
.news-card:hover .news-readmore { color: var(--primary-dark); }

/* News detail */
.news-detail .back-link {
    display: inline-block; margin-bottom: 16px; font-size: 14px;
    font-weight: 600; color: var(--primary);
}
.news-detail .back-link:hover { color: var(--primary-dark); }
.news-detail h1 { margin-bottom: 8px; }
.news-meta { margin-bottom: 24px; }
.news-meta time {
    font-size: 14px; color: var(--text-muted); font-weight: 600;
}
.news-hero-img {
    width: 100%; max-height: 500px; object-fit: cover;
    border-radius: var(--radius); margin-bottom: 24px;
}
.news-body { line-height: 1.8; }
.news-body h3 { color: var(--primary-dark); margin-top: 1.5rem; }
.news-body p { margin-bottom: 1rem; }

.news-gallery { margin-top: 2.5rem; }
.news-gallery h3 { color: var(--primary-dark); margin-bottom: 1rem; font-size: 1.2rem; }
.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.news-gallery-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.news-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
}

@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
}
