/* =============================================================
   CanDoc-Bereich – Design nach Vorlage
   Namensraum: .cd-*  (Startseiten-Sektionen und Katalog)
   ============================================================= */

:root {
	--cd-navy:        #0b2440;
	--cd-navy-deep:   #071c3a;
	--cd-green:       #0f8365;   /* WCAG AA: 4,7:1 auf Weiß – auch als Textfarbe nutzbar */
	--cd-green-dark:  #0a6e52;
	--cd-green-soft:  #e3f2ea;
	--cd-mint:        #eef7f2;
	--cd-mint-2:      #f4f9f6;
	--cd-line:        #e2ebe6;
	--cd-text:        #4d5d6d;
	--cd-muted:       #5f6d7a;   /* WCAG AA: 5,3:1 auf Weiß */
	--cd-white:       #ffffff;
	--cd-radius:      18px;
	--cd-radius-lg:   26px;
	--cd-shadow:      0 14px 40px rgba(11, 36, 64, .07);
	--cd-shadow-sm:   0 4px 16px rgba(11, 36, 64, .06);

	/* Ein Maß für Kopfzeile, Inhalt und Fußzeile – sonst stehen Logo und
	   Überschriften auf unterschiedlichen Fluchtlinien. */
	--cd-maxw:        1280px;
	--cd-gutter:      clamp(16px, 3vw, 40px);
}

/* -------------------------------------------------------------
   Grundbausteine
   ------------------------------------------------------------- */
.cd-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.cd-section { padding: 64px 0; }
.cd-section--mint { background: var(--cd-mint); }
.cd-section--white { background: var(--cd-white); }

/* Maßgebende Inhaltsbox. Die Außenabstände stecken in der Breite, nicht im
   Innenabstand – nur so stehen Logo, Überschriften und Karten auf allen
   Seiten auf derselben Linie, egal welches Template sie ausgibt. */
.cd-inner {
	width: min(100% - 2 * var(--cd-gutter), var(--cd-maxw));
	margin-inline: auto;
	padding-inline: 0;
}

.cd-eyebrow {
	margin: 0 0 12px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cd-green);
}

.cd-h1, .cd-h2, .cd-h3 { color: var(--cd-navy-deep); font-weight: 800; letter-spacing: -.02em; }
.cd-h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 14px; line-height: 1.18; }
.cd-h3 { font-size: 1.12rem; margin: 0 0 8px; }

.cd-lead { font-size: 1.02rem; color: var(--cd-text); margin: 0 0 8px; }

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.cd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 12px;
	border: 1.5px solid transparent;
	font-weight: 700;
	font-size: .96rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.cd-btn:focus-visible { outline: 3px solid var(--cd-green); outline-offset: 3px; }
.cd-btn--primary { background: var(--cd-green); color: #fff; }
.cd-btn--primary:hover, .cd-btn--primary:focus { background: var(--cd-green-dark); color: #fff; }
.cd-btn--ghost { background: #fff; color: var(--cd-navy-deep); border-color: var(--cd-line); }
.cd-btn--ghost:hover, .cd-btn--ghost:focus { border-color: var(--cd-green); color: var(--cd-green-dark); }
.cd-btn--outline { background: transparent; color: var(--cd-green-dark); border-color: var(--cd-green); }
.cd-btn--outline:hover { background: var(--cd-green-soft); }
.cd-btn--block { width: 100%; }
.cd-btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.cd-ico-ext { flex: none; opacity: .85; }

/* -------------------------------------------------------------
   Startseite: Hero
   ------------------------------------------------------------- */
.cd-hero {
	position: relative;
	background: var(--cd-mint);
	padding: 56px 0 64px;
	overflow: hidden;
}
.cd-hero::before {
	content: "";
	position: absolute;
	top: -120px; right: -80px;
	width: 420px; height: 420px;
	border-radius: 50%;
	background: #dff0e7;
	opacity: .7;
	pointer-events: none;
}
.cd-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	gap: 48px;
	align-items: center;
}
.cd-hero__title {
	margin: 0 0 18px;
	font-size: clamp(2.1rem, 5.6vw, 3.5rem);
	line-height: 1.07;
	font-weight: 800;
	letter-spacing: -.028em;
	color: var(--cd-navy-deep);
}
.cd-hero__title span { display: block; }
.cd-hero__text {
	margin: 0 0 26px;
	max-width: 470px;
	font-size: 1.04rem;
	color: var(--cd-text);
}
.cd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cd-hero__note { margin: 0; font-size: .86rem; color: var(--cd-muted); }

.cd-hero__media { position: relative; }
.cd-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--cd-radius-lg);
	box-shadow: var(--cd-shadow);
}
.cd-hero__card {
	position: absolute;
	left: -28px;
	bottom: -24px;
	min-width: 236px;
	padding: 16px 20px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 16px 38px rgba(11, 36, 64, .14);
}
.cd-hero__card-label { margin: 0 0 2px; font-size: .82rem; color: var(--cd-muted); }
.cd-hero__card-price { margin: 0; font-size: 2rem; font-weight: 800; color: var(--cd-navy-deep); line-height: 1.1; }
.cd-hero__card-meta { margin: 4px 0 0; font-size: .78rem; color: var(--cd-text); }
.cd-hero__card-note { margin: 2px 0 0; font-size: .72rem; color: var(--cd-muted); }

