/*
Theme Name: Everything About Germany Theme
Theme URI: https://www.everythingaboutgermany.de
Author: Black Bear Media
Author URI: https://blackbearmedia.com
Description: Fast, accessible, server-rendered WordPress theme for Everything About Germany travel, history, culture, and destination guides.
Version: 1.0.0
Text Domain: everythingaboutgermany-theme
*/

:root {
	--eag-primary: #0f172a;
	--eag-primary-hover: #1e293b;
	--eag-accent: #d97706;
	--eag-accent-hover: #b45309;
	--eag-accent-light: #fef3c7;
	--eag-surface: #ffffff;
	--eag-surface-muted: #f8fafc;
	--eag-surface-alt: #f1f5f9;
	--eag-border: #e2e8f0;
	--eag-border-decorative: #cbd5e1;
	--eag-text-primary: #0f172a;
	--eag-text-secondary: #475569;
	--eag-text-muted: #64748b;
	--eag-focus-ring: #d97706;
	--eag-radius-sm: 6px;
	--eag-radius-md: 10px;
	--eag-radius-lg: 16px;
	--eag-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--eag-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	--eag-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

html.dark,
.dark,
[data-theme="dark"] {
	--eag-primary: #f8fafc;
	--eag-primary-hover: #e2e8f0;
	--eag-accent: #f59e0b;
	--eag-accent-hover: #fbbf24;
	--eag-accent-light: rgba(245, 158, 11, 0.2);
	--eag-surface: #1e293b;
	--eag-surface-muted: #0f172a;
	--eag-surface-alt: #334155;
	--eag-border: #334155;
	--eag-border-decorative: #475569;
	--eag-text-primary: #f8fafc;
	--eag-text-secondary: #cbd5e1;
	--eag-text-muted: #94a3b8;
}

html.dark body,
body.dark,
[data-theme="dark"] body {
	background-color: var(--eag-surface-muted);
	color: var(--eag-text-primary);
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: var(--eag-surface-muted);
	color: var(--eag-text-primary);
	line-height: 1.65;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--eag-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--eag-accent-hover);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
	outline: 2px solid var(--eag-focus-ring);
	outline-offset: 2px;
}

.eag-skip-link {
	position: absolute;
	top: -9999px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--eag-accent);
	color: #ffffff;
	padding: 0.75rem 1.5rem;
	font-weight: 700;
	z-index: 10000;
	border-radius: 0 0 var(--eag-radius-sm) var(--eag-radius-sm);
}

.eag-skip-link:focus {
	top: 0;
}

.eag-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header & Nav */
.eag-header {
	background: var(--eag-surface);
	border-bottom: 1px solid var(--eag-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(8px);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eag-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4.5rem;
}

.eag-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--eag-text-primary);
}

.eag-logo-badge {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #f59e0b;
	border: 1px solid #d97706;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--eag-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 0.875rem;
}

.eag-nav-desktop {
	display: none;
	align-items: center;
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.eag-nav-desktop {
		display: flex;
	}
}

.eag-nav-desktop a {
	color: var(--eag-text-secondary);
	font-weight: 600;
	font-size: 0.9375rem;
}

.eag-nav-desktop a:hover {
	color: var(--eag-accent);
}

.eag-locale-picker {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	background: var(--eag-surface-alt);
	padding: 0.25rem 0.5rem;
	border-radius: var(--eag-radius-sm);
	font-size: 0.8125rem;
	font-weight: 700;
}

.eag-locale-picker a {
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	color: var(--eag-text-muted);
}

.eag-locale-picker a.active {
	background: var(--eag-surface);
	color: var(--eag-accent);
	box-shadow: var(--eag-shadow-sm);
}

.eag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: var(--eag-radius-sm);
	cursor: pointer;
	transition: all 0.15s ease;
	border: none;
}

.eag-btn-primary {
	background: var(--eag-accent);
	color: #ffffff !important;
}

.eag-btn-primary:hover {
	background: var(--eag-accent-hover);
}

.eag-btn-secondary {
	background: var(--eag-surface-alt);
	color: var(--eag-text-primary) !important;
	border: 1px solid var(--eag-border);
}

.eag-btn-secondary:hover {
	background: var(--eag-border);
}

.eag-mobile-menu-toggle {
	display: inline-flex;
	padding: 0.5rem;
	background: none;
	border: 1px solid var(--eag-border);
	border-radius: var(--eag-radius-sm);
	color: var(--eag-text-primary);
	cursor: pointer;
	font-size: 1.25rem;
}

.eag-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	background: var(--eag-surface-alt);
	border: 1px solid var(--eag-border);
	border-radius: var(--eag-radius-sm);
	color: var(--eag-text-primary);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.eag-theme-toggle:hover {
	background: var(--eag-border);
	color: var(--eag-accent);
}

.eag-theme-toggle .eag-icon-sun {
	display: none;
}

.eag-theme-toggle .eag-icon-moon {
	display: block;
}

.dark .eag-theme-toggle .eag-icon-sun {
	display: block;
	color: #fbbf24;
}

.dark .eag-theme-toggle .eag-icon-moon {
	display: none;
}

@media (min-width: 1024px) {
	.eag-mobile-menu-toggle {
		display: none;
	}
	.eag-mobile-toggle {
		display: none !important;
	}
}

.eag-mobile-drawer {
	display: none;
	background: var(--eag-surface);
	border-bottom: 1px solid var(--eag-border);
	padding: 1.5rem;
}

.eag-mobile-drawer.open {
	display: block;
}

