/* SV Niederwangen Modern V3 – Options-Layer. Lädt nach V2 template.css + user.css. */
:root{--v3-font-body:system-ui,sans-serif;--v3-font-heading:system-ui,sans-serif;--v3-font-menu:system-ui,sans-serif;--v3-body-size:16px;--v3-heading-weight:800;--v3-header-bg:#163828;--v3-header-text:#fff;--v3-header-height:220px;--v3-logo-size:180px;--v3-brand-size:34px;--v3-subtitle-size:16px;--v3-menu-bg:#163828;--v3-menu-text:#fff;--v3-menu-hover:#f6e3a8;--v3-menu-size:18px;--v3-menu-height:64px;--v3-hero-height:360px;--v3-hero-overlay:#163828;--v3-hero-overlay-strength:68%;--v3-hero-title:#fff;--v3-hero-text:#fff;--v3-hero-title-size:48px;--v3-hero-text-size:22px;--v3-hero-button-bg:#c8a24a;--v3-hero-button-text:#201a0e;--v3-page-bg:#f6f1e7;--v3-text:#2a241b;--v3-muted:#6b6b6b;--v3-heading:#163828;--v3-accent:#c8a24a;--v3-card-bg:#fffaf2;--v3-card-text:#2a241b;--v3-radius:16px;--v3-shadow:0 14px 34px rgba(0,0,0,.12);--v3-event-bg:#fbf8f2;--v3-event-link:#184c3a;--v3-gallery-bg:#fffaf2;--v3-gallery-title:#163828;--v3-gallery-image-height:220px;--v3-content-bg:#fffaf2;--v3-content-text:#2a241b;--v3-link:#1f4d36;--v3-content-radius:16px;--v3-footer-bg:#122d20;--v3-footer-text:#e9f1ed;--v3-footer-link:#f0d78a;--v3-footer-size:15px;--v3-container:1240px;--v3-section-space:48px;--v3-card-gap:22px;--v3-lightbox-bg:#000;--v3-lightbox-opacity:88%}

body.site{font-family:var(--v3-font-body)!important;font-size:var(--v3-body-size)!important;color:var(--v3-text)!important;background:var(--v3-page-bg)!important;padding-top:calc(var(--v3-header-height) + var(--v3-menu-height))!important}
.container{width:min(calc(100% - 2rem),var(--v3-container))!important}
.section{padding:clamp(24px,var(--v3-section-space),var(--v3-section-space)) 0!important}
a{color:var(--v3-link)}

.site-header{height:var(--v3-header-height)!important;min-height:var(--v3-header-height)!important;background-color:var(--v3-header-bg)!important;color:var(--v3-header-text)!important}
.navbar{height:var(--v3-header-height)!important;min-height:var(--v3-header-height)!important}
.brand__logo{width:var(--v3-logo-size)!important;height:var(--v3-logo-size)!important}
.brand__title{font-family:var(--v3-font-heading)!important;font-size:var(--v3-brand-size)!important;font-weight:var(--v3-heading-weight)!important;color:var(--v3-header-text)!important}
.brand__subtitle{font-size:var(--v3-subtitle-size)!important;color:var(--v3-header-text)!important}

.hero-menu{top:var(--v3-header-height)!important;background:var(--v3-menu-bg)!important;min-height:var(--v3-menu-height)!important}
.menu-horizontal>.mod-menu,.menu-horizontal>ul{min-height:var(--v3-menu-height)!important;gap:clamp(14px,2vw,32px)!important}
.menu-horizontal a{font-family:var(--v3-font-menu)!important;font-size:var(--v3-menu-size)!important;color:var(--v3-menu-text)!important}
.menu-horizontal a:hover,.menu-horizontal a:focus-visible,.menu-horizontal .current>a,.menu-horizontal .active>a{color:var(--v3-menu-hover)!important}
.menu-horizontal li>ul,.menu-horizontal .mod-menu__sub{background:var(--v3-menu-bg)!important}

.hero{min-height:var(--v3-hero-height)!important}
.hero-content{min-height:var(--v3-hero-height)!important}
.hero::after{background:linear-gradient(90deg,color-mix(in srgb,var(--v3-hero-overlay) var(--v3-hero-overlay-strength),transparent) 0%,color-mix(in srgb,var(--v3-hero-overlay) calc(var(--v3-hero-overlay-strength) * .75),transparent) 40%,transparent 78%)!important}
.hero-content h1,.hero-content h1 *{font-family:var(--v3-font-heading)!important;font-size:clamp(30px,5vw,var(--v3-hero-title-size))!important;font-weight:var(--v3-heading-weight)!important;color:var(--v3-hero-title)!important}
.hero-content p,.hero-content p *{font-size:clamp(15px,2vw,var(--v3-hero-text-size))!important;color:var(--v3-hero-text)!important}
.hero-button,.hero-cta a,.hero-cta .btn,.hero-cta button{background:var(--v3-hero-button-bg)!important;color:var(--v3-hero-button-text)!important}

.home-grid-unified{gap:var(--v3-card-gap)!important}
.home-block h2,.component-section h1,.component-section h2,.component-section h3{font-family:var(--v3-font-heading)!important;font-weight:var(--v3-heading-weight)!important;color:var(--v3-heading)!important}
.card,.tile-card,.list-card,.contact-card{background:var(--v3-card-bg)!important;color:var(--v3-card-text)!important;border-radius:var(--v3-radius)!important;box-shadow:var(--v3-shadow)!important}
.mod_events_latest_table tr{background:var(--v3-event-bg)!important;border-radius:var(--v3-radius)!important}
.mod_events_latest_table td:first-child,.mod_events_latest_table td:nth-child(2){color:var(--v3-muted)!important}
.mod_events_latest_table td:last-child a{color:var(--v3-event-link)!important}
.mod_events_latest_table td:last-child a:hover{color:var(--v3-accent)!important}

.pg-cv-box,.pg-csv-box{background:var(--v3-gallery-bg)!important;border-radius:var(--v3-radius)!important;box-shadow:var(--v3-shadow)!important}
.pg-cv-box img,.pg-csv-box img,.pg-box-image img{height:var(--v3-gallery-image-height)!important;object-fit:cover!important}
.pg-cv-name{background:var(--v3-gallery-bg)!important;color:var(--v3-gallery-title)!important}
.pg-cv-name a{color:var(--v3-gallery-title)!important}.pg-cv-name a:hover{color:var(--v3-accent)!important}

.component-section>.container{background:var(--v3-content-bg)!important;color:var(--v3-content-text)!important;border-radius:var(--v3-content-radius)!important;padding:clamp(18px,3vw,36px)!important;box-shadow:var(--v3-shadow)!important}
.component-section a{color:var(--v3-link)!important}
.site-footer,footer{background:var(--v3-footer-bg)!important;color:var(--v3-footer-text)!important;font-size:var(--v3-footer-size)!important}
.site-footer a,footer a{color:var(--v3-footer-link)!important}
.footer-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--v3-card-gap)!important}