/* -------------------------------------------------------------
   Startseite: Vorteile
   ------------------------------------------------------------- */
.cd-usps { background: #fff; padding: 36px 0; }
.cd-usps__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}
.cd-usp {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 10px 28px;
	border-left: 1px solid var(--cd-line);
}
.cd-usp:first-child { border-left: 0; padding-left: 0; }
.cd-usp__ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border-radius: 12px;
	background: var(--cd-green-soft);
	color: var(--cd-green);
}
.cd-usp__title { margin: 0 0 2px; font-size: .98rem; font-weight: 700; color: var(--cd-navy-deep); }
.cd-usp__text { margin: 0; font-size: .88rem; color: var(--cd-text); }

/* -------------------------------------------------------------
   Startseite: Ablauf
   ------------------------------------------------------------- */
.cd-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	align-items: stretch;
	margin-top: 28px;
}
.cd-step {
	position: relative;
	padding: 26px 22px 24px;
	background: var(--cd-mint-2);
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius);
	text-align: center;
}
.cd-step__num {
	position: absolute;
	top: 16px; left: 16px;
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--cd-green-soft);
	color: var(--cd-green-dark);
	font-size: .78rem; font-weight: 800;
}
.cd-step__ico { color: var(--cd-green); margin: 6px 0 14px; }
.cd-step__title { margin: 0 0 6px; font-size: 1.06rem; font-weight: 800; color: var(--cd-navy-deep); }
.cd-step__text { margin: 0; font-size: .9rem; color: var(--cd-text); }
.cd-step__arrow {
	position: absolute;
	top: 50%; right: -17px;
	transform: translateY(-50%);
	color: var(--cd-green);
	background: #fff;
	border-radius: 50%;
	z-index: 2;
}

/* -------------------------------------------------------------
   Startseite: Wege im Vergleich
   ------------------------------------------------------------- */
.cd-ways__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-top: 26px;
}
.cd-way {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px 26px 24px;
	background: #fff;
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius);
	box-shadow: var(--cd-shadow-sm);
}
.cd-way--featured { border: 2px solid var(--cd-green); }
.cd-way__flag {
	position: absolute;
	top: 20px; right: 20px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--cd-green);
	color: #fff;
	font-size: .74rem;
	font-weight: 700;
}
.cd-way__label {
	margin: 0 0 10px;
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--cd-muted);
}
.cd-way__title { margin: 0 0 10px; font-size: 1.45rem; font-weight: 800; color: var(--cd-navy-deep); }
.cd-way__price { margin: 0; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--cd-navy-deep); }
.cd-way__meta { margin: 10px 0 16px; font-size: .86rem; color: var(--cd-text); }
.cd-way__meta b { color: var(--cd-navy-deep); font-weight: 600; }
.cd-way__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.cd-way__list li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: var(--cd-text); }
.cd-way__list svg { flex: none; margin-top: 2px; color: var(--cd-green); }
.cd-way .cd-btn { margin-top: auto; }
.cd-ways__note { margin: 20px 0 0; text-align: center; font-size: .82rem; color: var(--cd-muted); }
.cd-ways__note a { color: inherit; }

/* -------------------------------------------------------------
   Startseite: Ratgeberkarten
   ------------------------------------------------------------- */
