/* Avolié Games: Grundstil, Hauptmenü, Missionen. Keine Inline-Styles (CSP). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-700.woff") format("woff"); font-weight: 700; font-display: swap; }
:root { --chalk: #f2f3ef; --paper: #fff; --ink: #17202b; --slate: #556070; --brass: #8a6420; --brass-soft: #eadfc6; --brass-light: #e3c377; --line: #d6d9d0; --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--chalk); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: break-word; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.ghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); }
.gbrand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.gbrand span { font-weight: 700; font-size: 1.05rem; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; }
.gbtn-lang { padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 700; font-size: .85rem; }
.gbtn-lang:hover { background: var(--brass-soft); }

main.doc { flex: 1; padding: 0 clamp(16px, 4vw, 40px) 40px; }
.doc__body.spiel { max-width: 860px; margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8em 1.3em; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: 700 1rem/1.2 var(--font); cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s; }
.btn:hover:not(:disabled) { background: var(--brass-soft); }
.btn--primary { background: var(--ink); color: var(--chalk); }
.btn--primary:hover:not(:disabled) { background: var(--brass); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.gbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin: 20px 0 4px; }
.gbar .spiel__me { margin: 0; text-align: right; flex: 1; }
.gbar__back { padding: .55em 1em; }

/* Hauptmenü */
.gmenu { margin-top: 28px; }
.gmenu__main { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; }
.gmenu__btn { position: relative; padding: 18px 24px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s, background-color .15s; text-align: center; }
.gmenu__btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--brass-soft); }
.gmenu__btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.gmenu__btn--play { padding: 24px; font-size: 1.7rem; background: linear-gradient(180deg, #ffd96a, #f2a81c); }
.gmenu__btn--play:hover { background: linear-gradient(180deg, #ffe08a, #f5b333); }
.gmenu__sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 24px auto 0; max-width: 560px; }
.gmenu__sb { position: relative; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 600; font-size: .95rem; }
.gmenu__sb:hover { border-color: var(--ink); background: var(--brass-soft); }
.gmenu__dot { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: #d83a3a; color: #fff; font-size: .75rem; font-weight: 800; border: 2px solid var(--chalk); }
.gmenu .spiel__links { margin-top: 26px; }

.gstart { display: flex; justify-content: center; margin: 18px 0 8px; }
.gstart .gm__playbtn { font-size: 1.4rem; padding: 18px 44px 18px 36px; }

/* Missionen */
.gm-card { margin: 16px auto; padding: 20px clamp(16px, 4vw, 26px); max-width: 640px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 10px; }
.gm-card h3 { font-size: 1.25rem; }
.gm-card p { color: var(--slate); }
.gm-mis { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(70px, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.gm-mis small { color: var(--slate); white-space: nowrap; }
.gm-mis progress { width: 100%; height: 12px; accent-color: #e3a21a; }
.gm-mis .btn { padding: .5em .9em; font-size: .9rem; }
@media (max-width: 34em) { .gm-mis { grid-template-columns: 1fr auto; } .gm-mis progress { grid-column: 1 / -1; } }
.gm-credits { justify-items: center; text-align: center; }
.gm-credits__links { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.gm-credits__links a { color: var(--brass); }

.gdata { margin: 40px auto 0; max-width: 60ch; text-align: center; font-size: .85rem; color: var(--slate); }
.gfoot { padding: 18px clamp(16px, 4vw, 40px) 26px; text-align: center; font-size: .88rem; color: var(--slate); display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.gfoot a { color: var(--slate); }
.gsite h1 { text-align: center; font-size: clamp(2.4rem, 7vw, 3.8rem); margin-top: 8px; }
.gsite #g-lead { text-align: center; color: var(--slate); max-width: 46ch; margin: 12px auto 0; }
#g-how-h { margin-top: 28px; text-align: center; font-size: 1.2rem; }
#g-how { text-align: center; color: var(--slate); max-width: 60ch; margin: 8px auto 0; font-size: .95rem; }
.spiel h2 { text-align: center; }
@media (prefers-reduced-motion: reduce) { .gmenu__btn { transition: none; } }

/* Startbildschirm / Login */
.gsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ghero { text-align: center; padding-top: 6px; }
.ghero__cv { width: min(320px, 80%); height: auto; border-radius: 22px; border: 2px solid var(--ink); background: linear-gradient(180deg, #fdf4d6, #f7e3a1); box-shadow: 5px 5px 0 var(--ink); margin: 6px auto 4px; display: block; }
.ghero h1 { margin-top: 18px; }
.glogin { width: min(440px, 100%); margin: 26px auto 8px; padding: 22px clamp(18px, 5vw, 28px) 24px; background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.glogin[hidden] { display: none; }
.glogin__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 18px; background: var(--chalk); border: 1.5px solid var(--line); border-radius: 14px; }
.glogin__tab { padding: 11px 8px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; color: var(--slate); }
.glogin__tab.is-on { background: var(--ink); color: var(--chalk); }
.glogin__tab:not(.is-on):hover { background: var(--brass-soft); color: var(--ink); }
.glogin form { display: grid; gap: 6px; }
.glogin label { font-size: .88rem; font-weight: 700; margin-top: 8px; }
.glogin input { width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.glogin input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brass-light); }
.glogin__pw { position: relative; }
.glogin__pw input { padding-right: 84px; }
.glogin__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border: 0; border-radius: 8px; background: var(--chalk); font-weight: 700; font-size: .82rem; cursor: pointer; }
.glogin__eye:hover { background: var(--brass-soft); }
.glogin__hint { margin: 6px 0 4px; font-size: .86rem; color: var(--slate); min-height: 1.3em; }
.glogin__go { justify-content: center; width: 100%; margin-top: 8px; font-size: 1.25rem; padding: 15px 20px; animation: none !important; }
.glogin .spiel__note { min-height: 1.4em; margin-top: 12px; text-align: center; color: #b3261e; font-weight: 600; }
