/*
 * IFB custom styles
 * Design source: IFB_Website-Desktop_Layout_2026.pdf (project root)
 * Colors and fonts are taken from the PDF (see content/design-tokens.txt).
 */

/* Self-hosted fonts (no Google requests, nDSG/GDPR-friendly).
   Tinos is metric-compatible with Times New Roman, which the design uses. */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Tinos";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/tinos-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Tinos";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/tinos-latin-400-italic.woff2") format("woff2");
}

:root {
	--ifb-red: #c32945;
	--ifb-grey-dark: #666b6d;   /* footer */
	--ifb-grey-light: #eff1f2;  /* light section backgrounds */
	--ifb-heading: #3b3b3b;
	--ifb-text: #42464b;
	--ifb-ui-text: #3a3a3a;     /* navigation, link labels */
	--ifb-white: #ffffff;

	--ifb-font-heading: "Tinos", "Times New Roman", Times, serif;
	--ifb-font-body: "Roboto", Arial, sans-serif;
}

/* ------------------------------------------------------------------
 * Base typography (sizes = PDF x 0.75, see content/design-tokens.txt).
 * Divi module settings/presets override these where set.
 * ------------------------------------------------------------------ */
body {
	font-family: var(--ifb-font-body);
	font-weight: 300;
	color: var(--ifb-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module_header {
	font-family: var(--ifb-font-heading);
	font-weight: 400;
	color: var(--ifb-heading);
	line-height: 1.15;
	letter-spacing: 0;
}

h1 { font-size: 48px; }
h2 { font-size: 38px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }

strong, b {
	font-weight: 400;
}

@media (max-width: 980px) {
	h1 { font-size: 40px; }
	h2 { font-size: 32px; }
	h3 { font-size: 24px; }
}

@media (max-width: 767px) {
	h1 { font-size: 32px; }
	h2 { font-size: 27px; }
	h3 { font-size: 22px; }
}

/* ------------------------------------------------------------------
 * Utility classes - add via Divi: Advanced > CSS ID & Classes.
 * ------------------------------------------------------------------ */

/* Small uppercase serif label above section titles ("UNSERE DIENSTLEISTUNGEN"). */
.ifb-eyebrow,
.ifb-eyebrow p {
	font-family: var(--ifb-font-heading);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ifb-text);
}

/* Large white italic serif text on red (intro box, CTA box). */
.ifb-italic-statement,
.ifb-italic-statement p {
	font-family: var(--ifb-font-heading);
	font-style: italic;
	font-size: 30px;
	line-height: 1.3;
	color: var(--ifb-white);
}

.ifb-italic-statement--large,
.ifb-italic-statement--large p {
	font-size: 38px;
}

/* Everything inside a red or dark grey section turns white. */
.ifb-on-dark,
.ifb-on-dark h1, .ifb-on-dark h2, .ifb-on-dark h3, .ifb-on-dark h4,
.ifb-on-dark p, .ifb-on-dark li, .ifb-on-dark a {
	color: var(--ifb-white);
}

/* Quote next to the portrait (red Roboto Light with a line on top). */
.ifb-quote,
.ifb-quote p {
	font-size: 19px;
	line-height: 1.6;
	color: var(--ifb-red);
}

.ifb-quote {
	border-top: 1px solid var(--ifb-red);
	padding-top: 20px;
}

/* Bulleted lists in the design use a small dot and tight spacing. */
.ifb-list ul {
	list-style: none;
	padding-left: 0;
}

.ifb-list ul li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 6px;
}

.ifb-list ul li::before {
	content: "•";
	position: absolute;
	left: 0;
}

@media (max-width: 767px) {
	.ifb-italic-statement,
	.ifb-italic-statement p { font-size: 24px; }

	.ifb-italic-statement--large,
	.ifb-italic-statement--large p { font-size: 28px; }
}

/* "––––– Mehr erfahren" style text link with a leading line.
   Add the CSS class "ifb-line-link" to a Divi Button or Text link. */
.ifb-line-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ifb-text);
	text-decoration: none;
}

.ifb-line-link::before {
	content: "";
	display: inline-block;
	width: 40px;
	height: 1px;
	background: currentColor;
	transition: width 0.2s ease;
}

.ifb-line-link:hover::before {
	width: 56px;
}

/* Divi Button with the preset "IFB Linien-Link": the preset removes the box,
   this adds the leading line (presets cannot add pseudo elements). */
