/* cassiopeia_riffler - user.css
   Riffler: Optik der alten Xero-Seite, Punkt fuer Punkt, nur Core-Klassen. */

/* 1. ALLGEMEIN (Schrift, Farben, Links) */
body {
	background: #e9e9e9 url(../images/grey.jpg) no-repeat fixed;
	background-size: cover;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.3;
	color: #555;
}
a,
a:not([class]),
a:hover,
a:focus {
	color: #0062af;
	text-decoration: none;
}
a:hover {
	color: #19191a;
}

/* Nach-oben-Button in Blau */
.back-to-top-link {
	background: #0062af;
	border: 0;
	color: #fff;
}
.back-to-top-link:hover,
.back-to-top-link:focus {
	background: #19191a;
	color: #fff;
}

/* Seitenkasten 960px, weiss mit Schatten */
.container-header,
.site-grid {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	background: #fff;
}
.site-grid {
	grid-template-columns: [full-start] 50px [main-start] repeat(4, minmax(0, 1fr)) [main-end] 50px [full-end];
	grid-gap: 0;
	padding: 20px 0 30px 0;
	box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .8);
}

/* 2. KOPF (Header, Logo, Seitentitel) */
.container-header {
	position: relative;
	background: #fff;
	box-shadow: none;
}
.container-header > .grid-child:first-child {
	padding: 0 50px;
}
.container-header .navbar-brand {
	margin: 0;
	padding: 15px 0 25px 0;
}
.container-header .navbar-brand img {
	max-width: 350px;
}

/* 3. MENUE (Hauptmenue, Handy-Menue) */
.container-header .container-nav {
	background: #0062af;
	padding: 0 38px;
}
.container-header .mod-menu > li {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}
.container-header .mod-menu > li > a {
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 20px 12px;
}
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover {
	color: #b8bec2;
	text-decoration: none;
}
.container-header .mod-menu > li::after {
	display: none;
}

/* Untermenue: oeffnet bei Maus-Beruehrung, ohne Pfeile, graue Flaeche mit Schatten */
.container-header .mod-menu > li > button {
	display: none;
}
.container-header .mod-menu > li > .mod-menu__sub {
	display: block;
	visibility: hidden;
	opacity: 0;
	transition: opacity .5s ease, visibility .5s ease;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 200;
	width: auto;
	min-width: 100%;
	margin: 0;
	padding: 20px 25px 15px 25px;
	background: #ccc;
	box-shadow: 0 6px 12px rgba(0, 0, 0, .3);
	font-size: 12px;
	white-space: nowrap;
}
.container-header .mod-menu > li:hover > .mod-menu__sub,
.container-header .mod-menu > li:focus-within > .mod-menu__sub {
	visibility: visible;
	opacity: 1;
}
.container-header .mod-menu__sub li {
	padding: 4px 0;
}
.container-header .mod-menu__sub a {
	display: block;
	padding: 0;
	color: #333;
	text-transform: uppercase;
	text-decoration: none;
}
.container-header .mod-menu .mod-menu__sub a:hover,
.container-header .mod-menu .mod-menu__sub li.active > a {
	color: #0062af;
	text-decoration: none;
}

/* 4. SUCHFELD: Lupe rechts in der blauen Leiste, das Feld gleitet bei Klick auf (user.js 2.) */
/* Blaue Leiste: oben scharfkantig, nach unten ein weicher Schatten ins Weisse (wie oben am Footer) */
.container-header .container-nav {
	position: relative;
	z-index: 50;
	box-shadow: 0 8px 10px -6px rgba(0, 0, 0, .35);
}
[data-lupe] {
	position: absolute;
	top: 50%;
	right: 38px;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	padding: 0;
	background: none;
	border: 0;
	color: #fff;
	font-size: 17px;
	cursor: pointer;
}
[data-lupe]:hover,
[data-lupe][aria-expanded="true"] {
	color: #b8bec2;
}
.container-header .container-search {
	position: absolute;
	top: 50%;
	right: 80px;
	width: 0;
	margin-top: -17px;
	overflow: hidden;
	opacity: 0;
	transition: width .4s ease, opacity .4s ease;
}
.container-header[data-suche-offen] .container-search {
	width: 200px;
	opacity: 1;
}
.container-header .container-search label {
	display: none;
}
.container-header .container-search input {
	width: 100%;
	height: 34px;
	padding: 5px 10px;
	border: 0;
	border-radius: 0;
	font-size: 13px;
}

