/* Hofglück – Gestaltung: warm, freundlich-realistisch (Kapitel 20.4). Mobile first. */
:root {
  --bg: #eef1e8; --bg-grad: #e6ebdf; --surface: #fbfcf8; --surface2: #f2f5ec; --surface3: #e8eddf;
  --ink: #111a14; --muted: #3e4b42; --faint: #5c695f; --line: #d6ded0; --line2: #c5cfbe;
  --green: #2e5b39; --green2: #3c7449; --green-ink: #f3f7f0; --green-soft: #dcebd9;
  --hay: #c18f22; --hay-strong: #a77713; --hay-soft: #f6ebcf; --wood: #7a4e2d;
  --slate: #26303a; --slate2: #33404c; --slate-ink: #eef2f6;
  --good: #2c7a44; --warn: #a96500; --bad: #b23a2e; --info: #2f5f8a;
  --good-soft: #dcefe1; --warn-soft: #f8e8cc; --bad-soft: #f6dcd8; --info-soft: #dbe7f2;
  --portrait-bg: #e9efe3; --portrait-bg2: #dfe8d6;
  --shadow: 0 1px 2px rgba(30, 45, 30, .06), 0 4px 14px rgba(30, 45, 30, .06);
  --shadow-lg: 0 10px 40px rgba(20, 30, 20, .18);
  --f-display: "Bitter", Georgia, serif; --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 12px; --r-sm: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111713; --bg-grad: #141c16; --surface: #18211b; --surface2: #1e2922; --surface3: #253129;
  --ink: #f1f6ef; --muted: #c0cbc2; --faint: #9eaba1; --line: #2b3a30; --line2: #36473b;
  --green: #3f7a4d; --green2: #4b8c5a; --green-ink: #f3f7f0; --green-soft: #1f3526;
  --hay: #e0b04a; --hay-strong: #e9be5f; --hay-soft: #3a3016; --wood: #c99a6e;
  --slate: #1a222b; --slate2: #232e39; --slate-ink: #e8eef4;
  --good: #6cc287; --warn: #e5a54a; --bad: #ef7d6f; --info: #82b3df;
  --good-soft: #1c3324; --warn-soft: #392b14; --bad-soft: #3e201c; --info-soft: #1a2c3d;
  --portrait-bg: #223026; --portrait-bg2: #2a3a2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #111713; --bg-grad: #141c16; --surface: #18211b; --surface2: #1e2922; --surface3: #253129;
  --ink: #f1f6ef; --muted: #c0cbc2; --faint: #9eaba1; --line: #2b3a30; --line2: #36473b;
  --green: #3f7a4d; --green2: #4b8c5a; --green-ink: #f3f7f0; --green-soft: #1f3526;
  --hay: #e0b04a; --hay-strong: #e9be5f; --hay-soft: #3a3016; --wood: #c99a6e;
  --slate: #1a222b; --slate2: #232e39; --slate-ink: #e8eef4;
  --good: #6cc287; --warn: #e5a54a; --bad: #ef7d6f; --info: #82b3df;
  --good-soft: #1c3324; --warn-soft: #392b14; --bad-soft: #3e201c; --info-soft: #1a2c3d;
  --portrait-bg: #223026; --portrait-bg2: #2a3a2e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.22rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--green2); }
button { font: inherit; cursor: pointer; color: inherit; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .86rem; } .tiny { font-size: .8rem; }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.ic { flex: none; vertical-align: middle; }
:focus-visible { outline: 2.5px solid var(--hay); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Bausteine */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); padding: .55rem .95rem; border-radius: 9px; font-weight: 600; line-height: 1.1; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.btn.primary:hover { background: var(--green2); }
.btn.hay { background: var(--hay); border-color: var(--hay); color: #1e1504; }
.btn.hay:hover { background: var(--hay-strong); }
.btn.slate { background: var(--slate); border-color: var(--slate); color: var(--slate-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface2); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.btn.sm { padding: .34rem .62rem; font-size: .86rem; border-radius: 7px; }
.btn.lg { padding: .8rem 1.3rem; font-size: 1.05rem; border-radius: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: var(--surface3); color: var(--muted); }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill.hay { background: var(--hay-soft); color: var(--wood); } .pill.green { background: var(--green-soft); color: var(--green2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card.tint { background: var(--surface2); box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.grid.fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.grow { flex: 1; min-width: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

.meter { height: 8px; background: var(--surface3); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--good); transition: width .4s; }
.meter.thick { height: 12px; }
.stat-big { font-family: var(--f-mono); font-size: 1.55rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .stat-big { font-size: 1.4rem; }
.delta { font-size: .8rem; font-weight: 700; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
td.r, th.r { text-align: right; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--surface2); }
.tablebox { overflow-x: auto; margin: 0 -4px; }
.tablebox table:has(th:nth-child(5)) { min-width: 640px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--line2); border-radius: 9px; background: var(--surface); color: var(--ink); width: 100%; min-width: 0;
}
input[type=number] { font-family: var(--f-mono); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--green2) 60%, transparent); outline-offset: 0; border-color: var(--green2); }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--muted); }
label.chk { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
label.chk input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
label.chk.req { border-color: var(--line2); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch input:checked + i { background: var(--green2); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .45; cursor: not-allowed; }
.switch input:focus-visible + i { outline: 2px solid var(--info); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; background: var(--surface); }
.stepper button { border: 0; background: transparent; width: 34px; height: 34px; display: grid; place-items: center; }
.stepper button:hover { background: var(--surface2); }
.stepper input { border: 0; width: 72px; text-align: center; border-radius: 0; padding: .4rem .2rem; }
.stepper .unit { padding-right: 8px; color: var(--muted); font-size: .85rem; }

/* App-Rahmen Spiel */
.demo-banner { background: repeating-linear-gradient(-45deg, #f2d27f, #f2d27f 12px, #efc965 12px, #efc965 24px); color: #3b2a05; text-align: center; font-size: .78rem; font-weight: 700; padding: 4px 10px; letter-spacing: .02em; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--green); color: var(--green-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.topbar .inner { display: flex; align-items: center; gap: 14px; padding: 10px 16px; max-width: 1440px; margin: 0 auto; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--hay); color: #3b2a05; display: grid; place-items: center; }
.brand .word i { font-style: normal; color: var(--hay); }
.topbar .brand .word i { color: #f1d38c; }
.hofname { display: flex; flex-direction: column; min-width: 0; }
.hofname b { font-family: var(--f-display); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hofname small { opacity: .8; font-size: .78rem; white-space: nowrap; }
.lvlbar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-top: 3px; width: 140px; }
.lvlbar i { display: block; height: 100%; background: var(--hay); }
.chips { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.chip { display: flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 5px 10px; min-width: 0; }
.chip small { display: block; font-size: .68rem; opacity: .92; text-transform: uppercase; letter-spacing: .08em; line-height: 1; }
.chip b { font-family: var(--f-mono); font-weight: 500; font-size: .98rem; white-space: nowrap; line-height: 1.25; }
.chip.neg b { color: #ffb4a8; }
.chip button.plus { border: 0; background: var(--hay); color: #3b2a05; border-radius: 6px; width: 20px; height: 20px; display: grid; place-items: center; margin-left: 2px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1100px) { .chip.opt { display: none; } }
@media (max-width: 760px) {
  .topbar .inner { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .chips { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .chip { flex: 1; padding: 4px 8px; }
  .chip b { font-size: .88rem; }
  .lvlbar { width: 100px; }
  .top-actions { margin-left: auto; }
  .hide-m { display: none !important; }
}

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 64px); }
.side { position: sticky; top: 64px; align-self: start; padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 64px); overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; text-align: left; width: 100%; position: relative; }
.nav-item:hover { background: var(--surface2); color: var(--ink); }
.nav-item.on { background: var(--surface); color: var(--green2); box-shadow: var(--shadow); }
.nav-item .badge { margin-left: auto; background: var(--bad); color: #fff; font-size: .7rem; border-radius: 99px; padding: 1px 7px; font-weight: 700; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 10px; }
.main { padding: 20px 20px 90px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-h h1 { font-size: clamp(1.45rem, 3vw, 1.95rem); }
.page-h p { color: var(--muted); max-width: 70ch; margin-top: 4px; }
.bottomnav { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 14px 16px 96px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); }
  .bottomnav button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 6px 2px; border-radius: 10px; position: relative; }
  .bottomnav button.on { color: var(--green2); background: var(--green-soft); }
  .bottomnav .dot { position: absolute; top: 4px; right: 22%; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
}

/* Hofansicht */
.scene { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface2); box-shadow: var(--shadow); }
.scene .farm { display: block; width: 100%; height: auto; }
.scene .overlay { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; flex-wrap: wrap; }
.scene .tag { pointer-events: auto; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: .84rem; font-weight: 600; display: flex; gap: 6px; align-items: center; box-shadow: var(--shadow); }
.farm .hit { cursor: pointer; transition: filter .15s; }
.farm .hit:hover, .farm .hit:focus { filter: brightness(1.08) drop-shadow(0 0 3px rgba(255, 230, 150, .9)); outline: none; }
.farm .tail { animation: swish 2.8s ease-in-out infinite; }
@keyframes swish { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(14deg); } 60% { transform: rotate(-4deg); } }
.farm .graze .head { transform: rotate(52deg); animation: nod 3.4s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: rotate(50deg); } 45% { transform: rotate(57deg); } 60% { transform: rotate(53deg); } }
.farm .stand .head { animation: look 9s ease-in-out infinite; }
@keyframes look { 0%, 70%, 100% { transform: rotate(0); } 78%, 90% { transform: rotate(-7deg); } }
.farm .walker { animation: wander 12s linear infinite; }
@keyframes wander { 0% { transform: translate(0, 0); } 50% { transform: translate(var(--dx), var(--dy)); } 100% { transform: translate(0, 0); } }
.farm .turn { animation: turn 12s step-end infinite; }
@keyframes turn { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.farm .walker .leg-a { animation: step .9s ease-in-out infinite; }
.farm .walker .leg-b { animation: step .9s ease-in-out infinite reverse; }
@keyframes step { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
.farm .crown { animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.4deg); } }
.farm .cloud { animation: drift 100s linear infinite; }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(160px); } }
.farm .smoke { animation: smoke 6s ease-out infinite; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes smoke { 0% { opacity: .7; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(14px, -40px) scale(2.2); } }
.farm .bird { animation: fly 34s linear infinite; }
@keyframes fly { from { transform: translate(0, 0); } to { transform: translate(1400px, -40px); } }
.farm .wing { animation: flap .5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flap { 50% { transform: scaleY(-.6); } }
.farm .butterfly { animation: flutter 7s ease-in-out infinite; }
@keyframes flutter { 0%, 100% { transform: translate(0, 0) scaleX(1); } 25% { transform: translate(14px, -8px) scaleX(.3); } 50% { transform: translate(24px, 2px) scaleX(1); } 75% { transform: translate(8px, -6px) scaleX(.3); } }
.farm .leaf { animation: leaf 10s linear infinite; }
@keyframes leaf { from { transform: translate(-20px, -60px) rotate(0); } to { transform: translate(60px, 140px) rotate(540deg); } }
.farm .spin { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.farm .blink { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.farm .flake { animation: fall 8s linear infinite; }
@keyframes fall { from { transform: translateY(-40px); } to { transform: translateY(120px); } }
@media (prefers-reduced-motion: reduce) { .farm * { animation: none !important; } }

/* Pferde- und Boxkarten */
.horse-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.horse-card .portrait { border-radius: 14px; }
.horse-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attr { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; gap: 8px; align-items: center; font-size: .84rem; }
.attr .num { text-align: right; font-size: .8rem; }
.boxplan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.boxcell { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); display: flex; gap: 10px; align-items: center; min-height: 72px; text-align: left; }
.boxcell.free { border-style: dashed; background: transparent; color: var(--muted); justify-content: center; }
.boxcell.own { border-left: 4px solid var(--green2); }
.boxcell.pension { border-left: 4px solid var(--hay); }
.boxcell .portrait { border-radius: 10px; flex: none; }
.boxcell b { display: block; font-family: var(--f-display); }

/* Ereigniskarte und Kontoauszug */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 22, 17, .55); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .2s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 16px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2, 1.3, .5, 1); }
.modal.wide { width: min(880px, 100%); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-h { padding: 18px 20px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-b { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: var(--surface2); border-radius: 0 0 16px 16px; position: sticky; bottom: 0; }
.event-art { height: 120px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--hay-soft), var(--green-soft)); color: var(--wood); }
.event-opt { text-align: left; justify-content: flex-start; white-space: normal; padding: .8rem 1rem; }
.statement { font-family: var(--f-mono); font-size: .9rem; }
.statement .ln { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); animation: slidein .35s both; }
.statement .ln span:first-child { font-family: var(--f-body); }
.statement .sum { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; padding-top: 8px; }
@keyframes slidein { from { opacity: 0; transform: translateX(-8px); } }
.ampel { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; }
.ampel.good { background: var(--good-soft); } .ampel.warn { background: var(--warn-soft); } .ampel.bad { background: var(--bad-soft); }
.ampel .light { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5); flex: none; }

.toasts { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, calc(100% - 32px)); }
.toast { background: var(--slate); color: var(--slate-ink); padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow-lg); font-weight: 600; animation: pop .25s; display: flex; gap: 10px; align-items: center; pointer-events: auto; }
.toast.err { background: var(--bad); color: #fff; }
.toast.good { background: var(--green); color: var(--green-ink); }

.opa { display: flex; gap: 12px; align-items: flex-start; }
.opa .face { width: 46px; height: 46px; border-radius: 50%; background: var(--hay-soft); display: grid; place-items: center; flex: none; border: 2px solid var(--hay); }
.tip { padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: .9rem; border-left: 3px solid var(--green2); }
.tip.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; }

