:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-2: #fff4dc;
  --text: #2b1d0e;
  --muted: #7a6249;
  --line: #f0e2c4;
  --brand: #1f8a4c;
  --brand-2: #2fb563;
  --gold: #ffcc33;
  --gold-dark: #b8860b;
  --wood: #6b3f14;
  --sea-1: #0b5d8a;
  --sea-2: #17a2c9;
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 8px 28px rgba(60, 35, 10, .10);
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110c; --surface: #1e1912; --surface-2: #2a2218; --text: #f5ead6; --muted: #bba78a;
    --line: #3a2f22; --brand: #3ccf78; --brand-2: #2fb563; --gold-dark: #ffcc33;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; }
a { color: var(--brand); }
code, kbd, pre { font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
kbd { border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; background: var(--surface); }
pre { background: #1d160d; color: #ffe9b5; padding: 14px 18px; border-radius: 12px; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 0 24px 0;
  background: radial-gradient(1200px 500px at 70% -10%, #2fc3e0 0%, transparent 60%),
              linear-gradient(160deg, var(--sea-1) 0%, #0e7aa8 45%, #1d9a5a 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-bg .deco { position: absolute; width: 120px; opacity: .22; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); animation: sway 7s ease-in-out infinite alternate; }
.d1 { left: 4%; top: 130px; } .d2 { right: 6%; top: 90px; width: 150px !important; animation-delay: -2s !important; }
.d3 { left: 18%; top: 420px; animation-delay: -4s !important; } .d4 { right: 22%; top: 380px; animation-delay: -1s !important; }
.d5 { left: 46%; top: 70px; width: 90px !important; animation-delay: -3s !important; }
@keyframes sway { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(4deg) translateY(-10px); } }

.topnav { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.brand img { height: 52px; display: block; background: rgba(60, 30, 5, .55); border-radius: 12px; padding: 4px 8px; backdrop-filter: blur(6px); }
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 30px auto 0; text-align: center; }
.pill { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 6vw, 62px); line-height: 1.1; margin: 18px 0 14px; text-shadow: 0 3px 18px rgba(0,0,0,.25); }
.gold { background: linear-gradient(180deg, #fff3a0, #ffc928 60%, #f0a020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 21px); opacity: .95; max-width: 640px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: linear-gradient(180deg, #ffe066, var(--gold)); color: #4a2a00; box-shadow: 0 6px 18px rgba(255, 190, 40, .35);
  transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 190, 40, .45); }
.cta.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); box-shadow: none; backdrop-filter: blur(6px); }
.cta.small { padding: 8px 18px; font-size: 15px; }
.hero-shot {
  position: relative; z-index: 2; max-width: 1100px; margin: 50px auto 0; border-radius: 16px 16px 0 0; overflow: hidden;
  box-shadow: 0 -10px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.25); border-bottom: 0;
  transform: perspective(1600px) rotateX(8deg); transform-origin: bottom;
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- Layout */
.layout { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 40px 24px 60px; }
.toc-inner { position: sticky; top: 24px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 700; }

section { padding: 30px 0 50px; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.eyebrow { margin: 0; color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
section > h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 4px 0 18px; line-height: 1.15; }
h3 { font-size: 20px; margin: 28px 0 8px; }
p { margin: 0 0 12px; }

/* ---------------------------------------------------------------- Schritte */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .2s;
}
.step:hover { transform: translateY(-4px); }
.step img { width: 64px; height: 64px; display: block; }
.step h3 { margin: 10px 0 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }
.num {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800;
}
.mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #4a2a00; font-weight: 800; font-size: 13px; vertical-align: 1px; }