.cd-topics__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 26px;
}
.cd-topic { display: flex; flex-direction: column; }
.cd-topic__media {
	display: block;
	border-radius: var(--cd-radius);
	overflow: hidden;
	background: var(--cd-mint);
	aspect-ratio: 16 / 10;
}
.cd-topic__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-topic__title { margin: 16px 0 6px; font-size: 1.08rem; font-weight: 800; color: var(--cd-navy-deep); }
.cd-topic__title a { color: inherit; text-decoration: none; }
.cd-topic__title a:hover { color: var(--cd-green-dark); }
.cd-topic__text { margin: 0 0 12px; font-size: .9rem; color: var(--cd-text); }
.cd-topic__link {
	margin-top: auto;
	font-weight: 700;
	font-size: .92rem;
	color: var(--cd-green-dark);
	text-decoration: none;
}
.cd-topic__link:hover { text-decoration: underline; }

/* Illustration „Nachweiszeiten“ */
.cd-illu { width: 100%; height: 100%; display: block; background: var(--cd-mint); }

/* -------------------------------------------------------------
   Startseite: FAQ
   ------------------------------------------------------------- */
.cd-faq__list { margin-top: 24px; display: grid; gap: 12px; }
.cd-faq__item {
	background: #fff;
	border: 1px solid var(--cd-line);
	border-radius: 14px;
	overflow: hidden;
}
.cd-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 22px;
	background: none;
	border: 0;
	text-align: left;
	font-size: 1rem;
	font-weight: 700;
	color: var(--cd-navy-deep);
	cursor: pointer;
}
.cd-faq__q:focus-visible { outline: 3px solid var(--cd-green); outline-offset: -3px; }
.cd-faq__sign { flex: none; width: 20px; height: 20px; position: relative; color: var(--cd-muted); }
.cd-faq__sign::before, .cd-faq__sign::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	background: currentColor; transform: translate(-50%, -50%);
}
.cd-faq__sign::before { width: 14px; height: 2px; }
.cd-faq__sign::after { width: 2px; height: 14px; transition: opacity .18s ease; }
.cd-faq__q[aria-expanded="true"] .cd-faq__sign::after { opacity: 0; }
.cd-faq__a { padding: 0 22px 20px; font-size: .94rem; color: var(--cd-text); }
.cd-faq__a p { margin: 0 0 10px; }
.cd-faq__a p:last-child { margin-bottom: 0; }
.cd-faq__item[data-open="false"] .cd-faq__a { display: none; }

/* -------------------------------------------------------------
   Abschlussbanner
   ------------------------------------------------------------- */
.cd-cta {
	background: var(--cd-navy);
	color: #fff;
	padding: 40px 0;
}
.cd-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.cd-cta__title { margin: 0 0 6px; font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.cd-cta__text { margin: 0; color: #c9d8e4; font-size: .96rem; }

/* -------------------------------------------------------------
   Katalog: Kopf, Layout
   ------------------------------------------------------------- */
.cd-wrap { padding: 28px 0 72px; background: #fff; }
.cd-head { max-width: 820px; margin: 10px 0 28px; }
.cd-head__title { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; color: var(--cd-navy-deep); }
.cd-head__text { margin: 0 0 14px; color: var(--cd-text); }

.cd-layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

/* Filter */
.cd-filters {
	position: sticky;
	top: 90px;
	padding: 20px;
	background: var(--cd-mint-2);
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius);
}
.cd-filters__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cd-filters__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--cd-navy-deep); }
.cd-filters__reset { font-size: .84rem; color: var(--cd-green-dark); }
.cd-field { margin-bottom: 16px; }
.cd-field__row { display: flex; align-items: center; gap: 8px; }
.cd-label { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 700; color: var(--cd-navy-deep); }
.cd-input, .cd-select {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--cd-line);
	border-radius: 10px;
	background: #fff;
	color: var(--cd-navy-deep);
	font-size: .92rem;
}
.cd-input:focus, .cd-select:focus { outline: 2px solid var(--cd-green); outline-offset: 1px; border-color: var(--cd-green); }
.cd-input--sm { min-width: 0; }
.cd-hint { margin: 6px 0 0; font-size: .76rem; color: var(--cd-muted); }

/* Werkzeugleiste */
.cd-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.cd-count { margin: 0; color: var(--cd-text); font-size: .95rem; }
.cd-count strong { color: var(--cd-navy-deep); }
.cd-count__note { margin-left: 6px; font-size: .82rem; color: var(--cd-muted); }
.cd-sort { display: flex; gap: 8px; align-items: center; }
.cd-sort .cd-select { width: auto; min-width: 210px; }