/* 5. INHALT (Beitraege, Ueberschriften, Bilder) */
main .page-header h1,
.com-content-article .page-header h2,
.blog > h1,
.subgrau,
.subrot {
	border-bottom: 1px solid #eee;
	line-height: 1.4em;
	font-family: "Times New Roman", Times, serif;
	font-size: 30px;
	font-weight: 300;
	color: #010c14;
	display: block;
	margin-bottom: 25px;
}
main .page-header h1,
.com-content-article .page-header h2,
.blog > h1 {
	font-size: 24px;
}
.subrot,
.rot {
	color: #f00;
}
.klein {
	font-size: 12px;
}
.gesperrt {
	letter-spacing: 2px;
}
.item-image img,
.category-desc img {
	margin-bottom: 20px;
}
.btn {
	border: 1px solid #2c3e50;
	border-radius: 0;
}

/* Aufklapp-Listen wie auf der alten Seite (Regular-Labs-Optik):
   Kategorieblogs Holzverarbeiter/Schadensmanagement (siehe user.js) und RI23-Slider (Dienstleistungen) */
.blog-items {
	gap: 2px;
}
.blog-items .blog-item,
.com-content-article .ri23-slider {
	margin: 0 0 2px 0;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	overflow: hidden;
}
.blog-items .blog-item .page-header {
	margin: 0;
}
.blog-items .blog-item .page-header h2,
.com-content-article .ri23-slider > summary {
	margin: 0;
	padding: 8px 15px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #0062af;
	background: #e2e2e2 linear-gradient(to bottom, #d4d4d4 0%, #e4e4e4 45%, #f6f6f6 100%);
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, .06), inset 0 -1px 0 rgba(255, 255, 255, .8);
	border-left: 4px solid transparent;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.com-content-article .ri23-slider > summary::before {
	display: none;
}
/* Geschlossen: deutlich graue Leiste. Darueberfahren: heller. Offen: hell mit blauem Strich links */
.blog-items .blog-item .page-header h2:hover,
.com-content-article .ri23-slider > summary:hover {
	background: #efefef linear-gradient(to bottom, #e6e6e6 0%, #f1f1f1 50%, #fcfcfc 100%);
	color: #1f496e;
}
.blog-items .blog-item .page-header h2[aria-expanded="true"],
.com-content-article .ri23-slider[open] > summary {
	background: #f7f7f7 linear-gradient(to bottom, #eeeeee 0%, #f7f7f7 40%, #ffffff 100%);
	border-left-color: #0062af;
	color: #1f496e;
}
.blog-items .blog-item .page-header + div,
.com-content-article .ri23-slider > .ri23-inhalt {
	padding: 15px;
	border-top: 1px solid #d0d0d0;
}
/* Auf- und Zuklappen gleitet (user.js 3b), die eigene RI23-Animation ist aus */
.com-content-article .ri23-slider[open] {
	animation: none;
}

/* 6. STARTSEITE (RI13 / RI14 Startbild-Karussell) */

/* Layer (Startseite: Feuerversicherung, Siegel: Immer auf der Seite des Kunden), siehe user.js */
.main-top.card {
	display: none;
}
@keyframes riffler-layer-ein {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes riffler-layer {
	from { opacity: 0; transform: scale(.85); }
	to { opacity: 1; transform: scale(1); }
}
[data-layer] {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .7);
	animation: riffler-layer-ein .5s ease-out both;
}
[data-layer-box] {
	position: relative;
	width: 90%;
	max-height: 85vh;
	padding: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
	animation: riffler-layer .6s ease-out both;
}
[data-layer-box] > div {
	max-height: calc(85vh - 40px);
	overflow-y: auto;
}
[data-layer-box] img {
	width: auto;
	max-width: 100%;
	max-height: 70vh;
	height: auto;
}
[data-layer-box] .btn {
	display: block;
	width: 100%;
	margin-top: 10px;
	background: #0062af;
	color: #fff;
}
[data-layer-box] > button {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #a9a9a9;
	box-shadow: 0 0 4px rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 22px;
	line-height: 24px;
	cursor: pointer;
}


