/* ===== 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; }

/* ===== 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); }
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px; height: 100%;
}
.logo img { max-height: 48px; width: auto; object-fit: contain; }
.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) {
    html, body { overflow-x: hidden; }
    .mobile-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: 0; width: 300px; height: 100vh;
        background: var(--white); padding: 80px 24px 24px;
        box-shadow: var(--shadow-lg);
        overflow-y: auto; z-index: 999;
        transform: translateX(100%); transition: transform var(--transition);
        visibility: hidden;
    }
    .main-nav.open { transform: translateX(0); visibility: visible; }
    .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 auto; }
.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); }

/* ===== Responsive Video Embed ===== */
.page-content iframe[src*="youtube"],
.page-content iframe[src*="youtu.be"],
.news-body iframe[src*="youtube"],
.news-body iframe[src*="youtu.be"],
.event-body iframe[src*="youtube"],
.event-body iframe[src*="youtu.be"],
.gallery-detail-body iframe[src*="youtube"],
.gallery-detail-body iframe[src*="youtu.be"] {
    max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
    aspect-ratio: 16 / 9; width: 100%; height: auto;
}

/* ===== Related Links ===== */
.related-links {
    margin-top: 48px; padding: 32px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.related-links-title {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.related-links-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.related-link-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; background: #fff; border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none; color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s;
}
.related-link-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.related-link-icon {
    flex-shrink: 0; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light, #f0f4e8); border-radius: 8px;
    color: var(--primary);
}
.related-link-label { flex: 1; font-size: 14px; font-weight: 600; }
.related-link-arrow { color: var(--primary); font-size: 18px; opacity: 0.5; transition: opacity 0.2s; }
.related-link-card:hover .related-link-arrow { opacity: 1; }
@media (max-width: 600px) {
    .related-links-grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-bg); color: rgba(255,255,255,0.7);
    padding: 48px 0 0; margin-top: 48px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-grid > .footer-col:first-child { flex: 1.5; min-width: 220px; }
.footer-grid > .footer-col { flex: 1; min-width: 150px; }
.footer-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.footer-logo { max-height: 56px; width: auto; object-fit: contain; }
.footer-wappen { max-height: 50px; }
.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: 16px; display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color var(--transition); display: inline-flex; }
.social-facebook:hover { color: #1877f2 !important; }
.social-whatsapp:hover { color: #25d366 !important; }
.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 
/* Lightbox Share Dropdown */
.lb-share-wrap { position: relative; }
.lb-share-dropdown {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 220px; z-index: 10; overflow: hidden;
}
.lb-share-dropdown.active { display: block; }
.lb-share-dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    color: #333; text-decoration: none; font-size: 14px; transition: background 0.15s;
}
.lb-share-dropdown a:hover { background: #f3f4f6; }
.lb-nav { display: none; }

/* Lightbox Share Dropdown */
.lb-share-wrap { position: relative; }
.lb-share-dropdown {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 220px; z-index: 10; overflow: hidden;
}
.lb-share-dropdown.active { display: block; }
.lb-share-dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    color: #333; text-decoration: none; font-size: 14px; transition: background 0.15s;
}
.lb-share-dropdown a:hover { background: #f3f4f6; }
.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; }
}

/* Inline content images - clickable for lightbox */
a.content-inline-img { display: block; width: fit-content; cursor: pointer; position: relative; aspect-ratio: auto; overflow: visible; margin: 1rem auto; }
a.content-inline-img img { display: block; max-width: 100%; height: auto; border-radius: 8px; width: auto; object-fit: contain; }
a.content-inline-img .gallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--transition); color: var(--white);
}
a.content-inline-img:hover .gallery-overlay { opacity: 1; }