/* Raster und Karten */
/* Das Raster füllt die verfügbare Breite selbst auf – bei breitem Fenster
   vier Karten, bei schmalem entsprechend weniger. */
.cd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 20px;
}
/* Feste Vierteilung dort, wo genau vier Karten stehen (Startseite, Detailseite). */
.cd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cd-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius);
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease;
}
.cd-card:hover { box-shadow: var(--cd-shadow); }
.cd-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--cd-mint);
	overflow: hidden;
}
.cd-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-card__img--placeholder { display: grid; place-items: center; color: #b9cfc3; }
.cd-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.cd-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cd-card__aroma { font-size: .78rem; color: var(--cd-muted); }
.cd-card__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.cd-card__title a { color: var(--cd-navy-deep); text-decoration: none; }
.cd-card__title a:hover { color: var(--cd-green-dark); }
.cd-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.cd-card__more { font-size: .88rem; font-weight: 700; color: var(--cd-green-dark); text-decoration: none; white-space: nowrap; }
.cd-card__more:hover { text-decoration: underline; }

/* Badges */
.cd-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--cd-mint);
	color: #39505f;
	font-size: .76rem;
	line-height: 1.3;
	white-space: nowrap;
}
.cd-chip b { font-weight: 700; color: var(--cd-navy-deep); }
.cd-chip--link { text-decoration: none; border: 1px solid var(--cd-line); }
.cd-chip--link:hover { border-color: var(--cd-green); color: var(--cd-green-dark); }
.cd-chip--link span { color: var(--cd-muted); font-size: .72rem; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; }
.cd-chips__label { font-size: .86rem; font-weight: 700; color: var(--cd-navy-deep); }

.cd-avail {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .76rem;
	font-weight: 700;
}
.cd-avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cd-avail--available { background: #e3f2ea; color: #0a6e52; }
.cd-avail--soldout   { background: #f2f4f6; color: #5c6775; }
.cd-avail--unclear   { background: #fdf2e2; color: #8a5810; }

/* Preis */
.cd-price { margin: 0; color: var(--cd-navy-deep); font-weight: 800; font-size: 1.12rem; }
.cd-price__from { font-size: .8rem; font-weight: 600; color: var(--cd-muted); }
.cd-price__unit { font-size: .82rem; font-weight: 600; color: var(--cd-muted); }
.cd-price--lg { font-size: 2.1rem; }
.cd-price--none { font-size: .92rem; font-weight: 600; color: var(--cd-muted); }
.cd-price__note { margin: 6px 0 0; font-size: .84rem; color: var(--cd-muted); }

/* Blätterung */
.cd-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.cd-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px; min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--cd-line);
	border-radius: 10px;
	color: var(--cd-navy-deep);
	text-decoration: none;
	font-weight: 600;
}
.cd-pagination .page-numbers:hover { border-color: var(--cd-green); color: var(--cd-green-dark); }
.cd-pagination .page-numbers.current { background: var(--cd-green); border-color: var(--cd-green); color: #fff; }
.cd-pagination .page-numbers.dots { border-color: transparent; }

/* Leerzustand */
.cd-empty { padding: 44px 24px; text-align: center; background: var(--cd-mint-2); border-radius: var(--cd-radius); }
.cd-empty h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--cd-navy-deep); }
.cd-empty p { margin: 0 0 14px; color: var(--cd-text); }

/* Hinweise */
.cd-disclosure {
	margin: 0 0 6px;
	font-size: .82rem;
	line-height: 1.55;
	color: var(--cd-muted);
}
.cd-disclosure__tag {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 7px;
	border-radius: 5px;
	background: #f2f4f6;
	color: #5c6b7c;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.cd-stamp { margin: 18px 0 0; font-size: .8rem; color: var(--cd-muted); }
.cd-note { margin: 10px 0 0; font-size: .84rem; color: var(--cd-text); }
.cd-imgnote { margin: 8px 0 0; font-size: .76rem; color: var(--cd-muted); }
.cd-warning {
	margin: 18px 0;
	padding: 14px 16px;
	border-left: 3px solid #d79a2b;
	background: #fdf6e9;
	border-radius: 0 10px 10px 0;
	font-size: .9rem;
	color: #6d5118;
}

/* -------------------------------------------------------------
   Detailseite
   ------------------------------------------------------------- */
.cd-detail {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 40px;
	margin-top: 14px;
}
.cd-detail__media { grid-row: span 2; }
.cd-detail__media img {
	width: 100%;
	height: auto;
	border-radius: var(--cd-radius-lg);
	background: var(--cd-mint);
	display: block;
}
.cd-detail__title { margin: 0 0 14px; font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--cd-navy-deep); }
.cd-detail__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cd-detail__price { margin-bottom: 20px; }
.cd-detail__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.cd-detail__body { grid-column: 2; }

