/*
Theme Name: Astra Child — handyvertrag.ninja
Template: astra
Version: 2.0.0
Description: Child-Theme für handyvertrag.ninja (Relaunch 2026-07)
*/

:root {
	--hvn-ink: #172033;
	--hvn-muted: #5f6b7c;
	--hvn-blue: #175cd3;
	--hvn-blue-dark: #0b3f93;
	--hvn-cyan: #06a6c9;
	--hvn-green: #087a5b;
	--hvn-line: #dfe5ee;
	--hvn-surface: #ffffff;
	--hvn-soft: #f4f7fb;
	--hvn-warm: #fff8e8;
	--hvn-radius: 18px;
	--hvn-shadow: 0 16px 45px rgba(23, 32, 51, 0.08);
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--hvn-ink);
	background: var(--hvn-soft);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--hvn-blue);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--hvn-blue-dark);
}

/* Header and navigation */
.site-header {
	position: relative;
	z-index: 20;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.ast-primary-header-bar {
	min-height: 78px;
	border-bottom: 0;
}

.site-title a {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--hvn-ink);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.site-title a::before {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	content: "N";
	color: #fff;
	background: linear-gradient(135deg, var(--hvn-blue), var(--hvn-cyan));
	border-radius: 11px;
	box-shadow: 0 8px 18px rgba(23, 92, 211, 0.25);
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.05em;
}

.main-header-menu > .menu-item > .menu-link {
	color: #334155;
	font-size: 15px;
	font-weight: 650;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
	color: var(--hvn-blue);
}

.main-header-menu .sub-menu {
	padding: 10px;
	background: #fff;
	border: 1px solid var(--hvn-line);
	border-radius: 14px;
	box-shadow: var(--hvn-shadow);
}

.main-header-menu .sub-menu .menu-link {
	padding: 10px 13px;
	border-radius: 9px;
	font-size: 14px;
}

.main-header-menu .sub-menu .menu-link:hover {
	background: #edf5ff;
}

.main-header-menu > .menu-item:last-child > .menu-link {
	height: auto;
	margin-left: 8px;
	padding: 11px 18px;
	color: #fff;
	background: var(--hvn-blue);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(23, 92, 211, 0.2);
}

.main-header-menu > .menu-item:last-child > .menu-link:hover {
	color: #fff;
	background: var(--hvn-blue-dark);
}

/* Article layout */
.site-content {
	padding-top: 46px;
	padding-bottom: 72px;
}

.ast-container {
	max-width: 1220px;
}

.ast-plain-container .site-content .ast-article-single {
	padding: clamp(28px, 5vw, 62px);
	background: var(--hvn-surface);
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 24px;
	box-shadow: var(--hvn-shadow);
}

.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
	color: var(--hvn-ink);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.16;
}

.entry-title {
	max-width: 980px;
	font-size: clamp(34px, 4vw, 54px);
}

.entry-content h2 {
	margin-top: 1.8em;
	margin-bottom: 0.65em;
	font-size: clamp(27px, 3vw, 36px);
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: clamp(21px, 2vw, 25px);
}

.entry-content p,
.entry-content li {
	color: #3f4a5a;
}

.entry-content > p:first-child {
	font-size: 18px;
	line-height: 1.75;
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 22px 25px;
	background: #edf5ff;
	border: 0;
	border-left: 5px solid var(--hvn-blue);
	border-radius: 0 14px 14px 0;
}

.wp-block-table {
	margin: 30px 0 38px;
	overflow-x: auto;
	border: 1px solid var(--hvn-line);
	border-radius: 14px;
	box-shadow: 0 8px 25px rgba(23, 32, 51, 0.05);
}

.wp-block-table table,
.entry-content > table {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.entry-content table thead th,
.entry-content table tr:first-child th {
	color: #fff;
	background: #1f3b68;
	border-color: #36527d;
	font-weight: 750;
}

.entry-content table th,
.entry-content table td {
	padding: 14px 15px;
	border-color: var(--hvn-line);
	vertical-align: top;
}

.entry-content table tbody tr:nth-child(even) {
	background: #f7f9fc;
}

.entry-content table tbody tr:hover {
	background: #eef5ff;
}

.wp-block-button__link,
.hvn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 21px;
	color: #fff;
	background: var(--hvn-blue);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 9px 22px rgba(23, 92, 211, 0.22);
	font-size: 16px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wp-block-button__link:hover,
.hvn-button:hover {
	color: #fff;
	background: var(--hvn-blue-dark);
	box-shadow: 0 12px 28px rgba(23, 92, 211, 0.28);
	transform: translateY(-2px);
}

.hvn-button--secondary {
	color: var(--hvn-ink);
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.75);
	box-shadow: none;
}

