/* Travianer Reloaded – Landing (2026) */

:root {
    --lr-bg: #0f1419;
    --lr-bg2: #151c24;
    --lr-panel: #1a222d;
    --lr-border: rgba(255, 255, 255, 0.08);
    --lr-text: #e8ecf0;
    --lr-muted: #8b98a8;
    --lr-gold: #d4af37;
    --lr-gold2: #f0d060;
    --lr-danger: #e85d5d;
    --lr-font: "Segoe UI", system-ui, sans-serif;
    --lr-radius: 14px;
    --lr-topbar-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--lr-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--lr-text);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 175, 55, 0.12), transparent 55%),
        linear-gradient(180deg, var(--lr-bg) 0%, #0a0d10 100%);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--lr-gold);
    color: #111;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

code {
    font-size: 0.88em;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.15em 0.45em;
    border-radius: 6px;
}

/* ——— Topbar ——— */
.lr-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--lr-topbar-h);
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lr-border);
}

.lr-topbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.lr-brand__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.25), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.lr-brand__mark img { display: block; image-rendering: pixelated; }

.lr-brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.lr-brand__title {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.lr-brand__tag {
    font-size: 0.7rem;
    color: var(--lr-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lr-nav {
    display: none;
    gap: 6px;
    margin-left: auto;
}

@media (min-width: 900px) {
    .lr-nav { display: flex; }
}

.lr-nav a {
    color: var(--lr-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.lr-nav a:hover {
    color: var(--lr-text);
    background: rgba(255, 255, 255, 0.06);
}

.lr-nav-mobile {
    margin-left: auto;
    position: relative;
}

@media (min-width: 900px) {
    .lr-nav-mobile { display: none; }
}

.lr-nav-mobile__btn {
    list-style: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--lr-border);
    background: var(--lr-panel);
    color: var(--lr-text);
}

.lr-nav-mobile__btn::-webkit-details-marker { display: none; }

.lr-nav-mobile__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    padding: 10px;
    background: var(--lr-panel);
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lr-nav-mobile__panel a {
    color: var(--lr-text);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.lr-nav-mobile__panel a:hover { background: rgba(255, 255, 255, 0.06); }

.lr-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lr-userpill {
    display: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--lr-gold2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .lr-userpill { display: inline-block; }
}

/* ——— Buttons ——— */
.lr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    white-space: nowrap;
}

.lr-btn:active { transform: scale(0.98); }

.lr-btn--lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }

.lr-btn--block { width: 100%; }

.lr-btn--gold {
    background: linear-gradient(180deg, var(--lr-gold2), var(--lr-gold));
    color: #1a1508;
    box-shadow: 0 2px 0 #8a7020, 0 8px 24px rgba(212, 175, 55, 0.25);
}

.lr-btn--gold:hover {
    filter: brightness(1.06);
    box-shadow: 0 2px 0 #8a7020, 0 10px 28px rgba(212, 175, 55, 0.35);
}

.lr-btn--dark {
    background: linear-gradient(180deg, #2d3845, #1f2832);
    color: var(--lr-text);
    border: 1px solid var(--lr-border);
}

.lr-btn--dark:hover { background: #354250; }

.lr-btn--ghost {
    background: transparent;
    color: var(--lr-muted);
    border: 1px solid var(--lr-border);
}

.lr-btn--ghost:hover {
    color: var(--lr-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.lr-btn--outline {
    background: transparent;
    color: var(--lr-gold2);
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.lr-btn--outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--lr-gold2);
}

/* ——— Main & sections ——— */
.lr-main { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }

.lr-section {
    margin-top: 56px;
    scroll-margin-top: calc(var(--lr-topbar-h) + 16px);
}

.lr-section--dark {
    background: var(--lr-panel);
    margin-left: -20px;
    margin-right: -20px;
    padding: 48px 20px;
    border-radius: var(--lr-radius);
    border: 1px solid var(--lr-border);
}

.lr-section__head { margin-bottom: 28px; }

.lr-section__head--center { text-align: center; max-width: 520px; margin-left: auto; margin-right: auto; }

.lr-section__title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lr-section__sub {
    margin: 0;
    color: var(--lr-muted);
    font-size: 1rem;
    max-width: 560px;
}

.lr-section__head--center .lr-section__sub { margin-left: auto; margin-right: auto; }

/* ——— Hero ——— */
.lr-hero {
    padding: 32px 0 8px;
}

.lr-hero__grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

@media (min-width: 860px) {
    .lr-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}

.lr-eyebrow {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lr-gold);
}

.lr-hero__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.lr-hero__lead {
    margin: 0 0 20px;
    color: var(--lr-muted);
    font-size: 1.05rem;
    max-width: 520px;
}

.lr-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.lr-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--lr-border);
    color: var(--lr-muted);
}

.lr-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lr-hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lr-hero__frame {
    width: min(100%, 320px);
    aspect-ratio: 1;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.2), transparent 50%),
        linear-gradient(160deg, #1e2835, #121820);
    border: 2px solid rgba(212, 175, 55, 0.35);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.5),
        0 24px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lr-hero__char {
    image-rendering: pixelated;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.lr-hero__visual-cap {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: var(--lr-muted);
}

/* ——— Portal (Login / Register) ——— */
.lr-section--portal { margin-top: 40px; }

#spieler-konto { scroll-margin-top: calc(var(--lr-topbar-h) + 12px); }

.lr-portal {
    display: grid;
    gap: 20px;
}

@media (min-width: 880px) {
    .lr-portal { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

.lr-portal__card {
    background: var(--lr-panel);
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
    padding: 24px 22px 26px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lr-portal__card--focus {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lr-portal__card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.lr-portal__step {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.9rem;
    background: rgba(212, 175, 55, 0.2);
    color: var(--lr-gold2);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.lr-portal__card-title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
}

.lr-portal__card-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--lr-muted);
}

.lr-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.lr-alert--err {
    background: rgba(232, 93, 93, 0.12);
    border: 1px solid rgba(232, 93, 93, 0.35);
    color: #ffb4b4;
}

.lr-form { display: flex; flex-direction: column; gap: 14px; }

.lr-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lr-muted);
    margin-bottom: 6px;
}

.lr-field input {
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid var(--lr-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--lr-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lr-field input::placeholder { color: #5c6878; }

.lr-field input:focus {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.lr-portal__fineprint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--lr-muted);
    max-width: 720px;
    line-height: 1.5;
}

/* ——— Logged-in card ——— */
.lr-logged {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px;
    background: var(--lr-panel);
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
}

.lr-logged__avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.3), #1a222d);
    border: 2px solid rgba(212, 175, 55, 0.4);
}

.lr-logged__name { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; }

.lr-logged__mail { margin: 0 0 16px; color: var(--lr-muted); font-size: 0.95rem; }

.lr-logged__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ——— Legacy box ——— */
.lr-legacybox {
    padding: 24px;
    background: var(--lr-panel);
    border: 1px dashed rgba(212, 175, 55, 0.35);
    border-radius: var(--lr-radius);
    color: var(--lr-muted);
}

.lr-legacybox p { margin: 0 0 18px; }

/* ——— Features ——— */
.lr-features {
    display: grid;
    gap: 16px;
}

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

.lr-fcard {
    padding: 22px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--lr-radius);
    border: 1px solid var(--lr-border);
}

.lr-fcard h3 { margin: 12px 0 8px; font-size: 1.05rem; }

.lr-fcard p { margin: 0; font-size: 0.92rem; color: var(--lr-muted); }

.lr-fcard__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.lr-ficon--map {
    background-image: url("game/res/ui/icons/size40/map40.gif");
}

.lr-ficon--quest {
    background-image: url("game/res/ui/icons/size40/quest40.gif");
}

.lr-ficon--home {
    background-image: url("game/res/ui/icons/size40/house40.gif");
}

/* ——— Shop ——— */
.lr-shoprow {
    display: grid;
    gap: 16px;
}

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

.lr-scard {
    position: relative;
    padding: 22px;
    background: var(--lr-panel);
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
    text-align: center;
}

.lr-scard__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--lr-gold2);
}

