/* ==========================================================================
   CMS.CSS - Styles fuer CMS-Seiten und Bausteine
   Passend zum Shop-Style (shop.css Custom Properties)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Base
   -------------------------------------------------------------------------- */
.cms-page {
	font-family: var(--shop-font-body);
	color: var(--shop-dark);
	line-height: 1.6;
	padding-top:30px;
}

/* Vertikaler Abstand zwischen Bloecken */
.cms-page-content > .cms-block + .cms-block,
.cms-page-content > .container + .cms-block,
.cms-page-content > .cms-block + .container,
.cms-page-content > .container + .container {
	margin-top: 0rem;
}

/* --------------------------------------------------------------------------
   2. Standard-Elemente
   -------------------------------------------------------------------------- */

/* Headings */
.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3,
.cms-page-content h4,
.cms-page-content h5,
.cms-page-content h6 {
	font-family: var(--shop-font-heading);
	font-weight: 300;
	line-height: 1.3;
	color: var(--shop-dark);
}
.cms-page-content h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.cms-page-content h2 { font-size: 1.75rem; margin-bottom: 0.85rem; }
.cms-page-content h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.cms-page-content h4 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.cms-page-content h5 { font-size: 1rem; margin-bottom: 0.5rem; }
.cms-page-content h6 { font-size: 0.9rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--shop-gray-600); }

/* Paragraphs */
.cms-page-content p {
	line-height: 1.7;
	margin-bottom: 1rem;
	color: var(--shop-dark);
}

/* Bausteine mit eigenem color-Kontext (Hero/CTA/Banner-Slider liegen auf Bildern
   oder farbigen Containern) müssen das globale h1-h6/p color: var(--shop-dark)
   wieder neutralisieren — sonst übersteuert die globale Regel (Spezifität 0,1,1)
   das color:inherit der spezifischen Klassen (Spezifität 0,1,0). */
.cms-page-content .cms-hero-headline,
.cms-page-content .cms-hero-subline,
.cms-page-content .cms-cta-headline,
.cms-page-content .cms-cta-text,
.cms-page-content .cms-banner-slider-headline,
.cms-page-content .cms-banner-slider-subline {
	color: inherit;
}
.cms-page-content .lead {
	font-size: 1.15rem;
	line-height: 1.6;
	color: var(--shop-gray-600);
}

/* Links */
.cms-page-content a:not([class*="cms-"]):not([class*="btn"]):not([class*="shop-btn"]):not([class*="listing-"]) {
	color: var(--shop-primary);
	text-decoration: underline;
	text-decoration-color: rgba(140, 91, 91, 0.3);
	text-underline-offset: 2px;
	transition: all 0.2s ease;
}
.cms-page-content a:not([class*="cms-"]):not([class*="btn"]):not([class*="shop-btn"]):not([class*="listing-"]):hover {
	color: var(--shop-primary-hover);
	text-decoration-color: var(--shop-primary-hover);
}

/* Lists */
.cms-page-content ul,
.cms-page-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}
.cms-page-content ul { list-style: none; padding-left: 0; }
.cms-page-content ul li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.4rem;
	line-height: 1.6;
}
.cms-page-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--shop-primary);
}
.cms-page-content ol li {
	margin-bottom: 0.4rem;
	line-height: 1.6;
}
.cms-page-content ol li::marker {
	color: var(--shop-primary);
	font-weight: 600;
}

/* Blockquote */
.cms-page-content blockquote {
	border-left: 4px solid var(--shop-primary);
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--shop-gray-100);
	border-radius: 0 var(--shop-radius) var(--shop-radius) 0;
	font-style: italic;
	color: var(--shop-gray-800);
}
.cms-page-content blockquote p:last-child {
	margin-bottom: 0;
}
.cms-page-content blockquote cite,
.cms-page-content blockquote footer {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	font-style: normal;
	color: var(--shop-gray-400);
}

/* Tables */
.cms-page-content table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.cms-page-content table th,
.cms-page-content table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--shop-gray-200);
}
.cms-page-content table th {
	font-family: var(--shop-font-heading);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--shop-gray-600);
	background: var(--shop-gray-100);
}
.cms-page-content table tr:hover td {
	background: rgba(140, 91, 91, 0.03);
}

/* Images */
.cms-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--shop-radius-lg);
}
.cms-page-content figure {
	margin: 1.5rem 0;
}
.cms-page-content figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--shop-gray-400);
	text-align: center;
}

