/* =========================================================
   Norwegen Aurora — Design
   Aurora-/Polarlicht-Optik: dunkler Nachthimmel-Teal, Mint/Aqua-
   Akzente, Foto-first, Sidebar links, einspaltige Vollbeiträge.
   ---------------------------------------------------------
   Palette (aus Polarlicht-Foto Header-aurora.jpg abgeleitet):
   --night      #0F2525  Nachthimmel (Header/Nav/Footer)
   --teal       #267560  Aurora-Teal (Primär, AA 5.53:1)
   --teal-deep  #1A4841  Hover/dunkler (10.3:1)
   --mint       #41BD93  Akzent auf dunkel
   --aqua       #74CFBA  helles Polarlicht-Licht
   --paper      #F3FAF7  zart aqua-stichiges Papier
   ========================================================= */

:root {
	/* Aurora-Tokens */
	--night: #0f2525;
	--night-deep: #081412;
	--night-2: #12312e;
	--teal: #267560;
	--teal-deep: #1a4841;
	--teal-2: #2f5c5b;
	--mint: #41bd93;
	--aqua: #74cfba;
	--aqua-light: #8cf5e5;
	--paper: #f3faf7;
	--card: #ffffff;
	--line: #dcebe5;
	--ink: #14211f;
	--ink-soft: #4a5b57;
	--ink-faint: #84948f;
	--aurora-shadow: 0 18px 40px -24px rgba(8, 20, 18, 0.4);
	--radius: 14px;

	/* Wellington-Variablen übersteuern (Parent liest diese) */
	--primary-color: var(--teal);
	--secondary-color: var(--teal-2);
	--tertiary-color: var(--teal-deep);
	--accent-color: var(--mint);
	--highlight-color: #7ac9ad;
	--light-gray-color: #eaf3ef;
	--gray-color: #8aa09a;
	--dark-gray-color: var(--ink);
	--text-color: var(--ink);
	--medium-text-color: var(--ink-soft);
	--light-text-color: var(--ink-faint);
	--dark-border-color: var(--night);
	--medium-border-color: #c7ddd4;
	--light-border-color: var(--line);
	--link-color: var(--teal);
	--link-hover-color: var(--teal-deep);
	--button-color: var(--teal);
	--button-text-color: #ffffff;
	--button-hover-color: var(--teal-deep);
	--button-hover-text-color: #ffffff;
	--page-background-color: var(--paper);
	--sidebar-background-color: transparent;
	--site-title-color: #ffffff;
	--site-title-hover-color: var(--aqua-light);
	--navi-background-color: var(--night-deep);
	--navi-color: #eaf6f1;
	--navi-hover-color: #ffffff;
	--navi-current-color: rgba(116, 207, 186, 0.16);
	--title-color: var(--ink);
	--title-hover-color: var(--teal);
	--meta-background-color: #e4f0eb;
	--widget-title-color: var(--ink);
	--footer-background-color: var(--night-deep);
	--footer-text-color: #d7e8e1;
	--footer-link-hover-color: var(--aqua-light);

	--text-font: "Gudea", system-ui, -apple-system, sans-serif;
	--title-font: "Magra", system-ui, sans-serif;
	--navi-font: "Magra", system-ui, sans-serif;
	--widget-title-font: "Magra", system-ui, sans-serif;
	--title-font-weight: bold;
	--text-line-height: 1.7;
}