/* Voll funktionsfähige Lightbox */
.svn-lightbox{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:clamp(14px,3vw,34px);background:color-mix(in srgb,var(--v3-lightbox-bg) var(--v3-lightbox-opacity),transparent);backdrop-filter:blur(3px)}
.svn-lightbox.is-open{display:flex}.svn-lightbox__figure{margin:0;max-width:min(94vw,1600px);max-height:92vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.svn-lightbox__image{display:block;max-width:92vw;max-height:84vh;width:auto;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.45);user-select:none;-webkit-user-drag:none;transition:transform .2s ease;cursor:zoom-in}.svn-lightbox__image.is-zoomed{transform:scale(1.65);cursor:zoom-out}.svn-lightbox__caption{max-width:min(90vw,1100px);color:#fff;text-align:center;font-size:.95rem;line-height:1.35;text-shadow:0 2px 8px rgba(0,0,0,.65)}
.svn-lightbox__close,.svn-lightbox__prev,.svn-lightbox__next{position:absolute;z-index:2;border:1px solid rgba(255,255,255,.24);background:rgba(0,0,0,.42);color:#fff;width:50px;height:50px;border-radius:999px;display:grid;place-items:center;cursor:pointer;font:inherit;font-size:28px;line-height:1;transition:transform .16s ease,background .16s ease}.svn-lightbox__close:hover,.svn-lightbox__prev:hover,.svn-lightbox__next:hover{background:rgba(255,255,255,.16);transform:scale(1.05)}.svn-lightbox__close{top:18px;right:20px;font-size:38px}.svn-lightbox__prev{left:18px;top:50%;transform:translateY(-50%)}.svn-lightbox__next{right:18px;top:50%;transform:translateY(-50%)}.svn-lightbox__prev:hover,.svn-lightbox__next:hover{transform:translateY(-50%) scale(1.05)}body.svn-lightbox-open{overflow:hidden}

@media(max-width:900px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){body.site{padding-top:136px!important}.site-header{height:136px!important;min-height:136px!important}.navbar{height:136px!important;min-height:136px!important}.brand__logo{width:min(var(--v3-logo-size),72px)!important;height:min(var(--v3-logo-size),72px)!important}.brand__title{font-size:min(var(--v3-brand-size),22px)!important}.brand__subtitle{font-size:min(var(--v3-subtitle-size),14px)!important}.hero-menu{top:136px!important}.hero,.hero-content{min-height:min(var(--v3-hero-height),420px)!important}.footer-grid{grid-template-columns:1fr!important}.svn-lightbox{padding:10px}.svn-lightbox__image{max-width:96vw;max-height:80vh;border-radius:8px}.svn-lightbox__close,.svn-lightbox__prev,.svn-lightbox__next{width:44px;height:44px}.svn-lightbox__close{top:10px;right:10px}.svn-lightbox__prev{left:8px}.svn-lightbox__next{right:8px}.svn-lightbox__caption{font-size:.85rem;padding:0 3rem}.svn-lightbox__image.is-zoomed{transform:scale(1.35)}}