.tabs { display: flex; gap: 4px; background: var(--surface2); padding: 4px; border-radius: 11px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: .45rem .9rem; border-radius: 8px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.build-card { display: flex; flex-direction: column; gap: 10px; }
.build-card .art { height: 92px; border-radius: 10px; background: linear-gradient(160deg, var(--green-soft), var(--surface2)); display: grid; place-items: center; color: var(--green2); position: relative; overflow: hidden; }
.build-card.locked { opacity: .8; }
.progress-ring { --p: 0; width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--hay) calc(var(--p) * 1%), var(--surface3) 0); display: grid; place-items: center; flex: none; }
.progress-ring::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); grid-area: 1 / 1; }
.progress-ring span { grid-area: 1 / 1; font-size: .7rem; font-weight: 700; font-family: var(--f-mono); }

.product { display: flex; flex-direction: column; gap: 10px; position: relative; }
.product.featured { border: 2px solid var(--hay); }
.product .ribbon { position: absolute; top: 12px; right: -1px; background: var(--hay); color: #3b2a05; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 6px 0 0 6px; }
.product .price { font-family: var(--f-mono); font-size: 1.5rem; }
.shoe-art { height: 70px; display: grid; place-items: center; color: var(--hay); background: var(--hay-soft); border-radius: 10px; }

/* Start / Anmeldung */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 36px 20px 20px; width: 100%; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.hero .scene { transform: rotate(-.4deg); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 22px; } }
.features { max-width: 1240px; margin: 0 auto; padding: 8px 20px 30px; width: 100%; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .fi { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green2); display: grid; place-items: center; flex: none; }
.auth-card { max-width: 480px; margin: 0 auto; width: 100%; }
.footer { margin-top: auto; padding: 18px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer a { color: var(--muted); }
.cred { font-family: var(--f-mono); font-size: .8rem; background: var(--surface2); padding: 8px 10px; border-radius: 8px; line-height: 1.6; }
.choice { border: 2px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .1s; }
.choice:hover { border-color: var(--line2); }
.choice.on { border-color: var(--green2); background: color-mix(in srgb, var(--green-soft) 50%, var(--surface)); }
.choice .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; margin-left: auto; }
.choice.on .check { background: var(--green2); border-color: var(--green2); color: #fff; }
.steps { display: flex; gap: 6px; }
.steps i { height: 4px; flex: 1; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--green2); }

