/* Axolotl-Kartell – cozy Teich, Moos, Holz, Papier. Schriften liegen lokal (keine Google-Anfragen). */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Pixelify"; src: url("../fonts/pixelify-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f5ecd9;
  --bg-dots: rgba(120, 90, 60, .08);
  --paper: #fffaf0;
  --paper-edge: #ead9bb;
  --code-bg: #f4e8d4;
  --ink: #3b2b2f;
  --ink-soft: #6c5a58;
  --accent: #b02f6a;
  --btn: #c23f7d;
  --btn-shadow: #82244d;
  --on-btn: #fff;
  --plum: #5b2a45;
  --axo: #f6a9c6;
  --moss-soft: #e4f1cf;
  --wood: #c08a55;
  --wood-light: #d6a16b;
  --wood-dark: #7a5130;
  --wood-ink: #3d2614;
  --water-top: #cdeee6;
  --water-bottom: #9fd8cf;
  --dirt: #8a5a32;
  --dirt-dark: #6b4426;
  --note-ink: #3b2b2f;
  --tape: rgba(255, 253, 245, .7);
  --shadow: 0 1px 0 rgba(59, 43, 47, .06), 0 12px 24px -14px rgba(59, 43, 47, .45);
  --radius-a: 24px 16px 26px 18px / 18px 26px 16px 24px;
  --radius-b: 16px 26px 18px 24px / 26px 16px 24px 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10252a;
    --bg-dots: rgba(190, 240, 230, .05);
    --paper: #1a3439;
    --paper-edge: #2b4c51;
    --code-bg: #122a2e;
    --ink: #f4ebdd;
    --ink-soft: #b5c7c1;
    --accent: #ff9fc9;
    --btn: #f27fb2;
    --btn-shadow: #a8406f;
    --on-btn: #2a0f1d;
    --moss-soft: #203d36;
    --water-top: #0d2d36;
    --water-bottom: #1d5a5c;
    --dirt: #5e3c22;
    --dirt-dark: #452b17;
    --tape: rgba(255, 253, 245, .45);
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 28px -14px rgba(0, 0, 0, .75);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dots) 1.2px, transparent 1.6px);
  background-size: 20px 20px;
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; }
.sprite { display: block; height: auto; image-rendering: pixelated; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-style: wavy; }
:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: "Bricolage", "Nunito", system-ui, sans-serif; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: .5em 0 0; }

/* ---------- Teich (Kopfbereich) ---------- */
.pond {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--water-top), var(--water-bottom));
  padding-top: 28px;
}
.pond-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: end;
  gap: 8px 36px;
  padding-bottom: 0;
}
.axo-spot { position: relative; padding-top: 18px; }
.axo-sit { width: 132px; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.intro-text { padding-bottom: 34px; }
h1 {
  font-size: clamp(2.7rem, 8vw, 4.6rem); font-weight: 800; letter-spacing: -.03em;
  font-stretch: 92%;
}
h1 .k { color: var(--accent); text-decoration: underline wavy var(--accent); text-decoration-thickness: 3px; text-underline-offset: 10px; text-decoration-skip-ink: none; }
.pond-floor { position: relative; z-index: 3; }
.pond-floor .moss {
  height: 30px; margin-top: -14px;
  background: url("moss.svg") repeat-x; background-size: auto 100%; image-rendering: pixelated;
}
.pond-floor .dirt {
  height: 18px;
  background-color: var(--dirt);
  background-image:
    linear-gradient(90deg, transparent 50%, var(--dirt-dark) 50%),
    linear-gradient(transparent 50%, rgba(0, 0, 0, .12) 50%);
  background-size: 24px 6px, 12px 12px;
}
.seagrass {
  position: absolute; bottom: 40px; width: 42px; z-index: 1;
  transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite alternate;
}
.seagrass.s1 { left: 2%; }
.seagrass.s2 { left: 6%; width: 30px; animation-delay: -2s; }
.seagrass.s3 { right: 3%; animation-delay: -1s; }
.seagrass.s4 { right: 9%; width: 28px; animation-delay: -3s; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3.5deg); } }
.bubbles span {
  position: absolute; bottom: 30px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .25);
  animation: rise 11s linear infinite; z-index: 1;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(18px, -380px); opacity: 0; }
}

/* ---------- Abschnitte ---------- */
.spot { position: relative; padding: 46px 0 10px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.section-sub { margin-top: 6px; color: var(--ink-soft); }
.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--paper-edge);
  border-radius: var(--radius-a);
  box-shadow: var(--shadow);
  padding: 24px 22px 22px;
}
.card.mossy::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -16px; height: 20px;
  background: url("moss.svg") repeat-x; background-size: auto 100%; image-rendering: pixelated;
  border-radius: 4px;
}

/* Buttons & Kopierfelder */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 1rem/1.2 "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  color: var(--on-btn); background: var(--btn);
  border: 0; border-radius: 12px 14px 11px 15px;
  padding: 10px 16px 11px;
  box-shadow: 0 4px 0 var(--btn-shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow); }
.copyfield { display: flex; gap: 8px; align-items: stretch; margin-top: 12px; }
.copyfield code {
  flex: 1; min-width: 0; overflow-wrap: anywhere;
  padding: 9px 12px; border-radius: 10px;
  background: var(--code-bg); border: 2px dashed var(--paper-edge);
  font: 600 .92rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink);
}

