/*
 * gps-pro.at – Template gpspro
 * Optik nach dem frueheren Helix-Template lt_winery (Preset 5), ohne Bootstrap.
 * Farben: Akzent #eb4947 (Hover #e61c19), Baender #555, Topbar #f5f5f5.
 */

/* ---------- Schrift (lokal, variabel 300–800) ---------- */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(../fonts/opensans-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(../fonts/opensans-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--gps-accent: #eb4947;
	--gps-accent-hover: #e61c19;
	/* Linkfarbe fuer Fliesstext: etwas dunkler als der Akzent, damit der Kontrast reicht (WCAG AA) */
	--gps-link: #d42f2c;
	--gps-link-hover: #b3221f;
	--gps-band: #555;
	--gps-topbar: #f5f5f5;
	--gps-text: #333;
	--gps-header-h: 90px;
	--gps-header-sticky-h: 70px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 24px;
	color: var(--gps-text);
	background: #fff;
	overflow-x: clip;
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
a { color: var(--gps-link); text-decoration: none; transition: color .3s; }
a:hover, a:focus { color: var(--gps-link-hover); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gps-accent); outline-offset: 2px; }
/* auf den grauen Baendern reicht Rot nicht fuer 3:1 */
#sp-footer :focus-visible, .sp-page-title :focus-visible { outline-color: #fff; }
/* Werte wie die Helix-Schrifteinstellungen der alten Seite */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.1; margin: 20px 0 10px; color: inherit; }
h4, h5, h6 { margin: 10px 0; }
h1 { font-size: 36px; font-weight: 800; } h2 { font-size: 30px; } h3 { font-size: 24px; font-weight: 400; } h4 { font-size: 18px; font-weight: 400; } h5 { font-size: 14px; } h6 { font-size: 12px; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }
b, strong { font-weight: 700; }
table { border-collapse: collapse; max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 10px 15px; }
.skip-link:focus { left: 10px; }
.icon { width: 1em; height: 1em; vertical-align: -.125em; fill: currentColor; }