body #page-container .et_pb_section .et_pb_button.preset--module--divi-button--ifb-button-line-link {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px;
}

body #page-container .et_pb_section .et_pb_button.preset--module--divi-button--ifb-button-line-link::before {
	content: "" !important;
	display: inline-block !important;
	position: static !important;
	width: 40px;
	height: 1px;
	margin: 0 !important;
	opacity: 1 !important;
	background: currentColor;
	transition: width 0.2s ease;
}

body #page-container .et_pb_section .et_pb_button.preset--module--divi-button--ifb-button-line-link:hover::before {
	width: 56px;
}

/* Divi adds 1em side padding on hover for its button icon; the line link has none. */
body #page-container .et_pb_section .et_pb_button.preset--module--divi-button--ifb-button-line-link,
body #page-container .et_pb_section .et_pb_button.preset--module--divi-button--ifb-button-line-link:hover {
	padding: 0 !important;
}

body #page-container .ifb-on-dark .et_pb_button.preset--module--divi-button--ifb-button-line-link {
	color: var(--ifb-white) !important;
}

/* Same look for a Divi Button module with the class "ifb-line-link":
   strip Divi's default button box so only line + label remain. */
.et_pb_button.ifb-line-link,
.ifb-line-link .et_pb_button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: none !important;
	font-family: var(--ifb-font-body);
	font-size: 17px !important;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ifb-ui-text, #3a3a3a);
}

.et_pb_button.ifb-line-link::after,
.ifb-line-link .et_pb_button::after {
	display: none !important;
}

.ifb-line-link .et_pb_button::before {
	content: "";
	display: inline-block;
	position: static;
	width: 40px;
	height: 1px;
	margin: 0;
	opacity: 1;
	background: currentColor;
	transition: width 0.2s ease;
}

.ifb-line-link .et_pb_button:hover::before {
	width: 56px;
}

.ifb-on-dark .ifb-line-link,
.ifb-on-dark .ifb-line-link .et_pb_button {
	color: var(--ifb-white);
}

/* ------------------------------------------------------------------
 * Header (Theme Builder global header, layouts/header.html)
 * ------------------------------------------------------------------ */

/* Menu sits on the right, next to pcvisit + phone (logo stays left). */
.ifb-header .et_pb_menu .et_pb_menu_inner_container {
	width: 100%;
}

.ifb-header .et_pb_menu .et_pb_menu__wrap {
	flex: 1 1 auto;
	justify-content: flex-end;
}

.ifb-header .et_pb_menu .et-menu > li {
	padding-left: 12px;
	padding-right: 12px;
}

/* "Leistungen +" instead of Divi's dropdown arrow. */
.ifb-header .et_pb_menu .et-menu .menu-item-has-children > a:first-child {
	padding-right: 16px;
}

.ifb-header .et_pb_menu .et-menu .menu-item-has-children > a:first-child::after {
	content: "+";
	font-family: var(--ifb-font-body);
	font-size: 17px;
	font-weight: 400;
	top: 0;
	right: 0;
}

/* Dropdown: white panel, red top line (set in the menu module), comfortable width. */
.ifb-header .et_pb_menu .nav li ul {
	width: 360px;
	padding: 12px 0;
}

.ifb-header .et_pb_menu .nav li li {
	width: 100%;
	padding: 0;
}

.ifb-header .et_pb_menu .nav li li a {
	width: 100%;
	padding: 8px 20px;
	font-size: 16px;
	line-height: 1.4;
}

.ifb-header .et_pb_menu .nav li li a:hover {
	color: var(--ifb-red) !important;
	opacity: 1;
}

.ifb-header-actions .et_pb_image {
	margin-bottom: 0 !important;
}

.ifb-header-actions a {
	transition: opacity 0.2s ease;
}

.ifb-header-actions a:hover {
	opacity: 0.8;
}

@media (max-width: 980px) {
	/* Mobile menu: hamburger in red, full-width dropdown. */
	.ifb-header .et_pb_menu .et_mobile_menu {
		border-top-color: var(--ifb-red);
	}

	.ifb-header .et_pb_menu .et_pb_menu__wrap {
		justify-content: flex-end;
	}

	.ifb-header-actions {
		justify-content: flex-end;
	}
}

