/*
 * aa-design 1.2.0 – Design-Regeln "Stufe 1" für adams-altbausanierung.de (Befunde F01 bis F26 aus 86_Fable_Konzept).
 * Reines CSS. Wird als letztes Stylesheet im Kopf geladen (nach Divi und nach dem CSS von aa-seite-schadensanierung).
 * Rückweg: Plugin deaktivieren. Selektoren: "body #page-container …", wie auf der Seite üblich.
 * !important steht nur dort, wo eine bestehende Regel oder ein Inline-Stil schon !important trägt (Kennzeichnung "[!]").
 *
 * Inhalt
 *   0  Werte (Token)
 *   1a Fehler            F01 H2 am Handy · F02 Tastatur-Fokus · F03 Formularfelder 16 px · F04 weißer Streifen unter der Fußzeile
 *   1b Schrift           F05 Skala · F06 Laufweite · F07 H1 · F09 Vorzeile und blaue H2 · F24 Kleinschrift · F25 Zeilenumbruch
 *   1c Form              F11 Radien · F12 Knöpfe · F13 Karten · F14 Listenpunkte · F15 Grautöne
 *   1d Raum              F16 Abschnittsabstände · F17 Linie über der Fußzeile · F20 Fotos an der Inhaltskante · F23 Tippflächen
 *   2  404-Seite         F26
 *   3  Faktenleiste      F28
 */

/* ===== 0 · Werte ===== */
:root {
	--aa-link: #0A75A6;       /* Links, Hauptknopf; auf Weiß und #F4F4F4 mind. 4,5:1 */
	--aa-link-d: #075A82;     /* Hover */
	--aa-link-grau: #08668F;  /* nur Fußzeile (auf #EBEBEB wären #0A75A6 nur rund 4,3:1) */
	--aa-akzent: #05A3DC;     /* nur Icons und Linien, nie Text */
	--aa-text: #4A4947;
	--aa-flaeche: #F4F4F4;
	--aa-galerie: #E1F0F7;    /* blassblaue Fläche der Fotogalerien */
	--aa-fuss: #EBEBEB;
	--aa-card-line: #D9D9D9;
	--aa-r-flaeche: 10px;     /* Flächen und Bilder */
	--aa-r-bedien: 8px;       /* alles, was man antippt */
	--aa-fs-klein: 14px;
	--aa-fs-karte: 15px;
	--aa-fs-text: 16px;
	--aa-fs-vor: 17px;
	--aa-fs-h3: 18px;
	--aa-fs-knopf: 20px;
	--aa-fs-h2: 40px;
	--aa-fs-h1: 44px;
	--aa-fs-h1-recht: 39px;   /* Rechtsseiten und 404 */
}
@media (max-width: 767px) {
	:root { --aa-fs-h2: 28px; --aa-fs-h1: 30px; --aa-fs-h1-recht: 30px; }
}
/* gleicher Wert wie im CSS von aa-seite-schadensanierung: das Plugin soll auch allein stimmen */
body #page-container { --aa-section-edge: 32px; --aa-gap: 12px; }
@media (max-width: 767px) { body #page-container { --aa-section-edge: 22px; } }


/* ===== 1a · Fehler ===== */

/* F01 · Kontakt-H2 am Handy: eine H2-Größe für alle (40 px, bis 767 px 28 px). Die Regel steht unter 1b (H2/H1), sie gilt auch im Kontaktlayout 475. */

/* F02 · Sichtbarer Tastatur-Fokus (Divi setzt :focus{outline:0}). :focus-visible: Rahmen nur bei Tastatur, nicht beim Mausklick. */
body #page-container :focus-visible {
	outline: 2px solid var(--aa-link);
	outline-offset: 2px;
}
/* dunkle Fläche: Lightbox (liegt außerhalb von #page-container) */
.mfp-wrap :focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
/* Galerie: Fotos liegen in einem Rahmen mit overflow:hidden, der Rahmen würde außen abgeschnitten. Innen, zweifarbig (blau + weiß), auf jedem Foto sichtbar. */
body #page-container .et_pb_gallery .et_pb_gallery_image a {
	display: block;                       /* der Link war inline: sein Rahmen läge unter dem Foto */
}
body #page-container .et_pb_gallery .et_pb_gallery_image a:focus-visible {
	outline: 3px solid var(--aa-link);
	outline-offset: -3px;
	box-shadow: inset 0 0 0 6px #fff;
}
/* Kachel-Zeilen im Kontakt: den Rahmen trägt die Zeile (bestehende :has()-Regel), der Link selbst hat outline:0 */