/* ---------------------------------------------------------------- Screenshots */
figure { margin: 0; }
.zoomable { cursor: zoom-in; }
.annotated, .wide-shot, .card-shot { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.annotated img, .wide-shot img, .card-shot img { display: block; width: 100%; height: auto; }
.wide-shot { margin: 18px 0; }
.card-shot { max-width: 420px; justify-self: center; transition: transform .25s; }
.card-shot:hover, .wide-shot:hover { transform: scale(1.015); }
.card-shot.tall { max-width: 340px; }
.crowned { border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(255, 204, 51, .25), var(--shadow); }

.marker {
  position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%);
  background: #e8423a; color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.4);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 66, 58, .6), 0 3px 10px rgba(0,0,0,.4); } 70%, 100% { box-shadow: 0 0 0 14px rgba(232, 66, 58, 0), 0 3px 10px rgba(0,0,0,.4); } }
.m1 { left: 61%; top: 4%; } .m2 { left: 46%; top: 10.5%; } .m3 { left: 7%; top: 24%; } .m4 { left: 80.5%; top: 8%; } .m5 { left: 87%; top: 58%; }
.legend { counter-reset: lg; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.legend li { counter-increment: lg; position: relative; padding-left: 44px; }
.legend li::before {
  content: counter(lg); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #e8423a; color: #fff; font-weight: 800; font-size: 14px;
}

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin: 26px 0; }
.split.reverse > :first-child { order: 2; }

/* ---------------------------------------------------------------- Listen & Hinweise */
.icon-list, .check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list img { width: 30px; height: 30px; flex: none; }
.check li { padding-left: 30px; position: relative; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.callout { border-radius: 12px; padding: 14px 18px; margin: 16px 0; border-left: 5px solid; font-size: 16px; }
.callout.tip { background: rgba(47, 181, 99, .1); border-color: var(--brand); }
.callout.warn { background: rgba(240, 160, 32, .12); border-color: #f0a020; }

.legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lg { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-size: 14px; line-height: 1.35; }
.lg > img, .tile-demo { width: 52px; height: 52px; flex: none; border-radius: 8px; }
.tile-demo { position: relative; display: block; background: url("../assets/grass_0.svg") center / cover; overflow: hidden; }
.tile-demo > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-demo.dashed::after { content: ""; position: absolute; inset: 3px; border: 2px dashed #fff3a0; border-radius: 5px; }
.tile-demo i { position: absolute; top: 2px; font-style: normal; font-size: 9px; font-weight: 800; line-height: 1; }
.tile-demo .ready { right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); color: #4a2a00; display: grid; place-items: center; }
.tile-demo .star { left: 2px; background: rgba(0,0,0,.6); color: var(--gold); padding: 2px 3px; border-radius: 4px; }
.tile-demo .worker { right: 2px; background: rgba(255,255,255,.85); border-radius: 4px; padding: 1px; }
.tile-demo .worker img { width: 12px; height: 12px; display: block; }

/* ---------------------------------------------------------------- Pflanzen-Stufen & Tabellen */
.stages { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stage { text-align: center; font-size: 13px; color: var(--muted); }
.stage .tile-demo { width: 80px; height: 80px; margin-bottom: 4px; }
.stage .tile-demo { background-image: url("../assets/field.svg"); }
.arrow { align-self: center; color: var(--muted); font-size: 22px; }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 12px 14px; background: var(--surface-2); }
.data td { padding: 10px 14px; border-top: 1px solid var(--line); }
.data td:first-child { font-weight: 700; }
.data .crop-cell { display: inline-flex; align-items: center; gap: 10px; }
.data td img { width: 30px; height: 30px; max-width: none; flex: none; }
.data .num-col { font-variant-numeric: tabular-nums; }
.data .best { color: var(--brand); font-weight: 800; }
.footnote { font-size: 13px; color: var(--muted); margin-top: 8px; }

.buildings { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .2s; }
.bcard:hover { transform: translateY(-4px); }
.bcard .bimg { width: 76px; height: 76px; background: var(--surface-2); border-radius: 14px; padding: 6px; }
.bcard h4 { margin: 6px 0 0; font-size: 18px; }
.bcard p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.chip.gold { background: rgba(255, 204, 51, .3); }
.chip img { width: 13px; height: 13px; vertical-align: -2px; }
.bcard.king { border: 2px solid var(--gold); background: linear-gradient(160deg, rgba(255, 220, 100, .18), var(--surface) 60%); }

/* ---------------------------------------------------------------- Zeitleiste */
.timeline { position: relative; display: grid; gap: 14px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--brand-2), var(--gold)); }
.tl { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.tl::before { content: ""; position: absolute; left: -27px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tl.king::before { border-color: var(--gold); background: var(--gold); }
.tl-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-head b { font-size: 18px; }
.tl-lvl { font-size: 13px; font-weight: 800; color: var(--brand); }
.tl-xp { font-size: 13px; color: var(--muted); margin-left: auto; }
.tl-unlocks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* ---------------------------------------------------------------- Tipps & FAQ */
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tip-card img { width: 52px; height: 52px; }
.tip-card h3 { margin: 8px 0 6px; font-size: 18px; }
.tip-card p { font-size: 15px; color: var(--muted); margin: 0; }

.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > :not(summary) { margin-left: 20px; margin-right: 20px; }
details > :last-child { margin-bottom: 18px; }

.foot { text-align: center; padding: 50px 0 10px; }
.foot img { width: 60px; }
.foot p { font-family: var(--display); font-size: 24px; margin: 8px 0 18px; }

/* ---------------------------------------------------------------- Lightbox */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog#lightbox::backdrop { background: rgba(10, 8, 4, .85); backdrop-filter: blur(4px); }
dialog#lightbox img { display: block; max-width: 96vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #222; font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); }

/* ---------------------------------------------------------------- Einblend-Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 10px; }
  .toc { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split.reverse > :first-child { order: 0; }
  .hero-bg { display: none; }
  .hero-shot { transform: none; }
  .marker { width: 24px; height: 24px; font-size: 12px; border-width: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero, .layout { padding-left: 16px; padding-right: 16px; }
  .brand img { height: 40px; }
}

/* Erfolge: Bedingung darf umbrechen */
#achievements-table td:nth-child(2) { white-space: normal; min-width: 220px; }

/* Manufaktur: Zutaten mit Bild */
#products-table .ing { display: inline-flex; align-items: center; gap: 2px; margin-right: 10px; }
#products-table .ing img { width: 20px; height: 20px; }