.lr-scard__ico {
    display: block;
    width: 56px;
    height: 56px;
    margin: 8px auto 12px;
    border-radius: 14px;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--lr-border);
}

.lr-ico-dia { background-image: url("game/res/ui/icons/size40/diamond40.gif"); }
.lr-ico-buy { background-image: url("game/res/ui/icons/size40/buy40.gif"); }
.lr-ico-bonus { background-image: url("game/res/ui/icons/size40/bonus40.gif"); }

.lr-scard h3 { margin: 0 0 8px; font-size: 1rem; }

.lr-scard p { margin: 0; font-size: 0.88rem; color: var(--lr-muted); }

/* ——— Stats ——— */
.lr-section--stats { margin-top: 48px; }

.lr-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.lr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: var(--lr-panel);
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.lr-stat--live,
#statServerCard.lr-stat--live {
    border-color: rgba(80, 200, 120, 0.45);
    box-shadow: 0 0 20px rgba(80, 200, 120, 0.12);
}

.lr-stat__ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-size: 36px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
}

.lr-stat__ico--srv { background-image: url("game/res/ui/icons/size40/server40.gif"); }
.lr-stat__ico--q { background-image: url("game/res/ui/icons/size40/quest40.gif"); }
.lr-stat__ico--u { background-image: url("game/res/ui/icons/size40/user40.gif"); }
.lr-stat__ico--a { background-image: url("game/res/ui/icons/size40/attack40.gif"); }

.lr-stat__val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lr-gold2);
}

.lr-stat__lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lr-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ——— Footer ——— */
.lr-footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    border-top: 1px solid var(--lr-border);
    text-align: center;
    color: var(--lr-muted);
    font-size: 0.9rem;
}

.lr-footer strong { color: var(--lr-text); }

.lr-footer__small { font-size: 0.8rem; margin-top: 8px; opacity: 0.85; }
