:root {
    --bg-dark: #0d0508;
    --bg-card: #1a0a12;
    --accent-red: #b00020;
    --gold: #d4af37;
    --text-light: #f0e6d2;

    /* Ergänzungen für schöneres UI */
    --link-bg: rgba(212, 175, 55, 0.10);
    --link-border: rgba(212, 175, 55, 0.35);
    --link-hover-bg: rgba(212, 175, 55, 0.18);
    --link-active-bg: rgba(176, 0, 32, 0.18);

    --shadow-soft: 0 10px 30px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 0 3px rgba(212, 175, 55, 0.20), 0 10px 26px rgba(0,0,0,0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-image: url('background.jpg');
    background-repeat: repeat;
    background-position: center top;
    background-size: 100% auto;
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

#app-logo {
    width: 480px;
    height: auto;
    aspect-ratio: 785 / 448; /* sorgt für die richtige Höhe */
    background-image: url('logo_small.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#app-logo-small {
    width: 240px;
    height: auto;
    aspect-ratio: 785 / 448; /* sorgt für die richtige Höhe */
    background-image: url('logo_small.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Headings */
h1, h2 {
    color: var(--gold);
    margin: 20px 0;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

/* Karten/Forms */
form {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(2px);
}

/* Inputs/Buttons */
input, button, select {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(20, 10, 14, 0.65);
    color: white;
    border-radius: 8px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 80ms ease;
}

input:focus, select:focus {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
    background: rgba(20, 10, 14, 0.75);
}

/* Primäre Buttons */
button {
    background: linear-gradient(180deg, rgba(176, 0, 32, 0.95), rgba(128, 0, 16, 0.95));
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.55);
    filter: saturate(1.05);
}

button:active {
    transform: translateY(0px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.40);
}

button:focus-visible {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22), 0 10px 24px rgba(0,0,0,0.45);
}

/* =========================
   LINKS (dein Hauptwunsch)
   ========================= */

/* Allgemeine Link-Optik: "Gold-Button-Link" */
a {
    color: var(--gold);
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
    margin: 2px 4px;
    border-radius: 999px;
    border: 1px solid var(--link-border);
    background: var(--link-bg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    transition:
        transform 120ms ease,
        background 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease;
    line-height: 1.1;
}

a:hover {
    background: var(--link-hover-bg);
    border-color: rgba(212, 175, 55, 0.60);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

a:active {
    transform: translateY(0px);
    background: var(--link-active-bg);
}

/* Sauberer Tastatur-Fokus */
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28), 0 10px 26px rgba(0,0,0,0.55);
}

/* Separator "•" in deinen HTML-Blöcken dezenter machen:
   Greift auf Text-Nodes nicht direkt, aber wir können die Umgebung beruhigen. */
p[style*="text-align:center"] {
    margin: 12px 0;
    color: rgba(240, 230, 210, 0.92);
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

/* Optional: Links in den zentrierten P-„Menüs“ minimal enger */
p[style*="text-align:center"] a {
    margin: 4px 6px;
}

/* Media / Game UI */
.media-display {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: block;
    border: 2px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.55);
}

.stage-text {
    text-align: center;
    font-size: 1.2em;
    margin: 15px 0;
    color: var(--gold);
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.balance-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.40);
    padding: 10px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.game-controls {
    text-align: center;
    margin: 20px 0;
}

.hidden { display: none; }

/* Optional: respektiert Nutzer, die Animationen reduzieren wollen */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

.site-footer{
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.site-footer__inner{
    max-width: 900px;            /* passt zu .container */
    margin: 0 auto;
    padding: 14px 16px;
    text-align: center;

    background: rgba(26, 10, 18, 0.65); /* var(--bg-card) mit Transparenz */
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(2px);

    color: rgba(240, 230, 210, 0.92);   /* var(--text-light) dezenter */
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    letter-spacing: 0.2px;
}

.site-footer__title{
    color: var(--gold);
    font-weight: 700;
}

.site-footer__sep{
    margin: 0 10px;
    color: rgba(240, 230, 210, 0.55);
}

@keyframes blinkGreen {
    from { color: #00ff88; }   /* Hellgrün */
    to   { color: #006633; }   /* Dunkelgrün */
}

@keyframes blinkRed {
    from { color: #ff5555; }   /* Hellrot */
    to   { color: #660000; }   /* Dunkelrot */
}

