/* =============================================================================
 * landing.css — dark-fantasy theme for the outgame surface
 * (index.php landing, policy.php, and a scoped reskin of login.php / anmelden.php)
 *
 * Self-contained: this never touches the in-game gpack travian.css. Auth-page
 * rules are scoped under `body.landing-auth` so they cannot leak into the game.
 * Hero art is swappable via the --lp-hero-img variable.
 * ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--lp-bg:        #120e0a;
	--lp-bg2:       #1a130c;
	--lp-panel:     #1f160d;
	--lp-panel-2:   rgba(30, 22, 12, 0.72);
	--lp-gold:      #d4a843;
	--lp-gold-light:#e6c98a;
	--lp-gold-dark: #8a6620;
	--lp-crimson:   #9b1c1c;
	--lp-crimson-d: #5c0f0f;
	--lp-text:      #f5eadd;
	--lp-muted:     #c9b08a;
	--lp-border:    rgba(212, 168, 67, 0.25);
	--lp-border-s:  rgba(212, 168, 67, 0.5);
	--lp-hero-img:  url('/gpack/travian/images/artwork.jpg');
	--lp-display:   'Cinzel Decorative', 'Cinzel', serif;
	--lp-title:     'Cinzel', serif;
	--lp-body:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------------ base */
body.landing {
	margin: 0;
	padding: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: var(--lp-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.landing * { box-sizing: border-box; }
body.landing a { color: var(--lp-gold); text-decoration: none; transition: color .2s; }
body.landing a:hover { color: var(--lp-gold-light); }
body.landing img { max-width: 100%; }

.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ----------------------------------------------------------- buttons */
.lp-btn {
	display: inline-block;
	font-family: var(--lp-title);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: 15px;
	padding: 14px 30px;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid var(--lp-border-s);
	transition: transform .15s, box-shadow .2s, background .2s;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn-primary {
	color: #fff;
	background: linear-gradient(180deg, #b62525, var(--lp-crimson) 55%, var(--lp-crimson-d));
	border-color: #d05a5a;
	box-shadow: 0 6px 20px rgba(155, 28, 28, .35);
}
.lp-btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(155, 28, 28, .5); }
.lp-btn-ghost {
	color: var(--lp-gold-light);
	background: rgba(0, 0, 0, .25);
	border-color: var(--lp-border-s);
}
.lp-btn-ghost:hover { color: #fff; background: rgba(212, 168, 67, .12); }

/* ----------------------------------------------------------- header */
.lp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: linear-gradient(180deg, rgba(12, 9, 6, .96), rgba(18, 14, 10, .9));
	border-bottom: 1px solid var(--lp-border);
	backdrop-filter: blur(6px);
}
.lp-header .lp-wrap {
	display: flex;
	align-items: center;
	gap: 18px;
	height: 64px;
}
.lp-logo {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: .04em;
	color: var(--lp-gold-light);
	white-space: nowrap;
}
.lp-logo:hover { color: #fff; }
.lp-nav { display: flex; gap: 6px; margin-left: 18px; flex: 1; flex-wrap: wrap; }
.lp-nav a {
	font-family: var(--lp-title);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--lp-muted);
	padding: 8px 12px;
	border-radius: 4px;
}
.lp-nav a:hover, .lp-nav a.active { color: var(--lp-gold-light); background: rgba(212, 168, 67, .08); }
.lp-header-cta { display: flex; align-items: center; gap: 12px; }
.lp-lang {
	font-family: var(--lp-title);
	font-size: 13px;
	color: var(--lp-muted);
	border: 1px solid var(--lp-border);
	border-radius: 4px;
	padding: 6px 10px;
}
.lp-login-btn {
	font-family: var(--lp-title);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #1a130c;
	background: linear-gradient(180deg, var(--lp-gold-light), var(--lp-gold) 60%, var(--lp-gold-dark));
	padding: 9px 20px;
	border-radius: 4px;
}
.lp-login-btn:hover { color: #1a130c; filter: brightness(1.08); }

/* ----------------------------------------------------------- hero */
.lp-hero {
	position: relative;
	min-height: calc(100vh - 64px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 22px;
	background: var(--lp-hero-img) center / cover no-repeat;
}
.lp-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 9, 6, .55) 0%, rgba(12, 9, 6, .35) 40%, rgba(12, 9, 6, .85) 88%, var(--lp-bg) 100%);
}
.lp-hero > * { position: relative; z-index: 1; }
.lp-live {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lp-gold-light);
	background: rgba(0, 0, 0, .45);
	border: 1px solid var(--lp-border-s);
	border-radius: 30px;
	padding: 7px 18px;
	margin-bottom: 26px;
}
.lp-live .dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: #46d160; box-shadow: 0 0 0 0 rgba(70, 209, 96, .7);
	animation: lp-pulse 1.8s infinite;
}
@keyframes lp-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(70, 209, 96, .7); }
	70%  { box-shadow: 0 0 0 11px rgba(70, 209, 96, 0); }
	100% { box-shadow: 0 0 0 0 rgba(70, 209, 96, 0); }
}
.lp-hero h1 {
	font-family: var(--lp-display);
	font-weight: 900;
	font-size: clamp(42px, 8vw, 96px);
	line-height: 1.04;
	/* Cinzel Decorative's heavy serifs collide on repeated glyphs (e.g. the "OO"
	 * in "SOON"); the extra tracking keeps letters visually separate. */
	letter-spacing: 0.06em;
	margin: 0 0 18px;
	color: #fdf6e8;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .7), 0 0 40px rgba(212, 168, 67, .25);
}
.lp-hero .lp-tagline {
	font-family: var(--lp-title);
	font-size: clamp(15px, 2.2vw, 20px);
	letter-spacing: .08em;
	color: var(--lp-gold-light);
	text-transform: uppercase;
	margin: 0 0 36px;
}
.lp-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.lp-scroll-cue {
	position: absolute;
	bottom: 22px; left: 50%; transform: translateX(-50%);
	z-index: 1;
	font-family: var(--lp-title);
	font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
	color: var(--lp-muted);
	animation: lp-bob 2s ease-in-out infinite;
}
@keyframes lp-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ----------------------------------------------------------- maintenance */
.lp-maint-msg {
	max-width: 620px;
	margin: 4px auto 32px;
	color: var(--lp-muted);
	font-size: 18px;
}
.lp-live.warn .dot { background: #e0a43a; animation: lp-pulse-warn 1.8s infinite; }
@keyframes lp-pulse-warn {
	0%   { box-shadow: 0 0 0 0 rgba(224, 164, 58, .7); }
	70%  { box-shadow: 0 0 0 11px rgba(224, 164, 58, 0); }
	100% { box-shadow: 0 0 0 0 rgba(224, 164, 58, 0); }
}

/* ----------------------------------------------------------- stats band */
.lp-stats {
	background: linear-gradient(180deg, var(--lp-bg), var(--lp-bg2));
	border-top: 1px solid var(--lp-border);
	border-bottom: 1px solid var(--lp-border);
	padding: 46px 0;
}
.lp-stats .lp-wrap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: center;
}
.lp-stat .num {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: clamp(34px, 6vw, 58px);
	color: var(--lp-gold);
	line-height: 1;
	text-shadow: 0 0 24px rgba(212, 168, 67, .3);
}
.lp-stat .label {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--lp-muted);
	margin-top: 10px;
}
.lp-stat + .lp-stat { border-left: 1px solid var(--lp-border); }

