/*
 * DatenTraeger fixes (Testrunde 3, 2026-11) - plain CSS (not LESS: the Jupiter X LESS compiler does not understand :has()).
 *
 * R05: The Plus info-box cards with a button.
 * - Button text centred (The Plus reserves 30px on the right for an arrow icon that is not configured).
 * - All buttons of a card row on one line, all cards of a row equally high.
 * Desktop + tablet only. Mobile (<768px) stays as it is (single column; DocuWare Suite has its own T18 page CSS).
 * Plain CSS (not LESS) because the Jupiter X LESS compiler does not understand :has().
 */

/* 1) Button text centred – all hover cards (DocuWare.Tools, DocuWare Suite, JobRouter Suite, Solution, Solution Templates) */
.pt_plus_info_box .hover_box_button {
	padding: 0 15px !important;
	text-align: center;
}

/* JobRouter Integrationen: "Infos anfragen >" button had padding 15px 30px 15px 1px + line-height 50px
   (182x82 px box, text glued to the left border) */
.page-id-8982 .pt_plus_info_box.info-box-style_1 .pt-plus-button-wrapper a.button-link-wrap {
	padding: 0 24px !important;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
}
@media (max-width: 1024px) {
	.page-id-8982 .pt_plus_info_box.info-box-style_1 .pt-plus-button-wrapper a.button-link-wrap {
		padding: 0 14px !important;
	}
}

@media (min-width: 768px) {

	/* 2) Hover cards (style 11): pin the button to the bottom of the card.
	   The cards of a row already have the same height (min-height from the widget settings); the button used to
	   follow the (invisible, hover-only) description, so its position depended on the text length.
	   The card is NOT stretched to the column: several columns contain empty spacer widgets below the card
	   (they create the gap before the next section), so the columns of a row differ in height. */
	.elementor-widget-tp-info-box:has(.info-box-style_11 .hover_box_button) {
		display: flex;
		flex-direction: column;
	}
	.elementor-widget-tp-info-box:has(.info-box-style_11 .hover_box_button) > .elementor-widget-container,
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button),
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .post-inner-loop,
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .info-box-inner,
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .info-box-bg-box,
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .info-box,
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .info-box-all,
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .info-box-wrapper,
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .info-box-conetnt {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
	}
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button) .info-box-bg-box {
		align-items: stretch;
	}
	/* content stays centred in the space above the button, the button sits at the bottom */
	.pt_plus_info_box.info-box-style_11 .info-box-conetnt:has(> .pt-plus-button-wrapper) > :first-child {
		margin-top: auto;
	}
	.pt_plus_info_box.info-box-style_11 .info-box-conetnt > .pt-plus-button-wrapper {
		margin-top: auto;
	}
	/* on hover The Plus makes the title position:relative but keeps top:50% - in a flex column that offset
	   becomes real and pushes the title below the button */
	.pt_plus_info_box.info-box-style_11:has(.hover_box_button):hover .service-title {
		top: auto;
	}

}

@media (min-width: 1025px) {
	/* 2b) Solution Templates (desktop only - on tablet the columns wrap 2 per line and the cards are equal anyway):
	   the visible white card is the column, and the info-box widgets inside differ in height
	   (some columns have a spacer above the card) - stretch the widget to the column so the buttons align. */
	.page-id-8156 .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-tp-info-box .hover_box_button) {
		align-self: stretch;
	}
	.page-id-8156 .elementor-widget-wrap:has(> .elementor-widget-tp-info-box .hover_box_button) {
		flex-direction: column;
		flex-wrap: nowrap;
	}
	.page-id-8156 .elementor-widget-wrap > .elementor-widget-tp-info-box:has(.hover_box_button) {
		flex: 1 1 auto;
		margin-bottom: 0;
	}
}

@media (min-width: 768px) {

	/* 3) JobRouter Integrationen (style 1 cards): equal card height, button with spacing below the title, at the bottom */
	.page-id-8982 .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-tp-info-box .info-box-style_1 .pt-plus-button-wrapper) {
		align-self: stretch;
	}
	.page-id-8982 .elementor-widget-wrap:has(> .elementor-widget-tp-info-box .info-box-style_1 .pt-plus-button-wrapper) {
		flex-direction: column;
		flex-wrap: nowrap;
	}
	.page-id-8982 .elementor-widget-wrap > .elementor-widget-tp-info-box:has(.info-box-style_1 .pt-plus-button-wrapper),
	.page-id-8982 .elementor-widget-tp-info-box:has(.info-box-style_1 .pt-plus-button-wrapper) > .elementor-widget-container,
	.page-id-8982 .pt_plus_info_box.info-box-style_1:has(.pt-plus-button-wrapper),
	.page-id-8982 .pt_plus_info_box.info-box-style_1:has(.pt-plus-button-wrapper) .post-inner-loop,
	.page-id-8982 .pt_plus_info_box.info-box-style_1:has(.pt-plus-button-wrapper) .info-box-inner,
	.page-id-8982 .pt_plus_info_box.info-box-style_1:has(.pt-plus-button-wrapper) .info-box-bg-box,
	.page-id-8982 .pt_plus_info_box.info-box-style_1:has(.pt-plus-button-wrapper) .service-media,
	.page-id-8982 .pt_plus_info_box.info-box-style_1:has(.pt-plus-button-wrapper) .service-content {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
	}
	.page-id-8982 .pt_plus_info_box.info-box-style_1 .service-content > .pt-plus-button-wrapper {
		margin-top: auto;
		padding-top: 20px;
	}
}

/*
 * R10 (Testrunde 3): The Plus uses its own breakpoints (mobile <=600px, tablet 601-1024px),
 * Elementor uses mobile <=767px. Between 601 and 767px Elementor widgets already show their mobile
 * layout (e.g. the home hero headline is centred) while The Plus widgets still use the tablet alignment
 * (the hero button "Kontaktieren Sie uns" stayed left). Extend The Plus' mobile alignment classes to 767px.
 * The doubled class beats The Plus' own !important tablet rule regardless of load order.
 */
@media (min-width: 601px) and (max-width: 767px) {
	.text--mobileleft.text--mobileleft { text-align: left !important; margin-left: 0 !important; }
	.text--mobilecenter.text--mobilecenter { text-align: center !important; margin: 0 auto !important; }
	.text--mobileright.text--mobileright { text-align: right !important; margin-right: 0 !important; }
}