.cd-variants { margin: 22px 0; }
.cd-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cd-table th, .cd-table td { padding: 9px 12px; border-bottom: 1px solid var(--cd-line); text-align: left; }
.cd-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cd-muted); }
.cd-table--facts th { width: 180px; color: var(--cd-navy-deep); font-weight: 600; }
.cd-prose { color: var(--cd-text); }
.cd-prose p { margin: 0 0 12px; }
.cd-editorial {
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--cd-mint);
	border-radius: 12px;
	color: var(--cd-navy-deep);
	font-size: .94rem;
}

/* -------------------------------------------------------------
   Angebotsvorschau auf der Startseite
   ------------------------------------------------------------- */
.cd-preview-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.cd-preview-head__text { max-width: 620px; }

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 1100px) {
	.cd-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cd-layout { grid-template-columns: 234px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 960px) {
	.cd-hero { padding: 40px 0 48px; }
	.cd-hero__grid { grid-template-columns: 1fr; gap: 34px; }
	.cd-hero__text { max-width: none; }
	.cd-hero__card { left: 12px; bottom: -18px; }
	.cd-usps__grid { grid-template-columns: 1fr; gap: 18px; }
	.cd-usp { border-left: 0; border-top: 1px solid var(--cd-line); padding: 16px 0 0; }
	.cd-usp:first-child { border-top: 0; padding-top: 0; }
	.cd-steps__grid { grid-template-columns: 1fr; }
	.cd-step__arrow { display: none; }
	.cd-ways__grid { grid-template-columns: 1fr; }
	.cd-topics__grid { grid-template-columns: 1fr; gap: 28px; }
	.cd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cd-layout { grid-template-columns: 1fr; }
	.cd-filters { position: static; }
	.cd-detail { grid-template-columns: 1fr; gap: 26px; }
	.cd-detail__media { grid-row: auto; }
	.cd-detail__body { grid-column: 1; }
}

@media (max-width: 600px) {
	.cd-section { padding: 44px 0; }
	.cd-hero__actions .cd-btn { width: 100%; }
	.cd-hero__card { position: static; margin-top: 16px; width: 100%; }
	.cd-grid, .cd-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
	.cd-card__body { padding: 12px; gap: 6px; }
	.cd-toolbar { flex-direction: column; align-items: stretch; }
	.cd-sort { flex-direction: column; align-items: stretch; }
	.cd-sort .cd-select { width: 100%; min-width: 0; }
	.cd-cta__inner { flex-direction: column; align-items: flex-start; }
	.cd-cta .cd-btn { width: 100%; }
	.cd-table--facts th { width: 44%; }
	.cd-detail__cta .cd-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.cd-btn, .cd-card { transition: none; }
}

/* =============================================================
   Einbindung ins bestehende Theme
   ============================================================= */

/* Schmale Informationsleiste über dem Header */
.cd-topbar {
	background: var(--cd-navy-deep);
	color: #dbe6f0;
}
.cd-topbar__text {
	margin: 0;
	padding: 7px 0;
	font-size: .78rem;
	letter-spacing: .01em;
}

/* Durchgehendes Layout statt der alten Karten-Shell. Gilt für die Startseite,
   den CanDoc-Bereich und alle übrigen Seiten, sobald das Design aktiv ist. */
body.cd-full { background: #fff; }
body.cd-full .dgt-page { padding: 0; }
body.cd-full .dgt-shell {
	max-width: none;
	border-radius: 0;
	box-shadow: none;
	background: #fff;
}
body.cd-full .dgt-header { border-radius: 0; }
body.cd-full .dgt-footer {
	border-top: 1px solid var(--cd-line);
	margin: 48px 0 0;
	width: auto;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Eine Fluchtlinie für Kopfzeile, Inhalt und Fußzeile.
   Die Shell läuft über die volle Breite, damit Abschnitte mit eigenem
   Hintergrund (Hero, Abschlussbanner) randlos bleiben. Begrenzt wird
   stattdessen jeder Abschnitt im Inhaltsbereich. */
body.cd-full .dgt-header-inner,
body.cd-full .dgt-footer .container,
body.cd-full .dgt-main > * {
	width: min(100% - 2 * var(--cd-gutter), var(--cd-maxw));
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
}
/* Abschnitte des neuen Designs bringen ihre eigene Begrenzung mit. */
body.cd-full .dgt-main > .cd-hero,
body.cd-full .dgt-main > .cd-usps,
body.cd-full .dgt-main > .cd-section,
body.cd-full .dgt-main > .cd-cta,
body.cd-full .dgt-main > .cd-wrap,
body.cd-full .dgt-main > .e4 {
	width: 100%;
	max-width: none;
}

/* Innenabstände der bestehenden Abschnitte auf das gemeinsame Maß bringen,
   damit Überschriften auf derselben Linie stehen wie das Logo. */
/* Verschachtelte Container der bestehenden Templates nicht doppelt einrücken. */
body.cd-full .dgt-main .container,
body.cd-full .dgt-main .container-fluid,
body.cd-full .dgt-main .dgt-pagehead,
body.cd-full .dgt-main .dgt-hero-inner {
	max-width: none;
	padding-inline: 0;
}
@media (max-width: 640px) {
	body.cd-full .dgt-main > .cd-wrap .container,
	body.cd-full .cd-inner { width: min(100% - 2 * var(--cd-gutter), var(--cd-maxw)); }
}

/* Header-CTA */
.dgt-actions .cd-btn { white-space: nowrap; }

/* Footer-Hinweis */
.cd-footer-note { font-size: .8rem; color: var(--cd-muted); }

/* Container der Katalogseiten an das gemeinsame Maß angleichen */
.cd-wrap .container {
	width: min(100% - 2 * var(--cd-gutter), var(--cd-maxw));
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
}

/* Abschnitte ohne eigenen Hintergrund (Service-Seite) */
.cd-section--plain { padding: 40px 0 0; }
.cd-section--plain:first-of-type { padding-top: 24px; }

/* Aufzählungen im Fließtext */
.cd-list { margin: 14px 0 0; padding-left: 20px; color: var(--cd-text); }
.cd-list li { margin-bottom: 8px; }

/* Querverweise */
.cd-related { padding: 48px 0 0; }
.cd-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}
.cd-related__item {
	display: block;
	padding: 16px 18px;
	background: var(--cd-mint-2);
	border: 1px solid var(--cd-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color .18s ease;
}
.cd-related__item:hover { border-color: var(--cd-green); }
.cd-related__item strong { display: block; margin-bottom: 4px; color: var(--cd-navy-deep); font-size: .96rem; }
.cd-related__item span { color: var(--cd-text); font-size: .85rem; }

/* Breadcrumb im CanDoc-Bereich etwas luftiger */
.cd-wrap .dgt-breadcrumb { margin-bottom: 14px; }

@media (max-width: 960px) {
	.cd-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.cd-related__grid { grid-template-columns: 1fr; }
	.cd-wrap .container { padding-inline: 16px; }
	.cd-inner { padding-inline: 16px; }
}

/* Kopfzeile zwischen Tablet und Desktop entlasten: Navigation und
   CanDoc-Schaltfläche teilen sich dort wenig Platz. */
@media (min-width: 768px) and (max-width: 1050px) {
	body.cd-design .dgt-nav .nav-link { font-size: .86rem; padding-left: .5rem; padding-right: .5rem; }
	body.cd-design .dgt-actions .cd-btn { min-height: 38px; padding: 7px 12px; font-size: .84rem; }
	body.cd-design .dgt-header-inner { gap: 8px; }
}
@media (max-width: 420px) {
	.cd-hero__title { font-size: 1.95rem; }
	.cd-way__price { font-size: 2.2rem; }
	.cd-topbar__text { font-size: .72rem; }
}

/* Wortmarke (Seitenverhältnis 6,7:1, Datei 268x40).
   Die Auswahl ist bewusst so spezifisch wie die Theme-Regel .dgt-brand img,
   sonst greift die Höhe für kleine Bildschirme nicht. */
.dgt-brand .cd-brand__img,
.dgt-footer .cd-brand__img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 100%;
}
.dgt-footer .cd-brand__img--footer { height: 34px; margin-bottom: 14px; }

@media (max-width: 640px) {
	.dgt-brand .cd-brand__img { height: 30px; }
	.dgt-footer .cd-brand__img--footer { height: 30px; }
}
@media (min-width: 641px) and (max-width: 991.98px) {
	.dgt-brand .cd-brand__img { height: 34px; }
}

/* -------------------------------------------------------------
   Informationsteil der Startseite
   Raster über die volle Inhaltsbreite statt einer langen Textspalte.
   ------------------------------------------------------------- */
.cd-seo { border-top: 1px solid var(--cd-line); }
.cd-seo p { margin: 0 0 14px; }
.cd-seo a { color: var(--cd-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.cd-seo a:hover { color: var(--cd-navy-deep); }
.cd-seo strong { color: var(--cd-navy-deep); font-weight: 600; }

/* Kopfzeile: Einleitung und Eckdaten */
.cd-seo__top {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-bottom: 44px;
}
.cd-seo__intro .cd-lead { max-width: 56ch; margin: 0; }

.cd-facts {
	padding: 22px 24px;
	background: var(--cd-mint);
	border-radius: var(--cd-radius);
}
.cd-facts__title {
	margin: 0 0 14px !important;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cd-green-dark);
}
.cd-facts__list { margin: 0; display: grid; gap: 2px; }
.cd-facts__list > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(11, 36, 64, .08);
}
.cd-facts__list > div:last-child { border-bottom: 0; }
.cd-facts__list dt { font-size: .9rem; color: var(--cd-text); }
.cd-facts__list dd { margin: 0; font-size: 1.14rem; color: var(--cd-navy-deep); white-space: nowrap; }
.cd-facts__list dd a { text-decoration: none; }
.cd-facts__note { margin: 14px 0 0 !important; font-size: .8rem; color: var(--cd-muted); }

/* Drei Textsäulen */
.cd-seo__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	padding-top: 36px;
	border-top: 1px solid var(--cd-line);
}
.cd-seo__col { color: var(--cd-text); font-size: .95rem; line-height: 1.68; }
.cd-seo__h3 {
	margin: 0 0 12px;
	font-size: 1.14rem;
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.3;
	color: var(--cd-navy-deep);
}
.cd-seo__num {
	display: inline-grid;
	place-items: center;
	width: 26px; height: 26px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--cd-green-soft);
	color: var(--cd-green-dark);
	font-size: .7rem;
	font-weight: 800;
	vertical-align: 2px;
}
.cd-seo__more { margin: 0 !important; font-weight: 700; font-size: .92rem; }
.cd-seo__more a { text-decoration: none; }
.cd-seo__more a:hover { text-decoration: underline; }