.eag-mobile-drawer ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.eag-mobile-drawer a {
	color: var(--eag-text-primary);
	font-weight: 600;
	font-size: 1.125rem;
}

/* Hero Section */
.eag-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
	padding: 4.5rem 0 5rem;
	position: relative;
	overflow: hidden;
}

.eag-hero-inner {
	max-width: 840px;
	margin: 0 auto;
	text-align: center;
}

.eag-hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(217, 119, 6, 0.2);
	color: #fbbf24;
	border: 1px solid rgba(217, 119, 6, 0.4);
	padding: 0.35rem 0.85rem;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.eag-hero h1 {
	font-size: 2.5rem;
	line-height: 1.15;
	font-weight: 900;
	letter-spacing: -0.03em;
	margin-bottom: 1.25rem;
	color: #ffffff;
}

@media (min-width: 768px) {
	.eag-hero h1 {
		font-size: 3.5rem;
	}
}

.eag-hero p {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #cbd5e1;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.eag-hero p {
		font-size: 1.25rem;
	}
}

/* Grid & Cards */
.eag-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
}

@media (min-width: 640px) {
	.eag-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.eag-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.eag-grid-4 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.eag-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.eag-grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.eag-card {
	background: var(--eag-surface);
	border: 1px solid var(--eag-border);
	border-radius: var(--eag-radius-md);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	display: flex;
	flex-direction: column;
}

.eag-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--eag-shadow-md);
	border-color: var(--eag-border-decorative);
}

.eag-card-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--eag-surface-alt);
	overflow: hidden;
}

.eag-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.eag-card:hover .eag-card-thumb img {
	transform: scale(1.04);
}

.eag-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.eag-card-badge {
	align-self: flex-start;
	background: var(--eag-accent-light);
	color: var(--eag-accent);
	font-weight: 700;
	font-size: 0.75rem;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.eag-card-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--eag-text-primary);
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

.eag-card-title a {
	color: inherit;
}

.eag-card-title a:hover {
	color: var(--eag-accent);
}

.eag-card-desc {
	font-size: 0.875rem;
	color: var(--eag-text-secondary);
	line-height: 1.5;
	margin-bottom: 1rem;
	flex-grow: 1;
}

.eag-card-meta {
	font-size: 0.8125rem;
	color: var(--eag-text-muted);
	border-top: 1px solid var(--eag-border);
	padding-top: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Sections */
.eag-section {
	padding: 4rem 0;
}

.eag-section-header {
	margin-bottom: 2.5rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.eag-section-title {
	font-size: 1.875rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--eag-text-primary);
}

.eag-section-subtitle {
	font-size: 1rem;
	color: var(--eag-text-secondary);
	margin-top: 0.25rem;
}

/* Single Template Layout */
.eag-single-header {
	background: var(--eag-surface);
	border-bottom: 1px solid var(--eag-border);
	padding: 3rem 0;
}

.eag-breadcrumbs {
	font-size: 0.875rem;
	color: var(--eag-text-muted);
	margin-bottom: 1rem;
}

.eag-breadcrumbs a {
	color: var(--eag-text-secondary);
}

.eag-breadcrumbs span {
	margin: 0 0.5rem;
}

.eag-single-title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--eag-text-primary);
	margin-bottom: 1rem;
}

.eag-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.9375rem;
	color: var(--eag-text-muted);
}

.eag-single-body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding: 3rem 0;
}

@media (min-width: 1024px) {
	.eag-single-body {
		grid-template-columns: 2fr 1fr;
	}
}

.eag-prose {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--eag-text-primary);
}

.eag-prose h2 {
	font-size: 1.625rem;
	font-weight: 800;
	margin: 2rem 0 1rem;
	color: var(--eag-text-primary);
}

.eag-prose h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 1.5rem 0 0.75rem;
	color: var(--eag-text-primary);
}

.eag-prose p {
	margin-bottom: 1.25rem;
}

.eag-prose ul, .eag-prose ol {
	margin: 1rem 0 1.5rem 1.5rem;
}

.eag-prose li {
	margin-bottom: 0.5rem;
}

.eag-sidebar-card {
	background: var(--eag-surface);
	border: 1px solid var(--eag-border);
	border-radius: var(--eag-radius-md);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.eag-sidebar-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--eag-accent);
	padding-bottom: 0.5rem;
}

.eag-fact-list {
	list-style: none;
}

.eag-fact-item {
	display: flex;
	justify-content: space-between;
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--eag-border);
	font-size: 0.9375rem;
}

.eag-fact-item:last-child {
	border-bottom: none;
}

.eag-fact-label {
	color: var(--eag-text-muted);
	font-weight: 600;
}

.eag-fact-value {
	color: var(--eag-text-primary);
	font-weight: 700;
}

/* Footer */
.eag-footer {
	background: #0b1120;
	color: #94a3b8;
	margin-top: auto;
	padding: 4rem 0 2rem;
	border-top: 1px solid #1e293b;
}

.eag-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

@media (min-width: 640px) {
	.eag-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.eag-footer-grid {
		grid-template-columns: 2fr repeat(3, 1fr);
	}
}

.eag-footer h4 {
	color: #f8fafc;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.eag-footer ul {
	list-style: none;
}

.eag-footer li {
	margin-bottom: 0.5rem;
}

.eag-footer a {
	color: #94a3b8;
	font-size: 0.9375rem;
}

.eag-footer a:hover {
	color: #f59e0b;
}

.eag-footer-bottom {
	border-top: 1px solid #1e293b;
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	.eag-footer-bottom {
		flex-direction: row;
	}
}