/* ----------------------------------------------------------- sections */
.lp-section { padding: 78px 0; }
.lp-section.alt { background: var(--lp-bg2); }
.lp-eyebrow {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--lp-gold-dark);
	text-align: center;
	margin: 0 0 12px;
}
.lp-h2 {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: clamp(28px, 4.5vw, 46px);
	color: var(--lp-gold-light);
	text-align: center;
	margin: 0 0 20px;
}
.lp-lead {
	max-width: 760px;
	margin: 0 auto 48px;
	text-align: center;
	color: var(--lp-muted);
	font-size: 17px;
}
.lp-lead b, .lp-lead strong { color: var(--lp-text); }

/* ----------------------------------------------------------- cards */
.lp-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.lp-card {
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border);
	border-radius: 8px;
	overflow: hidden;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.lp-card:hover {
	transform: translateY(-4px);
	border-color: var(--lp-border-s);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.lp-card .thumb { display: block; width: 100%; height: 168px; object-fit: cover; background: #0d0a07; border-bottom: 1px solid var(--lp-border); }
.lp-card .body { padding: 22px; }
.lp-card h3 {
	font-family: var(--lp-title);
	font-weight: 700;
	font-size: 21px;
	color: var(--lp-gold);
	margin: 0 0 6px;
}
.lp-card .tag {
	font-family: var(--lp-title);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lp-muted);
	display: block;
	margin-bottom: 12px;
}
.lp-card p { margin: 0; color: var(--lp-muted); font-size: 15px; }

/* ----------------------------------------------------------- news */
.lp-news {
	max-width: 760px;
	margin: 0 auto;
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border);
	border-radius: 8px;
	padding: 28px 32px;
}
.lp-news .news p { margin: 0 0 10px; color: var(--lp-muted); }
.lp-news .news .date { color: var(--lp-gold); font-weight: 600; }