/* Buttons */
.cms-page-content .btn-primary,
.cms-page-content .shop-btn-primary {
	background: var(--shop-primary);
	color: var(--shop-white);
	border: none;
	border-radius: var(--shop-radius);
	padding: 0.65rem 1.5rem;
	font-family: var(--shop-font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
}
.cms-page-content .btn-primary:hover,
.cms-page-content .shop-btn-primary:hover {
	background: var(--shop-primary-hover);
	color: var(--shop-white);
	text-decoration: none;
}
.cms-page-content .btn-outline-primary,
.cms-page-content .shop-btn-outline {
	background: transparent;
	color: var(--shop-primary);
	border: 1px solid var(--shop-primary);
	border-radius: var(--shop-radius);
	padding: 0.6rem 1.5rem;
	font-family: var(--shop-font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
}
.cms-page-content .btn-outline-primary:hover,
.cms-page-content .shop-btn-outline:hover {
	background: var(--shop-primary);
	color: var(--shop-white);
	text-decoration: none;
}
.cms-page-content .btn-lg {
	padding: 0.85rem 2rem;
	font-size: 1rem;
}

/* Horizontal Rules */
.cms-page-content hr {
	border: none;
	border-top: 1px solid var(--shop-gray-200);
	margin: 2rem 0;
}

/* Code / Pre */
.cms-page-content code {
	background: var(--shop-gray-100);
	color: var(--shop-primary);
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	font-size: 0.85em;
}
.cms-page-content pre {
	background: var(--shop-gray-100);
	border: 1px solid var(--shop-gray-200);
	border-radius: var(--shop-radius);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	overflow-x: auto;
	font-size: 0.85rem;
	line-height: 1.6;
}
.cms-page-content pre code {
	background: transparent;
	padding: 0;
	color: inherit;
}

/* Strong / Em / Mark */
.cms-page-content strong { font-weight: 700; }
.cms-page-content mark {
	background: var(--shop-accent);
	padding: 0.1rem 0.3rem;
	border-radius: 2px;
}

/* Small / Muted */
.cms-page-content small,
.cms-page-content .text-muted {
	color: var(--shop-gray-400);
	font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   3. Block Styles
   -------------------------------------------------------------------------- */

/* Base */
.cms-block {
	position: relative;
}

/* Bloecke ohne Container bekommen seitliches Padding */
.cms-html:not(:has(.container)),
.cms-code {
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Hero Block */
.cms-hero {
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}
.cms-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}
.cms-hero-content {
	position: relative;
	z-index: 1;
	max-width: 600px;
}
.cms-hero-headline {
	font-family: var(--shop-font-accent);
	font-weight: 400;
	font-size: 2rem;
	line-height: 1.2;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: inherit;
}
.cms-hero-subline {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 0;
	opacity: 0.9;
	color: inherit;
}
.cms-hero-btn {
	display: inline-block;
	margin-top: 1.5rem;
	padding: 0.55rem 1.5rem;
	border: 1px solid currentColor;
	color: inherit;
	font-family: var(--shop-font-heading);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: all 0.2s ease;
}
.cms-hero-btn:hover {
	background: rgba(255,255,255,0.15);
}

/* Headline Block */
.cms-headline .cms-headline-1 {
	margin-bottom: 0.5rem;
	line-height: 1.15;
}
.cms-headline .cms-headline-2 {
	margin-top: 0;
	opacity: 0.75;
	font-weight: 400;
	line-height: 1.35;
}
.cms-headline.text-center .cms-headline-1,
.cms-headline.text-center .cms-headline-2 {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

/* Text Block */
.cms-text-headline {
	margin-bottom: 0.5rem;
	line-height: 1.2;
}
.cms-text-body .cms-text-headline {
	color: var(--shop-primary);
}
.cms-text-body .cms-text-headline::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	background: var(--shop-primary);
	opacity: 0.25;
	margin-top: 0.75rem;
}
.cms-text-subheadline {
	margin-top: 0;
	margin-bottom: 1.5rem;
	opacity: 0.75;
	font-weight: 400;
	line-height: 1.35;
}
.cms-text-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 1rem;
	text-align: justify;
}
.cms-text .container:not(.text-center) .cms-text-content {
	margin-left: 0;
}
.cms-text-content h2,
.cms-text-content h3 {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}
.cms-text-content p {
	line-height: 1.7;
}

/* Text-Block Style-Varianten
   Seitenhintergrund: #f5f1ea (warmes Creme)
   Hell    = reines Weiss
   Neutral = Seitenhintergrund + ~15% dunkler (warmes Sand)
   Dunkel  = dunkles Warmbraun, invertierte helle Schrift
*/
.cms-text-style-neutral {
	background-color: #ede7d9;
}
.cms-text-style-hell {
	background-color: #ffffff;
}
.cms-text-style-dunkel {
	background-color: #2d2420;
	color: #f5f1ea;
}
.cms-text-style-dunkel .cms-text-headline,
.cms-text-style-dunkel .cms-text-subheadline,
.cms-text-style-dunkel .cms-text-body .cms-text-headline,
.cms-text-style-dunkel .cms-text-content,
.cms-text-style-dunkel .cms-text-content p,
.cms-text-style-dunkel .cms-text-content h2,
.cms-text-style-dunkel .cms-text-content h3 {
	color: #f5f1ea;
}
/* Trennlinie im Dunkelmodus aufhellen */
.cms-text-style-dunkel .cms-text-body .cms-text-headline::after {
	background: #f5f1ea;
	opacity: 0.3;
}
.cms-text-style-dunkel .cms-text-content a {
	color: #d4c9b3;
}
.cms-text-style-dunkel .cms-text-content a:hover {
	color: #f5f1ea;
}

/* --- Text-Baustein mit optionalem Bild (ehemals "Bild + Text") --- */
.cms-text-with-image .container { max-width: 1200px; }
.cms-text-grid {
	display: grid;
	gap: 2.5rem;
	align-items: start;
	grid-template-columns: 1fr 2fr;
}
.cms-text-pos-right .cms-text-grid {
	grid-template-columns: 1fr 2fr;  /* rtl: erste Spalte = rechts = Bild = 1/3 */
	direction: rtl;
}
.cms-text-pos-right .cms-text-grid > * { direction: ltr; }
.cms-text-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.cms-text-body .cms-text-content,
.cms-text-with-image .cms-text-content { max-width: none; margin: 0; }
/* Position "Mittig" (oben zentriert) – Bild nimmt 50% der Breite, zentriert */
.cms-text-pos-center .cms-text-image {
	width: 50%;
	margin: 0 auto 1.75rem;
}
.cms-text-pos-center .cms-text-image img {
	max-height: 520px;
	object-fit: contain;
}
.cms-text-btn {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 0.55rem 1.5rem;
	border: 1px solid currentColor;
	color: inherit;
	text-decoration: none;
	font-family: var(--shop-font-heading);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: all 0.2s ease;
}
.cms-text-btn:hover {
	background: rgba(0, 0, 0, 0.06);
	color: inherit;
}
.cms-text-style-dunkel .cms-text-btn:hover {
	background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 767.98px) {
	.cms-text-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.cms-text-pos-right .cms-text-grid { direction: ltr; }
}

/* Image + Text */
.cms-image-text-inner {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: 2.5rem;
	align-items: center;
}
/* Wenn Block in einer Bootstrap-Spalte sitzt (z.B. width=6),
   den inneren Container neutralisieren – die äußere col-md-X übernimmt das Padding */
[class*="col-md-"] > .cms-image-text > .container {
	padding-left: 0;
	padding-right: 0;
	max-width: 100%;
}
/* In schmaler Spalte: Bild + Text untereinander */
[class*="col-md-"] > .cms-image-text .cms-image-text-inner {
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

/* Positionen */
.cms-image-text-pos-right .cms-image-text-inner {
	direction: rtl;
}
.cms-image-text-pos-right .cms-image-text-inner > * {
	direction: ltr;
}
.cms-image-text-pos-center .cms-image-text-inner {
	display: block;
}
.cms-image-text-pos-center .cms-image-text-img {
	max-width: 760px;
	margin: 0 auto 2rem;
	border-radius: 6px;
}
.cms-image-text-pos-center .cms-image-text-img img {
	height: auto;
	max-height: 480px;
}
.cms-image-text-pos-center .cms-image-text-body {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	padding: 0;
}
.cms-image-text-pos-center .cms-image-text-btn {
	align-self: center;
}

/* Bild + Body Basis */
.cms-image-text-img {
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 1 / 1;
	background: var(--shop-gray-100, #f5f5f5);
}
.cms-image-text-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cms-image-text-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0;
}
.cms-image-text-headline {
	font-family: var(--shop-font-heading);
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.3;
	color: var(--shop-primary);
	margin-bottom: 0.75rem;
}
/* Trennlinie nach Headline */
.cms-image-text-headline::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	background: var(--shop-primary);
	opacity: 0.25;
	margin-top: 0.75rem;
}
.cms-image-text-subheadline {
	font-family: var(--shop-font-heading);
	font-weight: 400;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--shop-gray-600);
	margin-bottom: 1.25rem;
	opacity: 0.85;
}
.cms-image-text-content {
	color: var(--shop-gray-600);
	line-height: 1.7;
	font-size: 0.95rem;
	text-align: justify;
}
.cms-image-text-content p:last-child {
	margin-bottom: 0;
}
.cms-image-text-btn {
	display: inline-block;
	align-self: flex-start;
	margin-top: 1.75rem;
	padding: 0.6rem 1.75rem;
	border: 1px solid #555;
	border-radius: 4px;
	color: #555;
	font-family: var(--shop-font-heading);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: lowercase;
	text-decoration: none;
	transition: all 0.2s ease;
}
.cms-image-text-btn:hover {
	background: rgba(0, 0, 0, 0.07);
	color: #444;
}

/* Style-Varianten */
.cms-image-text-style-neutral {
	/* Default */
}
.cms-image-text-style-hell {
	background: #f5f7fa;
}
.cms-image-text-style-dunkel {
	background: #1f2937;
}
.cms-image-text-style-dunkel .cms-image-text-headline,
.cms-image-text-style-dunkel .cms-image-text-subheadline,
.cms-image-text-style-dunkel .cms-image-text-content,
.cms-image-text-style-dunkel .cms-image-text-content p {
	color: #f5f7fa;
}
.cms-image-text-style-dunkel .cms-image-text-subheadline {
	opacity: 0.75;
}
.cms-image-text-style-dunkel .cms-image-text-content a {
	color: #93c5fd;
}
.cms-image-text-style-dunkel .cms-image-text-btn {
	border-color: #f5f7fa;
	color: #f5f7fa;
}
.cms-image-text-style-dunkel .cms-image-text-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* Responsive: einspaltig auf Tablet/Mobile */
@media (max-width: 991.98px) {
	.cms-image-text-inner {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
	.cms-image-text-pos-right .cms-image-text-inner {
		direction: ltr;
	}
	.cms-image-text-img {
		aspect-ratio: 16 / 9;
		max-height: 360px;
	}
}
@media (max-width: 575.98px) {
	.cms-image-text {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}
	.cms-image-text-img {
		aspect-ratio: 4 / 3;
	}
}

/* Gallery */
.cms-gallery .row {
	align-items: stretch;
}
.cms-gallery .row > div {
	display: flex;
}
.cms-gallery-item {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	width: 100%;
}
.cms-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.cms-gallery-item:hover img {
	transform: scale(1.05);
}

/* Video */
.cms-video iframe {
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Features */
.cms-features-headline {
	font-size: 1.75rem;
	font-weight: 600;
}
.cms-feature-item {
	padding: 1.25rem 1rem;
	border-radius: 8px;
	height: 100%;
}
.cms-feature-item h5 {
	font-weight: 600;
}
.cms-feature-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.cms-feature-icon svg {
	width: 26px;
	height: 26px;
}
/* Light (default) */
.cms-features-light {
	background: transparent;
}
.cms-features-light .cms-feature-item {
	background: transparent;
}
.cms-features-light .cms-features-headline,
.cms-features-light .cms-feature-item h5 {
	color: var(--shop-gray-800, #444);
}
.cms-features-light .cms-feature-item p {
	color: var(--shop-gray-600, #666);
}
.cms-features-light .cms-feature-icon {
	background: #9a8a7a;
}
.cms-features-light .cms-feature-icon svg {
	stroke: #fff;
}
/* Gray */
.cms-features-gray {
	background: var(--shop-gray-100, #f5f5f5);
}
.cms-features-gray .cms-feature-item {
	background: #fff;
	border: 1px solid var(--shop-gray-200, #e9ecef);
}
.cms-features-gray .cms-features-headline,
.cms-features-gray .cms-feature-item h5 {
	color: var(--shop-gray-800, #444);
}
.cms-features-gray .cms-feature-item p {
	color: var(--shop-gray-600, #666);
}
.cms-features-gray .cms-feature-icon {
	background: #9a8a7a;
}
.cms-features-gray .cms-feature-icon svg {
	stroke: #fff;
}
/* Dark */
.cms-features-dark {
	background: #2a2a2a;
}
.cms-features-dark .cms-feature-item {
	background: rgba(255, 255, 255, 0.1);
}
.cms-features-dark .cms-features-headline,
.cms-features-dark .cms-feature-item h5 {
	color: #fff;
}
.cms-features-dark .cms-feature-item p {
	color: rgba(255, 255, 255, 0.7);
}
.cms-features-dark .cms-feature-icon {
	background: rgba(255, 255, 255, 0.15);
}
.cms-features-dark .cms-feature-icon svg {
	stroke: #fff;
}
/* Primary */
.cms-features-primary {
	background: var(--shop-primary);
}
.cms-features-primary .cms-feature-item {
	background: rgba(255, 255, 255, 0.15);
}
.cms-features-primary .cms-features-headline,
.cms-features-primary .cms-feature-item h5 {
	color: #fff;
}
.cms-features-primary .cms-feature-item p {
	color: rgba(255, 255, 255, 0.85);
}
.cms-features-primary .cms-feature-icon {
	background: rgba(255, 255, 255, 0.2);
}
.cms-features-primary .cms-feature-icon svg {
	stroke: #fff;
}

/* Accordion */
.cms-accordion .accordion {
	border: none;
	border-radius: 8px;
	overflow: hidden;
}
.cms-accordion .accordion-item {
	border: none;
	border-bottom: 1px solid #e9ecef;
}
.cms-accordion .accordion-item:last-child {
	border-bottom: none;
}
.cms-accordion .accordion-button {
	font-weight: 500;
	color: #333;
	background: #f8f9fa;
	padding: 1rem 1.25rem;
	box-shadow: none;
}
.cms-accordion .accordion-button:not(.collapsed) {
	background: #f0f0f0;
	color: #222;
	box-shadow: none;
}
.cms-accordion .accordion-button::after {
	filter: brightness(0) saturate(0);
}
.cms-accordion .accordion-button:focus {
	box-shadow: none;
}
.cms-accordion .accordion-body {
	padding: 1rem 1.25rem;
	color: #555;
	line-height: 1.7;
}
.cms-accordion-headline {
	font-size: 1.75rem;
	font-weight: 600;
}

/* CTA */
.cms-cta {
	padding: 3.5rem 0;
}
.cms-cta-inner {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}
.cms-cta-headline {
	font-family: var(--shop-font-heading);
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}
.cms-cta-text {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 1.75rem;
}
.cms-cta-btn {
	display: inline-block;
	padding: 0.65rem 2rem;
	border-radius: 4px;
	font-family: var(--shop-font-heading);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	transition: all 0.2s ease;
}
/* Light */
.cms-cta-light {
	background: #f5f5f5;
}
.cms-cta-light .cms-cta-headline {
	color: #333;
}
.cms-cta-light .cms-cta-text {
	color: #666;
}
.cms-cta-light .cms-cta-btn {
	border: 1px solid #555;
	color: #555;
	background: transparent;
}
.cms-cta-light .cms-cta-btn:hover {
	background: rgba(0, 0, 0, 0.07);
	color: #333;
}
/* Dark */
.cms-cta-dark {
	background: #2a2a2a;
}
.cms-cta-dark .cms-cta-headline {
	color: #fff;
}
.cms-cta-dark .cms-cta-text {
	color: rgba(255, 255, 255, 0.7);
}
.cms-cta-dark .cms-cta-btn {
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	background: transparent;
}
.cms-cta-dark .cms-cta-btn:hover {
	background: rgba(255, 255, 255, 0.1);
}
/* Primary */
.cms-cta-primary {
	background: var(--shop-primary);
}
.cms-cta-primary .cms-cta-headline {
	color: #fff;
}
.cms-cta-primary .cms-cta-text {
	color: rgba(255, 255, 255, 0.8);
}
.cms-cta-primary .cms-cta-btn {
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	background: transparent;
}
.cms-cta-primary .cms-cta-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* Products */
.cms-products-headline {
	font-family: var(--shop-font-accent);
	font-weight: 400;
	font-size: 1.6rem;
	margin-bottom: 1.5rem;
}
.cms-products-slide {
	padding: 0 0.5rem;
}
.cms-products-slider .listing-card {
	height: 100%;
}
.cms-products-slider .slick-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	font-size: 0;
	line-height: 0;
	color: transparent;
	cursor: pointer;
	transition: all 0.2s ease;
}
.cms-products-slider .slick-arrow::before {
	content: '';
	display: none;
}
.cms-products-slider .slick-arrow::after {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-top: 2px solid #555;
	border-right: 2px solid #555;
	position: absolute;
	top: 50%;
}
.cms-products-slider .slick-prev::after {
	transform: translate(-25%, -50%) rotate(-135deg);
	left: 50%;
}
.cms-products-slider .slick-next::after {
	transform: translate(-75%, -50%) rotate(45deg);
	left: 50%;
}
.cms-products-slider .slick-arrow:hover {
	background: #f5f5f5;
	border-color: #bbb;
}
.cms-products-slider .slick-prev {
	left: -18px;
}
.cms-products-slider .slick-next {
	right: -18px;
}
.cms-products-slider .slick-disabled {
	opacity: 0.3;
	cursor: default;
}

/* Spacer */
.cms-spacer {
	display: flex;
	align-items: center;
	justify-content: center;
}
.cms-spacer hr {
	width: 80%;
	__max-width: 200px;
	margin: 0;
	border: none;
	border-top: 1px solid #ccc;
	opacity: 1;
}

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
	.cms-html:not(:has(.container)),
	.cms-code {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}
@media (max-width: 991px) {
	.cms-image-text {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.cms-image-text-reversed {
		direction: ltr;
	}
	.cms-image-text-img {
		max-height: 360px;
	}
	.cms-image-text-body {
		padding: 2rem 1.5rem;
	}
}
@media (max-width: 768px) {
	.cms-page-content h1 { font-size: 1.75rem; }
	.cms-page-content h2 { font-size: 1.4rem; }
	.cms-page-content h3 { font-size: 1.15rem; }
	.cms-page-content table { font-size: 0.8rem; }
	.cms-page-content table th,
	.cms-page-content table td { padding: 0.5rem 0.65rem; }
	.cms-page-content blockquote { padding: 1rem 1.25rem; }
}

/* ============================================================
   Banner-Slider Block
   ============================================================ */
.cms-banner-slider {
	position: relative;
}
.cms-banner-slider,
.cms-banner-slider-track,
.cms-banner-slider .slick-list,
.cms-banner-slider .slick-track,
.cms-banner-slider-slide,
.cms-banner-slider-img,
.cms-banner-slider-link {
	border-radius: 0 !important;
	overflow: hidden;
}
.cms-banner-slider-track {
	position: relative;
}
.cms-banner-slider-link {
	display: block;
	color: inherit;
	text-decoration: none;
}
/* Slide-Basis ---------------------------------------------------------------- */
.cms-banner-slider-slide {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 0;
}
.cms-banner-slider-img {
	display: block;
	width: 100%;
	height: auto;
}

/* Content-Overlay (alle Modi) ------------------------------------------------ */
.cms-banner-slider-content {
	pointer-events: none;
}
.cms-banner-slider-content > * {
	pointer-events: auto;
}

/* Optimal: Bild im Container, Original-Seitenverhältnis -------------------- */
.cms-banner-slider-mode-optimal .cms-banner-slider-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem 1rem;
	z-index: 1;
}

/* Volle Breite: Bild proportional, ohne Höhenlimit ------------------------- */
.cms-banner-slider-mode-full-width .cms-banner-slider-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem 1rem;
	z-index: 1;
}

/* Volle Breite (max. 500px): Bild proportional, Überlauf verborgen --------- */
.cms-banner-slider-mode-full-width-capped .cms-banner-slider-slide {
	max-height: 500px;
}
.cms-banner-slider-mode-full-width-capped .cms-banner-slider-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem 1rem;
	z-index: 1;
}

/* Vollbild: 100vh ---------------------------------------------------------- */
.cms-banner-slider-mode-fullscreen .cms-banner-slider-slide {
	height: 100vh;
}
.cms-banner-slider-mode-fullscreen .cms-banner-slider-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cms-banner-slider-mode-fullscreen .cms-banner-slider-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 2rem 1rem;
	z-index: 1;
}
.cms-banner-slider-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.3);
	pointer-events: none;
}
.cms-banner-slider-content {
	position: relative;
	z-index: 1;
	max-width: 720px;
	/* Default-Farbe weiß — Banner liegen meist auf Bildern. Inline-Style aus
	   render_block_banner_slider() überschreibt das pro Slide bei Bedarf. */
	color: #ffffff;
}
.cms-banner-slider-headline {
	font-family: var(--shop-font-accent);
	font-weight: 400;
	font-size: 2.2rem;
	line-height: 1.15;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: inherit;
}
.cms-banner-slider-subline {
	font-size: 1.05rem;
	line-height: 1.5;
	margin-bottom: 1.25rem;
	color: inherit;
	opacity: 0.92;
}
.cms-banner-slider-btn {
	display: inline-block;
	padding: 0.55rem 1.5rem;
	border: 1px solid currentColor;
	color: inherit;
	font-family: var(--shop-font-heading);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}
a.cms-banner-slider-btn:hover,
.cms-banner-slider-link:hover .cms-banner-slider-btn {
	background: rgba(255,255,255,0.15);
	color: inherit;
	text-decoration: none;
}
/* Slick-Pfeile/Punkte über das Bild legen */
.cms-banner-slider .slick-prev,
.cms-banner-slider .slick-next {
	z-index: 2;
	width: 44px;
	height: 44px;
}
.cms-banner-slider .slick-prev { left: 1rem; }
.cms-banner-slider .slick-next { right: 1rem; }

/* Pfeil-Symbole durch FontAwesome chevron ersetzen */
.cms-banner-slider .slick-prev:before,
.cms-banner-slider .slick-next:before {
	font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome";
	font-weight: 900;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	opacity: 0.9;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cms-banner-slider .slick-prev:before { content: "\f053"; }
.cms-banner-slider .slick-next:before { content: "\f054"; }
.cms-banner-slider .slick-prev:hover:before,
.cms-banner-slider .slick-next:hover:before {
	opacity: 1;
}
.cms-banner-slider .slick-dots {
	position: absolute;
	bottom: 1rem;
	left: 0;
	right: 0;
	margin: 0;
	z-index: 2;
}

/* ============================================================
   Kategorie-Grid Block (Bestseller-Kategorien)
   ============================================================ */
.cms-category-grid-headline {
	text-align: center;
	margin-bottom: 1rem;
	font-family: var(--shop-font-accent);
	font-weight: 400;
}
.cms-category-grid-subheadline {
	text-align: center;
	margin-top: 0;
	margin-bottom: 2rem;
	font-weight: 400;
	color: var(--shop-color-muted, #6c757d);
}
.cms-category-grid .listing-header {
	margin-bottom: 2rem;
}
.cms-category-grid-list {
	display: grid;
	gap: 1.25rem;
	/* Default: 2 Spalten mobile */
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) {
	.cms-category-grid-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
	.cms-category-grid-list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
	/* Default ohne Modifier-Klasse: 5 Spalten (backward-compat) */
	.cms-category-grid-list { grid-template-columns: repeat(5, 1fr); }
	/* Konfigurierbare Spaltenanzahl ab 992 px */
	.cms-category-grid-list--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.cms-category-grid-list--cols-4 { grid-template-columns: repeat(4, 1fr); }
	.cms-category-grid-list--cols-5 { grid-template-columns: repeat(5, 1fr); }
}
/* listing-subcat-card innerhalb des CMS-Grids: Flex-Sizing aus shop.css aufheben */
.cms-category-grid-list .listing-subcat-card {
	flex: unset;
	max-width: none;
}
.cms-category-grid-card {
	display: block;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cms-category-grid-card:hover {
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	transform: translateY(-2px);
	color: inherit;
}
.cms-category-grid-card-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafafa;
}
.cms-category-grid-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.75rem;
}
.cms-category-grid-noimage {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
}
.cms-category-grid-card-label {
	background: var(--shop-cta);
	color: #fff;
	text-align: center;
	padding: 0.6rem 0.5rem;
	font-family: var(--shop-font-heading);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-top-left-radius: 1px;
	border-top-right-radius: 1px;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	margin: -1.25rem 3px 3px;
	position: relative;
	z-index: 1;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ----- Layout-Variante: detailed (Bild + Titel + Bullets) ----- */
.cms-category-grid-card--detailed {
	display: flex;
	flex-direction: column;
}
.cms-category-grid-card--detailed .cms-category-grid-card-image {
	background: #fafafa;
}
.cms-category-grid-card--detailed .cms-category-grid-card-image img {
	object-fit: cover;
	padding: 0;
}
.cms-category-grid-card-body {
	padding: 0.85rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.cms-category-grid-card-title {
	font-family: var(--shop-font-heading);
	font-weight: 600;
	font-size: 1rem;
	color: var(--shop-dark);
	line-height: 1.3;
}
.cms-category-grid-card-bullets {
	list-style: none;
	padding: 0;
	margin: 0;
}
.cms-category-grid-card-bullets li {
	position: relative;
	padding-left: 0.85rem;
	margin-bottom: 0.2rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--shop-gray-600);
}
.cms-category-grid-card-bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--shop-primary);
}

/* ============================================================
   Bild-Baustein (Einzelbild)
   Breite richtet sich nach Container/Bootstrap-Spalte.
   ============================================================ */
.cms-image-section {
	text-align: center;
}
.cms-image-link {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	text-decoration: none;
	color: inherit;
}
.cms-image-block {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cms-image-block img {
	display: block;
	width: 100%;
	height: 100%;
	transition: transform 0.3s ease;
	/* Rundung kommt ausschließlich vom Parent-Container über die Modifier-Klassen
	   .cms-image-block--rounded-* (Container hat overflow:hidden). Sonst würde die
	   globale Regel `.cms-page-content img { border-radius: var(--shop-radius-lg) }`
	   den vom Editor gewählten Wert "Keine" übersteuern. */
	border-radius: 0;
}

/* Format: proportional = Original-Seitenverhältnis */
.cms-image-block--fit-proportional img {
	height: auto;
	object-fit: contain;
}

/* Format: quadratisch (beschnitten) */
.cms-image-block--fit-square {
	aspect-ratio: 1 / 1;
}
.cms-image-block--fit-square img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Rundungen */
.cms-image-block--rounded-sm     { border-radius: 4px; }
.cms-image-block--rounded-md     { border-radius: 10px; }
.cms-image-block--rounded-lg     { border-radius: 20px; }
.cms-image-block--rounded-circle { border-radius: 50%; }

/* Hover-Effekte */
.cms-image-block--hover-zoom:hover img {
	transform: scale(1.05);
}
.cms-image-block--hover-border:hover {
	box-shadow: 0 0 0 3px var(--cms-image-border-color, rgba(140, 91, 91, 0.5));
}

/* Link-Container soll Hover-Effekte auch ohne direkten Hover auf .cms-image-block auslösen */
.cms-image-link:hover .cms-image-block--hover-zoom img {
	transform: scale(1.05);
}
.cms-image-link:hover .cms-image-block--hover-border {
	box-shadow: 0 0 0 3px var(--cms-image-border-color, rgba(140, 91, 91, 0.5));
}

/* Ansicht: Bild-Link mit Overlay ------------------------------------------- */
.cms-image-overlay-link {
	display: block;
	text-decoration: none;
	color: #ffffff;
}
.cms-image-overlay-link .cms-image-block {
	position: relative;
}
.cms-image-overlay-link .cms-image-block img {
	transition: transform 1s ease;
}
.cms-image-overlay-link:hover .cms-image-block img {
	transform: scale(1.05);
}
.cms-image-overlay-link .cms-image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}
.cms-image-overlay-link .cms-image-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(120,40,40,0.5) 0%, rgba(80,20,20,0.1) 50%, transparent 100%);
	opacity: 0;
	transition: opacity 1s ease;
}
.cms-image-overlay-link:hover .cms-image-overlay::after {
	opacity: 1;
}
.cms-image-overlay-content {
	position: absolute;
	bottom: 5%;
	left: 0;
	padding: 0 1.25rem;
	z-index: 2;
	pointer-events: none;
}
.cms-image-overlay-link h3.cms-image-overlay-headline {
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.3;
	color: #ffffff !important;
	margin: 0;
	white-space: nowrap;
}
.cms-image-overlay-link h3.cms-image-overlay-headline::after {
	content: "";
	display: inline-block;
	vertical-align: middle;
	margin-left: 12px;
	width: 80px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 12'%3E%3Cline x1='0' y1='6' x2='130' y2='6' stroke='white' stroke-width='1'/%3E%3Cpolyline points='126,1 134,6 126,11' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 140px 12px;
	background-position: right center;
	background-repeat: no-repeat;
	transition: width 1s ease;
}
.cms-image-overlay-link:hover h3.cms-image-overlay-headline::after {
	width: 140px;
}