.hvn-button--secondary:hover {
	color: var(--hvn-blue-dark);
	background: #fff;
}

/* Homepage */
.home .site-content {
	padding-top: 28px;
}

.home.ast-plain-container .site-content .ast-article-single {
	padding: 0;
	overflow: hidden;
}

.home .entry-header {
	display: none;
}

.hvn-home {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hvn-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(48px, 8vw, 90px) clamp(28px, 7vw, 80px) 42px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 84% 18%, rgba(80, 215, 238, 0.32), transparent 30%),
		linear-gradient(125deg, #102a56 0%, #1359b5 56%, #087e9f 100%);
}

.hvn-hero::after {
	position: absolute;
	z-index: -1;
	top: 56px;
	right: clamp(-90px, 2vw, 32px);
	width: 330px;
	height: 330px;
	content: "";
	border: 54px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
}

.hvn-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 7px 12px;
	color: #d9f6ff !important;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hvn-kicker::before {
	width: 8px;
	height: 8px;
	content: "";
	background: #5ee6b8;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(94, 230, 184, 0.13);
}

.hvn-hero h1 {
	max-width: 780px;
	margin: 0 0 22px;
	color: #fff;
	font-size: clamp(42px, 6vw, 70px);
	line-height: 1.03;
}

.hvn-hero__lead {
	max-width: 720px;
	margin: 0 0 30px;
	color: #e5efff !important;
	font-size: clamp(18px, 2.2vw, 22px);
	line-height: 1.65;
}

.hvn-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hvn-actions .hvn-button:first-child {
	color: var(--hvn-blue-dark);
	background: #fff;
	box-shadow: 0 10px 24px rgba(3, 21, 51, 0.2);
}

.hvn-actions .hvn-button:first-child:hover {
	color: var(--hvn-blue-dark);
	background: #f6fbff;
}

.entry-content .hvn-button,
.entry-content .hvn-card,
.entry-content .hvn-card *,
.entry-content .hvn-topic-link {
	text-decoration: none !important;
}

.hvn-actions .hvn-button--secondary,
.hvn-actions .hvn-button--secondary:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: none;
}

.hvn-actions .hvn-button--secondary:hover {
	background: rgba(255, 255, 255, 0.16);
}

.hvn-trust-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 46px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hvn-trust-item {
	padding: 0 22px;
	color: #e9f2ff;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 14px;
}

.hvn-trust-item:first-child {
	padding-left: 0;
}

.hvn-trust-item:last-child {
	border-right: 0;
}

.hvn-trust-item strong {
	display: block;
	margin-bottom: 2px;
	color: #fff;
	font-size: 21px;
}

.hvn-section {
	padding: clamp(48px, 7vw, 78px) clamp(26px, 7vw, 80px);
}

.hvn-section--soft {
	background: #f4f7fb;
}

.hvn-section--compact {
	padding-top: 44px;
	padding-bottom: 44px;
}

