/* wiki-skin.css — Spiel-Optik der Website (aus wiki.css herausgelöst 14.11.2026, projekt-standards 13).
   Lädt nach wiki.css (app/Wiki/Page.php) und geht dessen Grundaufbau vor. */

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════
   Spiel-Optik (10.11.2026, Jens: „wieder dein Standard-Design“): Das Wiki benutzt dieselben Bausteine wie das
   Spiel selbst — Nebel-Hintergrund, Fensterkopf in Nachtblau mit Goldkante, gemalte Knöpfe (frame-button) als
   Reiter, Kapseln (frame-capsule) für Überschriften und Preise, die Forschungsrahmen als Waren-Felder
   (Erz Stahl, Barren Gold, Bauteil Grün) und Zeilen in der Kartenfarbe des Spiels. Diese Regeln stehen zuletzt
   und gehen den älteren vor.
   ════════════════════════════════════════════════════════════════════════════════════════════════════════ */
:root { --row: rgba(70, 130, 230, 0.16); --row-line: rgba(150, 200, 255, 0.22); }   /* --navy, --navy-deep, --btn: css/theme.css */
body {
    background: linear-gradient(rgba(4, 8, 24, 0.25), rgba(4, 8, 24, 0.6)), url('/assets/sprites/nebula.webp') center / cover fixed,
        url('/assets/sprites/background.webp') center / cover fixed, #060b1e;
}
h1 { letter-spacing: 0.03em; text-shadow: 0 3px 0 #021038, 0 6px 14px rgba(0, 0, 0, 0.5); }

/* Kopf wie die obere Leiste im Spiel: Nachtblau, Goldkante unten */
.w-top { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); border-bottom: 2px solid rgba(255, 204, 85, 0.6); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); backdrop-filter: none; }
.w-brand img { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6)); }
.w-brand span { font-size: 1.3rem; text-shadow: 0 2px 0 #021038; }
.w-search { border-style: solid; border-color: transparent; border-width: 10px 18px; border-image: url('/assets/ui/frame-capsule.png') 48 80 fill / 10px 18px stretch; }
.w-search input { padding: 4px 6px; background: transparent; border: 0; border-radius: 0; box-shadow: none !important; }
.w-search input::placeholder { color: rgba(220, 235, 255, 0.6); }

/* Gold-Knöpfe wie die Kauf-Knöpfe im Spiel: dicker Rand, Lichtkante oben, Sockel unten */
.w-search button, .w-play__btn {
    font-family: 'Fredoka', sans-serif; font-weight: 600; color: #3a2000; background: linear-gradient(#ffe38a, #f5b733);
    border: 2px solid #7a4a00; border-radius: 12px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -4px 0 rgba(150, 80, 0, 0.35), 0 4px 0 #6b3f00, 0 8px 16px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.w-search button { padding: 4px 14px; margin-left: 4px; }
.w-play__btn:hover, .w-search button:hover { filter: brightness(1.08); }
.w-play__btn:active, .w-search button:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 1px 0 #6b3f00; }
.w-ghost, .w-lang {
    border-style: solid; border-color: transparent; border-width: 9px; border-radius: 12px; color: #fff;
    border-image: url('/assets/ui/frame-button.png') 50 fill / 9px stretch;
    background: linear-gradient(var(--btn), var(--btn)) padding-box, url('/assets/ui/frame-button.png') center / 100% 100% no-repeat border-box;
}
.w-ghost { padding: 4px 12px; }
.w-lang { padding: 2px 8px; font-weight: 600; }
.w-ghost:hover, .w-lang:hover { filter: brightness(1.18); color: #fff; text-decoration: none; }

/* Bereiche wie die Symbolleiste im Spiel: gemalte Knöpfe, Bild über dem Namen, der aktive leuchtet */
.w-nav { gap: 8px; padding: 10px 12px; background: linear-gradient(180deg, rgba(4, 23, 75, 0.92), rgba(10, 38, 112, 0.85)); border-bottom: 1px solid rgba(255, 204, 85, 0.35); }
.w-nav a {
    flex-direction: column; justify-content: center; gap: 2px; min-width: 112px; min-height: 66px; padding: 2px 8px;
    font: 600 0.82rem 'Fredoka', sans-serif; letter-spacing: 0.02em; color: #fff; text-shadow: 0 1px 2px #000;
    border-style: solid; border-color: transparent; border-width: 10px; border-radius: 14px;
    border-image: url('/assets/ui/frame-button.png') 50 fill / 10px stretch;
    background: linear-gradient(var(--btn), var(--btn)) padding-box, url('/assets/ui/frame-button.png') center / 100% 100% no-repeat border-box;
    transition: transform 0.12s, filter 0.12s;
}
.w-nav img { width: 32px; height: 32px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.w-nav a:hover { filter: brightness(1.18); transform: translateY(-2px); background: linear-gradient(var(--btn), var(--btn)) padding-box, url('/assets/ui/frame-button.png') center / 100% 100% no-repeat border-box; }
.w-nav a.on { color: var(--gold); box-shadow: none; filter: drop-shadow(0 0 8px rgba(57, 215, 255, 0.9)); }

/* Der Inhalt jeder Unterseite steckt in einem Spielfenster */
.w-main { max-width: 1140px; padding-top: 18px; }
.w-window {
    border-style: solid; border-color: transparent; border-width: 30px;
    border-image: url('/assets/ui/frame-window.png') 80 fill / 30px stretch;
    padding: 0 10px 14px; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6));
}
/* Fensterkopf: Titel der Seite auf Nachtblau mit Goldkante, wie „Planeten“ oben im Spielfenster */
.w-window > .w-hero:first-child, .w-window > .w-crumbs + .w-hero:not(.w-hero--big) {
    margin: -6px -10px 18px; padding: 14px 18px; border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--navy-deep), var(--navy) 60%); border-bottom: 2px solid rgba(255, 204, 85, 0.55);
}
.w-window .w-crumbs { margin: -4px 0 12px; }
.w-window h1::after { display: none; }
.w-window .w-lead { color: #c6d7ef; }

/* Zwischenüberschriften in einer Kapsel, die Zahl dahinter in Gold */
h2 {
    display: inline-flex; align-items: baseline; gap: 6px; margin: 28px 0 12px; padding: 0 8px; font-size: 1.15rem; color: #fff;
    border-style: solid; border-color: transparent; border-width: 10px 20px; border-image: url('/assets/ui/frame-capsule.png') 48 80 fill / 10px 20px stretch;
    text-shadow: 0 2px 0 #021038;
}
h2 small { color: var(--gold); font-weight: 600; margin-left: 2px; }
.w-news h2, .w-note-block h2 { display: block; border: 0; border-image: none; padding: 0; text-shadow: none; }

/* Zeilen und Karten in der Kartenfarbe des Spiels */
.w-steps li, .w-recipe, .w-rcard, .w-chip, .w-kind, .w-hits a, .w-flow span, .w-tip {
    background-color: var(--row); border: 1px solid var(--row-line); border-radius: 10px;
}
.w-tip { border: 1px solid var(--row-line); border-radius: 10px; }   /* ohne Farbstreifen links (Jens 10.11.2026) */
/* Glühbirne als Comic-Icon statt Farbe (assets/icons/ui-hint.png, 11.11.2026) */
.w-tip { position: relative; padding-left: 58px; min-height: 48px; }
.w-tip::before {
    content: ""; position: absolute; left: 12px; top: 50%; width: 36px; height: 36px; transform: translateY(-50%);
    background: url('/assets/icons/ui-hint.png') center / contain no-repeat;
}
.w-window .w-hero--big, .w-window .w-note-block {
    border: 1px solid var(--row-line); border-image: none; border-radius: 12px; background: var(--row); padding: 16px 18px;
}
.w-steps li::before {
    width: 32px; height: 32px; top: 12px; color: #3a2000; border: 2px solid #7a4a00;
    background: radial-gradient(circle at 35% 30%, #fff3b8, #ffcc55 45%, #e09a1c); box-shadow: 0 2px 0 #6b3f00;
}
.w-steps li { padding-left: 60px; }
.w-steps b { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem; }

/* Tabellen: Kopf in Nachtblau, Zeilen wie die Listen im Spiel */
.w-table { background: rgba(4, 23, 75, 0.55); border: 1px solid var(--row-line); border-radius: 10px; }
.w-table th { background: var(--navy-deep); color: var(--gold); font-family: 'Fredoka', sans-serif; letter-spacing: 0.04em; border-bottom: 2px solid rgba(255, 204, 85, 0.4); }
.w-table td { border-bottom: 1px solid var(--row-line); }
.w-table tbody tr:nth-child(even) { background: rgba(70, 130, 230, 0.08); }
.w-table tbody tr:hover { background: rgba(57, 215, 255, 0.14); }

/* Felder für Planeten und Waren: gemalte Rahmen aus dem Spiel. Erz = Stahl, Barren = Gold, Bauteil = Grün,
   Planet = blauer Knopf. Der Rahmen ist ein Hintergrundbild (die Füllfarbe gehört zum Bild). */
.w-grid { gap: 12px; }
.w-tile { border: 0; border-radius: 0; padding: 18px 10px 16px; background: url('/assets/ui/frame-research-open.png') center / 100% 100% no-repeat; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.w-tile--t1 { background-image: url('/assets/ui/frame-research-ready.png'); }
.w-tile--t2 { background-image: url('/assets/ui/frame-research-done.png'); }
.w-tile--planet { background-image: url('/assets/ui/frame-button.png'); padding-top: 20px; }
.w-tile:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.15) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); border-color: transparent; }
.w-tile b { font-family: 'Fredoka', sans-serif; font-weight: 600; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
.w-tile__price {
    display: inline-flex; padding: 0 4px; border-style: solid; border-color: transparent; border-width: 6px 12px;
    border-image: url('/assets/ui/frame-capsule.png') 48 80 fill / 6px 12px stretch;
}
.w-tile__no { top: 10px; left: 12px; color: var(--gold); font-weight: 700; text-shadow: 0 1px 2px #000; }
.w-tile__ores { color: #dbe8ff; }

/* Startseite: die Bereiche als große gemalte Knöpfe */
.w-card {
    border-style: solid; border-color: transparent; border-width: 14px; border-radius: 18px; padding: 6px 8px; overflow: visible;
    border-image: url('/assets/ui/frame-button.png') 50 fill / 14px stretch;
    background: linear-gradient(var(--btn), var(--btn)) padding-box, url('/assets/ui/frame-button.png') center / 100% 100% no-repeat border-box;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}
.w-card::before { display: none; }
.w-card:hover { transform: translateY(-3px); box-shadow: none; filter: brightness(1.15) drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 70%, transparent));
    background: linear-gradient(var(--btn), var(--btn)) padding-box, url('/assets/ui/frame-button.png') center / 100% 100% no-repeat border-box; }
.w-card b { color: #fff; text-shadow: 0 2px 0 #021038; }
.w-card small { color: #d5e4fb; }
.w-card__icon { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 68%); }
.w-news { border: 0; border-left: 0; border-style: solid; border-color: transparent; border-width: 26px; border-radius: 0; padding: 4px 10px 6px;
    border-image: url('/assets/ui/frame-window.png') 80 fill / 26px stretch; background: none; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55)); }