.container { width: 100%; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { width: 750px; padding: 0 15px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

/* ---------- Topbar ---------- */
#sp-top-bar { background: var(--gps-topbar); color: #999; padding: 8px 0; font-size: 90%; }
.sp-contact-info { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0; }
.sp-contact-info li { display: flex; margin: 0 10px; }
.sp-contact-info a { color: var(--gps-link); display: inline-flex; align-items: center; gap: 6px; }
.sp-contact-info .icon { color: #999; }

/* ---------- Header ---------- */
#sp-header-sentinel { height: 0; }
#sp-header {
	position: sticky; top: 0; z-index: 999;
	height: var(--gps-header-h);
	background: #fff;
	box-shadow: 0 3px 3px rgba(0, 0, 0, .05);
	transition: height .4s ease-in-out, background-color .4s;
}
#sp-header > .container { display: flex; align-items: center; height: 100%; }
#sp-logo { flex: 0 0 auto; padding-right: 10px; }
#sp-logo .logo { display: block; padding: 2px 0; }
#sp-logo img { display: block; height: 78px; width: auto; transition: height .4s ease-in-out; }
#sp-menu { flex: 1 1 auto; display: flex; justify-content: flex-end; height: 100%; }
@media (min-width: 1025px) { #sp-menu { padding-right: 32px; } }
#sp-header.is-sticky { height: var(--gps-header-sticky-h); }
#sp-header.is-sticky #sp-logo img { height: 62px; }

/* ---------- Menue Desktop (Helix-Megamenue) ---------- */
.sp-megamenu-parent { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.sp-megamenu-parent > li { position: relative; display: flex; align-items: center; }
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > .sp-menu-heading {
	display: flex; align-items: center; height: 100%;
	padding: 0 15px;
	font-size: 12px; font-weight: 300; text-transform: uppercase; letter-spacing: 1px;
	color: #111; cursor: pointer; white-space: nowrap;
}
.sp-megamenu-parent > li.sp-has-child > a::after,
.sp-megamenu-parent > li.sp-has-child > .sp-menu-heading::after {
	content: ""; display: inline-block; width: 4px; height: 4px; margin: -3px 0 0 5px;
	border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
}
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:focus-within > a,
.sp-megamenu-parent > li:focus-within > .sp-menu-heading,
.sp-megamenu-parent > li:hover > .sp-menu-heading,
.sp-megamenu-parent > li.active > .sp-menu-heading { color: var(--gps-accent); }

.sp-megamenu-parent .sp-dropdown { position: absolute; z-index: 10; display: none; width: 240px; }
.sp-megamenu-parent .sp-dropdown-main { top: 100%; left: 0; }
.sp-megamenu-parent .sp-dropdown-sub { top: 0; left: 100%; }
.sp-megamenu-parent .sp-dropdown.flip { left: auto; right: 0; }
.sp-megamenu-parent .sp-dropdown-sub.flip { right: 100%; }
.sp-megamenu-parent .sp-dropdown-inner { background: #fff; box-shadow: 0 3px 5px 0 rgba(0, 0, 0, .2); padding: 20px; }
.sp-megamenu-parent .sp-dropdown-sub .sp-dropdown-inner { box-shadow: 0 0 5px rgba(0, 0, 0, .2); }
.sp-megamenu-parent .sp-dropdown-items { list-style: none; margin: 0; padding: 0; }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item { position: relative; display: block; }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > .sp-menu-heading { display: block; padding: 10px; color: #141414; cursor: pointer; line-height: 24px; }
.sp-megamenu-parent .sp-dropdown li.sp-has-child > a::after,
.sp-megamenu-parent .sp-dropdown li.sp-has-child > .sp-menu-heading::after {
	content: ""; float: right; width: 6px; height: 6px; margin-top: 7px;
	border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg);
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item:hover > .sp-menu-heading,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item:focus-within > a { background: var(--gps-accent); color: #fff; }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a { color: var(--gps-accent); }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a:hover { color: #fff; }

.sp-megamenu-parent li:hover > .sp-dropdown,
.sp-megamenu-parent li:focus-within > .sp-dropdown,
.sp-megamenu-parent li.open > .sp-dropdown { display: block; }

/* Einblenden der Dropdowns wie bisher (Helix menu-fade) */
@keyframes sp-dropdown-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.sp-megamenu-parent li:hover > .sp-dropdown > .sp-dropdown-inner,
.sp-megamenu-parent li.open > .sp-dropdown > .sp-dropdown-inner { animation: sp-dropdown-fade-in .4s both; }
@media (prefers-reduced-motion: reduce) {
	.sp-megamenu-parent li:hover > .sp-dropdown > .sp-dropdown-inner,
	.sp-megamenu-parent li.open > .sp-dropdown > .sp-dropdown-inner { animation: none; }
	#sp-header, #sp-logo img { transition: none; }
}

/* Burger */
#offcanvas-toggler {
	display: none; flex: 0 0 auto; margin-left: auto;
	width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer;
	color: #111; font-size: 26px; line-height: 1;
}
#offcanvas-toggler:hover { color: var(--gps-accent); }

/* Menue zwischen 1025 und 1199 px etwas enger, damit es in eine Zeile passt */
@media (min-width: 1025px) and (max-width: 1199px) {
	.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > .sp-menu-heading { padding: 0 10px; letter-spacing: 0; }
}

/* Bis 1024 px: Burger statt Desktop-Menue */
@media (max-width: 1024px) {
	:root { --gps-header-h: 70px; --gps-header-sticky-h: 60px; }
	#sp-menu { display: none; }
	#offcanvas-toggler { display: block; }
	#sp-logo img { height: 60px; }
	#sp-header.is-sticky #sp-logo img { height: 52px; }
}

/* ---------- Offcanvas ---------- */
.offcanvas-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .5); }
.offcanvas-menu {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999;
	width: 320px; max-width: 88vw; overflow-y: auto; overscroll-behavior: contain;
	background: #333; color: #fff;
	transform: translateX(100%); transition: transform .3s ease;
}
.offcanvas-menu.is-open { transform: none; }
.offcanvas-menu .close-offcanvas {
	position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none;
	color: #fff; font-size: 24px; cursor: pointer;
}
.offcanvas-inner { padding: 60px 0 30px; }
.offcanvas-nav, .offcanvas-nav ul { list-style: none; margin: 0; padding: 0; }
.offcanvas-nav li { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.offcanvas-nav li li { border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.offcanvas-nav a, .offcanvas-nav .sp-menu-heading {
	display: block; padding: 12px 56px 12px 20px; min-height: 48px;
	font-size: 14px; font-weight: 400; text-transform: uppercase; line-height: 24px; color: #fff;
}
.offcanvas-nav ul { background: rgba(0, 0, 0, .2); }
.offcanvas-nav ul a, .offcanvas-nav ul .sp-menu-heading { padding-left: 32px; text-transform: none; }
.offcanvas-nav ul ul a, .offcanvas-nav ul ul .sp-menu-heading { padding-left: 44px; }
.offcanvas-nav ul ul ul a { padding-left: 56px; }
.offcanvas-nav a:hover, .offcanvas-nav a:focus { background: rgba(0, 0, 0, .15); color: #fff; }
.offcanvas-nav li.active > a, .offcanvas-nav li.active > .sp-menu-heading { color: #ff7a77; }
.offcanvas-nav li > a[aria-current="page"], .offcanvas-nav li.active > a[aria-current="page"] { color: #fff; background: var(--gps-link); }
.offcanvas-menu-toggler {
	position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; color: #fff;
}
.offcanvas-menu-toggler::before {
	content: ""; display: block; width: 8px; height: 8px; margin: -4px auto 0;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.offcanvas-menu-toggler[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 4px; }
.offcanvas-contact { list-style: none; margin: 25px 20px 0; padding: 0; display: grid; gap: 10px; }
.offcanvas-contact a {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
	border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 400;
}
body.offcanvas-open { overflow: hidden; }

/* ---------- Titelbalken + Breadcrumb ---------- */
.sp-page-title { background: var(--gps-band); padding: 30px 0; color: #fff; }
.sp-page-title h1 { margin: 0; padding: 0; font-size: 24px; font-weight: 600; line-height: 1; color: #fff; overflow-wrap: anywhere; }
.breadcrumb-wrapper { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.breadcrumb-here { color: #fff; }
@media (max-width: 767px) {
	.breadcrumb-here { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb > li { color: #fff; }
.breadcrumb > li + li::before { content: "/\00a0"; padding: 0 5px; color: #fff; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb > .active { color: rgba(255, 255, 255, .8); }

/* ---------- Inhalt ---------- */
#sp-main-body { padding: 30px 0 76px; outline: none; }
.com-content-article__body > :first-child, .com-content-article__body > :first-child > :first-child { margin-top: 0; }
/* Startseite: Inhalt beginnt wie live direkt unter dem Header */
body.home #sp-main-body { padding-top: 30px; }
.item-page::after, .com-content-article__body::after { content: ""; display: table; clear: both; }

/* Bausteine aus den Beitragstexten (Markup und Template-CSS der alten Seite) */
.imageright { float: right; padding-left: 20px; padding-bottom: 20px; box-sizing: content-box; }
/* Startseite: Vorteile zweispaltig ab 1200 px wie live, darunter einspaltig */
div.bullet { display: inline-block; width: 560px; max-width: 100%; vertical-align: top; padding: 30px 40px 0 0; }
.content-title { font-size: 36px; font-weight: 800; line-height: 1.1; margin: 20px 0 10px; }
#datenschutz h3, #agb h3 { text-decoration: underline; }
#impressum span.number { font-size: 20px; font-weight: 700; }
/* frueher ein Link auf eine nicht veroeffentlichte Seite: Optik bleibt, Link entfaellt */
.link-look { color: var(--gps-accent); }

/* YouTube responsiv */
.com-content-article__body iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }
@media (max-width: 1024px) {
	.com-content-article__body iframe[src*="youtube"] { float: none !important; display: block; width: 100% !important; max-width: 640px; margin: 0 auto 15px; padding: 0 !important; }
}

/* ---------- Mobil: Floats aufheben, nichts darf ueberstehen ---------- */
@media (max-width: 767px) {
	.com-content-article__body img,
	.com-content-article__body iframe,
	.com-content-article__body [style*="float"] {
		float: none !important;
		display: block;
		max-width: 100% !important;
		margin: 0 auto 15px;
		padding: 0 !important;
	}
	.com-content-article__body iframe { width: 100% !important; }
	.com-content-article__body p[style*="padding-top"] { padding-top: 0 !important; }
	.com-content-article__body table { display: block; overflow-x: auto; }
	.com-content-article__body { overflow-wrap: anywhere; }
	.sp-page-title { padding: 20px 0; }
	.sp-page-title h1 { font-size: 21px; }
	#sp-main-body { padding: 25px 0 40px; }
	div.bullet { display: block; width: auto; padding: 20px 0 0; }
	.content-title { font-size: clamp(24px, 7vw, 36px); }
	.com-content-article__body { hyphens: auto; }
	.sp-contact-info { justify-content: center; gap: 0 14px; }
	.sp-contact-info li { font-size: 13px; }
}
@media (max-width: 420px) {
	.sp-contact-info .sp-contact-email span { display: none; }
	.sp-contact-info .sp-contact-email a::after { content: "E-Mail"; }
}

/* ---------- Footer ---------- */
#sp-footer { background: var(--gps-band); color: #fff; padding: 20px 0; }
#sp-footer > .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
#sp-footer1 { order: 2; }
#sp-footer2 { order: 1; }
#sp-footer a { color: rgba(255, 255, 255, .9); }
#sp-footer a:hover { color: #fff; }
.inlinemenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.inlinemenu li a { display: block; padding: 0 10px; line-height: 24px; border-right: 1px solid #fff; }
.inlinemenu li:last-child a { border-right: 0; }
@media (min-width: 768px) { .inlinemenu { padding-right: 26px; } }
/* Chat-Blase darf die Footer-Links nicht verdecken */
@media (min-width: 768px) and (max-width: 1327px) { #sp-footer > .container { padding-right: 90px; } }
@media (max-width: 767px) {
	#sp-footer > .container { justify-content: center; text-align: center; }
	#sp-footer1 { order: 1; }
	#sp-footer2 { order: 2; }
	.inlinemenu ul { justify-content: center; row-gap: 0; }
	.inlinemenu li a { border-right: 0; }
	.inlinemenu li a { line-height: 44px; padding: 0 8px; min-width: 44px; text-align: center; }
	#sp-footer { padding-bottom: 90px; }
}

/* ---------- Live-Chat (LHC): nicht ueber Menue und Lightbox, Sprechblase nur am Desktop ---------- */
.gps-chat-btn { position: fixed; right: 15px; bottom: 15px; z-index: 1000; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #0c8fc4; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: pointer; }
.gps-chat-btn:hover, .gps-chat-btn:focus-visible { background: #3ca5d0; }
.gps-chat-btn:disabled { opacity: .7; cursor: progress; }
.gps-chat-btn[hidden] { display: none; }
body.offcanvas-open .gps-chat-btn,
body.offcanvas-open #lhc_status_container,
body.offcanvas-open #lhc_need_help_container { display: none !important; }
@media (max-width: 1024px) {
	#lhc_need_help_container { display: none !important; }
}
@media (max-width: 767px) {
	.gps-chat-btn { right: 10px; bottom: 10px; width: 52px; height: 52px; }
	.gps-chat-btn svg { width: 26px; height: 26px; }
}

/* ---------- Fehlerseite ---------- */
.error-page .error-code { font-size: 14px; color: #999; }

/* ---------- Touch-Geraete (bis 1024 px): Tippflaechen mindestens 44 px ---------- */
@media (max-width: 1024px) {
	#sp-top-bar { padding: 0; }
	.sp-contact-info a { min-height: 44px; }
	.inlinemenu li a { line-height: 44px; }
	.breadcrumb a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}

/* ---------- Druck ---------- */
@media print {
	#sp-top-bar, #sp-header, #sp-footer, .offcanvas-menu, .offcanvas-overlay, .gps-chat-btn, #lhc_status_container, #lhc_container, .skip-link { display: none !important; }
	h1.visually-hidden { position: static !important; width: auto !important; height: auto !important; margin: 0 0 10px !important; overflow: visible !important; clip: auto !important; clip-path: none !important; white-space: normal !important; }
	.sp-page-title { background: none; color: #000; padding: 0; }
	.sp-page-title h1, .breadcrumb, .breadcrumb a, .breadcrumb-here { color: #000; }
}