@media (max-width: 767px) {
	/* Remote-support tool is for desktops; keep only the phone button. */
	.ifb-header-pcvisit {
		display: none !important;
	}

	.ifb-header-phone,
	.ifb-header-phone img {
		width: 56px !important;
	}

	/* Mobile menu opens below the whole header, full width. */
	.ifb-header .et_pb_menu .et_mobile_menu {
		position: fixed;
		top: 90px;
		left: 0;
		right: 0;
		width: 100%;
	}
}

/* ------------------------------------------------------------------
 * Footer (Theme Builder global footer, layouts/footer.html)
 * ------------------------------------------------------------------ */
.ifb-footer a {
	color: var(--ifb-white);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ifb-footer a:hover {
	opacity: 0.8;
}

.ifb-footer .et_pb_image a {
	text-decoration: none;
}

.ifb-footer h4 {
	padding-bottom: 8px;
}

.ifb-footer .et_pb_module {
	margin-bottom: 12px !important;
}

.ifb-footer .et_pb_row {
	padding-top: 0 !important;
	padding-bottom: 16px !important;
}

/* Divi's default 30px gap between modules / 60px between rows is too airy here. */
.ifb-footer.et_pb_section {
	row-gap: 16px;
}

.ifb-footer .et_pb_column {
	row-gap: 8px;
}

.ifb-footer .ifb-footer-logo {
	margin-top: 4px;
}

.ifb-footer .ifb-footer-linkedin {
	display: inline-flex;
	color: var(--ifb-white);
	text-decoration: none;
}

/* ------------------------------------------------------------------
 * Phase 3 components (Divi Library "IFB ...", layouts/library/)
 * ------------------------------------------------------------------ */

/* Hero */
.ifb-hero .ifb-hero-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Red split: image column fills the full height of the red panel. */
.ifb-split .ifb-split-image {
	position: relative;
	min-height: 480px;
}

.ifb-split .ifb-split-img,
.ifb-split .ifb-split-img .et_pb_image_wrap {
	position: absolute !important;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
}

.ifb-split .ifb-split-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 980px) {
	.ifb-split .ifb-split-image {
		min-height: 340px;
	}
}

@media (max-width: 767px) {
	.ifb-split .ifb-split-image {
		min-height: 260px;
	}
}

.ifb-on-dark .ifb-list ul li::before {
	color: var(--ifb-white);
}

/* Service cards: "Mehr erfahren" always sits at the bottom of the card. */
.ifb-card .et_pb_button_module_wrapper {
	margin-top: auto;
	padding-top: 10px;
}

.ifb-card .et_pb_module {
	margin-bottom: 0 !important;
}

.ifb-card .ifb-card-text p {
	font-size: 17px;
	line-height: 1.5;
}

/* Quote */
.ifb-quote-name p {
	font-family: var(--ifb-font-heading);
	font-size: 14px;
	color: var(--ifb-heading);
}

.ifb-quote-section .ifb-portrait {
	margin-bottom: 0 !important;
}

.ifb-quote-section .ifb-portrait img {
	display: block;
}

/* FAQ accordion: plain rows with a dark bottom line and +/- on the right. */
.ifb-faq .et_pb_toggle {
	margin: 0 !important;
	padding: 16px 40px 16px 0 !important;
	border: 0;
	border-bottom: 1px solid var(--ifb-heading);
	background: transparent !important;
}

.ifb-faq .et_pb_toggle_title,
.ifb-faq .et_pb_toggle_open .et_pb_toggle_title {
	font-family: var(--ifb-font-body) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #3a3a3b !important;
}

.ifb-faq .et_pb_toggle_title::before {
	content: "+" !important;
	font-family: var(--ifb-font-body) !important;
	font-size: 28px !important;
	font-weight: 300;
	color: #3a3a3b !important;
	right: -40px !important;
	margin-top: -18px;
}

.ifb-faq .et_pb_toggle_open .et_pb_toggle_title::before {
	content: "\2212" !important;
}

.ifb-faq .et_pb_toggle .et_pb_toggle_title {
	cursor: pointer;
}

/* Eyebrow above the first toggle */
.ifb-faq .ifb-faq-list > .et_pb_text {
	margin-bottom: 16px !important;
}

.ifb-faq .et_pb_toggle_content {
	padding-top: 10px;
	font-size: 16px;
	line-height: 1.6;
}

/* Blog cards (grid + carousel): image, date, title, "Weiterlesen" line link. */
.ifb-blog .et_pb_post {
	display: flex !important;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 0 26px !important;
	border: 0 !important;
	background: var(--ifb-white);
	transition: box-shadow 0.25s ease;
}