/* Ablauf: gemalte Knöpfe, goldene Pfeile */
.w-flow span { border: 0; border-radius: 14px; padding: 16px 10px; background: url('/assets/ui/frame-button.png') center / 100% 100% no-repeat; color: #fff; font-weight: 600; text-shadow: 0 1px 2px #000; }
.w-flow i { font-size: 2rem; text-shadow: 0 2px 0 #6b3f00; }

/* Fuß wie der Kopf */
.w-foot { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); border-top: 2px solid rgba(255, 204, 85, 0.5); color: #b9cbe6; }

@media (max-width: 640px) {
    .w-window { border-width: 18px; border-image-width: 18px; padding: 0 2px 8px; }
    .w-window > .w-hero:first-child, .w-window > .w-crumbs + .w-hero:not(.w-hero--big) { margin: -2px -2px 14px; padding: 12px; }
    .w-nav a { min-width: 92px; min-height: 60px; font-size: 0.76rem; }
    .w-nav img { width: 28px; height: 28px; }
    .w-brand span { font-size: 1.05rem; }
    .w-brand img { width: 38px; height: 38px; }
    h2 { font-size: 1.05rem; }
    .w-window > .w-hero:first-child > img, .w-window > .w-hero:first-child > svg { width: 48px; height: 48px; align-self: flex-start; }
    .w-window h1 { font-size: 1.5rem; }
    .w-window .w-lead { font-size: 0.95rem; }
}
