/* chain relations – Gestaltung der Leistungsseiten (Buttons, Decision-Loop-Band) */

/* Buttons im Markenblau */
.entry-content .wp-block-button__link {
	background-color: #2e3192;
	border: 2px solid #2e3192;
	border-radius: 4px;
	color: #fff;
	padding: 12px 26px;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus {
	background-color: #fff;
	color: #2e3192;
}

.entry-content .is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: #2e3192;
}

.entry-content .is-style-outline .wp-block-button__link:hover,
.entry-content .is-style-outline .wp-block-button__link:focus {
	background-color: #2e3192;
	color: #fff;
}

.entry-content .wp-block-buttons {
	margin-bottom: 48px;
}

/* Decision-Loop-Band: fünf Stationen, die eigene hervorgehoben */
.entry-content ol.cr-loop {
	counter-reset: none;
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 24px 0 28px;
	padding: 0;
}

.entry-content ol.cr-loop li {
	align-items: center;
	background: #eef0fa;
	border-radius: 4px;
	color: #2e3192;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	font-weight: 600;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 16px 8px;
	position: relative;
	text-align: center;
}

.entry-content ol.cr-loop li span {
	align-items: center;
	border: 2px solid currentColor;
	border-radius: 50%;
	display: flex;
	font-size: 15px;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.entry-content ol.cr-loop li.is-active {
	background: #2e3192;
	color: #fff;
}

/* Pfeil zwischen den Stationen */
.entry-content ol.cr-loop li:not(:last-child)::after {
	border-bottom: 7px solid transparent;
	border-left: 8px solid #b7bce6;
	border-top: 7px solid transparent;
	content: "";
	position: absolute;
	right: -9px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
}

@media (max-width: 700px) {
	.entry-content ol.cr-loop {
		flex-wrap: wrap;
	}

	.entry-content ol.cr-loop li {
		flex: 1 1 calc(33% - 10px);
	}

	.entry-content ol.cr-loop li::after {
		display: none;
	}
}

/* ==========================================================================
   Startseite (Widgets in Front Page 1–4)
   ========================================================================== */

.front-page .cr-home { text-align: left; color: #1d1f4d; }
.front-page .cr-home h2 { font-size: 34px; line-height: 1.2; margin: 0 0 20px; color: #1d1f4d; }
.front-page .cr-home h3 { color: #2e3192; font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.front-page .cr-home p { font-size: 17px; line-height: 1.55; }
.front-page .cr-lead { max-width: 820px; margin-bottom: 28px; }
.front-page section.cr-home { margin-bottom: 0; margin-top: 0; padding: 56px 0; }
body.front-page { overflow-x: hidden; }
.front-page .max-width-area { max-width: 1180px; }
.front-page .new_padding { padding-top: 0 !important; }
.front-page .front-page-hero h1 { font-size: 44px; line-height: 1.15; }
@media (min-width: 1100px) { .front-page .front-page-hero h1 { padding: 0 8%; } }

.cr-btn {
	background: #2e3192; border: 2px solid #2e3192; border-radius: 4px; color: #fff !important;
	display: inline-block; font-weight: 600; padding: 12px 26px; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.cr-btn:hover, .cr-btn:focus { background: #fff; color: #2e3192 !important; }
.cr-band .cr-btn { background: #fff; border-color: #fff; color: #2e3192 !important; }
.cr-band .cr-btn:hover { background: transparent; color: #fff !important; }

/* Karten */
.cr-cards { display: grid; gap: 22px; }
.cr-cards--3 { grid-template-columns: repeat(3, 1fr); }
.cr-card { background: #eef0fa; border-radius: 6px; padding: 26px 24px; }
.cr-card p { margin: 0; }

/* Decision Loop auf der Startseite */
.cr-stationen { counter-reset: none; display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0 0 32px; padding: 0; }
.cr-stationen li { background: #eef0fa; border-radius: 6px; list-style: none; margin: 0; padding: 22px 18px; position: relative; }
.cr-stationen li:not(:last-child)::after {
	border-bottom: 9px solid transparent; border-left: 10px solid #b7bce6; border-top: 9px solid transparent;
	content: ""; position: absolute; right: -12px; top: 38px; z-index: 1;
}
.cr-stationen .nr {
	align-items: center; background: #2e3192; border-radius: 50%; color: #fff; display: flex;
	font-weight: 700; height: 34px; justify-content: center; margin-bottom: 10px; width: 34px;
}
.cr-stationen p { font-size: 15px !important; margin: 0 0 8px; }
.cr-stationen a { font-size: 14px; font-weight: 600; }

/* Farbiges Band über die ganze Breite */
.cr-band {
	background: #2e3192; color: #fff !important; padding: 64px 0 !important;
}
.front-page section.cr-band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.cr-band > div { margin: 0 auto; max-width: 1000px; padding: 0 20px; }
.front-page .cr-band h2, .front-page .cr-band p { color: #fff; }

/* Drei Bereiche */
.cr-bereiche { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.cr-bereich { background: #fff; border: 1px solid #d9dcf0; border-radius: 6px; display: flex; flex-direction: column; padding: 28px 24px; }
.cr-bereich .cr-icon {
	align-items: center; background: #2e3192; border-radius: 50%; display: flex; height: 86px;
	justify-content: center; margin-bottom: 16px; width: 86px;
}
.cr-bereich .cr-icon img { height: 56px; width: 56px; }
.cr-bereich .cr-sub { color: #2e3192; font-weight: 600; margin: 0 0 10px; }
.cr-bereich .cr-tags { color: #6b6f8a; font-size: 15px !important; }
.cr-bereich .cr-btn { align-self: flex-start; margin-top: auto; }
.cr-bereich ul { margin: 0 0 14px; padding-left: 18px; }
.cr-bereich li { margin-bottom: 6px; }

/* Bedarfs-Tabelle */
.cr-bedarf table { border-collapse: collapse; width: 100%; }
.cr-bedarf td { border-bottom: 1px solid #d9dcf0; font-size: 17px; padding: 16px 12px; }
.cr-bedarf td:last-child { font-weight: 600; white-space: nowrap; }

/* Vertrauen und Abschluss */
.front-page .cr-vertrauen { background: #fff; color: #1d1f4d; text-align: center; }
.front-page .cr-vertrauen p, .front-page-3 .cr-vertrauen { color: #1d1f4d; }
.front-page-3 .cr-vertrauen a { color: #2e3192; }
.front-page .cr-abschluss { text-align: center; }

@media (max-width: 900px) {
	.cr-cards--3, .cr-bereiche { grid-template-columns: 1fr; }
	.cr-stationen { grid-template-columns: 1fr; }
	.cr-stationen li::after { display: none; }
	.cr-bedarf td { display: block; }
	.cr-bedarf td:last-child { border-bottom: 0; padding-top: 0; }
	.front-page .cr-home h2 { font-size: 27px; }
}

/* Theme-Listenformatierung im Stationen-Raster abschalten */
.front-page .cr-stationen,
.front-page .cr-stationen li {
	list-style: none !important;
	margin-left: 0 !important;
	text-indent: 0 !important;
}
.front-page .cr-stationen li { padding: 22px 18px !important; }
.front-page .cr-stationen li::marker { content: ""; }
.front-page .cr-stationen li > * { margin-left: 0 !important; padding-left: 0 !important; text-indent: 0 !important; }
.front-page .cr-bereich ul { list-style: disc; }

/* Startseite, Runde 2: KI-Abschnitt, Win-Loss-Kacheln, Logos 3x3, zweiter Button */
.cr-btn--ghost { background: transparent; border-color: #2e3192; color: #2e3192 !important; margin-left: 12px; }
.cr-btn--ghost:hover { background: #2e3192; color: #fff !important; }
.cr-band .cr-btn--ghost { background: transparent; border-color: #fff; color: #fff !important; }
.cr-band .cr-btn--ghost:hover { background: #fff; color: #2e3192 !important; }
.cr-ki { border-left: 6px solid #2e3192; padding-left: 28px !important; }
.cr-tiles { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.cr-tile { background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 20px; }
.front-page .cr-band .cr-tile h3 { color: #fff; }
.front-page .cr-band .cr-tile p { font-size: 16px; margin: 0; }
.front-page .cr-band .cr-fakten { font-size: 15px; margin-bottom: 24px; opacity: .9; }
.cr-logos { display: grid; gap: 28px 40px; grid-template-columns: repeat(3, 1fr); margin: 32px auto 0; max-width: 760px; }
.cr-logos div { align-items: center; display: flex; height: 96px; justify-content: center; }
.cr-logos img { height: auto; max-height: 90px; max-width: 100%; width: auto; }
@media (max-width: 900px) {
	.cr-tiles { grid-template-columns: 1fr; }
	.cr-btn--ghost { margin-left: 0; margin-top: 12px; }
	.cr-logos { gap: 16px 20px; }
}

/* Fragenteil als Kacheln statt Tabelle */
.cr-fragen { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.cr-frage {
	background: #eef0fa; border-left: 5px solid #2e3192; border-radius: 6px; color: #1d1f4d !important;
	display: flex; flex-direction: column; gap: 12px; justify-content: space-between; padding: 22px 24px;
	text-decoration: none; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.cr-frage:hover { background: #fff; box-shadow: 0 6px 18px rgba(46, 49, 146, .18); transform: translateY(-3px); }
.cr-frage .q { font-size: 19px; font-weight: 600; line-height: 1.35; }
.cr-frage .a { color: #2e3192; font-weight: 700; }
.cr-frage:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 900px) { .cr-fragen { grid-template-columns: 1fr; } }

/* Menüpunkt Termin buchen */
.cr-menu-termin > a { border: 2px solid #fff; border-radius: 4px; margin-left: 10px; }
.cr-menu-termin > a:hover { background: #fff; color: #2e3192 !important; }