.ifb-blog .et_pb_post:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.ifb-blog .et_pb_post .et_pb_image_container {
	order: 0;
	margin: 0 0 18px !important;
}

.ifb-blog .et_pb_post .et_pb_image_container img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}

.ifb-blog .et_pb_post .et_overlay {
	display: none !important;
}

.ifb-blog .et_pb_post .post-meta {
	order: 1;
	padding: 0 18px !important;
	margin-bottom: 8px;
	font-size: 14px !important;
	color: var(--ifb-text) !important;
}

.ifb-blog .et_pb_post .entry-title {
	order: 2;
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: normal;
	word-break: normal;
	padding: 0 18px !important;
	font-family: var(--ifb-font-heading) !important;
	font-size: 26px !important;
	line-height: 1.2 !important;
}

.ifb-blog .et_pb_post .entry-title a {
	color: var(--ifb-heading) !important;
}

.ifb-blog .et_pb_post .post-content {
	order: 3;
	margin-top: auto;
	padding: 22px 18px 0 !important;
}

.ifb-blog .et_pb_post .more-link {
	display: inline-flex !important;
	align-items: center;
	gap: 12px;
	margin-top: 0 !important;
	font-family: var(--ifb-font-body);
	font-size: 17px !important;
	font-weight: 400;
	color: var(--ifb-ui-text) !important;
}

.ifb-blog .et_pb_post .more-link::before {
	content: "";
	display: inline-block;
	width: 40px;
	height: 1px;
	background: currentColor;
	transition: width 0.2s ease;
}

.ifb-blog .et_pb_post:hover .more-link::before {
	width: 56px;
}

/* Grid variant: 3 cards. */
.ifb-blog--grid .et_pb_blog_posts {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 28px;
}

@media (max-width: 980px) {
	.ifb-blog--grid .et_pb_blog_posts {
		gap: 18px;
	}

	.ifb-blog .et_pb_post .entry-title {
		font-size: 20px !important;
	}
}

@media (max-width: 767px) {
	.ifb-blog--grid .et_pb_blog_posts {
		grid-template-columns: 1fr !important;
	}
}

/* Carousel variant: horizontal scroll-snap track, 3.4 cards visible (as in the design). */
.ifb-blog--carousel .et_pb_blog_posts {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 10px 0 30px;
}

.ifb-blog--carousel .et_pb_blog_posts::-webkit-scrollbar {
	display: none;
}

.ifb-blog--carousel .et_pb_post {
	flex: 0 0 calc((100% - 3 * 28px) / 3.4);
	width: auto !important;
	scroll-snap-align: start;
}

@media (max-width: 980px) {
	.ifb-blog--carousel .et_pb_post {
		flex-basis: calc((100% - 28px) / 2.2);
	}
}

@media (max-width: 767px) {
	.ifb-blog--carousel .et_pb_post {
		flex-basis: 82%;
	}
}

.ifb-carousel-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ifb-carousel-dots {
	display: flex;
	gap: 0;
	margin: 0 auto;
}

.ifb-carousel-dot {
	width: 16px;
	height: 2px;
	padding: 0;
	border: 0;
	background: #c9cccf;
	cursor: pointer;
}

.ifb-carousel-dot.is-active {
	width: 26px;
	background: var(--ifb-red);
}

.ifb-carousel-next {
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--ifb-heading);
	cursor: pointer;
}

.ifb-carousel-next:hover {
	color: var(--ifb-red);
}

/* ------------------------------------------------------------------
 * Phase 4: Kontakt page (form + map / red contact panel)
 * ------------------------------------------------------------------ */

/* Map fills the column next to the red panel. */
.ifb-mapbox .ifb-map,
.ifb-mapbox .ifb-map a,
.ifb-mapbox .ifb-map .et_pb_image_wrap {
	display: block;
	height: 100%;
	margin: 0 !important;
}

.ifb-mapbox .ifb-map img {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
}

/* Red contact panel: icon list. */
.ifb-contact-list {
	margin: 0;
	padding: 0 !important;
	list-style: none !important;
}

.ifb-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
	padding: 0;
	list-style: none;
}

.ifb-contact-list li svg {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--ifb-white);
}