/* F03 · Formularfelder am Handy 16 px (iOS zoomt unter 16 px beim Antippen), inkl. Auswahlfeld und Textfeld */
@media (max-width: 767px) {
	body #page-container .et_pb_contact_form .et_pb_contact_field :is(input.input, select, textarea) {
		font-size: var(--aa-fs-text);
	}
}

/* F04 · Streifen unter der Fußzeile (leere Sektion der Anrufleiste): Fußzeilen-Grau statt Weiß. Am Handy ist es der Platz hinter der Anrufleiste. */
body #page-container .et_pb_section.aa-callbar-sec {
	background-color: var(--aa-fuss);
}


/* ===== 1b · Schrift ===== */

/* F05/F07/F01 · H2 und H1 je Breite eine Größe */
body #page-container :is(.et_pb_text_inner, .et_pb_blurb_description) h2 {
	font-size: var(--aa-fs-h2);
}
body #page-container .aa-tbhead .et_pb_text_inner h1 {
	font-size: var(--aa-fs-h1);            /* F07: Unterseiten 44 / Handy 30 */
}
body #page-container .aa-hero-h1 .et_pb_text_inner h1.aa-hero-h1 {
	font-size: var(--aa-fs-h1);            /* Startseite: H1 trägt nur das Logobild, die Größe ist unsichtbar (K31 offen); hier nur die Regel */
}
/* F07 Folge: Die H1 der Unterseiten ist mit 44 px zu breit für die halbe Spalte (vier kurze Zeilen). Ab 1200 px bekommt die Textspalte 54 %, das Foto 40,5 % (Abstand 5,5 % bleibt). */
@media (min-width: 1200px) {
	body #page-container .aa-tbhead-row.et_pb_row > .et_pb_column:first-child { width: 54%; }
	body #page-container .aa-tbhead-row.et_pb_row > .et_pb_column:last-child { width: 40.5%; }
}

/* F06 · Laufweite: ab 28 px −0,02 em, darunter 0 */
body #page-container :is(h1, h2) {
	letter-spacing: -0.02em;
}
body #page-container :is(h3, h4, h5, h6, p, li) {
	letter-spacing: 0;
}
/* bestehende Regeln mit eigener Laufweite und höherer Spezifität */
body #page-container .aa-kpers-h .et_pb_text_inner p,
body #page-container .aa-kperson h3,
body #page-container .aa-partner-blurb h3 {
	letter-spacing: 0;
}

/* F09 · Vorzeile: 17 px / 600 / blau in allen Breiten */
body #page-container p.aa-kicker {
	font-size: var(--aa-fs-vor);
	font-weight: 600;
	line-height: 1.3;
}
/* F09 · "Unsere Partner": H3 20 px in allen Breiten */
body #page-container .aa-partner-blurb h3 {
	font-size: var(--aa-fs-knopf);
}
/* F09 · die zwei blauen H2 der Unterseiten (.aa-h2b) und die H2 der Rechtsseiten: dunkel, 20 px, eigene Klasse von Fällen ("Unter-H2") */
body #page-container .et_pb_text.aa-h2b .et_pb_text_inner h2 {
	font-size: var(--aa-fs-knopf);
	letter-spacing: 0;
	color: var(--aa-text) !important; /* [!] bestehende Regel .aa-h2b h2 {color:#0A75A6 !important} */
}
body #page-container .et_pb_text.aa-h2b .et_pb_text_inner h2 {
	padding-bottom: 14px;
}
body.page:not(:has(.aa-sec)) #page-container .et_pb_text_inner h2 {
	font-size: var(--aa-fs-knopf);
	letter-spacing: 0;
}
/* F07 · H1 der Rechtsseiten und der 404-Seite: 39 / Handy 30 */
body.page:not(:has(.aa-sec)) #page-container .et_pb_text_inner h1,
body.error404 #page-container .not-found-title {
	font-size: var(--aa-fs-h1-recht);
}
/* <strong> in Überschriften (Datenschutz) erbt Größe und Gewicht der Überschrift */
body #page-container :is(h1, h2) strong {
	font-weight: inherit;
}

