/* Self-hosted Jost (no Google Fonts request, so visitors' IP addresses aren't sent to Google) */
@font-face{font-family:"Jost";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jost-400.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/jost-500.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/jost-600.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/jost-700.woff2) format("woff2")}
@font-face{font-family:"Jost";font-style:italic;font-weight:400;font-display:swap;src:url(fonts/jost-400-italic.woff2) format("woff2")}

/* Who's learning? gate */
html.gl-gated #app{display:none}
#glgate{position:fixed;inset:0;z-index:9999;overflow:auto;background:#F2EDE3;color:#1B1B1B;font-family:"Jost",ui-sans-serif,system-ui,sans-serif;
  background-image:linear-gradient(90deg,transparent calc(100% - 14px),#1F4FA3 calc(100% - 14px)),linear-gradient(0deg,#D23A2A 10px,transparent 10px);
  display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) 20px max(32px,env(safe-area-inset-bottom))}
#glgate *{box-sizing:border-box}
.glg-in{width:min(460px,100%);background:#FBF8F2;border:2px solid #1B1B1B;box-shadow:8px 8px 0 #1B1B1B;padding:28px 26px 22px}
.glg-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.glg-brand b{display:block;font-size:1.1rem;letter-spacing:.01em}
.glg-brand small{color:#55514A;font-size:.85rem}
#glgate h1{font-size:clamp(1.9rem,6vw,2.4rem);line-height:1.05;margin:0 0 10px;font-weight:700;letter-spacing:-.01em}
.glg-lead{margin:0 0 20px;color:#3d3a35;line-height:1.5}
.glg-list{display:grid;gap:8px;margin-bottom:22px}
.glg-p{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px 10px 10px;border:2px solid #1B1B1B;background:#fff;font:inherit;font-size:1.05rem;font-weight:600;color:inherit;cursor:pointer;text-align:left;transition:transform .12s ease,box-shadow .12s ease}
.glg-p span{flex:1}
.glg-p i{font-style:normal;font-weight:500}
.glg-p:hover,.glg-p:focus-visible{transform:translate(-2px,-2px);box-shadow:4px 4px 0 #1B1B1B;outline:none}
.glg-new label{display:block;font-weight:600;margin-bottom:8px}
.glg-row{display:flex;gap:8px}
#glg-name{flex:1;min-width:0;font:inherit;font-size:1.05rem;padding:11px 12px;border:2px solid #1B1B1B;background:#fff;color:inherit;border-radius:0}
#glg-name:focus{outline:3px solid #F2B705;outline-offset:1px}
.glg-row button{font:inherit;font-weight:700;padding:0 18px;border:2px solid #1B1B1B;background:#1B1B1B;color:#FBF8F2;cursor:pointer}
.glg-row button:hover,.glg-row button:focus-visible{background:#1F4FA3;border-color:#1F4FA3;outline:none}
.glg-cols{display:flex;gap:10px;margin:14px 0 6px}
.glg-cols button{width:30px;height:30px;border-radius:50%;border:2px solid #1B1B1B;background:var(--c);cursor:pointer;padding:0}
.glg-cols button[aria-checked="true"]{box-shadow:0 0 0 3px #FBF8F2,0 0 0 5px #1B1B1B}
.glg-cols button:focus-visible{outline:3px solid #F2B705;outline-offset:3px}
.glg-tiny{font-size:.85rem;color:#55514A;margin:8px 0 0}
.glg-msg{margin:14px 0 0;padding:10px 12px;background:#fde8e5;border-left:4px solid #D23A2A;font-size:.95rem}
.glg-foot{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:22px;padding-top:14px;border-top:1px solid rgba(27,27,27,.16)}
.glg-link{font:inherit;font-size:.9rem;color:#1F4FA3;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media (prefers-reduced-motion:reduce){.glg-p{transition:none}}

/* Buy me a coffee: sidebar link on wide screens, a quiet line at the foot of Heute, Reise, Profil and Settings otherwise */
.glcoffee-side{display:flex;align-items:center;gap:8px;margin:6px 12px 10px;padding:8px 12px;border:1.5px solid #1B1B1B;background:#F2B705;color:#1B1B1B;font-weight:600;text-decoration:none;border-radius:var(--r,3px)}
.glcoffee-side:hover,.glcoffee-side:focus-visible{background:#1B1B1B;color:#F2B705}
.glcoffee-foot{margin:28px 0 8px;text-align:center;font-size:13px}
.glcoffee-foot a{display:inline-flex;align-items:center;gap:6px;color:var(--muted,#545A72);text-decoration:none}
.glcoffee-foot svg{width:15px;height:15px}
.glcoffee-foot a:hover span,.glcoffee-foot a:focus-visible span{text-decoration:underline;text-underline-offset:3px}
@media (min-width:960px){.glcoffee-foot{display:none}}

/* Sync code */
.glg-code{margin-top:18px;padding-top:16px;border-top:1px solid rgba(27,27,27,.16)}
.glg-code label{display:block;font-weight:600;margin-bottom:8px}
#glg-c{flex:1;min-width:0;font:inherit;font-size:1.05rem;letter-spacing:.08em;text-transform:uppercase;padding:11px 12px;border:2px solid #1B1B1B;background:#fff;color:inherit;border-radius:0}
#glg-c:focus{outline:3px solid #F2B705;outline-offset:1px}
.glcode-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 10px}
.glcode-box code{font-family:ui-monospace,"SFMono-Regular",Menlo,monospace;font-size:1.35rem;font-weight:700;letter-spacing:.08em;padding:8px 12px;background:#FBF8F2;border:2px solid #1B1B1B}
.glcode-warn{margin:0 0 10px;padding:10px 12px;background:#FFF4CC;border-left:4px solid #F2B705}

/* Welcome intro + placement quiz */
html.gl-onb body{overflow:hidden}
#glonb{position:fixed;inset:0;z-index:10000;overflow:auto;background:rgba(242,237,227,.97);color:#1B1B1B;font-family:"Jost",ui-sans-serif,system-ui,sans-serif;display:grid;place-items:center;padding:max(20px,env(safe-area-inset-top)) 18px max(28px,env(safe-area-inset-bottom))}
#glonb *{box-sizing:border-box}
.glo-in{width:min(560px,100%);background:#FBF8F2;border:2px solid #1B1B1B;box-shadow:8px 8px 0 #1B1B1B;padding:26px 26px 22px}
.glo-eb{display:block;font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#1F4FA3;margin-bottom:6px}
#glonb h1{font-size:clamp(1.8rem,5.5vw,2.3rem);line-height:1.08;margin:0 0 14px;font-weight:700}
#glonb h1.glo-q{font-size:clamp(1.35rem,4.6vw,1.7rem);line-height:1.25}
.glo-b p{margin:0 0 12px;line-height:1.55}
.glo-dots{display:flex;gap:6px;margin-bottom:18px}
.glo-dots i{width:22px;height:5px;background:rgba(27,27,27,.15)}
.glo-dots i.on{background:#D23A2A}
.glo-nav{display:flex;justify-content:space-between;align-items:center;margin-top:18px}
.glo-pri,.glo-sec{font:inherit;font-weight:700;padding:11px 20px;border:2px solid #1B1B1B;cursor:pointer}
.glo-pri{background:#1B1B1B;color:#FBF8F2}
.glo-pri:hover,.glo-pri:focus-visible{background:#1F4FA3;border-color:#1F4FA3;outline:none}
.glo-sec{background:transparent;color:#1B1B1B}
.glo-sec:hover,.glo-sec:focus-visible{background:#fff;outline:none}
.glo-skip{display:block;margin:16px auto 0;font:inherit;font-size:.92rem;color:#1F4FA3;background:none;border:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.glo-choice{display:grid;gap:10px;margin-top:6px}
.glo-choice button,.glo-opts button{display:block;width:100%;text-align:left;font:inherit;color:inherit;background:#fff;border:2px solid #1B1B1B;padding:14px 16px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.glo-choice b{display:block;font-size:1.1rem}
.glo-choice span{display:block;color:#55514A;margin-top:3px;line-height:1.4}
.glo-choice button:hover,.glo-choice button:focus-visible,.glo-opts button:hover,.glo-opts button:focus-visible{transform:translate(-2px,-2px);box-shadow:4px 4px 0 #1B1B1B;outline:none}
.glo-opts{display:grid;gap:8px}
.glo-opts button{display:flex;align-items:center;gap:12px;font-size:1.05rem;font-weight:500}
.glo-opts kbd{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border:1.5px solid #1B1B1B;font:inherit;font-size:.85rem;font-weight:700;background:#F2EDE3}
.glo-prog{position:relative;margin-bottom:18px;padding-bottom:10px;font-size:.85rem;font-weight:600;color:#55514A}
.glo-prog::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:rgba(27,27,27,.12)}
.glo-prog i{position:absolute;left:0;bottom:0;height:5px;background:#F2B705;z-index:1;transition:width .25s ease}
@media (prefers-reduced-motion:reduce){.glo-choice button,.glo-opts button,.glo-prog i{transition:none}}
