:root{
  --bg:#ffffff;
  --text:#8e949d;
  --ease:cubic-bezier(.22,1,.36,1);
  --textLight:#b9bec6;
  --textHover:#6f7680;
  --textStrong:#555c66;
  --hair:rgba(0,0,0,.08);

  --copy-left:58vw;
  --copy-top:50vh;
  --copy-width:min(31vw, 470px);
  --copy-gap:12px;
  --copy-translate-x:0px;
  --copy-translate-y:-50%;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color:var(--text);
}

body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

#app{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  background:var(--bg);
}

#webgl{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  cursor:default;
  touch-action:none;
}

.ui{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:5;
}

.status-right{
  position:absolute;
  right:24px;
  bottom:18px;
  font-size:14px;
  line-height:1.4;
  letter-spacing:.04em;
  text-align:right;
  color:#9aa0aa;
  user-select:none;
  white-space:pre-line;
}

.copyright{
  position:absolute;
  left:24px;
  bottom:18px;
  font-size:11px;
  letter-spacing:.12em;
  color:#b9bec6;
  user-select:none;
  pointer-events:none;
  z-index:5;
}

@media (max-width: 1100px){
  .copyright{
    left:18px;
    bottom:14px;
    font-size:10px;
  }
}

@media (max-width: 720px){
  .copyright{
    left:14px;
    bottom:12px;
    font-size:9px;
    letter-spacing:.1em;
  }
}

.knopf{
  position:absolute;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.9);
  background:#9e9e9e;
  color:#fff;
  font-family:inherit;
  font-weight:700;
  line-height:1.3;
  letter-spacing:.02em;
  text-align:center;
  text-decoration:none;
  text-shadow:0 0 3px rgba(0,0,0,.45);
  white-space:pre-line;
  pointer-events:auto;
  user-select:none;
}

.knopf.is-ruhig{
  pointer-events:none;
}


.rebuild-text{
  display:inline-block;
  margin-left:.7em;
  padding:.12em .75em;
  border:1px solid rgba(40,167,69,.38);
  border-radius:999px;
  font:inherit;
  font-weight:700;
  letter-spacing:inherit;
  line-height:1.3;
  color:#1f8f3a;
  -webkit-text-fill-color:#1f8f3a;
  background:linear-gradient(100deg, rgba(40,167,69,.10) 30%, rgba(40,167,69,.26) 50%, rgba(40,167,69,.10) 70%) 0 0 / 250% 100%;
  box-shadow:0 0 0 1px rgba(255,255,255,.5) inset;
  cursor:pointer;
  vertical-align:baseline;
  animation:schimmer 6s linear infinite;
}

.rebuild-text:hover{
  border-color:rgba(40,167,69,.65);
  background-color:rgba(40,167,69,.18);
}

.rebuild-text.is-ruhig{
  color:#8e949d;
  -webkit-text-fill-color:#8e949d;
  border-color:rgba(142,148,157,.35);
  background:rgba(142,148,157,.10);
  cursor:default;
  animation:none;
}

@media (prefers-reduced-motion: reduce){
  .rebuild-text{ animation:none; }
}

.status-right .stempel-kopf{
  font-weight:700;
}

.status-right a{
  color:inherit;
  pointer-events:auto;
  text-decoration:underline;
  text-underline-offset:.2em;
}

.status-right a:hover{
  color:#555c66;
}

.knopf[hidden]{
  display:none;
}

.aufsicht{
  position:absolute;
  transform:translateY(-50%);
  width:min(380px, 40vw);
  display:grid;
  gap:8px;
  font-size:14px;
  line-height:1.4;
  letter-spacing:.04em;
  pointer-events:auto;
}

.aufsicht[hidden],
.historie[hidden]{
  display:none;
}

.aufsicht.is-hochkant{
  transform:translateX(-50%);
  width:min(86vw, 380px);
  text-align:center;
  justify-items:center;
}

.aufsicht__titel{
  font-weight:700;
}

