/* Canivers – Grundstile für die Ausgabe. Elementeigene Werte kommen aus dem erzeugten Dokument-CSS. */

.cv-doc {
	position: relative;
}

.cv-doc *,
.cv-doc *::before,
.cv-doc *::after {
	box-sizing: border-box;
}

.cv-el {
	position: relative;
}

/* Container */
.cv-container {
	display: block;
	padding: 10px;
}

.cv-container__inner {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 20px;
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	--cv-grow: 0;
	--cv-basis: auto;
}

.cv-container__inner > .cv-container {
	flex: var(--cv-grow) 1 var(--cv-basis);
	min-width: 0;
}

/* Buttons nicht zusammenquetschen, wenn sie nebeneinander stehen. */
.cv-container__inner > .cv-widget-button {
	flex-shrink: 0;
}

/* Überschrift */
.cv-heading__title {
	margin: 0;
	padding: 0;
	line-height: 1.2;
	overflow-wrap: break-word;
}

.cv-heading__title a {
	color: inherit;
	text-decoration: none;
}

/* Text */
.cv-text {
	overflow-wrap: break-word;
}

.cv-text > *:first-child {
	margin-top: 0;
}

.cv-text > *:last-child {
	margin-bottom: 0;
}

/* Bild */
.cv-image {
	margin: 0;
}

.cv-image__img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.cv-image__caption {
	margin-top: 8px;
	font-size: 0.875em;
	opacity: 0.8;
}

/* Button */
.cv-button {
	display: inline-block;
	padding: 13px 26px;
	border: 0 solid transparent;
	border-radius: 4px;
	background-color: var(--cv-color-accent, #b85c58);
	color: #fff;
	font-family: var(--cv-font-accent, inherit);
	font-weight: var(--cv-font-accent-weight, 500);
	font-size: 16px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.cv-button:hover,
.cv-button:focus-visible {
	color: #fff;
	filter: brightness(0.92);
}

/* Abstand */
.cv-spacer {
	height: 50px;
}

/* Trennlinie */
.cv-divider {
	display: flex;
	justify-content: center;
	padding: 15px 0;
}

.cv-divider__line {
	display: block;
	width: 100%;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Sichtbarkeit pro Gerät */
@media (min-width: 1025px) {
	.cv-hide-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.cv-hide-tablet {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.cv-hide-mobile {
		display: none !important;
	}
}

/* Layout „Leinwand“ */
body.canivers-layout-canvas {
	margin: 0;
}

/* Platzhalter (nur im Editor sichtbar) */
.cv-placeholder {
	padding: 24px;
	border: 1px dashed #c9bfba;
	background: #f6f2ef;
	color: #8a7f79;
	font: 13px/1.4 system-ui, sans-serif;
	text-align: center;
}

/* SVG-Symbole */
.cv-svg {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	flex: none;
}

/* Symbol */
.cv-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cv-color-accent, #b85c58);
	font-size: 48px;
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.cv-icon-view-stacked .cv-icon {
	padding: 0.45em;
	background-color: var(--cv-color-accent, #b85c58);
	color: #fff;
	border-radius: 50%;
}

.cv-icon-view-framed .cv-icon {
	padding: 0.45em;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.cv-icon-shape-square.cv-icon-view-stacked .cv-icon,
.cv-icon-shape-square.cv-icon-view-framed .cv-icon {
	border-radius: 18%;
}

/* Symbol-Liste */
.cv-iconlist {
	display: flex;
	flex-direction: column;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cv-iconlist__entry {
	margin: 0;
	padding: 0;
}

.cv-iconlist__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.cv-iconlist__icon {
	display: inline-flex;
	color: var(--cv-color-accent, #b85c58);
	font-size: 18px;
}

a.cv-iconlist__item:hover .cv-iconlist__text {
	text-decoration: underline;
}

/* Galerie */
.cv-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.cv-gallery__figure {
	margin: 0;
	min-width: 0;
}

.cv-gallery__item {
	display: block;
	color: inherit;
	text-decoration: none;
}

.cv-gallery__media {
	display: block;
	overflow: hidden;
}

.cv-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.cv-gallery-hover-zoom a.cv-gallery__item:hover .cv-gallery__img,
.cv-gallery-hover-zoom a.cv-gallery__item:focus-visible .cv-gallery__img {
	transform: scale(1.04);
}

.cv-gallery-hover-darken a.cv-gallery__item:hover .cv-gallery__img,
.cv-gallery-hover-darken a.cv-gallery__item:focus-visible .cv-gallery__img {
	filter: brightness(0.8);
}

.cv-gallery__caption {
	display: block;
	margin-top: 6px;
	font-size: 0.875em;
	opacity: 0.8;
}

/* Lightbox */
.cv-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 12, 11, 0.94);
	color: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cv-lb__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: calc(100vw - 120px);
	max-height: calc(100vh - 80px);
	margin: 0;
}

.cv-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
	user-select: none;
}

.cv-lb__caption {
	margin-top: 10px;
	font-size: 15px;
	text-align: center;
	opacity: 0.9;
}

.cv-lb__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
}

.cv-lb__btn:hover,
.cv-lb__btn:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	outline: none;
}

.cv-lb__close {
	top: 16px;
	right: 16px;
}

.cv-lb__prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.cv-lb__next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.cv-lb__count {
	position: absolute;
	top: 28px;
	left: 24px;
	font-size: 14px;
	opacity: 0.75;
}

@media (max-width: 767px) {
	.cv-lb__figure {
		max-width: 100vw;
	}

	.cv-lb__prev,
	.cv-lb__next {
		top: auto;
		bottom: 16px;
		transform: none;
	}
}

html.cv-lb-open {
	overflow: hidden;
}

/* Video */
.cv-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1d1a19;
}

.cv-video__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.cv-video__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	padding: 20px;
	border: 0;
	background: #2a2523 center / cover no-repeat;
	color: #fff;
	cursor: pointer;
	font: inherit;
}

.cv-video__consent.has-poster::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.28);
}

