/* almanyafirsatlari ILAN-CPT (23.11.2026, Banner schmaler 23.11. nachmittags) – Einzelanzeige, Archiv, Druck/PDF */
.af-ilan, .af-archive {
	--af-navy: #0B1A3A;
	--af-navy-2: #1B2C5A;
	--af-gold: #C9A227;
	--af-gold-dark: #7A5E0A;
	--af-grey: #5B6474;
	--af-line: #E3E8F0;
	--af-soft: #F4F6FA;
	--af-head: var(--wp--preset--font-family--sora, "Sora", sans-serif);
	--af-body: var(--wp--preset--font-family--inter, "Inter", sans-serif);
	box-sizing: border-box;
	max-width: 980px;
	margin: 0 auto;
	padding: 28px 24px 64px;
	font-family: var(--af-body);
	color: var(--af-navy);
	line-height: 1.6;
}
.af-ilan *, .af-archive * { box-sizing: border-box; }
.af-print-head, .af-print-foot, .af-print-only { display: none; }
.af-crumbs { font-size: 14px; color: var(--af-grey); margin-bottom: 14px; }
.af-crumbs a { color: var(--af-grey); text-decoration: none; }
.af-crumbs a:hover { color: var(--af-navy); text-decoration: underline; }
.af-crumbs span { margin: 0 4px; }
.af-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.af-badge { display: inline-block; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--af-line); background: var(--af-soft); color: var(--af-navy); }
.af-badge-gold { background: #FBF3D9; border-color: #E9D48A; color: var(--af-gold-dark); }
.af-badge-ref { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.af-ilan-title { font-family: var(--af-head); font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.01em; color: var(--af-navy); margin: 0 0 10px; }
.af-ozet { font-size: 17px; color: var(--af-grey); margin: 0 0 18px; max-width: 760px; }
.af-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.af-btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--af-body); font-weight: 600; font-size: 16px; line-height: 1.2; padding: 12px 22px; border-radius: 6px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: filter .15s ease; }
.af-btn:hover { filter: brightness(.95); }
.af-btn-gold { background: var(--af-gold); color: var(--af-navy) !important; }
.af-btn-ghost { background: #fff; color: var(--af-navy); border-color: var(--af-line); }
.af-media { margin: 0 0 32px; border-radius: 10px; overflow: hidden; background: var(--af-soft); }
.af-media-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; max-height: 340px; object-fit: cover; }
.af-media-cap { padding: 6px 12px; font-size: 12px; color: #5B6474; background: var(--af-soft); }
.af-card-media { position: relative; }
.af-card-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; font-size: 11px; line-height: 1.5; color: #fff; background: rgba(14, 28, 66, .78); border-radius: 4px; }
.af-media-ph { height: 140px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(135deg, var(--af-navy) 0%, var(--af-navy-2) 100%); color: #C9D2E3; font-size: 14px; }
.af-media-ph-logo { width: 56px; height: auto; border-radius: 6px; opacity: .9; }
.af-section { margin: 0 0 40px; }
.af-section h2 { font-family: var(--af-head); font-weight: 600; font-size: 22px; line-height: 1.3; margin: 0 0 16px; color: var(--af-navy); }
.af-table { width: 100%; border-collapse: collapse; font-size: 16px; border: 1px solid var(--af-line); border-radius: 12px; overflow: hidden; }
.af-table th, .af-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--af-line); }
.af-table tr:last-child th, .af-table tr:last-child td { border-bottom: 0; }
.af-table th { width: 34%; font-weight: 500; color: var(--af-grey); background: var(--af-soft); }
.af-table td { font-weight: 500; }
.af-vb { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--af-gold-dark); }
.af-desc-body > * { margin-top: 0; margin-bottom: 16px; }
.af-hl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.af-hl-list li { position: relative; padding-left: 30px; }
.af-hl-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: #FBF3D9; color: var(--af-gold-dark); font-weight: 700; font-size: 12px; margin-top: 3px; }
.af-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 32px; border-radius: 12px; background: linear-gradient(135deg, var(--af-navy) 0%, var(--af-navy-2) 100%); color: #fff; }
.af-cta h2 { color: #fff; margin-bottom: 8px; }
.af-cta p { margin: 0; color: #C9D2E3; max-width: 560px; }
.af-cta strong { color: #fff; }
.af-info { padding: 24px 28px; border: 1px solid var(--af-line); border-radius: 12px; background: var(--af-soft); }
.af-info h2 { font-size: 18px; margin-bottom: 8px; }
.af-info p { margin: 0; color: var(--af-grey); }
.af-disclaimer { font-size: 13px; color: var(--af-grey); border-top: 1px solid var(--af-line); padding-top: 16px; margin: 0; }

/* Archiv */
.af-archive-head { margin-bottom: 32px; }
.af-archive-head .af-badge { margin-bottom: 14px; }
.af-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.af-card { border: 1px solid var(--af-line); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .15s ease; }
.af-card:hover { box-shadow: 0 8px 24px rgba(11, 26, 58, .08); }
.af-card-link { display: block; color: inherit; text-decoration: none; }
.af-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.af-card-ph { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--af-navy) 0%, var(--af-navy-2) 100%); }
.af-card-ph img { width: 72px; height: auto; border-radius: 6px; }
.af-card-body { padding: 20px; }
.af-card-kat { font-size: 13px; font-weight: 500; color: var(--af-gold-dark); }
.af-card-title { font-family: var(--af-head); font-weight: 600; font-size: 19px; line-height: 1.3; margin: 6px 0 8px; color: var(--af-navy); }
.af-card-loc, .af-card-ref { font-size: 14px; color: var(--af-grey); margin: 0 0 6px; }
.af-card-price { font-weight: 600; margin: 0 0 6px; }
.af-empty a { color: var(--af-gold-dark); font-weight: 600; }
.af-empty { padding: 32px; border: 1px dashed var(--af-line); border-radius: 12px; color: var(--af-grey); text-align: center; }
.af-pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 32px 0 0; }
.af-pagination a, .af-pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--af-line); border-radius: 6px; text-decoration: none; color: var(--af-navy); }
.af-pagination .current { background: var(--af-navy); color: #fff; }

@media (max-width: 640px) {
	.af-ilan, .af-archive { padding: 20px 18px 48px; }
	.af-ilan-title { font-size: 23px; }
	.af-ozet { font-size: 16px; }
	.af-media-ph { height: 96px; }
	.af-media-ph-logo { width: 44px; }
	.af-media-img { aspect-ratio: 16 / 9; }
	.af-table th, .af-table td { display: block; width: 100%; }
	.af-table th { padding-bottom: 2px; border-bottom: 0; }
	.af-cta { padding: 24px; }
	.af-btn { width: 100%; }
}

/* ---------------- Druck / PDF (A4) ---------------- */
@page { size: A4; margin: 14mm 14mm 18mm 14mm; }
@media print {
	html, body { background: #fff !important; }
	body { margin: 0 !important; padding: 0 !important; }
	header.wp-block-template-part, footer.wp-block-template-part, .wp-site-blocks > header, .wp-site-blocks > footer,
	#wpadminbar, .skip-link, .af-noprint, .af-print-btn,
	#cmplz-cookiebanner-container, .cmplz-cookiebanner, #cmplz-manage-consent, .cmplz-manage-consent, .cmplz-soft-cookiewall,
	nav, .wp-block-navigation, .wp-block-buttons, .wp-block-button { display: none !important; }
	.wp-site-blocks, main, .af-main { margin: 0 !important; padding: 0 !important; }
	.af-ilan { max-width: none; padding: 0; font-size: 10pt; line-height: 1.5; color: #000; }
	.af-ilan, .af-ilan * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.af-print-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--af-gold); }
	.af-print-logo { width: 22mm; height: auto; border-radius: 2mm; }
	.af-print-head-text { flex: 1; display: flex; flex-direction: column; font-size: 9pt; color: var(--af-grey); }
	.af-print-head-text strong { font-family: var(--af-head); font-size: 13pt; color: var(--af-navy); }
	.af-print-head-ref { text-align: right; font-size: 8pt; color: var(--af-grey); line-height: 1.3; }
	.af-print-head-ref strong { font-family: var(--af-head); font-size: 12pt; color: var(--af-navy); }
	.af-badges { margin-bottom: 8px; }
	.af-badge { font-size: 8pt; padding: 1px 8px; }
	.af-ilan-title { font-size: 19pt; margin-bottom: 6px; }
	.af-ozet { font-size: 11pt; margin-bottom: 12px; }
	.af-media { margin-bottom: 14px; border-radius: 2mm; break-inside: avoid; }
	.af-media-img { aspect-ratio: auto; max-height: 70mm; }
	.af-media-cap { font-size: 7pt; padding: 1mm 2mm; background: none; }
	.af-media-ph { aspect-ratio: auto; height: 22mm; font-size: 8pt; }
	.af-media-ph-logo { width: 16mm; }
	.af-section { margin-bottom: 14px; }
	.af-section h2 { font-size: 12.5pt; margin-bottom: 6px; break-after: avoid; page-break-after: avoid; }
	.af-table { font-size: 9.5pt; break-inside: avoid; page-break-inside: avoid; }
	.af-table th, .af-table td { padding: 5px 9px; }
	.af-desc-body > * { margin-bottom: 7px; orphans: 3; widows: 3; }
	.af-hl-list { gap: 4px; }
	.af-hl-list li { break-inside: avoid; padding-left: 22px; }
	.af-hl-list li::before { width: 14px; height: 14px; line-height: 14px; font-size: 8pt; margin-top: 2px; }
	.af-cta { display: block; padding: 10px 14px; background: var(--af-soft) !important; color: var(--af-navy); border: 1px solid var(--af-line); border-radius: 2mm; break-inside: avoid; }
	.af-cta h2, .af-cta strong { color: var(--af-navy); }
	.af-cta p { color: var(--af-navy); max-width: none; }
	.af-print-only { display: block; margin-top: 4px !important; font-weight: 600; }
	.af-info { padding: 8px 14px; border-radius: 2mm; break-inside: avoid; }
	.af-info h2 { font-size: 10.5pt; margin-bottom: 2px; }
	.af-disclaimer { font-size: 8pt; padding-top: 6px; break-inside: avoid; }
	.af-print-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; padding-top: 6px; border-top: 2px solid var(--af-gold); font-size: 8pt; color: var(--af-grey); break-inside: avoid; }
	.af-print-foot-note { flex-basis: 100%; }
	a { color: inherit !important; text-decoration: none !important; }
}