/* 7. MODULE (Seitenleiste, Module allgemein) */
/* Footerbereich: Spezialgebiete und Kontakt nebeneinander (beide bottom-a) */
.container-bottom-a {
	grid-column: full-start / full-end;
	margin-top: 40px;
	padding: 30px 50px 0 50px;
	border-top: 1px solid #e5e5e5;
	box-shadow: 0 -8px 10px -10px rgba(0, 0, 0, .3);
	gap: 30px;
}
.container-bottom-a .card,
.main-bottom.card {
	border: 0;
	background: none;
	margin: 0;
}
.container-bottom-a .card-header {
	background: none;
	border: 0;
	border-left: 3px solid #0062af;
	padding: 0 0 0 12px;
	margin-bottom: 15px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	font-weight: 300;
	text-transform: uppercase;
	color: #010c14;
}
.container-bottom-a .card-body {
	padding: 0;
}

/* Spezialgebiete (RI13 im Footer), Punkte oben rechts neben dem Titel */
.bottom-a .ri13 {
	position: relative;
	--ri13-t0: 0s;
}
/* Ueberblendung schneller (RI13 Standard 1s) */
.bottom-a .ri13.carousel-fade .carousel-item {
	transition-duration: .4s;
}
.bottom-a .ri13 .ri13-pic {
	aspect-ratio: auto;
	height: 215px;
	background: none;
}
.bottom-a .ri13 .ri13-text {
	position: static;
	padding: 0;
}
.bottom-a .ri13 .ri13-text .ri13-l1 {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px;
	background: rgba(0, 98, 175, .6);
	font-size: 14px;
	font-weight: 400;
	text-align: left;
	color: #fff;
	text-shadow: none;
}
.bottom-a .ri13 .ri13-text .ri13-l2,
.bottom-a .ri13 .carousel-control-prev,
.bottom-a .ri13 .carousel-control-next {
	display: none;
}
.bottom-a .ri13 .ri13-text .ri13-lk {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}
.bottom-a .ri13 .ri13-text .ri13-lk:hover,
.bottom-a .ri13 .ri13-text .ri13-lk:focus {
	background: rgba(255, 255, 255, .4);
}
.bottom-a .ri13 .carousel-indicators {
	position: absolute;
	top: -18px;
	right: 0;
	left: auto;
	justify-content: flex-end;
	margin: 0;
	opacity: 1;
}
.bottom-a .ri13 .carousel-indicators button {
	width: 8px;
	height: 8px;
	border: 0;
	border-radius: 50%;
	background: #0062af;
}

/* Hinweis mit dem Titel neben der Maus (Spezialgebiete-Slider), siehe user.js */
[data-tipp] {
	position: fixed;
	z-index: 1100;
	max-width: 300px;
	padding: 5px 8px;
	background: #000;
	border: 1px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
	color: #fff;
	font-size: 12px;
	pointer-events: none;
}
[data-tipp][hidden] {
	display: none;
}

/* Kontakt (zweites Modul in bottom-a) */
.container-bottom-a .card + .card .card-body {
	background: #dee0df;
	padding: 15px;
	height: 215px;
}
.impressumhoehe {
	line-height: 34px;
}

/* Ombudsmann-Siegel rechts aussen */
.main-bottom.card {
	position: relative;
	z-index: 10;
	height: 0;
	padding: 0;
	margin: 0;
}
.main-bottom .card-body {
	padding: 0;
}
.main-bottom img {
	position: absolute;
	right: -130px;
	top: -60px;
}