.ifb-contact-list a {
	color: var(--ifb-white);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/* Legal pages */
.ifb-legal h3 {
	margin-top: 24px;
	padding-bottom: 6px;
	font-size: 22px;
}

.ifb-legal a {
	color: var(--ifb-red);
}

/* ------------------------------------------------------------------
 * Phase 5: Contact Form 7 (form "IFB Kontaktformular", .ifb-cf7)
 * ------------------------------------------------------------------ */
.ifb-cf7 {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ifb-cf7 .wpcf7-form-control-wrap {
	display: block;
}

/* Divi's CF7 module styles the fields (grey boxes) with strong selectors - override. */
body #page-container .ifb-cf7 input.wpcf7-text,
body #page-container .ifb-cf7 input.wpcf7-email,
body #page-container .ifb-cf7 input.wpcf7-tel,
body #page-container .ifb-cf7 textarea.wpcf7-textarea,
body #page-container .ifb-cf7 select.wpcf7-select {
	width: 100%;
	padding: 10px 0 8px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ifb-heading) !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	font-family: var(--ifb-font-body);
	font-size: 15px;
	font-weight: 300;
	color: var(--ifb-text);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.ifb-cf7 textarea.wpcf7-textarea {
	min-height: 110px;
	resize: vertical;
}

.ifb-cf7 input::placeholder,
.ifb-cf7 textarea::placeholder {
	color: #70747a;
	opacity: 1;
}

body #page-container .ifb-cf7 input:focus,
body #page-container .ifb-cf7 textarea:focus,
body #page-container .ifb-cf7 select:focus {
	outline: none;
	border-bottom-color: var(--ifb-red) !important;
}

/* Select with a thin chevron, grey while the label option is shown. */
body #page-container .ifb-cf7 select.wpcf7-select {
	padding-right: 24px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b3b3b' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 4px center;
	cursor: pointer;
}

/* Grey while the "Leistung wählen *" label option (value "") is selected. */
body #page-container .ifb-cf7 select.wpcf7-select:has(option[value=""]:checked) {
	color: #70747a !important;
}

.ifb-cf7 select.wpcf7-select option {
	color: var(--ifb-text);
}

/* Privacy checkbox */
.ifb-cf7-privacy {
	font-size: 13px;
	line-height: 1.5;
}

.ifb-cf7-privacy .wpcf7-list-item {
	margin: 0;
}

.ifb-cf7-privacy label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.ifb-cf7-privacy input[type="checkbox"] {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 3px;
	accent-color: var(--ifb-red);
}

.ifb-cf7-privacy a {
	color: var(--ifb-red);
	text-decoration: underline;
}

/* Submit: "––– senden". The button is an <input>, so the line sits on the wrapper. */
.ifb-cf7-submit {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	align-self: flex-start;
	margin-top: 8px;
	color: var(--ifb-ui-text);
}

.ifb-cf7-submit::before {
	content: "";
	display: inline-block;
	width: 40px;
	height: 1px;
	background: currentColor;
	transition: width 0.2s ease;
}

.ifb-cf7-submit:hover::before {
	width: 56px;
}

/* Divi turns the CF7 submit into <button class="... et_pb_button">. */
body #page-container .ifb-cf7 .wpcf7-submit,
body #page-container .ifb-cf7 .wpcf7-submit:hover {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	font-family: var(--ifb-font-body) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--ifb-ui-text) !important;
	cursor: pointer;
}

body #page-container .ifb-cf7 .wpcf7-submit::before,
body #page-container .ifb-cf7 .wpcf7-submit::after {
	display: none !important;
}

.ifb-cf7 .wpcf7-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Validation + response messages */
body #page-container .ifb-cf7 .wpcf7-not-valid {
	border-bottom-color: var(--ifb-red) !important;
}

.ifb-cf7 .wpcf7-not-valid-tip,
.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 13px;
	color: var(--ifb-red);
}

.ifb-contact .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--ifb-heading);
	font-size: 15px;
}

.ifb-contact .wpcf7 form.sent .wpcf7-response-output {
	border-color: #3b7d4f;
}

.ifb-contact .wpcf7 form.invalid .wpcf7-response-output,
.ifb-contact .wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--ifb-red);
}

/* ------------------------------------------------------------------
 * Phase 6: blog templates (Theme Builder "IFB Blogbeitrag" / "IFB Blog-Übersicht")
 * ------------------------------------------------------------------ */

/* Post header: date above the title (as on the blog cards). */
.ifb-post-title .et_pb_title_container {
	display: flex;
	flex-direction: column;
}

