/*
 * Frontend-Styling für die von Gemini Content Writer generierten Elemente.
 * Wird automatisch im Frontend geladen (siehe class-gcw-admin.php enqueue_frontend).
 * Bei Bedarf im eigenen Theme überschreiben.
 */

.gcw-tldr {
	background: #f4f7fb;
	border: 1px solid #dbe4ee;
	border-radius: 8px;
	padding: 20px 24px;
	margin: 28px 0;
}

.gcw-tldr p:first-child {
	margin-top: 0;
}

.gcw-tldr ul {
	margin-bottom: 0;
}

.gcw-tip {
	background: #fbf8ef;
	border-left: 4px solid #dba617;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 24px 0;
}

.gcw-tip p {
	margin: 0;
}

.gcw-brand-cta {
	background: #eef6f2;
	border: 1px solid #cfe8db;
	border-radius: 8px;
	padding: 20px 24px;
	margin: 32px 0;
}

.gcw-brand-cta p {
	margin: 0;
}

.gcw-brand-cta a {
	font-weight: 600;
	text-decoration: underline;
}

.gcw-image {
	margin: 32px auto;
	max-width: 50%;
}

.gcw-image img {
	width: 100%;
	height: auto;
	border-radius: 30px;
	display: block;
}

@media (max-width: 600px) {
	.gcw-image {
		max-width: 100%;
	}
}

.gcw-image figcaption {
	font-size: 0.8em;
	color: #767676;
	margin-top: 6px;
	text-align: right;
}

/* Zusätzlicher Zeilenabstand/Whitespace für generierte Beitragsabsätze */
.gcw-image + h2,
.gcw-tldr + h2,
.gcw-tip + h2,
.gcw-brand-cta + h2 {
	margin-top: 40px;
}

/* Zweispaltiges Feature-Layout: links Text/Checkliste/Button, rechts Bild im 4:3-Format */
.gcw-feature-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	margin: 40px 0;
}

.gcw-feature-content h3 {
	margin-top: 0;
}

.gcw-feature-list {
	list-style: none;
	margin: 20px 0;
	padding: 0;
}

.gcw-feature-list li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
	line-height: 1.4;
}

.gcw-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #10214a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.gcw-feature-button {
	display: inline-block;
	background: #10214a;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	padding: 12px 26px;
	border-radius: 30px;
	margin-top: 8px;
}

.gcw-feature-button:hover {
	background: #1a2f66;
}

.gcw-feature-image {
	margin: 0;
}

.gcw-feature-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 30px;
	display: block;
}

.gcw-feature-image .gcw-image-credit {
	display: block;
	font-size: 0.75em;
	color: #767676;
	margin-top: 6px;
	text-align: right;
}

.gcw-feature-image .gcw-image-credit a {
	color: inherit;
}

@media (max-width: 700px) {
	.gcw-feature-split {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
