/* ==========================================================================
   HSV Hochfilzen – Theme für Contao 6 (ohne Eclipse X)
   Asal EDV-System-Dienste · Farben: Blau #0b5982 · Rot #bc1e1d
   ========================================================================== */

@font-face { font-family: "Roboto Slab"; src: url("../fonts/Roboto-Slab-Regular.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/Roboto-Slab-Bold.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --hsv-blue: #0b5982;
  --hsv-blue-dark: #07405e;
  --hsv-blue-soft: #e8f1f8;
  --hsv-red: #bc1e1d;
  --hsv-red-dark: #961716;
  --hsv-sky: #dcebf8;
  --hsv-light: #f3f5f7;
  --hsv-dark: #14212b;
  --hsv-text: #24303a;
  --hsv-muted: #5f6b76;
  --hsv-line: #dfe4e9;
  --hsv-white: #fff;
  --hsv-radius: 12px;
  --hsv-radius-sm: 8px;
  --hsv-shadow: 0 10px 30px -12px rgba(11, 40, 60, .28);
  --hsv-shadow-sm: 0 4px 14px -6px rgba(11, 40, 60, .22);
  --hsv-slab: "Roboto Slab", Georgia, "Times New Roman", serif;
  --hsv-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hsv-container: 1180px;
  --hsv-gutter: clamp(16px, 4vw, 32px);
  --hsv-header-h: 100px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--hsv-sans); font-size: 17px; line-height: 1.65; color: var(--hsv-text); background: var(--hsv-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--hsv-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--hsv-red); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--hsv-slab); color: var(--hsv-blue); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 20px; }
