/* Helpiqo Feldherr – Logik in web/src/feldherr/ (npm run build:feldherr) */
:root { --fh-bg: #101826; --fh-box: #172234; --fh-rand: #2a3b55; --fh-text: #eef2ff; --fh-mut: #a9b6cc; --fh-gold: #f5c542; --fh-gruen: #22c55e; }
body.fh-body { background: radial-gradient(ellipse at top, #1d3a2c, var(--fh-bg) 60%); color: var(--fh-text); min-height: 100vh; }
.fh-body .site-header { background: #0e1520; border-color: #22324a; }
.fh-body .site-header a, .fh-body .logo { color: var(--fh-text); }
.fh-body .site-footer { background: transparent; color: var(--fh-mut); border-color: #22324a; }
.fh-body .site-footer a { color: var(--fh-mut); }
.fh-main { max-width: 820px; margin: 0 auto; padding: 16px 16px 40px; }
.fh-menu { display: flex; flex-direction: column; gap: 16px; }
.fh-menu a { color: #bbf7d0; }
.fh-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 22px 22px; text-align: center; background: linear-gradient(160deg, #3f6b3a 0%, #8a7a45 48%, #8c4a3e 100%); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.fh-hero h1 { margin: 6px 0 8px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: .5px; text-shadow: 0 3px 0 rgba(0,0,0,.25); position: relative; }
.fh-hero p { max-width: 560px; margin: 0 auto 14px; color: #fff8e6; position: relative; }
.fh-hero-karte { position: absolute; inset: 0; opacity: .5; }
.fh-hero-karte i { position: absolute; display: block; border-radius: 50%; border: 3px solid; filter: blur(.4px); }
.fh-hero-karte i:nth-child(1) { width: 70%; height: 90%; left: -20%; top: 30%; border-color: #4ade80; box-shadow: 0 0 18px #4ade80; animation: fhPuls 4s ease-in-out infinite; }
.fh-hero-karte i:nth-child(2) { width: 60%; height: 80%; right: -15%; top: -35%; border-color: #facc15; box-shadow: 0 0 18px #facc15; animation: fhPuls 4s 1.3s ease-in-out infinite; }
.fh-hero-karte i:nth-child(3) { width: 50%; height: 60%; right: -25%; bottom: -30%; border-color: #f87171; box-shadow: 0 0 18px #f87171; animation: fhPuls 4s 2.6s ease-in-out infinite; }
@keyframes fhPuls { 50% { transform: scale(1.04); opacity: .7; } }
.fh-box { background: var(--fh-box); border: 1px solid var(--fh-rand); border-radius: 20px; padding: 16px 18px; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.fh-box h2 { margin: 0 0 6px; font-size: 1.2rem; }
.fh-small { font-size: .88rem; color: var(--fh-mut); margin: 4px 0 10px; }
.fh-how ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; }
.fh-how li { margin-bottom: 6px; }
.fh-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; position: relative; }
.fh-btn { border: 0; border-radius: 14px; padding: 11px 18px; font: inherit; font-weight: 800; background: #2a3b55; color: #fff; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.fh-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.fh-btn.gold { background: linear-gradient(180deg, #fcd34d, #f59e0b); color: #3b2300; }
.fh-lvls { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.fh-lvl { position: relative; text-align: left; border: 1px solid var(--fh-rand); background: #1d2b41; color: var(--fh-text); border-radius: 16px; padding: 12px 12px 10px 48px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 76px; }
.fh-lvl:hover:not(:disabled) { border-color: #4ade80; }
.fh-lvl .nr { position: absolute; left: 10px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #2f4566; display: grid; place-items: center; font-weight: 800; }
.fh-lvl.fertig .nr { background: var(--fh-gruen); color: #052e16; }
.fh-lvl small { color: var(--fh-mut); font-size: .8rem; }
.fh-lvl .st { color: var(--fh-gold); letter-spacing: 2px; }
.fh-lvl.zu { opacity: .5; cursor: default; }
.fh-opt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.fh-opt > span { min-width: 92px; font-weight: 700; font-size: .92rem; }
.fh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-chip { border: 1px solid var(--fh-rand); background: #1d2b41; color: var(--fh-text); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.fh-chip[aria-pressed="true"] { background: var(--fh-gruen); color: #052e16; border-color: var(--fh-gruen); }

/* Spiel im Vollbild */
body.fh-voll { overflow: hidden; }
body.fh-voll .site-header, body.fh-voll .site-footer, body.fh-voll .fun-related, body.fh-voll .rel-tools { display: none !important; }
.fh-spiel { position: fixed; inset: 0; z-index: 60; background: #1d5f8a; user-select: none; -webkit-user-select: none; }
#fhCv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; cursor: grab; }
.fh-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: linear-gradient(180deg, rgba(10,16,28,.82), rgba(10,16,28,0)); pointer-events: none; }
.fh-top > * { pointer-events: auto; }
.fh-res { display: flex; flex-direction: column; background: rgba(15,23,42,.75); border-radius: 12px; padding: 4px 10px; min-width: 84px; }
.fh-gold { color: var(--fh-gold); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fh-res small { color: #bbf7d0; font-size: .74rem; }
.fh-mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: center; font-weight: 800; font-size: .85rem; text-shadow: 0 1px 2px #000; }
.fh-mitte span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-anteil { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: rgba(0,0,0,.4); box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.fh-anteil i { display: block; height: 100%; transition: width .5s; }
.fh-ctl { display: flex; align-items: center; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fh-ctl span { background: rgba(15,23,42,.75); border-radius: 10px; padding: 6px 8px; font-size: .85rem; }
.fh-ctl button, .fh-mini { border: 0; border-radius: 10px; background: rgba(15,23,42,.8); color: #fff; font: inherit; font-weight: 800; min-width: 38px; height: 36px; cursor: pointer; }
.fh-tipp { position: absolute; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(92%, 520px); background: rgba(255,251,235,.95); color: #422006; border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 20px rgba(0,0,0,.3); pointer-events: none; }
.fh-toast { position: absolute; left: 50%; top: calc(120px + env(safe-area-inset-top)); transform: translate(-50%, -10px); opacity: 0; transition: opacity .25s, transform .25s; background: rgba(15,23,42,.92); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; pointer-events: none; max-width: 92%; text-align: center; }
.fh-toast.zeig { opacity: 1; transform: translate(-50%, 0); }
.fh-toast.gut { background: rgba(21,128,61,.95); }
.fh-toast.schlecht { background: rgba(185,28,28,.95); }
.fh-info { position: absolute; left: 50%; bottom: calc(120px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(21,128,61,.92); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; pointer-events: none; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.fh-unten { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(10,16,28,.88), rgba(10,16,28,0)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.fh-unten > * { pointer-events: auto; }
.fh-werk { display: flex; gap: 6px; justify-content: center; }
.fh-mini { padding: 0 12px; font-size: .85rem; }
.fh-mini.an { background: var(--fh-gruen); color: #052e16; }
.fh-bauen { display: flex; gap: 8px; justify-content: center; }
.fh-bau { position: relative; flex: 1; max-width: 170px; border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.94); color: #111827; border-radius: 16px; padding: 6px 6px 7px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; overflow: hidden; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.fh-bau:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.fh-bau b { font-size: .85rem; }
.fh-bau em { font-style: normal; font-size: .78rem; font-weight: 700; color: #92400e; }
.fh-bau:disabled { opacity: .55; cursor: default; }
.fh-bau.laedt::after { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.25); animation: fhLaed 1s linear infinite; }
@keyframes fhLaed { 50% { opacity: .4; } }
.fh-bau .ico { width: 30px; height: 22px; background: center / contain no-repeat; }
.fh-bau .ico.inf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -6 14 10'%3E%3Cpath d='M-5 .5A5 3.6 0 0 1 5 .5Z' fill='%2315803d'/%3E%3Crect x='-6' y='.3' width='12' height='1.4' fill='%2315803d'/%3E%3C/svg%3E"); }
.fh-bau .ico.pz { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -5 15 10'%3E%3Crect x='-5.5' y='-.5' width='11' height='4' rx='1.5' fill='%2315803d'/%3E%3Crect x='-2.6' y='-3.5' width='5' height='3.4' rx='1.2' fill='%2315803d'/%3E%3Crect x='2' y='-2.5' width='5' height='1.3' fill='%2315803d'/%3E%3C/svg%3E"); }
.fh-bau .ico.art { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 14 11'%3E%3Ccircle cx='-1.5' cy='2.3' r='2.4' fill='%2315803d'/%3E%3Crect x='-2' y='-1.2' width='9' height='2.4' fill='%2315803d' transform='rotate(-26)'/%3E%3C/svg%3E"); }
.fh-ende { position: absolute; inset: 0; background: rgba(5,10,20,.6); display: grid; place-items: center; padding: 16px; }
.fh-pop { background: var(--fh-box); border: 1px solid var(--fh-rand); border-radius: 22px; padding: 20px; width: min(420px, 100%); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.fh-pop h2 { margin: 0 0 6px; font-size: 1.8rem; }
.fh-sterne { color: var(--fh-gold); font-size: 2rem; letter-spacing: 6px; }
.fh-zahlen { display: grid; gap: 4px; margin: 12px 0; text-align: left; }
.fh-zahlen div { display: flex; justify-content: space-between; background: #1d2b41; border-radius: 10px; padding: 6px 10px; }
@media (max-width: 520px) {
  .fh-mitte span { font-size: .75rem; }
  .fh-ctl span { display: none; }
  .fh-bau b { font-size: .78rem; }
  .fh-opt > span { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fh-hero-karte i, .fh-bau.laedt::after { animation: none; } }
.fh-spiel [hidden], .fh-menu [hidden] { display: none !important; }
.fh-btn.big { font-size: 1.25rem; padding: 14px 36px; border-radius: 18px; animation: fhGross 1.6s ease-in-out infinite; }
@keyframes fhGross { 50% { transform: scale(1.05); } }
.fh-serie { font-weight: 900; color: #fb923c; margin: 4px 0; }
.fh-serie:empty { display: none; }
.fh-bau .stark { font-style: normal; font-size: .62rem; color: #475569; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .fh-btn.big { animation: none; } }
