/* =========================================================================
   Blog index (Ratgeber list)  — unchanged list cards
   ========================================================================= */
.blogpost-list .post-item {
	margin-bottom: 2rem;
}

.post-item .image-container {
	width: 100%;
	height: 240px;
}

.post-item.first-post .image-container {
	height: 400px;
}

.post-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-item h2 {
	line-height: 1.4;
}

.post-item:hover h2 {
	text-decoration: underline;
}

.post-item p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 992px) {
	.post-item.first-post .image-container {
		flex: 50% 0 0;
	}
}

/* =========================================================================
   Blog article (Ratgeber-Feuilleton)
   ---------------------------------------------------------------------------
   The article reads as a page of warm stone "paper" laid onto the site.
   Aubergine & Warm Stone language; serif body for a considered, printed read.
   All rules scoped under .blog-article so nothing leaks into the rest of
   the app (Bootstrap + app.css set neutral h1/h2/p/a defaults we override).
   ========================================================================= */
.blog-article {
	/* Consume the site's shipped "Aubergine & Warm Stone" tokens (app.css
	   :root --ti-* / --bs-primary) so the article tracks the brand exactly.
	   Fallbacks keep it correct on branches that predate those tokens. */
	--art-ink:       var(--ti-ink, #1e1a1c);          /* body text        */
	--art-ink-soft:  var(--ti-muted, #6f675f);        /* meta, captions   */
	--art-surface:   var(--ti-surface, #ffffff);      /* the article sheet */
	--art-line:      var(--ti-line, #e7ded2);         /* hairline         */
	--art-plum:      var(--bs-primary, #5a2a7e);      /* headings, links  */
	--art-plum-deep: var(--bs-primary-dark, #3f1c5c); /* hover / CTA      */
	--art-gold:      var(--ti-gold, #cda15e);         /* decorative rules */
	--art-gold-ink:  #8a6420;                          /* gold text, AA on white */

	--art-measure: 34rem;      /* reading measure (~66 chars)          */

	--art-serif: var(--ti-serif, "Lora", "Iowan Old Style", "Palatino Linotype",
	             Palatino, "Book Antiqua", Georgia, "Times New Roman", serif);
	--art-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
	            Roboto, sans-serif;

	position: relative;
	max-width: 46rem;
	margin: 1.5rem auto 4rem;
	padding: clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3.75rem);
	background: var(--art-surface);
	color: var(--art-ink);
	border: 1px solid var(--art-line);
	border-radius: 6px;
	box-shadow: 0 18px 48px -30px rgba(30, 26, 28, 0.32);
}

/* Center the reading elements to the measure; let the hero span full width. */
.blog-article > * {
	max-width: var(--art-measure);
	margin-left: auto;
	margin-right: auto;
}

/* --- Back link ---------------------------------------------------------- */
.blog-article__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-family: var(--art-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--art-ink-soft);
	margin-bottom: 2.25rem;
	transition: color 0.15s ease, gap 0.15s ease;
}

.blog-article__back::before {
	content: "\2190"; /* ← */
	font-size: 1em;
	transition: transform 0.15s ease;
}

.blog-article__back:hover {
	color: var(--art-plum);
	gap: 0.55em;
}

/* --- Header ------------------------------------------------------------- */
.blog-article__head {
	margin-bottom: 2.25rem;
}

.blog-eyebrow {
	font-family: var(--art-sans);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--art-gold-ink);
	margin: 0 0 1rem;
}

.blog-article__head h1 {
	font-family: var(--art-serif);
	font-weight: 600;
	font-size: clamp(2.15rem, 5.2vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.012em;
	color: var(--art-plum);
	margin: 0;
	text-wrap: balance;
}

.blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--art-sans);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--art-ink-soft);
	margin: 1.15rem 0 0;
}

.blog-meta .dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--art-gold);
}

/* --- Hero image --------------------------------------------------------- */
.blog-article__hero {
	max-width: none;   /* break out past the reading measure to panel width */
	margin: 0 0 2.75rem;
}

.blog-article__hero img {
	display: block;
	width: 100%;
	height: clamp(220px, 42vw, 460px);
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--art-line);
}

.blog-article__hero figcaption {
	font-family: var(--art-sans);
	font-size: 0.78rem;
	color: var(--art-ink-soft);
	margin-top: 0.6rem;
	max-width: var(--art-measure);
	margin-left: auto;
	margin-right: auto;
}

/* --- Body prose --------------------------------------------------------- */
.blog-article__body {
	font-family: var(--art-serif);
	font-size: 1.175rem;
	line-height: 1.78;
	color: var(--art-ink);
}

.blog-article__body p {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0 0 1.5rem;
}

/* Lead paragraph + aubergine drop cap — the single bold flourish. */
.blog-article__body > p:first-of-type {
	font-size: 1.34rem;
	line-height: 1.6;
	color: #34302d;
}

