#kurshelfer{position:fixed;right:clamp(12px,2vw,32px);bottom:18px;z-index:35;font:15px/1.4 system-ui,sans-serif;color:#102e38}
#kurshelfer [hidden]{display:none}
#kurshelfer button,#kurshelfer input{font:inherit}
#kurshelfer button{cursor:pointer;border:0}
#kurshelfer .kh-launch,#kurshelfer button[type=submit]{background:#102e38;color:white;border-radius:24px;padding:11px 18px;font-weight:650}
#kurshelfer .kh-launch{box-shadow:0 3px 16px #102e3840;border:1px solid #a2e2f6}
#kh-panel{width:min(370px,calc(100vw - 24px));max-height:min(580px,calc(100dvh - 48px));background:white;border-radius:18px;box-shadow:0 8px 42px #102e3840;border:1px solid #c2d7da;overflow:auto;display:flex;flex-direction:column}
#kh-panel header{position:static;display:flex;align-items:center;justify-content:space-between;background:#102e38;color:white;padding:12px 17px}
#kh-panel .kh-close{background:transparent;color:white;font-size:26px;line-height:1;padding:5px 8px}
.kh-history{overflow:auto;padding:12px 16px;min-height:56px}
#kh-panel p{font:inherit;margin:0 0 10px;white-space:pre-line;overflow-wrap:anywhere}
#kh-panel .kh-question{background:#e4f6f9;padding:8px 12px;border-radius:12px;margin-left:24px}
#kh-panel a{display:block;color:#146476;text-decoration:underline;margin-top:6px}
.kh-prompts{display:flex;flex-wrap:wrap;gap:5px;padding:0 16px 10px}
#kh-panel .kh-prompts button{border-radius:16px;background:#eaf4f5;padding:6px 10px;color:#102e38}
#kh-panel form{border-top:1px solid #dbe6e9;padding:12px 16px;display:grid;gap:6px}
.kh-compose{display:flex;gap:6px}
#kh-input{width:100%;min-width:0;border:1px solid #95adb3;border-radius:12px;padding:8px;color:#102e38;background:white}
.kh-choice{display:flex;align-items:center;gap:6px;font-size:13px}
#kh-panel small{font-size:11px;color:#4a5d64}
@media(max-width:760px){#kurshelfer{bottom:calc(68px + env(safe-area-inset-bottom));right:12px}#kh-panel{max-height:calc(100dvh - 95px)}}
#kurshelfer .kh-launch{display:flex;align-items:center;gap:8px;padding:6px 15px 6px 6px}
#kurshelfer .kh-launch[hidden]{display:none}
#kurshelfer .kh-guide{box-sizing:border-box;width:min(315px,calc(100vw - 24px));max-height:50dvh;overflow:auto;border:1px solid #c3d9dc;border-radius:18px;background:#fff;color:#102e38;padding:12px 15px 14px;box-shadow:0 8px 32px #102e3830}
.kh-guide-top,.kh-actions{display:flex;align-items:center;gap:7px}
#kurshelfer .kh-dismiss{margin-left:auto;background:transparent;color:#37565c;font-size:24px;padding:2px 7px}
#kurshelfer .kh-heading{font:700 19px/1.2 system-ui,sans-serif;margin:6px 0}
#kurshelfer .kh-description{font:400 14px/1.45 system-ui,sans-serif;margin:0 0 12px;color:#304a51}
.kh-step{font-size:11px;color:#48646b}.kh-step:empty{display:none}
#kurshelfer .kh-actions{flex-wrap:wrap}
#kurshelfer .kh-actions button,#kurshelfer .kh-tour-link{padding:7px 10px;border-radius:18px;color:#143a43;background:#e5f3f4;font-size:13px}
#kurshelfer .kh-actions .kh-next{background:#123840;color:#fff}
#kurshelfer .kh-tour-link{align-self:flex-start;margin:4px 16px 10px}
.kh-target{scroll-margin-top:90px;outline:2px solid #f29264;outline-offset:-3px}
@media(prefers-reduced-motion:no-preference){.kh-guide:not([hidden]){animation:kh-arrive .35s ease-out}@keyframes kh-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}}

.kh-avatar{width:44px;height:42px;object-fit:contain;display:block}
.kh-companion{width:max-content;max-width:calc(100vw - 20px);position:relative}
.kh-companion:has(.kh-guide[hidden]){display:none}

#kurshelfer.kh-inline{position:relative;inset:auto;z-index:1;display:grid;justify-items:center;padding:12px clamp(12px,4vw,32px);background:#eff8f8;scroll-margin-top:calc(var(--kh-nav-height,80px) + 4px);overflow:clip}
.kh-inline .kh-companion{display:flex;align-items:center;justify-content:center;gap:14px;width:min(100%,640px);max-width:100%}
#kurshelfer.kh-inline .kh-guide{order:1;position:relative;flex:1;min-width:0;width:auto;max-height:none;overflow:visible;box-shadow:0 3px 14px #183b4212;text-align:left}
.kh-inline .kh-guide::before{content:"";position:absolute;left:-6px;top:50%;width:10px;height:10px;background:#fff;border:solid #c3d9dc;border-width:0 0 1px 1px;transform:rotate(45deg)}
.kh-inline .kh-mascot{width:112px;height:auto;max-height:122px;object-fit:contain;flex:none;pointer-events:none;transform-origin:50% 90%}
.kh-inline .kh-guide-top{min-height:22px}
#kurshelfer.kh-inline .kh-actions button{min-height:38px}
.kh-inline.kh-welcome .kh-heading{color:#145d67}
@media(max-width:760px){
  #kurshelfer .kh-launch{padding:4px 8px 4px 4px;font-size:12px}
  #kurshelfer .kh-avatar{width:34px;height:32px}
  #kurshelfer.kh-inline{padding:8px;scroll-margin-top:calc(var(--kh-nav-height,78px) + 3px)}
  .kh-inline .kh-companion{gap:9px}
  .kh-inline .kh-mascot{width:clamp(57px,18vw,89px)}
  #kurshelfer.kh-inline .kh-guide{padding:8px 10px;border-radius:14px}
  #kurshelfer.kh-inline .kh-heading{font-size:17px;margin:2px 0 4px}
  #kurshelfer.kh-inline .kh-description{font-size:13px;margin:0 0 6px}
  #kurshelfer.kh-inline .kh-actions{gap:4px}
  #kurshelfer.kh-inline .kh-actions button{padding:6px 8px;min-height:36px}
}

.kh-inline .kh-companion{width:min(calc(100% - 20px),640px)}
.kh-inline .kh-mascot{aspect-ratio:380/260}
.kh-inline .kh-mascot.kh-trotting{scale:1.12}
.kh-inline .kh-mascot.kh-reverse{scale:-1.12 1.12}
@media(prefers-reduced-motion:no-preference){
  .kh-inline .kh-mascot:not(.kh-trotting){animation:kh-sniff 4.8s ease-in-out infinite}
  body:has(#motion-toggle[aria-pressed="true"]) .kh-mascot{animation:none}
  @keyframes kh-sniff{0%,55%,100%{transform:rotate(0)}65%{transform:translateY(-2px) rotate(-2deg)}75%{transform:rotate(1deg)}}
}


/* A real row lets the dog cross the page without drawing over its content. */
#kurshelfer.kh-roaming{position:relative;inset:auto;z-index:1;grid-column:1/-1;width:100%;box-sizing:border-box;--dog-size:clamp(65px,8vw,92px);--speech:min(330px,calc(100% - 12px));--gx:6px;background:#eef7f7;border-bottom:2px solid #c7dddc;color:#102e38}
.kh-roaming .kh-companion{position:relative;width:100%;max-width:none;box-sizing:border-box;padding:4px 0 calc(var(--dog-size)*.68);overflow:hidden}
#kurshelfer.kh-roaming .kh-guide{position:relative;left:clamp(6px,calc(var(--gx) + var(--dog-size)/2 - var(--speech)/2),calc(100% - var(--speech) - 6px));width:var(--speech);box-sizing:border-box;max-height:none;padding:6px 10px;line-height:1.2;box-shadow:none;text-align:left}
.kh-roaming .kh-guide-top strong{display:none}
.kh-roaming .kh-guide-top{position:absolute;right:4px;top:2px}
#kurshelfer.kh-roaming .kh-heading{margin:1px 22px 2px 0;font-size:15px}
#kurshelfer.kh-roaming .kh-description{font-size:13px;margin:0 0 4px;line-height:1.3}
#kurshelfer.kh-roaming .kh-actions button{min-height:28px;padding:3px 9px}
.kh-roaming .kh-mascot,.kh-roaming .kh-companion::after{position:absolute;bottom:0;left:var(--gx);width:var(--dog-size);height:auto;aspect-ratio:204/140;object-fit:contain;pointer-events:none}
.kh-roaming.kh-left .kh-mascot,.kh-roaming.kh-left .kh-companion::after{transform:scaleX(-1)}
.kh-stepping .kh-mascot{visibility:hidden}
.kh-stepping .kh-companion::after{content:"";background-image:url('/gustl-schritte.webp');background-size:600% 400%;background-position:var(--paw-x) var(--paw-y)}
#kurshelfer.kh-roaming + .team-grid{margin-top:8px}

.kh-inline .kh-dog{display:contents}
#kurshelfer.kh-roaming{--dog-size:clamp(65px,9.2vw,106px);--speech:min(282px,calc(100% - 12px))}
.kh-roaming .kh-dog{position:absolute;left:var(--gx);bottom:0;width:var(--dog-size);aspect-ratio:380/260;pointer-events:none}
.kh-roaming .kh-dog .kh-mascot{width:100%;height:100%;left:0;transform:none}
.kh-roaming.kh-left .kh-dog{transform:scaleX(-1)}
.kh-moving .kh-guide{opacity:0;pointer-events:none}
.kh-arrived .kh-guide{transition:opacity .18s ease-out}
#kurshelfer .kh-booking{position:absolute;bottom:8px;right:8px;background:#e88916;color:#18242b;font-weight:700;font-size:14px;border-radius:22px;padding:10px 14px;text-decoration:none}
#kurshelfer.kh-final .kh-description{display:none}
@media(prefers-reduced-motion:no-preference){
  body:not(:has(#motion-toggle[aria-pressed="true"])) .kh-arrived .kh-dog .kh-mascot{clip-path:polygon(0 43%,22% 39%,22% 0,100% 0,100% 100%,0 100%)}
  body:not(:has(#motion-toggle[aria-pressed="true"])) .kh-arrived .kh-dog::before{content:"";position:absolute;inset:0;background:url('/gustl.webp') center/contain no-repeat;clip-path:polygon(0 0,22% 0,22% 39%,0 43%);transform-origin:21% 39%;animation:kh-wag .65s ease-in-out 1}
  @keyframes kh-wag{25%{transform:rotate(8deg)}65%{transform:rotate(-6deg)}}
  body:not(:has(#motion-toggle[aria-pressed="true"])) .kh-arrived .kh-dog{animation:kh-look .75s ease-in-out both}
  @keyframes kh-look{45%,75%{rotate:-3deg}}
}
@media(max-width:760px){#kurshelfer.kh-roaming{--dog-size:clamp(65px,18vw,85px)}}

@media (max-width:760px){
  #kurshelfer:has(.kh-launch:not([hidden])){position:static;display:flex;justify-content:center;padding:12px 0;background:#eff8f8}
}
#termine{scroll-margin-top:84px}