/* zarter Schimmer ueber der Schrift */
.aufsicht__titel,
.aufsicht__zeilen div,
.historie .schimmer{
  color:#8e949d;
  background:linear-gradient(100deg, #8e949d 35%, #d3d7dd 50%, #8e949d 65%) 0 0 / 250% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:schimmer 6s linear infinite;
}

@keyframes schimmer{
  from{ background-position:100% 0; }
  to{ background-position:-150% 0; }
}

@media (prefers-reduced-motion: reduce){
  .aufsicht__titel,
  .aufsicht__zeilen div,
  .historie .schimmer{ animation:none; }
}

/* Build-Historie: schwebender Text, scrollbar */
.historie{
  display:grid;
  gap:0;
  max-height:45vh;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#d3d7dd transparent;
  font-size:12px;
  text-align:left;
}

.historie__eintrag + .historie__eintrag{
  margin-top:1.4em;
  padding-top:1.4em;
  border-top:1px solid rgba(142,148,157,.35);
}

.historie__eintrag{
  content-visibility:auto;
  contain-intrinsic-size:auto 40px;
}

.historie__pakete{
  display:flex;
  flex-wrap:wrap;
  column-gap:12px;
  font-size:11px;
}

.historie .ist-neu{
  font-weight:700;
}

.historie__ergebnis{ font-weight:700; }
.erg-SUCCESS{ color:#3fcf6a; }
.erg-UNSTABLE{ color:#f5a623; }
.erg-FAILURE{ color:#e84646; }
.erg-sonst{ color:#6e7781; }

.aufsicht__mehr{
  justify-self:start;
  padding:6px 0;
  border:0;
  border-bottom:1px solid currentColor;
  background:none;
  font:inherit;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6f7680;
  cursor:pointer;
}

.aufsicht.is-hochkant .aufsicht__mehr{
  justify-self:center;
}

.hint{
  position:absolute;
  left:50%;
  bottom:42px;
  transform:translateX(-50%);
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(90,96,108,.75);
  opacity:1;
  transition:opacity .45s ease;
  user-select:none;
}

.hint.is-hidden{
  opacity:0;
}

.loading{
  position:absolute;
  inset:auto 0 24px 0;
  margin:auto;
  width:max-content;
  max-width:min(80vw, 560px);
  padding:10px 14px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(90,96,108,.9);
  background:rgba(255,255,255,.22);
  border:1px solid rgba(0,0,0,.06);
  border-radius:999px;
  backdrop-filter: blur(8px);
  z-index:8;
}

.loading.is-hidden{
  display:none;
}

.menu-copy{
  position:absolute;
  left:var(--copy-left);
  top:var(--copy-top);
  width:var(--copy-width);
  display:grid;
  gap:var(--copy-gap);
  opacity:0;
  transform:translate(
    var(--copy-translate-x),
    calc(var(--copy-translate-y) + 14px)
  );
  transition:
    opacity .65s var(--ease),
    transform .75s var(--ease);
  pointer-events:none;
  z-index:6;
}

.menu-copy.is-visible{
  opacity:1;
  transform:translate(
    var(--copy-translate-x),
    var(--copy-translate-y)
  );
  pointer-events:auto;
}

/* vor dem Aufklappen unsichtbar: dann auch nicht anklickbar (sonst verdecken sie "mehr") */
.menu-copy:not(.is-visible) .menu-copy__item{
  pointer-events:none;
}

.menu-copy:not(.is-visible){
  visibility:hidden;
}

.menu-copy__item{
  position:relative;
  display:grid;
  gap:6px;
  padding:9px 0 10px 0;
  color:var(--textLight);
  cursor:pointer;
  user-select:none;
  pointer-events:auto;
  transition:
    color .24s ease,
    transform .24s ease,
    opacity .24s ease;
  opacity:.88;
}

.menu-copy__item::before{
  content:"";
  position:absolute;
  left:-18px;
  top:50%;
  width:10px;
  height:1px;
  background:transparent;
  transform:translateY(-50%);
  transition:
    width .24s ease,
    background-color .24s ease,
    opacity .24s ease;
  opacity:0;
}

.menu-copy__item:hover{
  color:var(--textHover);
  opacity:1;
}

.menu-copy__item.is-active{
  color:var(--textStrong);
  opacity:1;
}

.menu-copy__item.is-active::before{
  width:14px;
  background:currentColor;
  opacity:.7;
}

.menu-copy__item.is-active .menu-copy__title,
.menu-copy__item:hover .menu-copy__title{
  font-weight:700;
}

.menu-copy__title{
  font-size:clamp(15px, 1.15vw, 22px);
  line-height:1.26;
  letter-spacing:.01em;
  font-weight:500;
  min-height:1.26em;
  transition:
    font-weight .2s ease,
    color .2s ease;
}

.menu-copy__meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  line-height:1.2;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:inherit;
  opacity:.95;
  min-height:1.2em;
}

.menu-copy__via{
  opacity:.82;
}

.menu-copy__more{
  opacity:.9;
}

.menu-copy__caret{
  display:inline-block;
  transform:translateY(-.02em);
}

.menu-copy__item.is-active .menu-copy__meta,
.menu-copy__item:hover .menu-copy__meta{
  color:var(--textHover);
}

.menu-copy__item.is-typed .menu-copy__title::after{
  content:"";
  display:inline-block;
  width:1px;
  height:.92em;
  margin-left:.22em;
  vertical-align:-0.06em;
  background:currentColor;
  animation:blink 1s steps(1,end) infinite;
  opacity:.65;
}

.menu-copy__item.is-done .menu-copy__title::after{
  content:none;
  animation:none;
}

/* ausgegraut: nur ansehen */
.menu-copy.is-grau .menu-copy__item{
  pointer-events:none;
  cursor:default;
  opacity:.55;
}

.menu-copy.is-grau .menu-copy__meta{
  visibility:hidden;
}

@keyframes blink{
  0%,49%{ opacity:.7; }
  50%,100%{ opacity:0; }
}

body.is-portrait .menu-copy{
  --copy-translate-x:-50%;
  --copy-translate-y:0px;
}

body.is-portrait .menu-copy__item{
  padding:8px 0 9px 0;
}

body.is-portrait .menu-copy__item::before{
  left:0;
  top:auto;
  bottom:-1px;
  width:100%;
  height:1px;
  transform:none;
  background:var(--hair);
  opacity:1;
}

body.is-portrait .menu-copy__item.is-active::before{
  background:currentColor;
  opacity:.36;
  width:100%;
}

@media (max-width: 1100px){
  .status-right{
    right:18px;
    bottom:14px;
  }

  .menu-copy__title{
    font-size:clamp(13px, 1.45vw, 18px);
  }

  .menu-copy__meta{
    font-size:10px;
  }
}

@media (max-width: 720px){
  .status-right{
    right:14px;
    bottom:12px;
  }

  .hint{
    bottom:22px;
    font-size:11px;
  }

  .menu-copy__title{
    font-size:12px;
    line-height:1.3;
  }

  .menu-copy__meta{
    font-size:9px;
    gap:7px;
  }

  .loading{
    font-size:10px;
    padding:9px 12px;
  }
}

/* Zurueck und Vor (Fachkonzept 3.7): oben links, fest, in der dezenten Kaestchen-Optik */
.navi{
  position:fixed;
  top:20px;
  left:20px;
  z-index:20;
  display:flex;
  gap:10px;
}

.navi[hidden]{
  display:none;
}

.navi__knopf{
  width:36px;
  height:36px;
  padding:0 0 3px;
  border:1px solid rgba(40,167,69,.38);
  border-radius:50%;
  background:rgba(40,167,69,.12);
  color:#1f8f3a;
  font:inherit;
  font-size:22px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}

.navi__knopf:hover:not(:disabled){
  border-color:rgba(40,167,69,.65);
  background:rgba(40,167,69,.2);
}

.navi__knopf:disabled{
  opacity:.35;
  cursor:default;
}

/* Commit je Build in der Historie, aufklappbar (Subkonzept Jenkins-Status) */
.historie__commit{
  font-size:11px;
}

.historie__commit summary{
  cursor:pointer;
  color:#6f7680;
  letter-spacing:.04em;
}

.historie__commit-text{
  margin:4px 0 2px 12px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#8e949d;
}

/* der letzte Commit in der Build-Info, aufklappbar (nur mit Recht) */
.zeile-commit summary{
  cursor:pointer;
  color:#8e949d;
}

.zeile-commit__text{
  margin:2px 0 2px 14px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#8e949d;
  font-size:12px;
}

/* Konfiguration: Unterueberschriften zu den drei Zonen des Glieds (Fachkonzept 3.3) */
.menu-copy__sub{
  display:none;
  margin:6px 0 2px 14px;
}

.menu-copy__sub.is-offen{
  display:block;
}

.menu-copy__subitem{
  padding:3px 0;
  color:#8e949d;
  cursor:pointer;
  letter-spacing:.04em;
}

.menu-copy__subitem.is-active{
  color:#1f2328;
  font-weight:700;
}