.blog-article__body > p:first-of-type::first-letter {
	float: left;
	font-family: var(--art-serif);
	font-weight: 600;
	font-size: 3.55em;
	line-height: 0.76;
	padding: 0.02em 0.1em 0 0;
	color: var(--art-plum);
}

/* Section heads — gold rule marks each "Vorteil"; the number lives in the
   copy itself, so we mark the section rather than re-number it. */
.blog-article__body h2 {
	font-family: var(--art-serif);
	font-weight: 600;
	font-size: clamp(1.5rem, 3.2vw, 1.95rem);
	line-height: 1.22;
	letter-spacing: -0.008em;
	color: var(--art-plum);
	margin: 3.25rem 0 1.1rem;
	scroll-margin-top: 1.5rem;
}

.blog-article__body h2::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	background: var(--art-gold);
	margin-bottom: 1.15rem;
}

.blog-article__body h3 {
	font-family: var(--art-serif);
	font-weight: 600;
	font-size: 1.4rem;
	line-height: 1.3;
	color: var(--art-ink);
	margin: 2.25rem 0 0.9rem;
}

.blog-article__body a {
	color: var(--art-plum);
	text-decoration: underline;
	text-decoration-color: rgba(90, 42, 126, 0.32);
	text-underline-offset: 0.14em;
	transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.blog-article__body a:hover {
	color: var(--art-plum-deep);
	text-decoration-color: currentColor;
}

.blog-article__body strong {
	font-weight: 700;
	color: #1c1917;
}

.blog-article__body ul,
.blog-article__body ol {
	font-family: inherit;
	font-size: inherit;
	line-height: 1.7;
	margin: 0 0 1.5rem;
	padding-left: 1.35rem;
}

.blog-article__body li {
	font-family: inherit;
	font-size: inherit;
	line-height: 1.7;
	margin-bottom: 0.5rem;
	padding-left: 0.35rem;
}

.blog-article__body li::marker {
	color: var(--art-gold-ink);
}

.blog-article__body blockquote {
	margin: 2rem 0;
	padding: 0.35rem 0 0.35rem 1.5rem;
	border-left: 3px solid var(--art-gold);
	font-style: italic;
	color: #34302d;
}

.blog-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	border: 1px solid var(--art-line);
	margin: 1.5rem 0;
}

/* --- Closing call to action -------------------------------------------- */
.blog-cta {
	margin-top: 3.5rem;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	background: var(--art-plum-deep);
	background-image: linear-gradient(135deg, var(--art-plum) 0%, var(--art-plum-deep) 100%);
	border-radius: 6px;
	color: #f3ecdf;
	text-align: left;
}

.blog-cta__kicker {
	font-family: var(--art-sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--art-gold);
	margin: 0 0 0.65rem;
}

.blog-cta h2 {
	font-family: var(--art-serif);
	font-weight: 600;
	font-size: clamp(1.5rem, 3.4vw, 1.95rem);
	line-height: 1.15;
	color: #fff;
	margin: 0 0 0.55rem;
}

.blog-cta p {
	font-family: var(--art-sans);
	font-size: 0.95rem;
	line-height: 1.6;
	color: #ded2e8;
	margin: 0 0 1.5rem;
	max-width: 32rem;
}

.blog-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--art-sans);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--art-plum-deep);
	background: var(--art-gold);
	padding: 0.85rem 1.6rem;
	border-radius: 4px;
	transition: transform 0.15s ease, background 0.15s ease;
}

.blog-cta__btn::after {
	content: "\2192"; /* → */
	transition: transform 0.15s ease;
}

.blog-cta__btn:hover {
	color: var(--art-plum-deep);
	background: #d8ad66;
}

.blog-cta__btn:hover::after {
	transform: translateX(3px);
}

/* --- Admin edit button (kept, made unobtrusive) ------------------------- */
.blog-article > .blog-article__edit {
	position: absolute;
	top: 1rem;
	right: 1rem;
	max-width: none;
	margin: 0;
	z-index: 2;
}

/* --- Focus / motion accessibility -------------------------------------- */
.blog-article a:focus-visible,
.blog-cta__btn:focus-visible {
	outline: 2px solid var(--art-plum);
	outline-offset: 3px;
	border-radius: 2px;
}

.blog-cta__btn:focus-visible {
	outline-color: var(--art-gold);
}

@media (prefers-reduced-motion: reduce) {
	.blog-article *,
	.blog-cta * {
		transition: none !important;
	}
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 575.98px) {
	.blog-article {
		margin-left: -0.75rem;
		margin-right: -0.75rem;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.blog-article__body > p:first-of-type {
		font-size: 1.22rem;
	}

	.blog-article__body > p:first-of-type::first-letter {
		font-size: 3.1em;
	}
}