/* Zweispaltige Blöcke */
.cd-seo__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 40px;
	align-items: center;
	margin-top: 44px;
	padding-top: 36px;
	border-top: 1px solid var(--cd-line);
}
.cd-seo__split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.cd-seo__split-text { color: var(--cd-text); font-size: .95rem; line-height: 1.68; }

/* Bildkarten der Darreichungsformen */
.cd-seo__figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cd-seo__figure { margin: 0; }
.cd-seo__figure-media {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: var(--cd-mint);
	border: 1px solid var(--cd-line);
	transition: border-color .18s ease;
}
.cd-seo__figure-media:hover { border-color: var(--cd-green); }
.cd-seo__figure-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-seo__figure-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #b9cfc3; }
.cd-seo__figure figcaption { margin-top: 9px; font-size: .86rem; line-height: 1.45; }
.cd-seo__figure figcaption a { text-decoration: none; }
.cd-seo__figure figcaption strong { display: block; color: var(--cd-navy-deep); }
.cd-seo__figure figcaption span { color: var(--cd-muted); font-size: .8rem; }
.cd-seo__figcredit { margin: 14px 0 0 !important; font-size: .8rem; color: var(--cd-muted); }

/* Breites Motiv */
.cd-seo__wide { margin: 0; }
.cd-seo__wide img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--cd-radius);
	display: block;
}

