/* myveeam.cloud - Ratgeber (Artikel und Übersicht). Farben und Schrift wie die Elementor-Seiten. */
:root {
	--mv-bg: #020f24;
	--mv-navy: #051e46;
	--mv-navy-2: #01122e;
	--mv-green: #4de779;
	--mv-green-2: #21be4e;
	--mv-text: #d3dbe8;
	--mv-muted: #9fb0c8;
	--mv-line: rgba(255, 255, 255, 0.12);
	--mv-card: rgba(255, 255, 255, 0.04);
	--mv-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.mv-ratgeber {
	background: var(--mv-bg);
	color: var(--mv-text);
}

body.mv-ratgeber .site-main,
body.mv-ratgeber:not([class*="elementor-page-"]) .site-main {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

body.mv-ratgeber .page-content {
	font-family: var(--mv-font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--mv-text);
}

body.mv-ratgeber .page-content a {
	color: var(--mv-green);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.mv-ratgeber .page-content a:hover {
	color: #fff;
}

/* Kopfbereich */
.mv-hero {
	background:
		radial-gradient(60% 120% at 85% 0%, rgba(8, 211, 98, 0.16), transparent 60%),
		linear-gradient(180deg, var(--mv-navy) 0%, var(--mv-bg) 100%);
	border-bottom: 1px solid var(--mv-line);
	padding: clamp(48px, 7vw, 96px) 16px clamp(40px, 5vw, 64px);
}

.mv-hero > * {
	max-width: 1076px; /* bündig mit Inhaltsverzeichnis und Text darunter */
	margin-left: auto;
	margin-right: auto;
}

.mv-hero--wide > * {
	max-width: 1108px; /* bündig mit den Karten der Übersicht */
}

body.mv-ratgeber .mv-hero__eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mv-green);
	margin-bottom: 14px;
}

body.mv-ratgeber .mv-hero__eyebrow a {
	color: var(--mv-green);
	text-decoration: none;
}

body.mv-ratgeber .mv-hero__eyebrow a::before {
	content: "← ";
}

body.mv-ratgeber .mv-hero__title {
	font-family: var(--mv-font);
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 600;
	line-height: 1.18;
	color: #fff;
	margin-top: 0;
	margin-bottom: 18px;
}

body.mv-ratgeber .mv-hero__lead {
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.6;
	color: var(--mv-text);
	margin-bottom: 18px;
}

.mv-hero__lead,
.mv-hero__title {
	padding-right: min(20%, 240px);
}

body.mv-ratgeber .mv-hero__meta {
	font-size: 14px;
	color: var(--mv-muted);
	margin-bottom: 0;
}

/* Zweispaltig: Inhaltsverzeichnis links, Text rechts */
.mv-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 760px);
	gap: 56px;
	justify-content: center;
	max-width: 1140px;
	margin: 0 auto;
	padding: 56px 16px 24px;
}

.mv-layout__aside:empty {
	display: none;
}

.mv-toc {
	position: sticky;
	top: 104px;
	border-left: 1px solid var(--mv-line);
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.45;
}

body.mv-ratgeber .mv-toc__title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mv-muted);
	margin-bottom: 12px;
}

.mv-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mv-toc li {
	margin: 0 0 10px;
}

body.mv-ratgeber .mv-toc a {
	color: var(--mv-muted);
	text-decoration: none;
}

body.mv-ratgeber .mv-toc a:hover,
body.mv-ratgeber .mv-toc a.is-active {
	color: var(--mv-green);
}

/* Fließtext */
.mv-article > :first-child {
	margin-top: 0;
}

body.mv-ratgeber .mv-article p,
body.mv-ratgeber .mv-article ul,
body.mv-ratgeber .mv-article ol {
	margin: 0 0 1.25em;
}

body.mv-ratgeber .mv-article h2,
body.mv-ratgeber .mv-related__title {
	font-family: var(--mv-font);
	font-size: clamp(23px, 2.6vw, 29px);
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	margin: 2.2em 0 0.7em;
	scroll-margin-top: 104px;
}

body.mv-ratgeber .mv-article h2::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	border-radius: 3px;
	background: var(--mv-green);
	margin-bottom: 14px;
}

body.mv-ratgeber .mv-article h3 {
	font-family: var(--mv-font);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	margin: 1.7em 0 0.5em;
}

body.mv-ratgeber .mv-article strong {
	color: #fff;
	font-weight: 600;
}

body.mv-ratgeber .mv-article ul,
body.mv-ratgeber .mv-article ol {
	padding-left: 1.3em;
}