/* Share buttons */
.share-bar { display: flex; align-items: center; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.share-label { font-size: 14px; font-weight: 600; color: #6b7280; margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; text-decoration: none; background: #f3f4f6; position: relative; }
.share-btn:hover { transform: scale(1.12); }
.share-btn svg { display: block; }
.share-facebook { color: #1877f2; }
.share-facebook:hover { background: #1877f2; color: #fff; }
.share-whatsapp { color: #25d366; }
.share-whatsapp:hover { background: #25d366; color: #fff; }
.share-email { color: #ea580c; }
.share-email:hover { background: #ea580c; color: #fff; }
.share-copy { color: #6366f1; }
.share-copy:hover { background: #6366f1; color: #fff; }
.share-copy.copied { background: #16a34a; color: #fff; }
.share-copy.copied::after { content: 'Kopiert!'; position: absolute; font-size: 11px; top: -28px; background: #16a34a; color: #fff; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* === Events === */
.events-widget { margin-top: 1rem; }
.events-section-title {
    color: var(--primary-dark); font-size: 1.3rem; margin: 0 0 16px;
    padding-bottom: 8px; border-bottom: 2px solid var(--primary-light);
}
.events-past-title { margin-top: 2.5rem; color: var(--text-muted); border-bottom-color: var(--border); }

.events-list { display: flex; flex-direction: column; gap: 16px; }

.event-card {
    display: flex; align-items: flex-start; gap: 20px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px;
    transition: all var(--transition); overflow: visible;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.event-card-link { position: absolute; inset: 0; z-index: 0; text-decoration: none; }
.event-card a { border-bottom: none; }
.event-card a:hover { border-bottom: none; }
.event-card img { margin: 0; max-height: none; }
.event-card .event-flyer.gallery-item { aspect-ratio: auto; overflow: visible; height: auto; }
.event-card .event-flyer.gallery-item img { height: auto; object-fit: contain; }
.event-card-upcoming { border-left: 4px solid var(--primary); }

.event-date-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 64px; width: 64px; height: 72px;
    background: var(--primary); color: var(--white);
    border-radius: 10px; flex-shrink: 0;
    text-align: center; line-height: 1;
}
.events-past .event-date-badge { background: var(--text-muted); }
.event-day { font-size: 1.6rem; font-weight: 900; display: block; }
.event-month { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 2px; }
.event-year { font-size: 0.65rem; font-weight: 400; opacity: 0.8; display: block; }

.event-info { flex: 1; min-width: 0; }
.event-title { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; }
.event-title a { color: var(--dark); text-decoration: none; }
.event-title a:hover { color: var(--primary); }
.event-meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 6px;
}
.event-meta svg { vertical-align: -2px; margin-right: 2px; }
.event-excerpt { font-size: 14px; color: var(--text-light); margin: 6px 0 0; line-height: 1.5; }

.event-flyer {
    flex-shrink: 0; display: block; width: 120px; align-self: flex-start;
    transition: all var(--transition); text-decoration: none;
    position: relative; z-index: 1;
}
.event-flyer:hover { transform: scale(1.02); }
.event-flyer img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.event-flyer img:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.event-flyer-pdf {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 90px; height: 120px; background: var(--bg-light);
    color: var(--primary); font-size: 12px; font-weight: 700;
}
.event-flyer-pdf svg { margin-bottom: 4px; }

.events-pagination {
    margin-top: 24px; display: flex; gap: 12px; justify-content: center;
}

/* Event detail */
.event-detail .back-link {
    display: inline-block; margin-bottom: 16px; font-size: 14px;
    font-weight: 600; color: var(--primary);
}
.event-detail .back-link:hover { color: var(--primary-dark); }
.event-detail h1 { margin-bottom: 12px; }
.event-detail-meta {
    display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
    font-size: 15px; color: var(--text-light);
}
.event-detail-meta svg { vertical-align: -3px; margin-right: 4px; color: var(--primary); }
.event-detail-flyer { margin-bottom: 24px; }
.event-detail-flyer .gallery-item { display: inline-block; aspect-ratio: auto; overflow: visible; }
.event-detail-flyer .gallery-item img { height: auto; object-fit: contain; }
.event-flyer-img {
    max-width: 400px; width: 100%; border-radius: var(--radius);
    box-shadow: var(--shadow); cursor: pointer;
}
.event-body { line-height: 1.8; }
.event-detail-date.calendar-add { color: var(--primary); font-weight: 600; cursor: pointer; border-bottom: 1px solid transparent; }
.event-detail-date.calendar-add:hover { border-bottom-color: var(--primary); }
.event-detail-location { color: var(--primary); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.event-detail-location:hover { border-bottom-color: var(--primary); }
.event-detail-location:hover { color: var(--primary); }
.calendar-dropdown {
    display: none; position: absolute; left: 0; top: 100%; margin-top: 4px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 220px; z-index: 50; padding: 6px 0;
}
.calendar-dropdown.show { display: block; }
.calendar-dropdown a {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    color: var(--text); font-size: 14px; text-decoration: none; border-bottom: none;
}
.calendar-dropdown a:hover { background: var(--bg-light); color: var(--primary); border-bottom: none; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: 2px solid var(--primary); color: var(--primary);
    background: transparent; border-radius: var(--radius); font-size: 14px;
    font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.event-body h3 { color: var(--primary-dark); margin-top: 1.5rem; }
.event-body p { margin-bottom: 1rem; }

@media (max-width: 600px) {
    .event-card { flex-wrap: wrap; gap: 12px; }
    .event-flyer { width: 70px; }
    .event-date-badge { min-width: 52px; width: 52px; height: 60px; }
    .event-day { font-size: 1.3rem; }
    .event-detail-meta { flex-direction: column; gap: 8px; }
    .event-flyer-img { max-width: 100%; }
}

/* ===== Gallery Widget ===== */
.galleries-widget { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 1rem; }
.gallery-card {
    display: block; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit;
    transition: all var(--transition);
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover .gallery-card-image img { transform: scale(1.05); }
.gallery-card-count {
    position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7);
    color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px;
    border-radius: 20px;
}
.gallery-card-info { padding: 16px; }
.gallery-card-title { margin: 0 0 6px; font-size: 1.1rem; color: var(--dark); }
.gallery-card-excerpt { margin: 0; font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* ===== Gallery Detail ===== */
.gallery-detail .back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--primary); }
.gallery-detail .back-link:hover { color: var(--primary-dark); }
.gallery-detail h1 { margin-bottom: 12px; }
.gallery-detail-excerpt { font-size: 16px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.gallery-detail-body { margin-bottom: 24px; line-height: 1.8; }
.gallery-detail-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px;
}
.gallery-detail-item {
    aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
    cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: all 0.3s;
}
.gallery-detail-item:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.gallery-detail-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 600px) {
    .galleries-widget { grid-template-columns: 1fr; }
    .gallery-detail-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
}

/* Calendar Widget */
.cal-widget { margin-bottom: 32px; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-size: 1.2rem; font-weight: 700; color: #1a1a1a; }
.cal-nav { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; color: #374151; text-decoration: none; font-size: 1.3rem; font-weight: 700; transition: background .2s; }
.cal-nav:hover { background: #e5e7eb; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-table th { padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; }
.cal-table td { padding: 4px; text-align: left; vertical-align: top; height: 64px; border: 1px solid #f3f4f6; }
.cal-empty { background: #fafafa; }
.cal-day { cursor: default; transition: background .15s; position: relative; }
.cal-day:hover { background: #f9fafb; }
.cal-daynum { display: block; font-size: 12px; font-weight: 500; color: #374151; margin-bottom: 1px; text-align: center; }
.cal-today { background: #f0f9ff; }
.cal-today .cal-daynum { color: #0c7cd5; font-weight: 700; }
.cal-has-event { cursor: pointer; }
.cal-has-event .cal-daynum { font-weight: 700; }
.cal-dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
.cal-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: #0c7cd5; transition: transform .15s; }
.cal-dot:hover { transform: scale(1.4); }
.cal-events-list { margin-top: 16px; border-top: 1px solid #e5e7eb; padding-top: 12px; }
.cal-event-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; transition: background .15s; }
.cal-event-item:hover { background: #f3f4f6; }
.cal-event-date { font-size: 13px; font-weight: 700; color: #0c7cd5; min-width: 42px; }
.cal-event-title { flex: 1; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.cal-event-time { font-size: 12px; color: #9ca3af; white-space: nowrap; }
@media (max-width: 600px) {
    .cal-widget { padding: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cal-table { min-width: 320px; }
    .cal-table td { height: 40px; padding: 2px; }
    .cal-table th { padding: 4px 2px; font-size: 10px; }
    .cal-daynum { font-size: 11px; padding: 1px 2px; }
    .cal-event-item { padding: 8px; gap: 8px; }
    .cal-event-title { font-size: 13px; }
    .cal-event-time { font-size: 11px; }
}

/* Calendar: closed days */
.cal-closed { background: #fef2f2 !important; }
.cal-closed .cal-daynum { color: #ef4444 !important; }

/* Outlook-style closed day bars */
.cal-table td { position: relative; overflow: visible; }
.cal-closed-bar {
    position: absolute; left: 0; right: 0; top: 22px; z-index: 2;
    height: 16px; line-height: 16px;
    background: #fecaca; color: #991b1b;
    font-size: 9px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none;
}
.cal-closed-bar.cal-bar-start { border-radius: 3px 0 0 3px; padding-left: 3px; }
.cal-closed-bar.cal-bar-end { border-radius: 0 3px 3px 0; }
.cal-closed-bar.cal-bar-start.cal-bar-end { border-radius: 3px; }
.cal-closed-school_holiday { background: #fed7aa; color: #9a3412; }
.cal-closed-custom { background: #e9d5ff; color: #6b21a8; }
.cal-bar-text { pointer-events: none; }
/* Calendar: recurring event dot */
.cal-dot-recurring { background: #8b5cf6 !important; }
/* Calendar: event list dot */
.cal-event-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0c7cd5; flex-shrink: 0; }
.cal-event-dot.cal-dot-recurring { background: #8b5cf6; }

/* Push dots below closed-day bar when both present */
.cal-closed .cal-dots { margin-top: 18px; }

/* Recurring event badge */
.event-recurrence-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    background: #ede9fe;
    color: #6d28d9;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}

/* Public calendar inline event previews */
.cal-events-public { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.cal-ev-pub {
    display: block; font-size: 9px; line-height: 1.2; padding: 1px 3px;
    border-radius: 3px; background: #dbeafe; color: #1e40af;
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s;
}
.cal-ev-pub:hover { background: #bfdbfe; }
.cal-ev-pub .cal-ev-time { font-weight: 700; font-size: 8px; }
.cal-ev-pub.cal-ev-recurring { background: #ede9fe; color: #5b21b6; }
.cal-ev-pub.cal-ev-recurring:hover { background: #ddd6fe; }
/* Calendar subscribe hint */
.cal-subscribe {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-top: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-light);
}
.cal-subscribe svg { flex-shrink: 0; color: var(--primary); }
.cal-subscribe-link {
    font-weight: 700;
    color: var(--primary);
    background: none; border: none; cursor: pointer; font-size: inherit; font-family: inherit; padding: 0;
}
.cal-subscribe-link:hover { color: var(--primary-dark); text-decoration: underline; }
.cal-sub-info {
    display: none; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px; margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-size: 14px; line-height: 1.6;
}
.cal-sub-info.show { display: block; }
.cal-sub-info p { margin: 0 0 12px; color: var(--text); }
.cal-sub-steps { margin-bottom: 14px; }
.cal-sub-step { margin-bottom: 6px; color: var(--text-light); }
.cal-sub-url-row {
    display: flex; gap: 6px; margin: 6px 0 10px;
}
.cal-sub-url {
    flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-family: monospace; background: var(--bg-light); color: var(--text);
    min-width: 0;
}
.cal-sub-copy {
    padding: 7px 14px; background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; cursor: pointer;
    white-space: nowrap; transition: background 0.15s;
}
.cal-sub-copy:hover { background: var(--primary-dark); }
.cal-sub-apps {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.cal-sub-app {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.cal-sub-app:hover { background: var(--bg-light); border-color: var(--primary); color: var(--primary); }
.cal-sub-app svg { flex-shrink: 0; }
@media (max-width: 500px) {
    .cal-sub-url-row { flex-direction: column; }
    .cal-sub-apps { flex-direction: column; }
    .cal-sub-app { justify-content: center; }
}

/* Internal event styles */
.cal-ev-pub.cal-ev-internal { background: #fef3c7; color: #92400e; }
.cal-ev-pub.cal-ev-internal:hover { background: #fde68a; }
.cal-ev-pub.cal-ev-recurring.cal-ev-internal { border-left: 3px solid #8b5cf6; }
.cal-ev-intern-badge {
    display: inline-block;
    background: #92400e;
    color: #fef3c7;
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0 3px;
    border-radius: 2px;
    vertical-align: middle;
    line-height: 1.4;
}
.cal-event-item-internal .cal-event-title { color: #92400e; }
.cal-dot-internal { background: #f59e0b !important; }
.cal-event-item .cal-ev-intern-badge {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
}
.event-intern-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
}
@media (max-width: 600px) {
    .cal-ev-pub { font-size: 7px; padding: 1px 2px; }
    .cal-ev-pub .cal-ev-time { display: none; }
    .cal-ev-intern-badge { display: none; }
}

/* ===== Event Eyecatcher ===== */
.event-eyecatcher {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    position: relative;
    z-index: 90;
    transition: filter 0.2s;
}
.event-eyecatcher:hover { filter: brightness(1.12); color: #fff; }
.event-eyecatcher-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.event-eyecatcher-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.event-eyecatcher-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.event-eyecatcher-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.event-eyecatcher-title {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-eyecatcher-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.event-eyecatcher-date {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.event-eyecatcher-location {
    font-size: 13px;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .event-eyecatcher-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 20px;
    }
    .event-eyecatcher-meta {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===== Klasseneinteilung Widget ===== */
.klassen-widget { margin: 1.5rem 0; }
.klassen-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.klassen-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}
.klassen-age {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
    min-width: 90px;
}
.klassen-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ===== Mailto Modal ===== */
.mailto-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.mailto-modal-overlay.active { display: flex; }
.mailto-modal {
    background: #fff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.mailto-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.mailto-modal-close:hover { color: var(--text); }
.mailto-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--dark);
}
.mailto-modal-title svg { color: var(--primary); flex-shrink: 0; }
.mailto-modal-recipient {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}
.mailto-modal-recipient strong { color: var(--primary-dark); }
.mailto-field {
    margin-bottom: 16px;
}
.mailto-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.mailto-optional { font-weight: 400; color: var(--text-muted); }
.mailto-field input[type="text"],
.mailto-field input[type="email"],
.mailto-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    transition: border-color var(--transition);
}
.mailto-field input:focus,
.mailto-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(90,121,30,0.1);
}
.mailto-field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    min-height: 16px;
}
.mailto-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.mailto-dropzone:hover,
.mailto-dropzone.dragover {
    border-color: var(--primary);
    background: var(--bg-light);
}
.mailto-dropzone svg { color: var(--primary-light); }
.mailto-dropzone span { font-size: 14px; }
.mailto-dropzone-hint { font-size: 11px; color: var(--text-muted); }
.mailto-file-list { margin-top: 8px; }
.mailto-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 13px;
}
.mailto-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}
.mailto-file-size { color: var(--text-muted); flex-shrink: 0; }
.mailto-file-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.mailto-file-remove:hover { color: #991b1b; }
.mailto-actions { margin-top: 20px; }
.mailto-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    width: 100%;
    justify-content: center;
}
.mailto-submit:hover { background: var(--primary-dark); }
.mailto-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.mailto-status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}
.mailto-success { color: var(--primary); font-weight: 600; }
.mailto-error { color: #dc2626; }

@media (max-width: 600px) {
    .mailto-modal { padding: 20px; }
}

/* Ergebnisse Grid */
.ergebnisse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.ergebnis-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.ergebnis-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.ergebnis-card a {
    display: block;
    text-decoration: none;
    color: var(--text);
}
.ergebnis-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}
.ergebnis-card span {
    display: block;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}


/* Home Hero Image + Info Banner + Map */

.home-info-banner {
    text-align: center;
    padding: 48px 20px;
    background: var(--primary);
    color: #fff;
    width: 100%;
}
.home-info-banner h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.home-info-banner p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    margin: 8px 0;
    opacity: 0.95;
}
.home-info-banner svg { flex-shrink: 0; }
.home-map {
    line-height: 0;
    width: 100%;
}
.home-map iframe {
    width: 100%;
    height: 600px;
    border: 0;
}
@media (max-width: 600px) {
    .home-info-banner { padding: 32px 16px; }

    .home-info-banner h2 { font-size: 20px; }
    .home-info-banner p { font-size: 14px; flex-wrap: wrap; }
    .home-map iframe { height: 400px; }
}
.footer-links-legal { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); }

.footer-legal-links { margin-top: 12px; font-size: 13px; }
.footer-legal-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: #fff; }