/* ----------------------------------------------------------- footer */
.lp-footer {
	background: #0c0906;
	border-top: 1px solid var(--lp-border);
	padding: 16px 0 14px;
	text-align: center;
}
.lp-footer .links { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.lp-footer .links a {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lp-muted);
}
.lp-footer .links a:hover { color: var(--lp-gold-light); }
.lp-footer .copy { color: #7a6a52; font-size: 13px; }
.lp-footer .cc { margin-top: 14px; opacity: .55; }
.lp-footer .cc img { height: 31px; width: 88px; border: 0; }

/* ----------------------------------------------------------- policy page */
.lp-policy-head { text-align: center; padding: 64px 22px 30px; }
.lp-policy-head h1 {
	font-family: var(--lp-display);
	font-weight: 900;
	font-size: clamp(34px, 6vw, 60px);
	color: var(--lp-gold-light);
	text-shadow: 0 0 34px rgba(212, 168, 67, .35);
	margin: 0 0 10px;
}
.lp-policy-head .updated { color: var(--lp-muted); font-size: 15px; }
.lp-policy {
	max-width: 880px;
	margin: 0 auto 80px;
	background: rgba(255, 255, 255, .02);
	border: 1px solid var(--lp-border);
	border-radius: 10px;
	padding: 44px 48px;
}
.lp-policy section { margin-bottom: 40px; }
.lp-policy section:last-child { margin-bottom: 0; }
.lp-policy h2 {
	font-family: var(--lp-title);
	font-weight: 700;
	font-size: 26px;
	color: var(--lp-gold);
	border-bottom: 1px solid var(--lp-border);
	padding-bottom: 12px;
	margin: 0 0 18px;
}
.lp-policy h3 {
	font-family: var(--lp-title);
	font-weight: 600;
	font-size: 18px;
	color: var(--lp-gold-light);
	margin: 22px 0 8px;
}
.lp-policy p, .lp-policy li { color: var(--lp-text); font-size: 15.5px; }
.lp-policy ul { padding-left: 20px; }
.lp-policy li { margin-bottom: 7px; }
.lp-policy .contact-block { color: var(--lp-muted); }
.lp-policy .contact-block b { color: var(--lp-text); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 820px) {
	.lp-nav { display: none; }
	.lp-stats .lp-wrap { grid-template-columns: 1fr; gap: 32px; }
	.lp-stat + .lp-stat { border-left: 0; }
	.lp-cards { grid-template-columns: 1fr; }
	.lp-policy { padding: 30px 22px; }
}

/* =============================================================================
 * Auth-page reskin — scoped to body.landing-auth (login.php / anmelden.php).
 * The legacy markup (forms, #side_navi, tables, .text inputs) is untouched;
 * these rules only repaint it into the dark-fantasy palette.
 * ========================================================================== */
body.landing-auth {
	background:
		linear-gradient(180deg, rgba(12, 9, 6, .82), rgba(12, 9, 6, .92)),
		var(--lp-hero-img) center / cover fixed no-repeat;
	color: var(--lp-text);
	font-family: var(--lp-body);
}
body.landing-auth .wrapper { background: transparent; }
body.landing-auth #header, body.landing-auth #dynamic_header { background: transparent; }

/* side navigation (from menu.tpl) */
body.landing-auth #side_navi {
	background: linear-gradient(180deg, rgba(20, 15, 9, .96), rgba(14, 10, 6, .96));
	border: 1px solid var(--lp-border);
	border-radius: 8px;
	padding: 16px 18px;
}
body.landing-auth #side_navi a {
	font-family: var(--lp-title);
	color: var(--lp-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: 14px;
}
body.landing-auth #side_navi a:hover { color: var(--lp-gold-light); }