/* Inhaber-Backend */
.admin .topbar { background: var(--slate); }
.admin .nav-item.on { color: var(--info); }
.admin-badge { background: #ffcc66; color: #2a2008; font-size: .7rem; font-weight: 800; border-radius: 6px; padding: 2px 7px; letter-spacing: .04em; }
.drawer-bg { position: fixed; inset: 0; background: rgba(10, 15, 20, .45); z-index: 70; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--surface); z-index: 71; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide .25s; display: flex; flex-direction: column; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-h { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.drawer-b { padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--f-body); font-size: 11px; fill: var(--muted); }
.chart .axis { stroke: var(--line2); }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 3; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.bar-h { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: .86rem; }
@media (max-width: 560px) { .bar-h { grid-template-columns: 96px minmax(0, 1fr) 60px; } }
@media (max-width: 560px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .g4 .kpi .stat-big { font-size: 1.15rem; } }

/* Erweiterungen: Verträge, Foto-Upload, E-Mails */
.contract { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contract.off .stepper { opacity: .45; }
.contract .stepper { flex-shrink: 0; }
.up-prev { width: 72px; height: 72px; border-radius: 12px; background: var(--green-soft); color: var(--green2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.up-prev img { width: 100%; height: 100%; object-fit: cover; }
.maillist { display: grid; gap: 2px; }
.mailrow { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); border-radius: 8px; cursor: pointer; }
.mailrow:hover { background: var(--green-soft); }
.mailprev { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.mailprev-h { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; background: color-mix(in srgb, var(--green-soft) 60%, var(--surface)); }
.mailprev-h .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--green2); color: #fff; display: grid; place-items: center; }
.mailprev-b { padding: 16px 14px; line-height: 1.55; white-space: normal; }
.mailprev-f { padding: 10px 14px; border-top: 1px solid var(--line); }
.report-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.mailrow.on { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green2); }

/* Hofansicht: Zoom, Verschieben, Vollbild */
.farm-vp { overflow: hidden; position: relative; touch-action: pan-y; cursor: zoom-in; }
.farm-vp.zoomed { touch-action: none; cursor: grab; }
.farm-vp.dragging { cursor: grabbing; }
.farm-vp.dragging .hit { pointer-events: none; }
.farm-z { transform-origin: 0 0; will-change: transform; transition: transform .18s ease-out; }
.farm-vp.dragging .farm-z { transition: none; }
.fz-ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fz-ctrl button { border: 0; background: transparent; color: var(--ink); min-width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .78rem; cursor: pointer; }
.fz-ctrl button:hover { background: var(--green-soft); }
.fz-level { font-size: .74rem; font-weight: 700; color: var(--muted); min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.scene.full { position: fixed; inset: 0; z-index: 80; border-radius: 0; border: 0; display: flex; flex-direction: column; background: #cfe3ee; }
.scene.full .farm-vp { flex: 1; }
.scene.full .farm-z, .scene.full .farm { width: 100%; height: 100%; }
body.noscroll { overflow: hidden; }
@media (max-width: 640px) { .fz-ctrl { right: 8px; bottom: 8px; padding: 2px; } .fz-ctrl button { min-width: 28px; height: 28px; } .fz-level { display: none; } }

/* Handbuch */
.page-h-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hb-btn { gap: .35rem; }
.hb { display: flex; flex-direction: column; gap: 10px; color: var(--ink); line-height: 1.55; }
.hb-intro { font-size: 1.02rem; }
.hb-toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--surface2); border-radius: 10px; }
.hb-toc a { font-size: .84rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: 3px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.hb-toc a:hover { border-color: var(--green2); }
.hb-ch { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); scroll-margin-top: 8px; }
.hb-ch summary { cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1rem; padding: 11px 14px; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.hb-ch summary::-webkit-details-marker { display: none; }
.hb-ch summary::after { content: "+"; font-family: var(--f-body); font-weight: 700; color: var(--green2); }
.hb-ch[open] summary::after { content: "−"; }
.hb-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.hb-body ul, .hb-tips ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 4px; }
.hb-body table { font-size: .88rem; }
.hb-live { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 9px; background: var(--info-soft); color: var(--ink); font-size: .9rem; }
.hb-live .ic { color: var(--info); margin-top: 2px; }
.hb-ex { padding: 10px 12px; border-radius: 9px; background: var(--hay-soft); border-left: 3px solid var(--hay); display: flex; flex-direction: column; gap: 6px; }
.hb-tips { padding: 12px 14px; border-radius: 10px; background: var(--green-soft); border-left: 3px solid var(--green2); }
.hb-tips h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hb-tips h3 { color: var(--good); } }
:root[data-theme="dark"] .hb-tips h3 { color: var(--good); }

/* Countdown bis Monatsende */
.month-clock { display: flex; align-items: center; gap: 8px; background: var(--hay); color: #241a04; border-radius: 10px; padding: 6px 12px 7px; min-width: 150px; }
.month-clock small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; line-height: 1.1; }
.month-clock b { display: block; font-size: 1.12rem; line-height: 1.15; letter-spacing: 0; }
.month-clock .mc-bar { display: block; height: 4px; border-radius: 99px; background: rgba(36, 26, 4, .22); margin-top: 3px; overflow: hidden; }
.month-clock .mc-bar > i { display: block; height: 100%; background: #241a04; border-radius: 99px; transition: width 1s linear; }
.month-clock.soon { animation: blink 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .month-clock.soon { animation: none; } }

/* Handy-Optimierung */
.page-h > div:first-child { min-width: 0; }
.page-h-r { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
  .page-h { align-items: stretch; flex-direction: column; gap: 10px; }
  .page-h-r { width: 100%; justify-content: space-between; }
  .page-h-r .tabs { flex: 1 1 100%; order: 2; scrollbar-width: none; }
  .page-h-r .tabs::-webkit-scrollbar { display: none; }
  .hb-btn { order: 1; }
  .contract > .row.nowrap { flex-wrap: wrap; }
  .contract .stepper { margin-left: auto; }
  .stepper input { width: 60px; }
  .month-clock { min-width: 0; padding: 5px 10px 6px; }
  .month-clock b { font-size: 1rem; }
  .demo-banner { font-size: .72rem; padding-top: 3px; padding-bottom: 3px; }
  .modal-bg { padding: 8px; }
  .modal-b, .modal-h, .modal-f { padding-left: 14px; padding-right: 14px; }
  .hb-toc { max-height: 150px; overflow-y: auto; }
  .tablebox { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 380px) {
  .chip small { font-size: .62rem; }
  .chip b { font-size: .92rem; }
}
@media (max-width: 560px) { .contract > .row.nowrap > label { flex: 1 1 100%; } }

.toast { pointer-events: auto; cursor: pointer; }

/* Geldanlage */
.market .asset { display: flex; flex-direction: column; gap: 6px; }
.spark { display: block; max-width: 100%; height: auto; }
.modal .spark { width: 100%; }
.depot-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.depot-row .r { text-align: right; }
@media (max-width: 560px) { .depot-row { flex-wrap: wrap; } .depot-row .grow { flex-basis: 100%; } .depot-row .r { text-align: left; flex: 1; } }

/* Minispiele */
.mini-card { min-height: 190px; }
.mini-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--hay-soft); color: var(--wood); flex: none; }
.mg-layer { position: fixed; inset: 0; z-index: 120; background: rgba(15, 22, 17, .7); display: grid; place-items: center; padding: 12px; animation: fade .2s; }
.mg { background: var(--surface); border-radius: 16px; width: min(620px, 100%); max-height: calc(100vh - 24px); overflow: auto; box-shadow: var(--shadow-lg); }
.mg-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.mg-h > div:first-child { flex: 1; min-width: 0; }
.mg-hud { display: flex; gap: 6px; }
.mg-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--surface2); border-radius: 99px; padding: 4px 10px; font-family: var(--f-mono); font-size: .92rem; }
.mg-stage { padding: 0 16px 16px; min-height: 240px; display: flex; flex-direction: column; justify-content: center; }
.mg-canvas { width: 100%; height: auto; aspect-ratio: 560 / 360; border-radius: 12px; display: block; user-select: none; -webkit-user-select: none; }
.mg-intro { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 18px 8px; }
.mg-ic { width: 72px; height: 72px; border-radius: 18px; background: var(--hay-soft); color: var(--wood); display: grid; place-items: center; }
.mg-big { font-family: var(--f-display); font-size: 2rem; font-weight: 800; }
.mg-prev { width: 100%; max-width: 420px; aspect-ratio: 560 / 360; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.mini-prev { display: block; padding: 0; border: 0; margin: -4px -4px 4px; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; width: calc(100% + 8px); }
.mini-prev img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform .25s; }
.mini-prev:hover img { transform: scale(1.04); }
.hufe { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.hufe-msg { text-align: center; font-weight: 600; margin: 0; min-height: 1.4em; }
.hufe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.huf { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line2); background: var(--surface2); color: var(--ink); font-weight: 600; text-align: left; transition: transform .1s, background .15s, border-color .15s; cursor: pointer; }
.huf.on { background: #ffe9a3; border-color: #e0a800; transform: scale(1.04); color: #241a04; box-shadow: 0 0 0 4px rgba(255,211,77,.35); }
.huf:disabled { cursor: default; }
.huf:disabled:not(.on) { opacity: .75; }
.quiz { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.quiz-img { width: 100%; height: 130px; object-fit: cover; object-position: 60% 25%; border-radius: 12px; }
.quiz-opt { justify-content: flex-start; white-space: normal; text-align: left; padding: .7rem 1rem; }
.quiz-opt.right { background: var(--good-soft); border-color: var(--good); color: var(--ink); opacity: 1; }
.quiz-opt.wrong { background: var(--bad-soft); border-color: var(--bad); color: var(--ink); opacity: 1; }
@media (max-width: 560px) { .mg-h h2 { font-size: 1rem; } .mg-layer { padding: 6px; } .mg-stage { padding: 0 10px 12px; } }
.mg-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mg-pad button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 64px; border-radius: 14px; border: 2px solid var(--line2); background: var(--surface2); color: var(--ink); font-weight: 700; font-size: 1.05rem; touch-action: none; cursor: pointer; }
.mg-pad button.on { background: var(--hay); border-color: var(--hay-strong); color: #241a04; transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .mg-pad { display: none; } }
@media (max-width: 760px) {
  .mg-layer { padding: 0; place-items: stretch; }
  .mg { width: 100%; max-height: none; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
  .mg-stage { flex: 1; justify-content: center; padding: 0 10px calc(14px + env(safe-area-inset-bottom)); }
  .mg-pad button { min-height: 84px; font-size: 1.15rem; }
  .mg-h { padding: calc(10px + env(safe-area-inset-top)) 12px 8px; }
}
@media (max-width: 760px) and (orientation: landscape) and (max-height: 500px) {
  .mg-h { padding: 6px 12px; } .mg-h .eyebrow { display: none; }
  .mg-canvas { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; }
  .mg-pad button { min-height: 48px; }
}
.mg-pad .flip { display: inline-flex; transform: scaleX(-1); }

/* Pleite-Schutz (Kapitel 29) */
.rescue-banner { background: var(--bad-soft, #fbe3e0); color: var(--bad); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.rescue-banner .btn { padding: 4px 10px; min-height: 0; }
.rescue-card { border-color: var(--bad); }
.rescue-item { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.rescue-item:last-of-type { border-bottom: 0; }
.rescue-shield { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rescue-shield li { display: flex; align-items: center; gap: 6px; }
.rescue-shield svg { color: var(--good); flex: none; }
.btn.on-heart { background: var(--bad-soft, #fbe3e0); color: var(--bad); border-color: var(--bad); }

/* Werbung und Feste (Kapitel 30) */
.sec-h { margin: 18px 0 2px; font-size: 1.15rem; }
.card.locked { opacity: .78; }
.ev-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hay-soft); color: var(--wood); flex: none; }
.ev-card select, .card select[id^="ad-"] { flex: 1; min-width: 0; }
.card.stack > .pill, .card.stack > .tiny { align-self: flex-start; }

/* Meisterbetrieb (Kapitel 33) */
.m-stars { color: var(--hay); font-weight: 700; }
.m-row { display: flex; gap: 2px; font-size: 20px; line-height: 1; flex-wrap: wrap; }
.m-row i { font-style: normal; color: var(--line2); }
.m-row i.on { color: var(--hay); text-shadow: 0 1px 0 rgba(0,0,0,.15); }

/* Turnierliga (Kapitel 34) */
.lg-ladder { display: flex; gap: 4px; flex-wrap: wrap; }
.lg-ladder span { flex: 1 1 90px; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; display: flex; flex-direction: column; color: var(--muted); }
.lg-ladder span small { font-weight: 400; font-size: .72rem; }
.lg-ladder span.on { border-color: var(--hay); background: var(--hay-soft); color: var(--ink); }
.lg-ladder span.done { color: var(--good); }
.lg-table tr.lg-me td { background: var(--hay-soft); font-weight: 600; }
.lg-rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; font-weight: 700; }
.lg-rank.up { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.lg-rank.down { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 12px; border-radius: 12px; background: linear-gradient(#6b4a2e, #4e3420); }
.pokal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 8px; background: rgba(255,255,255,.08); color: #f7ecd8; }
.pokal .muted { color: #e2d3bb; }

/* Spezialisierung (Kapitel 35) */
.spec-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: .78rem; color: var(--muted); }
.spec-mini b { color: var(--hay-strong); letter-spacing: 1px; font-weight: 400; }
.spec-list { margin: 0; padding-left: 16px; color: var(--muted); }
.spec-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-pips { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.spec-pips i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--hay); }
.spec-pips i.on { background: var(--hay); }

/* Jahreszeiten (Kapitel 36) */
.sz { border-top: 4px solid var(--sz, var(--hay)); }
.sz-fruehjahr { --sz: #8fbf6a; } .sz-sommer { --sz: #e2b23c; } .sz-herbst { --sz: #c9702f; } .sz-winter { --sz: #7fa6c4; }
.sz-act { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--hay-soft); }
.sz-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--sz, var(--wood)); }
.sz-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sz-plan span { font-size: .72rem; line-height: 1.25; padding: 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.sz-plan i { display: block; font-style: normal; font-weight: 700; color: var(--ink); }
.sz-plan .now { border-color: var(--sz, var(--hay)); box-shadow: inset 0 0 0 1px var(--sz, var(--hay)); }
.sz-plan .done { background: var(--good-soft); border-color: transparent; }
.sz-plan .done i::after { content: ' ✓'; color: var(--good); }
.sz-plan .miss { opacity: .55; }
.sz-col { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
.sz-col > span:not(.tiny) { display: inline-flex; gap: 3px; align-items: center; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--faint); font-size: .75rem; }
.sz-col > span.on { color: var(--ink); border-color: var(--sz, var(--hay)); }

/* Sammelbuch und Saisonpass (Kapitel 37) */
.sz-pass { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; text-align: left; }
.sz-pass > span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.sz-pass:hover { border-color: var(--sz, var(--hay)); }
.ach.ready { border-color: var(--hay); background: var(--hay-soft); }
.ach-medals { display: inline-flex; gap: 3px; }
.ach-medals i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); }
.pass-track { overflow-x: auto; padding-bottom: 4px; }
.pass-row { display: grid; grid-template-columns: 92px repeat(10, minmax(64px, 1fr)); gap: 4px; min-width: 760px; margin-bottom: 4px; }
.pass-lab { font-size: .75rem; font-weight: 700; color: var(--muted); align-self: center; display: inline-flex; gap: 4px; align-items: center; }
.pass-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--faint); text-align: center; min-height: 64px; }
.pass-cell i { font-style: normal; font-size: .64rem; line-height: 1.15; color: var(--muted); overflow-wrap: anywhere; }
.pass-cell.ready { border-color: var(--hay); background: var(--hay-soft); color: var(--hay-strong); box-shadow: 0 0 0 2px var(--hay-soft); }
.pass-cell.got { background: var(--good-soft); border-color: transparent; color: var(--good); }
.pass-cell.off { opacity: .55; }
.pass-row.prem.on .pass-cell:not(.got):not(.ready) { border-style: dashed; }
.pass-row.nums span { text-align: center; font-size: .7rem; color: var(--faint); font-weight: 700; }
.pass-row.nums span.on { color: var(--sz, var(--hay-strong)); }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 50% / 40%; border: 2px dashed var(--line2); text-align: center; font-size: .75rem; color: var(--wood); }
.stamp b { color: var(--ink); font-weight: 600; }
.stamp.gold { border-color: var(--hay); background: var(--hay-soft); color: var(--hay-strong); }
.chron { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.chron li { position: relative; padding: 6px 0 6px 18px; font-size: .88rem; }
.chron-ic { position: absolute; left: -26px; top: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--wood); }

/* Nebeneinnahmen (Kapitel 38) */
.side-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.side-row.on { border-color: var(--good); background: var(--good-soft); }
.side-row .r { text-align: right; white-space: nowrap; }
.side-row .btn { flex: none; }
@media (max-width: 520px) { .side-row { flex-wrap: wrap; } .side-row .grow { flex-basis: 100%; } }
