/* =========================================================================
   HOSTL.eu Docs – Basis
   Farben/Maße kommen ausschließlich aus theme.css (identisch zum Dashboard).
   ========================================================================= */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--hostl-bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--hostl-bg);
  color: var(--hostl-text);
  font-family: var(--hostl-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--hostl-primary-text); text-decoration: none; }
a:hover { color: var(--hostl-text-strong); }

img { max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

code, kbd, pre { font-family: var(--hostl-font-mono); }

::selection { background: var(--hostl-primary-soft-strong); color: var(--hostl-text-strong); }

:focus-visible { outline: none; box-shadow: var(--hostl-focus-ring); border-radius: var(--hostl-radius-xs); }

* { scrollbar-width: thin; scrollbar-color: var(--hostl-surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hostl-surface-3); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--hostl-border-hover); background-clip: padding-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--hostl-primary); color: var(--hostl-on-primary);
  padding: 8px 14px; border-radius: var(--hostl-radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--hostl-on-primary); }

.emoji-icon { font-style: normal; line-height: 1; }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  font-size: 11px; font-family: var(--hostl-font);
  color: var(--hostl-text-subtle);
  background: var(--hostl-surface-2);
  border: 1px solid var(--hostl-border-strong);
  border-bottom-width: 2px;
  border-radius: var(--hostl-radius-xs);
}

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

/* hidden muss immer gewinnen – auch gegen display:flex in Komponenten */
[hidden] { display: none !important; }