/* ================= BASE ================= */
body {
	background-color: var(--paper);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
::selection {
	background: var(--teal);
	color: #fff;
}
a {
	transition: color 0.18s ease;
}

/* ================= LAYOUT: breit + Sidebar links ================= */
.site {
	max-width: 1400px;
}
@media (min-width: 1000px) {
	.header-main {
		padding-left: 4.5em;
		padding-right: 4.5em;
	}
	.content-area,
	.sidebar {
		padding-left: 4em;
		padding-right: 4em;
	}
}
.site-content.site-content {
	display: flex !important;
	flex-flow: row wrap !important;
	align-items: flex-start !important;
}
#content #primary {
	flex: 1 1 72% !important;
	min-width: 0;
	width: auto !important;
	/* Wichtiger Innenabstand: ohne ihn klebt Text (v.a. auf statischen
	   Seiten ohne Karten-Wrapper) kommentarlos links am Rand. */
	padding: 0 2.5em 0 2.5em !important;
}
#content #secondary {
	flex: 1 1 28% !important;
	min-width: 0;
	width: auto !important;
	padding: 0 0 0 2.5em !important;
}
body.sidebar-left #content #primary {
	order: 2;
}
body.sidebar-left #content #secondary {
	order: 1;
	padding: 0 1.5em 0 0 !important;
}
@media (max-width: 960px) {
	#content #primary,
	#content #secondary {
		flex: 1 1 100% !important;
		order: 0;
	}
	body.sidebar-left #content #secondary {
		padding-right: 0 !important;
	}
}

/* ================= HEADER: Polarlicht ================= */
.site-header {
	position: relative;
	overflow: hidden;
	border-bottom: 3px solid var(--mint);
	background-color: var(--night);
}
/* festes Polarlicht-Foto aus dem Theme (nicht vom WP-Custom-Header abhängig) */
.aurora-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url('../img/header-aurora.jpg') center/cover no-repeat;
	opacity: 0.8;
	mix-blend-mode: screen;
}
/* dunkler Schleier für Lesbarkeit des Titel auf dem Foto */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(rgba(8, 20, 18, 0.62), rgba(15, 37, 37, 0.35)),
		radial-gradient(120% 160% at 85% -20%, rgba(65, 189, 147, 0.28), transparent 55%);
}
.header-main {
	position: relative;
	z-index: 2;
	padding-top: 40px;
	padding-bottom: 32px;
}
.site-title {
	font-family: var(--title-font);
	font-weight: 700;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	line-height: 1.05;
	margin: 0;
}
.site-title a {
	color: #ffffff;
	text-decoration: none;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.site-title a:hover,
.site-title a:active {
	color: var(--aqua-light);
}
.site-description {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 10px 0 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.site-branding::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 16px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--mint), var(--aqua-light));
}

/* ================= NAVIGATION ================= */
.primary-navigation-wrap {
	position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, 0.32);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#masthead .main-navigation ul a {
	letter-spacing: 0.03em;
	border-radius: 4px;
	transition: background-color 0.22s ease, color 0.22s ease,
		box-shadow 0.22s ease, transform 0.22s ease;
}
/* Eckiger Block-Hover: ganze Menü-Zelle füllt sich Teal (deutlich, kaum transparent) */
#masthead .main-navigation ul a:hover,
#masthead .main-navigation ul a:active,
#masthead .main-navigation ul a:focus {
	background: rgba(38, 117, 96, 0.55);
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(38, 117, 96, 0.55);
	transform: translateY(-1px);
}
#masthead .main-navigation ul a:active {
	transform: translateY(0);
	box-shadow: none;
}
#masthead .main-navigation ul a:focus-visible {
	outline: 2px solid var(--aqua-light);
	outline-offset: 2px;
}
/* aktive Seite = fast voll gedeckte Teal-Fläche (sichtbar "hier bist du") */
#masthead .main-navigation ul li.current-menu-item > a,
#masthead .main-navigation ul li.current_page_item > a,
#masthead .main-navigation ul li.current_page_parent > a {
	background: rgba(38, 117, 96, 0.88);
	color: #fff;
}

/* ================= BEITRAGSKARTEN (einspaltig, voll) ================= */
#post-wrapper {
	gap: 30px;
}
.post-column .type-post {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--aurora-shadow);
	padding: 0;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-column .type-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 48px -26px rgba(8, 20, 18, 0.5);
}
.post-column .type-post .wp-post-image {
	border-radius: 0;
	margin: 0;
	width: 100%;
	max-width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}
