/* All-answer · Systemschriften, keine externen Ressourcen */
:root {
  --bg: #ffffff;
  --bg-band: #eef3f6;
  --ink: #0e1726;
  --ink-soft: #46546a;
  --line: #d5dde6;
  --accent: #0a6e66;
  --accent-ink: #ffffff;
  --mark: #f5c518;
  --dark: #0e1726;
  --dark-ink: #e8eef5;
  --radius: 6px;
  --wrap: 68rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b121d;
    --bg-band: #111b29;
    --ink: #e8eef5;
    --ink-soft: #a6b3c4;
    --line: #25344a;
    --accent: #3cc3b5;
    --accent-ink: #062622;
    --dark: #050a12;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

/* Kopf */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; gap: 1rem; flex-wrap: wrap; padding-block: .5rem; }
.top-right { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 30rem) { .btn-small { padding: .4rem .6rem; font-size: .8rem; } .langs { font-size: .8rem; } .top-row { gap: .5rem; } }
.langs { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.langs a { color: var(--ink-soft); text-decoration: none; padding: .2rem .35rem; border-radius: 4px; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; background: var(--bg-band); }
.btn-small { padding: .45rem .9rem; font-size: .9rem; }
.brand { font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav { display: none; gap: 1.25rem; }
@media (min-width: 52rem) { nav { display: flex; } }
nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--ink); }

/* Typo */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.1rem, 6vw, 3.75rem); font-weight: 800; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.section-lead { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2rem; }
.kicker { color: var(--accent); font-weight: 650; margin-bottom: 1rem; }
.note { color: var(--ink-soft); font-size: .95rem; margin-top: 1.5rem; }