/* 8. KONTAKT (Reiter, Formular) */
/* Proof of Work laeuft im Hintergrund (automatische Loesung beim Laden), Kaestchen unsichtbar */
#contact-form .control-group:has(altcha-widget),
#contact-form altcha-widget {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}


/* 9. FUSS (Footer) */
.container-footer {
	background: none;
	color: #555;
	font-size: 12px;
	letter-spacing: .5px;
}
.container-footer .grid-child {
	max-width: 960px;
	padding: 18px 50px;
	justify-content: center;
	text-align: center;
}

/* 10. COOKIE-POPUP (RI10) */



/* 11. HANDY (bis 767px) */
/* Blaue Menueleiste bleibt beim Scrollen oben haengen, das Logo scrollt weg (user.js 1.) */
.container-header[data-fest] .container-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 300;
	max-width: 960px;
	margin: 0 auto;
}

@media (max-width: 1130px) {
	.main-bottom img {
		display: none;
	}
}

/* Tablet/Desktop ab 768px: Hauptmenue immer nebeneinander (Cassiopeia stellt es unter 992px untereinander) */
@media (min-width: 768px) {
	.container-header .mod-menu {
		flex-direction: row;
	}
}

/* Hamburger-Knopf nur am Handy */
[data-menue-knopf] {
	display: none;
}

@media (max-width: 767px) {
	.container-header > .grid-child:first-child {
		padding: 0 15px;
	}
	.container-header .container-nav {
		display: block;
		padding: 0 15px;
	}
	/* Handy: alles rechtsbuendig (Daumen); offenes Menue beginnt ganz oben */
	.container-header .container-nav[data-menue-offen] {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 300;
		max-height: 100vh;
		overflow-y: auto;
	}
	[data-menue-knopf] {
		display: block;
		width: 100%;
		padding: 14px 0;
		background: none;
		border: 0;
		color: #fff;
		font-size: 14px;
		text-align: right;
		text-transform: uppercase;
		cursor: pointer;
	}
	[data-menue-knopf] span {
		margin-left: 6px;
		font-size: 18px;
	}
	.container-header .mod-menu,
	.container-header .mod-menu__sub {
		text-align: right;
	}
	.container-header .mod-menu {
		display: none;
	}
	.container-header .container-nav[data-menue-offen] .mod-menu {
		display: block;
	}
	/* Handy: Lupe links neben MENUE, Suchfeld klappt unter der Leiste auf */
	[data-lupe] {
		top: 8px;
		right: 100px;
		margin-top: 0;
	}
	.container-header .mod-menu > li {
		display: block;
	}
	.container-header .mod-menu > li > a {
		display: block;
		padding: 10px 0;
		border-top: 1px solid rgba(255, 255, 255, .25);
	}
	.container-header .mod-menu > li > .mod-menu__sub {
		position: static;
		visibility: visible;
		opacity: 1;
		padding: 0 15px 6px 0;
		background: none;
		box-shadow: none;
		white-space: normal;
	}
	.container-header .mod-menu__sub a {
		padding: 5px 0;
		color: #fff;
	}
	.container-header .mod-menu .mod-menu__sub a:hover,
	.container-header .mod-menu .mod-menu__sub li.active > a {
		color: #b8bec2;
	}
	.container-header .container-search input {
		width: 100%;
	}
	.container-bottom-a {
		padding: 30px 15px 0 15px;
	}
	.site-grid {
		grid-template-columns: [full-start] 15px [main-start] repeat(4, minmax(0, 1fr)) [main-end] 15px [full-end];
	}
	.container-header .container-search {
		position: static;
		display: none;
		width: auto;
		margin: 0;
		padding: 0 0 12px 0;
		opacity: 1;
	}
	.container-header[data-suche-offen] .container-search {
		display: block;
		width: auto;
	}
	.container-header > .grid-child:first-child {
		justify-content: center;
	}
	.container-header .navbar-brand {
		display: block;
		margin: 0 auto;
		text-align: center;
	}
	.container-header .navbar-brand img {
		max-width: 250px;
	}
	.container-bottom-a {
		display: block;
	}
	.container-bottom-a .card + .card {
		margin-top: 30px;
	}
}