.post-column .type-post .entry-header,
.post-column .type-post .entry-content {
	padding-left: 30px;
	padding-right: 30px;
}
.post-column .type-post .entry-header {
	padding-top: 26px;
}
.post-column .type-post .entry-content {
	padding-bottom: 26px;
}
.post-wrapper .type-post .entry-title {
	font-size: 1.85rem;
	line-height: 1.18;
	margin: 0 0 12px;
}
.entry-meta {
	color: var(--ink-faint);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}
.entry-meta a {
	color: var(--teal);
}
.entry-content a {
	color: var(--teal);
	text-decoration: underline;
	text-decoration-color: rgba(38, 117, 96, 0.4);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.18s ease, background-color 0.18s ease,
		text-decoration-color 0.18s ease, text-decoration-thickness 0.18s ease;
}
.entry-content a:hover {
	color: #14211f;
	background: rgba(38, 117, 96, 0.12);
	border-radius: 3px;
	text-decoration-color: var(--mint);
	text-decoration-thickness: 2px;
}
.entry-categories .meta-categories a,
.entry-tags .meta-tags a {
	background: var(--teal);
	color: #fff !important;
	border-radius: 999px;
	padding: 0.35em 1em;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.entry-categories .meta-categories a:hover {
	background: var(--teal-deep);
}

/* ================= SIDEBAR ================= */
.sidebar.widget-area .widget {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 22px 8px;
	margin-bottom: 24px;
	box-shadow: var(--aurora-shadow);
}
.widget .widget-title {
	font-family: var(--widget-title-font);
	color: var(--ink);
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 16px;
}
.widget .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--mint), var(--aqua));
}

.sidebar.widget-area .widget a {
	color: var(--teal);
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease,
		text-decoration-color 0.18s ease;
}
/* gleicher kräftiger Hover wie in Beiträgen (deckt rpwe/Letzte Beiträge, Kategorien …) */
.sidebar.widget-area .widget a:hover,
.sidebar.widget-area .widget a:active {
	color: #14211f;
	background: rgba(38, 117, 96, 0.12);
	border-radius: 3px;
	text-decoration: underline;
	text-decoration-color: var(--mint);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* ================= PAGINATION / NAV ================= */
.pagination .page-numbers,
.pagination a.page-numbers,
.pagination a.page-numbers:link,
.pagination a.page-numbers:visited {
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--ink);
	border-radius: 999px;
	padding: 0.45em 0.9em;
	margin-right: 6px;
}
.pagination .page-numbers.current {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}
.pagination a.page-numbers:hover,
.pagination .page-numbers:hover {
	background: var(--teal-deep);
	border-color: var(--teal-deep);
	color: #fff;
}
.post-navigation a {
	color: var(--teal);
	font-weight: 700;
}
.post-navigation a:hover {
	color: var(--teal-deep);
}

/* ================= FOOTER ================= */
.site-footer {
	padding: 36px 4.5em 32px;
}
.site-footer a {
	color: var(--aqua);
}
.site-footer .credit-link {
	opacity: 0.85;
}

/* ================= SCROLL-REVEAL (fail-safe) ================= */
html.js-reveal .reveal {
	opacity: 0;
	transform: translateY(22px);
}
html.js-reveal .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
	html.js-reveal .reveal {
		opacity: 1;
		transform: none;
	}
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
	.header-main {
		padding-left: 1.5em;
		padding-right: 1.5em;
	}
	.post-column .type-post .wp-post-image {
		height: 200px;
	}
	.post-wrapper .type-post .entry-title {
		font-size: 1.4rem;
	}
}
/* Mobile Menü — Parent togglet `toggled-on` selbst */
@media (max-width: 60em) {
	.main-navigation {
		display: none;
	}
	.main-navigation.toggled-on {
		display: block;
	}
}