/* F05 · Schriftskala: 13,5 → 14, 14,5 → 15, 19 → 18/20, 23 → 17/20, 34 → 28 */
body #page-container .aa-form-req .et_pb_text_inner p,
body #page-container .aa-form-note .et_pb_text_inner p {
	font-size: var(--aa-fs-klein);                       /* F24: 13,5 → 14 */
}
body #page-container .aa-qrow .et_pb_text .et_pb_text_inner p:not([class]) {
	font-size: var(--aa-fs-karte);                       /* Ablauf/Stufen: 14,5 → 15 */
}
body #page-container .et_pb_text .et_pb_text_inner ul.aa-liste li {
	font-size: var(--aa-fs-h3);                          /* Leistungslisten: 19 → 18 */
}
body #page-container .et_pb_text .et_pb_text_inner p.aa-q {
	font-size: 28px;                                     /* Nummern der Schritte: 34 → 28 (Wert der H2 am Handy) */
}
@media (min-width: 981px) and (max-width: 1100px) {
	body #page-container .aa-persons .et_pb_text_inner .aa-kperson a.aa-person-link {
		font-size: var(--aa-fs-klein);                   /* schmale Personenkarten: 13,5 → 14 */
	}
}
@media (max-width: 360px) {
	body #page-container .aa-facts p.et_pb_module_header {
		font-size: var(--aa-fs-klein);                   /* Faktenleiste auf sehr schmalen Handys: 13,5 → 14 */
	}
}
/* Kacheltitel (H3) 18 px in allen Breiten */
body #page-container .aa-tiles .et_pb_blurb h3.et_pb_module_header {
	font-size: var(--aa-fs-h3);
}
/* Karten-/Zeilentitel in den Kontaktzeilen: 17 px (Skala) */
body #page-container .aa-kcard .aa-act-l {
	font-size: var(--aa-fs-vor);
}

/* F24 · Kleinschrift: mindestens 14 px. "Quelle: eRecht24" trägt font-size:10px als Inline-Stil. */
body #page-container .et_pb_text_inner p[style*="font-size: 10px"] {
	font-size: var(--aa-fs-klein) !important; /* [!] Inline-Stil */
}

/* F25 · Einleitungen: kein einzelnes Restwort, höchstens 65 Zeichen breit; Überschriften ausgewogen */
body #page-container :is(.aa-intro, .aa-k-intro) .et_pb_text_inner p {
	max-width: 65ch;
	text-wrap: pretty;
}
body #page-container :is(h1, h2) {
	text-wrap: balance;
}


/* ===== 1c · Form ===== */

/* F11 · Radien: 10 px Flächen und Bilder, 8 px Bedienbares */
body #page-container .et_pb_gallery.aa-galerie :is(.et_pb_gallery_image, .et_pb_gallery_image a, .et_pb_gallery_image img, .et_pb_gallery_image .et_overlay) {
	border-radius: var(--aa-r-flaeche);                   /* Fotos: 8 → 10 */
}
body #page-container .aa-kcard.et_pb_text {
	border-radius: var(--aa-r-flaeche);                   /* Fläche: 8 → 10 */
}
body #page-container .aa-foot-legal .et_pb_text_inner button.aa-cc-link {
	border-radius: var(--aa-r-bedien);                    /* 2 → 8 (Form des Fokusrahmens) */
}
body #page-container .aa-callbar .aa-cb {
	border-radius: var(--aa-r-bedien);                    /* Anrufleiste: nur der Radius, 6 → 8 */
}

/* F12 · Knöpfe. Grundform für alle Divi-Knöpfe: Umriss, 8 px, Gewicht 600. Hover ohne Padding-Sprung und ohne Divi-Pfeil. */
body #page-container :is(.et_pb_section, .aa-404) .et_pb_button.et_pb_button.et_pb_button {
	border-radius: var(--aa-r-bedien) !important; /* [!] Handy-Hero setzt 6px !important */
	font-weight: 600 !important;                  /* [!] Handy-Hero und Absenden setzen 700 !important */
}
body #page-container :is(.et_pb_section, .aa-404) .et_pb_button.et_pb_button.et_pb_button:hover {
	padding-left: 1em;
	padding-right: 1em;
}
body #page-container :is(.et_pb_section, .aa-404) .et_pb_button.et_pb_button.et_pb_button:hover::after,
body #page-container :is(.et_pb_section, .aa-404) .et_pb_button.et_pb_button.et_pb_button::after {
	display: none;
}
/* 1.1.0 (Daniel 12.11.): eine Knopfsorte. Jeder Knopf ist gefüllt #0A75A6 mit weißer Schrift, in jeder Breite.
   Vorher gab es Haupt- (gefüllt) und Nebenknopf (Umriss); weil Desktop und Handy im Hero verschiedene Knöpfe zeigen,
   wechselte beim Skalieren die Farbe (oben blau/unten weiß ↔ oben weiß/unten blau). */
