/* Umzugsgarant Ratgeber page */

.ug-ratgeber,
.ug-ratgeber * {
	box-sizing: border-box;
}

.ug-ratgeber {
	--ug-navy: #16324a;
	--ug-deep-navy: #0f2638;
	--ug-green: #287a5b;
	--ug-green-dark: #1e6047;
	--ug-orange: #f28a2e;
	--ug-orange-dark: #da741d;
	--ug-warm: #f8f7f3;
	--ug-cool: #eef3f5;
	--ug-light-green: #e8f3ee;
	--ug-white: #ffffff;
	--ug-text: #263238;
	--ug-muted: #5d6a70;
	--ug-border: #dde5e7;

	width: 100%;
	margin: 0;
	color: var(--ug-text);
	font-family: Manrope, Arial, sans-serif;
}

.ug-ratgeber-container {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

/* Hero */

.ug-ratgeber-hero {
	position: relative;
	overflow: hidden;
	padding: 88px 0 82px;
	background:
		radial-gradient(circle at 88% 8%, rgba(40, 122, 91, 0.25), transparent 31%),
		linear-gradient(135deg, var(--ug-deep-navy), var(--ug-navy));
}

.ug-ratgeber-hero::after {
	content: "";
	position: absolute;
	right: -180px;
	bottom: -220px;
	width: 460px;
	height: 460px;
	border: 72px solid rgba(255, 255, 255, 0.035);
	border-radius: 50%;
	pointer-events: none;
}

.ug-ratgeber-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.65fr);
	gap: 72px;
	align-items: center;
}

.ug-ratgeber-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 17px;
	color: #aed9c7;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.ug-ratgeber-eyebrow span {
	width: 34px;
	height: 3px;
	border-radius: 20px;
	background: var(--ug-orange);
}

.ug-ratgeber-hero h1 {
	max-width: 760px;
	margin: 0 0 22px;
	color: var(--ug-white);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.ug-ratgeber-hero__content > p {
	max-width: 710px;
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
}

.ug-ratgeber-hero__panel {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 17px;
	align-items: center;
	padding: 25px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 21px;
	background: rgba(255, 255, 255, 0.075);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
	backdrop-filter: blur(8px);
}

.ug-ratgeber-hero__panel-icon {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: var(--ug-orange);
	color: var(--ug-white);
}

.ug-ratgeber-hero__panel-icon svg {
	width: 29px;
	height: 29px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ug-ratgeber-hero__panel strong,
.ug-ratgeber-hero__panel span {
	display: block;
}

.ug-ratgeber-hero__panel strong {
	margin-bottom: 5px;
	color: var(--ug-white);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.ug-ratgeber-hero__panel span {
	color: rgba(255, 255, 255, 0.76);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

/* Article area */

.ug-ratgeber-list {
	padding: 82px 0 88px;
	background: var(--ug-warm);
}

.ug-ratgeber-section-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
	gap: 50px;
	align-items: end;
	margin-bottom: 35px;
}

.ug-ratgeber-section-heading > div > span {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 9px;
	color: var(--ug-green);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ug-ratgeber-section-heading > div > span::before {
	content: "";
	width: 30px;
	height: 3px;
	border-radius: 20px;
	background: var(--ug-orange);
}

.ug-ratgeber-section-heading h2 {
	margin: 0;
	color: var(--ug-text);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.3;
}

.ug-ratgeber-section-heading > p {
	margin: 0;
	color: var(--ug-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
}

.ug-ratgeber-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ug-ratgeber-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ug-border);
	border-radius: 24px;
	background: var(--ug-white);
	box-shadow: 0 12px 32px rgba(15, 38, 56, 0.07);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ug-ratgeber-card:hover {
	transform: translateY(-5px);
	border-color: rgba(40, 122, 91, 0.35);
	box-shadow: 0 22px 46px rgba(15, 38, 56, 0.12);
}

.ug-ratgeber-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(145deg, var(--ug-navy), var(--ug-deep-navy));
}

.ug-ratgeber-card__media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.ug-ratgeber-card:hover .ug-ratgeber-card__media img {
	transform: scale(1.035);
}

.ug-ratgeber-card__placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 80% 15%, rgba(40, 122, 91, 0.5), transparent 34%),
		linear-gradient(145deg, var(--ug-navy), var(--ug-deep-navy));
	color: var(--ug-white);
}

.ug-ratgeber-card__placeholder svg {
	width: 74px;
	height: 74px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.92;
}

.ug-ratgeber-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.ug-ratgeber-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 15px;
}

