/* hilfe.css - Einheitliches Design fuer Spiel-Anleitungen */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    padding: 0;
}

/* Header */
.hilfe-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 24px 20px;
    text-align: center;
}

.hilfe-header h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.hilfe-header .game-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.hilfe-header .meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    opacity: 0.8;
}

.hilfe-header .meta span {
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 12px;
}

/* Content container */
.hilfe-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Idea box */
.idea-box {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-left: 5px solid #6C63FF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.idea-box h2 {
    color: #6C63FF;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.idea-box p {
    font-size: 1rem;
    color: #333;
}

/* Steps */
.steps {
    counter-reset: step;
}

.step {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    counter-increment: step;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6C63FF, #8B5CF6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.05rem;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.95rem;
    color: #444;
}

.step-tip {
    margin-top: 8px;
    padding: 8px 12px;
    background: #FFF8E1;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #795548;
    border-left: 3px solid #FFC107;
}

.step-tip::before {
    content: '\uD83D\uDCA1 ';
}

.step-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Controls section */
.controls-box {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.controls-box h2 {
    color: #e94560;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.controls-box h3 {
    font-size: 0.9rem;
    color: #666;
    margin: 12px 0 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.controls-list li {
    background: #f0f2f5;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: 'Segoe UI Mono', 'Courier New', monospace;
}

.controls-list li strong {
    color: #6C63FF;
}

/* QR Code section */
.qr-section {
    text-align: center;
    padding: 20px;
    margin-bottom: 24px;
}

.qr-section p {
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #6C63FF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Game index (overview page) */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.game-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #6C63FF;
}

.game-card .card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.game-card .card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.game-card .card-meta {
    font-size: 0.75rem;
    color: #999;
}

.category-heading {
    font-size: 1.3rem;
    color: #6C63FF;
    margin: 30px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #6C63FF33;
}

/* Print */
@media print {
    body { background: white; }
    .hilfe-header { background: #333; -webkit-print-color-adjust: exact; }
    .back-link, .qr-section { display: none; }
    .step, .idea-box, .controls-box { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* Mobile */
@media (max-width: 600px) {
    .hilfe-content { padding: 12px; }
    .step { flex-direction: column; }
    .step-number { width: 36px; height: 36px; font-size: 1rem; }
}

/* ============================================================
   SPIELFELD-BILDER  (08.08.2026)
   Die Dateien screenshots/<id>.png lagen seit jeher hier, wurden
   aber von nichts geladen — der Renderer suchte ausschliesslich
   die Schrittbilder <id>-<nr>.png. Jetzt tragen die Karten und
   der Seitenkopf das Bild des laufenden Spiels.
   ============================================================ */
.game-card .card-shot {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f4f4f7;
}

.spielfeld-bild {
    margin: 0 0 24px;
    text-align: center;
}

.spielfeld-bild img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    background: #f4f4f7;
}

.spielfeld-bild figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #556677;
}