h5, h6 { font-size: 17px; }
h6 { color: var(--hsv-muted); font-weight: 400; font-size: 14px; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--hsv-line); margin: 2rem 0; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid rgba(188, 30, 29, .55); outline-offset: 2px; }
.invisible, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Contao-Grundlayout neutralisieren (layout.css lässt #main floaten) */
#wrapper, #container, #main, #main .inside, #header .inside, #footer .inside { float: none !important; width: auto !important; margin: 0; padding: 0; min-height: 0; }
#container { padding: 0 !important; }
#main .mod_article { max-width: none; padding: 0; }
/* Contaos layout.css setzt .block { overflow:hidden } – das schneidet Dropdowns und Zierelemente ab */
.block, .hsv-mainnav, #header .block, #main .mod_article { overflow: visible !important; }

.hsv-container { max-width: var(--hsv-container); margin: 0 auto; padding: 0 var(--hsv-gutter); }

/* Inhalt in Artikeln ohne Abschnitt: auf Containerbreite */
#main .mod_article > *:not(.hsv-section):not(.hsv-hero):not(.hsv-quickmenu) { max-width: var(--hsv-container); margin-left: auto; margin-right: auto; padding-left: var(--hsv-gutter); padding-right: var(--hsv-gutter); }
#main .mod_article > *:not(.hsv-section):not(.hsv-hero):first-child { margin-top: clamp(40px, 6vw, 72px); }
#main .mod_article > .hsv-section + :not(.hsv-section):not(.hsv-quickmenu) { margin-top: clamp(40px, 6vw, 72px); }
#main .mod_article > *:not(.hsv-section):not(.hsv-hero):last-child { margin-bottom: clamp(40px, 6vw, 72px); }


/* Icons für HTML-Module (Contao 6 filtert <svg> im HTML-Modul) */
.hsv-i { display: inline-block; flex: none; width: 1.15em; height: 1.15em; background-color: currentColor; -webkit-mask: var(--hsv-i) center / contain no-repeat; mask: var(--hsv-i) center / contain no-repeat; vertical-align: -0.15em; }
.hsv-i--phone { --hsv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8.1 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.8 2z'/%3E%3C/svg%3E"); }
.hsv-i--mail { --hsv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.hsv-i--facebook { --hsv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13.5 21v-7.5h2.5l.4-3h-2.9V8.6c0-.9.3-1.5 1.5-1.5h1.5V4.4c-.3 0-1.2-.1-2.2-.1-2.2 0-3.7 1.3-3.7 3.8v2.4H8v3h2.6V21h2.9z'/%3E%3C/svg%3E"); }
.hsv-i--search { --hsv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.hsv-i--menu { --hsv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.hsv-i--close { --hsv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.hsv-i--up { --hsv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E"); }
.hsv-topbar .hsv-i { width: 15px; height: 15px; }
.hsv-social .hsv-i { width: 17px; height: 17px; }
#footer .hsv-social .hsv-i { width: 19px; height: 19px; }
.hsv-iconbtn .hsv-i { width: 22px; height: 22px; }
.hsv-totop .hsv-i { width: 24px; height: 24px; }

/* ---------- Topzeile ---------- */
#topbar { background: var(--hsv-blue); color: #fff; font-size: 13.5px; }
.hsv-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.hsv-topbar__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.hsv-topbar__contact > span { opacity: .9; }
.hsv-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.hsv-topbar a:hover { color: #fff; opacity: .8; }
.hsv-topbar svg { width: 15px; height: 15px; flex: none; }
.hsv-social { display: flex; gap: 4px; }
.hsv-social a { width: 32px; height: 32px; border-radius: 50%; justify-content: center; transition: background .2s; }
.hsv-social a:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
.hsv-social svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
#header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 1px 0 var(--hsv-line); transition: box-shadow .3s; }
body.nav-open #header, body.search-open #header { z-index: 1300; }
body.is-scrolled #header { box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .25); }
.hsv-header { display: flex; align-items: center; gap: 24px; height: var(--hsv-header-h); transition: height .3s; }
body.is-scrolled .hsv-header { height: 74px; }
.hsv-logo { flex: none; display: block; line-height: 0; }
.hsv-logo img { height: 80px; width: auto; transition: height .3s; }
body.is-scrolled .hsv-logo img { height: 58px; }
.hsv-header__nav { margin-left: auto; align-self: stretch; display: flex; }
.hsv-header__tools { display: flex; align-items: center; gap: 4px; }
.hsv-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--hsv-muted); text-decoration: none; transition: background .2s, color .2s; }
.hsv-iconbtn:hover { background: var(--hsv-blue-soft); color: var(--hsv-blue); }
.hsv-iconbtn svg { width: 21px; height: 21px; }
.hsv-burger { display: none; }

/* Hauptnavigation (Contao nav_default) */
.hsv-mainnav { display: flex; align-self: stretch; }
.hsv-mainnav ul { list-style: none; margin: 0; padding: 0; }
.hsv-mainnav ul.level_1 { display: flex; align-items: stretch; }
.hsv-mainnav ul.level_1 > li { position: relative; display: flex; }
.hsv-mainnav ul.level_1 > li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 18px; margin-top: -9px; width: 1px; background: var(--hsv-line); }
.hsv-mainnav .level_1 > li > a, .hsv-mainnav .level_1 > li > strong, .hsv-mainnav .level_1 > li > span:not(.hsv-subtoggle) { display: flex; align-items: center; padding: 0 16px; font-family: var(--hsv-slab); font-size: 17px; font-weight: 400; color: #555; text-decoration: none; position: relative; transition: color .2s, background .2s; white-space: nowrap; }
.hsv-mainnav .level_1 > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 26px; height: 2px; background: var(--hsv-red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
body.is-scrolled .hsv-mainnav .level_1 > li > a::after { bottom: 16px; }
.hsv-mainnav .level_1 > li > a:hover, .hsv-mainnav .level_1 > li:hover > a { color: var(--hsv-red); }
.hsv-mainnav .level_1 > li > a:hover::after { transform: scaleX(1); }
.hsv-mainnav .level_1 > li > .active, .hsv-mainnav .level_1 > li > a.trail, .hsv-mainnav .level_1 > li.active > a, .hsv-mainnav .level_1 > li.trail > a { background: var(--hsv-red); color: #fff !important; }
.hsv-mainnav .level_1 > li > .active::after, .hsv-mainnav .level_1 > li > a.trail::after { display: none; }
.hsv-mainnav .level_1 > li.active::before, .hsv-mainnav .level_1 > li.trail::before, .hsv-mainnav .level_1 > li.active + li::before, .hsv-mainnav .level_1 > li.trail + li::before { display: none; }
/* Untermenü */
.hsv-mainnav ul.level_2 { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: 0 0 var(--hsv-radius-sm) var(--hsv-radius-sm); box-shadow: var(--hsv-shadow); border-top: 3px solid var(--hsv-red); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s; z-index: 50; }
.hsv-mainnav li:hover > ul.level_2, .hsv-mainnav li:focus-within > ul.level_2 { opacity: 1; visibility: visible; transform: none; }
.hsv-mainnav ul.level_2 a, .hsv-mainnav ul.level_2 strong { display: block; padding: 9px 20px; color: var(--hsv-text); text-decoration: none; font-size: 15.5px; font-weight: 400; }
.hsv-mainnav ul.level_2 a:hover { background: var(--hsv-blue-soft); color: var(--hsv-blue); }
.hsv-mainnav ul.level_2 .active, .hsv-mainnav ul.level_2 .trail { color: var(--hsv-red); font-weight: 600; }
.hsv-subtoggle { display: none; }

/* Suche (Overlay) */
.hsv-search { position: fixed; inset: 0; z-index: 1200; background: rgba(7, 32, 48, .92); display: flex; align-items: flex-start; justify-content: center; padding: 18vh var(--hsv-gutter) 0; opacity: 0; visibility: hidden; transition: all .25s; }
body.search-open .hsv-search { opacity: 1; visibility: visible; }
.hsv-search .mod_search { width: min(720px, 100%); }
.hsv-search form, .hsv-search .formbody { display: flex; gap: 10px; width: 100%; }
.hsv-search .widget { flex: 1; margin: 0; }
.hsv-search input[type="search"], .hsv-search input.text { width: 100%; height: 60px; font-size: 22px; border: 0; border-radius: var(--hsv-radius-sm); padding: 0 20px; }
.hsv-search .submit, .hsv-search button { height: 60px; padding: 0 28px; }
.hsv-search label { color: #fff; }
.hsv-search__close { position: absolute; top: 24px; right: 24px; color: #fff !important; }
.hsv-search__close:hover { background: rgba(255, 255, 255, .12) !important; }

/* ---------- Kopfbild Startseite ---------- */
.hsv-hero { position: relative; overflow: hidden; color: #fff; background: var(--hsv-blue-dark); display: flex; align-items: center; }
.hsv-hero--tall { min-height: clamp(520px, 78vh, 820px); }
.hsv-hero--normal { min-height: clamp(440px, 62vh, 640px); }
.hsv-hero--compact { min-height: 360px; }
.hsv-hero__media, .hsv-hero__slide, .hsv-hero__shade { position: absolute; inset: 0; }
.hsv-hero__slide { background-size: cover; background-position: center bottom; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); }
.hsv-hero__slide.is-active { opacity: 1; animation: hsv-kenburns 14s ease-out forwards; }
@keyframes hsv-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hsv-hero__shade { background: linear-gradient(90deg, rgba(7, 36, 54, .62) 0%, rgba(7, 36, 54, .28) 45%, rgba(7, 36, 54, 0) 75%), linear-gradient(0deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 35%); }
.hsv-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--hsv-container); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--hsv-gutter); }
.hsv-hero__logos { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(12px, 2.4vw, 28px); margin: 0 0 clamp(28px, 6vh, 70px); padding: 0; }
.hsv-hero__logos img { height: clamp(64px, 9vw, 104px); width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); transition: transform .3s; }
.hsv-hero__logos a:hover img { transform: translateY(-3px); }
.hsv-hero__kicker { font-family: var(--hsv-slab); font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.hsv-hero__title { font-family: var(--hsv-slab); font-size: clamp(38px, 6vw, 68px); line-height: 1.05; color: #fff; margin: .08em 0 .3em; text-shadow: 0 3px 20px rgba(0, 0, 0, .45); letter-spacing: -.01em; }
.hsv-hero__lead { max-width: 560px; font-size: 19px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hsv-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.hsv-hero__badge { display: inline-flex; background: #fff; border-radius: var(--hsv-radius); padding: 10px 14px; box-shadow: var(--hsv-shadow); transition: transform .25s; }
.hsv-hero__badge img { height: 62px; width: auto; }
a.hsv-hero__badge:hover { transform: translateY(-3px); }
.hsv-hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 30px; height: 48px; margin-left: -15px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 16px; }
.hsv-hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hsv-scroll 1.8s infinite; }
@keyframes hsv-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Buttons ---------- */
.hsv-btn, :is(.ce_hyperlink, .content-hyperlink) a.hyperlink_txt, .mod_newslist .more a, button.submit, input.submit, .widget-submit button, .hsv-search .submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--hsv-slab); font-weight: 700; font-size: 16px; line-height: 1.2; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.hsv-btn:hover { transform: translateY(-2px); box-shadow: var(--hsv-shadow-sm); }
.hsv-btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.hsv-btn:hover svg { transform: translateX(3px); }
.hsv-btn--icon-left:hover svg { transform: translateX(-3px); }
.hsv-btn--sm { font-size: 14px; padding: 9px 18px; }
.hsv-btn--lg { font-size: 17px; padding: 16px 34px; }
.hsv-btn--red, button.submit, input.submit, .widget-submit button, .hsv-search .submit { background: var(--hsv-red); color: #fff !important; }
.hsv-btn--red:hover, button.submit:hover, input.submit:hover, .widget-submit button:hover, .hsv-search .submit:hover { background: var(--hsv-red-dark); color: #fff; }
.hsv-btn--blue, :is(.ce_hyperlink, .content-hyperlink) a.hyperlink_txt { background: var(--hsv-blue); color: #fff !important; }
.hsv-btn--blue:hover, :is(.ce_hyperlink, .content-hyperlink) a.hyperlink_txt:hover { background: var(--hsv-blue-dark); }
.hsv-btn--outline { border-color: var(--hsv-blue); color: var(--hsv-blue) !important; background: transparent; }
.hsv-btn--outline:hover { background: var(--hsv-blue); color: #fff !important; }
.hsv-btn--white { background: #fff; color: var(--hsv-blue) !important; }
.hsv-btn--white:hover { color: var(--hsv-red) !important; }
.hsv-button { margin: 1.2em 0; }
.hsv-button--center { text-align: center; }
.hsv-button--right { text-align: right; }
.hsv-button--inline { display: inline-block; margin: 0 10px 12px 0; }

/* Core-Hyperlink (z. B. Sieger-Archiv, Partner) */
:is(.ce_hyperlink, .content-hyperlink) { margin: 0 0 1.2em; }
:is(.ce_hyperlink, .content-hyperlink) a.hyperlink_txt::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Abschnitte ---------- */
.hsv-section { position: relative; isolation: isolate; }
.hsv-section__inner { position: relative; z-index: 2; max-width: var(--hsv-container); margin: 0 auto; padding-left: var(--hsv-gutter); padding-right: var(--hsv-gutter); }
.hsv-w--narrow { max-width: 900px; }
.hsv-w--wide { max-width: 1400px; }
.hsv-pad--small > .hsv-section__inner { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.hsv-pad--normal > .hsv-section__inner { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hsv-pad--large > .hsv-section__inner { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); }
.hsv-bg--white { background: #fff; }
.hsv-bg--light { background: var(--hsv-light); }
.hsv-bg--sky { background: var(--hsv-sky); }
.hsv-bg--blue { background: var(--hsv-blue); }
.hsv-bg--red { background: var(--hsv-red); }
.hsv-bg--dark { background: var(--hsv-dark); }
.hsv-section--image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hsv-section--fixed { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .hsv-section--fixed { background-attachment: scroll; } }
.hsv-section--image::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.hsv-bg--white.hsv-section--image::before { background: linear-gradient(180deg, rgba(255, 255, 255, calc(var(--ov) + .12)) 0%, rgba(255, 255, 255, var(--ov)) 45%, rgba(255, 255, 255, calc(var(--ov) + .2)) 100%); }
.hsv-bg--light.hsv-section--image::before { background: linear-gradient(180deg, rgba(243, 245, 247, calc(var(--ov) + .12)) 0%, rgba(243, 245, 247, var(--ov)) 45%, rgba(243, 245, 247, calc(var(--ov) + .2)) 100%); }
.hsv-bg--sky.hsv-section--image::before { background: rgba(220, 235, 248, var(--ov)); }
.hsv-bg--blue.hsv-section--image::before { background: linear-gradient(110deg, rgba(7, 64, 94, calc(var(--ov) + .1)), rgba(11, 89, 130, calc(var(--ov) - .15))); }
.hsv-bg--red.hsv-section--image::before { background: linear-gradient(110deg, rgba(120, 16, 15, calc(var(--ov) + .08)), rgba(188, 30, 29, calc(var(--ov) - .2))); }
.hsv-bg--dark.hsv-section--image::before { background: linear-gradient(110deg, rgba(10, 20, 28, calc(var(--ov) + .1)), rgba(10, 20, 28, calc(var(--ov) - .2))); }
.hsv-ov--light { --ov: .55; }
.hsv-ov--medium { --ov: .78; }
.hsv-ov--strong { --ov: .9; }
/* helle Abschnitte: Bild deutlicher zeigen, Lesbarkeit über leichten Verlauf */
:is(.hsv-bg--white, .hsv-bg--light, .hsv-bg--sky).hsv-ov--light { --ov: .35; }
:is(.hsv-bg--white, .hsv-bg--light, .hsv-bg--sky).hsv-ov--medium { --ov: .55; }
:is(.hsv-bg--white, .hsv-bg--light, .hsv-bg--sky).hsv-ov--strong { --ov: .72; }
/* Dunkle Abschnitte: helle Schrift */
.hsv-bg--blue, .hsv-bg--red, .hsv-bg--dark { color: rgba(255, 255, 255, .94); }
.hsv-bg--blue :is(h1, h2, h3, h4, h5, h6, a, strong), .hsv-bg--red :is(h1, h2, h3, h4, h5, h6, a, strong), .hsv-bg--dark :is(h1, h2, h3, h4, h5, h6, a, strong) { color: #fff; }
.hsv-bg--blue h6, .hsv-bg--red h6, .hsv-bg--dark h6 { color: rgba(255, 255, 255, .75); }
.hsv-bg--blue .hsv-headline__l2, .hsv-bg--red .hsv-headline__l2, .hsv-bg--dark .hsv-headline__l2 { color: #fff; }
.hsv-bg--blue .hsv-headline__bg, .hsv-bg--red .hsv-headline__bg, .hsv-bg--dark .hsv-headline__bg { -webkit-text-stroke-color: rgba(255, 255, 255, .18); }
.hsv-bg--red .hsv-headline__title::after { background: #fff; }
.hsv-bg--blue a.hsv-btn--blue, .hsv-bg--dark a.hsv-btn--blue { background: #fff; color: var(--hsv-blue) !important; }
/* Aufeinanderfolgende Bild-Abschnitte (z. B. „Der Verein“) – feine Trennung */
/* Aufeinanderfolgende Bild-/Farbabschnitte (z. B. „Der Verein“, „Landertinger“):
   weißer Zwischenraum mit Zierelement statt hartem Aneinanderstoßen */
.hsv-section:is(.hsv-section--image, .hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark) + .hsv-section:is(.hsv-section--image, .hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark) { margin-top: clamp(64px, 8vw, 104px); }
.hsv-section:is(.hsv-section--image, .hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark) + .hsv-section:is(.hsv-section--image, .hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark)::after { content: ""; position: absolute; left: 50%; top: calc(clamp(64px, 8vw, 104px) / -2); width: 168px; height: 24px; margin: -12px 0 0 -84px; z-index: 3; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 24'%3E%3Cpath d='M0 12h60M108 12h60' stroke='%23bc1e1d' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='84' cy='12' r='10' fill='none' stroke='%230b5982' stroke-width='3'/%3E%3Ccircle cx='84' cy='12' r='4' fill='%23bc1e1d'/%3E%3C/svg%3E") center/contain no-repeat; }
/* Bild-Abschnitte mit dunkler Farbe: abgerundete „Kapitel“-Karten im Inhaltsbereich */
@media (min-width: 992px) {
  .hsv-section--image:is(.hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark) { max-width: calc(var(--hsv-container) + 120px); margin-left: auto; margin-right: auto; border-radius: 18px; box-shadow: var(--hsv-shadow); }
  .hsv-section--image:is(.hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark)::before { border-radius: 18px; }
  .hsv-section--image:is(.hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark) > .hsv-section__inner { padding-left: clamp(32px, 5vw, 72px); padding-right: clamp(32px, 5vw, 72px); }
}
#main .mod_article > .hsv-section--image:is(.hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark):last-child { margin-bottom: clamp(48px, 6vw, 80px); }
#main .mod_article > :not(.hsv-section) + .hsv-section--image:is(.hsv-bg--red, .hsv-bg--blue, .hsv-bg--dark) { margin-top: clamp(40px, 5vw, 64px); }
/* Inhalt in Bild-Abschnitten als ruhige Lesespalte */
.hsv-bg--red.hsv-section--image > .hsv-section__inner > *, .hsv-bg--blue.hsv-section--image > .hsv-section__inner > *, .hsv-bg--dark.hsv-section--image > .hsv-section__inner > * { max-width: 860px; }
.hsv-section__inner > :last-child { margin-bottom: 0; }

/* ---------- Überschrift ---------- */
.hsv-headline { position: relative; margin: 0 0 clamp(22px, 3vw, 36px); padding-top: .5em; }
.hsv-headline--center { text-align: center; }
.hsv-headline__bg { position: absolute; z-index: 0; top: -.08em; left: -.04em; font-family: var(--hsv-slab); font-weight: 800; font-size: clamp(56px, 10vw, 128px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(11, 89, 130, .14); white-space: nowrap; pointer-events: none; user-select: none; text-transform: uppercase; letter-spacing: .02em; max-width: 100%; overflow: hidden; }
.hsv-headline--center .hsv-headline__bg { left: 50%; transform: translateX(-50%); }
.hsv-headline__title { position: relative; z-index: 1; margin: 0; padding-top: clamp(14px, 2.6vw, 34px); }
.hsv-headline__title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--hsv-red); margin-top: 18px; }
.hsv-headline--center .hsv-headline__title::after { margin-left: auto; margin-right: auto; }
.hsv-headline__l1 { display: block; font-weight: 400; color: var(--hsv-text); font-size: .62em; letter-spacing: .01em; }
.hsv-bg--blue .hsv-headline__l1, .hsv-bg--red .hsv-headline__l1, .hsv-bg--dark .hsv-headline__l1 { color: rgba(255, 255, 255, .85); }
.hsv-headline__l2 { display: block; color: var(--hsv-blue); }
.hsv-headline--h3 .hsv-headline__bg { font-size: clamp(40px, 6vw, 72px); }
.hsv-headline--h3 .hsv-headline__title { padding-top: 10px; }

/* ---------- Hervorgehobener Text ---------- */
.hsv-highlight { margin: 0 auto 1.4em; max-width: 920px; }
.hsv-highlight--center { text-align: center; }
.hsv-highlight--accent :is(h1, h2, h3) { color: var(--hsv-blue); }
.hsv-highlight h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: .3em; }
.hsv-highlight h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 400; color: var(--hsv-red) !important; margin: 0; }
.hsv-highlight--box { background: #fff; border-left: 5px solid var(--hsv-red); border-radius: var(--hsv-radius-sm); padding: 24px 28px; box-shadow: var(--hsv-shadow-sm); }

/* Ankündigungsband auf der Startseite (erster Abschnitt nach dem Kopfbild) */
.hsv-hero + .hsv-section, .mod_article:first-child .hsv-section:first-child { }

/* ---------- Linkboxen ---------- */
.hsv-linkboxes { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.hsv-cols--2 { grid-template-columns: repeat(2, 1fr); }
.hsv-cols--3 { grid-template-columns: repeat(3, 1fr); }
.hsv-cols--4 { grid-template-columns: repeat(4, 1fr); }
.hsv-cols--5 { grid-template-columns: repeat(5, 1fr); }
.hsv-linkbox { position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: var(--hsv-radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--hsv-shadow); isolation: isolate; }
.hsv-linkbox__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.hsv-linkbox::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 30, 45, 0) 30%, rgba(5, 30, 45, .85) 100%); transition: background .35s; }
.hsv-linkbox:hover .hsv-linkbox__img { transform: scale(1.07); }
.hsv-linkbox:hover::before { background: linear-gradient(180deg, rgba(11, 89, 130, .25) 0%, rgba(7, 54, 80, .92) 100%); }
.hsv-linkbox__banner { position: absolute; top: 18px; right: 18px; background: var(--hsv-red); color: #fff; font-family: var(--hsv-slab); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.hsv-linkbox__body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.hsv-linkbox__title { font-family: var(--hsv-slab); font-weight: 700; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; }
.hsv-linkbox__text { opacity: .9; font-size: 15.5px; line-height: 1.5; }
.hsv-linkbox__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.hsv-linkbox__more::before { content: ""; width: 26px; height: 2px; background: var(--hsv-red); transition: width .3s; }
.hsv-linkbox:hover .hsv-linkbox__more::before { width: 40px; }
.hsv-linkbox__more svg { width: 16px; height: 16px; }
.hsv-linkbox:hover { color: #fff; }

/* ---------- Spalten ---------- */
.hsv-grid { display: grid; gap: clamp(24px, 4vw, 56px); margin-bottom: 1em; }
.hsv-grid--50-50 { grid-template-columns: 1fr 1fr; }
.hsv-grid--40-60 { grid-template-columns: 2fr 3fr; }
.hsv-grid--60-40 { grid-template-columns: 3fr 2fr; }
.hsv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hsv-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hsv-grid--center { align-items: center; }
.hsv-grid__col > :last-child { margin-bottom: 0; }

/* ---------- Zitat ---------- */
.hsv-quote { position: relative; margin: 2em 0; padding: 30px 32px 26px; background: rgba(255, 255, 255, .96); color: var(--hsv-text); border-radius: var(--hsv-radius); box-shadow: var(--hsv-shadow); }
.hsv-quote__mark { position: absolute; top: -16px; left: 28px; width: 46px; height: 34px; color: var(--hsv-red); }
.hsv-quote__text { margin: 6px 0 16px; font-family: var(--hsv-slab); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; font-style: italic; color: var(--hsv-text); }
.hsv-quote__text p:last-child { margin: 0; }
.hsv-quote__author { display: flex; align-items: center; gap: 14px; }
.hsv-quote__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hsv-quote__author strong { display: block; color: var(--hsv-blue) !important; font-family: var(--hsv-slab); }
.hsv-quote__author small { display: block; color: var(--hsv-muted); font-size: 14px; }
.hsv-quote__author a { color: inherit !important; text-decoration: none; }
.hsv-quote--dark { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); }
.hsv-quote--dark .hsv-quote__text { color: #fff; }

/* ---------- Zeitleiste ---------- */
.hsv-timeline { list-style: none; margin: 1.5em 0 0; padding: 0; position: relative; }
.hsv-timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(var(--hsv-blue), var(--hsv-red)); opacity: .35; }
.hsv-timeline__item { position: relative; width: 50%; padding: 0 44px 26px 0; }
.hsv-timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 26px 44px; }
.hsv-timeline__item + .hsv-timeline__item { margin-top: -46px; }
.hsv-timeline__dot { position: absolute; top: 20px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--hsv-blue); z-index: 1; display: flex; align-items: center; justify-content: center; }
.hsv-timeline__item:nth-child(even) .hsv-timeline__dot { right: auto; left: -9px; }
.hsv-timeline__item.is-highlight .hsv-timeline__dot { width: 38px; height: 38px; right: -19px; top: 12px; background: var(--hsv-red); border-color: #fff; color: #fff; box-shadow: var(--hsv-shadow-sm); }
.hsv-timeline__item.is-highlight:nth-child(even) .hsv-timeline__dot { left: -19px; }
.hsv-timeline__dot svg { width: 18px; height: 18px; }
.hsv-timeline__card { background: #fff; border-radius: var(--hsv-radius-sm); padding: 18px 22px; box-shadow: var(--hsv-shadow-sm); border: 1px solid var(--hsv-line); transition: transform .25s, box-shadow .25s; }
.hsv-timeline__card:hover { transform: translateY(-2px); box-shadow: var(--hsv-shadow); }
.is-highlight .hsv-timeline__card { border-color: var(--hsv-red); border-width: 1px 1px 1px 4px; }
.hsv-timeline__title { font-size: 17px; margin: 0 0 6px; }
.hsv-timeline__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--hsv-red); }
.hsv-timeline__link svg { width: 16px; height: 16px; transition: transform .2s; }
.hsv-timeline__link:hover svg { transform: translateX(3px); }

/* ---------- Trenner ---------- */
.hsv-divider { border: 0; margin: clamp(28px, 4vw, 44px) 0; height: 1px; background: linear-gradient(90deg, var(--hsv-line), var(--hsv-line) 70%, transparent); }
.hsv-divider--space { background: none; }
.hsv-bg--blue .hsv-divider, .hsv-bg--red .hsv-divider, .hsv-bg--dark .hsv-divider { background: rgba(255, 255, 255, .25); }

/* ---------- Kontaktdaten ---------- */
.hsv-contact { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
.hsv-contact li { display: flex; align-items: center; gap: 12px; }
.hsv-contact__ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--hsv-blue-soft); color: var(--hsv-blue); display: inline-flex; align-items: center; justify-content: center; }
.hsv-contact__ico svg { width: 18px; height: 18px; }
.hsv-contact a { text-decoration: none; color: inherit; }
.hsv-contact a:hover { color: var(--hsv-red); }

/* ---------- Karte / Anfahrt ---------- */
.hsv-map { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; border-radius: var(--hsv-radius); overflow: hidden; box-shadow: var(--hsv-shadow); background: #fff; }
.hsv-map__info { padding: clamp(24px, 3vw, 40px); }
.hsv-map__info address { font-style: normal; margin-bottom: 20px; }
.hsv-map__links { display: flex; flex-wrap: wrap; gap: 10px; }
.hsv-map__frame { min-height: 380px; position: relative; }
.hsv-map__frame--static { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .9); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .15), transparent 50%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px), linear-gradient(135deg, var(--hsv-blue), var(--hsv-blue-dark)); }
.hsv-map__frame--static svg { width: 90px; height: 90px; }

/* ---------- Zwei-Klick-Lösung (Video/Karte) ---------- */
.hsv-consent { position: relative; background: linear-gradient(135deg, var(--hsv-blue), var(--hsv-blue-dark)); background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; }
.hsv-consent::before { content: ""; position: absolute; inset: 0; background: rgba(5, 30, 45, .45); }
.hsv-consent__box { position: relative; padding: 24px; max-width: 520px; }
.hsv-consent__box p { margin: 0 0 14px; font-size: 14.5px; }
.hsv-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hsv-consent.is-loaded::before, .hsv-consent.is-loaded .hsv-consent__box { display: none; }
.hsv-video { margin: 0 0 1.5em; }
.hsv-video__frame { aspect-ratio: 16 / 9; border-radius: var(--hsv-radius); overflow: hidden; box-shadow: var(--hsv-shadow); }
.hsv-video__play { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; background: var(--hsv-red); color: #fff; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(188, 30, 29, .3); transition: transform .25s, box-shadow .25s; margin-bottom: 14px; }
.hsv-video__play:hover { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(188, 30, 29, .25); color: #fff; }
.hsv-video__play svg { width: 38px; height: 38px; margin-left: 5px; }
.hsv-video__title { font-family: var(--hsv-slab); font-size: 22px; font-weight: 700; }
.hsv-consent__note { font-size: 13px !important; opacity: .85; }

/* ---------- Logos ---------- */
.hsv-logos { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 18px; }
.hsv-logos li > * { display: flex; align-items: center; justify-content: center; height: 150px; padding: 20px; background: #fff; border-radius: var(--hsv-radius-sm); border: 1px solid var(--hsv-line); transition: box-shadow .25s, transform .25s; }
.hsv-logos img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter .25s; }
.hsv-logos a:hover { box-shadow: var(--hsv-shadow); transform: translateY(-3px); }
.hsv-logos a:hover img { filter: none; }

/* ---------- Schnellmenü ---------- */
.hsv-quickmenu { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 800; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hsv-quickmenu a { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; background: var(--hsv-blue); color: #fff; text-decoration: none; border-radius: 10px 0 0 10px; transform: translateX(calc(100% - 50px)); width: max-content; transition: transform .3s, background .2s; box-shadow: var(--hsv-shadow-sm); white-space: nowrap; font-family: var(--hsv-slab); font-size: 15px; }
.hsv-quickmenu a:hover, .hsv-quickmenu a:focus { transform: none; background: var(--hsv-red); color: #fff; }
.hsv-quickmenu svg { width: 22px; height: 22px; flex: none; }
.hsv-quickmenu span { opacity: 0; transition: opacity .2s; padding-right: 8px; }
.hsv-quickmenu a:hover span, .hsv-quickmenu a:focus span { opacity: 1; }

/* ---------- Countdown ---------- */
.hsv-countdown { text-align: center; margin: 1.5em 0; }
.hsv-countdown__title { font-family: var(--hsv-slab); font-weight: 700; color: var(--hsv-blue); }
.hsv-countdown__units { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hsv-countdown__units span { min-width: 104px; padding: 16px 10px; background: #fff; border-radius: var(--hsv-radius-sm); box-shadow: var(--hsv-shadow-sm); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--hsv-muted); }
.hsv-countdown__units b { display: block; font-family: var(--hsv-slab); font-size: 42px; line-height: 1.1; color: var(--hsv-red); letter-spacing: 0; }

/* ---------- Contao-Kernelemente ---------- */
:is(.ce_text, .content-text), :is(.ce_headline, .content-headline), :is(.ce_table, .content-table), :is(.ce_download, .content-download), :is(.ce_downloads, .content-downloads), :is(.ce_gallery, .content-gallery), :is(.ce_image, .content-image), :is(.ce_form, .content-form), :is(.ce_youtube, .content-youtube) { margin-bottom: 1.4em; }
:is(.ce_text, .content-text) ul li::marker { color: var(--hsv-red); }
:is(.ce_text, .content-text) h2, :is(.ce_text, .content-text) > h3 { margin-top: .4em; }
:is(.ce_text, .content-text) figure { margin: 0 0 1em; }
:is(.ce_text, .content-text) .image_container.float_left { float: left; margin: 0 24px 12px 0; }
:is(.ce_text, .content-text) .image_container.float_right { float: right; margin: 0 0 12px 24px; }
:is(.ce_text, .content-text)::after { content: ""; display: table; clear: both; }
:is(.ce_text, .content-text) img, :is(.ce_image, .content-image) img { border-radius: var(--hsv-radius-sm); }

/* Tabellen (Sieger-Archiv) */
:is(.ce_table, .content-table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:is(.ce_table, .content-table) table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--hsv-radius-sm); overflow: hidden; box-shadow: var(--hsv-shadow-sm); font-size: 15.5px; }
:is(.ce_table, .content-table) th { background: var(--hsv-blue); color: #fff; text-align: left; font-family: var(--hsv-slab); font-weight: 700; padding: 12px 16px; }
:is(.ce_table, .content-table) td { padding: 11px 16px; border-top: 1px solid var(--hsv-line); }
:is(.ce_table, .content-table) tbody tr:nth-child(even) td { background: #f7f9fb; }
:is(.ce_table, .content-table) tbody tr:hover td { background: var(--hsv-blue-soft); }
:is(.ce_table, .content-table) tbody tr:first-child td:first-child { font-weight: 700; }

/* Downloads */
:is(.ce_download, .content-download), :is(.ce_downloads, .content-downloads) li { margin-bottom: .7em; }
:is(.ce_downloads, .content-downloads) ul { list-style: none; padding: 0; margin: 0; }
:is(.ce_download, .content-download) a, :is(.ce_downloads, .content-downloads) a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; background: #fff; border: 1px solid var(--hsv-line); border-radius: var(--hsv-radius-sm); color: var(--hsv-text); text-decoration: none; font-weight: 600; transition: border-color .2s, box-shadow .2s, transform .2s; }
:is(.ce_download, .content-download) a::before, :is(.ce_downloads, .content-downloads) a::before { content: "PDF"; flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--hsv-red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; display: inline-flex; align-items: center; justify-content: center; }
:is(.ce_download, .content-download) a:hover, :is(.ce_downloads, .content-downloads) a:hover { border-color: var(--hsv-blue); box-shadow: var(--hsv-shadow-sm); transform: translateY(-1px); color: var(--hsv-blue); }
:is(.ce_download, .content-download) .size, :is(.ce_downloads, .content-downloads) .size { color: var(--hsv-muted); font-weight: 400; font-size: 13.5px; }
:is(.ce_download, .content-download) img, :is(.ce_downloads, .content-downloads) img { display: none; }
.hsv-bg--red .size, .hsv-bg--blue .size, .hsv-bg--dark .size { color: rgba(255, 255, 255, .75) !important; }
.hsv-bg--red :is(.ce_download, .content-download) a, .hsv-bg--blue :is(.ce_download, .content-download) a, .hsv-bg--dark :is(.ce_download, .content-download) a { color: var(--hsv-text) !important; }

/* Galerie */
:is(.ce_gallery, .content-gallery) ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
:is(.ce_gallery, .content-gallery) li { margin: 0; padding: 0; float: none; width: auto !important; }
:is(.ce_gallery, .content-gallery) figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--hsv-radius-sm); aspect-ratio: 4 / 3; background: var(--hsv-light); }
:is(.ce_gallery, .content-gallery) img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
:is(.ce_gallery, .content-gallery) a { display: block; height: 100%; }
:is(.ce_gallery, .content-gallery) a::after { content: ""; position: absolute; inset: 0; background: rgba(11, 89, 130, 0); transition: background .3s; }
:is(.ce_gallery, .content-gallery) a:hover img { transform: scale(1.06); }
:is(.ce_gallery, .content-gallery) a:hover::after { background: rgba(11, 89, 130, .25); }
:is(.ce_gallery, .content-gallery) figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
:is(.ce_gallery, .content-gallery) .pagination { margin-top: 16px; }

/* Lightbox */
.hsv-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 18, 26, .94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s; }
.hsv-lb.is-open { opacity: 1; visibility: visible; }
.hsv-lb img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.hsv-lb__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }
.hsv-lb a { position: absolute; color: #fff; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); text-decoration: none; font-size: 30px; line-height: 1; }
.hsv-lb a:hover { background: var(--hsv-red); color: #fff; }
.hsv-lb__close { top: 18px; right: 18px; }
.hsv-lb__prev { left: 18px; top: 50%; margin-top: -27px; }
.hsv-lb__next { right: 18px; top: 50%; margin-top: -27px; }

/* Formulare */
:is(.ce_form, .content-form) form, .mod_search form { margin: 0; }
.widget { margin-bottom: 18px; }
.widget > label, fieldset legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
input.text, input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--hsv-text); background: #fff; border: 1.5px solid var(--hsv-line); border-radius: var(--hsv-radius-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--hsv-blue); box-shadow: 0 0 0 4px rgba(11, 89, 130, .15); }
.widget-checkbox fieldset { border: 0; padding: 0; margin: 0; }
.widget-checkbox span { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.widget-checkbox input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--hsv-blue); }
.widget-explanation { color: var(--hsv-muted); }
p.error { color: var(--hsv-red); font-size: 14px; margin: 4px 0 0; }
.mandatory .mandatory, span.mandatory { color: var(--hsv-red); }
:is(.ce_form, .content-form) { background: #fff; border-radius: var(--hsv-radius); box-shadow: var(--hsv-shadow); padding: clamp(22px, 3vw, 36px); }

/* Nachrichten-Liste als Karten – unabhängig vom genauen Contao-Markup (news_latest / Twig) */
.mod_newslist { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); margin-bottom: 1.4em; }
.mod_newslist > :is(h1, h2, h3, h4, h5, h6, nav, .pagination, p.empty, .empty) { grid-column: 1 / -1; }
.mod_newslist > :not(:is(h1, h2, h3, h4, h5, h6, nav, .pagination, p.empty, .empty, script)) { --pad: 24px; display: flex; flex-direction: column; padding: 0 var(--pad) 22px; background: #fff; border-radius: var(--hsv-radius); overflow: hidden; box-shadow: var(--hsv-shadow-sm); border: 1px solid var(--hsv-line); transition: transform .3s, box-shadow .3s; position: relative; color: var(--hsv-text); }
.mod_newslist > :not(:is(h1, h2, h3, h4, h5, h6, nav, .pagination, .empty)):hover { transform: translateY(-4px); box-shadow: var(--hsv-shadow); }
.mod_newslist > * > :is(figure, .image_container, .image) { order: -2; margin: 0 calc(var(--pad) * -1) 0 !important; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hsv-light); float: none !important; width: auto !important; }
.mod_newslist > * > :is(figure, .image_container, .image) img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s; }
.mod_newslist > *:hover :is(figure, .image_container) img { transform: scale(1.05); }
.mod_newslist :is(.info, .news-item__info, time) { order: -1; margin: 18px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hsv-red); }
.mod_newslist > * > :is(h2, h3, h4) { font-size: 20px; margin: 8px 0 10px; line-height: 1.3; }
.mod_newslist > * > :is(h2, h3, h4) a { color: var(--hsv-blue); text-decoration: none; }
.mod_newslist > * > :is(h2, h3, h4) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mod_newslist :is(.teaser, .news-item__teaser) { margin: 0; color: var(--hsv-muted); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mod_newslist :is(.teaser, .news-item__teaser) p { margin: 0 0 .4em; }
.mod_newslist .more { margin: auto 0 0; padding-top: 16px; }
.mod_newslist .more a { padding: 0; background: none; border: 0; color: var(--hsv-red) !important; font-size: 15px; position: relative; z-index: 2; }
.mod_newslist .more a::after { content: "→"; transition: transform .2s; }
.mod_newslist .more a:hover::after { transform: translateX(4px); }

/* Pagination */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; justify-content: center; margin: 1em 0 0; }
.pagination li > * { display: inline-flex; min-width: 42px; height: 42px; padding: 0 12px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--hsv-line); background: #fff; text-decoration: none; color: var(--hsv-text); }
.pagination .active, .pagination strong { background: var(--hsv-blue) !important; color: #fff !important; border-color: var(--hsv-blue) !important; }
.pagination a:hover { border-color: var(--hsv-blue); color: var(--hsv-blue); }
.pagination p { display: none; }

/* Nachrichtenleser */
.mod_newsreader { max-width: 900px; }
.mod_newsreader .layout_full > h1, .mod_newsreader h1 { font-size: clamp(28px, 3.4vw, 40px); }
.mod_newsreader .info { color: var(--hsv-red); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.mod_newsreader .image_container { margin: 0 0 1.4em; }
.mod_newsreader .image_container img { border-radius: var(--hsv-radius); width: 100%; }
.mod_newsreader .back a, .mod_newsreader p.back a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--hsv-blue); }
.mod_newsreader .back a:hover { background: var(--hsv-blue); color: #fff; }

/* Suchergebnisse */
.mod_search .header { color: var(--hsv-muted); margin: 1em 0; }
.mod_search h3 a { text-decoration: none; }
.mod_search .context { color: var(--hsv-muted); }
.mod_search .highlight { background: #fde9a8; padding: 0 2px; }
.mod_search .url { font-size: 13px; color: var(--hsv-blue); }

/* Sitemap */
.mod_sitemap ul { list-style: none; padding-left: 1em; }
.mod_sitemap > ul { padding: 0; columns: 2 280px; }
.mod_sitemap li { break-inside: avoid; padding: 3px 0; }

/* ---------- Footer ---------- */
#footer { background: var(--hsv-blue); color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.hsv-footer { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 48px); padding-top: clamp(48px, 6vw, 76px); padding-bottom: clamp(36px, 5vw, 56px); }
#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 { color: #fff; font-size: 19px; margin: 0 0 18px; padding-bottom: 12px; position: relative; }
#footer h1::after, #footer h2::after, #footer h3::after, #footer h4::after, #footer h5::after, #footer h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--hsv-red); border-radius: 2px; }
#footer a { color: rgba(255, 255, 255, .92); text-decoration: none; }
#footer a:hover { color: #fff; text-decoration: underline; }
#footer .mod_article { padding: 0; }
#footer .mod_article > * { margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; max-width: none !important; margin-top: 0 !important; }
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul:not(.hsv-contact) li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
#footer figure { margin: 0; }
#footer ul:not(.hsv-contact) li a::before { content: "›"; margin-right: 10px; color: rgba(255, 255, 255, .6); }
#footer .hsv-contact__ico { background: rgba(255, 255, 255, .12); color: #fff; width: 34px; height: 34px; }
#footer :is(.ce_image, .content-image) { display: inline-block; margin: 0 10px 10px 0; }
#footer :is(.ce_image, .content-image) img { height: 64px; width: auto; border-radius: 6px; background: #fff; padding: 4px; }
#footer .hsv-social { margin-top: 10px; }
#footer .hsv-social a { width: 40px; height: 40px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
#footer .hsv-social a:hover { background: var(--hsv-red); text-decoration: none; }
#footer .hsv-social svg { width: 18px; height: 18px; }
.hsv-bottom { background: var(--hsv-red); color: rgba(255, 255, 255, .92); font-size: 14px; }
.hsv-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; min-height: 58px; padding-top: 12px; padding-bottom: 12px; }
.hsv-bottom p { margin: 0; }
.hsv-bottom .mod_article > * { margin: 0 !important; padding: 0 !important; }
.hsv-bottom a + a { margin-left: 20px; }

/* Nach-oben-Button */
.hsv-totop { position: fixed; right: 22px; bottom: 22px; z-index: 850; width: 52px; height: 52px; border-radius: 50%; background: var(--hsv-red); color: #fff !important; display: flex; align-items: center; justify-content: center; box-shadow: var(--hsv-shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s; text-decoration: none !important; }
.hsv-totop svg { width: 22px; height: 22px; }
body.show-totop .hsv-totop { opacity: 1; visibility: visible; transform: none; }
.hsv-totop:hover { background: var(--hsv-blue); }

/* Einblend-Animation */
.hsv-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hsv-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .hsv-reveal { opacity: 1; transform: none; } }

/* Backend-Kennzeichnung der Wrapper-Elemente */
.hsv-be-label { font: 600 12px/1.4 system-ui, sans-serif; color: #0b5982; background: #e8f1f8; border-left: 3px solid #bc1e1d; padding: 4px 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hsv-mainnav .level_1 > li > a, .hsv-mainnav .level_1 > li > strong { padding: 0 11px; font-size: 16px; }
  .hsv-logo img { height: 66px; }
}
@media (max-width: 991px) {
  :root { --hsv-header-h: 78px; }
  body { font-size: 16.5px; }
  .hsv-logo img, body.is-scrolled .hsv-logo img { height: 56px; }
  body.is-scrolled .hsv-header { height: 68px; }
  .hsv-burger { display: inline-flex; }
  .hsv-header__tools { margin-left: auto; }
  .hsv-header__nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; z-index: 1100; transform: translateX(100%); transition: transform .35s cubic-bezier(.3, .7, .2, 1); overflow-y: auto; padding: 84px 0 30px; box-shadow: -20px 0 50px rgba(0, 0, 0, .2); display: block; margin: 0; }
  body.nav-open .hsv-header__nav { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(7, 32, 48, .5); z-index: 1050; }
  .hsv-nav-close { position: absolute; top: 18px; right: 18px; }
  .hsv-mainnav { display: block; }
  .hsv-mainnav ul.level_1 { display: block; }
  .hsv-mainnav ul.level_1 > li { display: block; border-bottom: 1px solid var(--hsv-line); }
  .hsv-mainnav ul.level_1 > li + li::before { display: none; }
  .hsv-mainnav .level_1 > li > a, .hsv-mainnav .level_1 > li > strong, .hsv-mainnav .level_1 > li > span:not(.hsv-subtoggle) { padding: 15px 64px 15px 24px; font-size: 18px; }
  .hsv-mainnav .level_1 > li > a::after { display: none; }
  .hsv-mainnav ul.level_2 { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px; display: none; background: var(--hsv-light); }
  .hsv-mainnav li.is-open > ul.level_2 { display: block; }
  .hsv-mainnav ul.level_2 a, .hsv-mainnav ul.level_2 strong { padding: 11px 24px 11px 40px; }
  .hsv-subtoggle { display: flex; position: absolute; right: 8px; top: 7px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--hsv-blue); cursor: pointer; }
  .hsv-subtoggle::before { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
  li.is-open > .hsv-subtoggle::before { transform: rotate(-135deg) translate(-2px, -2px); }
  .hsv-mainnav .level_1 > li.active > .hsv-subtoggle, .hsv-mainnav .level_1 > li.trail > .hsv-subtoggle { color: #fff; }
  .hsv-footer { grid-template-columns: 1fr 1fr; }
  .hsv-cols--4, .hsv-cols--5 { grid-template-columns: repeat(3, 1fr); }
  .hsv-grid--4 { grid-template-columns: 1fr 1fr; }
  .mod_newslist { grid-template-columns: 1fr 1fr; }
  .hsv-map { grid-template-columns: 1fr; }
  .hsv-quickmenu { display: none; }
}
@media (min-width: 992px) { .hsv-nav-close { display: none !important; } }
@media (max-width: 767px) {
  .hsv-topbar { justify-content: center; min-height: 40px; }
  .hsv-topbar__contact > span, .hsv-topbar .hsv-social { display: none; }
  .hsv-topbar__contact { gap: 4px 22px; justify-content: center; flex-wrap: nowrap; }
  .hsv-cols--2, .hsv-cols--3, .hsv-cols--4, .hsv-cols--5, .hsv-grid--50-50, .hsv-grid--40-60, .hsv-grid--60-40, .hsv-grid--3, .hsv-grid--4 { grid-template-columns: 1fr; }
  .hsv-logos { grid-template-columns: 1fr 1fr; }
  .hsv-linkbox { min-height: 300px; }
  .mod_newslist { grid-template-columns: 1fr; }
  .hsv-footer { grid-template-columns: 1fr; }
  .hsv-bottom__inner { justify-content: center; text-align: center; }
  .hsv-hero__shade { background: linear-gradient(0deg, rgba(7, 36, 54, .75), rgba(7, 36, 54, .3)); }
  .hsv-hero__scroll { display: none; }
  .hsv-timeline::before { left: 12px; }
  .hsv-timeline__item, .hsv-timeline__item:nth-child(even), .hsv-timeline__item + .hsv-timeline__item { width: auto; margin: 0; padding: 0 0 18px 42px; }
  .hsv-timeline__dot, .hsv-timeline__item:nth-child(even) .hsv-timeline__dot { left: 3px; right: auto; }
  .hsv-timeline__item.is-highlight .hsv-timeline__dot, .hsv-timeline__item.is-highlight:nth-child(even) .hsv-timeline__dot { left: -7px; right: auto; }
  .hsv-totop { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  :is(.ce_text, .content-text) .image_container.float_left, :is(.ce_text, .content-text) .image_container.float_right { float: none; margin: 0 0 1em; }
  :is(.ce_table, .content-table) table { font-size: 14px; }
}

@media (max-width: 520px) { .hsv-hide-sm { display: none; } }

/* ---------- Link-Buttons in Texten (ersetzt die alten „...::: Link :::...“) ----------
   Automatisch: ein Link, der allein in einem Absatz steht (per JavaScript).
   Von Hand:    class="hsv-linkbtn" am Link (z. B. mitten im Satz). */
a.hsv-linkbtn { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0; padding: 9px 18px 9px 14px; border: 1.5px solid var(--hsv-line); border-radius: 999px; background: #fff; color: var(--hsv-blue) !important; font-weight: 600; font-size: .95em; line-height: 1.3; text-decoration: none !important; box-shadow: 0 2px 6px -3px rgba(11, 40, 60, .2); transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s; position: relative; z-index: 2; }
a.hsv-linkbtn::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--hsv-red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
a.hsv-linkbtn[href^="http"]:not([href*="hsv-hochfilzen.at"])::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E"); }
a.hsv-linkbtn:is([href$=".pdf" i], [href*=".pdf?" i])::before { -webkit-mask: none; mask: none; content: "PDF"; width: auto; height: auto; padding: 3px 6px; border-radius: 5px; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; line-height: 1.2; }
a.hsv-linkbtn:hover { border-color: var(--hsv-blue); background: var(--hsv-blue-soft); color: var(--hsv-blue) !important; transform: translateY(-1px); box-shadow: var(--hsv-shadow-sm); }
a.hsv-linkbtn:not(:is([href$=".pdf" i], [href*=".pdf?" i])):hover::before { transform: translateX(2px); }
p:has(> a.hsv-linkbtn:only-child) { margin-bottom: .55em; }
.hsv-bg--red a.hsv-linkbtn, .hsv-bg--blue a.hsv-linkbtn, .hsv-bg--dark a.hsv-linkbtn { border-color: transparent; }

/* Spamschutz-Lockfeld unsichtbar (nicht display:none, damit Bots es ausfüllen) */
.widget.hp, .hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Druck */
@media print {
  #topbar, .hsv-header__tools, .hsv-quickmenu, .hsv-totop, .hsv-search, #footer { display: none !important; }
  #header { position: static; box-shadow: none; }
  .hsv-section { background: none !important; color: #000 !important; }
  .hsv-section::before { display: none; }
}