body #page-container :is(.et_pb_section, .aa-404) .et_pb_button.et_pb_button.et_pb_button {
	background-color: var(--aa-link) !important;  /* [!] Handy-Hero setzt #fff !important */
	border-color: var(--aa-link) !important;      /* [!] */
	color: #fff !important;                       /* [!] bestehende Regel: Knopftext #0A75A6 !important */
}
body #page-container :is(.et_pb_section, .aa-404) .et_pb_button.et_pb_button.et_pb_button:hover {
	background-color: var(--aa-link-d) !important; /* [!] */
	border-color: var(--aa-link-d) !important;     /* [!] */
	color: #fff !important;                        /* [!] */
}
/* Anrufleiste am Handy: alle drei Felder gefüllt (vorher "Anrufen" blau, "WhatsApp" und "Anfrage" weiß) */
body #page-container .et_pb_text .et_pb_text_inner .aa-callbar a.aa-cb.aa-cb {
	background: var(--aa-link) !important;        /* [!] bestehende Regeln mit !important */
	border-color: var(--aa-link) !important;      /* [!] */
	color: #fff !important;                       /* [!] */
}
/* Cookie-Banner: Akzeptieren und Ablehnen in jeder Breite gleich und gefüllt (am Handy waren beide weiß mit Rand, am Desktop Akzeptieren blau).
   Beide bleiben gleichwertig. Ersetzt den Farbteil von T15 (Complianz-Einstellung "Ablehnen"). */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:is(.cmplz-accept, .cmplz-deny) {
	background: var(--aa-link) !important;        /* [!] */
	border: 2px solid var(--aa-link) !important;  /* [!] */
	color: #fff !important;                       /* [!] */
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:is(.cmplz-accept, .cmplz-deny):hover {
	background: var(--aa-link-d) !important;      /* [!] */
	border-color: var(--aa-link-d) !important;    /* [!] */
}
/* Absenden: 20 px (Skala), volle Breite wie bisher */
body #page-container .et_pb_contact_form .et_pb_contact_submit.et_pb_button.et_pb_button {
	font-size: var(--aa-fs-knopf) !important;      /* [!] bestehende Regel: 19px !important am Handy */
}

/* F13 · Kartensorten. Fläche: Gegenfarbe zum Abschnitt, 10 px, ohne Rand. Bedienzeile: weiß, 1 px #D9D9D9, 8 px (.aa-act, .aa-person-field, Partner-Logos, WhatsApp-Zeile).
   Akzentkante nur an der Firmenkarte (3 px), Personenkarten ohne Kante. */
body #page-container .aa-kcard-main.et_pb_text {
	border-left-width: 3px;
}
body #page-container .aa-kperson {
	background: #fff;
	border-color: transparent;               /* Breite bleibt (1 px, links 4 px): Innenmaß und Zeilenumbrüche unverändert */
	border-radius: var(--aa-r-flaeche);
}
body #page-container .aa-partner-blurb p.aa-plogos a.aa-plogo {
	border-color: var(--aa-card-line);                    /* F15: #E2E2E2 → #D9D9D9 */
}

/* F14 · Listenpunkte der Unterseiten: selbst gezeichneter Strich-Haken in #05A3DC (CSS-Maske) statt Pfeilkreis aus der Divi-Schrift */
body #page-container .et_pb_section .et_pb_text .et_pb_text_inner ul.aa-liste li {
	padding-left: 36px;
}
body #page-container .et_pb_section .et_pb_text .et_pb_text_inner ul.aa-liste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 22px;
	font-family: inherit;
	background-color: var(--aa-akzent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 6.5'/%3E%3C/svg%3E") no-repeat center / 22px 22px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 6.5'/%3E%3C/svg%3E") no-repeat center / 22px 22px;
}