/* content / form panels */
body.landing-auth #content.login,
body.landing-auth #content.signup {
	position: relative;
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border);
	border-radius: 10px;
	color: var(--lp-text);
	padding: 26px 30px;
}
/* The legacy <h1>/<h5> are sprite images with a baked-in white background that
 * clashes with the dark panel — hide them and supply a clean Cinzel heading. */
body.landing-auth #content.login > h1,
body.landing-auth #content.login > h5,
body.landing-auth #content.signup > h1,
body.landing-auth #content.signup > h5 { display: none; }
body.landing-auth #content.login::before { content: "Login"; }
body.landing-auth #content.signup::before { content: "Register"; }
body.landing-auth #content.login::before,
body.landing-auth #content.signup::before {
	display: block;
	font-family: var(--lp-display);
	font-size: 30px;
	color: var(--lp-gold-light);
	text-align: center;
	margin-bottom: 16px;
	text-shadow: 0 0 24px rgba(212, 168, 67, .3);
}
body.landing-auth #content p { color: var(--lp-muted); }
/* legacy form tables carry a white sprite background — flatten to the panel */
body.landing-auth #login_form,
body.landing-auth #sign_input,
body.landing-auth #sign_select,
body.landing-auth #login_form tbody, body.landing-auth #login_form tr, body.landing-auth #login_form td, body.landing-auth #login_form th,
body.landing-auth #sign_input tbody, body.landing-auth #sign_input tr, body.landing-auth #sign_input td, body.landing-auth #sign_input th,
body.landing-auth #sign_select tbody, body.landing-auth #sign_select tr, body.landing-auth #sign_select td, body.landing-auth #sign_select th {
	background: transparent !important;
	border-color: var(--lp-border) !important;
}
body.landing-auth #login_form th,
body.landing-auth #sign_input th,
body.landing-auth #sign_select th { color: var(--lp-gold-light); font-family: var(--lp-title); }
body.landing-auth #content .text {
	background: #0e0b07;
	border: 1px solid var(--lp-border-s);
	border-radius: 4px;
	color: var(--lp-text);
	padding: 8px 10px;
}
body.landing-auth #content .text:focus { outline: none; border-color: var(--lp-gold); }
body.landing-auth #content label { color: var(--lp-text); }
body.landing-auth #content .error { color: #ff6b6b; }
body.landing-auth #content .error_box {
	background: rgba(155, 28, 28, .12);
	border: 1px solid var(--lp-crimson);
	border-radius: 6px;
	padding: 12px 14px;
	color: var(--lp-text);
}
body.landing-auth #content ul.important { color: #ff6b6b; }

/* buttons (the legacy .trav_buttons) */
body.landing-auth .trav_buttons {
	font-family: var(--lp-title);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #1a130c;
	background: linear-gradient(180deg, var(--lp-gold-light), var(--lp-gold) 60%, var(--lp-gold-dark));
	border: 1px solid var(--lp-border-s);
	border-radius: 5px;
	padding: 10px 26px;
	cursor: pointer;
}
body.landing-auth .trav_buttons:hover { filter: brightness(1.08); }

/* news sidebar + footer */
body.landing-auth #side_info {
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border);
	border-radius: 8px;
	padding: 14px 16px;
	color: var(--lp-muted);
}
body.landing-auth #footer { background: transparent; color: #7a6a52; }
body.landing-auth #footer a { color: var(--lp-gold); }
