/* =========================================================
   PACCO Blog-Layout für Beaver Builder
   Wirkt nur auf Zeilen, Spalten und Module mit den CSS-Klassen
   pacco-* (in Beaver Builder unter Erweitert > CSS-Klasse).
   ========================================================= */

:root {
	--pacco-red: #ca1e17;
	--pacco-red-dark: #a71812;
	--pacco-blue: #1d8fd1;
	--pacco-head: #1c1a1b;
	--pacco-card: #f2f1f1;
	--pacco-line: #e4e2e2;
	--pacco-radius: 10px;
}

/* ---------- Zeilen ---------- */
.fl-row.pacco-row > .fl-row-content-wrap { padding: 24px 20px; }
/* Alle Inhalte auf exakt dieselbe Breite (1180 px): Modul-Standardabstand links/rechts entfernen */
.fl-row.pacco-row .fl-module > .fl-module-content { margin-left: 0; margin-right: 0; }

/* ---------- Bausteine ---------- */
.pacco-h1 .fl-heading { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; font-weight: 700; color: var(--pacco-head); }
.pacco-h2 .fl-heading { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 700; color: var(--pacco-head); }
.pacco-bar .fl-heading::after,
.pacco-bar .fl-rich-text::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--pacco-red); margin-top: 18px; }
.pacco-lead .fl-rich-text p { font-size: 19px; line-height: 1.6; margin: 0; }
.pacco-eyebrow .fl-rich-text p { font: 700 14px/1.3 Lato, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--pacco-blue); margin: 0; }
.fl-module.pacco-eyebrow > .fl-module-content { margin-bottom: 4px; }
.fl-module.pacco-eyebrow + .fl-module > .fl-module-content { margin-top: 4px; }
/* Bilder: feste Formate, egal welches Bild hochgeladen wird (Hoch-/Querformat, groß/klein) */
.pacco-img .fl-photo-content, .pacco-img .fl-photo-img { display: block; width: 100% !important; }
.pacco-img img { width: 100% !important; max-width: 100% !important; height: auto; border-radius: var(--pacco-radius); object-fit: cover; object-position: center; }
.pacco-img-hero img { aspect-ratio: 16 / 10; height: auto !important; }
.pacco-img-side img { aspect-ratio: 4 / 3; height: auto !important; }

/* Icons: Linien-Icons als SVG aus der Mediathek ("PACCO Icon – ...") */
.pacco-card-inhalt .fl-callout-photo { margin: 0 0 6px; line-height: 0; }
.pacco-card-inhalt .fl-callout-photo img { width: 64px !important; height: 64px !important; margin: 0 auto; display: block; }
.pacco-punkt .fl-callout-photo { flex: none; width: 74px; height: 74px; margin: 0 18px 0 0 !important; padding: 0; background: var(--pacco-card); border-radius: var(--pacco-radius); display: flex; align-items: center; justify-content: center; line-height: 0; }
.pacco-punkt .fl-callout-photo .fl-photo, .pacco-punkt .fl-callout-photo .fl-photo-content { line-height: 0; margin: 0; }
.pacco-punkt .fl-callout-photo img { width: 56px !important; height: 56px !important; display: block; }
/* (alt) Font-Icons, falls jemand im Beaver Builder wieder ein Icon statt Bild wählt */
.pacco-card-inhalt .fl-icon i, .pacco-punkt .fl-icon i { color: transparent !important; -webkit-text-stroke: 2.5px var(--pacco-red); }
.pacco-card-inhalt .fl-icon i::before, .pacco-punkt .fl-icon i::before { color: transparent !important; }

/* Häkchen-Listen */
.pacco-check ul, .pacco-punkt ul { list-style: none; margin: 0; padding: 0; }
.pacco-check li, .pacco-punkt li { position: relative; padding-left: 30px; margin: 6px 0; line-height: 1.45; font-size: 16px; }
.pacco-check li::before, .pacco-punkt li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 8px; border-left: 3px solid var(--pacco-red); border-bottom: 3px solid var(--pacco-red); transform: rotate(-45deg); }