section { scroll-margin-top: 3.5rem; padding-block: clamp(3.5rem, 8vw, 6rem); }
.band { background: var(--bg-band); }
.band-dark { background: var(--dark); color: var(--dark-ink); }
.band-dark .lead, .band-dark .note { color: #a6b3c4; }

/* Einstieg */
.hero { padding-block: clamp(4rem, 12vw, 8rem); }
.hero h1 { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: .12em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-block; padding: .8rem 1.3rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* Antworten */
.topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.topics li { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 700; padding: .6rem 1rem; border-left: 4px solid var(--mark); background: var(--bg); }
/* Aufklappbare Bloecke */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
summary { cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; font-weight: 650; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.25rem; top: .85rem; font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--ink-soft); }
summary:hover { color: var(--accent); }
summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
details[open] { border-color: var(--accent); }
details[open] summary { padding-bottom: .6rem; }
details p + p { margin-top: -.5rem; }
details p a { font-weight: 650; }
.faq a:focus-visible { outline-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

/* Formate */
.cards { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.card p:not(.price) { color: var(--ink-soft); flex: 1; }
.card-accent { border: 2px solid var(--accent); }
.price { font-weight: 700; margin: 0; }

/* Ablauf: Linie statt Nummern */
.steps { list-style: none; padding: 0; margin: 0; max-width: 46rem; border-left: 3px solid var(--accent); }
.steps li { padding: .25rem 0 1rem 1.5rem; position: relative; color: var(--ink-soft); }
.steps li:last-child { padding-bottom: .25rem; }
.steps li::before { content: ""; position: absolute; left: -.55rem; top: .6rem; width: .8rem; height: .8rem; background: var(--mark); border-radius: 2px; }
.steps strong { color: var(--ink); display: block; }

/* Über */
.split { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 3fr 2fr; align-items: center; } }
.facts { padding-left: 1.1rem; color: var(--ink-soft); }
.facts li { margin-bottom: .6rem; font-size: 1.1rem; }
.portrait { aspect-ratio: 4/5; max-width: 20rem; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 1rem; text-align: center; }

.contact { font-size: 1.4rem; font-weight: 700; }

/* Fuss */
.foot { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .9rem; color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Meine Seiten: Leiste im Fuss und Liste auf der Profilseite (Daten in _data/sites.json).
   nav ist oben bis 52rem ausgeblendet, darum hier ausdruecklich sichtbar. */
.sites { display: block; }
.sites a { font-size: inherit; }
.sites a:focus-visible { outline-color: var(--accent); }
.sites-bar { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.sites-title { margin: 0 0 .25rem; font-weight: 700; color: var(--ink); }
.foot .linkliste { display: grid; gap: 0 2.5rem; margin: 0; }
.foot .linkliste a { padding: .35rem 0; border-bottom: 0; }
.foot .linkliste strong { color: var(--accent); }
.foot .linkliste a:hover strong, .foot .linkliste a:focus-visible strong { text-decoration: underline; }
@media (min-width: 40rem) { .foot .linkliste { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); } }

/* Offene Punkte sichtbar in der Vorschau */
mark.offen { background: #ffe08a; color: #3a2a00; padding: 0 .25em; border-radius: 3px; font-size: .9em; }

/* Ein Effekt: sanftes Einblenden beim Scrollen, nur wo unterstuetzt */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
  }
}

/* Erfahrung + Staerken nebeneinander */
.cols { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .cols { grid-template-columns: 1fr 1fr; } }

/* Antworten (Blog) */
.posts { list-style: none; padding: 0; margin: 0; max-width: 46rem; border-top: 1px solid var(--line); }
.posts li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.post-title { font-size: 1.2rem; font-weight: 700; }
.post-soon { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.contact a { color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* Einstieg: Portraet + Rollen-Schrank (nur CSS: Hover/Fokus oeffnet, ohne Hover offen) */
:root { --wood: #7a5a3f; --wood-dark: #5c4230; --hat-dark: #1c2333; --hat-light: #f4f6f8; --hat-shade: #3a4458; --hat-shade-yellow: #d9a90f; }
@media (prefers-color-scheme: dark) { :root { --wood: #6b4f38; --wood-dark: #4a3626; --hat-dark: #dfe6ee; --hat-light: #1c2636; --hat-shade: #a6b3c4; } }
.kicker-name { color: var(--ink); }
.hero .split { align-items: center; }
.stage { display: grid; gap: 1rem 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 30rem) { .stage { grid-template-columns: 2fr 3fr; align-items: stretch; } }
.stage .portrait { max-width: none; aspect-ratio: auto; min-height: 12rem; }

.wardrobe { position: relative; perspective: 1400px; border: 8px solid var(--wood); border-top-width: 14px; border-radius: var(--radius); background: var(--wood-dark); outline-offset: 4px; }
.wardrobe-inside { list-style: none; margin: 0; padding: .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: var(--bg-band); min-height: 100%; }
.hat-slot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .75rem .4rem; background: var(--bg); border-bottom: 4px solid var(--wood); }
.hat-slot strong { font-size: .95rem; }
.hat-slot span { font-size: .75rem; color: var(--ink-soft); line-height: 1.35; }

.door { display: none; }
@media (hover: hover) and (min-width: 30rem) {
  .door { display: block; position: absolute; top: 0; bottom: 0; width: 50%; background: var(--wood); transition: transform .7s cubic-bezier(.3,.7,.2,1); z-index: 2;
    background-image: linear-gradient(90deg, transparent 12%, rgba(0,0,0,.08) 12% 14%, transparent 14% 86%, rgba(0,0,0,.08) 86% 88%, transparent 88%); }
  .door::after { content: ""; position: absolute; top: 48%; width: .5rem; height: 2rem; border-radius: 3px; background: var(--mark); }
  .door-left { left: 0; transform-origin: left center; border-right: 1px solid var(--wood-dark); }
  .door-left::after { right: .6rem; }
  .door-right { right: 0; transform-origin: right center; border-left: 1px solid var(--wood-dark); }
  .door-right::after { left: .6rem; }
  .wardrobe:hover .door-left, .wardrobe:focus-within .door-left { transform: rotateY(-105deg); }
  .wardrobe:hover .door-right, .wardrobe:focus-within .door-right { transform: rotateY(105deg); }
}
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }
@media (min-width: 52rem) { .hero .split { grid-template-columns: 1fr 1.1fr; } }

/* Was ich gut kann: Huete als Links zu Unterseiten */
.hat-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hat-card { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; height: 100%; padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-bottom: 4px solid var(--wood); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.hat-card:hover, .hat-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.hat-card span { font-size: .85rem; color: var(--ink-soft); flex: 1; }
.hat-card em { font-style: normal; font-weight: 650; color: var(--accent); font-size: .9rem; }
@media (max-width: 24rem) { .hat-links { grid-template-columns: 1fr; } }

/* Unterseite Rolle */
.role-hero .back { color: var(--ink-soft); text-decoration: none; }
.back:hover { color: var(--ink); }
.cred { display: inline-block; font-weight: 650; font-size: .85rem; color: var(--ink); background: var(--bg-band); border-left: 3px solid var(--mark); padding: .15rem .5rem; margin: .25rem 0; }
.hat-card .cred { background: var(--bg-band); }
.role-hero .cred { font-size: 1rem; }

/* Pixel-Figuren (aus sprites.js) */
.pixel { display: block; image-rendering: pixelated; }
.pixel.figure { width: 4rem; height: auto; }
.pixel.mini { width: 2.5rem; height: auto; }
.role-hero .pixel.figure { width: 7rem; margin: 1rem 0; }
a.hat-slot { color: var(--ink); text-decoration: none; height: 100%; }
a.hat-slot:hover strong, a.hat-slot:focus-visible strong { color: var(--accent); }
.hat-card strong small { font-weight: 500; color: var(--ink-soft); }
/* Sprungziel der Rollen-Links: Abstand zur festen Kopfzeile (Antwort zu den Rollen, Zurueck-Link der Rollen-Seiten) */
#koennen { scroll-margin-top: 4.5rem; }

/* Ein Tag mit Allan */
.scene { padding-block: 2.5rem 3rem; background: var(--dark); color: var(--dark-ink); }
.scene-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.scene-head h2 { margin: 0; }
.scene-hud { margin: 0; font-weight: 650; color: #a6b3c4; }
.scene-clock { color: var(--mark); font-variant-numeric: tabular-nums; margin-right: .5rem; }
.scene-stage { margin-block: 1rem; display: flex; justify-content: center; background: #111827; }
.scene-stage canvas { display: block; image-rendering: pixelated; }
.scene-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.scene-pick button { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: var(--radius); border: 2px solid #34405a; background: #1a2436; color: var(--dark-ink); font: inherit; font-weight: 650; cursor: pointer; }
.scene-pick button:hover { border-color: var(--mark); }
.scene-pick button[aria-pressed="true"] { border-color: var(--mark); background: #26324a; }

/* Avatar neben dem Schrank (statt Foto) */
.avatar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .5rem; min-height: 12rem; padding: 1rem; background: var(--bg-band); border-radius: var(--radius); border-bottom: 6px solid var(--wood); }
.avatar-svg { width: min(10rem, 100%); height: auto; }
.avatar-name { font-weight: 700; font-size: .9rem; }
.avatar.dressed .avatar-fig:not([hidden]) { animation: dress .35s steps(3) both; }
@keyframes dress { 0% { transform: translateY(-.6rem); } 60% { transform: translateY(.15rem); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .avatar.dressed .avatar-fig:not([hidden]) { animation: none; } }

/* Rechtstexte und Profil (wie good-2-go.ch) */
.legal { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.legal p, .legal li, .legal dd { color: var(--ink-soft); margin-bottom: .8rem; }
.legal table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; }
.legal td, .legal th { text-align: left; vertical-align: top; padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--line); }
.legal td:first-child { font-weight: 600; color: var(--ink); width: 9rem; }
.legal thead { display: none; }
/* Links im Text in Akzentfarbe. Vorher --accent-ink (weiss, im Dunkelmodus dunkelgruen): Telefon, E-Mail und Textlinks waren unsichtbar. .btn behaelt seine eigene Farbe. */
.legal a:not(.btn) { color: var(--accent); }
.profil .eyebrow { color: var(--ink-soft); margin-bottom: .4rem; }
.profil .profil-figur .pixel { width: 5rem; height: auto; image-rendering: pixelated; }
.linkliste { list-style: none; padding: 0; }
.linkliste a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.linkliste strong { display: block; color: var(--ink); }
.linkliste span { color: var(--ink-soft); }
.fm-badge { display: inline-block; line-height: 0; }
.fm-badge img { width: 118px; height: 24px; }
.band-dark .fm-badge img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { .fm-badge img { filter: brightness(0) invert(1); } }
.profil dt { font-weight: 600; margin-top: .6rem; }
.foot a { color: inherit; }

/* Kontakt: Jurte, Allan kommt raus und reicht den freelancermap-Link.
   Grundzustand = Endzustand (ohne JS). jurte.js setzt .zu, beim Sichtbarwerden .offen. */
.kontakt-row { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 48rem) { .kontakt-row { grid-template-columns: 1fr minmax(0, 38rem); } }
.jurte-gruppe { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.jurte-gruppe .jurte { flex: 1 1 16rem; }
.jurte-gruppe .bb-chest { width: 13rem; flex: none; }
.jurte { position: relative; width: 100%; max-width: 24rem; aspect-ratio: 48 / 30; }
.jurte-bild { width: 100%; height: 100%; }
/* Tuerblatt ueber der Oeffnung (Raster x 20-27, y 15-27), offen = schmal an der Angel */
.jurte-tuer {
  position: absolute; left: calc(20 / 48 * 100%); top: 50%; width: calc(8 / 48 * 100%); height: calc(13 / 30 * 100%);
  background: repeating-linear-gradient(90deg, #7a5a3f 0 25%, #5c4230 25% 27%);
  transform-origin: left center; transform: scaleX(.18);
}
/* Allan: Fuesse auf dem Gras (Zeile 28), startet in der Tuer, steht rechts davon */
.jurte-allan {
  position: absolute; left: calc(19.5 / 48 * 100%); bottom: calc(2 / 30 * 100%);
  width: calc(11 / 48 * 100%); aspect-ratio: 20 / 28; transform: translateX(120%);
}
.jurte-allan .pixel { position: absolute; inset: 0; width: 100%; height: 100%; }
.j-walk1, .j-walk2 { opacity: 0; }
.jurte-bubble {
  position: absolute; right: -.25rem; bottom: 62%; margin: 0;
  background: #fff; border: 3px solid #1d1b26; border-radius: 4px; padding: .55rem .7rem;
  box-shadow: 4px 4px 0 #0a6e66; transform-origin: 35% 100%;
}
.jurte-bubble::after {
  content: ""; position: absolute; left: 32%; top: 100%; width: 12px; height: 12px;
  background: #fff; border: solid #1d1b26; border-width: 0 3px 3px 0;
  transform: translateY(-5px) rotate(45deg);
}
.jurte-bubble .fm-badge img { filter: none; display: block; }
.jurte-bubble .fm-badge:focus-visible { outline: 3px solid var(--mark); outline-offset: 4px; }

.jurte.zu .jurte-tuer { transform: scaleX(1); }
.jurte.zu .jurte-allan, .jurte.zu .j-wave, .jurte.zu .jurte-bubble { opacity: 0; }
.jurte.offen .jurte-tuer { animation: j-tuer .5s ease-out both; }
.jurte.offen .jurte-allan { animation: j-raus .3s ease-out .4s both, j-gehen 1.2s linear .7s both; }
.jurte.offen .j-walk1 { animation: j-schritt .3s step-end .4s 5; }
.jurte.offen .j-walk2 { animation: j-schritt .3s step-end .55s 5; }
.jurte.offen .j-wave { animation: j-da 0s 1.9s both; }
.jurte.offen .jurte-bubble { animation: j-pop .4s cubic-bezier(.3, 1.6, .5, 1) 2.1s both; }
@keyframes j-tuer { from { transform: scaleX(1); } to { transform: scaleX(.18); } }
@keyframes j-raus { from { opacity: 0; transform: translateX(0) scale(.85); } to { opacity: 1; transform: translateX(0); } }
@keyframes j-gehen { from { transform: translateX(0); } to { transform: translateX(120%); } }
@keyframes j-schritt { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes j-da { from { opacity: 0; } to { opacity: 1; } }
@keyframes j-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