/* F15 · Grautöne auf #F4F4F4 / #EBEBEB / #D9D9D9, Textgrau #4A4947 */
body #page-container .aa-hero-board > .aa-hero-r {
	border-left-color: var(--aa-card-line);               /* #E3E3E3 → #D9D9D9 */
}
@media (min-width: 768px) and (max-width: 980px) {
	body #page-container .aa-hero-board > .aa-hero-r {
		border-top-color: var(--aa-card-line);
	}
}
body #page-container .aa-hero-h1 .et_pb_text_inner h1.aa-hero-h1 {
	color: var(--aa-text);                                /* #494A47 → #4A4947 */
}


/* ===== 1d · Raum ===== */

/* F16 · Abschnittsabstände der Unterseiten: überall --aa-section-edge. Aufeinanderfolgende weiße Abschnitte teilen sich eine Fuge:
   oben 0, unten --aa-section-edge (erster Abschnitt nach dem grauen Kopf und letzter vor dem Kontakt bekommen ihren Saum von der Regel in aa-seite-schadensanierung). */
body:not(.home) #page-container .et_pb_section.aa-sec {
	padding-top: 0;
	padding-bottom: var(--aa-section-edge);
}
/* Rechtsseiten (Impressum, Datenschutz): 54 px → --aa-section-edge */
body.page:not(:has(.aa-sec)) #page-container #main-content .et_pb_section {
	padding-top: var(--aa-section-edge);
	padding-bottom: var(--aa-section-edge);
}

/* F17 · Linie zwischen grauem Kontaktbereich und grauer Fußzeile (innen, ändert die Höhe nicht) */
body #page-container .et_pb_section.aa-kontakt {
	box-shadow: inset 0 -1px 0 var(--aa-card-line);
}

/* F20 · Fotos "Über uns" / "Geschichte" an der Inhaltskante, 360 px ab Desktop (Spalte kleiner → Foto schrumpft mit; Handy/Tablet unverändert) */
@media (min-width: 981px) {
	body #page-container .aa-about.et_pb_row { --aa-pw: 360px; }
	body #page-container .aa-about .aa-about-photo img { margin-left: 0; margin-right: auto; }
	body #page-container .aa-about-r .aa-about-photo img { margin-left: auto; margin-right: 0; }
	body #page-container .aa-about .et_pb_text.aa-caption .et_pb_text_inner { margin-left: 0; margin-right: auto; }
	body #page-container .aa-about-r .et_pb_text.aa-caption .et_pb_text_inner { margin-left: auto; margin-right: 0; }
}

/* F23 · Alleinstehende Links: Tippfläche mindestens 44 px (bis 980 px, also Handy und Tablet). Innenmaß wächst, der Außenabstand schrumpft im selben Maß: Optik bleibt. */
@media (max-width: 980px) {
	body #page-container .aa-foot-legal .et_pb_text_inner :is(a, button.aa-cc-link) {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin-block: -7px;
	}
	body #page-container .aa-tiles .et_pb_blurb .aa-more a.aa-more-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-block: 0;
		margin-block: -7px;
	}
	body #page-container .aa-igkopf a {
		min-height: 44px;
		margin-block: -10px;
	}
	body #page-container .et_pb_text .et_pb_text_inner .aa-gcard p.aa-gcard-link a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin-block: -11px -12px;
	}
	body #page-container .aa-foot-c1 .et_pb_image > a {
		display: block;
	}
	/* Kontaktzeilen: Die ganze Zeile ist der Link (::after deckt sie ab); der Link selbst erreicht ebenfalls 44 px */
	body #page-container .et_pb_text_inner a.aa-act-a {
		display: block;
		padding-block: 12px;
		margin-block: -12px;
	}
}


/* ===== 2 · 404-Seite (F26) ===== */
body.error404 #page-container #main-content .container::before {
	display: none;                         /* senkrechte Trennlinie für die (hier fehlende) Seitenleiste */
}
body.error404 #page-container #left-area {
	width: 100%;
	float: none;
	padding-right: 0;
}
body #page-container .aa-404 {
	padding: calc(var(--aa-section-edge) + 16px) 0 calc(var(--aa-section-edge) + 16px);
}
body #page-container .aa-404 .not-found-title {
	margin: 0;
	padding-bottom: 14px;
}
body #page-container .aa-404 .aa-404-text {
	margin: 0;
	padding: 0 0 24px;
	font-size: var(--aa-fs-text);
	line-height: 1.65;
	color: var(--aa-text);
	text-wrap: pretty;
}
body #page-container .aa-404 .aa-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 14px;
}
body #page-container .aa-404 .aa-404-btn {
	display: inline-block;
	border: 2px solid var(--aa-link);
	text-decoration: none;
}
@media (max-width: 767px) {
	body #page-container .aa-404 .aa-404-actions { flex-direction: column; }
	body #page-container .aa-404 .aa-404-btn { width: 100%; box-sizing: border-box; text-align: center; min-height: 52px; padding-top: .45em; padding-bottom: .45em; }
}


