/* css/blog.css – Blog (Reiseblog und Gastgeber-Blog): Übersicht, Kategorie, Beitrag
   Genutzt in: blog.php, blog-post.php, includes/blog-card.php – und als Vorschau im Editor (admin/blog-edit.php).
   Farben aus css/style.css (:root). Die Klassen im Beitragstext (.blog-text) sind genau die erlaubten Bausteine aus
   a4u_blog_keep_only_allowed_html(): img-center, img-left, img-right, img-pair, box-tip, box-info, box-video. */





/* ////// GRUNDGERÜST */
.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.blog-main { padding: 26px 0 44px; background: var(--sand); }
.blog-meta { font-size: 13px; color: var(--muted); margin: 0; }
.blog-btn { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 15px; }
.blog-btn:hover { background: var(--accent-hover); }





/* ////// KOPF: Verlauf Himmelblau → Sand (wie die Popups), Brotkrumen, Titel, Einleitung */
.blog-hero { background: linear-gradient(180deg, #cfe7f1 0%, var(--sand) 100%); padding: 28px 0 22px; }
.blog-hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 8px; color: var(--text); }
.blog-lead { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 720px; line-height: 1.5; }

/* Ferienhaus-Suche (nur Reiseblog): Suchleiste aus search-bar.css, zentriert oben wie auf der Suchseite */
.blog-search-form { position: relative; z-index: 5; display: flex; justify-content: center; margin: 0 0 26px; }
/* Brotkrumen (includes/breadcrumbs.php, Aussehen style.css .breadcrumbs / .crumbs) */
.blog-hero .blog-breadcrumbs { margin-bottom: 10px; }
.blog-hero .crumbs { margin: 0 0 12px; }

/* Kategorien als Pillen (normale Links, eine Kategorie pro Seite) */
.blog-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }   /* Filter selbst: .chip in style.css */
/* Suche im Blog (blog.php, erst ab A4U_BLOG_SEARCH_MIN_POSTS Beiträgen) und Zeile mit dem Ergebnis */
.blog-search { display: flex; gap: 8px; max-width: 520px; margin-top: 16px; }
.blog-search input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; }
.blog-search .blog-btn { height: 44px; }
.blog-search-result { margin: 0 0 18px; color: var(--muted); }