.ifb-post-title .et_pb_title_meta_container {
	order: -1;
	margin-bottom: 10px;
}

.ifb-post-title .et_pb_title_featured_container {
	margin-top: 28px;
}

.ifb-post-title .et_pb_title_featured_container img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Article text: readable rhythm inside the 760px column. */
.ifb-article {
	font-size: 18px;
	line-height: 1.7;
}

.ifb-article p,
.ifb-article ul,
.ifb-article ol {
	margin-bottom: 1.2em;
	padding-bottom: 0;
}

.ifb-article h2 {
	margin: 1.6em 0 0.5em;
	font-size: 30px;
}

.ifb-article h3 {
	margin: 1.4em 0 0.4em;
	font-size: 24px;
}

.ifb-article ul {
	padding-left: 1.2em;
	list-style: disc;
}

.ifb-article li {
	margin-bottom: 0.3em;
}

.ifb-article a {
	color: var(--ifb-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ifb-article blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--ifb-red);
	font-family: var(--ifb-font-heading);
	font-style: italic;
	font-size: 24px;
	line-height: 1.4;
	color: var(--ifb-heading);
}

@media (max-width: 767px) {
	.ifb-article {
		font-size: 17px;
	}

	.ifb-article h2 {
		font-size: 25px;
	}
}

/* Blog overview: pagination ("Ältere Beiträge" / "Neuere Beiträge") as line links. */
.ifb-blog--archive .pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
	padding: 0;
}

.ifb-blog--archive .pagination a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--ifb-font-body);
	font-size: 17px;
	font-weight: 400;
	color: var(--ifb-ui-text);
}

.ifb-blog--archive .pagination a::before {
	content: "";
	display: inline-block;
	width: 40px;
	height: 1px;
	background: currentColor;
}

/* ------------------------------------------------------------------
 * Phase 7: responsive + touch targets (WCAG 2.2: min. 24 x 24 px)
 * ------------------------------------------------------------------ */

/* Footer / contact panel links: taller hit area without changing the look. */
.ifb-footer a,
.ifb-contact-list a,
.ifb-legal a {
	display: inline-block;
	padding: 3px 0;
}

/* Carousel dots: 24px tall button, visible bar drawn inside. */
.ifb-carousel-dot {
	position: relative;
	width: 24px;
	height: 24px;
	background: none;
}

.ifb-carousel-dot.is-active {
	width: 32px;
}

.ifb-carousel-dot::before {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 11px;
	height: 2px;
	background: #8e9297; /* 3:1 contrast for UI elements (WCAG 1.4.11) */
}

.ifb-carousel-dot.is-active {
	background: none;
}

.ifb-carousel-dot.is-active::before {
	background: var(--ifb-red);
}

.ifb-carousel-next {
	min-width: 44px;
	min-height: 32px;
}

/* Privacy checkbox a bit larger (the whole label is clickable as well). */
.ifb-cf7-privacy input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

body #page-container .ifb-cf7 .wpcf7-submit {
	min-height: 32px;
}

/* Tablet: 3-card rows ("Weitere Dienstleistungen") need tighter cards. */
@media (min-width: 768px) and (max-width: 980px) {
	.ifb-cards .ifb-card {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.ifb-cards .ifb-card h3 {
		font-size: 21px !important;
		hyphens: auto;
		-webkit-hyphens: auto;
	}
}

/* ------------------------------------------------------------------
 * Phase 8: accessibility
 * ------------------------------------------------------------------ */

/* Text for screen readers only (form labels, skip link). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Skip link: visible when focused with the keyboard. */
.ifb-skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--ifb-white);
	color: var(--ifb-heading);
	font-size: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Clear focus outline for keyboard users (not shown on mouse click). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.et_pb_toggle_title:focus-visible {
	outline: 2px solid var(--ifb-red) !important;
	outline-offset: 3px;
}

.ifb-on-dark a:focus-visible,
.ifb-footer a:focus-visible {
	outline-color: var(--ifb-white) !important;
}

/* Footer headings are h2 now (heading order) - keep the small look. */
.ifb-footer h2 {
	padding-bottom: 8px;
	font-size: 19px;
	line-height: 1.4;
	color: var(--ifb-white);
}

/* FAQ titles are h3 now - Divi styles toggle titles via the h3 element too. */
.ifb-faq h3.et_pb_toggle_title {
	padding-bottom: 0;
}