.cv-video__play {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding-left: 5px;
	border-radius: 50%;
	background: var(--cv-color-accent, #b85c58);
	font-size: 30px;
	transition: transform 0.2s ease;
}

.cv-video__consent:hover .cv-video__play,
.cv-video__consent:focus-visible .cv-video__play {
	transform: scale(1.08);
}

.cv-video__notice {
	position: relative;
	max-width: 420px;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	opacity: 0.92;
}

/* Akkordeon */
.cv-accordion {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cv-accordion__item {
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
}

.cv-accordion__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
}

.cv-accordion__title::-webkit-details-marker {
	display: none;
}

.cv-accordion__heading {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.cv-accordion__marker {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
}

.cv-accordion-marker-plus .cv-accordion__marker::before,
.cv-accordion-marker-plus .cv-accordion__marker::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.cv-accordion-marker-plus .cv-accordion__marker::after {
	transform: rotate(90deg);
}

.cv-accordion-marker-plus .cv-accordion__item[open] .cv-accordion__marker::after {
	transform: rotate(0deg);
}

.cv-accordion-marker-chevron .cv-accordion__marker::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 3px;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.cv-accordion-marker-chevron .cv-accordion__item[open] .cv-accordion__marker::before {
	transform: translateY(4px) rotate(-135deg);
}

.cv-accordion-marker-none .cv-accordion__marker {
	display: none;
}

.cv-accordion__content {
	padding: 0 18px 16px;
}

.cv-accordion__content > *:first-child {
	margin-top: 0;
}

.cv-accordion__content > *:last-child {
	margin-bottom: 0;
}

/* Kundenstimme */
.cv-testimonial {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
}

.cv-testimonial__stars {
	display: flex;
	gap: 2px;
	color: #e0a526;
	font-size: 18px;
}

.cv-testimonial__stars .cv-svg:not(.is-full) {
	opacity: 0.45;
}

.cv-testimonial__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.1em;
	font-style: italic;
	line-height: 1.6;
}

.cv-testimonial__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cv-testimonial__img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.cv-testimonial__who {
	display: flex;
	flex-direction: column;
}

.cv-testimonial__name {
	font-weight: 600;
}

.cv-testimonial__subline {
	font-size: 0.875em;
	opacity: 0.75;
}

/* Nur für Screenreader */
.cv-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cv-placeholder--small {
	min-height: 0;
	padding: 6px 10px;
	font-size: 12px;
}

/* Symbol-Box und Bild-Box */
.cv-box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: inherit;
	text-decoration: none;
}

.cv-box--icon {
	align-items: center;
	text-align: center;
}

