/* Ateo underside-layout */

.ateo-page-hero {
	position: relative;
	margin: 0 calc(50% - 50vw) 2.5rem;
	width: 100vw;
	max-width: 100vw;
	min-height: 280px;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(135deg, #1a3a4a 0%, #2d5a6b 50%, #1a3a4a 100%);
	color: #fff;
	overflow: hidden;
}

.ateo-page-hero.has-image {
	background-size: cover;
	background-position: center;
}

.ateo-page-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 30, 40, 0.92) 0%, rgba(15, 30, 40, 0.45) 60%, rgba(15, 30, 40, 0.2) 100%);
}

.ateo-page-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	/* Vandret padding matcher GeneratePress' content-padding (40px),
	   så hero-teksten flugter med brødteksten nedenfor. */
	padding: 3rem 40px 2rem;
}

.ateo-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
	opacity: 0.9;
}

.ateo-breadcrumb a {
	color: #fff;
	text-decoration: none;
}

.ateo-breadcrumb a:hover {
	text-decoration: underline;
}

.ateo-breadcrumb__sep {
	opacity: 0.6;
}

.ateo-page-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: #fff;
	font-weight: 700;
}

.ateo-page-hero__lead {
	font-size: 1.05rem;
	max-width: 720px;
	margin: 0;
	opacity: 0.92;
	line-height: 1.55;
}

/* Ingen ekstra smal kolonne: teksten følger GeneratePress' container-bredde
   og content-padding, som styres fra Customizer → Layout → Container.
   Vil du have smallere tekstlinjer, sæt max-width nedenfor (fx 900px). */
.ateo-template-stedprofil .entry-content,
.ateo-template-kategori .entry-content {
	max-width: none;
	margin: 0;
}

.ateo-page-body {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #2c3338;
}

.ateo-intro {
	font-size: 1.15rem;
	line-height: 1.65;
	color: #3c434a;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e8e8e8;
}

.ateo-section {
	margin-bottom: 2.25rem;
}

.ateo-section h2 {
	font-size: 1.5rem;
	margin: 0 0 0.85rem;
	color: #1a3a4a;
}

.ateo-section h3 {
	font-size: 1.15rem;
	margin: 1.25rem 0 0.5rem;
}

.ateo-checklist {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.ateo-checklist li {
	position: relative;
	padding: 0.5rem 0 0.5rem 1.75rem;
	border-bottom: 1px solid #f0f0f1;
}

.ateo-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #2d5a6b;
	font-weight: 700;
}

/* Punkt-/nummererede lister fra AI-markdown i brødteksten */
.ateo-list {
	margin: 1rem 0;
	padding-left: 1.35rem;
}

.ateo-list li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
}

.ateo-list li::marker {
	color: #2d5a6b;
}

.ateo-page-body strong {
	color: #1a3a4a;
	font-weight: 700;
}

.ateo-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin: 0;
}

/* Højere specificitet end ".ateo-page-body a", så kortene ikke arver
   linkfarve/understregning og fejlagtigt ligner ét langt link. */
.ateo-page-body a.ateo-card,
.ateo-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.35rem 1.4rem;
	background: #fff;
	border: 1px solid #e2e8ec;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(16, 42, 55, 0.04);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ateo-page-body a.ateo-card:hover,
.ateo-card:hover {
	border-color: #2d5a6b;
	box-shadow: 0 8px 22px rgba(26, 58, 74, 0.12);
	transform: translateY(-2px);
	color: inherit;
}

.ateo-card__title {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a3a4a;
	text-decoration: none;
}

.ateo-card__title::after {
	content: "→";
	color: #2d5a6b;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.ateo-card:hover .ateo-card__title::after {
	opacity: 1;
	transform: translateX(0);
}

.ateo-card__text {
	font-size: 0.92rem;
	color: #5a6169;
	margin: 0;
	line-height: 1.55;
	text-decoration: none;
}

.ateo-faq {
	margin-top: 2rem;
}

.ateo-faq__item {
	border: 1px solid #e2e8ec;
	border-radius: 8px;
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.ateo-faq__q {
	font-weight: 600;
	padding: 1rem 1.25rem;
	background: #f6f8f9;
	margin: 0;
	font-size: 1rem;
	color: #1a3a4a;
}

.ateo-faq__a {
	padding: 0 1.25rem 1rem;
	margin: 0;
	color: #3c434a;
}

.ateo-faq__a > :first-child {
	margin-top: 0;
}

.ateo-faq__a > :last-child {
	margin-bottom: 0;
}

.ateo-faq__a .ateo-list {
	margin: 0.5rem 0;
}

.ateo-disclaimer {
	margin-top: 2.5rem;
	padding: 1rem 1.25rem;
	background: #fff8e5;
	border-left: 4px solid #dba617;
	border-radius: 0 6px 6px 0;
	font-size: 0.9rem;
	color: #646970;
}

.ateo-related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e8e8e8;
}

.ateo-related h2 {
	font-size: 1.4rem;
	margin: 0 0 1.35rem;
	color: #1a3a4a;
}

.ateo-pillar-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 2rem;
}

.ateo-pillar-links a {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	background: #eef3f5;
	color: #1a3a4a;
	border-radius: 999px;
	font-size: 0.875rem;
	text-decoration: none;
}

.ateo-pillar-links a:hover {
	background: #2d5a6b;
	color: #fff;
}

.ateo-page-body a {
	color: #2d5a6b;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ateo-page-body a:hover {
	color: #1a3a4a;
}

@media (max-width: 768px) {
	.ateo-page-hero {
		min-height: 220px;
	}

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