/* Verweisliste */
.cd-seo__links { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cd-seo__links li { padding-left: 18px; position: relative; font-size: .93rem; }
.cd-seo__links li::before {
	content: "";
	position: absolute;
	left: 0; top: .55em;
	width: 7px; height: 7px;
	border-right: 2px solid var(--cd-green);
	border-bottom: 2px solid var(--cd-green);
	transform: rotate(-45deg);
}
.cd-seo__links a { text-decoration: none; font-weight: 600; color: var(--cd-navy-deep); }
.cd-seo__links a:hover { color: var(--cd-green-dark); text-decoration: underline; }

.cd-seo__note {
	margin: 40px 0 0 !important;
	padding: 14px 18px;
	background: var(--cd-mint-2);
	border-radius: 12px;
	font-size: .84rem;
	color: var(--cd-muted);
}

@media (max-width: 1000px) {
	.cd-seo__top { grid-template-columns: 1fr; gap: 28px; }
	.cd-seo__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
	.cd-seo__cols > :last-child { grid-column: 1 / -1; }
	.cd-seo__split,
	.cd-seo__split--media { grid-template-columns: 1fr; gap: 24px; }
	.cd-seo__split--media .cd-seo__wide { order: 2; }
	.cd-seo__wide img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
	.cd-seo__cols { grid-template-columns: 1fr; gap: 26px; }
	.cd-seo__cols > :last-child { grid-column: auto; }
	.cd-seo__figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.cd-seo__figure figcaption { font-size: .78rem; }
	.cd-seo__figure figcaption span { display: none; }
}

/* -------------------------------------------------------------
   Empfehlungsblock in Beiträgen – Shortcode [candoc]
   ------------------------------------------------------------- */
.cdx {
	margin: 36px 0;
	padding: 22px 24px 20px;
	background: linear-gradient(180deg, var(--cd-mint) 0%, var(--cd-mint-2) 100%);
	border: 1px solid var(--cd-line);
	border-radius: var(--cd-radius-lg);
	font-size: .95rem;
	line-height: 1.6;
	color: var(--cd-text);
}
.cdx__flag { margin: 0 0 12px; font-size: .78rem; color: var(--cd-muted); }
.cdx__tag {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 7px;
	border-radius: 5px;
	background: #fff;
	border: 1px solid var(--cd-line);
	color: #5c6b7c;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.cdx__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
}
.cdx__title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.3;
	color: var(--cd-navy-deep);
}
.cdx__text { margin: 0; font-size: .92rem; }
.cdx__text strong { color: var(--cd-navy-deep); font-weight: 700; }
.cdx a.cdx__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 12px;
	background: var(--cd-green);
	color: #fff;
	font-weight: 700;
	font-size: .94rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .18s ease;
}
.cdx a.cdx__cta:hover,
.cdx a.cdx__cta:focus { background: var(--cd-green-dark); color: #fff; text-decoration: none; }
.cdx a.cdx__cta:focus-visible { outline: 3px solid var(--cd-green-dark); outline-offset: 3px; }

.cdx__list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 12px;
}
.cdx__item { margin: 0; }
.cdx a.cdx__link {
	display: flex;
	gap: 12px;
	align-items: center;
	height: 100%;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--cd-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color .18s ease, transform .18s ease;
}
.cdx a.cdx__link:hover { border-color: var(--cd-green); transform: translateY(-2px); text-decoration: none; }
.cdx__media {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--cd-mint);
}
.cdx__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdx__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cdx__name {
	font-size: .88rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cd-navy-deep);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cdx__meta { font-size: .76rem; color: var(--cd-muted); }
.cdx__meta b { color: var(--cd-text); font-weight: 700; }
.cdx__price { font-size: .95rem; font-weight: 800; color: var(--cd-navy-deep); }
.cdx__price small { font-size: .74rem; font-weight: 600; color: var(--cd-muted); }

.cdx__more { margin: 14px 0 0; font-size: .9rem; font-weight: 700; }
.cdx p.cdx__more a { color: var(--cd-green-dark); text-decoration: none; }
.cdx p.cdx__more a:hover { text-decoration: underline; }
.cdx__fine { margin: 14px 0 0; font-size: .78rem; line-height: 1.55; color: var(--cd-muted); }

@media (max-width: 720px) {
	.cdx { padding: 18px 16px 16px; border-radius: var(--cd-radius); }
	.cdx__head { grid-template-columns: 1fr; gap: 14px; }
	.cdx__cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
		.cdx a.cdx__link, .cdx a.cdx__cta { transition: none; }
}