/* ---------- Kopfbereich ---------- */
.fl-row.pacco-hero > .fl-row-content-wrap { background: linear-gradient(180deg, #eef4fa 0%, #fff 100%); padding-top: 56px; padding-bottom: 32px; }
.fl-row.pacco-hero .fl-col.pacco-hero-text:only-child .fl-col-content { max-width: 820px; }

/* ---------- Kacheln ---------- */
.pacco-cards .fl-col-group { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.pacco-cards .fl-col.pacco-card { display: flex; float: none; flex: 1 1 0; }
.pacco-card > .fl-col-content { flex: 1; margin: 0 10px; background: var(--pacco-card); border-radius: var(--pacco-radius); padding: 24px 14px; }
.pacco-card-inhalt .fl-callout-title { font-size: 21px; line-height: 1.25; font-weight: 600; color: var(--pacco-head); margin: 10px 0 6px; }
.pacco-card-inhalt .fl-callout-text p { font-size: 15.5px; line-height: 1.5; margin: 0; }

/* ---------- Hauptteil ---------- */
.pacco-quote .fl-rich-text { position: relative; background: var(--pacco-card); border-radius: var(--pacco-radius); padding: 24px 26px 24px 82px; }
.pacco-quote .fl-rich-text::before { content: "\201C"; position: absolute; left: 24px; top: 16px; font: 700 76px/1 "Exo 2", sans-serif; color: var(--pacco-red); }
.pacco-quote .fl-rich-text p { font: italic 600 22px/1.35 "Exo 2", sans-serif; color: var(--pacco-head); margin: 0; }
.pacco-punkt .fl-callout-title { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--pacco-head); margin: 0 0 2px; }
.pacco-punkt .fl-callout-text p { margin: 0 0 8px; color: var(--pacco-head); font-size: 16px; }
.pacco-punkt .fl-callout-text li { font-size: 16px; }
.pacco-punkt .fl-callout { display: flex; align-items: flex-start; }
.pacco-punkt .fl-callout-content { flex: 1; padding: 0; margin: 0; }
.pacco-punkt .fl-callout-title { margin-top: 0 !important; padding-top: 0; }
.pacco-punkt .fl-icon { background: var(--pacco-card); border-radius: var(--pacco-radius); width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; margin-right: 18px; padding: 0 !important; flex: none; }
.pacco-punkt .fl-icon i { float: none !important; margin: 0 !important; text-align: center; }
.pacco-punkt .fl-icon-wrap { align-items: flex-start; }

/* ---------- Vorteile ---------- */
.fl-row.pacco-benefits > .fl-row-content-wrap > .fl-row-content { background: var(--pacco-card); border-radius: var(--pacco-radius); overflow: hidden; }
.pacco-benefits-text { display: flex; }
.pacco-benefits-text > .fl-col-content { flex: 1; padding: 22px 16px; display: flex; flex-direction: column; justify-content: center !important; }
.pacco-benefits .fl-col:only-child .pacco-check ul { columns: 2; column-gap: 40px; }
.pacco-benefits .pacco-check li { break-inside: avoid; }
.pacco-benefits-bild .fl-module, .pacco-benefits-bild .fl-module-content, .pacco-benefits-bild .fl-photo, .pacco-benefits-bild .fl-photo-content { height: 100%; margin: 0; }
.pacco-benefits-bild .fl-photo-content { display: block; }
.pacco-img-benefits img { height: 270px !important; min-height: 0; object-position: center 30%; border-radius: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

/* ---------- Beratungs-Box ---------- */
.pacco-cta > .fl-module-content { border-radius: var(--pacco-radius); overflow: hidden; }
.pacco-cta .fl-cta-wrap { border-radius: var(--pacco-radius); padding: 28px 32px;
	background-image: linear-gradient(90deg, rgba(43, 42, 44, .96) 0%, rgba(43, 42, 44, .88) 40%, rgba(43, 42, 44, .35) 75%, rgba(43, 42, 44, .1) 100%), url("/wp-content/uploads/2023/10/LUj_IWhA-scaled.jpeg");
	background-size: cover; background-position: center; }
.pacco-cta .fl-cta-title { font: 700 26px/1.2 "Exo 2", sans-serif; margin: 0 0 4px; }
.pacco-cta .fl-cta-text-content p { margin: 0; font-size: 16px; line-height: 1.5; }
.pacco-cta a.fl-button { border-radius: var(--pacco-radius); padding: 16px 22px; font-weight: 700; font-size: 16px; }
@media (min-width: 769px) {
	.pacco-cta .fl-cta-inline { display: flex; align-items: center; gap: 24px; }
	.pacco-cta .fl-cta-inline .fl-cta-text { flex: 1; width: auto; padding: 0; }
	.pacco-cta .fl-cta-inline .fl-cta-button { flex: none; width: auto; min-width: 0; padding: 0; }
	.pacco-cta .fl-cta-inline a.fl-button { white-space: nowrap; }
}

/* ---------- Ausführliche Fassung ---------- */
.fl-row.pacco-longform > .fl-row-content-wrap > .fl-row-content { border-top: 1px solid var(--pacco-line); padding-top: 40px; }
.pacco-prose .fl-rich-text { font-size: 17.5px; line-height: 1.75; }
.pacco-prose .fl-rich-text h2 { font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--pacco-head); margin: 40px 0 12px; }
.pacco-prose .fl-rich-text h3 { font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--pacco-head); margin: 30px 0 8px; }
.pacco-prose .fl-rich-text p { margin: 0 0 18px; }
.pacco-prose .fl-rich-text a { color: var(--pacco-red); text-decoration: underline; text-underline-offset: 3px; }
.pacco-prose .fl-rich-text ul, .pacco-prose .fl-rich-text ol { margin: 0 0 20px 22px; padding: 0; }
.pacco-prose .fl-rich-text li { margin: 6px 0; }
.pacco-prose .fl-rich-text ul li::marker { color: var(--pacco-red); }
/* Zitat im Text = gleiche Optik wie die graue Zitatbox im Hauptteil */
.pacco-prose .fl-rich-text blockquote { position: relative; margin: 28px 0; padding: 24px 26px 24px 82px; border: 0; background: var(--pacco-card); border-radius: var(--pacco-radius); font-style: normal; }
.pacco-prose .fl-rich-text blockquote::before { content: "\201C"; position: absolute; left: 24px; top: 16px; font: 700 76px/1 "Exo 2", sans-serif; color: var(--pacco-red); }
.pacco-prose .fl-rich-text blockquote p { font: italic 600 22px/1.35 "Exo 2", sans-serif; color: var(--pacco-head); margin: 0 0 8px; }
.pacco-prose .fl-rich-text blockquote p:last-child { margin: 0; }
.pacco-prose .fl-rich-text img { border-radius: var(--pacco-radius); height: auto; }
.pacco-prose .fl-rich-text table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.pacco-prose .fl-rich-text th, .pacco-prose .fl-rich-text td { text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--pacco-line); vertical-align: top; }
.pacco-prose .fl-rich-text th { background: var(--pacco-card); color: var(--pacco-head); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
	.pacco-hero .fl-col-group, .pacco-main .fl-col-group, .pacco-benefits .fl-col-group { display: flex; }
	.pacco-hero .fl-col-group { align-items: center; }
	.pacco-hero .fl-col, .pacco-main .fl-col, .pacco-benefits .fl-col { float: none; flex: 1 1 auto; }	.pacco-main-aside > .fl-col-content { padding-right: 24px; }
	.pacco-main-text > .fl-col-content { padding-left: 24px; }
	.pacco-hero-text > .fl-col-content { padding-right: 40px; }
	.pacco-hero .fl-col:only-child > .fl-col-content, .pacco-main .fl-col:only-child > .fl-col-content { padding: 0; }
	.pacco-main .fl-col:only-child > .fl-col-content { padding: 0; }
}