.hvn-section__eyebrow {
	margin: 0 0 8px;
	color: var(--hvn-blue) !important;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hvn-section h2 {
	max-width: 760px;
	margin: 0 0 14px;
	font-size: clamp(30px, 4vw, 44px);
}

.hvn-section__intro {
	max-width: 740px;
	margin: 0 0 34px;
	color: var(--hvn-muted) !important;
	font-size: 18px;
}

.hvn-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.hvn-card {
	position: relative;
	display: flex;
	min-height: 210px;
	flex-direction: column;
	padding: 25px;
	color: var(--hvn-ink);
	background: #fff;
	border: 1px solid var(--hvn-line);
	border-radius: var(--hvn-radius);
	box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hvn-card:hover {
	color: var(--hvn-ink);
	border-color: #9fc1f8;
	box-shadow: 0 16px 34px rgba(23, 92, 211, 0.12);
	transform: translateY(-4px);
}

.hvn-card__icon {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	margin-bottom: 20px;
	color: var(--hvn-blue-dark);
	background: #eaf3ff;
	border-radius: 13px;
	font-size: 21px;
	font-weight: 800;
}

.hvn-card h3 {
	margin: 0 0 8px;
	font-size: 21px;
}

.hvn-card p {
	margin: 0 0 18px;
	color: var(--hvn-muted);
	font-size: 15px;
	line-height: 1.55;
}

.hvn-card__link {
	margin-top: auto;
	color: var(--hvn-blue);
	font-size: 14px;
	font-weight: 750;
}

.hvn-topic-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.hvn-topic-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 19px;
	color: var(--hvn-ink);
	background: #fff;
	border: 1px solid var(--hvn-line);
	border-radius: 13px;
	font-weight: 700;
	text-decoration: none;
}

.hvn-topic-link::after {
	content: "→";
	color: var(--hvn-blue);
	font-size: 20px;
}

.hvn-topic-link:hover {
	color: var(--hvn-blue-dark);
	border-color: #9fc1f8;
}

.hvn-news-wrap {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(30px, 6vw, 70px);
	align-items: start;
}

.hvn-aktuell {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.hvn-aktuell li {
	position: relative;
	margin-bottom: 12px;
	padding: 17px 18px 17px 48px;
	background: #fff;
	border: 1px solid var(--hvn-line);
	border-radius: 13px;
	list-style: none;
}

.hvn-aktuell li::before {
	position: absolute;
	top: 21px;
	left: 19px;
	width: 10px;
	height: 10px;
	content: "";
	background: var(--hvn-cyan);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(6, 166, 201, 0.12);
}

.hvn-aktuell a {
	color: var(--hvn-ink);
	text-decoration: none;
}

.hvn-method {
	display: grid;
	grid-template-columns: 1.5fr auto;
	gap: 28px;
	align-items: center;
	padding: 30px;
	background: var(--hvn-warm);
	border: 1px solid #f0deae;
	border-radius: 18px;
}

.hvn-method h2 {
	margin: 0 0 8px;
	font-size: 27px;
}

.hvn-method p {
	margin: 0;
	color: #5d5034;
}

/* Footer */
.site-footer {
	color: #cbd5e1;
	background: #111d31;
}

.site-footer a,
.site-footer .widget-title {
	color: #fff;
}

.site-footer,
.site-footer p,
.site-footer .ast-footer-copyright {
	color: #cbd5e1 !important;
}

.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
	color: #cbd5e1;
	background: #111d31 !important;
	border-color: rgba(255, 255, 255, 0.12);
}

/* Focus and motion */
:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid rgba(6, 166, 201, 0.55);
	outline-offset: 3px;
}

@media (max-width: 921px) {
	.ast-primary-header-bar {
		min-height: 68px;
	}

	.site-title a {
		font-size: 21px;
	}

	.site-title a::before {
		width: 34px;
		height: 34px;
		font-size: 18px;
	}

	.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link {
		padding: 13px 20px;
		font-weight: 650;
	}

	.ast-builder-menu-mobile .main-navigation .sub-menu .menu-link {
		padding-left: 36px;
	}

	.ast-builder-menu-mobile .main-navigation > ul > .menu-item:last-child > .menu-link {
		margin: 10px 20px 16px;
		color: #fff !important;
		background: var(--hvn-blue);
		border-radius: 999px;
		text-align: center;
	}

	.hvn-card-grid {
		grid-template-columns: 1fr;
	}

	.hvn-card {
		min-height: 0;
	}

	.hvn-news-wrap {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}

	.site-content {
		padding-top: 18px;
		padding-bottom: 42px;
	}

	.ast-plain-container .site-content .ast-article-single {
		padding: 25px 20px;
		border-radius: 18px;
	}

	.home .ast-container {
		padding-right: 12px;
		padding-left: 12px;
	}

	.hvn-hero {
		padding: 42px 22px 30px;
	}

	.hvn-hero h1 {
		font-size: 39px;
	}

	.hvn-actions {
		flex-direction: column;
	}

	.hvn-button {
		width: 100%;
	}

	.hvn-trust-row {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 34px;
	}

	.hvn-trust-item,
	.hvn-trust-item:first-child {
		padding: 0 0 14px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	}

	.hvn-trust-item:last-child {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.hvn-section {
		padding: 44px 21px;
	}

	.hvn-topic-grid {
		grid-template-columns: 1fr;
	}

	.hvn-method {
		grid-template-columns: 1fr;
		padding: 23px;
	}

	.hvn-method .hvn-button {
		width: auto;
		justify-self: start;
	}

	.entry-title {
		font-size: 34px;
	}

	.entry-content h2 {
		font-size: 27px;
	}

	.entry-content table th,
	.entry-content table td {
		min-width: 150px;
		padding: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
