/* Hyrule-Guide — dunkles Waldgrün, Triforce-Gold */
:root {
  --bg: #0a1411; --bg2: #0e1b17; --s1: #13231e; --s2: #1a2f28; --s3: #23403a;
  --line: rgba(226, 236, 220, .09); --line2: rgba(226, 236, 220, .16);
  --tx: #eef2e6; --mut: #9fb3a6; --mut2: #6f8679;
  --gold: #e3b94b; --gold2: #f7dd84; --golddim: rgba(227, 185, 75, .14);
  --kind: #7ccf72; --erw: #67a8ec; --nacht: #a39cf7; --neu: #f08a5d; --geaendert: #e3b94b; --unsicher: #8fa39a;
  --ok: #6fd08c; --zu: #6f8679;
  --r: 14px; --r2: 20px;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cinzel', Georgia, serif;
  --nav-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.5 var(--font);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(227, 185, 75, .07), transparent 60%),
                    radial-gradient(900px 600px at -10% 10%, rgba(80, 160, 110, .08), transparent 60%);
  background-attachment: fixed; min-height: 100vh; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--gold2); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; margin: 0; }
.hidden { display: none !important; }

/* ── Grundgerüst ─────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 35, 30, .9), rgba(10, 20, 17, .9)); display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--serif); font-size: 17px; line-height: 1.1; }
.brand small { display: block; color: var(--mut); font-size: 11.5px; letter-spacing: .04em; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--mut); font-weight: 650;
}
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: var(--s1); color: var(--tx); }
.nav a.on { background: var(--golddim); color: var(--gold2); }
.side .mini { margin-top: auto; padding: 12px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.side .mini .pct { font-family: var(--serif); font-size: 26px; color: var(--gold2); }
.sync { font-size: 11.5px; color: var(--mut2); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.sync.off i { background: var(--neu); }

main { min-width: 0; padding: 0 28px 60px; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 0;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.top h1 { font-size: 22px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s1); border: 1px solid var(--line); flex: none; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; height: 40px; width: min(320px, 40vw);
}
.search input { all: unset; flex: 1; min-width: 0; font-size: 14px; }
.search svg { width: 17px; height: 17px; color: var(--mut); flex: none; }
.view { max-width: 1080px; margin: 0 auto; }

.bnav { display: none; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: 0 16px calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); }
  .top { padding: 12px 0 10px; }
  .top h1 { font-size: 19px; }
  .search { width: 40px; padding: 0; justify-content: center; }
  .search input { display: none; }
  .search.open { position: absolute; inset: 10px 0 auto 0; width: auto; padding: 0 14px; justify-content: flex-start; z-index: 5; }
  .search.open input { display: block; }
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(12, 22, 19, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mut); font-size: 10.5px; font-weight: 700; }
  .bnav a svg { width: 22px; height: 22px; }
  .bnav a.on { color: var(--gold2); }
}

/* ── Bausteine ───────────────────────────────────────────────────────────── */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); }
.pad { padding: 18px; }
.h2 { font-family: var(--serif); font-size: 18px; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.h2 small { font-family: var(--font); font-size: 13px; color: var(--mut); font-weight: 600; letter-spacing: 0; }
.muted { color: var(--mut); }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold2)); transition: width .4s; }
.bar.voll > i { background: linear-gradient(90deg, #4fbf7f, #8fe3a6); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px;
  background: var(--s1); border: 1px solid var(--line); color: var(--mut); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.chip img { width: 20px; height: 20px; }
.chip.on { background: var(--golddim); border-color: rgba(227, 185, 75, .45); color: var(--gold2); }
.chip em { font-style: normal; font-weight: 600; opacity: .75; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; }
.b-K { background: rgba(124, 207, 114, .15); color: var(--kind); }
.b-E { background: rgba(103, 168, 236, .15); color: var(--erw); }
.b-B { background: rgba(255, 255, 255, .07); color: var(--mut); }
.b-nacht { background: rgba(163, 156, 247, .16); color: var(--nacht); }
.b-neu { background: rgba(240, 138, 93, .17); color: var(--neu); }
.b-geändert { background: rgba(227, 185, 75, .16); color: var(--geaendert); }
.b-unsicher { background: rgba(255, 255, 255, .06); color: var(--unsicher); font-weight: 700; }
.b-abw { background: rgba(240, 93, 120, .16); color: #f2849a; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px;
  background: var(--gold); color: #1b1606; font-weight: 800;
}
.btn.ghost { background: var(--s2); color: var(--tx); border: 1px solid var(--line); }
.btn.klein { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

/* ── Start ───────────────────────────────────────────────────────────────── */
.hero { position: relative; border-radius: 24px; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 17, .05) 20%, rgba(10, 20, 17, .92) 85%); }
.hero .in { position: relative; z-index: 1; padding: 22px; display: flex; align-items: flex-end; gap: 22px; width: 100%; flex-wrap: wrap; }
.hero h2 { font-size: 30px; line-height: 1.05; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero p { margin: 6px 0 0; color: #d6e1d4; font-weight: 600; }
.ring { position: relative; width: 116px; height: 116px; flex: none; border-radius: 50%; background: rgba(10, 20, 17, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .z { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .z b { font-family: var(--serif); font-size: 28px; color: var(--gold2); line-height: 1; }
.ring .z small { display: block; font-size: 11px; color: var(--mut); margin-top: 3px; }
.herzen { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 12px; max-width: 280px; }
.herzen img { width: 22px; height: 22px; }
.herzen img.leer { filter: grayscale(1) brightness(.35); }
.herzen span { font-size: 12px; color: var(--mut); margin-left: 6px; align-self: center; font-weight: 700; }

.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } .hero h2 { font-size: 25px; } .ring { width: 96px; height: 96px; } .ring .z b { font-size: 23px; } }
.weiter .kopf { display: flex; gap: 14px; align-items: center; }
.weiter .kopf img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.weiter .kopf h3 { font-size: 17px; }
.weiter .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.weiter ul { margin: 12px 0 0; padding-left: 18px; color: #d6e1d4; }
.weiter ul li { margin: 3px 0; }
.alarm { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: rgba(227, 185, 75, .1); border: 1px solid rgba(227, 185, 75, .35); margin-top: 10px; }
.alarm img { width: 34px; height: 34px; flex: none; }
.alarm b { color: var(--gold2); }
.kats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kat { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); color: var(--tx); }
.kat:hover { border-color: var(--line2); }
.kat img { width: 38px; height: 38px; flex: none; }
.kat .t { flex: 1; min-width: 0; }
.kat .t b { display: block; font-size: 13.5px; }
.kat .t small { color: var(--mut); font-weight: 700; font-size: 12px; }
.kat .bar { margin-top: 6px; }
.kat.bonus { opacity: .8; border-style: dashed; }
.statzeile { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 140px; padding: 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); color: var(--tx); }
.stat b { font-family: var(--serif); font-size: 24px; color: var(--gold2); display: block; }
.stat small { color: var(--mut); font-weight: 700; }

/* ── Liste / Zeilen ──────────────────────────────────────────────────────── */
.liste { display: flex; flex-direction: column; gap: 8px; }
.gruppe-titel { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin: 18px 4px 4px; display: flex; gap: 8px; align-items: center; }
.gruppe-titel em { font-style: normal; color: var(--mut2); }
.row { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); transition: background .2s, opacity .2s; }
.row .zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.row .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .035); padding: 3px; }
.row .main { flex: 1; min-width: 0; }
.row .titel { font-weight: 750; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row .sub { color: var(--mut); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .reqs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; align-items: center; }
.req { position: relative; width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; }
.req img { width: 20px; height: 20px; }
.req.nein { outline: 1.5px solid rgba(240, 93, 120, .55); }
.req.nein img { filter: grayscale(1) opacity(.55); }
.req.ja { outline: 1.5px solid rgba(111, 208, 140, .45); }
.req b { position: absolute; right: -4px; bottom: -5px; font-size: 9.5px; background: var(--bg); padding: 0 3px; border-radius: 4px; color: var(--gold2); }
.req-oder { font-size: 10.5px; color: var(--mut2); font-weight: 800; }
.check {
  width: 34px; height: 34px; flex: none; border-radius: 10px; border: 2px solid var(--line2); display: grid; place-items: center; transition: all .15s;
}
.check svg { width: 18px; height: 18px; opacity: 0; transform: scale(.6); transition: all .15s; color: #13200f; }
.row.done .check { background: var(--gold); border-color: var(--gold); }
.row.done .check svg { opacity: 1; transform: none; }
.row.done { background: rgba(19, 35, 30, .5); }
.row.done .ic, .row.done .main { opacity: .45; }
.row.done .titel { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.row .status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.row .status.erreichbar { background: var(--ok); box-shadow: 0 0 0 4px rgba(111, 208, 140, .14); }
.row .status.gesperrt { background: transparent; border: 1.5px solid var(--zu); }
.row.done .status { visibility: hidden; }
.row .detail { display: none; padding: 0 14px 14px 66px; color: #d6e1d4; }
.row.offen .detail { display: block; }
.row .detail p { margin: 0 0 10px; }
.detail .brauch { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.detail .brauch span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 8px; background: var(--s2); font-size: 12.5px; font-weight: 700; }
.detail .brauch span img { width: 20px; height: 20px; }
.detail .brauch span.ja { color: var(--ok); }
.detail .brauch span.nein { color: #f2849a; }
.detail .links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.detail textarea {
  width: 100%; min-height: 64px; resize: vertical; background: var(--bg2); color: var(--tx); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; font-size: 14px;
}
.detail label.abw { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; color: var(--mut); cursor: pointer; }
.detail label.abw input { width: 18px; height: 18px; accent-color: #f2849a; }
@media (max-width: 600px) { .row .detail { padding-left: 14px; } .row .ic { width: 38px; height: 38px; } }
.leer-hinweis { text-align: center; color: var(--mut); padding: 40px 10px; }
.leer-hinweis img { width: 70px; margin: 0 auto 10px; opacity: .8; }

.filterleiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.seg { display: inline-flex; background: var(--s1); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg button { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 750; color: var(--mut); }
.seg button.on { background: var(--s3); color: var(--tx); }

/* ── Route ───────────────────────────────────────────────────────────────── */
.phase { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; }
.phase h2 { font-size: 20px; }
.phase .linie { flex: 1; height: 1px; background: var(--line2); }
.schritt { margin-bottom: 10px; overflow: hidden; }
.schritt .kopf { display: flex; gap: 14px; align-items: center; padding: 12px; cursor: pointer; }
.schritt .nr { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--s2); flex: none; }
.schritt.K .nr { color: var(--kind); } .schritt.E .nr { color: var(--erw); }
.schritt.fertig .nr { background: var(--gold); color: #1b1606; }
.schritt .bild { width: 74px; height: 50px; border-radius: 10px; object-fit: cover; flex: none; }
.schritt .t { flex: 1; min-width: 0; }
.schritt .t h3 { font-size: 15.5px; font-family: var(--font); font-weight: 800; letter-spacing: 0; }
.schritt .t small { color: var(--mut); font-weight: 700; font-size: 12.5px; }
.schritt .t .bar { margin-top: 6px; max-width: 260px; }
.schritt .pfeil { color: var(--mut); transition: transform .2s; }
.schritt.auf .pfeil { transform: rotate(180deg); }
.schritt .inhalt { display: none; padding: 0 14px 14px; }
.schritt.auf .inhalt { display: block; }
.schritt .inhalt ul.tipps { margin: 2px 0 14px; padding: 12px 14px 12px 32px; background: var(--bg2); border-radius: 12px; color: #d6e1d4; }
.schritt .inhalt ul.tipps li { margin: 4px 0; }
.schritt.aktuell { border-color: rgba(227, 185, 75, .5); box-shadow: 0 0 0 3px rgba(227, 185, 75, .08); }
@media (max-width: 600px) { .schritt .bild { display: none; } }

/* ── Gebiete ─────────────────────────────────────────────────────────────── */
.gebiete { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gk { position: relative; border-radius: var(--r2); overflow: hidden; min-height: 150px; display: flex; align-items: flex-end; color: var(--tx); border: 1px solid var(--line); background: var(--s2); }
.gk > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gk:hover > img { transform: scale(1.04); }
.gk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(8, 16, 13, .94)); }
.gk .in { position: relative; z-index: 1; padding: 12px 14px; width: 100%; }
.gk h3 { font-size: 16px; }
.gk small { color: #c9d6cb; font-weight: 700; font-size: 12px; }
.gk .bar { margin-top: 7px; }
.gk .mini-zahl { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; gap: 5px; }
.gk .mini-zahl span { display: inline-flex; align-items: center; gap: 3px; background: rgba(8, 16, 13, .75); padding: 2px 7px 2px 3px; border-radius: 8px; font-size: 11.5px; font-weight: 800; }
.gk .mini-zahl img { width: 18px; height: 18px; }
.gk.dungeon h3::before { content: '◆ '; color: var(--gold); font-size: 12px; }
.gk.fertig .mini-zahl::before { content: '100 %'; background: var(--gold); color: #1b1606; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 800; }

.banner { position: relative; border-radius: 22px; overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; border: 1px solid var(--line); background: var(--s2); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(8, 16, 13, .95)); }
.banner .in { position: relative; z-index: 1; padding: 18px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.banner h2 { font-size: 26px; }
.banner p { margin: 2px 0 0; color: #c9d6cb; font-weight: 600; }
.kartenknopf { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; background: rgba(8, 16, 13, .7); border: 1px solid var(--line2); font-weight: 750; font-size: 13px; }
.kartenknopf img { width: 46px; height: 34px; object-fit: cover; border-radius: 7px; }
.kartenknopf em { font-style: normal; font-size: 10.5px; color: var(--mut); display: block; font-weight: 700; }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 7, .94); display: flex; flex-direction: column; }
.lightbox .lb-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.lightbox .lb-kopf b { flex: 1; }
.lightbox .lb-bild { flex: 1; overflow: auto; display: grid; place-items: center; padding: 10px; -webkit-overflow-scrolling: touch; }
.lightbox .lb-bild img { max-width: 100%; max-height: 100%; cursor: zoom-in; border-radius: 8px; }
.lightbox .lb-bild.zoom { place-items: start; }
.lightbox .lb-bild.zoom img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.lightbox .lb-fuss { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); color: var(--mut); font-size: 12.5px; text-align: center; }

/* ── Inventar ────────────────────────────────────────────────────────────── */
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  position: relative; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; transition: all .15s;
}
.slot img { width: 54%; height: 54%; object-fit: contain; filter: grayscale(1) brightness(.4); transition: all .2s; }
.slot span { font-size: 10.5px; font-weight: 750; color: var(--mut2); text-align: center; line-height: 1.15; }
.slot.hab { border-color: rgba(227, 185, 75, .55); background: radial-gradient(circle at 50% 40%, rgba(227, 185, 75, .18), rgba(227, 185, 75, .03)); }
.slot.hab img { filter: none; }
.slot.hab span { color: var(--tx); }
.slot:active { transform: scale(.95); }
.slot .neu { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--neu); }

/* ── Lieder ──────────────────────────────────────────────────────────────── */
/* Liederbuch im Pergament-Look des Remakes */
.lieder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 14px; }
.taste {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 50%; background: #f4ecd8; color: #2a1d12;
  font-weight: 900; font-size: 11.5px; vertical-align: 1px; margin: 0 1px;
}
.pergament {
  --tinte: #3a2a18; --tinte2: #6b5236;
  position: relative; color: var(--tinte); padding: 22px 26px 18px; border-radius: 4px;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(255, 250, 235, .55), transparent 70%),
    radial-gradient(60% 50% at 10% 90%, rgba(150, 110, 60, .18), transparent 70%),
    radial-gradient(60% 50% at 95% 10%, rgba(150, 110, 60, .14), transparent 70%),
    linear-gradient(180deg, #ecdcb4, #e3cf9f);
  box-shadow: 0 0 0 1px rgba(90, 60, 30, .35) inset, 0 0 0 6px #e8d6a8 inset, 0 0 0 7px rgba(90, 60, 30, .45) inset, 0 14px 34px rgba(0, 0, 0, .45);
}
.pergament .e { position: absolute; width: 30px; height: 30px; color: var(--tinte2); opacity: .8; }
.pergament .e svg { width: 100%; height: 100%; }
.pergament .lo { top: 9px; left: 9px; } .pergament .ro { top: 9px; right: 9px; transform: scaleX(-1); }
.pergament .lu { bottom: 9px; left: 9px; transform: scaleY(-1); } .pergament .ru { bottom: 9px; right: 9px; transform: scale(-1); }
.pergament h3 { text-align: center; font-family: var(--serif); font-size: 22px; color: var(--tinte); letter-spacing: .01em; }
.staff { width: 100%; height: auto; display: block; margin: 4px 0 2px; overflow: visible; }
.staff .linien line { stroke: var(--tinte2); stroke-width: 1.6; opacity: .75; }
.staff .hilf { stroke: var(--tinte2); stroke-width: 1.6; }
.staff .schluessel { font-family: 'Noto Music', 'Segoe UI Symbol', serif; font-size: 96px; fill: var(--tinte2); opacity: .85; }
.staff .note circle { fill: #2a1d12; }
.staff .note text { fill: #fff; font: 800 16px var(--font); text-anchor: middle; }
.staff .note { transition: transform .15s; }
.staff .note.spielt { transform: scale(1.3); }
.staff .note.spielt circle { fill: #8a5a1c; }
.pergament .wirkung { text-align: center; margin: 14px 0 10px; font-weight: 700; font-size: 14.5px; color: var(--tinte); }
.pergament .fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(90, 60, 30, .25); padding-top: 10px; }
.pergament .fuss .gelernt { font-weight: 800; color: #3d6b2a; }
.pergament .fuss .offen { font-size: 13px; color: var(--tinte2); font-weight: 650; flex: 1; min-width: 160px; }
.anhoeren { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: #2a1d12; color: #f4ecd8; font-weight: 800; font-size: 13px; }
.anhoeren:hover { background: #4a3420; }
.pergament .n64 { display: block; text-align: center; padding: 0 34px; font-size: 11px; color: var(--tinte2); opacity: .7; margin-top: 6px; }
.pergament textarea { width: 100%; min-height: 70px; margin-top: 4px; background: rgba(255, 250, 235, .55); color: var(--tinte); border: 1px solid rgba(90, 60, 30, .35); border-radius: 6px; padding: 10px; font: inherit; font-weight: 700; }
@media (max-width: 600px) { .pergament { padding: 18px 16px 14px; } .pergament h3 { font-size: 19px; } }

/* ── Remake ──────────────────────────────────────────────────────────────── */
.rm-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.rm { padding: 14px 16px; }
.rm b { display: block; margin-bottom: 4px; }
.rm p { margin: 0; color: #c9d6cb; font-size: 14px; }
.quellen a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ── Login / Laden ───────────────────────────────────────────────────────── */
.vollbild { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.vollbild > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: saturate(1.1); }
.vollbild::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(10, 20, 17, .35), rgba(10, 20, 17, .96) 70%); }
.vollbild .box { position: relative; z-index: 1; text-align: center; padding: 24px; width: min(380px, 100%); }
.triforce { width: 92px; height: 80px; margin: 0 auto 18px; filter: drop-shadow(0 0 24px rgba(247, 221, 132, .45)); }
.triforce path { fill: var(--gold2); }
.laden .triforce path { animation: tri 1.8s ease-in-out infinite; }
.laden .triforce path:nth-child(2) { animation-delay: .3s; } .laden .triforce path:nth-child(3) { animation-delay: .6s; }
@keyframes tri { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.vollbild h1 { font-size: 28px; }
.vollbild p { color: var(--mut); margin: 8px 0 22px; }
.vollbild input {
  width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(19, 35, 30, .85); color: var(--tx);
  padding: 0 16px; font: inherit; font-size: 16px; text-align: center; margin-bottom: 10px;
}
.vollbild .btn { width: 100%; height: 48px; }
.vollbild .fehler { color: #f2849a; min-height: 22px; margin-top: 10px; font-weight: 700; }
.funken i { position: absolute; z-index: 1; width: 4px; height: 4px; border-radius: 50%; background: var(--gold2); opacity: 0; animation: funke 6s linear infinite; }
@keyframes funke { 0% { transform: translateY(20px); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-160px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); z-index: 150;
  background: #f4ecd2; color: #1b1606; padding: 10px 16px; border-radius: 14px; font-weight: 800; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; transition: all .25s; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast img { width: 30px; height: 30px; }
.toast.zeig { opacity: 1; transform: translateX(-50%); }
@media (min-width: 861px) { .toast { bottom: 30px; } }

.einst { display: flex; flex-direction: column; gap: 10px; }
.einst label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.einst input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); }

/* Route: Zähler im Schrittkopf, Sprung-Chips, Aufleuchten beim Hinspringen */
.schritt .zaehler { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.schritt .zaehler span { display: inline-flex; align-items: center; gap: 3px; background: var(--s2); padding: 1px 7px 1px 2px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: var(--mut); }
.schritt .zaehler img { width: 18px; height: 18px; }
.chips.sprung { margin: -4px 0 4px; }
.gruppe-titel { scroll-margin-top: 80px; }
.row.blitz { animation: blitz 2s ease; }
@keyframes blitz { 0%, 40% { box-shadow: 0 0 0 3px var(--gold); background: rgba(227, 185, 75, .14); } 100% { box-shadow: none; } }
.detail .links .chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 13px; line-height: 1.3; flex: 0 1 auto; max-width: 100%; }
.schritt .tipp { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); color: #d6e1d4; font-size: 14px; border-left: 3px solid var(--gold); }
.schritt .inhalt { display: none; padding: 0 14px 14px; }
.schritt.auf .inhalt { display: flex; flex-direction: column; gap: 8px; }
.ort-trenner { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 10px 4px 0; }
.ort-trenner:first-child, .tipp + .ort-trenner { margin-top: 2px; }
.b-preis { background: rgba(111, 208, 140, .13); color: #9fe0b4; padding-left: 3px; }
.b-preis img { width: 15px; height: 15px; }
.row .detail p.genau { font-size: 15px; line-height: 1.55; }