.cv-box__icon {
	display: inline-flex;
	flex: none;
	color: var(--cv-color-accent, #b85c58);
	font-size: 48px;
	line-height: 1;
}

.cv-box__icon .cv-svg {
	display: block;
}

.cv-box__body {
	min-width: 0;
}

.cv-box__title {
	margin: 0 0 8px;
}

.cv-box__title a {
	color: inherit;
	text-decoration: none;
}

.cv-box__text {
	margin: 0;
}

.cv-box__media {
	flex: none;
	width: 100%;
	overflow: hidden;
}

.cv-box__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cv-box-zoom a.cv-box:hover .cv-box__img,
.cv-box-zoom a.cv-box:focus-visible .cv-box__img {
	transform: scale(1.04);
}

a.cv-box:hover .cv-box__title {
	color: var(--cv-color-accent, #b85c58);
}

/* Bild-Karussell */
.cv-carousel {
	--cv-per-view: 3;
	--cv-gap: 16px;
	position: relative;
}

.cv-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--cv-per-view) - 1) * var(--cv-gap)) / var(--cv-per-view));
	gap: var(--cv-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.cv-carousel__track::-webkit-scrollbar {
	display: none;
}

.cv-carousel__track:focus-visible {
	outline: 2px solid var(--cv-color-accent, #b85c58);
	outline-offset: 4px;
}

.cv-carousel__slide {
	scroll-snap-align: start;
	min-width: 0;
}

.cv-carousel__link {
	display: block;
}

.cv-carousel__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.cv-carousel__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #2a2523;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.cv-carousel__arrow--prev {
	left: 10px;
}

.cv-carousel__arrow--next {
	right: 10px;
}

.cv-carousel__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.cv-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.cv-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.cv-carousel__dot[aria-current="true"] {
	background: var(--cv-color-accent, #b85c58);
}

/* Karte */
.cv-map {
	position: relative;
	height: 400px;
	overflow: hidden;
	background: #e9e4df;
}

.cv-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.cv-map__consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	padding: 20px;
	border: 0;
	background: repeating-linear-gradient(45deg, #ece6e1, #ece6e1 14px, #e4ddd7 14px, #e4ddd7 28px);
	color: #3a3431;
	cursor: pointer;
	font: inherit;
}

.cv-map__icon {
	color: var(--cv-color-accent, #b85c58);
	font-size: 40px;
}

.cv-map__label {
	padding: 10px 18px;
	border-radius: 4px;
	background: var(--cv-color-accent, #b85c58);
	color: #fff;
	font-weight: 600;
}

.cv-map__notice {
	max-width: 420px;
	font-size: 13px;
	text-align: center;
}

.cv-map__open {
	margin: 8px 0 0;
	font-size: 14px;
}

/* Tabs */
.cv-tabs {
	--cv-tab-accent: var(--cv-color-accent, #b85c58);
}

.cv-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.cv-tabs__tab {
	padding: 12px 18px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	margin-bottom: -1px;
}

.cv-tabs__tab[aria-selected="true"] {
	border-bottom-color: var(--cv-tab-accent);
	color: var(--cv-tab-accent);
}

.cv-tabs__tab:focus-visible {
	outline: 2px solid var(--cv-tab-accent);
	outline-offset: -2px;
}

.cv-tabs__panel {
	padding: 20px 0;
}

.cv-tabs__panel > *:first-child {
	margin-top: 0;
}

.cv-tabs__panel > *:last-child {
	margin-bottom: 0;
}

.cv-tabs-vertical .cv-tabs {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	gap: 24px;
}

.cv-tabs-vertical .cv-tabs__list {
	flex-direction: column;
	border-bottom: 0;
	border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.cv-tabs-vertical .cv-tabs__tab {
	border-bottom: 0;
	border-right: 3px solid transparent;
	margin: 0 -1px 0 0;
	text-align: left;
}

.cv-tabs-vertical .cv-tabs__tab[aria-selected="true"] {
	border-right-color: var(--cv-tab-accent);
}

.cv-tabs-vertical .cv-tabs__panel {
	padding-top: 0;
}

@media (max-width: 767px) {
	.cv-tabs-vertical .cv-tabs {
		grid-template-columns: 1fr;
	}

	.cv-tabs-vertical .cv-tabs__list {
		flex-direction: row;
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	}
}

/* Zähler */
.cv-counter {
	text-align: center;
}

.cv-counter__number {
	color: var(--cv-color-primary, inherit);
	font-family: var(--cv-font-primary, inherit);
	font-size: 48px;
	font-weight: var(--cv-font-primary-weight, 600);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.cv-counter__title {
	margin-top: 6px;
}

/* Fortschrittsbalken */
.cv-progress__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-weight: 600;
}

.cv-progress__track {
	height: 10px;
	overflow: hidden;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.08);
}

.cv-progress__bar {
	width: var(--cv-progress, 0%);
	height: 100%;
	border-radius: 5px;
	background: var(--cv-color-accent, #b85c58);
	transition: width 1.2s ease;
}

.cv-progress.is-pending .cv-progress__bar {
	width: 0;
}

/* Social Icons */
.cv-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cv-social__link {
	display: inline-flex;
	padding: 0.5em;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cv-social__link .cv-svg {
	display: block;
}

.cv-social-colors-brand .cv-social__link {
	background: var(--cv-brand, #555);
	color: #fff;
}

.cv-social-colors-custom .cv-social__link {
	background: var(--cv-color-primary, #2f2a27);
	color: #fff;
}

.cv-social-shape-none .cv-social__link {
	padding: 0;
	background: transparent !important;
}

.cv-social-shape-none.cv-social-colors-brand .cv-social__link {
	color: var(--cv-brand, #555);
}

.cv-social-shape-rounded .cv-social__link {
	border-radius: 20%;
}

.cv-social-shape-square .cv-social__link {
	border-radius: 0;
}

a.cv-social__link:hover,
a.cv-social__link:focus-visible {
	transform: translateY(-2px);
	opacity: 0.9;
}

/* Menü-Anker */
.cv-anchor {
	display: block;
	scroll-margin-top: 80px;
}

/* Weniger Bewegung, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
	.cv-carousel__track {
		scroll-behavior: auto;
	}

	.cv-progress__bar,
	.cv-box__img,
	.cv-social__link {
		transition: none;
	}
}

.cv-lb[hidden],
.cv-lb [hidden] {
	display: none !important;
}