/* ---------- Handy ---------- */
@media (max-width: 768px) {
	.fl-row.pacco-hero > .fl-row-content-wrap { padding-top: 28px; }
	.pacco-lead .fl-rich-text p { font-size: 17px; }
	.pacco-cards .fl-col.pacco-card { flex: 0 0 50%; width: 50% !important; }
	.pacco-cards .fl-col.pacco-card:only-child { flex-basis: 100%; width: 100% !important; }
	.pacco-cards .fl-col-group { margin: 0 -6px; }
	.pacco-cards .fl-col.pacco-card { padding: 6px; }
	.pacco-card > .fl-col-content { margin: 0 !important; padding: 18px 10px; }
	.pacco-card-inhalt .fl-callout-title { font-size: 18px; }
	.pacco-card-inhalt .fl-callout-text p { font-size: 14.5px; }
	.pacco-quote .fl-rich-text p { font-size: 19px; }
	.pacco-punkt .fl-icon { width: 52px; height: 52px; margin-right: 14px; }
	.pacco-punkt .fl-callout-photo { width: 58px; height: 58px; margin-right: 14px !important; }
	.pacco-punkt .fl-callout-photo img { width: 44px !important; height: 44px !important; }
	.pacco-card-inhalt .fl-callout-photo img { width: 54px !important; height: 54px !important; }
	.pacco-benefits .fl-col:only-child .pacco-check ul { columns: 1; }
	.pacco-img-benefits img { height: 220px !important; min-height: 0;
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%); mask-image: linear-gradient(180deg, transparent 0, #000 25%); }
	.pacco-cta .fl-cta-wrap { padding: 24px 20px; }
	.pacco-cta .fl-cta-title { font-size: 22px; }
	.pacco-prose .fl-rich-text h2 { font-size: 24px; }
}
