:root {
    --bg:#0b1020;
    --card:#111a33;
    --text:#e8ecff;
    --muted:#aab3d6;
    --accent:#7aa2ff;
    --border:#22305f;
}

body{
    margin:0;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
    background:radial-gradient(1200px 600px at 20% 0%, #16255a 0%, var(--bg) 45%);
    color:var(--text);
}

a {
    color: #6a95ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
    color: #bc8aff;
    text-shadow: 0 0 8px rgba(188, 138, 255, 0.4);
}

.wrap{
    max-width:980px;
    margin:0 auto;
    padding:48px 18px;
}

/* Breiterer Admin-Bereich */
.wrap-admin {
    max-width: 95%;
    margin: 0 auto;
    padding: 48px 18px;
}

.card{
    background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border:1px solid var(--border);
    border-radius:16px;
    padding:32px;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
}

/* ---------- HEADER ---------- */

.logo-wrap{
    text-align:center;
    margin-bottom:22px;
}

.logo-wrap img{
    max-width:160px;
    height:auto;
}

h1{
    margin:0 0 10px;
    font-size:42px;
    line-height:1.1;
    text-align:center;
}

.h1-sub{
    display:block;
    font-size:0.85em;
    font-weight:700;
    opacity: 0.9;
}

.tag-wrap {
    text-align: center;
}

.tag{
    display:inline-block;
    margin:14px auto 22px;
    padding:6px 12px;
    border:1px solid var(--border);
    border-radius:999px;
    color:var(--muted);
    font-size:14px;
}

/* ---------- TEXT ---------- */

p{
    color:var(--muted);
    line-height:1.6;
    font-size:16px;
    max-width:760px;
    margin:0 auto 10px;
    text-align:center;
}


h2{
    margin-top: 22px;
    margin-bottom: 10px;
    font-size:22px;
    text-align:center;
}

h2 + p{
    margin-top: 6px;
}

/* ---------- HINWEIS / BOXEN ---------- */

.note,
.disclaimer{
    margin-top:24px;
    padding:14px;
    border-radius:12px;
    border:1px dashed var(--border);
    color:var(--muted);
    font-size:14px;
    text-align:center;
}

/* Call to Action */
.archive-call{
    margin: 32px auto 28px;
    padding: 24px;
    max-width:720px;
    background:rgba(122,162,255,.05);
    border:1px solid var(--border);
    border-radius:16px;
    font-size:15px;
    text-align:center;
}

/* ---------- BUTTONS ---------- */

.grid,
.discord-box{
    margin-top: 16px;
    margin-bottom: 16px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.grid .center{
    grid-column:2;
}

@media (max-width:860px){
    h1{ font-size: 36px; }
    .grid{ grid-template-columns:repeat(2,1fr); }
    .grid .center{ grid-column:auto; }
}

@media (max-width: 520px){
    h1{ font-size: 28px; }
    .h1-sub{ font-size: 0.8em; }
    .grid{ grid-template-columns:1fr; }
    .grid .center{ grid-column:auto; }
}

.btn{
    display:inline-block;
    padding:10px 20px;
    border-radius:8px;
    border:1px solid var(--border);
    background:var(--card);
    color:var(--text);
    text-decoration:none;
    text-align:center;
    transition:.15s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn:hover{
    border-color:var(--accent);
    transform:translateY(-1px);
    background: rgba(255,255,255,0.05);
}

/* Timeline Button Highlight */
.btn-timeline {
    border-color: var(--accent);
    background: rgba(255, 165, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-timeline:hover {
    background: rgba(255, 165, 0, 0.2) !important;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.btn-timeline::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: btn-shimmer 4s infinite;
    pointer-events: none;
}

@keyframes btn-shimmer {
    0% { transform: translateX(-150%) rotate(45deg); }
    100% { transform: translateX(150%) rotate(45deg); }
}

.btn-timeline small {
    color: var(--text);
    opacity: 0.9;
}

.btn.small {
    padding: 5px 10px;
    font-size: 12px;
}

a.btn{
    display:block;
    padding:16px;
    border-radius:14px;
}

/* ---------- BANNER ---------- */
.footer-banner-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin:20px 0;
}

.footer-banner{
    max-width:420px;
    width:100%;
    height:auto;
    image-rendering: pixelated;
    opacity:.95;
}

.footer-banner-note{
    margin-top:8px;
    font-size:12px;
    color:var(--muted);
    opacity:.85;
    text-align:center;
    max-width: 600px;
}

/* ---------- FOOTER ---------- */
.footer{
    margin-top:40px;
    font-size:13px;
    color:var(--muted);
    text-align: center;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:32px;
    padding-top:16px;
    border-top:1px solid var(--border);
    flex-wrap:nowrap;
    width: 100%;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-copy, .footer-links {
        text-align: center;
        width: 100%;
    }
}

.footer-copy{
    text-align:left;
}

.footer-links{
    text-align:right;
}

/* ---------- COUNTER ---------- */
.footer-counter-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    margin-top:24px;
}

.retro-counter-title{
    color:var(--muted);
    font-size:14px;
    line-height:1.25;
    margin-bottom:6px;
    text-align:center;
}

.retro-counter-title .retro-date{
    color:var(--text);
    font-weight:700;
}

.retro-digits{
    display:inline-flex;
    align-items:center;
    gap:4px;
    user-select:none;
}

.retro-digits .digit{
    display:inline-flex;
    width:28px;
    height:36px;
    align-items:center;
    justify-content:center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size:22px;
    font-weight:900;
    color:#ffffff;
    background:linear-gradient(180deg, rgba(0,0,0,.70), rgba(255,255,255,.10));
    border:1px solid rgba(255,255,255,.20);
    border-radius:6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 20px rgba(0,0,0,.35);
}

.retro-digits .sep{
    display:inline-block;
    margin:0 2px;
    color:rgba(232,236,255,.85);
    font-weight:900;
    font-size:18px;
    transform: translateY(2px);
}

.counter-snapshot-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    opacity: 0.8;
    font-style: italic;
}

.counter-snapshot-note strong {
    color: var(--text);
    font-weight: 700;
    font-style: normal;
}

.footer a{
    color:var(--muted);
    text-decoration:none;
    white-space:nowrap;
}

.footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ---------- OLDSCHOOL SITEMAP ---------- */
.sitemap-oldschool {
    margin: 50px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(20, 30, 60, 0.3));
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
}

.sitemap-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(122, 162, 255, 0.4);
}

.sitemap-oldschool pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 auto;
    padding: 0;
    white-space: pre;
    overflow-x: auto;
    text-align: left;
    display: inline-block;
    text-shadow: 0 0 5px rgba(170, 179, 214, 0.2);
}

.sitemap-oldschool pre a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sitemap-oldschool pre a:hover {
    color: #bc8aff;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(188, 138, 255, 0.6);
}