/* ===== 3 · Fotogalerien im blauen Rahmen (1.1.0, Daniel 12.11.) =====
   Jede Galerie (.aa-galerie) liegt in einer blassblauen Fläche (#E1F0F7; das volle #0A75A6 war Daniel zu kräftig, 12.11.). Auf der Startseite gehört die Instagram-Zeile dazu und wird zum Kopf der Fläche:
   so ist erkennbar, dass die Fotos eine Vorschau des Instagram-Profils sind. Die Wörter im Kopf kommen aus aa-seite-schadensanierung (Runde 10);
   mit dem älteren Wortlaut ("adams_adamsgbr auf Instagram") stimmt die Fläche ebenfalls. */
body #page-container .aa-gallery-sec .et_pb_column:has(> .et_pb_gallery.aa-galerie) {
	box-sizing: border-box;
	padding: 20px 22px 22px;
	background: var(--aa-galerie);
	border-radius: var(--aa-r-flaeche);
}
body #page-container .aa-gallery-sec .et_pb_column:has(> .et_pb_gallery.aa-galerie) > .et_pb_gallery.aa-galerie {
	margin-bottom: 0;
}
body #page-container .aa-gallery-sec .et_pb_column:has(> .et_pb_gallery.aa-galerie) .et_pb_gallery_items {
	padding: 0;
}
/* Bildunterschriften (Trockenbau): Textgrau */
body #page-container .aa-gallery-sec .aa-galerie-tb .et_pb_gallery_title {
	color: var(--aa-text);
}
/* Überschrift, die mit in der Fläche steht (Trockenbau: Vorzeile und "Galerie"): ohne Abstand nach oben; die Vorzeile dunkler, weil #0A75A6 auf der blassblauen Fläche nur rund 4,3:1 hat */
body #page-container .aa-gallery-sec .et_pb_column:has(> .et_pb_gallery.aa-galerie) .et_pb_text .et_pb_text_inner :is(h2, h3, p.aa-kicker) {
	padding-top: 0;
}
body #page-container .aa-gallery-sec .et_pb_column:has(> .et_pb_gallery.aa-galerie) .et_pb_text .et_pb_text_inner p.aa-kicker {
	color: var(--aa-link-d) !important; /* [!] bestehende Vorzeilen-Farbe mit !important */
}
body #page-container .aa-gallery-sec .et_pb_column:has(> .et_pb_gallery.aa-galerie) > .et_pb_text {
	margin-top: 0;
	padding-top: 0;
}
/* Kopf der Fläche: Instagram-Zeile */
body #page-container .aa-gallery-sec .et_pb_text .et_pb_text_inner p.aa-igkopf {
	padding: 0 0 16px;
}
body #page-container .aa-gallery-sec .et_pb_text .et_pb_text_inner p.aa-igkopf a,
body #page-container .aa-gallery-sec .et_pb_text .et_pb_text_inner p.aa-igkopf a:hover {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	min-height: 0;
	margin-block: 0;
	color: var(--aa-text) !important;            /* [!] bestehende Link-Regel mit !important */
	font-size: var(--aa-fs-vor);
	line-height: 1.25;
	letter-spacing: 0;
}
body #page-container .aa-gallery-sec p.aa-igkopf a:focus-visible {
	outline-offset: 4px;
	border-radius: var(--aa-r-bedien);
}
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-ico {
	width: 40px;
	height: 40px;
}
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-ico :is(rect, circle) {
	stroke: var(--aa-link);
}
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-ico circle:last-child {
	fill: var(--aa-link);
	stroke: none;
}
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-txt {
	display: flex;
	flex-direction: column;
	flex: 1 1 200px;
	min-width: 0;
}
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-name {
	font-size: var(--aa-fs-h3);
	font-weight: 700;
}
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-sub {
	font-size: var(--aa-fs-karte);
	font-weight: 400;
}
/* "Profil öffnen": sieht aus wie die Knöpfe der Seite (gefüllt), ist Teil desselben Links */
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-go {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 16px;
	background: var(--aa-link);
	border-radius: var(--aa-r-bedien);
	color: #fff;
	font-size: var(--aa-fs-text);
	font-weight: 600;
	text-decoration: none;       /* ohne aa-design unterstreicht aa-seite-schadensanierung die Marke als Link */
	transition: background-color .15s;
}
body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-go::after {
	content: "";
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5h11v11M19 5L5 19'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5h11v11M19 5L5 19'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (hover: hover) {
	body #page-container .aa-gallery-sec p.aa-igkopf a:hover .aa-ig-go { background: var(--aa-link-d); }
}
@media (max-width: 767px) {
	body #page-container .aa-gallery-sec .et_pb_column:has(> .et_pb_gallery.aa-galerie) { padding: 14px 12px 12px; }
	body #page-container .aa-gallery-sec .et_pb_text .et_pb_text_inner p.aa-igkopf { padding-bottom: 12px; }
	body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-ico { width: 34px; height: 34px; }
}
@media (max-width: 479px) {
	body #page-container .aa-gallery-sec p.aa-igkopf .aa-ig-go { flex: 1 1 100%; justify-content: center; }
}


/* ===== 3 · Faktenleiste (1.2.0) ===== */

/* F28 · Leiste mit den vier Punkten unter dem Banner: mittig, kleiner, in jeder Breite derselbe Aufbau.
   Ursache der Schieflage: Divis Clearfix (.et_pb_row::after) zählte in der Flex-Reihe als fünfter Punkt, rechts blieb eine Lücke
   (bei 1440 px 37 px); bei 981–1280 px standen die Punkte links in vier gleich breiten Spalten, bei 768–980 px ebenso in zwei.
   Jetzt: bis 1199 px zwei mal zwei als mittiger Block (Icons je Spalte auf einer Achse), ab 1200 px eine Zeile bündig von Rand zu Rand
   mit gleichen Abständen. Icons 30 px (vorher 40/34/36), Schrift 16 px (vorher 17), bis 767 px 15 px, bis 360 px 14 px. */
body #page-container .aa-facts.et_pb_row {
	display: grid;
	grid-template-columns: repeat(2, auto);
	justify-content: center;
	align-items: center;
	column-gap: 20px;
	row-gap: 10px;
}
body #page-container .aa-facts.et_pb_row::before,
body #page-container .aa-facts.et_pb_row::after {
	content: none;
}
body #page-container .aa-facts.et_pb_row > .et_pb_column {
	flex: none;
	width: auto !important;   /* [!] Divi-Zusatz-CSS setzt 50 % mit !important */
	min-width: 0;
	margin: 0 !important;     /* [!] wie oben */
	padding: 0;
}
body #page-container .aa-facts .et_pb_blurb_content {
	justify-content: flex-start;
	gap: 10px;
}
body #page-container .aa-facts .et_pb_blurb .et-pb-icon {
	width: 30px !important;   /* [!] Divi-Zusatz-CSS setzt die Feldgröße mit !important */
	height: 30px !important;  /* [!] wie oben */
}
body #page-container .aa-facts p.et_pb_module_header {
	max-width: none;
	font-size: var(--aa-fs-karte);
	line-height: 1.25;
	letter-spacing: 0;
}
@media (max-width: 360px) {
	body #page-container .aa-facts.et_pb_row { column-gap: 12px; }
	body #page-container .aa-facts .et_pb_blurb_content { gap: 8px; }
	body #page-container .aa-facts .et_pb_blurb .et-pb-icon {
		width: 26px !important;   /* [!] wie oben */
		height: 26px !important;  /* [!] wie oben */
	}
	body #page-container .aa-facts p.et_pb_module_header { font-size: var(--aa-fs-klein); }
}
@media (min-width: 768px) {
	body #page-container .aa-facts.et_pb_row {
		grid-template-columns: repeat(2, max-content);
		column-gap: 72px;
	}
	body #page-container .aa-facts p.et_pb_module_header {
		font-size: var(--aa-fs-text);
		white-space: nowrap;
	}
}
@media (min-width: 1200px) {
	body #page-container .aa-facts.et_pb_row {
		display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
		column-gap: 24px;
	}
}