/* Adresse: Holzschild */
.sign-wrap { position: relative; padding-top: 58px; max-width: 620px; }
.sign-axo { position: absolute; top: 0; left: 34px; width: 120px; z-index: 2; }
.sign {
  position: relative; z-index: 1;
  padding: 20px 22px 22px;
  color: var(--wood-ink);
  background-color: var(--wood-light);
  background-image: repeating-linear-gradient(180deg, transparent 0 28px, rgba(61, 38, 20, .22) 28px 31px),
                    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 3px, transparent 3px 9px);
  border: 6px solid var(--wood-dark);
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
                     100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
                     8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}
.sign-label { font: 600 .95rem "Pixelify", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--wood-ink); opacity: .8; }
.sign-addr { margin: 6px 0 14px; }
.sign-addr code { font: 800 clamp(1.55rem, 5.2vw, 2.5rem)/1.1 "Bricolage", sans-serif; letter-spacing: -.02em; color: var(--wood-ink); overflow-wrap: anywhere; }
.sign-post { width: 22px; height: 46px; margin: 0 auto; background: linear-gradient(90deg, var(--wood-dark) 0 40%, #5c3b21 40%); }
.btn-wood { background: #fff6e4; color: var(--wood-ink); box-shadow: 0 4px 0 #5c3b21; }

/* Schritte als Trampelpfad */
.trail { list-style: none; padding: 0; margin: 0; display: grid; gap: 54px; counter-reset: step; }
.step { max-width: 600px; }
.step:nth-child(odd) { margin-right: auto; transform: rotate(-.6deg); }
.step:nth-child(even) { margin-left: auto; transform: rotate(.5deg); border-radius: var(--radius-b); }
.step:not(:last-child)::after {
  content: ""; position: absolute; width: 84px; height: 84px; bottom: -70px;
  background: url("footprints.svg") center / contain no-repeat; image-rendering: pixelated; opacity: .9;
}
.step:nth-child(odd):not(:last-child)::after { right: 18%; transform: rotate(35deg); }
.step:nth-child(even):not(:last-child)::after { left: 18%; transform: rotate(-35deg); }
.step-no {
  position: absolute; top: -20px; left: -12px;
  width: 46px; height: 46px; display: grid; place-items: center;
  font: 700 1.55rem/1 "Pixelify", monospace;
  background: var(--axo); color: #5b2a45;
  border: 3px solid #5b2a45; box-shadow: 4px 4px 0 #5b2a45; transform: rotate(-6deg);
}
.step h3 { padding-left: 30px; font-size: 1.35rem; }
.step .btn { margin-top: 14px; }
.step-sleep { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.step-sleep .sprite { width: 118px; }
.inline-sticker {
  display: inline-block; margin-top: 12px; padding: 5px 10px 6px;
  font: 600 .9rem/1 "Pixelify", monospace; color: #2c1f22;
  background: #c9e7a4; border: 3px solid #fffdf6; border-radius: 9px 11px 8px 12px;
  transform: rotate(-2deg); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .35);
}

/* Truhe / Modrinth */
.chest-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; border-radius: var(--radius-b); }
.chest-card .sprite { width: 150px; }
.small { font-size: .93rem; color: var(--ink-soft); }

/* Hilfe */
.help-grid { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.help-axo { position: relative; padding-top: 70px; }
.help-axo .sprite { width: 150px; }
.error-note {
  position: absolute; top: 0; left: 60px; padding: 8px 12px 10px;
  background: #ffd0c4; color: #5a1f14; border-radius: 3px 5px 4px 2px;
  font: 600 .9rem/1.2 "Pixelify", monospace; transform: rotate(6deg);
  box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .45);
}
.error-note b { display: block; font-size: 1.15rem; }
.faq { display: grid; gap: 12px; margin-top: 18px; }
.faq details {
  background: var(--paper); border: 2px solid var(--paper-edge);
  border-radius: 14px 18px 13px 17px; box-shadow: var(--shadow); padding: 0 18px;
}
.faq details:nth-child(even) { border-radius: 18px 13px 17px 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 0; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  font: 700 1.1rem/1 "Pixelify", monospace; color: #fff; background: var(--btn);
  border-radius: 7px; box-shadow: 0 3px 0 var(--btn-shadow); transition: transform .15s;
}
.faq details[open] summary::before { content: "–"; transform: rotate(180deg); }
.faq details p { margin: 0 0 16px 38px; }
.faq details code { font: 600 .9em ui-monospace, Menlo, monospace; background: var(--code-bg); padding: 1px 6px; border-radius: 6px; }

/* Seitenende */
main { padding-bottom: 64px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .pond-inner { grid-template-columns: 1fr; gap: 0; }
  .axo-spot { order: 2; justify-self: start; margin-left: 8px; padding-top: 14px; }
  .intro-text { order: 1; padding-bottom: 0; }
  .axo-sit { width: 112px; }
  .help-grid { grid-template-columns: 1fr; }
  .chest-card { grid-template-columns: 1fr; justify-items: start; }
  .chest-card .sprite { width: 128px; }
  .step:nth-child(odd), .step:nth-child(even) { margin: 0; transform: none; }
  .step:not(:last-child)::after { left: 50% !important; right: auto !important; transform: translateX(-50%) rotate(90deg) !important; }
  .step-sleep { grid-template-columns: 1fr; }
  .help-axo { padding-top: 64px; }
  .seagrass.s2, .seagrass.s4 { display: none; }
  .copyfield { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