/* ////// KACHELN (includes/blog-card.php) */
.blog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; }
.blog-card-image { display: block; aspect-ratio: 16 / 9; background: #e7eef1; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-text { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.blog-card h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--sea); }
.blog-card-subtitle { font-size: 14px; color: var(--muted); margin: 0 0 4px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-category { font-size: 12px; font-weight: 700; color: var(--sea); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.blog-sponsored-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; background: #f3ece2; color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: 0; }
/* großer Beitrag oben auf der Übersicht */
.blog-card-large { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 26px; border-radius: 18px; }
/* Bild füllt die Höhe des Textblocks daneben (mind. 300px, höchstens 440px) und wird zugeschnitten – das Bild selbst bestimmt
   die Höhe nicht mehr (sonst macht ein Hochformatbild die Karte beliebig hoch) */
.blog-card-large .blog-card-image { aspect-ratio: auto; position: relative; min-height: 300px; max-height: 440px; }
.blog-card-large .blog-card-image img { position: absolute; inset: 0; }
.blog-card-large .blog-card-text { padding: 28px 30px; justify-content: center; }
.blog-card-large h3 { font-size: 28px; line-height: 1.2; }

/* Blättern, Hinweis aufs Portal, leere Seite */
.blog-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.blog-pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; font-weight: 600; padding: 0 12px; }
.blog-pager a.on { background: var(--sea); color: #fff; border-color: var(--sea); }
.blog-cta-band { margin: 34px 0 0; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.blog-cta-band b { font-size: 19px; display: block; }
.blog-cta-band span { color: var(--muted); font-size: 14px; }
.blog-empty { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 40px; text-align: center; }





/* ////// BEITRAG */
.blog-post-head > * { max-width: 820px; }
.blog-post-head h1 { font-size: 42px; line-height: 1.12; margin: 8px 0 10px; }
.blog-post-subtitle { font-size: 19px; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.blog-sponsored-note { display: inline-block; margin: 12px 0 0; background: #f3ece2; border-radius: 6px; padding: 4px 10px; font-size: 13px; color: var(--muted); }
.blog-post-image { margin: 0 0 26px; }
.blog-post-image img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; }
.blog-post-image figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.blog-post-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.blog-post-side { position: sticky; top: calc(var(--hdr, 69px) + 20px); display: grid; gap: 18px; }   /* Abstand für den festen Header, wie die Sprungmarken */
.blog-contents { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.blog-contents summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.blog-contents summary::-webkit-details-marker { display: none; }
.blog-contents ol { list-style: none; margin: 10px 0 0; padding: 0; }
.blog-contents a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.blog-contents a:hover { border-left-color: var(--accent); }
/* Werbeplätze (erst mit AdSense, blog-post.php $blog_ads_active) */
.blog-ad-side { min-height: 600px; }
.blog-ad-inline { min-height: 120px; margin: 26px 0; }
.blog-post-body { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 34px 44px 40px; }
.blog-overview { background: #eef6f9; border: 1px solid #cfe3ea; border-radius: 14px; padding: 16px 22px; margin: 0 0 24px; }
.blog-overview-title { margin: 0 0 6px; color: var(--sea); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.blog-overview ul, .blog-overview ol { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.blog-overview p:not(.blog-overview-title) { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.blog-overview p:not(.blog-overview-title):last-child { margin-bottom: 0; }
/* Mit Ort (blog-post.php, $blog_post_map): Text links, Karte 280 × 280 px rechts. Ist der Kasten schmaler als 600 px,
   steht die Karte unter dem Text (volle Breite, 280 px hoch). Gemessen wird die Breite des Kastens, nicht des Fensters:
   .blog-overview-frame (blog-post.php) ist dafür ein Container (container-type) um den Kasten. Nicht .blog-post-body –
   ein Container wird Bezugsrahmen für position: fixed, das würde die schwebenden Knöpfe (.blog-float-buttons) verschieben. */
.blog-overview-frame { container-type: inline-size; }
.blog-overview-has-map { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 18px; row-gap: 0; align-items: start; }
.blog-overview-has-map .blog-overview-title { grid-column: 1 / -1; }   /* Überschrift über beide Spalten, Text und Karte beginnen auf gleicher Höhe */
.blog-overview-map.map { height: 280px; border-radius: 12px; }
.blog-overview-map .map-consent { gap: 8px; padding: 12px; }
.blog-overview-map .map-consent-icon { width: 30px; height: 30px; }
.blog-overview-map .map-consent p { font-size: 11px; line-height: 1.35; }
.blog-overview-map .map-load { padding: 7px 14px; font-size: 14px; }
@container (max-width: 599px) {
    .blog-overview-has-map { grid-template-columns: 1fr; }
    .blog-overview-has-map .blog-overview-map { margin-top: 14px; }
}
.blog-post-cta { margin: 30px 0 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: linear-gradient(180deg, #e3f1f6, var(--sand)); border-radius: 14px; padding: 18px 22px; }
.blog-post-cta b { display: block; font-size: 18px; }
.blog-post-cta span { font-size: 14px; color: var(--muted); }
.blog-author { display: flex; gap: 14px; align-items: center; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.blog-author-mark { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--accent)); flex: none; }
.blog-author b { color: var(--text); display: block; font-size: 15px; }
.blog-author-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.blog-author-role { display: block; font-size: 13px; }
.blog-author-text { display: block; margin-top: 2px; }
.blog-more { margin: 40px 0 0; }
.blog-more h2 { font-size: 24px; margin: 0 0 14px; }





/* ////// BEITRAGSTEXT – die erlaubten Bausteine (auch Vorschau im Editor) */
.blog-text { font-size: 17px; line-height: 1.7; color: var(--text); }
.blog-text::after { content: ""; display: block; clear: both; }
.blog-text h2 { font-size: 26px; line-height: 1.25; margin: 34px 0 10px; scroll-margin-top: calc(var(--hdr, 69px) + 20px); }   /* Sprungmarke: nicht hinter dem festen Header verschwinden */
.blog-text h2:first-child { margin-top: 0; }
.blog-text h3 { font-size: 20px; margin: 24px 0 6px; }
.blog-text p { margin: 0 0 14px; }
.blog-text ul, .blog-text ol { margin: 0 0 16px; padding-left: 22px; }
.blog-text li { margin: 0 0 6px; }
.blog-text a { color: var(--sea); }
/* Bilder: mittig (Standard), links oder rechts umflossen, zwei nebeneinander */
.blog-text figure { margin: 22px 0; }
.blog-text figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.blog-text figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.blog-text figure.img-left { float: left; width: 44%; margin: 4px 24px 12px 0; }
.blog-text figure.img-right { float: right; width: 44%; margin: 4px 0 12px 24px; }
.blog-text h2, .blog-text h3, .blog-text .img-pair, .blog-text table, .blog-text blockquote { clear: both; }
.blog-text .img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.blog-text .img-pair figure { margin: 0; }
.blog-text .img-pair img { aspect-ratio: 4 / 3; object-fit: cover; }
/* Zitat */
.blog-text blockquote { margin: 24px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--accent); }
.blog-text blockquote p { font-size: 21px; line-height: 1.5; font-style: italic; margin: 0; }
.blog-text blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }
.blog-text blockquote cite::before { content: "— "; }
/* Kästen: gelb = Tipp, blau = Info. Erste Zeile <strong> = Titel */
.blog-text aside { border-radius: 14px; padding: 16px 20px 16px 58px; margin: 22px 0; position: relative; font-size: 16px; clear: both; }
.blog-text aside::before { position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; font-style: normal; }
.blog-text aside > strong:first-child { display: block; margin-bottom: 2px; }
.blog-text aside p:last-child { margin-bottom: 0; }
.blog-text aside.box-tip { background: #fdf4e4; border: 1px solid #f1d9ad; }
/* Taste bzw. Tastenkürzel (<kbd>Strg</kbd>+<kbd>U</kbd>, Anleitung für Gastgeber): wie eine Taste auf der Tastatur */
.blog-text kbd { display: inline-block; min-width: 1.6em; padding: 1px 7px 2px; margin: 0 1px; border: 1px solid #c9c0b4; border-bottom-width: 3px; border-radius: 6px; background: #faf8f4; color: var(--text); font: 600 .88em/1.4 inherit; font-family: inherit; text-align: center; white-space: nowrap; vertical-align: 1px; }
.blog-text aside.box-tip::before { content: "!"; background: var(--accent); color: var(--on-accent); }
.blog-text aside.box-info { background: #eef6f9; border: 1px solid #cfe3ea; }
.blog-text aside.box-info::before { content: "i"; background: var(--sea); color: #fff; }
/* Video-Kasten: Link zu einem YouTube-Video mit Quellenangabe (Kanal) – nichts wird eingebettet und nichts von YouTube
   geladen; der Link öffnet YouTube in einem neuen Tab (a4u_blog_set_external_link_attributes()).
   Oben eine Vorschaufläche 16:9 (::before des Links, ganz klickbar), von oben nach unten: Play-Knopf, „YouTube“,
   A4U-Spirale, Verlauf Himmel → Meer (50 %), Hauptbild des Beitrags (--blog-main-image, gesetzt in blog-post.php). */
.blog-text aside.box-video { background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(58,51,48,.08); padding: 0 0 16px; overflow: hidden; }
.blog-text aside.box-video::before { content: none; }
.blog-text aside.box-video > a { display: block; padding: 14px 20px 0; font-weight: 700; font-size: 17px; }
.blog-text aside.box-video > a::before { content: ""; display: block; aspect-ratio: 16 / 9; margin: -14px -20px 14px; background:
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='3' stdDeviation='4' flood-opacity='.3'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='40' fill='%23e9a84a' filter='url(%23s)'/%3E%3Cpath d='M41 33l26 17-26 17z' fill='%233a3330'/%3E%3C/svg%3E") center / clamp(56px, 13%, 84px) auto no-repeat,
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cpath d='M2 3l12 7-12 7z' fill='%23fff'/%3E%3Ctext x='20' y='15.5' font-family='Inter, Arial, sans-serif' font-size='15' font-weight='700' fill='%23fff'%3EYouTube%3C/text%3E%3C/svg%3E") right 16px bottom 12px / 92px 17px no-repeat,
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M46.9,51.7 L46.6,51.5 L46.3,51.2 L45.9,50.9 L45.7,50.6 L45.4,50.2 L45.2,49.8 L45.0,49.3 L44.9,48.8 L44.8,48.2 L44.8,47.7 L44.8,47.1 L45.0,46.5 L45.1,45.9 L45.4,45.3 L45.7,44.8 L46.1,44.2 L46.5,43.7 L47.0,43.2 L47.6,42.7 L48.2,42.3 L48.9,42.0 L49.7,41.7 L50.4,41.5 L51.3,41.3 L52.1,41.3 L53.0,41.3 L53.8,41.4 L54.7,41.6 L55.6,41.9 L56.5,42.3 L57.3,42.8 L58.1,43.3 L58.9,44.0 L59.6,44.7 L60.3,45.5 L60.8,46.4 L61.3,47.4 L61.7,48.4 L62.0,49.5 L62.3,50.6 L62.4,51.8 L62.4,53.0 L62.2,54.2 L62.0,55.4 L61.6,56.6 L61.2,57.8 L60.6,58.9 L59.9,60.0 L59.0,61.0 L58.1,62.0 L57.1,62.9 L55.9,63.7 L54.7,64.4 L53.4,65.0 L52.0,65.4 L50.6,65.8 L49.1,66.0 L47.6,66.1 L46.1,66.0 L44.6,65.8 L43.1,65.4 L41.6,64.9 L40.1,64.2 L38.7,63.4 L37.3,62.5 L36.1,61.4 L34.9,60.2 L33.8,58.8 L32.9,57.4 L32.1,55.8 L31.4,54.2 L30.9,52.5 L30.5,50.7 L30.3,48.9 L30.3,47.0 L30.4,45.2 L30.7,43.3 L31.2,41.5 L31.9,39.7 L32.8,37.9 L33.8,36.2 L35.0,34.6 L36.3,33.1 L37.8,31.8 L39.4,30.5 L41.2,29.4 L43.1,28.5 L45.0,27.7 L47.1,27.2 L49.2,26.8 L51.4,26.6 L53.5,26.6 L55.7,26.8 L57.9,27.2 L60.1,27.8 L62.2,28.7 L64.3,29.7 L66.2,31.0 L68.1,32.4 L69.8,34.0 L71.4,35.8 L72.8,37.7 L74.0,39.8 L75.1,42.0 L75.9,44.3 L76.6,46.6 L77.0,49.1 L77.2,51.6 L77.1,54.1 L76.8,56.7 L76.3,59.2 L75.5,61.7 L74.5,64.1 L73.3,66.4 L71.9,68.7 L70.2,70.8 L68.3,72.7 L66.3,74.5 L64.0,76.1 L61.7,77.5 L59.1,78.6 L56.5,79.6 L53.8,80.3 L51.0,80.7 L48.1,80.9 L45.2,80.8 L42.4,80.4 L39.5,79.8 L36.7,78.9 L34.0,77.7 L31.4,76.3 L28.9,74.7 L26.5,72.7 L24.4,70.6 L22.4,68.3 L20.6,65.8 L19.1,63.1 L17.8,60.2 L16.8,57.2 L16.0,54.2 L15.6,51.0 L15.4,47.8 L15.5,44.6 L16.0,41.4 L16.7,38.2 L17.7,35.1 L19.1,32.1 L20.7,29.2 L22.6,26.4 L24.7,23.8 L27.1,21.4 L29.7,19.2 L32.5,17.3 L35.5,15.6 L38.7,14.2 L42.0,13.1 L45.4,12.3 L48.9,11.8 L52.5,11.7 L56.0,11.9 L59.6,12.4 L63.1,13.2 L66.5,14.4 L69.9,15.9 L73.1,17.7 L76.1,19.8 L78.9,22.2 L81.5,24.8 L83.9,27.7 L86.0,30.8 L87.8,34.2 L89.4,37.7 L90.5,41.3 L91.4,45.1 L91.9,48.9 L92.0,52.8 L91.8,56.7 L91.2,60.6 L90.3,64.4 L89.0,68.2' fill='none' stroke='%23fff' stroke-opacity='.3' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right -6% top -12% / 38% auto no-repeat,
	linear-gradient(160deg, rgba(94,177,209,.5), rgba(61,106,122,.5)),
	var(--blog-main-image, none) center / cover no-repeat,
	#8fb5c2; }
.blog-text aside.box-video cite { display: block; margin-top: 4px; padding: 0 20px; font-size: 14px; font-style: normal; color: var(--muted); }
.blog-text aside.box-video cite::after { content: " · YouTube"; }
.blog-text aside.box-video cite a { color: inherit; font-weight: 400; }   /* Link zum Kanal (optional) */
/* Tabelle */
.blog-text table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.blog-text th { text-align: left; background: var(--sand); padding: 9px 12px; border-bottom: 2px solid var(--border); }
.blog-text td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
/* Breite Tabellen: Zellen dürfen umbrechen (auch lange Wörter), damit die Tabelle nie über .blog-post-body hinausragt */
.blog-text th, .blog-text td { overflow-wrap: anywhere; hyphens: auto; }





/* ////// SCHMALE BILDSCHIRME */
@media (max-width: 900px) {
	.blog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.blog-card-large { grid-template-columns: 1fr; }
	.blog-card-large .blog-card-image { aspect-ratio: 16 / 9; min-height: 0; max-height: none; }   /* untereinander: wie die normalen Karten 16:9 */
	.blog-post-grid { grid-template-columns: 1fr; gap: 18px; }
	.blog-post-side { position: static; }
	.blog-contents:not([open]) ol { display: none; }
	.blog-ad-side { display: none; }
}
@media (max-width: 640px) {
	.blog-wrap { padding: 0 16px; }
	.blog-hero h1, .blog-post-head h1 { font-size: 30px; }
	.blog-cards { grid-template-columns: 1fr; }
	.blog-post-body { padding: 22px 18px 26px; }
	.blog-text figure.img-left, .blog-text figure.img-right { float: none; width: auto; margin: 22px 0; }
	.blog-text .img-pair { grid-template-columns: 1fr; }
	.blog-cta-band, .blog-post-cta { flex-direction: column; align-items: flex-start; }
}





/* ////// SEO-BEREICH der Übersichts- und Kategorieseiten (a4u_blog_descriptions) – Aufbau wie .seo-text der Orte
   (css/search.css), Raster und Icons aus css/style.css (.desc-grid, .desc-item, .desc-icon, .desc-quote) */
.blog-seo { margin: 44px 0 0; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px 34px; }
.blog-seo h2 { font-size: 26px; margin: 0 0 18px; }
.blog-seo .desc-quote { font-size: 17px; }
@media (max-width: 640px) {
	.blog-seo { padding: 22px 18px; }
	.blog-seo .desc-grid { grid-template-columns: 1fr; }
}

/* Quellen am Ende des Beitrags (blog-post.php, a4u_blog_posts.sources) – kleiner, gehört nicht ins Inhaltsverzeichnis */
.blog-sources { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.blog-sources-title { font-size: 16px; margin: 0 0 8px; color: var(--text); scroll-margin-top: calc(var(--hdr, 69px) + 20px); }
.blog-sources ol { margin: 0; padding-left: 22px; }
.blog-sources li { margin: 4px 0; overflow-wrap: anywhere; }
.blog-sources a { color: var(--sea); }

/* Chip „Ferienhäuser in …“ am Absatzende (a4u_blog_add_holiday_home_search_chips()) – einziger Weg vom Text zur Suche;
   Haus-Icon wie die Filter (script/search/filter_icons.php 'house'), Aussehen wie die Filter-Chips (style.css .chip) */
.blog-text a.blog-search-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 3px 11px 3px 9px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.blog-text a.blog-search-chip::before { content: ""; width: 14px; height: 14px; flex: none; background: 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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; 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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; }
.blog-text a.blog-search-chip:hover { border-color: var(--text); }

/* Externe Links im Text: Pfeil ↗ dahinter (class="link-external", a4u_blog_set_external_link_attributes()) */
.blog-text a.link-external::after { content: ""; display: inline-block; width: 0.75em; height: 0.75em; margin-left: 3px; vertical-align: 0.05em; background: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10.5 13.5'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat; 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10.5 13.5'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Markierung hinter dem Ortsnamen, der den Chip „Ferienhäuser in …“ ausgelöst hat: kleines hochgestelltes Haus, kein Link */
.blog-text .blog-search-mark { display: inline-block; width: 0.65em; height: 0.65em; margin-left: 2px; vertical-align: super; background: var(--text); opacity: .75; -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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Satz zum Chip (<span class="blog-search-sentence">, a4u_blog_add_holiday_home_search_chips()): unterstrichen nur,
   solange man über den Chip fährt oder ihn per Tastatur ansteuert – in Akzentfarbe, damit es nicht wie ein Link aussieht */
.blog-text .blog-search-sentence { text-decoration: underline 2px transparent; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.blog-text p:has(> a.blog-search-chip:hover) .blog-search-sentence,
.blog-text p:has(> a.blog-search-chip:focus-visible) .blog-search-sentence { text-decoration-color: var(--accent); }

/* Teilen im Beitrag (blog-post.php): oben in der Datumszeile (.share-btn aus style.css), unten vor den Quellen */
.blog-meta .blog-share-top { margin: 0 0 0 10px; padding: 2px 8px; vertical-align: middle; }
.blog-share-end { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 30px 0 0; padding: 16px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--sand); }
.blog-share-end p { margin: 0; font-weight: 600; }
.blog-share-end .blog-btn { display: inline-flex; align-items: center; gap: 8px; }
.blog-share-end .blog-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Schwebende Knöpfe unten rechts (blog-post.php, script/js/blog.js): „Inhalt“ (nur Handy) und „Nach oben“
   Stil wie die runden Knöpfe auf dem Foto der Hausseite (style.css .photo-btn) */
.blog-float-buttons { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 10px; }
/* Am PC: im Beitragsfenster unten rechts – klebt beim Scrollen am unteren Bildschirmrand, solange der Beitrag zu sehen ist
   (Block ohne Höhe am Ende des <article>, die Knöpfe ragen nach oben; Abstand oben, damit am Ende nichts überdeckt wird) */
@media (min-width: 901px) {
	.blog-float-buttons { position: sticky; right: auto; bottom: 18px; height: 0; margin: 64px -24px 0 0; justify-content: flex-end; align-items: flex-end; }
}
.blog-float-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,.16); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.blog-float-btn[hidden] { display: none; }
.blog-float-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.blog-float-btn:hover { border-color: var(--text); }
.blog-contents-open { padding: 0 16px 0 13px; }
@media (min-width: 901px) { .blog-contents-open { display: none !important; } }   /* am PC läuft das Inhaltsverzeichnis in der Seitenleiste mit */

/* Anfrageformular im Beitrag (includes/blog-inquiry-form.php) – Kasten wie „Auf einen Blick“, Felder wie das Anfrageformular
   der Hausseite (style.css .form-group, input, button.primary); Sprungziel #anfrage unter dem festen Header */
.blog-inquiry { margin: 28px 0; padding: 20px 22px 18px; border: 1px solid #f0d9ad; border-radius: 14px; background: #fff8ec; scroll-margin-top: calc(var(--hdr, 69px) + 16px); }
.blog-text .blog-inquiry-title, .blog-inquiry-title { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--text); }
.blog-text .blog-inquiry p { margin: 0 0 12px; }
.blog-inquiry-intro { font-size: 15px; color: var(--muted); }
.blog-inquiry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.blog-inquiry label { font-size: 14px; }
.blog-inquiry-optional { font-weight: 400; color: var(--muted); }
.blog-inquiry-error { padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #b03a2e; font-size: 14px; font-weight: 500; }
.blog-inquiry-ok { padding: 12px 14px; border-radius: 8px; background: #e9f6ee; color: #1e6b3a; font-weight: 500; }
.blog-text .blog-inquiry .form-privacy { margin: 10px 0 0; }
/* Schwebender Knopf „Anfragen“ (script/js/blog.js): gelb wie „Anfrage senden“ auf der Hausseite, steht vor den anderen */
.blog-float-btn.blog-float-request { order: -1; padding: 0 18px; border: none; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(58,51,48,.18), 0 10px 28px rgba(58,51,48,.35); }
.blog-float-btn.blog-float-request:hover { background: var(--accent-hover); }

/* Inhaltsverzeichnis am Handy als Liste von unten (#blog-contents-sheet) */
.blog-contents-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(58,51,48,.38); display: flex; align-items: flex-end; }
.blog-contents-sheet[hidden] { display: none; }
.blog-contents-sheet-panel { width: 100%; max-height: 75vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px var(--shadow); }
.blog-contents-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.blog-contents-sheet-head strong { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.blog-contents-sheet-close { width: 36px; height: 36px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--text); cursor: pointer; }
.blog-contents-sheet ol { list-style: none; margin: 0; padding: 0; }
.blog-contents-sheet a { display: block; padding: 11px 0 11px 12px; border-left: 2px solid var(--border); color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.blog-contents-sheet a:hover, .blog-contents-sheet a:focus-visible { border-left-color: var(--accent); }   /* :focus-visible: nur bei Tastatur, nicht nach Antippen */
body.blog-sheet-open { overflow: hidden; }

/* Werbeblock „Algarve4U für Gastgeber“ mitten im Gastgeber-Beitrag (<aside class="blog-promo" id="algarve4u">,
   script/blog/blog_post_db.php, Text: script/blog/a4u_promotion_block/<sprache>.php) – leicht hervorgehoben wie die
   Kästen im Text: Sandhintergrund, Streifen in Akzentfarbe, kleine Spirale vor der Überschrift */
.blog-text .blog-promo { margin: 30px 0; padding: 18px 22px 18px 20px; background: var(--sand); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; scroll-margin-top: calc(var(--hdr, 69px) + 20px); }
.blog-text .blog-promo p { margin: 0; }
.blog-text .blog-promo .blog-promo-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }   /* --accent-text: lesbarer Kontrast (--accent-hover war zu hell) */
.blog-text .blog-promo .blog-promo-title { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.blog-text .blog-promo .blog-promo-title::before { content: ""; width: 22px; height: 22px; flex: none; background: url("/favicon.svg") center / contain no-repeat; }
.blog-text .blog-promo ul { margin: 0 0 14px; padding-left: 20px; }
.blog-text .blog-promo li { margin: 3px 0; }
.blog-text .blog-promo .blog-promo-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.blog-text .blog-promo .blog-btn { color: var(--on-accent); text-decoration: none; }
.blog-text .blog-promo .blog-promo-more { font-size: 14px; color: var(--sea); }

/* Eintrag des Werbeblocks im Inhaltsverzeichnis (Seitenleiste und Liste am Handy): Akzent als Schrift (--accent-text,
   lesbarer Kontrast auf hellem Grund – --accent/--accent-hover sind als Schrift zu hell), kleine Spirale */
.blog-contents li.blog-contents-promo a, .blog-contents-sheet li.blog-contents-promo a { display: flex; align-items: center; gap: 6px; border-left-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.blog-contents li.blog-contents-promo a::before, .blog-contents-sheet li.blog-contents-promo a::before { content: ""; width: 14px; height: 14px; flex: none; background: url("/favicon.svg") center / contain no-repeat; }

/* Aktuelles Kapitel im Inhaltsverzeichnis (script/js/blog.js setzt li.is-current): Strich in Akzentfarbe, Text dunkel und halbfett */
.blog-contents li.is-current a, .blog-contents-sheet li.is-current a { border-left-color: var(--accent); color: var(--text); font-weight: 600; }
.blog-contents li.blog-contents-promo.is-current a, .blog-contents-sheet li.blog-contents-promo.is-current a { color: var(--accent-text); font-weight: 700; }
/* Kapitel mit Anfrageformular (blog-post.php, 'is_recommended'): oben „Empfohlene Aktivität“ mit Spirale in --accent-text
   (12 px, immer so), darunter der Kapiteltitel wie alle anderen Einträge – fett nur, wenn das Kapitel angewählt ist */
.blog-contents li.blog-contents-recommended a, .blog-contents-sheet li.blog-contents-recommended a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.blog-contents-recommended-label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--accent-text); }
.blog-contents-recommended-label::before { content: ""; width: 13px; height: 13px; flex: none; background: url("/favicon.svg") center / contain no-repeat; }
/* Seitenleiste am PC: langes Verzeichnis scrollt in sich, damit der aktive Eintrag sichtbar bleibt */
@media (min-width: 901px) { .blog-contents ol { position: relative; max-height: calc(100vh - var(--hdr, 69px) - 140px); overflow-y: auto; } }
.blog-contents-sheet-panel { position: relative; }

/* NEWSLETTER IM BLOG (blog-post.php, blog.php, Werbeblock im Gastgeber-Blog):
   Kasten am Ende eines Beitrags im Reiseblog (#newsletter) mit Brief-Symbol und Formular (.nl-row aus style.css),
   Eintrag im Inhaltsverzeichnis zurückgenommen (grau, kleiner Brief), Link „Newsletter“ hinter den Kategorien der
   Übersicht (etwas abgesetzt), Zeile im Werbeblock „Algarve4U für Gastgeber“. */
.blog-newsletter { display: flex; gap: 16px; align-items: flex-start; margin: 30px 0 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.blog-newsletter-icon { flex: none; width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-linejoin: round; }
.blog-newsletter-main { flex: 1; min-width: 0; }
.blog-newsletter-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.blog-newsletter-text { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.blog-newsletter .nl-row { max-width: 440px; }
.blog-newsletter-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.blog-newsletter-hint a { color: inherit; }
.blog-contents li.blog-contents-newsletter, .blog-contents-sheet li.blog-contents-newsletter { margin-top: 6px; }
.blog-contents li.blog-contents-newsletter a, .blog-contents-sheet li.blog-contents-newsletter a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.blog-contents li.blog-contents-newsletter svg, .blog-contents-sheet li.blog-contents-newsletter svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.blog-pills .blog-pill-newsletter { margin-left: 8px; color: var(--sea); }
.blog-pills .blog-pill-newsletter svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; vertical-align: -2px; margin-right: 4px; }
.blog-text .blog-promo .blog-promo-newsletter { margin: 10px 0 0; font-size: 14px; }
.blog-text .blog-promo .blog-promo-newsletter a { color: var(--sea); }