body.mv-ratgeber .mv-article li {
	margin-bottom: 0.45em;
}

body.mv-ratgeber .mv-article li::marker {
	color: var(--mv-green);
	font-weight: 600;
}

/* Hinweiskasten */
body.mv-ratgeber .mv-article .article-note {
	background: rgba(77, 231, 121, 0.07);
	border: 1px solid rgba(77, 231, 121, 0.25);
	border-left: 4px solid var(--mv-green);
	border-radius: 12px;
	padding: 18px 22px;
	color: #e6ecf5;
}

/* Tabellen */
.mv-article .table-wrap {
	overflow-x: auto;
	margin: 0 0 1.6em;
	border: 1px solid var(--mv-line);
	border-radius: 14px;
	background: var(--mv-card);
}

.mv-article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
	hyphens: auto;
}

.mv-article th,
.mv-article td {
	text-align: left;
	vertical-align: top;
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--mv-line);
	background: transparent;
}

.mv-article thead th {
	hyphens: manual;
	color: #fff;
	font-weight: 600;
	background: rgba(77, 231, 121, 0.1);
}

/* erste Spalte benennt die Zeile: nicht trennen, nicht zu schmal */
.mv-article tbody td:first-child {
	min-width: 9em;
	hyphens: manual;
	color: #fff;
	font-weight: 500;
}

.mv-article tbody tr:last-child td {
	border-bottom: 0;
}

/* Hello färbt ungerade Zeilen grau ein (hohe Spezifität), daher hier explizit */
.mv-article table tbody > tr:nth-child(odd) > td {
	background: transparent;
}

.mv-article table tbody > tr:nth-child(even) > td {
	background: rgba(255, 255, 255, 0.03);
}

/* Vergleichskarten (Tabellen ab 5 Spalten) */
.mv-compare {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 1.6em;
}

.mv-compare__item {
	padding: 20px 22px 14px;
	border-radius: 16px;
	background: var(--mv-card);
	border: 1px solid var(--mv-line);
}

body.mv-ratgeber .mv-compare__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	margin: 0 0 6px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(77, 231, 121, 0.45);
}

.mv-compare dl {
	margin: 0;
}

.mv-compare__row {
	display: grid;
	grid-template-columns: 10em minmax(0, 1fr);
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--mv-line);
	font-size: 14px;
	line-height: 1.5;
}

.mv-compare__row:last-child {
	border-bottom: 0;
}

.mv-compare dt {
	font-weight: 500;
	color: var(--mv-muted);
	hyphens: manual;
}

.mv-compare dd {
	margin: 0;
	color: var(--mv-text);
}

/* Quellenliste kleiner */
body.mv-ratgeber .mv-article h2#quellen ~ ul {
	font-size: 14px;
	line-height: 1.6;
	color: var(--mv-muted);
	word-break: break-word;
}

/* Kontaktkasten */
.mv-cta {
	margin: 3em 0 0;
	padding: 32px;
	border-radius: 24px;
	background:
		radial-gradient(80% 140% at 100% 0%, rgba(8, 211, 98, 0.18), transparent 60%),
		var(--mv-navy);
	border: 1px solid rgba(77, 231, 121, 0.35);
}

body.mv-ratgeber .mv-cta__title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	margin-bottom: 10px;
}

body.mv-ratgeber .mv-cta__text {
	font-size: 16px;
	margin-bottom: 22px;
}

body.mv-ratgeber .mv-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

body.mv-ratgeber .page-content a.mv-btn,
.mv-teaser a.mv-btn {
	display: inline-block;
	font-family: var(--mv-font);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	color: #fff;
	background: var(--mv-navy-2);
	border: 1px solid rgba(77, 231, 121, 0.55);
	border-radius: 45px;
	padding: 15px 22px;
	transition: background-color 0.2s, color 0.2s;
}

body.mv-ratgeber .page-content a.mv-btn--primary {
	background: var(--mv-green-2);
	border-color: var(--mv-green-2);
	font-weight: 600;
}

body.mv-ratgeber .page-content a.mv-btn:hover,
.mv-teaser a.mv-btn:hover {
	background: var(--mv-green);
	border-color: var(--mv-green);
	color: var(--mv-navy-2);
}

/* Autor */
.mv-author {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 2.5em;
	padding-top: 28px;
	border-top: 1px solid var(--mv-line);
}

