/* feuerwerks-vermittlung.at – Template "feuerwerk"
 * Desktop (ab 940 px) nach dem frueheren Template "dreamsquare" inkl. der Basiswerte aus Bootstrap 3.2,
 * darunter responsive Regeln (siehe Ende der Datei). */

/* ---------- Basis (entspricht Bootstrap 3.2 / normalize) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 10px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
article, aside, footer, header, main, nav, section { display: block; }
b, strong { font-weight: bold; }
small { font-size: 85%; }
img { border: 0; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 18px; } h5 { font-size: 14px; } h6 { font-size: 12px; }
ul, ol { margin-top: 0; margin-bottom: 10px; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
hr { height: 0; margin: 20px 0; border: 0; border-top: 1px solid #eee; box-sizing: content-box; }
#content hr { clear: both; margin-bottom: 10px; }
table { border-collapse: collapse; border-spacing: 0; }
td, th { padding: 0; }
input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
iframe { border: 0; }
dd { margin-left: 0; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Seite (dreamsquare) ---------- */
body { margin: 0 20px; padding: 0; text-align: center; color: #000; line-height: 1.42857143; background: #434343 url(../images/bg.jpg) repeat-x fixed; }
p, td, tr { padding: 0; margin: 0; }
body, p, td, tr { font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
#middle { text-align: center; }
#container { width: 898px; margin: 0 auto; border: 3px solid #000; border-top: none; text-align: left; background: #fff; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: #000; padding: 8px 12px; }
.skip-link:focus { left: 8px; }
.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; }

/* Kopf */
#header { background-color: #333; display: flow-root; }
#logoarea { float: left; height: 138px; width: 203px; background: linear-gradient(#fff, #e1e1e1); }
#logo { display: flex; align-items: center; justify-content: center; height: 136px; width: 203px; }
#logo img { display: block; max-width: 100%; height: auto; }
#rightheader { height: 136px; margin-left: 203px; }
#top { height: 50px; float: left; width: 100%; }
#sitename { float: left; padding-left: 10px; color: #ccc; font-size: 18px; line-height: 42px; height: 42px; }
#sitename a, #sitename a:link, #sitename a:visited { color: inherit; text-decoration: none; }
#topmenu_out { float: left; width: 100%; overflow: hidden; background: linear-gradient(#fff, #e1e1e1); }
#topmenu { color: #8b8b8b; height: 80px; margin-top: 8px; line-height: 80px; font-size: 14px; float: left; margin-left: -3px; }
#topmenu ul { padding: 0; margin: 0; list-style: none; line-height: 1; }
#topmenu ul li { list-style: none; padding: 0 7px 0 0; margin: 0; float: left; width: auto; }
#topmenu ul a { display: block; height: 80px; line-height: 80px; padding: 0 20px; margin: 0; text-align: center; text-decoration: none; font-weight: normal; font-size: 12px; color: #8b8b8b; background: url(../images/topmenu_bg.jpg) no-repeat left; }
#topmenu ul li:last-child a { background-image: none; }
#topmenu ul > li:hover, #topmenu ul > li.active { background: url(../images/topmenu_over.jpg) repeat-x; }
#topmenu ul li.active a { color: #999; }
#topmenu ul a:hover { text-decoration: none; }
#topmenu ul a:focus-visible { outline-offset: -2px; }
#hotline, #navtoggle { display: none; }

/* Hauptbereich */
#maincontent { display: flow-root; background: url(../images/maincontent.jpg) repeat-x; }
#left_outleft { width: 190px; float: left; background: url(../images/maincontent.jpg) repeat-x; }
#content_outleft { margin-left: 200px; margin-bottom: 10px; border-left: 2px solid #e6e6e6; border-bottom: 2px solid #e6e6e6; background: #fff url(../images/content_bg.jpg) repeat-x bottom; }
.no-left #content_outleft { margin-left: 0; border-left: none; }
#content { padding: 12px 12px 10px 12px; }
#content_in { overflow: hidden; width: 100%; }

/* Seitenmenues */
.sidebar { margin: 0 5px 5px 5px; width: 190px; }
.sidebar > .moduletable { margin-bottom: 15px; padding: 0 12px; }
.sidebar h3 { background: linear-gradient(#888, #555); color: #fff; font-size: 15px; line-height: 1.1; text-align: left; margin: 5px -12px; padding: 8px 10px; font-weight: normal; }
.sidebar ul, .sidebar ul li { list-style: none; padding: 0; margin: 0; }
.sidebar > .moduletable > ul { margin: 0 -12px; }
.sidebar ul li a { display: block; padding: 5px 5px 5px 14px; margin: 2px 0; border-left: 3px solid #0e8fb9; color: #000; font-size: 13px; text-decoration: none; }
.sidebar ul li a:link, .sidebar ul li a:visited { color: #000; }
.sidebar ul li a:hover, .sidebar ul li.current a { background-color: #68b9d3; border-left-color: #68b9d3; color: #fff; text-decoration: none; }

/* Fuss */
#bottom { clear: both; display: flow-root; background: url(../images/bottom.jpg) repeat-x; text-align: left; color: #8b8b8b; border-top: 1px solid #fff; height: 50px; padding: 10px 0; }
#copy { float: left; font-size: 11px; padding-left: 10px; width: 40%; }
#copy a, #copy a:link, #copy a:visited { color: #999; }
#othermenu { float: right; overflow: hidden; font-size: 11px; width: 50%; }
#othermenu_in { margin-right: -2px; float: right; height: 50px; line-height: 50px; }
#othermenu_in ul, #othermenu_in li { list-style: none; margin: 0; padding: 0; display: inline; }
#othermenu_in a, #othermenu_in a:link, #othermenu_in a:visited { color: #8b8b8b; border-left: 1px solid #8b8b8b; padding: 0 10px; }

/* ---------- Inhalt ---------- */
ul { list-style-type: square; }
h1, h2, h3, h4, h5 { padding: 0; margin: 0; }
h1 { height: 26px; line-height: 26px; color: #fff; font-size: 15px; padding: 0 5px; background: #0e8fb9; margin: 0 0 10px 0; }
h2, h2 a { color: #0e8fb9; font-size: 24px; font-weight: normal; padding: 4px 0; }
.page-header h1, .page-header h2 { height: auto; line-height: 1.1; background: none; color: #0e8fb9; font-size: 24px; font-weight: normal; padding: 4px 0; margin: 0; }
a:link, a:visited { color: #8f0e0e; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid #0e8fb9; outline-offset: 2px; }
.item-separator, .blog-item + .blog-item { margin-top: 10px; }
.blog-featured .blog-items { margin: 0; }
.com-content-article__body::after, .item-content::after { content: ""; display: table; clear: both; }
#content iframe { max-width: 100%; }

/* Laufband (Startseite) */
.marquee { overflow: hidden; white-space: nowrap; padding: 20px 10px; }
.marquee .marquee-track { display: inline-block; padding-left: 100%; animation: fv-marquee var(--marquee-duration, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track, .marquee:focus .marquee-track { animation-play-state: paused; }
.marquee { cursor: pointer; }
@keyframes fv-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee { white-space: normal; }
	.marquee .marquee-track { animation: none; padding-left: 0; }
}

/* Bundeslaender-Liste mit Karte (Startseite) */
.regionen-karte { float: right; padding-right: 10px; }
.regionen li { margin-bottom: 10px; }
.text-center { text-align: center; }

/* Downloads (frueher <style> im Beitrag) */
.downloads h2 { padding-top: 15px; clear: both; }
.downloads img { float: left; }
.page-downloads .page-header h1, .page-downloads .page-header h2 { padding-top: 15px; }
.downloads p { overflow: hidden; }

/* Datenschutz (frueher <style> im Beitrag) */
.agbrow { padding-bottom: 20px; }
.agbrow h3 { padding-bottom: 10px; font-size: 17px; }

/* Galerie (Plugin fvgallery, Optik wie SIGE) */
.fv-gallery { list-style: none; margin: 0; padding: 0; display: flow-root; }
.fv-gallery li { float: left; width: 130px; height: var(--fv-row, 110px); margin: 0; padding: 10px; }
.fv-gallery a { display: block; }
.fv-gallery img { display: block; background: #fff; border: 1px solid #ccc; padding: 4px; margin: -5px 5px 5px -5px; height: auto; max-width: none; box-shadow: 3px 3px 4px rgba(0, 0, 0, .25); box-sizing: content-box; }

/* Fehlerseite */
.error-code { color: #8b8b8b; }

/* ---------- Responsiv: unter 940 px ---------- */
@media (max-width: 939.98px) {
	body { margin: 0; background-attachment: scroll; }
	#container { width: auto; border: none; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
	#maincontent { flex: 1 0 auto; background-color: #fff; }

	/* Kopf: Logo links, rechts Hotline und Menue-Knopf; darunter das aufgeklappte Hauptmenue */
	#header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; background: linear-gradient(#fff, #e1e1e1); border-bottom: 3px solid #333; }
	#logoarea { float: none; width: auto; height: auto; background: none; margin-right: auto; }
	#logo { width: auto; height: auto; }
	#logo img { width: 130px; }
	#rightheader { display: contents; }
	#top { display: none; }
	#hotline, #navtoggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 4px; font-size: 15px; font-weight: bold; text-decoration: none; cursor: pointer; }
	#hotline, #hotline:link, #hotline:visited { background: #0b7a9e; color: #fff; }
	#navtoggle { background: #555; color: #fff; border: 0; font-family: inherit; }
	html:not(.js) #navtoggle { display: none; }
	#navtoggle .bars, #navtoggle .bars::before, #navtoggle .bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
	#navtoggle .bars::before, #navtoggle .bars::after { content: ""; position: absolute; left: 0; }
	#navtoggle .bars::before { top: -6px; }
	#navtoggle .bars::after { top: 6px; }
	#navtoggle[aria-expanded="true"] .bars { background: transparent; }
	#navtoggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
	#navtoggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

	/* Navigation: mit JS zugeklappt, ohne JS immer sichtbar */
	html.js:not(.nav-open) #topmenu_out, html.js:not(.nav-open) #left_outleft { display: none; }
	#topmenu_out { float: none; flex: 0 0 100%; background: none; overflow: visible; }
	#topmenu { float: none; height: auto; margin: 0 -10px; line-height: 1.3; }
	#topmenu ul li { float: none; padding: 0; }
	#topmenu ul > li:hover, #topmenu ul > li.active { background: none; }
	#topmenu ul a, #left_outleft .sidebar ul li a { display: flex; align-items: center; height: auto; min-height: 44px; line-height: 1.3; padding: 8px 16px; margin: 2px 0; text-align: left; background: none; border-left: 3px solid #0e8fb9; color: #000; font-size: 15px; }
	#topmenu ul a { font-weight: bold; }
	#topmenu ul li.active > a, #topmenu ul a:hover, #left_outleft .sidebar ul li.current > a, #left_outleft .sidebar ul li a:hover { background: #0b7a9e; border-left-color: #0b7a9e; color: #fff; }
	#left_outleft { float: none; width: auto; background: #f4f4f4; border-bottom: 2px solid #ccc; padding-bottom: 8px; }
	.sidebar { width: auto; margin: 0; }
	.sidebar > .moduletable { padding: 0; margin-bottom: 4px; }
	.sidebar > .moduletable > ul { margin: 0; }
	.sidebar h3 { margin: 8px 0 2px; padding: 9px 16px; }

	/* Inhalt einspaltig */
	#content_outleft { margin-left: 0; border-left: none; border-right: none; }
	#content { padding: 14px 16px 16px; max-width: 752px; margin: 0 auto; }
	body, p, td, tr { font-size: 15px; }
	body { line-height: 1.5; }
	#content img { max-width: 100%; height: auto; }
	#content iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
	#content table { display: block; max-width: 100%; overflow-x: auto; }
	#content pre { white-space: pre-wrap; }
	#content { overflow-wrap: anywhere; }
	.page-header h1, .page-header h2, h2 { font-size: 22px; }

	/* Galerie als Raster */
	.fv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 12px 0; }
	.fv-gallery li { float: none; width: auto; height: auto; margin: 0; padding: 0; }
	.fv-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; padding: 3px; box-sizing: border-box; }

	/* Fuss */
	#bottom { height: auto; padding: 12px 10px; color: #666; }
	#copy { font-size: 13px; }
	#copy a[href^="tel:"] { white-space: nowrap; }
	#content iframe { margin-bottom: 12px; }
	#copy, #othermenu { float: none; width: auto; padding-left: 0; }
	#othermenu_in { float: none; height: auto; line-height: 1.4; margin: 10px 0 0; }
	#othermenu_in ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
	#othermenu_in li { display: block; }
	#othermenu_in a, #othermenu_in a:link, #othermenu_in a:visited { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 13px; color: #555; }
	#othermenu_in ul { gap: 0 18px; }
	#othermenu_in a, #othermenu_in a:link, #othermenu_in a:visited { border-left: none; padding: 0; }
}

/* Schmale Handys: gefloatete Bilder/Videos untereinander */
@media (max-width: 599.98px) {
	#content [style*="float"], #content img[align], .regionen-karte, .downloads img { float: none !important; display: block; margin: 10px auto !important; padding: 0 !important; }
	.downloads img { display: inline-block; margin: 0 6px 0 0 !important; }
	#logo img { width: 110px; }
	#hotline span { display: none; }
	.marquee { padding: 14px 0; }
}

@media print {
	body { background: #fff; margin: 0; }
	#container { width: auto; border: 0; }
	#topmenu_out, #left_outleft, #navtoggle, #hotline, #othermenu { display: none; }
	#content_outleft { margin: 0; border: 0; }
}
