/* ==== GeoQuest – Mobile Optimierung (v0.1.12a) ==== */
:root {
    --gqp-primary: #0a2a66;
    --gqp-primary-contrast: #fff;
    --gqp-bg: #0b0e14;
    --gqp-card: #141821;
    --gqp-border: #1f2533;
    --gqp-muted: #9aa3b2;
    --gqp-radius: 14px;
    --gqp-shadow: 0 6px 12px rgba(0,0,0,.35);
}

body {
    background: var(--gqp-bg);
    color: #e6eaf0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* --- Kartencontainer / App Root --- */
#gqp-app-root {
    padding: 8px;
    max-width: 740px;
    margin: 0 auto;
}

/* --- Infobox oben (Spielinfo + Buttons) --- */
.gqp-info {
    background: var(--gqp-card);
    border-radius: var(--gqp-radius);
    box-shadow: var(--gqp-shadow);
    padding: 10px 14px 14px;
    border: 1px solid var(--gqp-border);
    margin-bottom: 14px;
}

.gqp-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.gqp-info p {
    margin: 0;
    font-size: 14px;
    color: var(--gqp-muted);
    line-height: 1.4;
}

/* zwei Buttons nebeneinander */
.gqp-info-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.gqp-info-buttons .gqp-btn {
    flex: 1;
    min-height: 42px;
}

/* --- Buttons --- */
.gqp-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: none;
    background: var(--gqp-primary);
    color: var(--gqp-primary-contrast);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 14px;
    box-shadow: var(--gqp-shadow);
    transition: transform .08s ease, filter .12s ease;
}
.gqp-btn:active {
    transform: translateY(1px) scale(.98);
}
.gqp-btn--muted {
    background: transparent;
    border: 1px solid var(--gqp-border);
    color: #e6eaf0;
}

/* --- Station Cards --- */
.gqp-list {
    list-style: none;
    padding-left: 0;
}

/* ===== GeoQuest – kompaktere Stationen ===== */

/* Standard für alle Stationen */
.gqp-item {
    background: var(--gqp-card);
    border-radius: var(--gqp-radius, 14px);
    border: 1px solid var(--gqp-border);
    box-shadow: var(--gqp-shadow);
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: all 0.15s ease-in-out;
}

/* 🟩 Freie Stationen: kompakt, reduzierte Höhe */
.gqp-item.free {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-left: 4px solid #22c55e;
    box-shadow: none;
    background: color-mix(in oklab, var(--gqp-card) 80%, transparent);
}
.gqp-item.free strong {
    font-size: 15px;
    font-weight: 600;
}
.gqp-item.free small {
    display: none; /* "frei" Text ausblenden */
}
.gqp-item.free .gqp-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}
.gqp-item.free .gqp-btn {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: none;
}

/* 🟧 Belegte (eigene) Station: markant & größer */
.gqp-item.claimed {
    border-left: 4px solid #f59e0b;
    background: var(--gqp-card);
    padding: 14px 14px 12px;
}
.gqp-item.claimed strong {
    font-size: 16px;
    font-weight: 700;
}
.gqp-item.claimed small {
    display: block;
    color: var(--gqp-muted);
}
.gqp-item.claimed .gqp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

/* 🔴 Abgeschlossene Stationen: dezenter Stil */
.gqp-item.done {
    opacity: 0.65;
    border-left: 4px solid #ef4444;
}
.gqp-item.done strong {
    font-size: 14px;
    font-weight: 500;
}
.gqp-item.done .gqp-actions { display: none; }

/* ⚙️ Animation beim Claim */
.gqp-item.free:hover {
    transform: translateY(-1px);
    background: color-mix(in oklab, var(--gqp-card) 90%, white 5%);
}

.gqp-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}
.gqp-item small {
    color: var(--gqp-muted);
}

/* Buttons innerhalb Station */
.gqp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.gqp-overlay {
    position: fixed; inset: 0;
    display: none;
    justify-content: center; align-items: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    transition: opacity .3s ease;
}
.gqp-overlay.show { display: flex; opacity: 1; }

.gqp-overlay-inner {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gqp-overlay-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}
.gqp-overlay-close:hover { background: rgba(255,255,255,0.25); }

/* === QR-Overlay Fix für Smartphones === */
#gqp-overlay-content,
#gqp-overlay-content #qr-reader {
    width: 100%;
    height: 100%;
    min-height: 70vh;           /* nimmt ~70 % der Bildschirmhöhe */
    display: flex;
    justify-content: center;
    align-items: center;
}

#gqp-overlay-content #qr-reader video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
}


.gqp-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.gqp-card p strong {
    display: block;
    font-size: 17px;
    margin: 8px 0;
    line-height: 1.3;
}
.gqp-card .gqp-btn.gqp-choice {
    display: inline-block;
    margin: 6px;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 8px;
}


/* --- Responsive Fine-Tuning --- */
@media (min-width: 480px) {
    .gqp-info-buttons { justify-content: flex-start; }
    .gqp-actions { grid-template-columns: repeat(3, 1fr); }
}

/* --- Footer Hinweis --- */
.gqp-footer {
    text-align: center;
    font-size: 13px;
    color: var(--gqp-muted);
    margin-top: 20px;
}