.mv-author__avatar {
	flex: 0 0 52px;
	height: 52px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 22px;
	font-weight: 600;
	color: var(--mv-navy-2);
	background: linear-gradient(135deg, var(--mv-green), var(--mv-green-2));
}

body.mv-ratgeber .mv-author__name {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin: 2px 0 4px;
}

body.mv-ratgeber .mv-author__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--mv-muted);
	margin: 0;
}

/* Karten (Übersicht und weitere Artikel) */
.mv-related,
.mv-overview {
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px 16px 88px;
}

.mv-overview {
	padding-top: 56px;
}

body.mv-ratgeber .mv-related__title {
	margin-top: 1.2em;
}

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

.mv-card {
	position: relative;
	font-family: var(--mv-font);
	text-align: left;
	display: flex;
	flex-direction: column;
	padding: 26px;
	border-radius: 24px;
	background: var(--mv-card);
	border: 1px solid var(--mv-line);
	transition: border-color 0.2s, transform 0.2s;
}

.mv-card:hover,
.mv-card:focus-within {
	border-color: rgba(77, 231, 121, 0.6);
	transform: translateY(-2px);
}

.mv-card .mv-card__meta {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mv-green);
	margin: 0 0 10px;
}

.mv-card .mv-card__title {
	font-family: var(--mv-font);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 10px;
}

.mv-card .mv-card__title a,
body.mv-ratgeber .page-content .mv-card__title a {
	color: #fff;
	text-decoration: none;
}

/* ganze Karte klickbar */
.mv-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
}

.mv-card .mv-card__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--mv-text);
	margin: 0 0 16px;
	flex: 1;
}

.mv-card .mv-card__more {
	font-size: 13px;
	font-weight: 600;
	color: var(--mv-green);
	margin: 0;
}

/* Startseite: Teaser „Aus dem Ratgeber“ */
.mv-teaser {
	font-family: var(--mv-font);
	text-align: left;
}

.mv-teaser .mv-teaser__lead {
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.77);
	text-align: center;
	margin: 0 auto 40px;
	max-width: 640px;
}

.mv-teaser .mv-teaser__more {
	text-align: center;
	margin: 40px 0 0;
}

@media (max-width: 1024px) {
	.mv-layout {
		grid-template-columns: minmax(0, 760px);
		gap: 0;
		padding-top: 36px;
	}

	.mv-toc {
		position: static;
		border: 1px solid var(--mv-line);
		border-radius: 16px;
		background: var(--mv-card);
		padding: 18px 20px 8px;
		margin-bottom: 36px;
	}

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

	.mv-hero__lead,
	.mv-hero__title {
		padding-right: 0;
	}

	.mv-hero:not(.mv-hero--wide) > * {
		max-width: 760px;
	}
}

@media (max-width: 680px) {
	body.mv-ratgeber .page-content {
		font-size: 16px;
	}

	/* Tabellen auf dem Handy als gestapelte Karten: „Spalte: Wert“, kein Querscrollen */
	.mv-article .table-wrap {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.mv-article table,
	.mv-article tbody,
	.mv-article tr,
	.mv-article td {
		display: block;
		width: 100%;
	}

	.mv-article thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.mv-article tbody tr {
		margin-bottom: 12px;
		padding: 14px 16px 6px;
		border: 1px solid var(--mv-line);
		border-radius: 14px;
		background: var(--mv-card);
	}

	.mv-article table tbody > tr:nth-child(n) > td {
		background: transparent;
	}

	.mv-article tbody td,
	.mv-article tbody tr:last-child td {
		display: grid;
		grid-template-columns: 38% minmax(0, 1fr);
		gap: 10px;
		padding: 7px 0;
		border-bottom: 1px solid var(--mv-line);
		font-size: 14px;
	}

	.mv-article tbody td:last-child {
		border-bottom: 0;
	}

	.mv-article tbody td::before {
		content: attr(data-label);
		font-weight: 500;
		color: var(--mv-muted);
		hyphens: manual;
	}

	.mv-article tbody td:first-child {
		display: block;
		min-width: 0;
		padding: 0 0 10px;
		font-size: 16px;
		font-weight: 600;
		border-bottom: 2px solid rgba(77, 231, 121, 0.45);
	}

	.mv-article tbody td:first-child::before {
		content: none;
	}

	.mv-compare {
		grid-template-columns: minmax(0, 1fr);
	}

	.mv-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.mv-cta {
		padding: 24px 20px;
	}

	body.mv-ratgeber .page-content a.mv-btn {
		width: 100%;
		text-align: center;
	}
}