.ug-ratgeber-card__category {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--ug-light-green);
	color: var(--ug-green-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.ug-ratgeber-card__meta time {
	color: var(--ug-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

.ug-ratgeber-card__title {
	margin: 0 0 13px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.ug-ratgeber-card__title a {
	color: var(--ug-text);
	text-decoration: none;
}

.ug-ratgeber-card__title a:hover {
	color: var(--ug-green-dark);
}

.ug-ratgeber-card__excerpt {
	flex-grow: 1;
	margin: 0 0 22px;
	color: var(--ug-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
}

.ug-ratgeber-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 17px;
	border-top: 1px solid var(--ug-border);
	color: var(--ug-green-dark);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none;
}

.ug-ratgeber-card__link svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}

.ug-ratgeber-card__link:hover {
	color: var(--ug-orange-dark);
}

.ug-ratgeber-card__link:hover svg {
	transform: translateX(4px);
}

.ug-ratgeber-empty {
	padding: 35px;
	border: 1px solid var(--ug-border);
	border-radius: 20px;
	background: var(--ug-white);
	text-align: center;
}

.ug-ratgeber-empty h2 {
	margin: 0 0 8px;
	font-size: 20px;
}

.ug-ratgeber-empty p {
	margin: 0;
	color: var(--ug-muted);
}

/* Pagination */

.ug-ratgeber-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 42px;
}

.ug-ratgeber-pagination .page-numbers {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 13px;
	border: 1px solid var(--ug-border);
	border-radius: 12px;
	background: var(--ug-white);
	color: var(--ug-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(15, 38, 56, 0.05);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ug-ratgeber-pagination a.page-numbers:hover {
	transform: translateY(-2px);
	border-color: var(--ug-green);
	background: var(--ug-light-green);
	color: var(--ug-green-dark);
}

.ug-ratgeber-pagination .page-numbers.current {
	border-color: var(--ug-green);
	background: var(--ug-green);
	color: var(--ug-white);
	box-shadow: 0 9px 22px rgba(40, 122, 91, 0.22);
}

.ug-ratgeber-pagination .page-numbers.dots {
	min-width: 30px;
	padding-inline: 4px;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
}

.ug-ratgeber-pagination .prev,
.ug-ratgeber-pagination .next {
	padding-inline: 16px;
}

/* CTA */

.ug-ratgeber-cta {
	padding: 0 0 88px;
	background: var(--ug-warm);
}

.ug-ratgeber-cta__inner {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) auto;
	gap: 22px;
	align-items: center;
	padding: 32px 34px;
	border-radius: 24px;
	background: var(--ug-navy);
	box-shadow: 0 18px 40px rgba(15, 38, 56, 0.16);
}

.ug-ratgeber-cta__icon {
	width: 62px;
	height: 62px;
	display: grid;
	place-items: center;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--ug-white);
}

.ug-ratgeber-cta__icon svg {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ug-ratgeber-cta__content > span {
	display: block;
	margin-bottom: 4px;
	color: #aed9c7;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ug-ratgeber-cta h2 {
	margin: 0 0 7px;
	color: var(--ug-white);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.ug-ratgeber-cta p {
	max-width: 720px;
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
}

.ug-ratgeber-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 11px;
}

.ug-ratgeber-cta__fallback {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 19px;
	border-radius: 12px;
	background: var(--ug-orange);
	color: var(--ug-white);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.ug-ratgeber-cta__fallback:hover {
	background: var(--ug-orange-dark);
	color: var(--ug-white);
}

.ug-ratgeber a:focus-visible {
	outline: 3px solid var(--ug-orange);
	outline-offset: 4px;
	border-radius: 7px;
}

/* Remove GeneratePress content spacing around the custom posts index. */
.ug-ratgeber-page .site-content {
	display: block;
	padding: 0;
}

.ug-ratgeber-page .content-area {
	width: 100%;
}

/* Tablet */

@media (max-width: 1024px) {
	.ug-ratgeber-hero__inner {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.ug-ratgeber-hero__panel {
		max-width: 600px;
	}

	.ug-ratgeber-section-heading {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.ug-ratgeber-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ug-ratgeber-cta__inner {
		grid-template-columns: 62px minmax(0, 1fr);
	}

	.ug-ratgeber-cta__actions {
		grid-column: 2;
		justify-content: flex-start;
	}
}

/* Mobile */

@media (max-width: 767px) {
	.ug-ratgeber-container {
		width: min(100% - 36px, 1180px);
	}

	.ug-ratgeber-hero {
		padding: 62px 0 58px;
	}

	.ug-ratgeber-hero h1 {
		font-size: 30px;
		line-height: 1.24;
	}

	.ug-ratgeber-hero__panel {
		grid-template-columns: 48px minmax(0, 1fr);
		padding: 20px;
		border-radius: 18px;
	}

	.ug-ratgeber-hero__panel-icon {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.ug-ratgeber-list {
		padding: 57px 0 60px;
	}

	.ug-ratgeber-grid {
		grid-template-columns: 1fr;
		gap: 19px;
	}

	.ug-ratgeber-card {
		border-radius: 19px;
	}

	.ug-ratgeber-card:hover {
		transform: none;
	}

	.ug-ratgeber-card__body {
		padding: 22px 19px;
	}

	.ug-ratgeber-pagination {
		gap: 7px;
		margin-top: 32px;
	}

	.ug-ratgeber-pagination .page-numbers {
		min-width: 41px;
		min-height: 41px;
		padding: 8px 11px;
	}

	.ug-ratgeber-pagination .prev,
	.ug-ratgeber-pagination .next {
		width: 100%;
	}

	.ug-ratgeber-cta {
		padding-bottom: 60px;
	}

	.ug-ratgeber-cta__inner {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 16px;
		padding: 23px 19px;
		border-radius: 19px;
	}

	.ug-ratgeber-cta__icon {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.ug-ratgeber-cta__icon svg {
		width: 27px;
		height: 27px;
	}

	.ug-ratgeber-cta__content {
		min-width: 0;
	}

	.ug-ratgeber-cta__actions {
		grid-column: 1 / -1;
		width: 100%;
		justify-content: stretch;
	}

	.ug-ratgeber-cta__actions > * {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ug-ratgeber-card,
	.ug-ratgeber-card__media img,
	.ug-ratgeber-card__link svg,
	.ug-ratgeber-pagination .page-numbers {
		transition: none;
	}
}

.ug-ratgeber-card__category {
	text-decoration: none;
}

.ug-ratgeber-card__category:hover {
	background: #d9eee4;
	color: #1e6047;
}
